diff --git a/.gitignore b/.gitignore index a56c1350f..7514b392c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,6 @@ composer.phar /vendor/ -/.openapi-generator/ -/.openapi-generator-ignore -/.version # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php deleted file mode 100644 index 0cc3eaeb3..000000000 --- a/.php-cs-fixer.dist.php +++ /dev/null @@ -1,28 +0,0 @@ -setUsingCache(true) - ->setRules([ - '@PSR2' => true, - 'ordered_imports' => true, - 'phpdoc_order' => true, - 'array_syntax' => [ 'syntax' => 'short' ], - 'strict_comparison' => true, - 'strict_param' => true, - 'no_trailing_whitespace' => false, - 'no_trailing_whitespace_in_comment' => false, - 'braces' => false, - 'single_blank_line_at_eof' => false, - 'blank_line_after_namespace' => false, - 'elseif' => false, - ]) - ->setRiskyAllowed(true) - ->setFinder( - PhpCsFixer\Finder::create() - ->exclude('test') - ->exclude('tests') - ->in(__DIR__) - ); diff --git a/README.md b/README.md index e076f0273..a878a88ab 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,7 @@ If you've found any of our packages useful, please consider [becoming a Sponsor] ## Features -* Supports all Selling Partner API operations (for Sellers and Vendors) as of 4/11/2023 ([see here](#supported-api-segments) for links to documentation for all calls) -* Supports applications made with both IAM user and IAM role ARNs ([docs](#setup)) +* Supports all Selling Partner API operations (for Sellers and Vendors) as of 2/10/2024 * Automatically generates Restricted Data Tokens for all calls that require them -- no extra calls to the Tokens API needed * Includes a [`Document` helper class](#uploading-and-downloading-documents) for uploading and downloading feed/report documents @@ -46,15 +45,14 @@ If you've found any of our packages useful, please consider [becoming a Sponsor] `composer require jlevers/selling-partner-api` -## Table of Contents +## Table of Contents Check out the [Getting Started](#getting-started) section below for a quick overview. This README is divided into several sections: * [Setup](#setup) * [Configuration options](#configuration-options) -* [Examples](#examples) -* [Debug mode](#debug-mode) +* [Debugging](#debugging) * [Supported API segments](#supported-api-segments) * [Seller APIs](#seller-apis) * [Vendor APIs](#vendor-apis) @@ -63,129 +61,93 @@ This README is divided into several sections: * [Downloading a report document](#downloading-a-report-document) * [Uploading a feed document](#uploading-a-feed-document) * [Downloading a feed result document](#downloading-a-feed-result-document) -* [Working with model classes](#working-with-model-classes) -* [Response headers](#response-headers) -* [Custom request authorization](#custom-authorization-signer) -* [Custom request signing](#custom-request-signer) +* [Naming conventions](#naming-conventions) +* [API versions](#api-versions) +* [Working with DTOs](#working-with-dtos) ## Getting Started ### Prerequisites -You need a few things to get started: -* A Selling Partner API developer account -* An AWS IAM user or role configured for use with the Selling Partner API -* A Selling Partner API application +To get started, you need an approved Selling Partner API developer account, and SP API application credentials, which you can get by creating a new SP API application in Seller Central. -If you're looking for more information on how to set those things up, check out [this blog post](https://highsidelabs.co/blog/selling-partner-api-access/). It provides a detailed walkthrough of the whole setup process. ### Setup -The [`Configuration`](https://github.com/jlevers/selling-partner-api/blob/main/lib/Configuration.php) constructor takes a single argument: an associative array with all the configuration information that's needed to connect to the Selling Partner API: +The [`SellingPartnerApi`](https://github.com/jlevers/selling-partner-api/blob/main/src/SellingPartnerApi.php) class acts as a factory to generate API connector instances. It takes a set of (optionally) named parameters. Its basic usage looks like this: ```php -$config = new SellingPartnerApi\Configuration([ - "lwaClientId" => "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - // If you're not working in the North American marketplace, change - // this to another endpoint from lib/Endpoint.php - "endpoint" => SellingPartnerApi\Endpoint::NA, -]); +use SellingPartnerApi\SellingPartnerApi; +use SellingPartnerApi\Enums\Endpoint; + +$connector = SellingPartnerApi::make( + clientId: 'amzn1.application-oa2-client.asdfqwertyuiop...', + clientSecret: 'amzn1.oa2-cs.v1.1234567890asdfghjkl...', + refreshToken: 'Atzr|IwEBIA...', + endpoint: Endpoint::NA, // Or Endpoint::EU, Endpoint::FE, Endpoint::NA_SANDBOX, etc. +)->seller(); ``` -If you created your Selling Partner API application using an IAM role ARN instead of a user ARN, pass that role ARN in the configuration array: +> [!NOTE] +> Older versions of the Selling Partner API used AWS IAM credentials to authenticate, and so this library had additional AWS configuration options. If you're upgrading from an older version of this library and are confused about what to do with your AWS creds, you can just ignore them. The SP API no longer authenticates via AWS IAM roles or users. + +Now you have a Selling Partner API connector instance, and you can start making calls to the API. The connector instance has methods for each of the API segments (e.g., `sellers`, `orders`, `fba-inbound`), and you can access them like so: ```php -$config = new SellingPartnerApi\Configuration([ - "lwaClientId" => "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - // If you're not working in the North American marketplace, change - // this to another endpoint from lib/Endpoint.php - "endpoint" => SellingPartnerApi\Endpoint::NA, - "roleArn" => "", -]); +$ordersApi = $connector->orders(); +$response = $ordersApi->getOrders( + createdAfter: new DateTime('2024-01-01'), + marketplaceIds: ['ATVPDKIKX0DER'], +); ``` -Getter and setter methods exist for the `Configuration` class's `lwaClientId`, `lwaClientSecret`, `lwaRefreshToken`, `awsAccessKeyId`, `awsSecretAccessKey`, and `endpoint` properties. The methods are named in accordance with the name of the property they interact with: `getLwaClientId`, `setLwaClientId`, `getLwaClientSecret`, etc. +Once you have a response, you can either access the raw JSON response via `$response->json()`, or you can automatically parse the response into a DTO by calling `$response->dto()`. Once the response is turned into a DTO, you can access the data via the DTO's properties. For instance, you can get the first order's purchase date like so: -`$config` can then be passed into the constructor of any `SellingPartnerApi\Api\*Api` class. See the `Example` section for a complete example. +```php +$dto = $response->dto(); +$purchaseDate = $dto->payload->orders[0]->purchaseDate; +``` -##### Configuration options +See the [Working with DTOs](#working-with-dtos) section for more details on how to work with requests and responses. -The array passed to the `Configuration` constructor accepts the following keys: -* `lwaClientId (string)`: Required. The LWA client ID of the SP API application to use to execute API requests. -* `lwaClientSecret (string)`: Required. The LWA client secret of the SP API application to use to execute API requests. -* `lwaRefreshToken (string)`: The LWA refresh token of the SP API application to use to execute API requests. Required, unless you're only using the `Configuration` instance to call [grantless operations](https://developer-docs.amazon.com/amazon-shipping/docs/grantless-operations). -* `awsAccessKeyId (string)`: Required. AWS IAM user Access Key ID with SP API ExecuteAPI permissions. -* `awsSecretAccessKey (string)`: Required. AWS IAM user Secret Access Key with SP API ExecuteAPI permissions. -* `endpoint (array)`: Required. An array containing a `url` key (the endpoint URL) and a `region` key (the AWS region). There are predefined constants for these arrays in [`lib/Endpoint.php`](https://github.com/jlevers/selling-partner-api/blob/main/lib/Endpoint.php): (`NA`, `EU`, `FE`, and `NA_SANDBOX`, `EU_SANDBOX`, and `FE_SANDBOX`. See [here](https://developer-docs.amazon.com/amazon-shipping/docs/sp-api-endpoints) for more details. -* `accessToken (string)`: An access token generated from the refresh token. -* `accessTokenExpiration (int)`: A Unix timestamp corresponding to the time when the `accessToken` expires. If `accessToken` is given, `accessTokenExpiration` is required (and vice versa). -* `onUpdateCredentials (callable|Closure)`: A callback function to call when a new access token is generated. The function should accept a single argument of type [`SellingPartnerApi\Credentials`](https://github.com/jlevers/selling-partner-api/blob/main/lib/Credentials.php). -* `roleArn (string)`: If you set up your SP API application with an AWS IAM role ARN instead of a user ARN, pass that ARN here. -* `authenticationClient (GuzzleHttp\ClientInterface)`: Optional `GuzzleHttp\ClientInterface` object that will be used to generate the access token from the refresh token -* `tokensApi (SellingPartnerApi\Api\TokensApi)`: Optional `SellingPartnerApi\Api\TokensApi` object that will be used to fetch Restricted Data Tokens (RDTs) when you call a [restricted operation](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide) -* `authorizationSigner (SellingPartnerApi\Contract\AuthorizationSignerContract)`: Optional `SellingPartnerApi\Contract\AuthorizationSignerContract` implementation. See [Custom Authorization Signer](#custom-authorization-signer) section -* `requestSigner (SellingPartnerApi\Contract\RequestSignerContract)`: Optional `SellingPartnerApi\Contract\RequestSignerContract` implementation. See [Custom Request Signer](#custom-request-signer) section. +##### Configuration options -### Examples +The `SellingPartnerApi::make()` builder method accepts the following keys: -This example assumes you have access to the `Seller Insights` Selling Partner API role, but the general format applies to any Selling Partner API request. +* `clientId (string)`: Required. The LWA client ID of the SP API application to use to execute API requests. +* `clientSecret (string)`: Required. The LWA client secret of the SP API application to use to execute API requests. +* `refreshToken (string)`: The LWA refresh token of the SP API application to use to execute API requests. Required, unless you're only using [grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations). +* `endpoint`: Required. An instance of the [`SellingPartnerApi\Enums\Endpoint` enum](https://github.com/jlevers/selling-partner-api/blob/main/src/Enums/Endpoint.php). Primary endpoints are `Endpoint::NA`, `Endpoint::EU`, and `Endpoint::FE`. Sandbox endpoints are `Endpoint::NA_SANDBOX`, `Endpoint::EU_SANDBOX`, and `Endpoint::FE_SANDBOX`. +* `dataElements (array)`: Optional. An array of data elements to pass to restricted operations. See the [Restricted operations](#restricted-operations) section for more details. +* `delegatee (string)`: Optional. The application ID of a delegatee application to generate RDTs on behalf of. +* `authenticationClient`: Optional `GuzzleHttp\ClientInterface` object that will be used to generate the access token from the refresh token. If not provided, a default Guzzle client will be used. -```php - "amzn1.application-oa2-client.....", - "lwaClientSecret" => "abcd....", - "lwaRefreshToken" => "Aztr|IwEBI....", - "awsAccessKeyId" => "AKIA....", - "awsSecretAccessKey" => "ABCD....", - // If you're not working in the North American marketplace, change - // this to another endpoint from lib/Endpoint.php - "endpoint" => Endpoint::NA -]); - -$api = new SellersApi($config); -try { - $result = $api->getMarketplaceParticipations(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SellersApi->getMarketplaceParticipations: ', $e->getMessage(), PHP_EOL; -} - -?> -``` +### Debugging -### Debug mode - -To get debugging output when you make an API request, you can call `$config->setDebug(true)`. By default, debug output goes to `stdout` via `php://output`, but you can redirect it a file with `$config->setDebugFile('')`. +To get detailed debugging output, you can take advantage of [Saloon's debugging hooks](https://docs.saloon.dev/digging-deeper/debugging). This package is built on top of Saloon, so anything that works in Saloon will work here. For instance, to debug requests: ```php -setDebug(true); -// To redirect debug info to a file: -$config->setDebugFile('./debug.log'); +use SellingPartnerApi\SellingPartnerApi; + +$connector = SellingPartnerApi::make( + clientId: 'amzn1.application-oa2-client.asdfqwertyuiop...', + clientSecret: 'amzn1.oa2-cs.v1.1234567890asdfghjkl...', + refreshToken: 'Atzr|IwEBIA...', + endpoint: Endpoint::NA, +)->seller(); + +$connector->debugRequest( + function (PendingRequest $pendingRequest, RequestInterface $psrRequest) { + dd($pendingRequest->headers()->all(), $psrRequest); + } +); ``` +Then make requests with the connector as usual, and you'll hit the closure above every time a request is fired. You can also debug responses in a similar fashion – check out the [Saloon docs](https://docs.saloon.dev/digging-deeper/debugging#debugging-responses) for more details. + ## Supported API segments @@ -199,322 +161,379 @@ use SellingPartnerApi\Model\SellersV1 as Sellers; It also means that if a new version of an existing API is introduced, the library can be updated to include that new version without introducing breaking changes. ### Seller APIs -* [A+ Content API (2020-11-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/AplusContentV20201101Api.md) -* [Authorization API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/AuthorizationV1Api.md) -* [Catalog Items API (2022-04-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/CatalogItemsV20220401Api.md) -* [Catalog Items API (2021-12-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/CatalogItemsV20201201Api.md) -* [Catalog Items API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/CatalogItemsV0Api.md) -* [EasyShip API (2022-03-23)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/EasyShipV20220323Api.md) -* [FBA Inbound API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FbaInboundV0Api.md) -* [FBA Inbound Eligibility API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FbaInboundEligibilityV1Api.md) -* [FBA Inventory API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FbaInventoryV1Api.md) -* [FBA Outbound API (2020-07-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FbaOutboundV20200701Api.md) -* [Feeds API (2021-06-30)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FeedsV20210630Api.md) -* [Fees API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FeesV0Api.md) -* [Finances API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FinancesV0Api.md) -* [Listings API (2021-08-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ListingsV20210801Api.md) -* [Listings Restrictions API (2021-08-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ListingsRestrictionsV20210801Api.md) -* [Merchant Fulfillment API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/MerchantFulfillmentV0Api.md) -* [Messaging API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/MessagingV1Api.md) -* [Notifications API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/NotificationsV1Api.md) -* [Orders API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/OrdersV0Api.md) -* [Product Pricing API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ProductPricingV0Api.md) -* [Product Pricing API (2022-05-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ProductPricingV20220501Api.md) -* [Product Type Definitions API (2020-09-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ProductTypeDefinitionsV20200901Api.md) -* [Replenishment API (2022-11-07)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ReplenishmentV20221107Api.md) -* [Reports API (2021-06-30)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ReportsV20210630Api.md) -* [Sales API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/SalesV1Api.md) -* [Sellers API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/SellersV1Api.md) -* [Service API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ServiceV1Api.md) -* [Shipment Invoicing API (V0)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ShipmentInvoicingV0Api.md) -* [Shipping API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ShippingV1Api.md) -* [Shipping API (V2)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ShippingV2Api.md) -* [Small and Light API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/SmallAndLightV1Api.md) -* [Solicitations API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/SolicitationsV1Api.md) -* [Restricted Data Tokens API (2021-03-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/TokensV20210301Api.md) -* [Uploads API (2020-11-01)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/UploadsV20201101Api.md) + +Seller APIs are accessed via the `SellerConnector` class: + +```php +seller(); +``` + +* **Application Management API (v2023-11-30)** ([docs](https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-reference)) + ```php + $applicationManagementApi = $sellerConnector->applicationManagement(); + ``` +* **A+ Content API (v2020-11-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/selling-partner-api-for-a-content-management)) + ```php + $aPlusContentApi = $sellerConnector->aPlusContent(); + ``` +* **Authorization API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/authorization-api-v1-reference)) + ```php + $authorizationApi = $sellerConnector->authorization(); + ``` +* **Catalog Items API (v2022-04-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference)) + ```php + $catalogItemsApi = $sellerConnector->catalogItems(); + ``` +* **Catalog Items API (v2021-12-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2020-12-01-reference)) + ```php + $catalogItemsApi = $sellerConnector->catalogItemsV20211201(); + ``` +* **Catalog Items API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v0-reference)) + ```php + $catalogItemsApi = $sellerConnector->catalogItemsV0(); + ``` +* **Data Kiosk API (v2023-11-15)** ([docs](https://developer-docs.amazon.com/sp-api/v0/docs/data-kiosk-api-v2023-11-15-reference)) + ```php + $dataKioskApi = $sellerConnector->dataKiosk(); + ``` +* **EasyShip API (v2022-03-23)** ([docs](https://developer-docs.amazon.com/sp-api/docs/easy-ship-api-v2022-03-23-reference)) + ```php + $easyShipApi = $sellerConnector->easyShip(); + ``` +* **FBA Inbound API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/fulfillment-inbound-api-v0-reference)) + ```php + $fbaInboundApi = $sellerConnector->fbaInbound(); + ``` +* **FBA Inbound Eligibility API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/fbainboundeligibility-api-v1-reference)) + ```php + $fbaInboundEligibility = $sellerConnector->fbaInboundEligibility(); + ``` +* **FBA Inventory API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/fbainventory-api-v1-reference)) + ```php + $fbaInventoryApi = $sellerConnector->fbaInventory(); + ``` +* **FBA Outbound API (v2020-07-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-api-v2020-07-01-reference)) + ```php + $fbaOutboundApi = $sellerConnector->fbaOutbound(); + ``` +* **FBA Small and Light API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/fbasmallandlight-api-v1-reference)) + ```php + $fbaSmallAndLightApi = $sellerConnector->fbaSmallAndLight(); + ``` +* **Feeds API (v2021-06-30)** ([docs](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference)) + ```php + $feedsApi = $sellerConnector->feeds(); + ``` +* **Finances API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/finances-api-reference)) + ```php + $financesApi = $sellerConnector->finances(); + ``` +* **Listings Items API (v2021-08-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-reference)) + ```php + $listingsItemsApi = $sellerConnector->listingsItems(); + ``` +* **Listings Items API (v2020-09-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2020-09-01-reference)) + ```php + $listingsItemsApi = $sellerConnector->listingsItemsV20200901(); + ``` +* **Listings Restrictions API (v2021-08-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/listings-restrictions-api-v2021-08-01-reference)) + ```php + $listingsRestrictionsApi = $sellerConnector->listingsRestrictions(); + ``` +* **Merchant Fulfillment API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/merchant-fulfillment-api-v0-reference)) + ```php + $merchantFulfillmentApi = $sellerConnector->merchantFulfillment(); + ``` +* **Messaging API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/merchant-fulfillment-api-v0-reference)) + ```php + $messagingApi = $sellerConnector->messaging(); + ``` +* **Notifications API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-reference)) + ```php + $notificationsApi = $sellerConnector->notifications(); + ``` +* **Orders API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference)) + ```php + $ordersApi = $sellerConnector->orders(); + ``` +* **Product Fees API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/product-fees-api-v0-reference)) + ```php + $productFeesApi = $sellerConnector->productFees(); + ``` +* **Product Pricing API (v2022-05-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-reference)) + ```php + $productPricingApi = $sellerConnector->productPricing(); + ``` +* **Product Pricing API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v0-reference)) + ```php + $productPricingApi = $sellerConnector->productPricingV0(); + ``` +* **Product Type Definitions API (v2020-09-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/product-type-definitions-api-v2020-09-01-reference)) + ```php + $productTypeDefinitionsApi = $sellerConnector->productTypeDefinitions(); + ``` +* **Replenishment API (v2022-11-07)** ([docs](https://developer-docs.amazon.com/sp-api/docs/replenishment-api-v2022-11-07-use-case-guide)) + ```php + $replenishmentApi = $sellerConnector->replenishment(); + ``` +* **Reports API (v2021-06-30)** ([docs](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference)) + ```php + $reportsApi = $sellerConnector->reports(); + ``` +* **Sales API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/sales-api-v1-reference)) + ```php + $salesApi = $sellerConnector->sales(); + ``` +* **Sellers API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference)) + ```php + $sellersApi = $sellerConnector->sellers(); + ``` +* **Services API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/services-api-v1-reference)) + ```php + $servicesApi = $sellerConnector->services(); + ``` +* **Shipment Invoicing API (v0)** ([docs](https://developer-docs.amazon.com/sp-api/docs/shipment-invoicing-api-v0-reference)) + ```php + $shipmentInvoicingApi = $sellerConnector->shipmentInvoicing(); + ``` +* **Shipping API (v2)** ([docs](https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference)) + ```php + $shippingApi = $sellerConnector->shipping(); + ``` +* **Shipping API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/shipping-api-v1-reference)) + ```php + $shippingApi = $sellerConnector->shippingV1(); + ``` +* **Solicitations API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/solicitations-api-v1-reference)) + ```php + $solicitationsApi = $sellerConnector->solicitations(); + ``` +* **Supply Sources API (v2020-07-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/supply-sources-api-v2020-07-01-reference)) + ```php + $supplySourcesApi = $sellerConnector->supplySources(); + ``` +* **Tokens API (v2021-03-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/tokens-api-v2021-03-01-reference)) + ```php + $tokensApi = $sellerConnector->tokens(); + ``` +* **Uploads API (v2020-11-01)** ([docs](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference)) + ```php + $uploadsApi = $sellerConnector->uploads(); + ``` ### Vendor APIs -* [Direct Fulfillment Inventory API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentInventoryV1Api.md) -* [Direct Fulfillment Orders API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentOrdersV1Api.md) -* [Direct Fulfillment Orders API (2021-12-28)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentOrdersV20211228Api.md) -* [Direct Fulfillment Payments API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentPaymentsV1Api.md) -* [Direct Fulfillment Sandbox API (2021-10-28)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentSandboxV20211028Api.md) -* [Direct Fulfillment Shipping API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentShippingV1Api.md) -* [Direct Fulfillment Shipping API (2021-12-28)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentShippingV20211228Api.md) -* [Direct Fulfillment Transactions API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentTransactionsV1Api.md) -* [Direct Fulfillment Transactions API (2021-12-28)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorDirectFulfillmentTransactionsV20211228Api.md) -* [Invoices API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorInvoicesV1Api.md) -* [Orders API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorOrdersV1Api.md) -* [Shipping API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorShippingV1Api.md) -* [Transaction Status API (V1)](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/VendorTransactionStatusV1Api.md) + +Vendor APIs are accessed via the `VendorConnector` class: + +```php +vendor(); +``` + +* **Direct Fulfillment Inventory API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-inventory-api-v1-reference)) + ```php + $directFulfillmentInventoryApi = $vendorConnector->directFulfillmentInventory(); + ``` +* **Direct Fulfillment Orders API (v2021-12-28)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-orders-api-2021-12-28-reference)) + ```php + $directFulfillmentOrdersApi = $vendorConnector->directFulfillmentOrders(); + ``` +* **Direct Fulfillment Orders API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-orders-api-v1-reference)) + ```php + $directFulfillmentOrdersApi = $vendorConnector->directFulfillmentOrdersV1(); + ``` +* **Direct Fulfillment Payments API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-payments-api-v1-reference)) + ```php + $directFulfillmentPaymentsApi = $vendorConnector->directFulfillmentPayments(); + ``` +* **Direct Fulfillment Sandbox API (v2021-10-28)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-sandbox-test-data-api-2021-10-28-reference)) + ```php + $directFulfillmentSandboxApi = $vendorConnector->directFulfillmentSandbox(); + ``` +* **Direct Fulfillment Shipping API (v2021-12-28)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-shipping-api-2021-12-28-reference)) + ```php + $directFulfillmentShippingApi = $vendorConnector->directFulfillmentShipping(); + ``` +* **Direct Fulfillment Shipping API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-shipping-api-v1-reference)) + ```php + $directFulfillmentShippingApi = $vendorConnector->directFulfillmentShippingV1(); + ``` +* **Direct Fulfillment Transactions API (v2021-12-28)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-transactions-api-2021-12-28-reference)) + ```php + $directFulfillmentTransactionsApi = $vendorConnector->directFulfillmentTransactions(); + ``` +* **Direct Fulfillment Transactions API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-direct-fulfillment-transactions-api-v1-reference)) + ```php + $directFulfillmentTransactionsApi = $vendorConnector->directFulfillmentTransactionsV1(); + ``` +* **Invoices API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-invoices-api-v1-reference)) + ```php + $invoicesApi = $vendorConnector->invoices(); + ``` +* **Orders API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-orders-api-v1-reference)) + ```php + $ordersApi = $vendorConnector->orders(); + ``` +* **Shipments API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-shipments-api-v1-reference)) + ```php + $shipmentsApi = $vendorConnector->shipments(); + ``` +* **Transaction Status API (v1)** ([docs](https://developer-docs.amazon.com/sp-api/docs/vendor-transaction-status-api-v1-reference)) + ```php + $transactionStatusApi = $vendorConnector->transactionStatus(); + ``` ## Restricted operations -When you call a [restricted operation](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide), a Restricted Data Token (RDT) is automatically generated. If you're calling a restricted operation that accepts a [`data_elements`](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide#restricted-operations) parameter, you can pass `data_elements` values as a parameter to the API call. Check out the [getOrders](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/OrdersV0Api.md#getOrders), [getOrder](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/OrdersV0Api.md#getOrder), and [getOrderItems](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/OrdersV0Api.md#getOrderItems) documentation to see how to pass `data_elements` values to those calls. (At the time of writing, those are the only restricted operations that accept `data_elements` values.) +When you call a [restricted operation](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide), a Restricted Data Token (RDT) is automatically generated. If you're calling restricted operations that accept a [`dataElements`](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide#restricted-operations) parameter, specify the restricted data elements you want to retrieve in the `dataElements` parameter of `SellingPartnerApi::make()`. Currently, `getOrder`, `getOrders`, and `getOrderItems` are the only restricted operations that take a `dataElements` parameter. + +Note that if you want to call a restricted operation on a sandbox endpoint (e.g., `Endpoint::NA_SANDBOX`), you *should not* specify any `dataElements`. RDTs are not necessary for restricted operations in the sandbox. -Note that if you want to call a restricted operation on a sandbox endpoint (e.g., `Endpoint::NA_SANDBOX`), you *should not* pass a `data_elements` parameter. RDTs are not necessary for restricted operations. +If you would like to make calls on behalf of a delegatee application, you can specify the `delegatee` parameter in `SellingPartnerApi::make()`. This will cause the connector to generate a token for the delegatee application instead of the main application. ## Uploading and downloading documents -The Feeds and Reports APIs include operations that involve uploading and downloading documents to and from Amazon. Amazon encrypts all documents they generate, and requires that all uploaded documents be encrypted. The `SellingPartnerApi\Document` class handles all the encryption/decryption, given an instance of one of the `Model\ReportsV20210630\ReportDocument`, `Model\FeedsV20210630\FeedDocument`, or `Model\FeedsV20210630\CreateFeedDocumentResponse` classes. Instances of those classes are in the response returned by Amazon when you make a call to the [`getReportDocument`](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/ReportsV20210630.md#getReportDocument), [`getFeedDocument`](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FeedsV20210630.md#getFeedDocument), and [`createFeedDocument`](https://github.com/jlevers/selling-partner-api/blob/main/docs/Api/FeedsV20210630.md#createFeedDocument) endpoints, respectively. +The Feeds and Reports APIs include operations that involve uploading and downloading documents to and from Amazon. This library has integrated supports for uploading and downloading documents on the relevant DTOs: `ReportDocument`, `CreateFeedDocumentResponse`, and `FeedDocument`, which are the result of calling [`getReportDocument`](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference#getreportdocument), [`createFeedDocument`](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference#createfeeddocument), and [`getFeedDocument`](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference#getfeeddocument), respectively. ### Downloading a report document ```php -use SellingPartnerApi\Api\ReportsV20210630Api as ReportsApi; -use SellingPartnerApi\ReportType; +use SellingPartnerApi\SellingPartnerApi; -// Assume we've already fetched a report document ID, and that a $config object was defined above -$documentId = 'foo.1234'; -$reportType = ReportType::GET_FLAT_FILE_OPEN_LISTINGS_DATA; +$reportType = 'GET_MERCHANT_LISTINGS_DATA'; +// Assume we already got a report document ID from a previous getReport call +$documentId = '1234567890.asdf'; -$reportsApi = new ReportsApi($config); -$reportDocumentInfo = $reportsApi->getReportDocument($documentId, $reportType['name']); +$connector = SellingPartnerApi::make(/* ... */)->seller(); +$response = $connector->reports()->getReportDocument($documentId, $reportType); + +$reportDocument = $response->dto(); -$docToDownload = new SellingPartnerApi\Document($reportDocumentInfo, $reportType); -$contents = $docToDownload->download(); // The raw report text /* - * - Array of associative arrays, (each sub array corresponds to a row of the report) if content type is ContentType::TAB or ContentType::CSV - * - A nested associative array (from json_decode) if content type is ContentType::JSON - * - The raw report data if content type is ContentType::PLAIN or ContentType::PDF - * - PHPOffice Spreadsheet object if content type is ContentType::XLSX - * - SimpleXML object if the content type is ContentType::XML + * - Array of arrays, where each sub array corresponds to a row of the report, if this is a TSV, CSV, or XLSX report + * - A nested associative array (from json_decode) if this is a JSON report + * - The raw report data if this is a TXT or PDF report + * - A SimpleXMLElement object if this is an XML report */ -$data = $docToDownload->getData(); -// ... do something with report data +$contents = $reportDocument->download($reportType); ``` -If you are manipulating huge reports you can use `downloadStream()` to minimize the memory consumption. `downloadStream()` will return a `Psr\Http\Message\StreamInterface`. +The `download` method has three parameters: +* `documentType` (string): The report type (or feed type of the feed result document being fetched). This is required if you want the document data parsed for you. +* `preProcess` (bool): Whether to preprocess the document data. If `true`, the document data will be parsed and formatted into a more usable format. If `false`, the raw document text will be returned. Defaults to `true`. +* `encoding` (string): The encoding of the document data. Defaults to `UTF-8`. + +If you are working with huge documents you can use `downloadStream()` to minimize the memory consumption. `downloadStream()` returns a `Psr\Http\Message\StreamInterface`. ```php -// line to replace >>>>$contents = $docToDownload->download(); // The raw report text -$streamContents = $docToDownload->downloadStream(); // The raw report stream +$streamContents = $reportDocument->downloadStream(); // The raw report stream ``` ### Uploading a feed document ```php -use SellingPartnerApi\Api\FeedsV20210630Api as FeedsApi; -use SellingPartnerApi\FeedType; -use SellingPartnerApi\Model\FeedsV20210630 as Feeds; +use SellingPartnerApi\Seller\FeedsV20210630\Dto\CreateFeedDocumentSpecification; +use SellingPartnerApi\Seller\FeedsV20210630\Dto\CreateFeedSpecification; +use SellingPartnerApi\Seller\FeedsV20210630\Responses\CreateFeedDocumentResponse; -$feedType = FeedType::POST_PRODUCT_PRICING_DATA; -$feedsApi = new FeedsApi($config); +$feedType = 'POST_PRODUCT_PRICING_DATA'; + +$connector = SellingPartnerApi::make(/* ... */)->seller(); +$feedsApi = $connector->feeds(); // Create feed document -$createFeedDocSpec = new Feeds\CreateFeedDocumentSpecification(['content_type' => $feedType['contentType']]); -$feedDocumentInfo = $feedsApi->createFeedDocument($createFeedDocSpec); -$feedDocumentId = $feedDocumentInfo->getFeedDocumentId(); +$contentType = CreateFeedDocumentResponse::getContentType($feedType); +$createFeedDoc = new CreateFeedDocumentSpecification($contentType); +$createDocumentResponse = $feedsApi->createFeedDocument($createFeedDoc); +$feedDocument = $createDocumentResponse->dto(); // Upload feed contents to document -$feedContents = file_get_contents(''); -// The Document constructor accepts a custom \GuzzleHttp\Client object as an optional 3rd parameter. If that -// parameter is passed, your custom Guzzle client will be used when uploading the feed document contents to Amazon. -$docToUpload = new SellingPartnerApi\Document($feedDocumentInfo, $feedType); -$docToUpload->upload($feedContents); - -$createFeedSpec = new Feeds\CreateFeedSpecification(); -$createFeedSpec->setMarketplaceIds(['ATVPDKIKX0DER']); -$createFeedSpec->setInputFeedDocumentId($feedDocumentId); -$createFeedSpec->setFeedType($feedType['name']); - -$createFeedResult = $feedsApi->createFeed($createFeedSpec); -$feedId = $createFeedResult->getFeedId(); +$feedContents = file_get_contents('your/feed/file.xml'); +$feedDocument->upload($feedType, $feedContents); + +$createFeedSpec = new CreateFeedSpecification( + marketplaceIds: ['ATVPDKIKX0DER'], + inputFeedDocumentId: $feedDocument->feedDocumentId, + feedType: $feedType, +); + +// Create feed with the feed document we just uploaded +$createFeedResponse = $feedsApi->createFeed($createFeedRequest); +$feedId = $createFeedResponse->dto()->feedId; ``` -If you are manipulating huge feed documents you can pass to `upload()` anything that Guzzle can turn into a stream. +If you are working with feed documents that are too large to fit in memory, you can pass anything that Guzzle can turn into a stream into `FeedDocument::upload()` instead of a string. ## Downloading a feed result document -This works very similarly to downloading a report document: - -```php -use SellingPartnerApi\Api\FeedsV20210630Api as FeedsApi; -use SellingPartnerApi\FeedType; - -$feedType = FeedType::POST_PRODUCT_PRICING_DATA; -$feedsApi = new FeedsApi($config); - -// ... -// Create and upload a feed document, and wait for it to finish processing -// ... - -$feedId = '1234567890'; // From the createFeed call -$feed = $feedsApi->getFeed($feedId); - -$feedResultDocumentId = $feed->resultFeedDocumentId; -$feedResultDocument = $feedsApi->getFeedDocument($feedResultDocumentId); - -$docToDownload = new SellingPartnerApi\Document($feedResultDocument, $feedType); -$contents = $docToDownload->download(); // The raw report data -$data = $docToDownload->getData(); // Parsed/formatted report data -``` - - -## Working with model classes - -Most operations have one or more models associated with it. These models are classes that contain the data needed to make a certain kind of request to the API, or contain the data returned by a given request type. All of the models share the same general interface: you can either specify all the model's attributes during initialization, or set each attribute after the fact. Here's an example using the Service API's `Buyer` model ([docs](https://github.com/jlevers/selling-partner-api/blob/main/docs/Model/ServiceV1/Buyer.md), ([source](https://github.com/jlevers/selling-partner-api/blob/main/lib/Model/ServiceV1/Buyer.php)). - -The `Buyer` model has four attributes: `buyer_id`, `name`, `phone`, and `is_prime_member`. (If you're wondering how you would figure out which attributes the model has on your own, check out the `docs` link above.) To create an instance of the `Buyer` model with all those attributes set: - -```php -$buyer = new SellingPartnerApi\Model\ServiceV1\Buyer([ - "buyer_id" => "ABCDEFGHIJKLMNOPQRSTU0123456", - "name" => "Jane Doe", - "phone" => "+12345678901", - "is_prime_member" => true -]); -``` - -Alternatively, you can create an instance of the `Buyer` model and then populate its fields: - -```php -$buyer = new SellingPartnerApi\Model\ServiceV1\Buyer(); -$buyer->buyerId = "ABCDEFGHIJKLMNOPQRSTU0123456"; -$buyer->name = "Jane Doe"; -$buyer->phone = "+12345678901"; -$buyer->isPrimeMember = true; -``` - -Each model also has the property accessors you might expect: +This process is very similar to downloading a report document: ```php -$buyer->buyerId; // -> "ABCDEFGHIJKLMNOPQRSTU0123456" -$buyer->name; // -> "Jane Doe" -$buyer->phone; // -> "+12345678901" -$buyer->isPrimeMember; // -> true -``` +use SellingPartnerApi\SellingPartnerApi; -Models can (and usually do) have other models as attributes: +$feedType = 'POST_PRODUCT_PRICING_DATA'; +// Assume we already got a feed result document ID from a previous getFeed call +$documentId = '1234567890.asdf'; -``` php -$serviceJob = new SellingPartnerApi\Model\ServiceV1\Buyer([ - // ... - "buyer" => $buyer, - // ... -]); +$connector = SellingPartnerApi::make(/* ... */)->seller(); +$response = $connector->feeds()->getFeedDocument($documentId); +$feedDocument = $response->dto(); -$serviceJob->buyer; // -> [Buyer instance] -$serviceJob->buyer->name; // -> "Jane Doe" +$contents = $feedResultDocument->download($feedType); ``` +## Naming conventions -## Response headers -Amazon includes some useful headers with each SP API response. If you need those for any reason, you can get an associative array of response headers by calling `getHeaders()` on the response object. For instance: +Wherever possible, the names of the classes, methods, and properties in this package are identical to the names used in the Selling Partner API documentation. There are limited cases where this is not true, such as where the SP API documentation itself is inconsistent: for instance, there are some cases the SP API docs name properties in `UpperCamelCase` instead of `camelCase`, and in those cases the properties are named in `camelCase` in this package. Methods are named in `camelCase`, and DTOs are named in `UpperCamelCase`. -```php -getMarketplaceParticipations(); - $headers = $result->headers; - print_r($headers); -} catch (Exception $e) { - echo 'Exception when calling SellersApi->getMarketplaceParticipations: ', $e->getMessage(), PHP_EOL; -} -``` +## API versions -## Custom Authorization Signer -You may need to do custom operations while signing the API request. You can create a custom authorization signer by creating an implementation of the [AuthorizationSignerContract](lib/Contract/AuthorizationSignerContract.php) interface and passing it into the `Configuration` constructor array. +Some Selling Partner API segments have multiple versions. For instance, the Product Pricing API has two versions: `v0` and `v2022-05-01`. The connector method `SellerConnector::productPricing()` points to the newer version (`v2022-05-01`), but you can get an instance of the older version by calling `SellerConnector::productPricingV0()`. Or, if you want to explicitly specify `v2022-05-01` in a way that will not break in a future major release if a new version of the API is introduced, you can call `SellerConnector::productPricingV20220501()`. -```php -// CustomAuthorizationSigner.php -use Psr\Http\Message\RequestInterface; -use SellingPartnerApi\Contract\AuthorizationSignerContract; - -class CustomAuthorizationSigner implements AuthorizationSignerContract -{ - public function sign(RequestInterface $request, Credentials $credentials): RequestInterface - { - // Calculate request signature and request date. - - $requestDate = '20220426T202300Z'; - $signatureHeaderValue = 'some calculated signature value'; - - $signedRequest = $request - ->withHeader('Authorization', $signatureHeaderValue) - ->withHeader('x-amz-date', $requestDate); - - return $signedRequest; - } +More generally, the latest version of a given API segment (at the time when the major version of this library you're using was released) can be accessed with `Connector::apiName()`. Specific versions can be accessed with `Connector::apiNameV()`. - // ... -} +## Working with DTOs -// Consumer code - new CustomAuthorizationSigner(), -]); -$api = new SellersApi($config); -try { - $result = $api->getMarketplaceParticipations(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SellersApi->getMarketplaceParticipations: ', $e->getMessage(), PHP_EOL; -} -``` - -## Custom Request Signer -You may also need to customize the entire request signing process – for instance, if you need to call an external service in the process of signing the request. You can do so by creating an implementation of the [RequestSignerContract](lib/Contract/RequestSignerContract.php) interface, and passing an instance of it into the `Configuration` constructor array. +Some methods take DTOs as parameters. For instance, the `confirmShipment` method in the Orders API takes a `ConfirmShipmentRequest` DTO as a parameter. You can call `confirmShipment` like so: ```php -// RemoteRequestSigner.php -use Psr\Http\Message\RequestInterface; -use SellingPartnerApi\Contract\RequestSignerContract; - -class RemoteRequestSigner implements RequestSignerContract -{ - public function signRequest( - RequestInterface $request, - ?string $scope = null, - ?string $restrictedPath = null, - ?string $operation = null - ): RequestInterface { - // Sign request by sending HTTP call - // to external/separate service instance. - - return $signedRequest; - } -} - -// Consumer code new RemoteRequestSigner(), -]); -$api = new SellersApi($config); -try { - $result = $api->getMarketplaceParticipations(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SellersApi->getMarketplaceParticipations: ', $e->getMessage(), PHP_EOL; -} +use SellingPartnerApi\Seller\OrdersV0\Dto; +use SellingPartnerApi\SellingPartnerApi; + +$confirmShipmentRequest = new Dto\ConfirmShipmentRequest( + packageDetail: new Dto\PackageDetail( + packageReferenceId: 'PKG123', + carrierCode: 'USPS', + trackingNumber: 'ASDF1234567890', + shipDate: new DateTime('2024-01-01 12:00:00'), + orderItems: [ + new Dto\ConfirmShipmentOrderItem( + orderItemId: '1234567890', + quantity: 1, + ), + new Dto\ConfirmShipmentOrderItem( + orderItemId: '0987654321', + quantity: 2, + ) + ], + ), + marketplaceId: 'ATVPDKIKX0DER', +); + +$response = $ordersApi->confirmShipment( + orderId: '123-4567890-1234567', + confirmShipmentRequest: $confirmShipmentRequest, +) ``` diff --git a/bin/console b/bin/console new file mode 100644 index 000000000..25798d3f8 --- /dev/null +++ b/bin/console @@ -0,0 +1,20 @@ +add(new DownloadSchemas()); +$application->add(new RefactorSchemas()); +$application->add(new GenerateSchemas()); +$application->add(new UpdateVersion()); + +// Run the application +$application->run(); diff --git a/composer.json b/composer.json index 5535332e4..3c0c721fa 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "jlevers/selling-partner-api", - "version": "5.10.2", + "version": "6.0.0", "description": "PHP client for Amazon's Selling Partner API", "keywords": [ "api", @@ -21,25 +21,39 @@ } ], "require": { - "php": ">=7.3", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", "guzzlehttp/guzzle": "^6.0|^7.0", - "phpoffice/phpspreadsheet": "1.25.2" + "saloonphp/saloon": "^3.4", + "openspout/openspout": "^4.23" }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0", - "friendsofphp/php-cs-fixer": "^3.4" + "composer/semver": "^3.4", + "symfony/console": "^6.3", + "psy/psysh": "^0.11.22", + "voku/simple_html_dom": "^4.8", + "crescat-io/saloon-sdk-generator": "dev-master", + "laravel/pint": "^1.13" }, "autoload": { - "psr-4": { "SellingPartnerApi\\" : "lib/" } + "psr-4": { + "SellingPartnerApi\\": "src/" + }, + "files": [ + "src/Generator/constants.php" + ] }, "autoload-dev": { - "psr-4": { "SellingPartnerApi\\Tests\\" : "test/" } + "psr-4": { + "SellingPartnerApi\\Tests\\": "test/" + } }, "scripts": { "test": "vendor/bin/phpunit", - "lint": "vendor/bin/php-cs-fixer fix" + "clean": "rm -rf docs src/models/*/* src/apis/*/*/*", + "format": "php vendor/bin/pint" } } diff --git a/docs/Api/AplusContentV20201101Api.md b/docs/Api/AplusContentV20201101Api.md deleted file mode 100644 index 5f2b4ee5f..000000000 --- a/docs/Api/AplusContentV20201101Api.md +++ /dev/null @@ -1,701 +0,0 @@ -# SellingPartnerApi\AplusContentV20201101Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createContentDocument()**](AplusContentV20201101Api.md#createContentDocument) | **POST** /aplus/2020-11-01/contentDocuments | -[**getContentDocument()**](AplusContentV20201101Api.md#getContentDocument) | **GET** /aplus/2020-11-01/contentDocuments/{contentReferenceKey} | -[**listContentDocumentAsinRelations()**](AplusContentV20201101Api.md#listContentDocumentAsinRelations) | **GET** /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins | -[**postContentDocumentApprovalSubmission()**](AplusContentV20201101Api.md#postContentDocumentApprovalSubmission) | **POST** /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions | -[**postContentDocumentAsinRelations()**](AplusContentV20201101Api.md#postContentDocumentAsinRelations) | **POST** /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins | -[**postContentDocumentSuspendSubmission()**](AplusContentV20201101Api.md#postContentDocumentSuspendSubmission) | **POST** /aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions | -[**searchContentDocuments()**](AplusContentV20201101Api.md#searchContentDocuments) | **GET** /aplus/2020-11-01/contentDocuments | -[**searchContentPublishRecords()**](AplusContentV20201101Api.md#searchContentPublishRecords) | **GET** /aplus/2020-11-01/contentPublishRecords | -[**updateContentDocument()**](AplusContentV20201101Api.md#updateContentDocument) | **POST** /aplus/2020-11-01/contentDocuments/{contentReferenceKey} | -[**validateContentDocumentAsinRelations()**](AplusContentV20201101Api.md#validateContentDocumentAsinRelations) | **POST** /aplus/2020-11-01/contentAsinValidations | - - -## `createContentDocument()` - -```php -createContentDocument($marketplace_id, $post_content_document_request): \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse -``` - - - -Creates a new A+ Content document. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$post_content_document_request = new \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest(); // \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest | The content document request details. - -try { - $result = $apiInstance->createContentDocument($marketplace_id, $post_content_document_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->createContentDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **post_content_document_request** | [**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest**](../Model/AplusContentV20201101/PostContentDocumentRequest.md)| The content document request details. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse**](../Model/AplusContentV20201101/PostContentDocumentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `getContentDocument()` - -```php -getContentDocument($content_reference_key, $marketplace_id, $included_data_set): \SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse -``` - - - -Returns an A+ Content document, if available. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$included_data_set = array('included_data_set_example'); // string[] | The set of A+ Content data types to include in the response. - -try { - $result = $apiInstance->getContentDocument($content_reference_key, $marketplace_id, $included_data_set); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->getContentDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **included_data_set** | [**string[]**](../Model/AplusContentV20201101/string.md)| The set of A+ Content data types to include in the response. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse**](../Model/AplusContentV20201101/GetContentDocumentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `listContentDocumentAsinRelations()` - -```php -listContentDocumentAsinRelations($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token): \SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse -``` - - - -Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the asinSet parameter, the operation returns all ASINs related to the content document. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$included_data_set = array('included_data_set_example'); // string[] | The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. -$asin_set = array('asin_set_example'); // string[] | The set of ASINs. -$page_token = 'page_token_example'; // string | A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. - -try { - $result = $apiInstance->listContentDocumentAsinRelations($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->listContentDocumentAsinRelations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **included_data_set** | [**string[]**](../Model/AplusContentV20201101/string.md)| The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. | [optional] - **asin_set** | [**string[]**](../Model/AplusContentV20201101/string.md)| The set of ASINs. | [optional] - **page_token** | **string**| A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse**](../Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `postContentDocumentApprovalSubmission()` - -```php -postContentDocumentApprovalSubmission($content_reference_key, $marketplace_id): \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse -``` - - - -Submits an A+ Content document for review, approval, and publishing. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. - -try { - $result = $apiInstance->postContentDocumentApprovalSubmission($content_reference_key, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->postContentDocumentApprovalSubmission: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse**](../Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `postContentDocumentAsinRelations()` - -```php -postContentDocumentAsinRelations($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request): \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse -``` - - - -Replaces all ASINs related to the specified A+ Content document, if available. This may add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content document from that ASIN. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$post_content_document_asin_relations_request = new \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest(); // \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest | The content document ASIN relations request details. - -try { - $result = $apiInstance->postContentDocumentAsinRelations($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->postContentDocumentAsinRelations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **post_content_document_asin_relations_request** | [**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest**](../Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.md)| The content document ASIN relations request details. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse**](../Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `postContentDocumentSuspendSubmission()` - -```php -postContentDocumentSuspendSubmission($content_reference_key, $marketplace_id): \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse -``` - - - -Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN relations. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. - -try { - $result = $apiInstance->postContentDocumentSuspendSubmission($content_reference_key, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->postContentDocumentSuspendSubmission: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse**](../Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `searchContentDocuments()` - -```php -searchContentDocuments($marketplace_id, $page_token): \SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse -``` - - - -Returns a list of all A+ Content documents assigned to a selling partner. This operation returns only the metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+ Content documents. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$page_token = 'page_token_example'; // string | A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. - -try { - $result = $apiInstance->searchContentDocuments($marketplace_id, $page_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->searchContentDocuments: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **page_token** | **string**| A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse**](../Model/AplusContentV20201101/SearchContentDocumentsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `searchContentPublishRecords()` - -```php -searchContentPublishRecords($marketplace_id, $asin, $page_token): \SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse -``` - - - -Searches for A+ Content publishing records, if available. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN). -$page_token = 'page_token_example'; // string | A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. - -try { - $result = $apiInstance->searchContentPublishRecords($marketplace_id, $asin, $page_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->searchContentPublishRecords: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **asin** | **string**| The Amazon Standard Identification Number (ASIN). | - **page_token** | **string**| A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse**](../Model/AplusContentV20201101/SearchContentPublishRecordsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `updateContentDocument()` - -```php -updateContentDocument($content_reference_key, $marketplace_id, $post_content_document_request): \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse -``` - - - -Updates an existing A+ Content document. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$content_reference_key = 'content_reference_key_example'; // string | The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$post_content_document_request = new \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest(); // \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest | The content document request details. - -try { - $result = $apiInstance->updateContentDocument($content_reference_key, $marketplace_id, $post_content_document_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->updateContentDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **content_reference_key** | **string**| The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. | - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **post_content_document_request** | [**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest**](../Model/AplusContentV20201101/PostContentDocumentRequest.md)| The content document request details. | - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse**](../Model/AplusContentV20201101/PostContentDocumentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) - -## `validateContentDocumentAsinRelations()` - -```php -validateContentDocumentAsinRelations($marketplace_id, $post_content_document_request, $asin_set): \SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse -``` - - - -Checks if the A+ Content document is valid for use on a set of ASINs. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 10 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AplusContentV20201101Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The identifier for the marketplace where the A+ Content is published. -$post_content_document_request = new \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest(); // \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest | The content document request details. -$asin_set = array('asin_set_example'); // string[] | The set of ASINs. - -try { - $result = $apiInstance->validateContentDocumentAsinRelations($marketplace_id, $post_content_document_request, $asin_set); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AplusContentV20201101Api->validateContentDocumentAsinRelations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The identifier for the marketplace where the A+ Content is published. | - **post_content_document_request** | [**\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest**](../Model/AplusContentV20201101/PostContentDocumentRequest.md)| The content document request details. | - **asin_set** | [**string[]**](../Model/AplusContentV20201101/string.md)| The set of ASINs. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse**](../Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[AplusContentV20201101 Model list]](../Model/AplusContentV20201101) -[[README]](../../README.md) diff --git a/docs/Api/AuthorizationV1Api.md b/docs/Api/AuthorizationV1Api.md deleted file mode 100644 index 7c86ee7cf..000000000 --- a/docs/Api/AuthorizationV1Api.md +++ /dev/null @@ -1,74 +0,0 @@ -# SellingPartnerApi\AuthorizationV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAuthorizationCode()**](AuthorizationV1Api.md#getAuthorizationCode) | **GET** /authorization/v1/authorizationCode | Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. - - -## `getAuthorizationCode()` - -```php -getAuthorizationCode($selling_partner_id, $developer_id, $mws_auth_token): \SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse -``` - -Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. - -With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller's behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\AuthorizationV1Api($config); -$selling_partner_id = 'selling_partner_id_example'; // string | The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. -$developer_id = 'developer_id_example'; // string | Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. -$mws_auth_token = 'mws_auth_token_example'; // string | The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. - -try { - $result = $apiInstance->getAuthorizationCode($selling_partner_id, $developer_id, $mws_auth_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling AuthorizationV1Api->getAuthorizationCode: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **selling_partner_id** | **string**| The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. | - **developer_id** | **string**| Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. | - **mws_auth_token** | **string**| The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. | - -### Return type - -[**\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse**](../Model/AuthorizationV1/GetAuthorizationCodeResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload`, `errors` - -[[Top]](#) [[API list]](../) -[[AuthorizationV1 Model list]](../Model/AuthorizationV1) -[[README]](../../README.md) diff --git a/docs/Api/CatalogItemsV0Api.md b/docs/Api/CatalogItemsV0Api.md deleted file mode 100644 index 58fba8113..000000000 --- a/docs/Api/CatalogItemsV0Api.md +++ /dev/null @@ -1,206 +0,0 @@ -# SellingPartnerApi\CatalogItemsV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCatalogItem()**](CatalogItemsV0Api.md#getCatalogItem) | **GET** /catalog/v0/items/{asin} | -[**listCatalogCategories()**](CatalogItemsV0Api.md#listCatalogCategories) | **GET** /catalog/v0/categories | -[**listCatalogItems()**](CatalogItemsV0Api.md#listCatalogItems) | **GET** /catalog/v0/items | - - -## `getCatalogItem()` - -```php -getCatalogItem($marketplace_id, $asin): \SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse -``` - - - -Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. -_Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for the item. -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. - -try { - $result = $apiInstance->getCatalogItem($marketplace_id, $asin); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV0Api->getCatalogItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for the item. | - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse**](../Model/CatalogItemsV0/GetCatalogItemResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV0 Model list]](../Model/CatalogItemsV0) -[[README]](../../README.md) - -## `listCatalogCategories()` - -```php -listCatalogCategories($marketplace_id, $asin, $seller_sku): \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse -``` - - - -Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for the item. -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. -$seller_sku = 'seller_sku_example'; // string | Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. - -try { - $result = $apiInstance->listCatalogCategories($marketplace_id, $asin, $seller_sku); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV0Api->listCatalogCategories: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for the item. | - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | [optional] - **seller_sku** | **string**| Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse**](../Model/CatalogItemsV0/ListCatalogCategoriesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV0 Model list]](../Model/CatalogItemsV0) -[[README]](../../README.md) - -## `listCatalogItems()` - -```php -listCatalogItems($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan): \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse -``` - - - -Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. -_Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for which items are returned. -$query = 'query_example'; // string | Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. -$query_context_id = 'query_context_id_example'; // string | An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. -$seller_sku = 'seller_sku_example'; // string | 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. -$upc = 'upc_example'; // string | A 12-digit bar code used for retail packaging. -$ean = 'ean_example'; // string | A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. -$isbn = 'isbn_example'; // string | The unique commercial book identifier used to identify books internationally. -$jan = 'jan_example'; // string | A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. - -try { - $result = $apiInstance->listCatalogItems($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV0Api->listCatalogItems: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for which items are returned. | - **query** | **string**| Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. | [optional] - **query_context_id** | **string**| An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. | [optional] - **seller_sku** | **string**| 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. | [optional] - **upc** | **string**| A 12-digit bar code used for retail packaging. | [optional] - **ean** | **string**| A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. | [optional] - **isbn** | **string**| The unique commercial book identifier used to identify books internationally. | [optional] - **jan** | **string**| A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse**](../Model/CatalogItemsV0/ListCatalogItemsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV0 Model list]](../Model/CatalogItemsV0) -[[README]](../../README.md) diff --git a/docs/Api/CatalogItemsV20201201Api.md b/docs/Api/CatalogItemsV20201201Api.md deleted file mode 100644 index 02df03812..000000000 --- a/docs/Api/CatalogItemsV20201201Api.md +++ /dev/null @@ -1,157 +0,0 @@ -# SellingPartnerApi\CatalogItemsV20201201Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCatalogItem()**](CatalogItemsV20201201Api.md#getCatalogItem) | **GET** /catalog/2020-12-01/items/{asin} | -[**searchCatalogItems()**](CatalogItemsV20201201Api.md#searchCatalogItems) | **GET** /catalog/2020-12-01/items | - - -## `getCatalogItem()` - -```php -getCatalogItem($asin, $marketplace_ids, $included_data, $locale): \SellingPartnerApi\Model\CatalogItemsV20201201\Item -``` - - - -Retrieves details for an item in the Amazon catalog. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV20201201Api($config); -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. -$included_data = summaries; // string[] | A comma-delimited list of data sets to include in the response. Default: summaries. -$locale = en_US; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. - -try { - $result = $apiInstance->getCatalogItem($asin, $marketplace_ids, $included_data, $locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV20201201Api->getCatalogItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - **marketplace_ids** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. | - **included_data** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of data sets to include in the response. Default: summaries. | [optional] - **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV20201201\Item**](../Model/CatalogItemsV20201201/Item.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV20201201 Model list]](../Model/CatalogItemsV20201201) -[[README]](../../README.md) - -## `searchCatalogItems()` - -```php -searchCatalogItems($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale): \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults -``` - - - -Search for and return a list of Amazon catalog items and associated information. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV20201201Api($config); -$keywords = shoes; // string[] | A comma-delimited list of words or item identifiers to search the Amazon catalog for. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$included_data = summaries; // string[] | A comma-delimited list of data sets to include in the response. Default: summaries. -$brand_names = Beautiful Boats; // string[] | A comma-delimited list of brand names to limit the search to. -$classification_ids = 12345678; // string[] | A comma-delimited list of classification identifiers to limit the search to. -$page_size = 9; // int | Number of results to be returned per page. -$page_token = sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234; // string | A token to fetch a certain page when there are multiple pages worth of results. -$keywords_locale = en_US; // string | The language the keywords are provided in. Defaults to the primary locale of the marketplace. -$locale = en_US; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. - -try { - $result = $apiInstance->searchCatalogItems($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV20201201Api->searchCatalogItems: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **keywords** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of words or item identifiers to search the Amazon catalog for. | - **marketplace_ids** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **included_data** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of data sets to include in the response. Default: summaries. | [optional] - **brand_names** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of brand names to limit the search to. | [optional] - **classification_ids** | [**string[]**](../Model/CatalogItemsV20201201/string.md)| A comma-delimited list of classification identifiers to limit the search to. | [optional] - **page_size** | **int**| Number of results to be returned per page. | [optional] [default to 10] - **page_token** | **string**| A token to fetch a certain page when there are multiple pages worth of results. | [optional] - **keywords_locale** | **string**| The language the keywords are provided in. Defaults to the primary locale of the marketplace. | [optional] - **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults**](../Model/CatalogItemsV20201201/ItemSearchResults.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV20201201 Model list]](../Model/CatalogItemsV20201201) -[[README]](../../README.md) diff --git a/docs/Api/CatalogItemsV20220401Api.md b/docs/Api/CatalogItemsV20220401Api.md deleted file mode 100644 index a5bb468ff..000000000 --- a/docs/Api/CatalogItemsV20220401Api.md +++ /dev/null @@ -1,163 +0,0 @@ -# SellingPartnerApi\CatalogItemsV20220401Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCatalogItem()**](CatalogItemsV20220401Api.md#getCatalogItem) | **GET** /catalog/2022-04-01/items/{asin} | -[**searchCatalogItems()**](CatalogItemsV20220401Api.md#searchCatalogItems) | **GET** /catalog/2022-04-01/items | - - -## `getCatalogItem()` - -```php -getCatalogItem($asin, $marketplace_ids, $included_data, $locale): \SellingPartnerApi\Model\CatalogItemsV20220401\Item -``` - - - -Retrieves details for an item in the Amazon catalog. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV20220401Api($config); -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. -$included_data = summaries; // string[] | A comma-delimited list of data sets to include in the response. Default: `summaries`. -$locale = en_US; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. - -try { - $result = $apiInstance->getCatalogItem($asin, $marketplace_ids, $included_data, $locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV20220401Api->getCatalogItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - **marketplace_ids** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. | - **included_data** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of data sets to include in the response. Default: `summaries`. | [optional] - **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV20220401\Item**](../Model/CatalogItemsV20220401/Item.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV20220401 Model list]](../Model/CatalogItemsV20220401) -[[README]](../../README.md) - -## `searchCatalogItems()` - -```php -searchCatalogItems($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale): \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults -``` - - - -Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords. - -**Usage Plans:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\CatalogItemsV20220401Api($config); -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$identifiers = shoes; // string[] | A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. -$identifiers_type = ASIN; // string | Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. -$included_data = summaries; // string[] | A comma-delimited list of data sets to include in the response. Default: `summaries`. -$locale = en_US; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. -$keywords = shoes; // string[] | A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. -$brand_names = Beautiful Boats; // string[] | A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. -$classification_ids = 12345678; // string[] | A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. -$page_size = 9; // int | Number of results to be returned per page. -$page_token = sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234; // string | A token to fetch a certain page when there are multiple pages worth of results. -$keywords_locale = en_US; // string | The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. - -try { - $result = $apiInstance->searchCatalogItems($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling CatalogItemsV20220401Api->searchCatalogItems: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **identifiers** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. | [optional] - **identifiers_type** | **string**| Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. | [optional] - **included_data** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of data sets to include in the response. Default: `summaries`. | [optional] - **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional] - **seller_id** | **string**| A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. | [optional] - **keywords** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. | [optional] - **brand_names** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. | [optional] - **classification_ids** | [**string[]**](../Model/CatalogItemsV20220401/string.md)| A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. | [optional] - **page_size** | **int**| Number of results to be returned per page. | [optional] [default to 10] - **page_token** | **string**| A token to fetch a certain page when there are multiple pages worth of results. | [optional] - **keywords_locale** | **string**| The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults**](../Model/CatalogItemsV20220401/ItemSearchResults.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[CatalogItemsV20220401 Model list]](../Model/CatalogItemsV20220401) -[[README]](../../README.md) diff --git a/docs/Api/EasyShipV20220323Api.md b/docs/Api/EasyShipV20220323Api.md deleted file mode 100644 index 9521bd039..000000000 --- a/docs/Api/EasyShipV20220323Api.md +++ /dev/null @@ -1,358 +0,0 @@ -# SellingPartnerApi\EasyShipV20220323Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createScheduledPackage()**](EasyShipV20220323Api.md#createScheduledPackage) | **POST** /easyShip/2022-03-23/package | -[**createScheduledPackageBulk()**](EasyShipV20220323Api.md#createScheduledPackageBulk) | **POST** /easyShip/2022-03-23/packages/bulk | -[**getScheduledPackage()**](EasyShipV20220323Api.md#getScheduledPackage) | **GET** /easyShip/2022-03-23/package | -[**listHandoverSlots()**](EasyShipV20220323Api.md#listHandoverSlots) | **POST** /easyShip/2022-03-23/timeSlot | -[**updateScheduledPackages()**](EasyShipV20220323Api.md#updateScheduledPackages) | **PATCH** /easyShip/2022-03-23/package | - - -## `createScheduledPackage()` - -```php -createScheduledPackage($create_scheduled_package_request): \SellingPartnerApi\Model\EasyShipV20220323\Package -``` - - - -Schedules an Easy Ship order and returns the scheduled package information. - -This operation does the following: - -* Specifies the time slot and handover method for the order to be scheduled for delivery. - -* Updates the Easy Ship order status. - -* Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide). - -* Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body. - -See the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\EasyShipV20220323Api($config); -$create_scheduled_package_request = new \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest(); // \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest - -try { - $result = $apiInstance->createScheduledPackage($create_scheduled_package_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling EasyShipV20220323Api->createScheduledPackage: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_scheduled_package_request** | [**\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest**](../Model/EasyShipV20220323/CreateScheduledPackageRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\EasyShipV20220323\Package**](../Model/EasyShipV20220323/Package.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[EasyShipV20220323 Model list]](../Model/EasyShipV20220323) -[[README]](../../README.md) - -## `createScheduledPackageBulk()` - -```php -createScheduledPackageBulk($create_scheduled_packages_request): \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse -``` - - - -This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)). - -Developers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. - -Regarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly. - -This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action. - -The table below displays the supported request and burst maximum rates: - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\EasyShipV20220323Api($config); -$create_scheduled_packages_request = new \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest(); // \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest - -try { - $result = $apiInstance->createScheduledPackageBulk($create_scheduled_packages_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling EasyShipV20220323Api->createScheduledPackageBulk: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_scheduled_packages_request** | [**\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest**](../Model/EasyShipV20220323/CreateScheduledPackagesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse**](../Model/EasyShipV20220323/CreateScheduledPackagesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[EasyShipV20220323 Model list]](../Model/EasyShipV20220323) -[[README]](../../README.md) - -## `getScheduledPackage()` - -```php -getScheduledPackage($amazon_order_id, $marketplace_id): \SellingPartnerApi\Model\EasyShipV20220323\Package -``` - - - -Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\EasyShipV20220323Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. -$marketplace_id = 'marketplace_id_example'; // string | An identifier for the marketplace in which the seller is selling. - -try { - $result = $apiInstance->getScheduledPackage($amazon_order_id, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling EasyShipV20220323Api->getScheduledPackage: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | - **marketplace_id** | **string**| An identifier for the marketplace in which the seller is selling. | - -### Return type - -[**\SellingPartnerApi\Model\EasyShipV20220323\Package**](../Model/EasyShipV20220323/Package.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[EasyShipV20220323 Model list]](../Model/EasyShipV20220323) -[[README]](../../README.md) - -## `listHandoverSlots()` - -```php -listHandoverSlots($list_handover_slots_request): \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse -``` - - - -Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies. - -This operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). - -This operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\EasyShipV20220323Api($config); -$list_handover_slots_request = new \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest(); // \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest - -try { - $result = $apiInstance->listHandoverSlots($list_handover_slots_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling EasyShipV20220323Api->listHandoverSlots: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **list_handover_slots_request** | [**\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest**](../Model/EasyShipV20220323/ListHandoverSlotsRequest.md)| | [optional] - -### Return type - -[**\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse**](../Model/EasyShipV20220323/ListHandoverSlotsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[EasyShipV20220323 Model list]](../Model/EasyShipV20220323) -[[README]](../../README.md) - -## `updateScheduledPackages()` - -```php -updateScheduledPackages($update_scheduled_packages_request): \SellingPartnerApi\Model\EasyShipV20220323\Packages -``` - - - -Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call. - -See the **Update Package** column in the [Marketplace Support Table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\EasyShipV20220323Api($config); -$update_scheduled_packages_request = new \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest(); // \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest - -try { - $result = $apiInstance->updateScheduledPackages($update_scheduled_packages_request); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling EasyShipV20220323Api->updateScheduledPackages: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **update_scheduled_packages_request** | [**\SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest**](../Model/EasyShipV20220323/UpdateScheduledPackagesRequest.md)| | [optional] - -### Return type - -[**\SellingPartnerApi\Model\EasyShipV20220323\Packages**](../Model/EasyShipV20220323/Packages.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[EasyShipV20220323 Model list]](../Model/EasyShipV20220323) -[[README]](../../README.md) diff --git a/docs/Api/FbaInboundEligibilityV1Api.md b/docs/Api/FbaInboundEligibilityV1Api.md deleted file mode 100644 index 2248c8108..000000000 --- a/docs/Api/FbaInboundEligibilityV1Api.md +++ /dev/null @@ -1,74 +0,0 @@ -# SellingPartnerApi\FbaInboundEligibilityV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getItemEligibilityPreview()**](FbaInboundEligibilityV1Api.md#getItemEligibilityPreview) | **GET** /fba/inbound/v1/eligibility/itemPreview | - - -## `getItemEligibilityPreview()` - -```php -getItemEligibilityPreview($asin, $program, $marketplace_ids): \SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse -``` - - - -This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundEligibilityV1Api($config); -$asin = 'asin_example'; // string | The ASIN of the item for which you want an eligibility preview. -$program = 'program_example'; // string | The program that you want to check eligibility against. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. - -try { - $result = $apiInstance->getItemEligibilityPreview($asin, $program, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundEligibilityV1Api->getItemEligibilityPreview: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| The ASIN of the item for which you want an eligibility preview. | - **program** | **string**| The program that you want to check eligibility against. | - **marketplace_ids** | [**string[]**](../Model/FbaInboundEligibilityV1/string.md)| The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse**](../Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `ItemEligibilityPreview` - -[[Top]](#) [[API list]](../) -[[FbaInboundEligibilityV1 Model list]](../Model/FbaInboundEligibilityV1) -[[README]](../../README.md) diff --git a/docs/Api/FbaInboundV0Api.md b/docs/Api/FbaInboundV0Api.md deleted file mode 100644 index b7716f332..000000000 --- a/docs/Api/FbaInboundV0Api.md +++ /dev/null @@ -1,1188 +0,0 @@ -# SellingPartnerApi\FbaInboundV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**confirmPreorder()**](FbaInboundV0Api.md#confirmPreorder) | **PUT** /fba/inbound/v0/shipments/{shipmentId}/preorder/confirm | -[**confirmTransport()**](FbaInboundV0Api.md#confirmTransport) | **POST** /fba/inbound/v0/shipments/{shipmentId}/transport/confirm | -[**createInboundShipment()**](FbaInboundV0Api.md#createInboundShipment) | **POST** /fba/inbound/v0/shipments/{shipmentId} | -[**createInboundShipmentPlan()**](FbaInboundV0Api.md#createInboundShipmentPlan) | **POST** /fba/inbound/v0/plans | -[**estimateTransport()**](FbaInboundV0Api.md#estimateTransport) | **POST** /fba/inbound/v0/shipments/{shipmentId}/transport/estimate | -[**getBillOfLading()**](FbaInboundV0Api.md#getBillOfLading) | **GET** /fba/inbound/v0/shipments/{shipmentId}/billOfLading | -[**getInboundGuidance()**](FbaInboundV0Api.md#getInboundGuidance) | **GET** /fba/inbound/v0/itemsGuidance | -[**getLabels()**](FbaInboundV0Api.md#getLabels) | **GET** /fba/inbound/v0/shipments/{shipmentId}/labels | -[**getPreorderInfo()**](FbaInboundV0Api.md#getPreorderInfo) | **GET** /fba/inbound/v0/shipments/{shipmentId}/preorder | -[**getPrepInstructions()**](FbaInboundV0Api.md#getPrepInstructions) | **GET** /fba/inbound/v0/prepInstructions | -[**getShipmentItems()**](FbaInboundV0Api.md#getShipmentItems) | **GET** /fba/inbound/v0/shipmentItems | -[**getShipmentItemsByShipmentId()**](FbaInboundV0Api.md#getShipmentItemsByShipmentId) | **GET** /fba/inbound/v0/shipments/{shipmentId}/items | -[**getShipments()**](FbaInboundV0Api.md#getShipments) | **GET** /fba/inbound/v0/shipments | -[**getTransportDetails()**](FbaInboundV0Api.md#getTransportDetails) | **GET** /fba/inbound/v0/shipments/{shipmentId}/transport | -[**putTransportDetails()**](FbaInboundV0Api.md#putTransportDetails) | **PUT** /fba/inbound/v0/shipments/{shipmentId}/transport | -[**updateInboundShipment()**](FbaInboundV0Api.md#updateInboundShipment) | **PUT** /fba/inbound/v0/shipments/{shipmentId} | -[**voidTransport()**](FbaInboundV0Api.md#voidTransport) | **POST** /fba/inbound/v0/shipments/{shipmentId}/transport/void | - - -## `confirmPreorder()` - -```php -confirmPreorder($shipment_id, $need_by_date, $marketplace_id): \SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse -``` - - - -Returns information needed to confirm a shipment for pre-order. Call this operation after calling the getPreorderInfo operation to get the NeedByDate value and other pre-order information about the shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$need_by_date = 'need_by_date_example'; // string | 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. -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace the shipment is tied to. - -try { - $result = $apiInstance->confirmPreorder($shipment_id, $need_by_date, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->confirmPreorder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **need_by_date** | **string**| 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. | - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace the shipment is tied to. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse**](../Model/FbaInboundV0/ConfirmPreorderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `confirmTransport()` - -```php -confirmTransport($shipment_id): \SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse -``` - - - -Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment. - -Prior to calling the confirmTransport operation, you should call the getTransportDetails operation to get the Amazon-partnered shipping estimate. - -Important: After confirming the transportation request, if the seller decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller has 24 hours after confirming a transportation request to void the transportation request. For a Less Than Truckload/Full Truckload (LTL/FTL) shipment, the seller has one hour after confirming a transportation request to void it. After the grace period has expired the seller's account will be charged for the shipping cost. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. - -try { - $result = $apiInstance->confirmTransport($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->confirmTransport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse**](../Model/FbaInboundV0/ConfirmTransportResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `createInboundShipment()` - -```php -createInboundShipment($shipment_id, $body): \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse -``` - - - -Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$body = new \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest(); // \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest - -try { - $result = $apiInstance->createInboundShipment($shipment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->createInboundShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **body** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest**](../Model/FbaInboundV0/InboundShipmentRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse**](../Model/FbaInboundV0/InboundShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `createInboundShipmentPlan()` - -```php -createInboundShipmentPlan($body): \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse -``` - - - -Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items can be optimally placed in Amazon's fulfillment network—for example, positioning inventory closer to the customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center destination if the two shipment plans require different processing—for example, items that require labels must be shipped separately from stickerless, commingled inventory. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$body = new \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest(); // \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest - -try { - $result = $apiInstance->createInboundShipmentPlan($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->createInboundShipmentPlan: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest**](../Model/FbaInboundV0/CreateInboundShipmentPlanRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse**](../Model/FbaInboundV0/CreateInboundShipmentPlanResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `estimateTransport()` - -```php -estimateTransport($shipment_id): \SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse -``` - - - -Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier. - -Prior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide Amazon with the transportation information for the inbound shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. - -try { - $result = $apiInstance->estimateTransport($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->estimateTransport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse**](../Model/FbaInboundV0/EstimateTransportResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getBillOfLading()` - -```php -getBillOfLading($shipment_id): \SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse -``` - - - -Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. - -try { - $result = $apiInstance->getBillOfLading($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getBillOfLading: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse**](../Model/FbaInboundV0/GetBillOfLadingResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getInboundGuidance()` - -```php -getInboundGuidance($marketplace_id, $seller_sku_list, $asin_list): \SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse -``` - - - -Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace. In some cases, Amazon provides guidance for why a given SellerSKU or ASIN is not recommended for shipment to Amazon's fulfillment network. Sellers may still ship items that are not recommended, at their discretion. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace where the product would be stored. -$seller_sku_list = array('seller_sku_list_example'); // string[] | 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. -$asin_list = array('asin_list_example'); // string[] | 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. - -try { - $result = $apiInstance->getInboundGuidance($marketplace_id, $seller_sku_list, $asin_list); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getInboundGuidance: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace where the product would be stored. | - **seller_sku_list** | [**string[]**](../Model/FbaInboundV0/string.md)| 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] - **asin_list** | [**string[]**](../Model/FbaInboundV0/string.md)| 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 type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse**](../Model/FbaInboundV0/GetInboundGuidanceResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getLabels()` - -```php -getLabels($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index): \SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse -``` - - - -Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$page_type = 'page_type_example'; // string | The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. -$label_type = 'label_type_example'; // string | The type of labels requested. -$number_of_packages = 56; // int | The number of packages in the shipment. -$package_labels_to_print = array('package_labels_to_print_example'); // string[] | 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. -$number_of_pallets = 56; // int | The number of pallets in the shipment. This returns four identical labels for each pallet. -$page_size = 56; // int | The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. -$page_start_index = 56; // int | The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. - -try { - $result = $apiInstance->getLabels($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **page_type** | **string**| The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. | - **label_type** | **string**| The type of labels requested. | - **number_of_packages** | **int**| The number of packages in the shipment. | [optional] - **package_labels_to_print** | [**string[]**](../Model/FbaInboundV0/string.md)| 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] - **number_of_pallets** | **int**| The number of pallets in the shipment. This returns four identical labels for each pallet. | [optional] - **page_size** | **int**| The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. | [optional] - **page_start_index** | **int**| The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse**](../Model/FbaInboundV0/GetLabelsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getPreorderInfo()` - -```php -getPreorderInfo($shipment_id, $marketplace_id): \SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse -``` - - - -Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace the shipment is tied to. - -try { - $result = $apiInstance->getPreorderInfo($shipment_id, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getPreorderInfo: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace the shipment is tied to. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse**](../Model/FbaInboundV0/GetPreorderInfoResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getPrepInstructions()` - -```php -getPrepInstructions($ship_to_country_code, $seller_sku_list, $asin_list): \SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse -``` - - - -Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$ship_to_country_code = 'ship_to_country_code_example'; // string | 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. -$seller_sku_list = array('seller_sku_list_example'); // string[] | 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. -$asin_list = array('asin_list_example'); // string[] | 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. - -try { - $result = $apiInstance->getPrepInstructions($ship_to_country_code, $seller_sku_list, $asin_list); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getPrepInstructions: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ship_to_country_code** | **string**| 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. | - **seller_sku_list** | [**string[]**](../Model/FbaInboundV0/string.md)| 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] - **asin_list** | [**string[]**](../Model/FbaInboundV0/string.md)| 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 type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse**](../Model/FbaInboundV0/GetPrepInstructionsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getShipmentItems()` - -```php -getShipmentItems($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token): \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse -``` - - - -Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$query_type = 'query_type_example'; // string | 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. -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace where the product would be stored. -$last_updated_after = 'last_updated_after_example'; // string | 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. Must be in ISO 8601 format. -$last_updated_before = 'last_updated_before_example'; // string | 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. Must be in ISO 8601 format. -$next_token = 'next_token_example'; // string | A string token returned in the response to your previous request. - -try { - $result = $apiInstance->getShipmentItems($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getShipmentItems: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query_type** | **string**| 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. | - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace where the product would be stored. | - **last_updated_after** | **string**| 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. Must be in ISO 8601 format. | [optional] - **last_updated_before** | **string**| 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. Must be in ISO 8601 format. | [optional] - **next_token** | **string**| A string token returned in the response to your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse**](../Model/FbaInboundV0/GetShipmentItemsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getShipmentItemsByShipmentId()` - -```php -getShipmentItemsByShipmentId($shipment_id, $marketplace_id): \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse -``` - - - -Returns a list of items in a specified inbound shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier used for selecting items in a specific inbound shipment. -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace where the product would be stored. - -try { - $result = $apiInstance->getShipmentItemsByShipmentId($shipment_id, $marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getShipmentItemsByShipmentId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier used for selecting items in a specific inbound shipment. | - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace where the product would be stored. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse**](../Model/FbaInboundV0/GetShipmentItemsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getShipments()` - -```php -getShipments($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token): \SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse -``` - - - -Returns a list of inbound shipments based on criteria that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$query_type = 'query_type_example'; // string | 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. -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace where the product would be stored. -$shipment_status_list = array('shipment_status_list_example'); // string[] | A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. -$shipment_id_list = array('shipment_id_list_example'); // string[] | 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. -$last_updated_after = 'last_updated_after_example'; // string | 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. -$last_updated_before = 'last_updated_before_example'; // string | 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. -$next_token = 'next_token_example'; // string | A string token returned in the response to your previous request. - -try { - $result = $apiInstance->getShipments($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getShipments: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query_type** | **string**| 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. | - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace where the product would be stored. | - **shipment_status_list** | [**string[]**](../Model/FbaInboundV0/string.md)| A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. | [optional] - **shipment_id_list** | [**string[]**](../Model/FbaInboundV0/string.md)| 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] - **last_updated_after** | **string**| 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] - **last_updated_before** | **string**| 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] - **next_token** | **string**| A string token returned in the response to your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse**](../Model/FbaInboundV0/GetShipmentsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `getTransportDetails()` - -```php -getTransportDetails($shipment_id): \SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse -``` - - - -Returns current transportation information about an inbound shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. - -try { - $result = $apiInstance->getTransportDetails($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->getTransportDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse**](../Model/FbaInboundV0/GetTransportDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `putTransportDetails()` - -```php -putTransportDetails($shipment_id, $body): \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse -``` - - - -Sends transportation information to Amazon about an inbound shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$body = new \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest(); // \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest - -try { - $result = $apiInstance->putTransportDetails($shipment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->putTransportDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **body** | [**\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest**](../Model/FbaInboundV0/PutTransportDetailsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse**](../Model/FbaInboundV0/PutTransportDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `updateInboundShipment()` - -```php -updateInboundShipment($shipment_id, $body): \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse -``` - - - -Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new items is not supported. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. -$body = new \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest(); // \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest - -try { - $result = $apiInstance->updateInboundShipment($shipment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->updateInboundShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - **body** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest**](../Model/FbaInboundV0/InboundShipmentRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse**](../Model/FbaInboundV0/InboundShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) - -## `voidTransport()` - -```php -voidTransport($shipment_id): \SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse -``` - - - -Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier. - -To be successful, you must call this operation before the VoidDeadline date that is returned by the getTransportDetails operation. - -Important: The VoidDeadline date is 24 hours after you confirm a Small Parcel shipment transportation request or one hour after you confirm a Less Than Truckload/Full Truckload (LTL/FTL) shipment transportation request. After the void deadline passes, your account will be charged for the shipping cost. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInboundV0Api($config); -$shipment_id = 'shipment_id_example'; // string | A shipment identifier originally returned by the createInboundShipmentPlan operation. - -try { - $result = $apiInstance->voidTransport($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInboundV0Api->voidTransport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| A shipment identifier originally returned by the createInboundShipmentPlan operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse**](../Model/FbaInboundV0/VoidTransportResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInboundV0 Model list]](../Model/FbaInboundV0) -[[README]](../../README.md) diff --git a/docs/Api/FbaInventoryV1Api.md b/docs/Api/FbaInventoryV1Api.md deleted file mode 100644 index e5e0959b5..000000000 --- a/docs/Api/FbaInventoryV1Api.md +++ /dev/null @@ -1,91 +0,0 @@ -# SellingPartnerApi\FbaInventoryV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getInventorySummaries()**](FbaInventoryV1Api.md#getInventorySummaries) | **GET** /fba/inventory/v1/summaries | - - -## `getInventorySummaries()` - -```php -getInventorySummaries($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku): \SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse -``` - - - -Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters: - -- All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted. -- When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified. -- When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored. -- When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaInventoryV1Api($config); -$granularity_type = 'granularity_type_example'; // string | The granularity type for the inventory aggregation level. -$granularity_id = 'granularity_id_example'; // string | The granularity ID for the inventory aggregation level. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The marketplace ID for the marketplace for which to return inventory summaries. -$details = 'false'; // string | 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). -$start_date_time = 'start_date_time_example'; // string | 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. -$seller_skus = array('seller_skus_example'); // string[] | A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. -$next_token = 'next_token_example'; // string | String token returned in the response of your previous request. The string token will expire 30 seconds after being created. -$seller_sku = 'seller_sku_example'; // string | A single seller SKU used for querying the specified seller SKU inventory summaries. - -try { - $result = $apiInstance->getInventorySummaries($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaInventoryV1Api->getInventorySummaries: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **granularity_type** | **string**| The granularity type for the inventory aggregation level. | - **granularity_id** | **string**| The granularity ID for the inventory aggregation level. | - **marketplace_ids** | [**string[]**](../Model/FbaInventoryV1/string.md)| The marketplace ID for the marketplace for which to return inventory summaries. | - **details** | **string**| 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). | [optional] [default to 'false'] - **start_date_time** | **string**| 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] - **seller_skus** | [**string[]**](../Model/FbaInventoryV1/string.md)| A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. | [optional] - **next_token** | **string**| String token returned in the response of your previous request. The string token will expire 30 seconds after being created. | [optional] - **seller_sku** | **string**| A single seller SKU used for querying the specified seller SKU inventory summaries. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse**](../Model/FbaInventoryV1/GetInventorySummariesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaInventoryV1 Model list]](../Model/FbaInventoryV1) -[[README]](../../README.md) diff --git a/docs/Api/FbaOutboundV20200701Api.md b/docs/Api/FbaOutboundV20200701Api.md deleted file mode 100644 index ceff9911f..000000000 --- a/docs/Api/FbaOutboundV20200701Api.md +++ /dev/null @@ -1,864 +0,0 @@ -# SellingPartnerApi\FbaOutboundV20200701Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelFulfillmentOrder()**](FbaOutboundV20200701Api.md#cancelFulfillmentOrder) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel | -[**createFulfillmentOrder()**](FbaOutboundV20200701Api.md#createFulfillmentOrder) | **POST** /fba/outbound/2020-07-01/fulfillmentOrders | -[**createFulfillmentReturn()**](FbaOutboundV20200701Api.md#createFulfillmentReturn) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return | -[**getFeatureInventory()**](FbaOutboundV20200701Api.md#getFeatureInventory) | **GET** /fba/outbound/2020-07-01/features/inventory/{featureName} | -[**getFeatureSKU()**](FbaOutboundV20200701Api.md#getFeatureSKU) | **GET** /fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku} | -[**getFeatures()**](FbaOutboundV20200701Api.md#getFeatures) | **GET** /fba/outbound/2020-07-01/features | -[**getFulfillmentOrder()**](FbaOutboundV20200701Api.md#getFulfillmentOrder) | **GET** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId} | -[**getFulfillmentPreview()**](FbaOutboundV20200701Api.md#getFulfillmentPreview) | **POST** /fba/outbound/2020-07-01/fulfillmentOrders/preview | -[**getPackageTrackingDetails()**](FbaOutboundV20200701Api.md#getPackageTrackingDetails) | **GET** /fba/outbound/2020-07-01/tracking | -[**listAllFulfillmentOrders()**](FbaOutboundV20200701Api.md#listAllFulfillmentOrders) | **GET** /fba/outbound/2020-07-01/fulfillmentOrders | -[**listReturnReasonCodes()**](FbaOutboundV20200701Api.md#listReturnReasonCodes) | **GET** /fba/outbound/2020-07-01/returnReasonCodes | -[**submitFulfillmentOrderStatusUpdate()**](FbaOutboundV20200701Api.md#submitFulfillmentOrderStatusUpdate) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status | -[**updateFulfillmentOrder()**](FbaOutboundV20200701Api.md#updateFulfillmentOrder) | **PUT** /fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId} | - - -## `cancelFulfillmentOrder()` - -```php -cancelFulfillmentOrder($seller_fulfillment_order_id): \SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse -``` - - - -Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | The identifier assigned to the item by the seller when the fulfillment order was created. - -try { - $result = $apiInstance->cancelFulfillmentOrder($seller_fulfillment_order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->cancelFulfillmentOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_fulfillment_order_id** | **string**| The identifier assigned to the item by the seller when the fulfillment order was created. | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse**](../Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `createFulfillmentOrder()` - -```php -createFulfillmentOrder($body): \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse -``` - - - -Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$body = new \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest(); // \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest - -try { - $result = $apiInstance->createFulfillmentOrder($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->createFulfillmentOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest**](../Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse**](../Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `createFulfillmentReturn()` - -```php -createFulfillmentReturn($seller_fulfillment_order_id, $body): \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse -``` - - - -Creates a fulfillment return. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | 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. -$body = new \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest(); // \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest - -try { - $result = $apiInstance->createFulfillmentReturn($seller_fulfillment_order_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->createFulfillmentReturn: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_fulfillment_order_id** | **string**| 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. | - **body** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest**](../Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse**](../Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getFeatureInventory()` - -```php -getFeatureInventory($marketplace_id, $feature_name, $next_token): \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse -``` - - - -Returns a list of inventory items that are eligible for the fulfillment feature you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The marketplace for which to return a list of the inventory that is eligible for the specified feature. -$feature_name = 'feature_name_example'; // string | The name of the feature for which to return a list of eligible inventory. -$next_token = 'next_token_example'; // string | 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. - -try { - $result = $apiInstance->getFeatureInventory($marketplace_id, $feature_name, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getFeatureInventory: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The marketplace for which to return a list of the inventory that is eligible for the specified feature. | - **feature_name** | **string**| The name of the feature for which to return a list of eligible inventory. | - **next_token** | **string**| 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] - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse**](../Model/FbaOutboundV20200701/GetFeatureInventoryResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getFeatureSKU()` - -```php -getFeatureSKU($marketplace_id, $feature_name, $seller_sku): \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse -``` - - - -Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The marketplace for which to return the count. -$feature_name = 'feature_name_example'; // string | The name of the feature. -$seller_sku = 'seller_sku_example'; // string | 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. - -try { - $result = $apiInstance->getFeatureSKU($marketplace_id, $feature_name, $seller_sku); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getFeatureSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The marketplace for which to return the count. | - **feature_name** | **string**| The name of the feature. | - **seller_sku** | **string**| 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. | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse**](../Model/FbaOutboundV20200701/GetFeatureSkuResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getFeatures()` - -```php -getFeatures($marketplace_id): \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse -``` - - - -Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$marketplace_id = 'marketplace_id_example'; // string | The marketplace for which to return the list of features. - -try { - $result = $apiInstance->getFeatures($marketplace_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getFeatures: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| The marketplace for which to return the list of features. | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse**](../Model/FbaOutboundV20200701/GetFeaturesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getFulfillmentOrder()` - -```php -getFulfillmentOrder($seller_fulfillment_order_id): \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse -``` - - - -Returns the fulfillment order indicated by the specified order identifier. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | The identifier assigned to the item by the seller when the fulfillment order was created. - -try { - $result = $apiInstance->getFulfillmentOrder($seller_fulfillment_order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getFulfillmentOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_fulfillment_order_id** | **string**| The identifier assigned to the item by the seller when the fulfillment order was created. | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse**](../Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getFulfillmentPreview()` - -```php -getFulfillmentPreview($body): \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse -``` - - - -Returns a list of fulfillment order previews based on shipping criteria that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$body = new \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest(); // \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest - -try { - $result = $apiInstance->getFulfillmentPreview($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getFulfillmentPreview: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest**](../Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse**](../Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `getPackageTrackingDetails()` - -```php -getPackageTrackingDetails($package_number): \SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse -``` - - - -Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$package_number = 56; // int | The unencrypted package identifier returned by the getFulfillmentOrder operation. - -try { - $result = $apiInstance->getPackageTrackingDetails($package_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->getPackageTrackingDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **package_number** | **int**| The unencrypted package identifier returned by the getFulfillmentOrder operation. | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse**](../Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `listAllFulfillmentOrders()` - -```php -listAllFulfillmentOrders($query_start_date, $next_token): \SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse -``` - - - -Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api) - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$query_start_date = 'query_start_date_example'; // string | A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. -$next_token = 'next_token_example'; // string | A string token returned in the response to your previous request. - -try { - $result = $apiInstance->listAllFulfillmentOrders($query_start_date, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->listAllFulfillmentOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query_start_date** | **string**| A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. | [optional] - **next_token** | **string**| A string token returned in the response to your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse**](../Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `listReturnReasonCodes()` - -```php -listReturnReasonCodes($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id): \SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse -``` - - - -Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_sku = 'seller_sku_example'; // string | The seller SKU for which return reason codes are required. -$language = 'language_example'; // string | The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. -$marketplace_id = 'marketplace_id_example'; // string | The marketplace for which the seller wants return reason codes. -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | 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. - -try { - $result = $apiInstance->listReturnReasonCodes($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->listReturnReasonCodes: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| The seller SKU for which return reason codes are required. | - **language** | **string**| The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. | - **marketplace_id** | **string**| The marketplace for which the seller wants return reason codes. | [optional] - **seller_fulfillment_order_id** | **string**| 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] - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse**](../Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `submitFulfillmentOrderStatusUpdate()` - -```php -submitFulfillmentOrderStatusUpdate($seller_fulfillment_order_id, $body): \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse -``` - - - -Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | The identifier assigned to the item by the seller when the fulfillment order was created. -$body = new \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest(); // \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest - -try { - $result = $apiInstance->submitFulfillmentOrderStatusUpdate($seller_fulfillment_order_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->submitFulfillmentOrderStatusUpdate: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_fulfillment_order_id** | **string**| The identifier assigned to the item by the seller when the fulfillment order was created. | - **body** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest**](../Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse**](../Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) - -## `updateFulfillmentOrder()` - -```php -updateFulfillmentOrder($seller_fulfillment_order_id, $body): \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse -``` - - - -Updates and/or requests shipment for a fulfillment order with an order hold on it. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FbaOutboundV20200701Api($config); -$seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | The identifier assigned to the item by the seller when the fulfillment order was created. -$body = new \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest(); // \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest - -try { - $result = $apiInstance->updateFulfillmentOrder($seller_fulfillment_order_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FbaOutboundV20200701Api->updateFulfillmentOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_fulfillment_order_id** | **string**| The identifier assigned to the item by the seller when the fulfillment order was created. | - **body** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest**](../Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse**](../Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FbaOutboundV20200701 Model list]](../Model/FbaOutboundV20200701) -[[README]](../../README.md) diff --git a/docs/Api/FeedsV20210630Api.md b/docs/Api/FeedsV20210630Api.md deleted file mode 100644 index 8b2e1ebfe..000000000 --- a/docs/Api/FeedsV20210630Api.md +++ /dev/null @@ -1,406 +0,0 @@ -# SellingPartnerApi\FeedsV20210630Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelFeed()**](FeedsV20210630Api.md#cancelFeed) | **DELETE** /feeds/2021-06-30/feeds/{feedId} | -[**createFeed()**](FeedsV20210630Api.md#createFeed) | **POST** /feeds/2021-06-30/feeds | -[**createFeedDocument()**](FeedsV20210630Api.md#createFeedDocument) | **POST** /feeds/2021-06-30/documents | -[**getFeed()**](FeedsV20210630Api.md#getFeed) | **GET** /feeds/2021-06-30/feeds/{feedId} | -[**getFeedDocument()**](FeedsV20210630Api.md#getFeedDocument) | **GET** /feeds/2021-06-30/documents/{feedDocumentId} | -[**getFeeds()**](FeedsV20210630Api.md#getFeeds) | **GET** /feeds/2021-06-30/feeds | - - -## `cancelFeed()` - -```php -cancelFeed($feed_id) -``` - - - -Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$feed_id = 'feed_id_example'; // string | The identifier for the feed. This identifier is unique only in combination with a seller ID. - -try { - $apiInstance->cancelFeed($feed_id); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->cancelFeed: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **feed_id** | **string**| The identifier for the feed. This identifier is unique only in combination with a seller ID. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) - -## `createFeed()` - -```php -createFeed($body): \SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse -``` - - - -Creates a feed. Upload the contents of the feed document before calling this operation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0083 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$body = new \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification(); // \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification - -try { - $result = $apiInstance->createFeed($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->createFeed: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification**](../Model/FeedsV20210630/CreateFeedSpecification.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse**](../Model/FeedsV20210630/CreateFeedResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) - -## `createFeedDocument()` - -```php -createFeedDocument($body): \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse -``` - - - -Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$body = new \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification(); // \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification - -try { - $result = $apiInstance->createFeedDocument($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->createFeedDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification**](../Model/FeedsV20210630/CreateFeedDocumentSpecification.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse**](../Model/FeedsV20210630/CreateFeedDocumentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) - -## `getFeed()` - -```php -getFeed($feed_id): \SellingPartnerApi\Model\FeedsV20210630\Feed -``` - - - -Returns feed details (including the resultDocumentId, if available) for the feed that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$feed_id = 'feed_id_example'; // string | The identifier for the feed. This identifier is unique only in combination with a seller ID. - -try { - $result = $apiInstance->getFeed($feed_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->getFeed: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **feed_id** | **string**| The identifier for the feed. This identifier is unique only in combination with a seller ID. | - -### Return type - -[**\SellingPartnerApi\Model\FeedsV20210630\Feed**](../Model/FeedsV20210630/Feed.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) - -## `getFeedDocument()` - -```php -getFeedDocument($feed_document_id): \SellingPartnerApi\Model\FeedsV20210630\FeedDocument -``` - - - -Returns the information required for retrieving a feed document's contents. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$feed_document_id = 'feed_document_id_example'; // string | The identifier of the feed document. - -try { - $result = $apiInstance->getFeedDocument($feed_document_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->getFeedDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **feed_document_id** | **string**| The identifier of the feed document. | - -### Return type - -[**\SellingPartnerApi\Model\FeedsV20210630\FeedDocument**](../Model/FeedsV20210630/FeedDocument.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) - -## `getFeeds()` - -```php -getFeeds($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token): \SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse -``` - - - -Returns feed details for the feeds that match the filters that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeedsV20210630Api($config); -$feed_types = array('feed_types_example'); // string[] | 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. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. -$page_size = 10; // int | The maximum number of feeds to return in a single call. -$processing_statuses = array('processing_statuses_example'); // string[] | A list of processing statuses used to filter feeds. -$created_since = 'created_since_example'; // string | 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. -$created_until = 'created_until_example'; // string | The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. -$next_token = 'next_token_example'; // string | 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. - -try { - $result = $apiInstance->getFeeds($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeedsV20210630Api->getFeeds: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **feed_types** | [**string[]**](../Model/FeedsV20210630/string.md)| 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] - **marketplace_ids** | [**string[]**](../Model/FeedsV20210630/string.md)| A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. | [optional] - **page_size** | **int**| The maximum number of feeds to return in a single call. | [optional] [default to 10] - **processing_statuses** | [**string[]**](../Model/FeedsV20210630/string.md)| A list of processing statuses used to filter feeds. | [optional] - **created_since** | **string**| 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] - **created_until** | **string**| The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. | [optional] - **next_token** | **string**| 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 type - -[**\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse**](../Model/FeedsV20210630/GetFeedsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeedsV20210630 Model list]](../Model/FeedsV20210630) -[[README]](../../README.md) diff --git a/docs/Api/FeesV0Api.md b/docs/Api/FeesV0Api.md deleted file mode 100644 index 16235cd06..000000000 --- a/docs/Api/FeesV0Api.md +++ /dev/null @@ -1,214 +0,0 @@ -# SellingPartnerApi\FeesV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getMyFeesEstimateForASIN()**](FeesV0Api.md#getMyFeesEstimateForASIN) | **POST** /products/fees/v0/items/{Asin}/feesEstimate | -[**getMyFeesEstimateForSKU()**](FeesV0Api.md#getMyFeesEstimateForSKU) | **POST** /products/fees/v0/listings/{SellerSKU}/feesEstimate | -[**getMyFeesEstimates()**](FeesV0Api.md#getMyFeesEstimates) | **POST** /products/fees/v0/feesEstimate | - - -## `getMyFeesEstimateForASIN()` - -```php -getMyFeesEstimateForASIN($asin, $body): \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse -``` - - - -Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body. - -You can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request. - -**Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeesV0Api($config); -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. -$body = new \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest(); // \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest - -try { - $result = $apiInstance->getMyFeesEstimateForASIN($asin, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeesV0Api->getMyFeesEstimateForASIN: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - **body** | [**\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest**](../Model/FeesV0/GetMyFeesEstimateRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse**](../Model/FeesV0/GetMyFeesEstimateResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeesV0 Model list]](../Model/FeesV0) -[[README]](../../README.md) - -## `getMyFeesEstimateForSKU()` - -```php -getMyFeesEstimateForSKU($seller_sku, $body): \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse -``` - - - -Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body. - -**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -You can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request. - -**Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https://sellercentral.amazon.com/) and consult the store-specific fee schedule for the most up-to-date information. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeesV0Api($config); -$seller_sku = 'seller_sku_example'; // string | 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. -$body = new \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest(); // \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest - -try { - $result = $apiInstance->getMyFeesEstimateForSKU($seller_sku, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeesV0Api->getMyFeesEstimateForSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| 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. | - **body** | [**\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest**](../Model/FeesV0/GetMyFeesEstimateRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse**](../Model/FeesV0/GetMyFeesEstimateResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeesV0 Model list]](../Model/FeesV0) -[[README]](../../README.md) - -## `getMyFeesEstimates()` - -```php -getMyFeesEstimates($body): \SellingPartnerApi\Model\FeesV0\FeesEstimateResult[] -``` - - - -Returns the estimated fees for a list of products. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FeesV0Api($config); -$body = array(new \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest()); // \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] - -try { - $result = $apiInstance->getMyFeesEstimates($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FeesV0Api->getMyFeesEstimates: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[]**](../Model/FeesV0/FeesEstimateByIdRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]**](../Model/FeesV0/FeesEstimateResult.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FeesV0 Model list]](../Model/FeesV0) -[[README]](../../README.md) diff --git a/docs/Api/FinancesV0Api.md b/docs/Api/FinancesV0Api.md deleted file mode 100644 index 57adf42f2..000000000 --- a/docs/Api/FinancesV0Api.md +++ /dev/null @@ -1,291 +0,0 @@ -# SellingPartnerApi\FinancesV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listFinancialEventGroups()**](FinancesV0Api.md#listFinancialEventGroups) | **GET** /finances/v0/financialEventGroups | -[**listFinancialEvents()**](FinancesV0Api.md#listFinancialEvents) | **GET** /finances/v0/financialEvents | -[**listFinancialEventsByGroupId()**](FinancesV0Api.md#listFinancialEventsByGroupId) | **GET** /finances/v0/financialEventGroups/{eventGroupId}/financialEvents | -[**listFinancialEventsByOrderId()**](FinancesV0Api.md#listFinancialEventsByOrderId) | **GET** /finances/v0/orders/{orderId}/financialEvents | - - -## `listFinancialEventGroups()` - -```php -listFinancialEventGroups($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token): \SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse -``` - - - -Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FinancesV0Api($config); -$max_results_per_page = 100; // int | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. -$financial_event_group_started_before = 'financial_event_group_started_before_example'; // string | A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. -$financial_event_group_started_after = 'financial_event_group_started_after_example'; // string | A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. - -try { - $result = $apiInstance->listFinancialEventGroups($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FinancesV0Api->listFinancialEventGroups: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **max_results_per_page** | **int**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] - **financial_event_group_started_before** | **string**| A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. | [optional] - **financial_event_group_started_after** | **string**| A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. | [optional] - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse**](../Model/FinancesV0/ListFinancialEventGroupsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FinancesV0 Model list]](../Model/FinancesV0) -[[README]](../../README.md) - -## `listFinancialEvents()` - -```php -listFinancialEvents($max_results_per_page, $posted_after, $posted_before, $next_token): \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse -``` - - - -Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FinancesV0Api($config); -$max_results_per_page = 100; // int | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. -$posted_after = 'posted_after_example'; // string | A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. -$posted_before = 'posted_before_example'; // string | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. - -try { - $result = $apiInstance->listFinancialEvents($max_results_per_page, $posted_after, $posted_before, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FinancesV0Api->listFinancialEvents: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **max_results_per_page** | **int**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] - **posted_after** | **string**| A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. | [optional] - **posted_before** | **string**| A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. | [optional] - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse**](../Model/FinancesV0/ListFinancialEventsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FinancesV0 Model list]](../Model/FinancesV0) -[[README]](../../README.md) - -## `listFinancialEventsByGroupId()` - -```php -listFinancialEventsByGroupId($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before): \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse -``` - - - -Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. - -**Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FinancesV0Api($config); -$event_group_id = 'event_group_id_example'; // string | The identifier of the financial event group to which the events belong. -$max_results_per_page = 100; // int | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. -$posted_after = 'posted_after_example'; // string | A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. -$posted_before = 'posted_before_example'; // string | A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. - -try { - $result = $apiInstance->listFinancialEventsByGroupId($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FinancesV0Api->listFinancialEventsByGroupId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **event_group_id** | **string**| The identifier of the financial event group to which the events belong. | - **max_results_per_page** | **int**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - **posted_after** | **string**| A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. | [optional] - **posted_before** | **string**| A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse**](../Model/FinancesV0/ListFinancialEventsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FinancesV0 Model list]](../Model/FinancesV0) -[[README]](../../README.md) - -## `listFinancialEventsByOrderId()` - -```php -listFinancialEventsByOrderId($order_id, $max_results_per_page, $next_token): \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse -``` - - - -Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\FinancesV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$max_results_per_page = 100; // int | The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. - -try { - $result = $apiInstance->listFinancialEventsByOrderId($order_id, $max_results_per_page, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling FinancesV0Api->listFinancialEventsByOrderId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **max_results_per_page** | **int**| The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. | [optional] [default to 100] - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse**](../Model/FinancesV0/ListFinancialEventsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[FinancesV0 Model list]](../Model/FinancesV0) -[[README]](../../README.md) diff --git a/docs/Api/ListingsRestrictionsV20210801Api.md b/docs/Api/ListingsRestrictionsV20210801Api.md deleted file mode 100644 index 29745f39a..000000000 --- a/docs/Api/ListingsRestrictionsV20210801Api.md +++ /dev/null @@ -1,78 +0,0 @@ -# SellingPartnerApi\ListingsRestrictionsV20210801Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getListingsRestrictions()**](ListingsRestrictionsV20210801Api.md#getListingsRestrictions) | **GET** /listings/2021-08-01/restrictions | - - -## `getListingsRestrictions()` - -```php -getListingsRestrictions($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale): \SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList -``` - - - -Returns listing restrictions for an item in the Amazon Catalog. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsRestrictionsV20210801Api($config); -$asin = B0000ASIN1; // string | The Amazon Standard Identification Number (ASIN) of the item. -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$condition_type = used_very_good; // string | The condition used to filter restrictions. -$reason_locale = en_US; // string | A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->getListingsRestrictions($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsRestrictionsV20210801Api->getListingsRestrictions: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - **seller_id** | **string**| A selling partner identifier, such as a merchant account. | - **marketplace_ids** | [**string[]**](../Model/ListingsRestrictionsV20210801/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **condition_type** | **string**| The condition used to filter restrictions. | [optional] - **reason_locale** | **string**| A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList**](../Model/ListingsRestrictionsV20210801/RestrictionList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsRestrictionsV20210801 Model list]](../Model/ListingsRestrictionsV20210801) -[[README]](../../README.md) diff --git a/docs/Api/ListingsV20200901Api.md b/docs/Api/ListingsV20200901Api.md deleted file mode 100644 index cba7768a3..000000000 --- a/docs/Api/ListingsV20200901Api.md +++ /dev/null @@ -1,228 +0,0 @@ -# SellingPartnerApi\ListingsV20200901Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteListingsItem()**](ListingsV20200901Api.md#deleteListingsItem) | **DELETE** /listings/2020-09-01/items/{sellerId}/{sku} | -[**patchListingsItem()**](ListingsV20200901Api.md#patchListingsItem) | **PATCH** /listings/2020-09-01/items/{sellerId}/{sku} | -[**putListingsItem()**](ListingsV20200901Api.md#putListingsItem) | **PUT** /listings/2020-09-01/items/{sellerId}/{sku} | - - -## `deleteListingsItem()` - -```php -deleteListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale): \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse -``` - - - -Delete a listings item for a selling partner. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20200901Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->deleteListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20200901Api->deleteListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20200901/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse**](../Model/ListingsV20200901/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20200901 Model list]](../Model/ListingsV20200901) -[[README]](../../README.md) - -## `patchListingsItem()` - -```php -patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale): \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse -``` - - - -Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20200901Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$body = new \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest(); // \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest | The request body schema for the patchListingsItem operation. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20200901Api->patchListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20200901/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **body** | [**\SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest**](../Model/ListingsV20200901/ListingsItemPatchRequest.md)| The request body schema for the patchListingsItem operation. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse**](../Model/ListingsV20200901/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20200901 Model list]](../Model/ListingsV20200901) -[[README]](../../README.md) - -## `putListingsItem()` - -```php -putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale): \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse -``` - - - -Creates a new or fully-updates an existing listings item for a selling partner. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20200901Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$body = new \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest(); // \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest | The request body schema for the putListingsItem operation. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20200901Api->putListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20200901/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **body** | [**\SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest**](../Model/ListingsV20200901/ListingsItemPutRequest.md)| The request body schema for the putListingsItem operation. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse**](../Model/ListingsV20200901/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20200901 Model list]](../Model/ListingsV20200901) -[[README]](../../README.md) diff --git a/docs/Api/ListingsV20210801Api.md b/docs/Api/ListingsV20210801Api.md deleted file mode 100644 index 391f2d2cd..000000000 --- a/docs/Api/ListingsV20210801Api.md +++ /dev/null @@ -1,303 +0,0 @@ -# SellingPartnerApi\ListingsV20210801Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteListingsItem()**](ListingsV20210801Api.md#deleteListingsItem) | **DELETE** /listings/2021-08-01/items/{sellerId}/{sku} | -[**getListingsItem()**](ListingsV20210801Api.md#getListingsItem) | **GET** /listings/2021-08-01/items/{sellerId}/{sku} | -[**patchListingsItem()**](ListingsV20210801Api.md#patchListingsItem) | **PATCH** /listings/2021-08-01/items/{sellerId}/{sku} | -[**putListingsItem()**](ListingsV20210801Api.md#putListingsItem) | **PUT** /listings/2021-08-01/items/{sellerId}/{sku} | - - -## `deleteListingsItem()` - -```php -deleteListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale): \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse -``` - - - -Delete a listings item for a selling partner. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20210801Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->deleteListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20210801Api->deleteListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20210801/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse**](../Model/ListingsV20210801/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20210801 Model list]](../Model/ListingsV20210801) -[[README]](../../README.md) - -## `getListingsItem()` - -```php -getListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data): \SellingPartnerApi\Model\ListingsV20210801\Item -``` - - - -Returns details about a listings item for a selling partner. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20210801Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. -$included_data = [summaries]; // string[] | A comma-delimited list of data sets to include in the response. Default: summaries. - -try { - $result = $apiInstance->getListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20210801Api->getListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20210801/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - **included_data** | [**string[]**](../Model/ListingsV20210801/string.md)| A comma-delimited list of data sets to include in the response. Default: summaries. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20210801\Item**](../Model/ListingsV20210801/Item.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20210801 Model list]](../Model/ListingsV20210801) -[[README]](../../README.md) - -## `patchListingsItem()` - -```php -patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale): \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse -``` - - - -Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20210801Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$body = new \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest(); // \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest | The request body schema for the patchListingsItem operation. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20210801Api->patchListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20210801/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **body** | [**\SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest**](../Model/ListingsV20210801/ListingsItemPatchRequest.md)| The request body schema for the patchListingsItem operation. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse**](../Model/ListingsV20210801/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20210801 Model list]](../Model/ListingsV20210801) -[[README]](../../README.md) - -## `putListingsItem()` - -```php -putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale): \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse -``` - - - -Creates a new or fully-updates an existing listings item for a selling partner. - -**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ListingsV20210801Api($config); -$seller_id = 'seller_id_example'; // string | A selling partner identifier, such as a merchant account or vendor code. -$sku = 'sku_example'; // string | A selling partner provided identifier for an Amazon listing. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$body = new \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest(); // \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest | The request body schema for the putListingsItem operation. -$issue_locale = en_US; // string | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. - -try { - $result = $apiInstance->putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ListingsV20210801Api->putListingsItem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_id** | **string**| A selling partner identifier, such as a merchant account or vendor code. | - **sku** | **string**| A selling partner provided identifier for an Amazon listing. | - **marketplace_ids** | [**string[]**](../Model/ListingsV20210801/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **body** | [**\SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest**](../Model/ListingsV20210801/ListingsItemPutRequest.md)| The request body schema for the putListingsItem operation. | - **issue_locale** | **string**| A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse**](../Model/ListingsV20210801/ListingsItemSubmissionResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ListingsV20210801 Model list]](../Model/ListingsV20210801) -[[README]](../../README.md) diff --git a/docs/Api/MerchantFulfillmentV0Api.md b/docs/Api/MerchantFulfillmentV0Api.md deleted file mode 100644 index 06e199ce4..000000000 --- a/docs/Api/MerchantFulfillmentV0Api.md +++ /dev/null @@ -1,525 +0,0 @@ -# SellingPartnerApi\MerchantFulfillmentV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelShipment()**](MerchantFulfillmentV0Api.md#cancelShipment) | **DELETE** /mfn/v0/shipments/{shipmentId} | -[**cancelShipmentOld()**](MerchantFulfillmentV0Api.md#cancelShipmentOld) | **PUT** /mfn/v0/shipments/{shipmentId}/cancel | -[**createShipment()**](MerchantFulfillmentV0Api.md#createShipment) | **POST** /mfn/v0/shipments | -[**getAdditionalSellerInputs()**](MerchantFulfillmentV0Api.md#getAdditionalSellerInputs) | **POST** /mfn/v0/additionalSellerInputs | -[**getAdditionalSellerInputsOld()**](MerchantFulfillmentV0Api.md#getAdditionalSellerInputsOld) | **POST** /mfn/v0/sellerInputs | -[**getEligibleShipmentServices()**](MerchantFulfillmentV0Api.md#getEligibleShipmentServices) | **POST** /mfn/v0/eligibleShippingServices | -[**getEligibleShipmentServicesOld()**](MerchantFulfillmentV0Api.md#getEligibleShipmentServicesOld) | **POST** /mfn/v0/eligibleServices | -[**getShipment()**](MerchantFulfillmentV0Api.md#getShipment) | **GET** /mfn/v0/shipments/{shipmentId} | - - -## `cancelShipment()` - -```php -cancelShipment($shipment_id): \SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse -``` - - - -Cancel the shipment indicated by the specified shipment identifier. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The Amazon-defined shipment identifier for the shipment to cancel. - -try { - $result = $apiInstance->cancelShipment($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->cancelShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The Amazon-defined shipment identifier for the shipment to cancel. | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse**](../Model/MerchantFulfillmentV0/CancelShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `cancelShipmentOld()` - -```php -cancelShipmentOld($shipment_id): \SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse -``` - - - -Cancel the shipment indicated by the specified shipment identifer. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The Amazon-defined shipment identifier for the shipment to cancel. - -try { - $result = $apiInstance->cancelShipmentOld($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->cancelShipmentOld: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The Amazon-defined shipment identifier for the shipment to cancel. | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse**](../Model/MerchantFulfillmentV0/CancelShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `createShipment()` - -```php -createShipment($body): \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse -``` - - - -Create a shipment with the information provided. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$body = new \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest(); // \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest - -try { - $result = $apiInstance->createShipment($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->createShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest**](../Model/MerchantFulfillmentV0/CreateShipmentRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse**](../Model/MerchantFulfillmentV0/CreateShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `getAdditionalSellerInputs()` - -```php -getAdditionalSellerInputs($body): \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse -``` - - - -Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$body = new \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest(); // \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest - -try { - $result = $apiInstance->getAdditionalSellerInputs($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->getAdditionalSellerInputs: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest**](../Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse**](../Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `getAdditionalSellerInputsOld()` - -```php -getAdditionalSellerInputsOld($body): \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse -``` - - - -Get a list of additional seller inputs required for a ship method. This is generally used for international shipping. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$body = new \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest(); // \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest - -try { - $result = $apiInstance->getAdditionalSellerInputsOld($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->getAdditionalSellerInputsOld: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest**](../Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse**](../Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `getEligibleShipmentServices()` - -```php -getEligibleShipmentServices($body): \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse -``` - - - -Returns a list of shipping service offers that satisfy the specified shipment request details. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$body = new \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest(); // \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest - -try { - $result = $apiInstance->getEligibleShipmentServices($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->getEligibleShipmentServices: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest**](../Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse**](../Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `getEligibleShipmentServicesOld()` - -```php -getEligibleShipmentServicesOld($body): \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse -``` - - - -Returns a list of shipping service offers that satisfy the specified shipment request details. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$body = new \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest(); // \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest - -try { - $result = $apiInstance->getEligibleShipmentServicesOld($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->getEligibleShipmentServicesOld: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest**](../Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse**](../Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) - -## `getShipment()` - -```php -getShipment($shipment_id): \SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse -``` - - - -Returns the shipment information for an existing shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MerchantFulfillmentV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The Amazon-defined shipment identifier for the shipment. - -try { - $result = $apiInstance->getShipment($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MerchantFulfillmentV0Api->getShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The Amazon-defined shipment identifier for the shipment. | - -### Return type - -[**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse**](../Model/MerchantFulfillmentV0/GetShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[MerchantFulfillmentV0 Model list]](../Model/MerchantFulfillmentV0) -[[README]](../../README.md) diff --git a/docs/Api/MessagingV1Api.md b/docs/Api/MessagingV1Api.md deleted file mode 100644 index 8c419ba22..000000000 --- a/docs/Api/MessagingV1Api.md +++ /dev/null @@ -1,886 +0,0 @@ -# SellingPartnerApi\MessagingV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**confirmCustomizationDetails()**](MessagingV1Api.md#confirmCustomizationDetails) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/confirmCustomizationDetails | -[**createAmazonMotors()**](MessagingV1Api.md#createAmazonMotors) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/amazonMotors | -[**createConfirmDeliveryDetails()**](MessagingV1Api.md#createConfirmDeliveryDetails) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/confirmDeliveryDetails | -[**createConfirmOrderDetails()**](MessagingV1Api.md#createConfirmOrderDetails) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/confirmOrderDetails | -[**createConfirmServiceDetails()**](MessagingV1Api.md#createConfirmServiceDetails) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/confirmServiceDetails | -[**createDigitalAccessKey()**](MessagingV1Api.md#createDigitalAccessKey) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/digitalAccessKey | -[**createLegalDisclosure()**](MessagingV1Api.md#createLegalDisclosure) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure | -[**createNegativeFeedbackRemoval()**](MessagingV1Api.md#createNegativeFeedbackRemoval) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/negativeFeedbackRemoval | -[**createUnexpectedProblem()**](MessagingV1Api.md#createUnexpectedProblem) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/unexpectedProblem | -[**createWarranty()**](MessagingV1Api.md#createWarranty) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/warranty | -[**getAttributes()**](MessagingV1Api.md#getAttributes) | **GET** /messaging/v1/orders/{amazonOrderId}/attributes | -[**getMessagingActionsForOrder()**](MessagingV1Api.md#getMessagingActionsForOrder) | **GET** /messaging/v1/orders/{amazonOrderId} | -[**sendInvoice()**](MessagingV1Api.md#sendInvoice) | **POST** /messaging/v1/orders/{amazonOrderId}/messages/invoice | - - -## `confirmCustomizationDetails()` - -```php -confirmCustomizationDetails($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse -``` - - - -Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest - -try { - $result = $apiInstance->confirmCustomizationDetails($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->confirmCustomizationDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest**](../Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse**](../Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createAmazonMotors()` - -```php -createAmazonMotors($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse -``` - - - -Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest - -try { - $result = $apiInstance->createAmazonMotors($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createAmazonMotors: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest**](../Model/MessagingV1/CreateAmazonMotorsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse**](../Model/MessagingV1/CreateAmazonMotorsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createConfirmDeliveryDetails()` - -```php -createConfirmDeliveryDetails($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse -``` - - - -Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest - -try { - $result = $apiInstance->createConfirmDeliveryDetails($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createConfirmDeliveryDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest**](../Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse**](../Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createConfirmOrderDetails()` - -```php -createConfirmOrderDetails($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse -``` - - - -Sends a message to ask a buyer an order-related question prior to shipping their order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest - -try { - $result = $apiInstance->createConfirmOrderDetails($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createConfirmOrderDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest**](../Model/MessagingV1/CreateConfirmOrderDetailsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse**](../Model/MessagingV1/CreateConfirmOrderDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createConfirmServiceDetails()` - -```php -createConfirmServiceDetails($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse -``` - - - -Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest - -try { - $result = $apiInstance->createConfirmServiceDetails($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createConfirmServiceDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest**](../Model/MessagingV1/CreateConfirmServiceDetailsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse**](../Model/MessagingV1/CreateConfirmServiceDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createDigitalAccessKey()` - -```php -createDigitalAccessKey($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse -``` - - - -Sends a message to a buyer to share a digital access key needed to utilize digital content in their order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest - -try { - $result = $apiInstance->createDigitalAccessKey($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createDigitalAccessKey: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest**](../Model/MessagingV1/CreateDigitalAccessKeyRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse**](../Model/MessagingV1/CreateDigitalAccessKeyResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createLegalDisclosure()` - -```php -createLegalDisclosure($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse -``` - - - -Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest - -try { - $result = $apiInstance->createLegalDisclosure($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createLegalDisclosure: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest**](../Model/MessagingV1/CreateLegalDisclosureRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse**](../Model/MessagingV1/CreateLegalDisclosureResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createNegativeFeedbackRemoval()` - -```php -createNegativeFeedbackRemoval($amazon_order_id, $marketplace_ids): \SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse -``` - - - -Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - -try { - $result = $apiInstance->createNegativeFeedbackRemoval($amazon_order_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createNegativeFeedbackRemoval: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse**](../Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createUnexpectedProblem()` - -```php -createUnexpectedProblem($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse -``` - - - -Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest - -try { - $result = $apiInstance->createUnexpectedProblem($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createUnexpectedProblem: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest**](../Model/MessagingV1/CreateUnexpectedProblemRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse**](../Model/MessagingV1/CreateUnexpectedProblemResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `createWarranty()` - -```php -createWarranty($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse -``` - - - -Sends a message to a buyer to provide details about warranty information on a purchase in their order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest(); // \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest - -try { - $result = $apiInstance->createWarranty($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->createWarranty: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest**](../Model/MessagingV1/CreateWarrantyRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse**](../Model/MessagingV1/CreateWarrantyResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `getAttributes()` - -```php -getAttributes($amazon_order_id, $marketplace_ids): \SellingPartnerApi\Model\MessagingV1\GetAttributesResponse -``` - - - -Returns a response containing attributes related to an order. This includes buyer preferences. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - -try { - $result = $apiInstance->getAttributes($amazon_order_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->getAttributes: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse**](../Model/MessagingV1/GetAttributesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `getMessagingActionsForOrder()` - -```php -getMessagingActionsForOrder($amazon_order_id, $marketplace_ids): \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse -``` - - - -Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which you want a list of available message types. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - -try { - $result = $apiInstance->getMessagingActionsForOrder($amazon_order_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->getMessagingActionsForOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which you want a list of available message types. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse**](../Model/MessagingV1/GetMessagingActionsForOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) - -## `sendInvoice()` - -```php -sendInvoice($amazon_order_id, $marketplace_ids, $body): \SellingPartnerApi\Model\MessagingV1\InvoiceResponse -``` - - - -Sends a message providing the buyer an invoice - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\MessagingV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a message is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. -$body = new \SellingPartnerApi\Model\MessagingV1\InvoiceRequest(); // \SellingPartnerApi\Model\MessagingV1\InvoiceRequest - -try { - $result = $apiInstance->sendInvoice($amazon_order_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling MessagingV1Api->sendInvoice: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a message is sent. | - **marketplace_ids** | [**string[]**](../Model/MessagingV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - **body** | [**\SellingPartnerApi\Model\MessagingV1\InvoiceRequest**](../Model/MessagingV1/InvoiceRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\MessagingV1\InvoiceResponse**](../Model/MessagingV1/InvoiceResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[MessagingV1 Model list]](../Model/MessagingV1) -[[README]](../../README.md) diff --git a/docs/Api/NotificationsV1Api.md b/docs/Api/NotificationsV1Api.md deleted file mode 100644 index 4df0ffbc8..000000000 --- a/docs/Api/NotificationsV1Api.md +++ /dev/null @@ -1,544 +0,0 @@ -# SellingPartnerApi\NotificationsV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createDestination()**](NotificationsV1Api.md#createDestination) | **POST** /notifications/v1/destinations | -[**createSubscription()**](NotificationsV1Api.md#createSubscription) | **POST** /notifications/v1/subscriptions/{notificationType} | -[**deleteDestination()**](NotificationsV1Api.md#deleteDestination) | **DELETE** /notifications/v1/destinations/{destinationId} | -[**deleteSubscriptionById()**](NotificationsV1Api.md#deleteSubscriptionById) | **DELETE** /notifications/v1/subscriptions/{notificationType}/{subscriptionId} | -[**getDestination()**](NotificationsV1Api.md#getDestination) | **GET** /notifications/v1/destinations/{destinationId} | -[**getDestinations()**](NotificationsV1Api.md#getDestinations) | **GET** /notifications/v1/destinations | -[**getSubscription()**](NotificationsV1Api.md#getSubscription) | **GET** /notifications/v1/subscriptions/{notificationType} | -[**getSubscriptionById()**](NotificationsV1Api.md#getSubscriptionById) | **GET** /notifications/v1/subscriptions/{notificationType}/{subscriptionId} | - - -## `createDestination()` - -```php -createDestination($body): \SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse -``` - - - -Creates a destination resource to receive notifications. The createDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$body = new \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest(); // \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest - -try { - $result = $apiInstance->createDestination($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->createDestination: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest**](../Model/NotificationsV1/CreateDestinationRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse**](../Model/NotificationsV1/CreateDestinationResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `createSubscription()` - -```php -createSubscription($notification_type, $body): \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse -``` - - - -Creates a subscription for the specified notification type to be delivered to the specified destination. Before you can subscribe, you must first create the destination by calling the createDestination operation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$notification_type = 'notification_type_example'; // string | The type of notification. - -// For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). -$body = new \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest(); // \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest - -try { - $result = $apiInstance->createSubscription($notification_type, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->createSubscription: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notification_type** | **string**| The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). | - **body** | [**\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest**](../Model/NotificationsV1/CreateSubscriptionRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse**](../Model/NotificationsV1/CreateSubscriptionResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `deleteDestination()` - -```php -deleteDestination($destination_id): \SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse -``` - - - -Deletes the destination that you specify. The deleteDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$destination_id = 'destination_id_example'; // string | The identifier for the destination that you want to delete. - -try { - $result = $apiInstance->deleteDestination($destination_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->deleteDestination: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_id** | **string**| The identifier for the destination that you want to delete. | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse**](../Model/NotificationsV1/DeleteDestinationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `deleteSubscriptionById()` - -```php -deleteSubscriptionById($subscription_id, $notification_type): \SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse -``` - - - -Deletes the subscription indicated by the subscription identifier and notification type that you specify. The subscription identifier can be for any subscription associated with your application. After you successfully call this operation, notifications will stop being sent for the associated subscription. The deleteSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$subscription_id = 'subscription_id_example'; // string | The identifier for the subscription that you want to delete. -$notification_type = 'notification_type_example'; // string | The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). - -try { - $result = $apiInstance->deleteSubscriptionById($subscription_id, $notification_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->deleteSubscriptionById: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subscription_id** | **string**| The identifier for the subscription that you want to delete. | - **notification_type** | **string**| The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse**](../Model/NotificationsV1/DeleteSubscriptionByIdResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Operation Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `getDestination()` - -```php -getDestination($destination_id): \SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse -``` - - - -Returns information about the destination that you specify. The getDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$destination_id = 'destination_id_example'; // string | The identifier generated when you created the destination. - -try { - $result = $apiInstance->getDestination($destination_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->getDestination: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **destination_id** | **string**| The identifier generated when you created the destination. | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse**](../Model/NotificationsV1/GetDestinationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `getDestinations()` - -```php -getDestinations(): \SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse -``` - - - -Returns information about all destinations. The getDestinations API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); - -try { - $result = $apiInstance->getDestinations(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->getDestinations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse**](../Model/NotificationsV1/GetDestinationsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `getSubscription()` - -```php -getSubscription($notification_type): \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse -``` - - - -Returns information about subscriptions of the specified notification type. You can use this API to get subscription information when you do not have a subscription identifier. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$notification_type = 'notification_type_example'; // string | The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). - -try { - $result = $apiInstance->getSubscription($notification_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->getSubscription: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notification_type** | **string**| The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse**](../Model/NotificationsV1/GetSubscriptionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) - -## `getSubscriptionById()` - -```php -getSubscriptionById($subscription_id, $notification_type): \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse -``` - - - -Returns information about a subscription for the specified notification type. The getSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\NotificationsV1Api($config); -$subscription_id = 'subscription_id_example'; // string | The identifier for the subscription that you want to get. -$notification_type = 'notification_type_example'; // string | The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). - -try { - $result = $apiInstance->getSubscriptionById($subscription_id, $notification_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling NotificationsV1Api->getSubscriptionById: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subscription_id** | **string**| The identifier for the subscription that you want to get. | - **notification_type** | **string**| The type of notification. - - For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). | - -### Return type - -[**\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse**](../Model/NotificationsV1/GetSubscriptionByIdResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `Successful Response` - -[[Top]](#) [[API list]](../) -[[NotificationsV1 Model list]](../Model/NotificationsV1) -[[README]](../../README.md) diff --git a/docs/Api/OrdersV0Api.md b/docs/Api/OrdersV0Api.md deleted file mode 100644 index 2ffeacc37..000000000 --- a/docs/Api/OrdersV0Api.md +++ /dev/null @@ -1,736 +0,0 @@ -# SellingPartnerApi\OrdersV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**confirmShipment()**](OrdersV0Api.md#confirmShipment) | **POST** /orders/v0/orders/{orderId}/shipmentConfirmation | -[**getOrder()**](OrdersV0Api.md#getOrder) | **GET** /orders/v0/orders/{orderId} | -[**getOrderAddress()**](OrdersV0Api.md#getOrderAddress) | **GET** /orders/v0/orders/{orderId}/address | -[**getOrderBuyerInfo()**](OrdersV0Api.md#getOrderBuyerInfo) | **GET** /orders/v0/orders/{orderId}/buyerInfo | -[**getOrderItems()**](OrdersV0Api.md#getOrderItems) | **GET** /orders/v0/orders/{orderId}/orderItems | -[**getOrderItemsBuyerInfo()**](OrdersV0Api.md#getOrderItemsBuyerInfo) | **GET** /orders/v0/orders/{orderId}/orderItems/buyerInfo | -[**getOrderRegulatedInfo()**](OrdersV0Api.md#getOrderRegulatedInfo) | **GET** /orders/v0/orders/{orderId}/regulatedInfo | -[**getOrders()**](OrdersV0Api.md#getOrders) | **GET** /orders/v0/orders | -[**updateShipmentStatus()**](OrdersV0Api.md#updateShipmentStatus) | **POST** /orders/v0/orders/{orderId}/shipment | -[**updateVerificationStatus()**](OrdersV0Api.md#updateVerificationStatus) | **PATCH** /orders/v0/orders/{orderId}/regulatedInfo | - - -## `confirmShipment()` - -```php -confirmShipment($order_id, $payload) -``` - - - -Updates the shipment confirmation status for a specified order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$payload = new \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest(); // \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest | Request body of confirmShipment. - -try { - $apiInstance->confirmShipment($order_id, $payload); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->confirmShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **payload** | [**\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest**](../Model/OrdersV0/ConfirmShipmentRequest.md)| Request body of confirmShipment. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrder()` - -```php -getOrder($order_id, $data_elements): \SellingPartnerApi\Model\OrdersV0\GetOrderResponse -``` - - - -Returns the order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$data_elements = array('data_elements_example'); // string[] | An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") - -try { - $result = $apiInstance->getOrder($order_id, $data_elements); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **data_elements** | [**string[]**](../Model/OrdersV0/string.md)| An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") | [optional] - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderResponse**](../Model/OrdersV0/GetOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrderAddress()` - -```php -getOrderAddress($order_id): \SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse -``` - - - -Returns the shipping address for the order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An orderId is an Amazon-defined order identifier, in 3-7-7 format. - -try { - $result = $apiInstance->getOrderAddress($order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrderAddress: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An orderId is an Amazon-defined order identifier, in 3-7-7 format. | - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse**](../Model/OrdersV0/GetOrderAddressResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrderBuyerInfo()` - -```php -getOrderBuyerInfo($order_id): \SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse -``` - - - -Returns buyer information for the order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An orderId is an Amazon-defined order identifier, in 3-7-7 format. - -try { - $result = $apiInstance->getOrderBuyerInfo($order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrderBuyerInfo: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An orderId is an Amazon-defined order identifier, in 3-7-7 format. | - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse**](../Model/OrdersV0/GetOrderBuyerInfoResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrderItems()` - -```php -getOrderItems($order_id, $next_token, $data_elements): \SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse -``` - - - -Returns detailed order item information for the order that you specify. If NextToken is provided, it's used to retrieve the next page of order items. - -__Note__: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. -$data_elements = array('data_elements_example'); // string[] | An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") - -try { - $result = $apiInstance->getOrderItems($order_id, $next_token, $data_elements); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrderItems: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - **data_elements** | [**string[]**](../Model/OrdersV0/string.md)| An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") | [optional] - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse**](../Model/OrdersV0/GetOrderItemsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrderItemsBuyerInfo()` - -```php -getOrderItemsBuyerInfo($order_id, $next_token): \SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse -``` - - - -Returns buyer information for the order items in the order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. - -try { - $result = $apiInstance->getOrderItemsBuyerInfo($order_id, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrderItemsBuyerInfo: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse**](../Model/OrdersV0/GetOrderItemsBuyerInfoResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrderRegulatedInfo()` - -```php -getOrderRegulatedInfo($order_id): \SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse -``` - - - -Returns regulated information for the order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An orderId is an Amazon-defined order identifier, in 3-7-7 format. - -try { - $result = $apiInstance->getOrderRegulatedInfo($order_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrderRegulatedInfo: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An orderId is an Amazon-defined order identifier, in 3-7-7 format. | - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse**](../Model/OrdersV0/GetOrderRegulatedInfoResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `PendingOrder`, `ApprovedOrder`, `RejectedOrder` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `getOrders()` - -```php -getOrders($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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements): \SellingPartnerApi\Model\OrdersV0\GetOrdersResponse -``` - - - -Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$marketplace_ids = array('marketplace_ids_example'); // string[] | A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. -$created_after = 'created_after_example'; // string | 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. -$created_before = 'created_before_example'; // string | 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. -$last_updated_after = 'last_updated_after_example'; // string | 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. -$last_updated_before = 'last_updated_before_example'; // string | 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. -$order_statuses = array('order_statuses_example'); // string[] | A list of `OrderStatus` values used to filter the results. - // **Possible values:** - // - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - // - `Pending` (The order has been placed but payment has not been authorized.) - // - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - // - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - // - `Shipped` (All items in the order have been shipped.) - // - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - // - `Canceled` (The order has been canceled.) - // - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) -$fulfillment_channels = array('fulfillment_channels_example'); // string[] | A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). -$payment_methods = array('payment_methods_example'); // string[] | 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). -$buyer_email = 'buyer_email_example'; // string | The email address of a buyer. Used to select orders that contain the specified email address. -$seller_order_id = 'seller_order_id_example'; // string | 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. -$max_results_per_page = 56; // int | A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. -$easy_ship_shipment_statuses = array('easy_ship_shipment_statuses_example'); // string[] | A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. - // **Possible values:** - // - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - // - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - // - `PendingDropOff` (The seller will deliver the package to the carrier.) - // - `LabelCanceled` (The seller canceled the pickup.) - // - `PickedUp` (Amazon has picked up the package from the seller.) - // - `DroppedOff` (The package is delivered to the carrier by the seller.) - // - `AtOriginFC` (The packaged is at the origin fulfillment center.) - // - `AtDestinationFC` (The package is at the destination fulfillment center.) - // - `Delivered` (The package has been delivered.) - // - `RejectedByBuyer` (The package has been rejected by the buyer.) - // - `Undeliverable` (The package cannot be delivered.) - // - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - // - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - // - `Lost` (The package is lost.) - // - `OutForDelivery` (The package is out for delivery.) - // - `Damaged` (The package was damaged by the carrier.) -$electronic_invoice_statuses = array('electronic_invoice_statuses_example'); // string[] | A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - // **Possible values:** - // - `NotRequired` (Electronic invoice submission is not required for this order.) - // - `NotFound` (The electronic invoice was not submitted for this order.) - // - `Processing` (The electronic invoice is being processed for this order.) - // - `Errored` (The last submitted electronic invoice was rejected for this order.) - // - `Accepted` (The last submitted electronic invoice was submitted and accepted.) -$next_token = 'next_token_example'; // string | A string token returned in the response of your previous request. -$amazon_order_ids = array('amazon_order_ids_example'); // string[] | A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. -$actual_fulfillment_supply_source_id = 'actual_fulfillment_supply_source_id_example'; // string | Denotes the recommended sourceId where the order should be fulfilled from. -$is_ispu = True; // bool | When true, this order is marked to be picked up from a store rather than delivered. -$store_chain_store_id = 'store_chain_store_id_example'; // string | The store chain store identifier. Linked to a specific store in a store chain. -$data_elements = array('data_elements_example'); // string[] | An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") - -try { - $result = $apiInstance->getOrders($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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->getOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/OrdersV0/string.md)| A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. | - **created_after** | **string**| 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] - **created_before** | **string**| 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] - **last_updated_after** | **string**| 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] - **last_updated_before** | **string**| 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] - **order_statuses** | [**string[]**](../Model/OrdersV0/string.md)| A list of `OrderStatus` values used to filter the results.

**Possible values:**
- `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.)
- `Pending` (The order has been placed but payment has not been authorized.)
- `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.)
- `PartiallyShipped` (One or more, but not all, items in the order have been shipped.)
- `Shipped` (All items in the order have been shipped.)
- `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.)
- `Canceled` (The order has been canceled.)
- `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) | [optional] - **fulfillment_channels** | [**string[]**](../Model/OrdersV0/string.md)| A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). | [optional] - **payment_methods** | [**string[]**](../Model/OrdersV0/string.md)| 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] - **buyer_email** | **string**| The email address of a buyer. Used to select orders that contain the specified email address. | [optional] - **seller_order_id** | **string**| 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] - **max_results_per_page** | **int**| A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. | [optional] - **easy_ship_shipment_statuses** | [**string[]**](../Model/OrdersV0/string.md)| A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned.

**Possible values:**
- `PendingSchedule` (The package is awaiting the schedule for pick-up.)
- `PendingPickUp` (Amazon has not yet picked up the package from the seller.)
- `PendingDropOff` (The seller will deliver the package to the carrier.)
- `LabelCanceled` (The seller canceled the pickup.)
- `PickedUp` (Amazon has picked up the package from the seller.)
- `DroppedOff` (The package is delivered to the carrier by the seller.)
- `AtOriginFC` (The packaged is at the origin fulfillment center.)
- `AtDestinationFC` (The package is at the destination fulfillment center.)
- `Delivered` (The package has been delivered.)
- `RejectedByBuyer` (The package has been rejected by the buyer.)
- `Undeliverable` (The package cannot be delivered.)
- `ReturningToSeller` (The package was not delivered and is being returned to the seller.)
- `ReturnedToSeller` (The package was not delivered and was returned to the seller.)
- `Lost` (The package is lost.)
- `OutForDelivery` (The package is out for delivery.)
- `Damaged` (The package was damaged by the carrier.) | [optional] - **electronic_invoice_statuses** | [**string[]**](../Model/OrdersV0/string.md)| A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values.

**Possible values:**
- `NotRequired` (Electronic invoice submission is not required for this order.)
- `NotFound` (The electronic invoice was not submitted for this order.)
- `Processing` (The electronic invoice is being processed for this order.)
- `Errored` (The last submitted electronic invoice was rejected for this order.)
- `Accepted` (The last submitted electronic invoice was submitted and accepted.) | [optional] - **next_token** | **string**| A string token returned in the response of your previous request. | [optional] - **amazon_order_ids** | [**string[]**](../Model/OrdersV0/string.md)| A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. | [optional] - **actual_fulfillment_supply_source_id** | **string**| Denotes the recommended sourceId where the order should be fulfilled from. | [optional] - **is_ispu** | **bool**| When true, this order is marked to be picked up from a store rather than delivered. | [optional] - **store_chain_store_id** | **string**| The store chain store identifier. Linked to a specific store in a store chain. | [optional] - **data_elements** | [**string[]**](../Model/OrdersV0/string.md)| An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") | [optional] - -### Return type - -[**\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse**](../Model/OrdersV0/GetOrdersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `updateShipmentStatus()` - -```php -updateShipmentStatus($order_id, $payload) -``` - - - -Update the shipment status for an order that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An Amazon-defined order identifier, in 3-7-7 format. -$payload = new \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest(); // \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest | The request body for the updateShipmentStatus operation. - -try { - $apiInstance->updateShipmentStatus($order_id, $payload); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->updateShipmentStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An Amazon-defined order identifier, in 3-7-7 format. | - **payload** | [**\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest**](../Model/OrdersV0/UpdateShipmentStatusRequest.md)| The request body for the updateShipmentStatus operation. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) - -## `updateVerificationStatus()` - -```php -updateVerificationStatus($order_id, $payload) -``` - - - -Updates (approves or rejects) the verification status of an order containing regulated products. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 30 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\OrdersV0Api($config); -$order_id = 'order_id_example'; // string | An orderId is an Amazon-defined order identifier, in 3-7-7 format. -$payload = new \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest(); // \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest | The request body for the updateVerificationStatus operation. - -try { - $apiInstance->updateVerificationStatus($order_id, $payload); -} catch (Exception $e) { - echo 'Exception when calling OrdersV0Api->updateVerificationStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_id** | **string**| An orderId is an Amazon-defined order identifier, in 3-7-7 format. | - **payload** | [**\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest**](../Model/OrdersV0/UpdateVerificationStatusRequest.md)| The request body for the updateVerificationStatus operation. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[OrdersV0 Model list]](../Model/OrdersV0) -[[README]](../../README.md) diff --git a/docs/Api/ProductPricingV0Api.md b/docs/Api/ProductPricingV0Api.md deleted file mode 100644 index 60876539b..000000000 --- a/docs/Api/ProductPricingV0Api.md +++ /dev/null @@ -1,431 +0,0 @@ -# SellingPartnerApi\ProductPricingV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCompetitivePricing()**](ProductPricingV0Api.md#getCompetitivePricing) | **GET** /products/pricing/v0/competitivePrice | -[**getItemOffers()**](ProductPricingV0Api.md#getItemOffers) | **GET** /products/pricing/v0/items/{Asin}/offers | -[**getItemOffersBatch()**](ProductPricingV0Api.md#getItemOffersBatch) | **POST** /batches/products/pricing/v0/itemOffers | -[**getListingOffers()**](ProductPricingV0Api.md#getListingOffers) | **GET** /products/pricing/v0/listings/{SellerSKU}/offers | -[**getListingOffersBatch()**](ProductPricingV0Api.md#getListingOffersBatch) | **POST** /batches/products/pricing/v0/listingOffers | -[**getPricing()**](ProductPricingV0Api.md#getPricing) | **GET** /products/pricing/v0/price | - - -## `getCompetitivePricing()` - -```php -getCompetitivePricing($marketplace_id, $item_type, $asins, $skus, $customer_type): \SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse -``` - - - -Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN. - -**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for which prices are returned. -$item_type = 'item_type_example'; // string | 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. -$asins = array('asins_example'); // string[] | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. -$skus = array('skus_example'); // string[] | A list of up to twenty seller SKU values used to identify items in the given marketplace. -$customer_type = 'customer_type_example'; // string | Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. - -try { - $result = $apiInstance->getCompetitivePricing($marketplace_id, $item_type, $asins, $skus, $customer_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getCompetitivePricing: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_type** | **string**| 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. | - **asins** | [**string[]**](../Model/ProductPricingV0/string.md)| A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. | [optional] - **skus** | [**string[]**](../Model/ProductPricingV0/string.md)| A list of up to twenty seller SKU values used to identify items in the given marketplace. | [optional] - **customer_type** | **string**| Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse**](../Model/ProductPricingV0/GetPricingResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) - -## `getItemOffers()` - -```php -getItemOffers($marketplace_id, $item_condition, $asin, $customer_type): \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse -``` - - - -Returns the lowest priced offers for a single item based on ASIN. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for which prices are returned. -$item_condition = 'item_condition_example'; // string | Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -$asin = 'asin_example'; // string | The Amazon Standard Identification Number (ASIN) of the item. -$customer_type = 'customer_type_example'; // string | Indicates whether to request Consumer or Business offers. Default is Consumer. - -try { - $result = $apiInstance->getItemOffers($marketplace_id, $item_condition, $asin, $customer_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getItemOffers: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_condition** | **string**| Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | - **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. | - **customer_type** | **string**| Indicates whether to request Consumer or Business offers. Default is Consumer. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse**](../Model/ProductPricingV0/GetOffersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) - -## `getItemOffersBatch()` - -```php -getItemOffersBatch($get_item_offers_batch_request_body): \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse -``` - - - -Returns the lowest priced offers for a batch of items based on ASIN. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$get_item_offers_batch_request_body = new \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest(); // \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest - -try { - $result = $apiInstance->getItemOffersBatch($get_item_offers_batch_request_body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getItemOffersBatch: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **get_item_offers_batch_request_body** | [**\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest**](../Model/ProductPricingV0/GetItemOffersBatchRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse**](../Model/ProductPricingV0/GetItemOffersBatchResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) - -## `getListingOffers()` - -```php -getListingOffers($marketplace_id, $item_condition, $seller_sku, $customer_type): \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse -``` - - - -Returns the lowest priced offers for a single SKU listing. - -**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for which prices are returned. -$item_condition = 'item_condition_example'; // string | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -$seller_sku = 'seller_sku_example'; // string | Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. -$customer_type = 'customer_type_example'; // string | Indicates whether to request Consumer or Business offers. Default is Consumer. - -try { - $result = $apiInstance->getListingOffers($marketplace_id, $item_condition, $seller_sku, $customer_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getListingOffers: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_condition** | **string**| Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | - **seller_sku** | **string**| Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. | - **customer_type** | **string**| Indicates whether to request Consumer or Business offers. Default is Consumer. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse**](../Model/ProductPricingV0/GetOffersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) - -## `getListingOffersBatch()` - -```php -getListingOffersBatch($get_listing_offers_batch_request_body): \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse -``` - - - -Returns the lowest priced offers for a batch of listings by SKU. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$get_listing_offers_batch_request_body = new \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest(); // \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest - -try { - $result = $apiInstance->getListingOffersBatch($get_listing_offers_batch_request_body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getListingOffersBatch: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **get_listing_offers_batch_request_body** | [**\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest**](../Model/ProductPricingV0/GetListingOffersBatchRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse**](../Model/ProductPricingV0/GetListingOffersBatchResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) - -## `getPricing()` - -```php -getPricing($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type): \SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse -``` - - - -Returns pricing information for a seller's offer listings based on seller SKU or ASIN. - -**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.5 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV0Api($config); -$marketplace_id = 'marketplace_id_example'; // string | A marketplace identifier. Specifies the marketplace for which prices are returned. -$item_type = 'item_type_example'; // string | 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. -$asins = array('asins_example'); // string[] | A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. -$skus = array('skus_example'); // string[] | A list of up to twenty seller SKU values used to identify items in the given marketplace. -$item_condition = 'item_condition_example'; // string | Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. -$offer_type = 'offer_type_example'; // string | Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. - -try { - $result = $apiInstance->getPricing($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV0Api->getPricing: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_id** | **string**| A marketplace identifier. Specifies the marketplace for which prices are returned. | - **item_type** | **string**| 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. | - **asins** | [**string[]**](../Model/ProductPricingV0/string.md)| A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. | [optional] - **skus** | [**string[]**](../Model/ProductPricingV0/string.md)| A list of up to twenty seller SKU values used to identify items in the given marketplace. | [optional] - **item_condition** | **string**| Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. | [optional] - **offer_type** | **string**| Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse**](../Model/ProductPricingV0/GetPricingResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV0 Model list]](../Model/ProductPricingV0) -[[README]](../../README.md) diff --git a/docs/Api/ProductPricingV20220501Api.md b/docs/Api/ProductPricingV20220501Api.md deleted file mode 100644 index b2485a90e..000000000 --- a/docs/Api/ProductPricingV20220501Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\ProductPricingV20220501Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getFeaturedOfferExpectedPriceBatch()**](ProductPricingV20220501Api.md#getFeaturedOfferExpectedPriceBatch) | **POST** /batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice | - - -## `getFeaturedOfferExpectedPriceBatch()` - -```php -getFeaturedOfferExpectedPriceBatch($get_featured_offer_expected_price_batch_request_body): \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse -``` - - - -Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.033 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductPricingV20220501Api($config); -$get_featured_offer_expected_price_batch_request_body = new \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest(); // \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest - -try { - $result = $apiInstance->getFeaturedOfferExpectedPriceBatch($get_featured_offer_expected_price_batch_request_body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductPricingV20220501Api->getFeaturedOfferExpectedPriceBatch: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **get_featured_offer_expected_price_batch_request_body** | [**\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest**](../Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse**](../Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductPricingV20220501 Model list]](../Model/ProductPricingV20220501) -[[README]](../../README.md) diff --git a/docs/Api/ProductTypeDefinitionsV20200901Api.md b/docs/Api/ProductTypeDefinitionsV20200901Api.md deleted file mode 100644 index fffda4582..000000000 --- a/docs/Api/ProductTypeDefinitionsV20200901Api.md +++ /dev/null @@ -1,152 +0,0 @@ -# SellingPartnerApi\ProductTypeDefinitionsV20200901Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getDefinitionsProductType()**](ProductTypeDefinitionsV20200901Api.md#getDefinitionsProductType) | **GET** /definitions/2020-09-01/productTypes/{productType} | -[**searchDefinitionsProductTypes()**](ProductTypeDefinitionsV20200901Api.md#searchDefinitionsProductTypes) | **GET** /definitions/2020-09-01/productTypes | - - -## `getDefinitionsProductType()` - -```php -getDefinitionsProductType($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale): \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition -``` - - - -Retrieve an Amazon product type definition. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 5 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductTypeDefinitionsV20200901Api($config); -$product_type = LUGGAGE; // string | The Amazon product type name. -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. - // Note: This parameter is limited to one marketplaceId at this time. -$seller_id = 'seller_id_example'; // string | A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. -$product_type_version = LATEST; // string | The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. -$requirements = LISTING; // string | The name of the requirements set to retrieve requirements for. -$requirements_enforced = ENFORCED; // string | Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). -$locale = DEFAULT; // string | Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. - -try { - $result = $apiInstance->getDefinitionsProductType($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductTypeDefinitionsV20200901Api->getDefinitionsProductType: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **product_type** | **string**| The Amazon product type name. | - **marketplace_ids** | [**string[]**](../Model/ProductTypeDefinitionsV20200901/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request.
Note: This parameter is limited to one marketplaceId at this time. | - **seller_id** | **string**| A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. | [optional] - **product_type_version** | **string**| The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. | [optional] [default to 'LATEST'] - **requirements** | **string**| The name of the requirements set to retrieve requirements for. | [optional] [default to 'LISTING'] - **requirements_enforced** | **string**| Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). | [optional] [default to 'ENFORCED'] - **locale** | **string**| Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. | [optional] [default to 'DEFAULT'] - -### Return type - -[**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition**](../Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductTypeDefinitionsV20200901 Model list]](../Model/ProductTypeDefinitionsV20200901) -[[README]](../../README.md) - -## `searchDefinitionsProductTypes()` - -```php -searchDefinitionsProductTypes($marketplace_ids, $keywords): \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList -``` - - - -Search for and return a list of Amazon product types that have definitions available. - -**Usage Plans:** - -| Plan type | Rate (requests per second) | Burst | -| ---- | ---- | ---- | -|Default| 5 | 10 | -|Selling partner specific| Variable | Variable | - -The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ProductTypeDefinitionsV20200901Api($config); -$marketplace_ids = ATVPDKIKX0DER; // string[] | A comma-delimited list of Amazon marketplace identifiers for the request. -$keywords = LUGGAGE; // string[] | A comma-delimited list of keywords to search product types by. - -try { - $result = $apiInstance->searchDefinitionsProductTypes($marketplace_ids, $keywords); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ProductTypeDefinitionsV20200901Api->searchDefinitionsProductTypes: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/ProductTypeDefinitionsV20200901/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. | - **keywords** | [**string[]**](../Model/ProductTypeDefinitionsV20200901/string.md)| A comma-delimited list of keywords to search product types by. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList**](../Model/ProductTypeDefinitionsV20200901/ProductTypeList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ProductTypeDefinitionsV20200901 Model list]](../Model/ProductTypeDefinitionsV20200901) -[[README]](../../README.md) diff --git a/docs/Api/ReplenishmentV20221107Api.md b/docs/Api/ReplenishmentV20221107Api.md deleted file mode 100644 index 61098fc16..000000000 --- a/docs/Api/ReplenishmentV20221107Api.md +++ /dev/null @@ -1,200 +0,0 @@ -# SellingPartnerApi\ReplenishmentV20221107Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getSellingPartnerMetrics()**](ReplenishmentV20221107Api.md#getSellingPartnerMetrics) | **POST** /replenishment/2022-11-07/sellingPartners/metrics/search | -[**listOfferMetrics()**](ReplenishmentV20221107Api.md#listOfferMetrics) | **POST** /replenishment/2022-11-07/offers/metrics/search | -[**listOffers()**](ReplenishmentV20221107Api.md#listOffers) | **POST** /replenishment/2022-11-07/offers/search | - - -## `getSellingPartnerMetrics()` - -```php -getSellingPartnerMetrics($body): \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse -``` - - - -Returns aggregated replenishment program metrics for a selling partner. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReplenishmentV20221107Api($config); -$body = new \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest(); // \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest - -try { - $result = $apiInstance->getSellingPartnerMetrics($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReplenishmentV20221107Api->getSellingPartnerMetrics: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest**](../Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.md)| | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse**](../Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReplenishmentV20221107 Model list]](../Model/ReplenishmentV20221107) -[[README]](../../README.md) - -## `listOfferMetrics()` - -```php -listOfferMetrics($body): \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse -``` - - - -Returns aggregated replenishment program metrics for a selling partner's offers. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReplenishmentV20221107Api($config); -$body = new \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest(); // \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest | The request body for the `listOfferMetrics` operation. - -try { - $result = $apiInstance->listOfferMetrics($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReplenishmentV20221107Api->listOfferMetrics: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest**](../Model/ReplenishmentV20221107/ListOfferMetricsRequest.md)| The request body for the `listOfferMetrics` operation. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse**](../Model/ReplenishmentV20221107/ListOfferMetricsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReplenishmentV20221107 Model list]](../Model/ReplenishmentV20221107) -[[README]](../../README.md) - -## `listOffers()` - -```php -listOffers($body): \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse -``` - - - -Returns the details of a selling partner's replenishment program offers. Note that this operation only supports sellers at this time. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReplenishmentV20221107Api($config); -$body = new \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest(); // \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest - -try { - $result = $apiInstance->listOffers($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReplenishmentV20221107Api->listOffers: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest**](../Model/ReplenishmentV20221107/ListOffersRequest.md)| | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse**](../Model/ReplenishmentV20221107/ListOffersResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReplenishmentV20221107 Model list]](../Model/ReplenishmentV20221107) -[[README]](../../README.md) diff --git a/docs/Api/ReportsV20210630Api.md b/docs/Api/ReportsV20210630Api.md deleted file mode 100644 index d9832c6d9..000000000 --- a/docs/Api/ReportsV20210630Api.md +++ /dev/null @@ -1,602 +0,0 @@ -# SellingPartnerApi\ReportsV20210630Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelReport()**](ReportsV20210630Api.md#cancelReport) | **DELETE** /reports/2021-06-30/reports/{reportId} | -[**cancelReportSchedule()**](ReportsV20210630Api.md#cancelReportSchedule) | **DELETE** /reports/2021-06-30/schedules/{reportScheduleId} | -[**createReport()**](ReportsV20210630Api.md#createReport) | **POST** /reports/2021-06-30/reports | -[**createReportSchedule()**](ReportsV20210630Api.md#createReportSchedule) | **POST** /reports/2021-06-30/schedules | -[**getReport()**](ReportsV20210630Api.md#getReport) | **GET** /reports/2021-06-30/reports/{reportId} | -[**getReportDocument()**](ReportsV20210630Api.md#getReportDocument) | **GET** /reports/2021-06-30/documents/{reportDocumentId} | -[**getReportSchedule()**](ReportsV20210630Api.md#getReportSchedule) | **GET** /reports/2021-06-30/schedules/{reportScheduleId} | -[**getReportSchedules()**](ReportsV20210630Api.md#getReportSchedules) | **GET** /reports/2021-06-30/schedules | -[**getReports()**](ReportsV20210630Api.md#getReports) | **GET** /reports/2021-06-30/reports | - - -## `cancelReport()` - -```php -cancelReport($report_id) -``` - - - -Cancels the report that you specify. Only reports with processingStatus=IN_QUEUE can be cancelled. Cancelled reports are returned in subsequent calls to the getReport and getReports operations. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_id = 'report_id_example'; // string | The identifier for the report. This identifier is unique only in combination with a seller ID. - -try { - $apiInstance->cancelReport($report_id); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->cancelReport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **string**| The identifier for the report. This identifier is unique only in combination with a seller ID. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `cancelReportSchedule()` - -```php -cancelReportSchedule($report_schedule_id) -``` - - - -Cancels the report schedule that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_schedule_id = 'report_schedule_id_example'; // string | The identifier for the report schedule. This identifier is unique only in combination with a seller ID. - -try { - $apiInstance->cancelReportSchedule($report_schedule_id); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->cancelReportSchedule: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_schedule_id** | **string**| The identifier for the report schedule. This identifier is unique only in combination with a seller ID. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `createReport()` - -```php -createReport($body): \SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse -``` - - - -Creates a report. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$body = new \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification(); // \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification - -try { - $result = $apiInstance->createReport($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->createReport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification**](../Model/ReportsV20210630/CreateReportSpecification.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse**](../Model/ReportsV20210630/CreateReportResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `createReportSchedule()` - -```php -createReportSchedule($body): \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse -``` - - - -Creates a report schedule. If a report schedule with the same report type and marketplace IDs already exists, it will be cancelled and replaced with this one. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$body = new \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification(); // \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification - -try { - $result = $apiInstance->createReportSchedule($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->createReportSchedule: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification**](../Model/ReportsV20210630/CreateReportScheduleSpecification.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse**](../Model/ReportsV20210630/CreateReportScheduleResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `getReport()` - -```php -getReport($report_id): \SellingPartnerApi\Model\ReportsV20210630\Report -``` - - - -Returns report details (including the reportDocumentId, if available) for the report that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_id = 'report_id_example'; // string | The identifier for the report. This identifier is unique only in combination with a seller ID. - -try { - $result = $apiInstance->getReport($report_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->getReport: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **string**| The identifier for the report. This identifier is unique only in combination with a seller ID. | - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\Report**](../Model/ReportsV20210630/Report.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `getReportDocument()` - -```php -getReportDocument($report_document_id, $report_type): \SellingPartnerApi\Model\ReportsV20210630\ReportDocument -``` - - - -Returns the information required for retrieving a report document's contents. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0167 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_document_id = 'report_document_id_example'; // string | The identifier for the report document. -$report_type = 'report_type_example'; // string | The name of the document's report type. - -try { - $result = $apiInstance->getReportDocument($report_document_id, $report_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->getReportDocument: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_document_id** | **string**| The identifier for the report document. | - **report_type** | **string**| The name of the document's report type. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\ReportDocument**](../Model/ReportsV20210630/ReportDocument.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `getReportSchedule()` - -```php -getReportSchedule($report_schedule_id): \SellingPartnerApi\Model\ReportsV20210630\ReportSchedule -``` - - - -Returns report schedule details for the report schedule that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_schedule_id = 'report_schedule_id_example'; // string | The identifier for the report schedule. This identifier is unique only in combination with a seller ID. - -try { - $result = $apiInstance->getReportSchedule($report_schedule_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->getReportSchedule: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_schedule_id** | **string**| The identifier for the report schedule. This identifier is unique only in combination with a seller ID. | - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule**](../Model/ReportsV20210630/ReportSchedule.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `getReportSchedules()` - -```php -getReportSchedules($report_types): \SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList -``` - - - -Returns report schedule details that match the filters that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_types = array('report_types_example'); // string[] | A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. - -try { - $result = $apiInstance->getReportSchedules($report_types); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->getReportSchedules: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_types** | [**string[]**](../Model/ReportsV20210630/string.md)| A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. | - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList**](../Model/ReportsV20210630/ReportScheduleList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) - -## `getReports()` - -```php -getReports($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token): \SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse -``` - - - -Returns report details for the reports that match the filters that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.0222 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ReportsV20210630Api($config); -$report_types = array('report_types_example'); // string[] | A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. -$processing_statuses = array('processing_statuses_example'); // string[] | A list of processing statuses used to filter reports. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. -$page_size = 10; // int | The maximum number of reports to return in a single call. -$created_since = 'created_since_example'; // string | The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. -$created_until = 'created_until_example'; // string | The latest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is now. -$next_token = 'next_token_example'; // string | 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. - -try { - $result = $apiInstance->getReports($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ReportsV20210630Api->getReports: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_types** | [**string[]**](../Model/ReportsV20210630/string.md)| A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. | [optional] - **processing_statuses** | [**string[]**](../Model/ReportsV20210630/string.md)| A list of processing statuses used to filter reports. | [optional] - **marketplace_ids** | [**string[]**](../Model/ReportsV20210630/string.md)| A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. | [optional] - **page_size** | **int**| The maximum number of reports to return in a single call. | [optional] [default to 10] - **created_since** | **string**| The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. | [optional] - **created_until** | **string**| 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] - **next_token** | **string**| 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] - -### Return type - -[**\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse**](../Model/ReportsV20210630/GetReportsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ReportsV20210630 Model list]](../Model/ReportsV20210630) -[[README]](../../README.md) diff --git a/docs/Api/SalesV1Api.md b/docs/Api/SalesV1Api.md deleted file mode 100644 index 335c25133..000000000 --- a/docs/Api/SalesV1Api.md +++ /dev/null @@ -1,87 +0,0 @@ -# SellingPartnerApi\SalesV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getOrderMetrics()**](SalesV1Api.md#getOrderMetrics) | **GET** /sales/v1/orderMetrics | - - -## `getOrderMetrics()` - -```php -getOrderMetrics($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku): \SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse -``` - - - -Returns aggregated order metrics for given interval, broken down by granularity, for given buyer type. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| .5 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SalesV1Api($config); -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - // For example, ATVPDKIKX0DER indicates the US marketplace. -$interval = 'interval_example'; // string | 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. -$granularity = 'granularity_example'; // string | 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. -$granularity_time_zone = 'granularity_time_zone_example'; // string | 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. -$buyer_type = 'All'; // string | 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. -$fulfillment_network = 'fulfillment_network_example'; // string | 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. -$first_day_of_week = 'monday'; // string | Specifies the day that the week starts on when granularity=Week, either monday or sunday (all lowercase). Default: monday. Example: sunday, if you want the week to start on a Sunday. -$asin = 'asin_example'; // string | 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. -$sku = 'sku_example'; // string | 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. - -try { - $result = $apiInstance->getOrderMetrics($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SalesV1Api->getOrderMetrics: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/SalesV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.

For example, ATVPDKIKX0DER indicates the US marketplace. | - **interval** | **string**| 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. | - **granularity** | **string**| 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. | - **granularity_time_zone** | **string**| 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] - **buyer_type** | **string**| 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'] - **fulfillment_network** | **string**| 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] - **first_day_of_week** | **string**| Specifies the day that the week starts on when granularity=Week, either monday or sunday (all lowercase). Default: monday. Example: sunday, if you want the week to start on a Sunday. | [optional] [default to 'monday'] - **asin** | **string**| 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] - **sku** | **string**| 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] - -### Return type - -[**\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse**](../Model/SalesV1/GetOrderMetricsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[SalesV1 Model list]](../Model/SalesV1) -[[README]](../../README.md) diff --git a/docs/Api/SellersV1Api.md b/docs/Api/SellersV1Api.md deleted file mode 100644 index 260a26217..000000000 --- a/docs/Api/SellersV1Api.md +++ /dev/null @@ -1,67 +0,0 @@ -# SellingPartnerApi\SellersV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getMarketplaceParticipations()**](SellersV1Api.md#getMarketplaceParticipations) | **GET** /sellers/v1/marketplaceParticipations | - - -## `getMarketplaceParticipations()` - -```php -getMarketplaceParticipations(): \SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse -``` - - - -Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 0.016 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SellersV1Api($config); - -try { - $result = $apiInstance->getMarketplaceParticipations(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SellersV1Api->getMarketplaceParticipations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse**](../Model/SellersV1/GetMarketplaceParticipationsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[SellersV1 Model list]](../Model/SellersV1) -[[README]](../../README.md) diff --git a/docs/Api/ServiceV1Api.md b/docs/Api/ServiceV1Api.md deleted file mode 100644 index ca014a5e1..000000000 --- a/docs/Api/ServiceV1Api.md +++ /dev/null @@ -1,1194 +0,0 @@ -# SellingPartnerApi\ServiceV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addAppointmentForServiceJobByServiceJobId()**](ServiceV1Api.md#addAppointmentForServiceJobByServiceJobId) | **POST** /service/v1/serviceJobs/{serviceJobId}/appointments | -[**assignAppointmentResources()**](ServiceV1Api.md#assignAppointmentResources) | **PUT** /service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/resources | -[**cancelReservation()**](ServiceV1Api.md#cancelReservation) | **DELETE** /service/v1/reservation/{reservationId} | -[**cancelServiceJobByServiceJobId()**](ServiceV1Api.md#cancelServiceJobByServiceJobId) | **PUT** /service/v1/serviceJobs/{serviceJobId}/cancellations | -[**completeServiceJobByServiceJobId()**](ServiceV1Api.md#completeServiceJobByServiceJobId) | **PUT** /service/v1/serviceJobs/{serviceJobId}/completions | -[**createReservation()**](ServiceV1Api.md#createReservation) | **POST** /service/v1/reservation | -[**createServiceDocumentUploadDestination()**](ServiceV1Api.md#createServiceDocumentUploadDestination) | **POST** /service/v1/documents | -[**getAppointmentSlots()**](ServiceV1Api.md#getAppointmentSlots) | **GET** /service/v1/appointmentSlots | -[**getAppointmmentSlotsByJobId()**](ServiceV1Api.md#getAppointmmentSlotsByJobId) | **GET** /service/v1/serviceJobs/{serviceJobId}/appointmentSlots | -[**getFixedSlotCapacity()**](ServiceV1Api.md#getFixedSlotCapacity) | **POST** /service/v1/serviceResources/{resourceId}/capacity/fixed | -[**getRangeSlotCapacity()**](ServiceV1Api.md#getRangeSlotCapacity) | **POST** /service/v1/serviceResources/{resourceId}/capacity/range | -[**getServiceJobByServiceJobId()**](ServiceV1Api.md#getServiceJobByServiceJobId) | **GET** /service/v1/serviceJobs/{serviceJobId} | -[**getServiceJobs()**](ServiceV1Api.md#getServiceJobs) | **GET** /service/v1/serviceJobs | -[**rescheduleAppointmentForServiceJobByServiceJobId()**](ServiceV1Api.md#rescheduleAppointmentForServiceJobByServiceJobId) | **POST** /service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId} | -[**setAppointmentFulfillmentData()**](ServiceV1Api.md#setAppointmentFulfillmentData) | **PUT** /service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/fulfillment | -[**updateReservation()**](ServiceV1Api.md#updateReservation) | **PUT** /service/v1/reservation/{reservationId} | -[**updateSchedule()**](ServiceV1Api.md#updateSchedule) | **PUT** /service/v1/serviceResources/{resourceId}/schedules | - - -## `addAppointmentForServiceJobByServiceJobId()` - -```php -addAppointmentForServiceJobByServiceJobId($service_job_id, $body): \SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse -``` - - - -Adds an appointment to the service job indicated by the service job identifier specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon defined service job identifier. -$body = new \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest(); // \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest | Add appointment operation input details. - -try { - $result = $apiInstance->addAppointmentForServiceJobByServiceJobId($service_job_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->addAppointmentForServiceJobByServiceJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon defined service job identifier. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest**](../Model/ServiceV1/AddAppointmentRequest.md)| Add appointment operation input details. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse**](../Model/ServiceV1/SetAppointmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `assignAppointmentResources()` - -```php -assignAppointmentResources($service_job_id, $appointment_id, $body): \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse -``` - - - -Assigns new resource(s) or overwrite/update the existing one(s) to a service job appointment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 2 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. -$appointment_id = 'appointment_id_example'; // string | An Amazon-defined identifier of active service job appointment. -$body = new \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest(); // \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest - -try { - $result = $apiInstance->assignAppointmentResources($service_job_id, $appointment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->assignAppointmentResources: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. | - **appointment_id** | **string**| An Amazon-defined identifier of active service job appointment. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest**](../Model/ServiceV1/AssignAppointmentResourcesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse**](../Model/ServiceV1/AssignAppointmentResourcesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `cancelReservation()` - -```php -cancelReservation($reservation_id, $marketplace_ids): \SellingPartnerApi\Model\ServiceV1\CancelReservationResponse -``` - - - -Cancel a reservation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$reservation_id = 'reservation_id_example'; // string | Reservation Identifier -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. - -try { - $result = $apiInstance->cancelReservation($reservation_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->cancelReservation: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **string**| Reservation Identifier | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse**](../Model/ServiceV1/CancelReservationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `cancelServiceJobByServiceJobId()` - -```php -cancelServiceJobByServiceJobId($service_job_id, $cancellation_reason_code): \SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse -``` - - - -Cancels the service job indicated by the service job identifier specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon defined service job identifier. -$cancellation_reason_code = 'cancellation_reason_code_example'; // string | A cancel reason code that specifies the reason for cancelling a service job. - -try { - $result = $apiInstance->cancelServiceJobByServiceJobId($service_job_id, $cancellation_reason_code); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->cancelServiceJobByServiceJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon defined service job identifier. | - **cancellation_reason_code** | **string**| A cancel reason code that specifies the reason for cancelling a service job. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse**](../Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `completeServiceJobByServiceJobId()` - -```php -completeServiceJobByServiceJobId($service_job_id): \SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse -``` - - - -Completes the service job indicated by the service job identifier specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon defined service job identifier. - -try { - $result = $apiInstance->completeServiceJobByServiceJobId($service_job_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->completeServiceJobByServiceJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon defined service job identifier. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse**](../Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `createReservation()` - -```php -createReservation($marketplace_ids, $body): \SellingPartnerApi\Model\ServiceV1\CreateReservationResponse -``` - - - -Create a reservation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$body = new \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest(); // \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest | Reservation details - -try { - $result = $apiInstance->createReservation($marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->createReservation: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\CreateReservationRequest**](../Model/ServiceV1/CreateReservationRequest.md)| Reservation details | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse**](../Model/ServiceV1/CreateReservationResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `createServiceDocumentUploadDestination()` - -```php -createServiceDocumentUploadDestination($body): \SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination -``` - - - -Creates an upload destination. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$body = new \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument(); // \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument | Upload document operation input details. - -try { - $result = $apiInstance->createServiceDocumentUploadDestination($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->createServiceDocumentUploadDestination: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument**](../Model/ServiceV1/ServiceUploadDocument.md)| Upload document operation input details. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination**](../Model/ServiceV1/CreateServiceDocumentUploadDestination.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getAppointmentSlots()` - -```php -getAppointmentSlots($asin, $store_id, $marketplace_ids, $start_time, $end_time): \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse -``` - - - -Gets appointment slots as per the service context specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 20 | 40 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$asin = 'asin_example'; // string | ASIN associated with the service. -$store_id = 'store_id_example'; // string | Store identifier defining the region scope to retrive appointment slots. -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace for which appointment slots are queried -$start_time = 'start_time_example'; // string | A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. -$end_time = 'end_time_example'; // string | A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. - -try { - $result = $apiInstance->getAppointmentSlots($asin, $store_id, $marketplace_ids, $start_time, $end_time); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getAppointmentSlots: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **asin** | **string**| ASIN associated with the service. | - **store_id** | **string**| Store identifier defining the region scope to retrive appointment slots. | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace for which appointment slots are queried | - **start_time** | **string**| A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. | [optional] - **end_time** | **string**| A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse**](../Model/ServiceV1/GetAppointmentSlotsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getAppointmmentSlotsByJobId()` - -```php -getAppointmmentSlotsByJobId($service_job_id, $marketplace_ids, $start_time, $end_time): \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse -``` - - - -Gets appointment slots for the service associated with the service job id specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | A service job identifier to retrive appointment slots for associated service. -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$start_time = 'start_time_example'; // string | A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. -$end_time = 'end_time_example'; // string | A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. - -try { - $result = $apiInstance->getAppointmmentSlotsByJobId($service_job_id, $marketplace_ids, $start_time, $end_time); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getAppointmmentSlotsByJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| A service job identifier to retrive appointment slots for associated service. | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **start_time** | **string**| A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. | [optional] - **end_time** | **string**| A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse**](../Model/ServiceV1/GetAppointmentSlotsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getFixedSlotCapacity()` - -```php -getFixedSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token): \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity -``` - - - -Provides capacity in fixed-size slots. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$resource_id = 'resource_id_example'; // string | Resource Identifier. -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$body = new \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery(); // \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery | Request body. -$next_page_token = 'next_page_token_example'; // string | Next page token returned in the response of your previous request. - -try { - $result = $apiInstance->getFixedSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getFixedSlotCapacity: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resource_id** | **string**| Resource Identifier. | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery**](../Model/ServiceV1/FixedSlotCapacityQuery.md)| Request body. | - **next_page_token** | **string**| Next page token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity**](../Model/ServiceV1/FixedSlotCapacity.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getRangeSlotCapacity()` - -```php -getRangeSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token): \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity -``` - - - -Provides capacity slots in a format similar to availability records. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$resource_id = 'resource_id_example'; // string | Resource Identifier. -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$body = new \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery(); // \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery | Request body. -$next_page_token = 'next_page_token_example'; // string | Next page token returned in the response of your previous request. - -try { - $result = $apiInstance->getRangeSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getRangeSlotCapacity: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resource_id** | **string**| Resource Identifier. | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery**](../Model/ServiceV1/RangeSlotCapacityQuery.md)| Request body. | - **next_page_token** | **string**| Next page token returned in the response of your previous request. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity**](../Model/ServiceV1/RangeSlotCapacity.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getServiceJobByServiceJobId()` - -```php -getServiceJobByServiceJobId($service_job_id): \SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse -``` - - - -Gets details of service job indicated by the provided `serviceJobID`. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 20 | 40 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | A service job identifier. - -try { - $result = $apiInstance->getServiceJobByServiceJobId($service_job_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getServiceJobByServiceJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| A service job identifier. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse**](../Model/ServiceV1/GetServiceJobByServiceJobIdResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `getServiceJobs()` - -```php -getServiceJobs($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, $asins, $required_skills, $store_ids): \SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse -``` - - - -Gets service job details for the specified filter query. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 40 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$marketplace_ids = array('marketplace_ids_example'); // string[] | Used to select jobs that were placed in the specified marketplaces. -$service_order_ids = array('service_order_ids_example'); // string[] | List of service order ids for the query you want to perform.Max values supported 20. -$service_job_status = array('service_job_status_example'); // string[] | A list of one or more job status by which to filter the list of jobs. -$page_token = 'page_token_example'; // string | String returned in the response of your previous request. -$page_size = 20; // int | A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. -$sort_field = 'sort_field_example'; // string | Sort fields on which you want to sort the output. -$sort_order = 'sort_order_example'; // string | Sort order for the query you want to perform. -$created_after = 'created_after_example'; // string | A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. -$created_before = 'created_before_example'; // string | A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format. -$last_updated_after = 'last_updated_after_example'; // string | A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. -$last_updated_before = 'last_updated_before_example'; // string | A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format. -$schedule_start_date = 'schedule_start_date_example'; // string | A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. -$schedule_end_date = 'schedule_end_date_example'; // string | A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. -$asins = array('asins_example'); // string[] | List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. -$required_skills = array('required_skills_example'); // string[] | A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. -$store_ids = array('store_ids_example'); // string[] | List of Amazon-defined identifiers for the region scope. Max values supported is 50. - -try { - $result = $apiInstance->getServiceJobs($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, $asins, $required_skills, $store_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->getServiceJobs: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| Used to select jobs that were placed in the specified marketplaces. | - **service_order_ids** | [**string[]**](../Model/ServiceV1/string.md)| List of service order ids for the query you want to perform.Max values supported 20. | [optional] - **service_job_status** | [**string[]**](../Model/ServiceV1/string.md)| A list of one or more job status by which to filter the list of jobs. | [optional] - **page_token** | **string**| String returned in the response of your previous request. | [optional] - **page_size** | **int**| 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] - **sort_field** | **string**| Sort fields on which you want to sort the output. | [optional] - **sort_order** | **string**| Sort order for the query you want to perform. | [optional] - **created_after** | **string**| A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. | [optional] - **created_before** | **string**| A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format. | [optional] - **last_updated_after** | **string**| A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. | [optional] - **last_updated_before** | **string**| A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format. | [optional] - **schedule_start_date** | **string**| A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. | [optional] - **schedule_end_date** | **string**| A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. | [optional] - **asins** | [**string[]**](../Model/ServiceV1/string.md)| List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. | [optional] - **required_skills** | [**string[]**](../Model/ServiceV1/string.md)| A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. | [optional] - **store_ids** | [**string[]**](../Model/ServiceV1/string.md)| List of Amazon-defined identifiers for the region scope. Max values supported is 50. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse**](../Model/ServiceV1/GetServiceJobsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `rescheduleAppointmentForServiceJobByServiceJobId()` - -```php -rescheduleAppointmentForServiceJobByServiceJobId($service_job_id, $appointment_id, $body): \SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse -``` - - - -Reschedules an appointment for the service job indicated by the service job identifier specified. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon defined service job identifier. -$appointment_id = 'appointment_id_example'; // string | An existing appointment identifier for the Service Job. -$body = new \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest(); // \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest | Reschedule appointment operation input details. - -try { - $result = $apiInstance->rescheduleAppointmentForServiceJobByServiceJobId($service_job_id, $appointment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->rescheduleAppointmentForServiceJobByServiceJobId: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon defined service job identifier. | - **appointment_id** | **string**| An existing appointment identifier for the Service Job. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest**](../Model/ServiceV1/RescheduleAppointmentRequest.md)| Reschedule appointment operation input details. | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse**](../Model/ServiceV1/SetAppointmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `setAppointmentFulfillmentData()` - -```php -setAppointmentFulfillmentData($service_job_id, $appointment_id, $body): string -``` - - - -Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$service_job_id = 'service_job_id_example'; // string | An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. -$appointment_id = 'appointment_id_example'; // string | An Amazon-defined identifier of active service job appointment. -$body = new \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest(); // \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest | Appointment fulfillment data collection details. - -try { - $result = $apiInstance->setAppointmentFulfillmentData($service_job_id, $appointment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->setAppointmentFulfillmentData: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **service_job_id** | **string**| An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. | - **appointment_id** | **string**| An Amazon-defined identifier of active service job appointment. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest**](../Model/ServiceV1/SetAppointmentFulfillmentDataRequest.md)| Appointment fulfillment data collection details. | - -### Return type - -**string** - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `updateReservation()` - -```php -updateReservation($reservation_id, $marketplace_ids, $body): \SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse -``` - - - -Update a reservation. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$reservation_id = 'reservation_id_example'; // string | Reservation Identifier -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$body = new \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest(); // \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest | Reservation details - -try { - $result = $apiInstance->updateReservation($reservation_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->updateReservation: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **string**| Reservation Identifier | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest**](../Model/ServiceV1/UpdateReservationRequest.md)| Reservation details | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse**](../Model/ServiceV1/UpdateReservationResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) - -## `updateSchedule()` - -```php -updateSchedule($resource_id, $marketplace_ids, $body): \SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse -``` - - - -Update the schedule of the given resource. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ServiceV1Api($config); -$resource_id = 'resource_id_example'; // string | Resource (store) Identifier -$marketplace_ids = array('marketplace_ids_example'); // string[] | An identifier for the marketplace in which the resource operates. -$body = new \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest(); // \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest | Schedule details - -try { - $result = $apiInstance->updateSchedule($resource_id, $marketplace_ids, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ServiceV1Api->updateSchedule: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resource_id** | **string**| Resource (store) Identifier | - **marketplace_ids** | [**string[]**](../Model/ServiceV1/string.md)| An identifier for the marketplace in which the resource operates. | - **body** | [**\SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest**](../Model/ServiceV1/UpdateScheduleRequest.md)| Schedule details | - -### Return type - -[**\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse**](../Model/ServiceV1/UpdateScheduleResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ServiceV1 Model list]](../Model/ServiceV1) -[[README]](../../README.md) diff --git a/docs/Api/ShipmentInvoicingV0Api.md b/docs/Api/ShipmentInvoicingV0Api.md deleted file mode 100644 index 40f13f29a..000000000 --- a/docs/Api/ShipmentInvoicingV0Api.md +++ /dev/null @@ -1,202 +0,0 @@ -# SellingPartnerApi\ShipmentInvoicingV0Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getInvoiceStatus()**](ShipmentInvoicingV0Api.md#getInvoiceStatus) | **GET** /fba/outbound/brazil/v0/shipments/{shipmentId}/invoice/status | -[**getShipmentDetails()**](ShipmentInvoicingV0Api.md#getShipmentDetails) | **GET** /fba/outbound/brazil/v0/shipments/{shipmentId} | -[**submitInvoice()**](ShipmentInvoicingV0Api.md#submitInvoice) | **POST** /fba/outbound/brazil/v0/shipments/{shipmentId}/invoice | - - -## `getInvoiceStatus()` - -```php -getInvoiceStatus($shipment_id): \SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse -``` - - - -Returns the invoice status for the shipment you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1.133 | 25 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShipmentInvoicingV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The shipment identifier for the shipment. - -try { - $result = $apiInstance->getInvoiceStatus($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShipmentInvoicingV0Api->getInvoiceStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The shipment identifier for the shipment. | - -### Return type - -[**\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse**](../Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShipmentInvoicingV0 Model list]](../Model/ShipmentInvoicingV0) -[[README]](../../README.md) - -## `getShipmentDetails()` - -```php -getShipmentDetails($shipment_id): \SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse -``` - - - -Returns the shipment details required to issue an invoice for the specified shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1.133 | 25 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShipmentInvoicingV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). - -try { - $result = $apiInstance->getShipmentDetails($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShipmentInvoicingV0Api->getShipmentDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). | - -### Return type - -[**\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse**](../Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShipmentInvoicingV0 Model list]](../Model/ShipmentInvoicingV0) -[[README]](../../README.md) - -## `submitInvoice()` - -```php -submitInvoice($shipment_id, $body): \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse -``` - - - -Submits a shipment invoice document for a given shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1.133 | 25 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShipmentInvoicingV0Api($config); -$shipment_id = 'shipment_id_example'; // string | The identifier for the shipment. -$body = new \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest(); // \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest - -try { - $result = $apiInstance->submitInvoice($shipment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShipmentInvoicingV0Api->submitInvoice: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The identifier for the shipment. | - **body** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest**](../Model/ShipmentInvoicingV0/SubmitInvoiceRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse**](../Model/ShipmentInvoicingV0/SubmitInvoiceResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShipmentInvoicingV0 Model list]](../Model/ShipmentInvoicingV0) -[[README]](../../README.md) diff --git a/docs/Api/ShippingV1Api.md b/docs/Api/ShippingV1Api.md deleted file mode 100644 index 6ebd2563a..000000000 --- a/docs/Api/ShippingV1Api.md +++ /dev/null @@ -1,593 +0,0 @@ -# SellingPartnerApi\ShippingV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelShipment()**](ShippingV1Api.md#cancelShipment) | **POST** /shipping/v1/shipments/{shipmentId}/cancel | -[**createShipment()**](ShippingV1Api.md#createShipment) | **POST** /shipping/v1/shipments | -[**getAccount()**](ShippingV1Api.md#getAccount) | **GET** /shipping/v1/account | -[**getRates()**](ShippingV1Api.md#getRates) | **POST** /shipping/v1/rates | -[**getShipment()**](ShippingV1Api.md#getShipment) | **GET** /shipping/v1/shipments/{shipmentId} | -[**getTrackingInformation()**](ShippingV1Api.md#getTrackingInformation) | **GET** /shipping/v1/tracking/{trackingId} | -[**purchaseLabels()**](ShippingV1Api.md#purchaseLabels) | **POST** /shipping/v1/shipments/{shipmentId}/purchaseLabels | -[**purchaseShipment()**](ShippingV1Api.md#purchaseShipment) | **POST** /shipping/v1/purchaseShipment | -[**retrieveShippingLabel()**](ShippingV1Api.md#retrieveShippingLabel) | **POST** /shipping/v1/shipments/{shipmentId}/containers/{trackingId}/label | - - -## `cancelShipment()` - -```php -cancelShipment($shipment_id): \SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse -``` - - - -Cancel a shipment by the given shipmentId. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$shipment_id = 'shipment_id_example'; // string - -try { - $result = $apiInstance->cancelShipment($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->cancelShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse**](../Model/ShippingV1/CancelShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `createShipment()` - -```php -createShipment($body): \SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse -``` - - - -Create a new shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$body = new \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest(); // \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest - -try { - $result = $apiInstance->createShipment($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->createShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest**](../Model/ShippingV1/CreateShipmentRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse**](../Model/ShippingV1/CreateShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `getAccount()` - -```php -getAccount(): \SellingPartnerApi\Model\ShippingV1\GetAccountResponse -``` - - - -Verify if the current account is valid. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); - -try { - $result = $apiInstance->getAccount(); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->getAccount: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\GetAccountResponse**](../Model/ShippingV1/GetAccountResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `getRates()` - -```php -getRates($body): \SellingPartnerApi\Model\ShippingV1\GetRatesResponse -``` - - - -Get service rates. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$body = new \SellingPartnerApi\Model\ShippingV1\GetRatesRequest(); // \SellingPartnerApi\Model\ShippingV1\GetRatesRequest - -try { - $result = $apiInstance->getRates($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->getRates: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV1\GetRatesRequest**](../Model/ShippingV1/GetRatesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\GetRatesResponse**](../Model/ShippingV1/GetRatesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `getShipment()` - -```php -getShipment($shipment_id): \SellingPartnerApi\Model\ShippingV1\GetShipmentResponse -``` - - - -Return the entire shipment object for the shipmentId. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$shipment_id = 'shipment_id_example'; // string - -try { - $result = $apiInstance->getShipment($shipment_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->getShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse**](../Model/ShippingV1/GetShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `getTrackingInformation()` - -```php -getTrackingInformation($tracking_id): \SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse -``` - - - -Return the tracking information of a shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 1 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$tracking_id = 'tracking_id_example'; // string - -try { - $result = $apiInstance->getTrackingInformation($tracking_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->getTrackingInformation: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tracking_id** | **string**| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse**](../Model/ShippingV1/GetTrackingInformationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `purchaseLabels()` - -```php -purchaseLabels($shipment_id, $body): \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse -``` - - - -Purchase shipping labels based on a given rate. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$shipment_id = 'shipment_id_example'; // string -$body = new \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest(); // \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest - -try { - $result = $apiInstance->purchaseLabels($shipment_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->purchaseLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| | - **body** | [**\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest**](../Model/ShippingV1/PurchaseLabelsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse**](../Model/ShippingV1/PurchaseLabelsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `purchaseShipment()` - -```php -purchaseShipment($body): \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse -``` - - - -Purchase shipping labels. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$body = new \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest(); // \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest - -try { - $result = $apiInstance->purchaseShipment($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->purchaseShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest**](../Model/ShippingV1/PurchaseShipmentRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse**](../Model/ShippingV1/PurchaseShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) - -## `retrieveShippingLabel()` - -```php -retrieveShippingLabel($shipment_id, $tracking_id, $body): \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse -``` - - - -Retrieve shipping label based on the shipment id and tracking id. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 5 | 15 | - -For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV1Api($config); -$shipment_id = 'shipment_id_example'; // string -$tracking_id = 'tracking_id_example'; // string -$body = new \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest(); // \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest - -try { - $result = $apiInstance->retrieveShippingLabel($shipment_id, $tracking_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV1Api->retrieveShippingLabel: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| | - **tracking_id** | **string**| | - **body** | [**\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest**](../Model/ShippingV1/RetrieveShippingLabelRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse**](../Model/ShippingV1/RetrieveShippingLabelResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV1 Model list]](../Model/ShippingV1) -[[README]](../../README.md) diff --git a/docs/Api/ShippingV2Api.md b/docs/Api/ShippingV2Api.md deleted file mode 100644 index b78a108dc..000000000 --- a/docs/Api/ShippingV2Api.md +++ /dev/null @@ -1,494 +0,0 @@ -# SellingPartnerApi\ShippingV2Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelShipment()**](ShippingV2Api.md#cancelShipment) | **PUT** /shipping/v2/shipments/{shipmentId}/cancel | -[**directPurchaseShipment()**](ShippingV2Api.md#directPurchaseShipment) | **POST** /shipping/v2/shipments/directPurchase | -[**getAdditionalInputs()**](ShippingV2Api.md#getAdditionalInputs) | **GET** /shipping/v2/shipments/additionalInputs/schema | -[**getRates()**](ShippingV2Api.md#getRates) | **POST** /shipping/v2/shipments/rates | -[**getShipmentDocuments()**](ShippingV2Api.md#getShipmentDocuments) | **GET** /shipping/v2/shipments/{shipmentId}/documents | -[**getTracking()**](ShippingV2Api.md#getTracking) | **GET** /shipping/v2/tracking | -[**purchaseShipment()**](ShippingV2Api.md#purchaseShipment) | **POST** /shipping/v2/shipments | - - -## `cancelShipment()` - -```php -cancelShipment($shipment_id, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse -``` - - - -Cancels a purchased shipment. Returns an empty object if the shipment is successfully cancelled. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$shipment_id = 'shipment_id_example'; // string | The shipment identifier originally returned by the purchaseShipment operation. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->cancelShipment($shipment_id, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->cancelShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The shipment identifier originally returned by the purchaseShipment operation. | - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse**](../Model/ShippingV2/CancelShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `directPurchaseShipment()` - -```php -directPurchaseShipment($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse -``` - - - -Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$body = new \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest(); // \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest -$x_amzn_idempotency_key = 'x_amzn_idempotency_key_example'; // string | A unique value which the server uses to recognize subsequent retries of the same request. -$locale = 'locale_example'; // string | The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - // The secondary language subtag is almost always a regional designation. - // This does not support additional subtags beyond the primary and secondary language subtags. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->directPurchaseShipment($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->directPurchaseShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest**](../Model/ShippingV2/DirectPurchaseRequest.md)| | - **x_amzn_idempotency_key** | **string**| A unique value which the server uses to recognize subsequent retries of the same request. | [optional] - **locale** | **string**| The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA).
The secondary language subtag is almost always a regional designation.
This does not support additional subtags beyond the primary and secondary language subtags.
| [optional] - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse**](../Model/ShippingV2/DirectPurchaseResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `getAdditionalInputs()` - -```php -getAdditionalInputs($request_token, $rate_id, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse -``` - - - -Returns the JSON schema to use for providing additional inputs when needed to purchase a shipping offering. Call the getAdditionalInputs operation when the response to a previous call to the getRates operation indicates that additional inputs are required for the rate (shipping offering) that you want to purchase. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$request_token = 'request_token_example'; // string | The request token returned in the response to the getRates operation. -$rate_id = 'rate_id_example'; // string | The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->getAdditionalInputs($request_token, $rate_id, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->getAdditionalInputs: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **request_token** | **string**| The request token returned in the response to the getRates operation. | - **rate_id** | **string**| The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. | - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse**](../Model/ShippingV2/GetAdditionalInputsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `getRates()` - -```php -getRates($body, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\GetRatesResponse -``` - - - -Returns the available shipping service offerings. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$body = new \SellingPartnerApi\Model\ShippingV2\GetRatesRequest(); // \SellingPartnerApi\Model\ShippingV2\GetRatesRequest -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->getRates($body, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->getRates: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV2\GetRatesRequest**](../Model/ShippingV2/GetRatesRequest.md)| | - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\GetRatesResponse**](../Model/ShippingV2/GetRatesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `getShipmentDocuments()` - -```php -getShipmentDocuments($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse -``` - - - -Returns the shipping documents associated with a package in a shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$shipment_id = 'shipment_id_example'; // string | The shipment identifier originally returned by the purchaseShipment operation. -$package_client_reference_id = 'package_client_reference_id_example'; // string | The package client reference identifier originally provided in the request body parameter for the getRates operation. -$format = 'format_example'; // string | The file format of the document. Must be one of the supported formats returned by the getRates operation. -$dpi = 3.4; // float | The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->getShipmentDocuments($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->getShipmentDocuments: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shipment_id** | **string**| The shipment identifier originally returned by the purchaseShipment operation. | - **package_client_reference_id** | **string**| The package client reference identifier originally provided in the request body parameter for the getRates operation. | - **format** | **string**| The file format of the document. Must be one of the supported formats returned by the getRates operation. | [optional] - **dpi** | **float**| The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. | [optional] - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse**](../Model/ShippingV2/GetShipmentDocumentsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `getTracking()` - -```php -getTracking($tracking_id, $carrier_id, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\GetTrackingResponse -``` - - - -Returns tracking information for a purchased shipment. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$tracking_id = 'tracking_id_example'; // string | A carrier-generated tracking identifier originally returned by the purchaseShipment operation. -$carrier_id = 'carrier_id_example'; // string | A carrier identifier originally returned by the getRates operation for the selected rate. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->getTracking($tracking_id, $carrier_id, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->getTracking: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tracking_id** | **string**| A carrier-generated tracking identifier originally returned by the purchaseShipment operation. | - **carrier_id** | **string**| A carrier identifier originally returned by the getRates operation for the selected rate. | - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse**](../Model/ShippingV2/GetTrackingResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) - -## `purchaseShipment()` - -```php -purchaseShipment($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id): \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse -``` - - - -Purchases a shipping service and returns purchase related details and documents. - -Note: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to \"TOKEN_EXPIRED\". If you receive this error response, you must get the rates for the shipment again. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 80 | 100 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\ShippingV2Api($config); -$body = new \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest(); // \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest -$x_amzn_idempotency_key = 'x_amzn_idempotency_key_example'; // string | A unique value which the server uses to recognize subsequent retries of the same request. -$x_amzn_shipping_business_id = 'x_amzn_shipping_business_id_example'; // string | Amazon shipping business to assume for this request. The default is AmazonShipping_UK. - -try { - $result = $apiInstance->purchaseShipment($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling ShippingV2Api->purchaseShipment: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest**](../Model/ShippingV2/PurchaseShipmentRequest.md)| | - **x_amzn_idempotency_key** | **string**| A unique value which the server uses to recognize subsequent retries of the same request. | [optional] - **x_amzn_shipping_business_id** | **string**| Amazon shipping business to assume for this request. The default is AmazonShipping_UK. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse**](../Model/ShippingV2/PurchaseShipmentResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[ShippingV2 Model list]](../Model/ShippingV2) -[[README]](../../README.md) diff --git a/docs/Api/SmallAndLightV1Api.md b/docs/Api/SmallAndLightV1Api.md deleted file mode 100644 index 7ee77aae1..000000000 --- a/docs/Api/SmallAndLightV1Api.md +++ /dev/null @@ -1,337 +0,0 @@ -# SellingPartnerApi\SmallAndLightV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteSmallAndLightEnrollmentBySellerSKU()**](SmallAndLightV1Api.md#deleteSmallAndLightEnrollmentBySellerSKU) | **DELETE** /fba/smallAndLight/v1/enrollments/{sellerSKU} | -[**getSmallAndLightEligibilityBySellerSKU()**](SmallAndLightV1Api.md#getSmallAndLightEligibilityBySellerSKU) | **GET** /fba/smallAndLight/v1/eligibilities/{sellerSKU} | -[**getSmallAndLightEnrollmentBySellerSKU()**](SmallAndLightV1Api.md#getSmallAndLightEnrollmentBySellerSKU) | **GET** /fba/smallAndLight/v1/enrollments/{sellerSKU} | -[**getSmallAndLightFeePreview()**](SmallAndLightV1Api.md#getSmallAndLightFeePreview) | **POST** /fba/smallAndLight/v1/feePreviews | -[**putSmallAndLightEnrollmentBySellerSKU()**](SmallAndLightV1Api.md#putSmallAndLightEnrollmentBySellerSKU) | **PUT** /fba/smallAndLight/v1/enrollments/{sellerSKU} | - - -## `deleteSmallAndLightEnrollmentBySellerSKU()` - -```php -deleteSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) -``` - - - -Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SmallAndLightV1Api($config); -$seller_sku = 'seller_sku_example'; // string | The seller SKU that identifies the item. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. - -try { - $apiInstance->deleteSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids); -} catch (Exception $e) { - echo 'Exception when calling SmallAndLightV1Api->deleteSmallAndLightEnrollmentBySellerSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| The seller SKU that identifies the item. | - **marketplace_ids** | [**string[]**](../Model/SmallAndLightV1/string.md)| The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. | - -### Return type - -void (empty response body) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[SmallAndLightV1 Model list]](../Model/SmallAndLightV1) -[[README]](../../README.md) - -## `getSmallAndLightEligibilityBySellerSKU()` - -```php -getSmallAndLightEligibilityBySellerSKU($seller_sku, $marketplace_ids): \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility -``` - - - -Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SmallAndLightV1Api($config); -$seller_sku = 'seller_sku_example'; // string | The seller SKU that identifies the item. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. - -try { - $result = $apiInstance->getSmallAndLightEligibilityBySellerSKU($seller_sku, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SmallAndLightV1Api->getSmallAndLightEligibilityBySellerSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| The seller SKU that identifies the item. | - **marketplace_ids** | [**string[]**](../Model/SmallAndLightV1/string.md)| The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. | - -### Return type - -[**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility**](../Model/SmallAndLightV1/SmallAndLightEligibility.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[SmallAndLightV1 Model list]](../Model/SmallAndLightV1) -[[README]](../../README.md) - -## `getSmallAndLightEnrollmentBySellerSKU()` - -```php -getSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids): \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment -``` - - - -Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SmallAndLightV1Api($config); -$seller_sku = 'seller_sku_example'; // string | The seller SKU that identifies the item. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. - -try { - $result = $apiInstance->getSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SmallAndLightV1Api->getSmallAndLightEnrollmentBySellerSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| The seller SKU that identifies the item. | - **marketplace_ids** | [**string[]**](../Model/SmallAndLightV1/string.md)| The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. | - -### Return type - -[**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment**](../Model/SmallAndLightV1/SmallAndLightEnrollment.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[SmallAndLightV1 Model list]](../Model/SmallAndLightV1) -[[README]](../../README.md) - -## `getSmallAndLightFeePreview()` - -```php -getSmallAndLightFeePreview($body): \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews -``` - - - -Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 3 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SmallAndLightV1Api($config); -$body = new \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest(); // \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest - -try { - $result = $apiInstance->getSmallAndLightFeePreview($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SmallAndLightV1Api->getSmallAndLightFeePreview: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest**](../Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews**](../Model/SmallAndLightV1/SmallAndLightFeePreviews.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[SmallAndLightV1 Model list]](../Model/SmallAndLightV1) -[[README]](../../README.md) - -## `putSmallAndLightEnrollmentBySellerSKU()` - -```php -putSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids): \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment -``` - - - -Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 2 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SmallAndLightV1Api($config); -$seller_sku = 'seller_sku_example'; // string | The seller SKU that identifies the item. -$marketplace_ids = array('marketplace_ids_example'); // string[] | The marketplace in which to enroll the item. Note: Accepts a single marketplace only. - -try { - $result = $apiInstance->putSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SmallAndLightV1Api->putSmallAndLightEnrollmentBySellerSKU: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **seller_sku** | **string**| The seller SKU that identifies the item. | - **marketplace_ids** | [**string[]**](../Model/SmallAndLightV1/string.md)| The marketplace in which to enroll the item. Note: Accepts a single marketplace only. | - -### Return type - -[**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment**](../Model/SmallAndLightV1/SmallAndLightEnrollment.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[SmallAndLightV1 Model list]](../Model/SmallAndLightV1) -[[README]](../../README.md) diff --git a/docs/Api/SolicitationsV1Api.md b/docs/Api/SolicitationsV1Api.md deleted file mode 100644 index fd75eb091..000000000 --- a/docs/Api/SolicitationsV1Api.md +++ /dev/null @@ -1,139 +0,0 @@ -# SellingPartnerApi\SolicitationsV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createProductReviewAndSellerFeedbackSolicitation()**](SolicitationsV1Api.md#createProductReviewAndSellerFeedbackSolicitation) | **POST** /solicitations/v1/orders/{amazonOrderId}/solicitations/productReviewAndSellerFeedback | -[**getSolicitationActionsForOrder()**](SolicitationsV1Api.md#getSolicitationActionsForOrder) | **GET** /solicitations/v1/orders/{amazonOrderId} | - - -## `createProductReviewAndSellerFeedbackSolicitation()` - -```php -createProductReviewAndSellerFeedbackSolicitation($amazon_order_id, $marketplace_ids): \SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse -``` - - - -Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SolicitationsV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which a solicitation is sent. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - -try { - $result = $apiInstance->createProductReviewAndSellerFeedbackSolicitation($amazon_order_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SolicitationsV1Api->createProductReviewAndSellerFeedbackSolicitation: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which a solicitation is sent. | - **marketplace_ids** | [**string[]**](../Model/SolicitationsV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - -### Return type - -[**\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse**](../Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[SolicitationsV1 Model list]](../Model/SolicitationsV1) -[[README]](../../README.md) - -## `getSolicitationActionsForOrder()` - -```php -getSolicitationActionsForOrder($amazon_order_id, $marketplace_ids): \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse -``` - - - -Returns a list of solicitation types that are available for an order that you specify. A solicitation type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a solicitation. Currently only the productReviewAndSellerFeedbackSolicitation solicitation type is available. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 5 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\SolicitationsV1Api($config); -$amazon_order_id = 'amazon_order_id_example'; // string | An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. -$marketplace_ids = array('marketplace_ids_example'); // string[] | A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - -try { - $result = $apiInstance->getSolicitationActionsForOrder($amazon_order_id, $marketplace_ids); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling SolicitationsV1Api->getSolicitationActionsForOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **amazon_order_id** | **string**| An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. | - **marketplace_ids** | [**string[]**](../Model/SolicitationsV1/string.md)| A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. | - -### Return type - -[**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse**](../Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/hal+json` - -[[Top]](#) [[API list]](../) -[[SolicitationsV1 Model list]](../Model/SolicitationsV1) -[[README]](../../README.md) diff --git a/docs/Api/TokensV20210301Api.md b/docs/Api/TokensV20210301Api.md deleted file mode 100644 index 45a433cf8..000000000 --- a/docs/Api/TokensV20210301Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\TokensV20210301Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createRestrictedDataToken()**](TokensV20210301Api.md#createRestrictedDataToken) | **POST** /tokens/2021-03-01/restrictedDataToken | - - -## `createRestrictedDataToken()` - -```php -createRestrictedDataToken($body): \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse -``` - - - -Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 1 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\TokensV20210301Api($config); -$body = new \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest(); // \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest | The restricted data token request details. - -try { - $result = $apiInstance->createRestrictedDataToken($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling TokensV20210301Api->createRestrictedDataToken: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest**](../Model/TokensV20210301/CreateRestrictedDataTokenRequest.md)| The restricted data token request details. | - -### Return type - -[**\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse**](../Model/TokensV20210301/CreateRestrictedDataTokenResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[TokensV20210301 Model list]](../Model/TokensV20210301) -[[README]](../../README.md) diff --git a/docs/Api/UploadsV20201101Api.md b/docs/Api/UploadsV20201101Api.md deleted file mode 100644 index c25580f49..000000000 --- a/docs/Api/UploadsV20201101Api.md +++ /dev/null @@ -1,76 +0,0 @@ -# SellingPartnerApi\UploadsV20201101Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUploadDestinationForResource()**](UploadsV20201101Api.md#createUploadDestinationForResource) | **POST** /uploads/2020-11-01/uploadDestinations/{resource} | - - -## `createUploadDestinationForResource()` - -```php -createUploadDestinationForResource($marketplace_ids, $content_md5, $resource, $content_type): \SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse -``` - - - -Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\UploadsV20201101Api($config); -$marketplace_ids = array('marketplace_ids_example'); // string[] | A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. -$content_md5 = 'content_md5_example'; // string | An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. -$resource = 'resource_example'; // string | The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. -$content_type = 'content_type_example'; // string | The content type of the file to be uploaded. - -try { - $result = $apiInstance->createUploadDestinationForResource($marketplace_ids, $content_md5, $resource, $content_type); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling UploadsV20201101Api->createUploadDestinationForResource: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **marketplace_ids** | [**string[]**](../Model/UploadsV20201101/string.md)| A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. | - **content_md5** | **string**| An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. | - **resource** | **string**| The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. | - **content_type** | **string**| The content type of the file to be uploaded. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse**](../Model/UploadsV20201101/CreateUploadDestinationResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[UploadsV20201101 Model list]](../Model/UploadsV20201101) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentInventoryV1Api.md b/docs/Api/VendorDirectFulfillmentInventoryV1Api.md deleted file mode 100644 index 1db05ad7f..000000000 --- a/docs/Api/VendorDirectFulfillmentInventoryV1Api.md +++ /dev/null @@ -1,72 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentInventoryV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**submitInventoryUpdate()**](VendorDirectFulfillmentInventoryV1Api.md#submitInventoryUpdate) | **POST** /vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items | - - -## `submitInventoryUpdate()` - -```php -submitInventoryUpdate($warehouse_id, $body): \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse -``` - - - -Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentInventoryV1Api($config); -$warehouse_id = 'warehouse_id_example'; // string | Identifier for the warehouse for which to update inventory. -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest - -try { - $result = $apiInstance->submitInventoryUpdate($warehouse_id, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentInventoryV1Api->submitInventoryUpdate: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **warehouse_id** | **string**| Identifier for the warehouse for which to update inventory. | - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest**](../Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse**](../Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentInventoryV1 Model list]](../Model/VendorDirectFulfillmentInventoryV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentOrdersV1Api.md b/docs/Api/VendorDirectFulfillmentOrdersV1Api.md deleted file mode 100644 index 2034e4fa9..000000000 --- a/docs/Api/VendorDirectFulfillmentOrdersV1Api.md +++ /dev/null @@ -1,214 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentOrdersV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getOrder()**](VendorDirectFulfillmentOrdersV1Api.md#getOrder) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber} | -[**getOrders()**](VendorDirectFulfillmentOrdersV1Api.md#getOrders) | **GET** /vendor/directFulfillment/orders/v1/purchaseOrders | -[**submitAcknowledgement()**](VendorDirectFulfillmentOrdersV1Api.md#submitAcknowledgement) | **POST** /vendor/directFulfillment/orders/v1/acknowledgements | - - -## `getOrder()` - -```php -getOrder($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse -``` - - - -Returns purchase order information for the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV1Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. - -try { - $result = $apiInstance->getOrder($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV1Api->getOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse**](../Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV1 Model list]](../Model/VendorDirectFulfillmentOrdersV1) -[[README]](../../README.md) - -## `getOrders()` - -```php -getOrders($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse -``` - - - -Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV1Api($config); -$created_after = 'created_after_example'; // string | Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. -$status = 'status_example'; // string | Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. -$limit = 56; // int | The limit to the number of purchase orders returned. -$sort_order = 'sort_order_example'; // string | Sort the list in ascending or descending order by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. -$include_details = 'true'; // bool | When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. - -try { - $result = $apiInstance->getOrders($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV1Api->getOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. | [optional] - **status** | **string**| Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. | [optional] - **limit** | **int**| The limit to the number of purchase orders returned. | [optional] - **sort_order** | **string**| Sort the list in ascending or descending order by order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. | [optional] - **include_details** | **bool**| When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. | [optional] [default to 'true'] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse**](../Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV1 Model list]](../Model/VendorDirectFulfillmentOrdersV1) -[[README]](../../README.md) - -## `submitAcknowledgement()` - -```php -submitAcknowledgement($body): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse -``` - - - -Submits acknowledgements for one or more purchase orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV1Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest - -try { - $result = $apiInstance->submitAcknowledgement($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV1Api->submitAcknowledgement: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest**](../Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse**](../Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV1 Model list]](../Model/VendorDirectFulfillmentOrdersV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentOrdersV20211228Api.md b/docs/Api/VendorDirectFulfillmentOrdersV20211228Api.md deleted file mode 100644 index 5d8c2bd62..000000000 --- a/docs/Api/VendorDirectFulfillmentOrdersV20211228Api.md +++ /dev/null @@ -1,214 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentOrdersV20211228Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getOrder()**](VendorDirectFulfillmentOrdersV20211228Api.md#getOrder) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber} | -[**getOrders()**](VendorDirectFulfillmentOrdersV20211228Api.md#getOrders) | **GET** /vendor/directFulfillment/orders/2021-12-28/purchaseOrders | -[**submitAcknowledgement()**](VendorDirectFulfillmentOrdersV20211228Api.md#submitAcknowledgement) | **POST** /vendor/directFulfillment/orders/2021-12-28/acknowledgements | - - -## `getOrder()` - -```php -getOrder($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order -``` - - - -Returns purchase order information for the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV20211228Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. - -try { - $result = $apiInstance->getOrder($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV20211228Api->getOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order**](../Model/VendorDirectFulfillmentOrdersV20211228/Order.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV20211228 Model list]](../Model/VendorDirectFulfillmentOrdersV20211228) -[[README]](../../README.md) - -## `getOrders()` - -```php -getOrders($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList -``` - - - -Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV20211228Api($config); -$created_after = 'created_after_example'; // string | Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. -$status = 'status_example'; // string | Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. -$limit = 56; // int | The limit to the number of purchase orders returned. -$sort_order = 'sort_order_example'; // string | Sort the list in ascending or descending order by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. -$include_details = 'true'; // bool | When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. - -try { - $result = $apiInstance->getOrders($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV20211228Api->getOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. | [optional] - **status** | **string**| Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. | [optional] - **limit** | **int**| The limit to the number of purchase orders returned. | [optional] - **sort_order** | **string**| Sort the list in ascending or descending order by order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. | [optional] - **include_details** | **bool**| When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. | [optional] [default to 'true'] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList**](../Model/VendorDirectFulfillmentOrdersV20211228/OrderList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `pagination`, `orders` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV20211228 Model list]](../Model/VendorDirectFulfillmentOrdersV20211228) -[[README]](../../README.md) - -## `submitAcknowledgement()` - -```php -submitAcknowledgement($body): \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId -``` - - - -Submits acknowledgements for one or more purchase orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV20211228Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest - -try { - $result = $apiInstance->submitAcknowledgement($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentOrdersV20211228Api->submitAcknowledgement: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest**](../Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId**](../Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentOrdersV20211228 Model list]](../Model/VendorDirectFulfillmentOrdersV20211228) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentPaymentsV1Api.md b/docs/Api/VendorDirectFulfillmentPaymentsV1Api.md deleted file mode 100644 index e8cb806c7..000000000 --- a/docs/Api/VendorDirectFulfillmentPaymentsV1Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentPaymentsV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**submitInvoice()**](VendorDirectFulfillmentPaymentsV1Api.md#submitInvoice) | **POST** /vendor/directFulfillment/payments/v1/invoices | - - -## `submitInvoice()` - -```php -submitInvoice($body): \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse -``` - - - -Submits one or more invoices for a vendor's direct fulfillment orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentPaymentsV1Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest - -try { - $result = $apiInstance->submitInvoice($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentPaymentsV1Api->submitInvoice: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest**](../Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse**](../Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentPaymentsV1 Model list]](../Model/VendorDirectFulfillmentPaymentsV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentSandboxV20211028Api.md b/docs/Api/VendorDirectFulfillmentSandboxV20211028Api.md deleted file mode 100644 index 22f643a6e..000000000 --- a/docs/Api/VendorDirectFulfillmentSandboxV20211028Api.md +++ /dev/null @@ -1,119 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentSandboxV20211028Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**generateOrderScenarios()**](VendorDirectFulfillmentSandboxV20211028Api.md#generateOrderScenarios) | **POST** /vendor/directFulfillment/sandbox/2021-10-28/orders | -[**getOrderScenarios()**](VendorDirectFulfillmentSandboxV20211028Api.md#getOrderScenarios) | **GET** /vendor/directFulfillment/sandbox/2021-10-28/transactions/{transactionId} | - - -## `generateOrderScenarios()` - -```php -generateOrderScenarios($body): \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference -``` - - - -Submits a request to generate test order data for Vendor Direct Fulfillment API entities. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentSandboxV20211028Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest - -try { - $result = $apiInstance->generateOrderScenarios($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentSandboxV20211028Api->generateOrderScenarios: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest**](../Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference**](../Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentSandboxV20211028 Model list]](../Model/VendorDirectFulfillmentSandboxV20211028) -[[README]](../../README.md) - -## `getOrderScenarios()` - -```php -getOrderScenarios($transaction_id): \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus -``` - - - -Returns the status of the transaction indicated by the specified transactionId. If the transaction was successful, also returns the requested test order data. - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentSandboxV20211028Api($config); -$transaction_id = 'transaction_id_example'; // string | The transaction identifier returned in the response to the generateOrderScenarios operation. - -try { - $result = $apiInstance->getOrderScenarios($transaction_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentSandboxV20211028Api->getOrderScenarios: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **transaction_id** | **string**| The transaction identifier returned in the response to the generateOrderScenarios operation. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus**](../Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentSandboxV20211028 Model list]](../Model/VendorDirectFulfillmentSandboxV20211028) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentShippingV1Api.md b/docs/Api/VendorDirectFulfillmentShippingV1Api.md deleted file mode 100644 index 146587ddc..000000000 --- a/docs/Api/VendorDirectFulfillmentShippingV1Api.md +++ /dev/null @@ -1,620 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentShippingV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCustomerInvoice()**](VendorDirectFulfillmentShippingV1Api.md#getCustomerInvoice) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber} | -[**getCustomerInvoices()**](VendorDirectFulfillmentShippingV1Api.md#getCustomerInvoices) | **GET** /vendor/directFulfillment/shipping/v1/customerInvoices | -[**getPackingSlip()**](VendorDirectFulfillmentShippingV1Api.md#getPackingSlip) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber} | -[**getPackingSlips()**](VendorDirectFulfillmentShippingV1Api.md#getPackingSlips) | **GET** /vendor/directFulfillment/shipping/v1/packingSlips | -[**getShippingLabel()**](VendorDirectFulfillmentShippingV1Api.md#getShippingLabel) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber} | -[**getShippingLabels()**](VendorDirectFulfillmentShippingV1Api.md#getShippingLabels) | **GET** /vendor/directFulfillment/shipping/v1/shippingLabels | -[**submitShipmentConfirmations()**](VendorDirectFulfillmentShippingV1Api.md#submitShipmentConfirmations) | **POST** /vendor/directFulfillment/shipping/v1/shipmentConfirmations | -[**submitShipmentStatusUpdates()**](VendorDirectFulfillmentShippingV1Api.md#submitShipmentStatusUpdates) | **POST** /vendor/directFulfillment/shipping/v1/shipmentStatusUpdates | -[**submitShippingLabelRequest()**](VendorDirectFulfillmentShippingV1Api.md#submitShippingLabelRequest) | **POST** /vendor/directFulfillment/shipping/v1/shippingLabels | - - -## `getCustomerInvoice()` - -```php -getCustomerInvoice($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse -``` - - - -Returns a customer invoice based on the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | Purchase order number of the shipment for which to return the invoice. - -try { - $result = $apiInstance->getCustomerInvoice($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getCustomerInvoice: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| Purchase order number of the shipment for which to return the invoice. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse**](../Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `getCustomerInvoices()` - -```php -getCustomerInvoices($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse -``` - - - -Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$created_after = 'created_after_example'; // string | Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned -$sort_order = 'sort_order_example'; // string | Sort ASC or DESC by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getCustomerInvoices($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getCustomerInvoices: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned | [optional] - **sort_order** | **string**| Sort ASC or DESC by order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse**](../Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `getPackingSlip()` - -```php -getPackingSlip($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse -``` - - - -Returns a packing slip based on the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchaseOrderNumber for the packing slip you want. - -try { - $result = $apiInstance->getPackingSlip($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getPackingSlip: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchaseOrderNumber for the packing slip you want. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse**](../Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `getPackingSlips()` - -```php -getPackingSlips($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse -``` - - - -Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$created_after = 'created_after_example'; // string | Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned -$sort_order = 'ASC'; // string | Sort ASC or DESC by packing slip creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getPackingSlips($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getPackingSlips: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned | [optional] - **sort_order** | **string**| Sort ASC or DESC by packing slip creation date. | [optional] [default to 'ASC'] - **next_token** | **string**| Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse**](../Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `getShippingLabel()` - -```php -getShippingLabel($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse -``` - - - -Returns a shipping label for the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. - -try { - $result = $apiInstance->getShippingLabel($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getShippingLabel: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse**](../Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `getShippingLabels()` - -```php -getShippingLabels($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse -``` - - - -Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$created_after = 'created_after_example'; // string | Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned. -$sort_order = 'ASC'; // string | Sort ASC or DESC by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getShippingLabels($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->getShippingLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned. | [optional] - **sort_order** | **string**| Sort ASC or DESC by order creation date. | [optional] [default to 'ASC'] - **next_token** | **string**| Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse**](../Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `submitShipmentConfirmations()` - -```php -submitShipmentConfirmations($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse -``` - - - -Submits one or more shipment confirmations for vendor orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest - -try { - $result = $apiInstance->submitShipmentConfirmations($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->submitShipmentConfirmations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest**](../Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse**](../Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `submitShipmentStatusUpdates()` - -```php -submitShipmentStatusUpdates($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse -``` - - - -This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest - -try { - $result = $apiInstance->submitShipmentStatusUpdates($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->submitShipmentStatusUpdates: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest**](../Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse**](../Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) - -## `submitShippingLabelRequest()` - -```php -submitShippingLabelRequest($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse -``` - - - -Creates a shipping label for a purchase order and returns a transactionId for reference. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV1Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest - -try { - $result = $apiInstance->submitShippingLabelRequest($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV1Api->submitShippingLabelRequest: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest**](../Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse**](../Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV1 Model list]](../Model/VendorDirectFulfillmentShippingV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentShippingV20211228Api.md b/docs/Api/VendorDirectFulfillmentShippingV20211228Api.md deleted file mode 100644 index 7e4176d5e..000000000 --- a/docs/Api/VendorDirectFulfillmentShippingV20211228Api.md +++ /dev/null @@ -1,687 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentShippingV20211228Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createShippingLabels()**](VendorDirectFulfillmentShippingV20211228Api.md#createShippingLabels) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber} | -[**getCustomerInvoice()**](VendorDirectFulfillmentShippingV20211228Api.md#getCustomerInvoice) | **GET** /vendor/directFulfillment/shipping/2021-12-28/customerInvoices/{purchaseOrderNumber} | -[**getCustomerInvoices()**](VendorDirectFulfillmentShippingV20211228Api.md#getCustomerInvoices) | **GET** /vendor/directFulfillment/shipping/2021-12-28/customerInvoices | -[**getPackingSlip()**](VendorDirectFulfillmentShippingV20211228Api.md#getPackingSlip) | **GET** /vendor/directFulfillment/shipping/2021-12-28/packingSlips/{purchaseOrderNumber} | -[**getPackingSlips()**](VendorDirectFulfillmentShippingV20211228Api.md#getPackingSlips) | **GET** /vendor/directFulfillment/shipping/2021-12-28/packingSlips | -[**getShippingLabel()**](VendorDirectFulfillmentShippingV20211228Api.md#getShippingLabel) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber} | -[**getShippingLabels()**](VendorDirectFulfillmentShippingV20211228Api.md#getShippingLabels) | **GET** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | -[**submitShipmentConfirmations()**](VendorDirectFulfillmentShippingV20211228Api.md#submitShipmentConfirmations) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shipmentConfirmations | -[**submitShipmentStatusUpdates()**](VendorDirectFulfillmentShippingV20211228Api.md#submitShipmentStatusUpdates) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shipmentStatusUpdates | -[**submitShippingLabelRequest()**](VendorDirectFulfillmentShippingV20211228Api.md#submitShippingLabelRequest) | **POST** /vendor/directFulfillment/shipping/2021-12-28/shippingLabels | - - -## `createShippingLabels()` - -```php -createShippingLabels($purchase_order_number, $body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel -``` - - - -Creates shipping labels for a purchase order and returns the labels. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest - -try { - $result = $apiInstance->createShippingLabels($purchase_order_number, $body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->createShippingLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. | - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest**](../Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel**](../Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getCustomerInvoice()` - -```php -getCustomerInvoice($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice -``` - - - -Returns a customer invoice based on the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | Purchase order number of the shipment for which to return the invoice. - -try { - $result = $apiInstance->getCustomerInvoice($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getCustomerInvoice: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| Purchase order number of the shipment for which to return the invoice. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice**](../Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getCustomerInvoices()` - -```php -getCustomerInvoices($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList -``` - - - -Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$created_after = 'created_after_example'; // string | Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned -$sort_order = 'sort_order_example'; // string | Sort ASC or DESC by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getCustomerInvoices($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getCustomerInvoices: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned | [optional] - **sort_order** | **string**| Sort ASC or DESC by order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList**](../Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getPackingSlip()` - -```php -getPackingSlip($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip -``` - - - -Returns a packing slip based on the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchaseOrderNumber for the packing slip you want. - -try { - $result = $apiInstance->getPackingSlip($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getPackingSlip: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchaseOrderNumber for the packing slip you want. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip**](../Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getPackingSlips()` - -```php -getPackingSlips($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList -``` - - - -Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$created_after = 'created_after_example'; // string | Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned -$sort_order = 'ASC'; // string | Sort ASC or DESC by packing slip creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getPackingSlips($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getPackingSlips: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned | [optional] - **sort_order** | **string**| Sort ASC or DESC by packing slip creation date. | [optional] [default to 'ASC'] - **next_token** | **string**| Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList**](../Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getShippingLabel()` - -```php -getShippingLabel($purchase_order_number): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel -``` - - - -Returns a shipping label for the purchaseOrderNumber that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. - -try { - $result = $apiInstance->getShippingLabel($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getShippingLabel: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel**](../Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `getShippingLabels()` - -```php -getShippingLabels($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList -``` - - - -Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$created_after = 'created_after_example'; // string | Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. -$ship_from_party_id = 'ship_from_party_id_example'; // string | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. -$limit = 56; // int | The limit to the number of records returned. -$sort_order = 'ASC'; // string | Sort ASC or DESC by order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. - -try { - $result = $apiInstance->getShippingLabels($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->getShippingLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created_after** | **string**| Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **created_before** | **string**| Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. | - **ship_from_party_id** | **string**| The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. | [optional] - **limit** | **int**| The limit to the number of records returned. | [optional] - **sort_order** | **string**| Sort ASC or DESC by order creation date. | [optional] [default to 'ASC'] - **next_token** | **string**| Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList**](../Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `pagination`, `shippingLabels` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `submitShipmentConfirmations()` - -```php -submitShipmentConfirmations($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference -``` - - - -Submits one or more shipment confirmations for vendor orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest - -try { - $result = $apiInstance->submitShipmentConfirmations($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->submitShipmentConfirmations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest**](../Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference**](../Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `submitShipmentStatusUpdates()` - -```php -submitShipmentStatusUpdates($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference -``` - - - -This operation is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API submits a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest - -try { - $result = $apiInstance->submitShipmentStatusUpdates($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->submitShipmentStatusUpdates: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest**](../Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference**](../Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) - -## `submitShippingLabelRequest()` - -```php -submitShippingLabelRequest($body): \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference -``` - - - -Creates a shipping label for a purchase order and returns a transactionId for reference. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentShippingV20211228Api($config); -$body = new \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest(); // \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest - -try { - $result = $apiInstance->submitShippingLabelRequest($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentShippingV20211228Api->submitShippingLabelRequest: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest**](../Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference**](../Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentShippingV20211228 Model list]](../Model/VendorDirectFulfillmentShippingV20211228) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentTransactionsV1Api.md b/docs/Api/VendorDirectFulfillmentTransactionsV1Api.md deleted file mode 100644 index 1a242158c..000000000 --- a/docs/Api/VendorDirectFulfillmentTransactionsV1Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentTransactionsV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getTransactionStatus()**](VendorDirectFulfillmentTransactionsV1Api.md#getTransactionStatus) | **GET** /vendor/directFulfillment/transactions/v1/transactions/{transactionId} | - - -## `getTransactionStatus()` - -```php -getTransactionStatus($transaction_id): \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse -``` - - - -Returns the status of the transaction indicated by the specified transactionId. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentTransactionsV1Api($config); -$transaction_id = 'transaction_id_example'; // string | Previously returned in the response to the POST request of a specific transaction. - -try { - $result = $apiInstance->getTransactionStatus($transaction_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentTransactionsV1Api->getTransactionStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **transaction_id** | **string**| Previously returned in the response to the POST request of a specific transaction. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse**](../Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentTransactionsV1 Model list]](../Model/VendorDirectFulfillmentTransactionsV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorDirectFulfillmentTransactionsV20211228Api.md b/docs/Api/VendorDirectFulfillmentTransactionsV20211228Api.md deleted file mode 100644 index d9c941901..000000000 --- a/docs/Api/VendorDirectFulfillmentTransactionsV20211228Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\VendorDirectFulfillmentTransactionsV20211228Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getTransactionStatus()**](VendorDirectFulfillmentTransactionsV20211228Api.md#getTransactionStatus) | **GET** /vendor/directFulfillment/transactions/2021-12-28/transactions/{transactionId} | - - -## `getTransactionStatus()` - -```php -getTransactionStatus($transaction_id): \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus -``` - - - -Returns the status of the transaction indicated by the specified transactionId. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentTransactionsV20211228Api($config); -$transaction_id = 'transaction_id_example'; // string | Previously returned in the response to the POST request of a specific transaction. - -try { - $result = $apiInstance->getTransactionStatus($transaction_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorDirectFulfillmentTransactionsV20211228Api->getTransactionStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **transaction_id** | **string**| Previously returned in the response to the POST request of a specific transaction. | - -### Return type - -[**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus**](../Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorDirectFulfillmentTransactionsV20211228 Model list]](../Model/VendorDirectFulfillmentTransactionsV20211228) -[[README]](../../README.md) diff --git a/docs/Api/VendorInvoicesV1Api.md b/docs/Api/VendorInvoicesV1Api.md deleted file mode 100644 index e4bfb67dd..000000000 --- a/docs/Api/VendorInvoicesV1Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\VendorInvoicesV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**submitInvoices()**](VendorInvoicesV1Api.md#submitInvoices) | **POST** /vendor/payments/v1/invoices | - - -## `submitInvoices()` - -```php -submitInvoices($body): \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse -``` - - - -Submit new invoices to Amazon. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorInvoicesV1Api($config); -$body = new \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest(); // \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest - -try { - $result = $apiInstance->submitInvoices($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorInvoicesV1Api->submitInvoices: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest**](../Model/VendorInvoicesV1/SubmitInvoicesRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse**](../Model/VendorInvoicesV1/SubmitInvoicesResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorInvoicesV1 Model list]](../Model/VendorInvoicesV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorOrdersV1Api.md b/docs/Api/VendorOrdersV1Api.md deleted file mode 100644 index 579bbebd2..000000000 --- a/docs/Api/VendorOrdersV1Api.md +++ /dev/null @@ -1,311 +0,0 @@ -# SellingPartnerApi\VendorOrdersV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getPurchaseOrder()**](VendorOrdersV1Api.md#getPurchaseOrder) | **GET** /vendor/orders/v1/purchaseOrders/{purchaseOrderNumber} | -[**getPurchaseOrders()**](VendorOrdersV1Api.md#getPurchaseOrders) | **GET** /vendor/orders/v1/purchaseOrders | -[**getPurchaseOrdersStatus()**](VendorOrdersV1Api.md#getPurchaseOrdersStatus) | **GET** /vendor/orders/v1/purchaseOrdersStatus | -[**submitAcknowledgement()**](VendorOrdersV1Api.md#submitAcknowledgement) | **POST** /vendor/orders/v1/acknowledgements | - - -## `getPurchaseOrder()` - -```php -getPurchaseOrder($purchase_order_number): \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse -``` - - - -Returns a purchase order based on the purchaseOrderNumber value that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorOrdersV1Api($config); -$purchase_order_number = 'purchase_order_number_example'; // string | The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. - -try { - $result = $apiInstance->getPurchaseOrder($purchase_order_number); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorOrdersV1Api->getPurchaseOrder: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **purchase_order_number** | **string**| The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. | - -### Return type - -[**\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse**](../Model/VendorOrdersV1/GetPurchaseOrderResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorOrdersV1 Model list]](../Model/VendorOrdersV1) -[[README]](../../README.md) - -## `getPurchaseOrders()` - -```php -getPurchaseOrders($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code): \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse -``` - - - -Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorOrdersV1Api($config); -$limit = 56; // int | The limit to the number of records returned. Default value is 100 records. -$created_after = 'created_after_example'; // string | Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. -$sort_order = 'sort_order_example'; // string | Sort in ascending or descending order by purchase order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call -$include_details = 'include_details_example'; // bool | When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. -$changed_after = 'changed_after_example'; // string | Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$changed_before = 'changed_before_example'; // string | Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$po_item_state = 'po_item_state_example'; // string | Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. -$is_po_changed = 'is_po_changed_example'; // bool | When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. -$purchase_order_state = 'purchase_order_state_example'; // string | Filters purchase orders based on the purchase order state. -$ordering_vendor_code = 'ordering_vendor_code_example'; // string | Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. - -try { - $result = $apiInstance->getPurchaseOrders($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorOrdersV1Api->getPurchaseOrders: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| The limit to the number of records returned. Default value is 100 records. | [optional] - **created_after** | **string**| Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **created_before** | **string**| Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **sort_order** | **string**| Sort in ascending or descending order by purchase order creation date. | [optional] - **next_token** | **string**| Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call | [optional] - **include_details** | **bool**| When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. | [optional] - **changed_after** | **string**| Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **changed_before** | **string**| Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **po_item_state** | **string**| Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. | [optional] - **is_po_changed** | **bool**| When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. | [optional] - **purchase_order_state** | **string**| Filters purchase orders based on the purchase order state. | [optional] - **ordering_vendor_code** | **string**| Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse**](../Model/VendorOrdersV1/GetPurchaseOrdersResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json`, `payload` - -[[Top]](#) [[API list]](../) -[[VendorOrdersV1 Model list]](../Model/VendorOrdersV1) -[[README]](../../README.md) - -## `getPurchaseOrdersStatus()` - -```php -getPurchaseOrdersStatus($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id): \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse -``` - - - -Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorOrdersV1Api($config); -$limit = 56; // int | The limit to the number of records returned. Default value is 100 records. -$sort_order = 'sort_order_example'; // string | Sort in ascending or descending order by purchase order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more purchase orders than the specified result size limit. -$created_after = 'created_after_example'; // string | Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$updated_after = 'updated_after_example'; // string | Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$updated_before = 'updated_before_example'; // string | Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$purchase_order_number = 'purchase_order_number_example'; // string | Provides purchase order status for the specified purchase order number. -$purchase_order_status = 'purchase_order_status_example'; // string | Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. -$item_confirmation_status = 'item_confirmation_status_example'; // string | Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. -$item_receive_status = 'item_receive_status_example'; // string | Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. -$ordering_vendor_code = 'ordering_vendor_code_example'; // string | Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. -$ship_to_party_id = 'ship_to_party_id_example'; // string | Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. - -try { - $result = $apiInstance->getPurchaseOrdersStatus($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorOrdersV1Api->getPurchaseOrdersStatus: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| The limit to the number of records returned. Default value is 100 records. | [optional] - **sort_order** | **string**| Sort in ascending or descending order by purchase order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more purchase orders than the specified result size limit. | [optional] - **created_after** | **string**| Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **created_before** | **string**| Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **updated_after** | **string**| Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **updated_before** | **string**| Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **purchase_order_number** | **string**| Provides purchase order status for the specified purchase order number. | [optional] - **purchase_order_status** | **string**| Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. | [optional] - **item_confirmation_status** | **string**| Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. | [optional] - **item_receive_status** | **string**| Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. | [optional] - **ordering_vendor_code** | **string**| Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. | [optional] - **ship_to_party_id** | **string**| Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse**](../Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorOrdersV1 Model list]](../Model/VendorOrdersV1) -[[README]](../../README.md) - -## `submitAcknowledgement()` - -```php -submitAcknowledgement($body): \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse -``` - - - -Submits acknowledgements for one or more purchase orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorOrdersV1Api($config); -$body = new \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest(); // \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest - -try { - $result = $apiInstance->submitAcknowledgement($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorOrdersV1Api->submitAcknowledgement: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest**](../Model/VendorOrdersV1/SubmitAcknowledgementRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse**](../Model/VendorOrdersV1/SubmitAcknowledgementResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorOrdersV1 Model list]](../Model/VendorOrdersV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorShippingV1Api.md b/docs/Api/VendorShippingV1Api.md deleted file mode 100644 index 2a5880f04..000000000 --- a/docs/Api/VendorShippingV1Api.md +++ /dev/null @@ -1,325 +0,0 @@ -# SellingPartnerApi\VendorShippingV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getShipmentDetails()**](VendorShippingV1Api.md#getShipmentDetails) | **GET** /vendor/shipping/v1/shipments | -[**getShipmentLabels()**](VendorShippingV1Api.md#getShipmentLabels) | **GET** /vendor/shipping/v1/transportLabels | -[**submitShipmentConfirmations()**](VendorShippingV1Api.md#submitShipmentConfirmations) | **POST** /vendor/shipping/v1/shipmentConfirmations | -[**submitShipments()**](VendorShippingV1Api.md#submitShipments) | **POST** /vendor/shipping/v1/shipments | - - -## `getShipmentDetails()` - -```php -getShipmentDetails($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code): \SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse -``` - - - -Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorShippingV1Api($config); -$limit = 56; // int | The limit to the number of records returned. Default value is 50 records. -$sort_order = 'sort_order_example'; // string | Sort in ascending or descending order by purchase order creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more shipments than the specified result size limit. -$created_after = 'created_after_example'; // string | Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$created_before = 'created_before_example'; // string | Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$shipment_confirmed_before = 'shipment_confirmed_before_example'; // string | Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. -$shipment_confirmed_after = 'shipment_confirmed_after_example'; // string | Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. -$package_label_created_before = 'package_label_created_before_example'; // string | Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. -$package_label_created_after = 'package_label_created_after_example'; // string | Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. -$shipped_before = 'shipped_before_example'; // string | Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. -$shipped_after = 'shipped_after_example'; // string | Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. -$estimated_delivery_before = 'estimated_delivery_before_example'; // string | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. -$estimated_delivery_after = 'estimated_delivery_after_example'; // string | Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. -$shipment_delivery_before = 'shipment_delivery_before_example'; // string | Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. -$shipment_delivery_after = 'shipment_delivery_after_example'; // string | Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. -$requested_pick_up_before = 'requested_pick_up_before_example'; // string | Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. -$requested_pick_up_after = 'requested_pick_up_after_example'; // string | Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. -$scheduled_pick_up_before = 'scheduled_pick_up_before_example'; // string | Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. -$scheduled_pick_up_after = 'scheduled_pick_up_after_example'; // string | Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. -$current_shipment_status = 'current_shipment_status_example'; // string | Get Shipment Details by passing Current shipment status. -$vendor_shipment_identifier = 'vendor_shipment_identifier_example'; // string | Get Shipment Details by passing Vendor Shipment ID -$buyer_reference_number = 'buyer_reference_number_example'; // string | Get Shipment Details by passing buyer Reference ID -$buyer_warehouse_code = 'buyer_warehouse_code_example'; // string | Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. -$seller_warehouse_code = 'seller_warehouse_code_example'; // string | Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. - -try { - $result = $apiInstance->getShipmentDetails($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorShippingV1Api->getShipmentDetails: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| The limit to the number of records returned. Default value is 50 records. | [optional] - **sort_order** | **string**| Sort in ascending or descending order by purchase order creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more shipments than the specified result size limit. | [optional] - **created_after** | **string**| Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **created_before** | **string**| Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **shipment_confirmed_before** | **string**| Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. | [optional] - **shipment_confirmed_after** | **string**| Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. | [optional] - **package_label_created_before** | **string**| Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. | [optional] - **package_label_created_after** | **string**| Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. | [optional] - **shipped_before** | **string**| Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. | [optional] - **shipped_after** | **string**| Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. | [optional] - **estimated_delivery_before** | **string**| Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] - **estimated_delivery_after** | **string**| Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] - **shipment_delivery_before** | **string**| Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. | [optional] - **shipment_delivery_after** | **string**| Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. | [optional] - **requested_pick_up_before** | **string**| Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. | [optional] - **requested_pick_up_after** | **string**| Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. | [optional] - **scheduled_pick_up_before** | **string**| Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. | [optional] - **scheduled_pick_up_after** | **string**| Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. | [optional] - **current_shipment_status** | **string**| Get Shipment Details by passing Current shipment status. | [optional] - **vendor_shipment_identifier** | **string**| Get Shipment Details by passing Vendor Shipment ID | [optional] - **buyer_reference_number** | **string**| Get Shipment Details by passing buyer Reference ID | [optional] - **buyer_warehouse_code** | **string**| Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. | [optional] - **seller_warehouse_code** | **string**| Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse**](../Model/VendorShippingV1/GetShipmentDetailsResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorShippingV1 Model list]](../Model/VendorShippingV1) -[[README]](../../README.md) - -## `getShipmentLabels()` - -```php -getShipmentLabels($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code): \SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels -``` - - - -Returns transport Labels based on the filters that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorShippingV1Api($config); -$limit = 56; // int | The limit to the number of records returned. Default value is 50 records. -$sort_order = 'sort_order_example'; // string | Sort in ascending or descending order by transport label creation date. -$next_token = 'next_token_example'; // string | Used for pagination when there are more transport label than the specified result size limit. -$label_created_after = 'label_created_after_example'; // string | transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$labelcreated_before = 'labelcreated_before_example'; // string | transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. -$buyer_reference_number = 'buyer_reference_number_example'; // string | Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. -$vendor_shipment_identifier = 'vendor_shipment_identifier_example'; // string | Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. -$seller_warehouse_code = 'seller_warehouse_code_example'; // string | Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. - -try { - $result = $apiInstance->getShipmentLabels($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorShippingV1Api->getShipmentLabels: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| The limit to the number of records returned. Default value is 50 records. | [optional] - **sort_order** | **string**| Sort in ascending or descending order by transport label creation date. | [optional] - **next_token** | **string**| Used for pagination when there are more transport label than the specified result size limit. | [optional] - **label_created_after** | **string**| transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **labelcreated_before** | **string**| transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. | [optional] - **buyer_reference_number** | **string**| Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. | [optional] - **vendor_shipment_identifier** | **string**| Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. | [optional] - **seller_warehouse_code** | **string**| Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. | [optional] - -### Return type - -[**\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels**](../Model/VendorShippingV1/GetShipmentLabels.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorShippingV1 Model list]](../Model/VendorShippingV1) -[[README]](../../README.md) - -## `submitShipmentConfirmations()` - -```php -submitShipmentConfirmations($body): \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse -``` - - - -Submits one or more shipment confirmations for vendor orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorShippingV1Api($config); -$body = new \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest(); // \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest - -try { - $result = $apiInstance->submitShipmentConfirmations($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorShippingV1Api->submitShipmentConfirmations: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest**](../Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse**](../Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorShippingV1 Model list]](../Model/VendorShippingV1) -[[README]](../../README.md) - -## `submitShipments()` - -```php -submitShipments($body): \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse -``` - - - -Submits one or more shipment request for vendor Orders. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 10 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorShippingV1Api($config); -$body = new \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments(); // \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments - -try { - $result = $apiInstance->submitShipments($body); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorShippingV1Api->submitShipments: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**\SellingPartnerApi\Model\VendorShippingV1\SubmitShipments**](../Model/VendorShippingV1/SubmitShipments.md)| | - -### Return type - -[**\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse**](../Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.md) - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorShippingV1 Model list]](../Model/VendorShippingV1) -[[README]](../../README.md) diff --git a/docs/Api/VendorTransactionStatusV1Api.md b/docs/Api/VendorTransactionStatusV1Api.md deleted file mode 100644 index 040d29b9f..000000000 --- a/docs/Api/VendorTransactionStatusV1Api.md +++ /dev/null @@ -1,70 +0,0 @@ -# SellingPartnerApi\VendorTransactionStatusV1Api - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getTransaction()**](VendorTransactionStatusV1Api.md#getTransaction) | **GET** /vendor/transactions/v1/transactions/{transactionId} | - - -## `getTransaction()` - -```php -getTransaction($transaction_id): \SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse -``` - - - -Returns the status of the transaction that you specify. - -**Usage Plan:** - -| Rate (requests per second) | Burst | -| ---- | ---- | -| 10 | 20 | - -The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api). - -### Example - -```php - "", - "lwaClientSecret" => "", - "lwaRefreshToken" => "", - "awsAccessKeyId" => "", - "awsSecretAccessKey" => "", - "endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php -]); - -$apiInstance = new SellingPartnerApi\Api\VendorTransactionStatusV1Api($config); -$transaction_id = 'transaction_id_example'; // string | The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. - -try { - $result = $apiInstance->getTransaction($transaction_id); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling VendorTransactionStatusV1Api->getTransaction: ', $e->getMessage(), PHP_EOL; -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **transaction_id** | **string**| The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. | - -### Return type - -[**\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse**](../Model/VendorTransactionStatusV1/GetTransactionResponse.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Top]](#) [[API list]](../) -[[VendorTransactionStatusV1 Model list]](../Model/VendorTransactionStatusV1) -[[README]](../../README.md) diff --git a/docs/Model/AplusContentV20201101/AplusPaginatedResponse.md b/docs/Model/AplusContentV20201101/AplusPaginatedResponse.md deleted file mode 100644 index 0a3d2f390..000000000 --- a/docs/Model/AplusContentV20201101/AplusPaginatedResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## AplusPaginatedResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**next_page_token** | **string** | A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.md b/docs/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.md deleted file mode 100644 index 7b50d9721..000000000 --- a/docs/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## AplusPaginatedResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_page_token** | **string** | A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/AplusResponse.md b/docs/Model/AplusContentV20201101/AplusResponse.md deleted file mode 100644 index 858eefddc..000000000 --- a/docs/Model/AplusContentV20201101/AplusResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## AplusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/AsinBadge.md b/docs/Model/AplusContentV20201101/AsinBadge.md deleted file mode 100644 index 6e804abe6..000000000 --- a/docs/Model/AplusContentV20201101/AsinBadge.md +++ /dev/null @@ -1,8 +0,0 @@ -## AsinBadge - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/AsinMetadata.md b/docs/Model/AplusContentV20201101/AsinMetadata.md deleted file mode 100644 index 4e331d498..000000000 --- a/docs/Model/AplusContentV20201101/AsinMetadata.md +++ /dev/null @@ -1,14 +0,0 @@ -## AsinMetadata - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN). | -**badge_set** | [**\SellingPartnerApi\Model\AplusContentV20201101\AsinBadge[]**](AsinBadge.md) | The set of ASIN badges. | [optional] -**parent** | **string** | The Amazon Standard Identification Number (ASIN). | [optional] -**title** | **string** | The title for the ASIN in the Amazon catalog. | [optional] -**image_url** | **string** | The default image for the ASIN in the Amazon catalog. | [optional] -**content_reference_key_set** | **string[]** | A set of content reference keys. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ColorType.md b/docs/Model/AplusContentV20201101/ColorType.md deleted file mode 100644 index dc59992e6..000000000 --- a/docs/Model/AplusContentV20201101/ColorType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ColorType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentBadge.md b/docs/Model/AplusContentV20201101/ContentBadge.md deleted file mode 100644 index e7bcaec18..000000000 --- a/docs/Model/AplusContentV20201101/ContentBadge.md +++ /dev/null @@ -1,8 +0,0 @@ -## ContentBadge - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentDocument.md b/docs/Model/AplusContentV20201101/ContentDocument.md deleted file mode 100644 index afa0589f8..000000000 --- a/docs/Model/AplusContentV20201101/ContentDocument.md +++ /dev/null @@ -1,14 +0,0 @@ -## ContentDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The A+ Content document name. | -**content_type** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentType**](ContentType.md) | | -**content_sub_type** | **string** | The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. | [optional] -**locale** | **string** | The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. -**Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ | -**content_module_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentModule[]**](ContentModule.md) | A list of A+ Content modules. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentMetadata.md b/docs/Model/AplusContentV20201101/ContentMetadata.md deleted file mode 100644 index da3b2ceed..000000000 --- a/docs/Model/AplusContentV20201101/ContentMetadata.md +++ /dev/null @@ -1,13 +0,0 @@ -## ContentMetadata - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The A+ Content document name. | -**marketplace_id** | **string** | The identifier for the marketplace where the A+ Content is published. | -**status** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentStatus**](ContentStatus.md) | | -**badge_set** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentBadge[]**](ContentBadge.md) | The set of content badges. | -**update_time** | **string** | The approximate age of the A+ Content document and metadata in ISO 8601 format. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentMetadataRecord.md b/docs/Model/AplusContentV20201101/ContentMetadataRecord.md deleted file mode 100644 index b60911bfb..000000000 --- a/docs/Model/AplusContentV20201101/ContentMetadataRecord.md +++ /dev/null @@ -1,10 +0,0 @@ -## ContentMetadataRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_reference_key** | **string** | A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | -**content_metadata** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata**](ContentMetadata.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentModule.md b/docs/Model/AplusContentV20201101/ContentModule.md deleted file mode 100644 index 71cb64b19..000000000 --- a/docs/Model/AplusContentV20201101/ContentModule.md +++ /dev/null @@ -1,24 +0,0 @@ -## ContentModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_module_type** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentModuleType**](ContentModuleType.md) | | -**standard_company_logo** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardCompanyLogoModule**](StandardCompanyLogoModule.md) | | [optional] -**standard_comparison_table** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonTableModule**](StandardComparisonTableModule.md) | | [optional] -**standard_four_image_text** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextModule**](StandardFourImageTextModule.md) | | [optional] -**standard_four_image_text_quadrant** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextQuadrantModule**](StandardFourImageTextQuadrantModule.md) | | [optional] -**standard_header_image_text** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderImageTextModule**](StandardHeaderImageTextModule.md) | | [optional] -**standard_image_sidebar** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageSidebarModule**](StandardImageSidebarModule.md) | | [optional] -**standard_image_text_overlay** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextOverlayModule**](StandardImageTextOverlayModule.md) | | [optional] -**standard_multiple_image_text** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardMultipleImageTextModule**](StandardMultipleImageTextModule.md) | | [optional] -**standard_product_description** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardProductDescriptionModule**](StandardProductDescriptionModule.md) | | [optional] -**standard_single_image_highlights** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageHighlightsModule**](StandardSingleImageHighlightsModule.md) | | [optional] -**standard_single_image_specs_detail** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageSpecsDetailModule**](StandardSingleImageSpecsDetailModule.md) | | [optional] -**standard_single_side_image** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleSideImageModule**](StandardSingleSideImageModule.md) | | [optional] -**standard_tech_specs** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTechSpecsModule**](StandardTechSpecsModule.md) | | [optional] -**standard_text** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextModule**](StandardTextModule.md) | | [optional] -**standard_three_image_text** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardThreeImageTextModule**](StandardThreeImageTextModule.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentModuleType.md b/docs/Model/AplusContentV20201101/ContentModuleType.md deleted file mode 100644 index 5fc57b8e3..000000000 --- a/docs/Model/AplusContentV20201101/ContentModuleType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ContentModuleType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentRecord.md b/docs/Model/AplusContentV20201101/ContentRecord.md deleted file mode 100644 index 1b5554ad8..000000000 --- a/docs/Model/AplusContentV20201101/ContentRecord.md +++ /dev/null @@ -1,11 +0,0 @@ -## ContentRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_reference_key** | **string** | A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | -**content_metadata** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata**](ContentMetadata.md) | | [optional] -**content_document** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentDocument**](ContentDocument.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentStatus.md b/docs/Model/AplusContentV20201101/ContentStatus.md deleted file mode 100644 index 0bd1e752f..000000000 --- a/docs/Model/AplusContentV20201101/ContentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ContentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ContentType.md b/docs/Model/AplusContentV20201101/ContentType.md deleted file mode 100644 index b0200019e..000000000 --- a/docs/Model/AplusContentV20201101/ContentType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ContentType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/Decorator.md b/docs/Model/AplusContentV20201101/Decorator.md deleted file mode 100644 index 083b33771..000000000 --- a/docs/Model/AplusContentV20201101/Decorator.md +++ /dev/null @@ -1,12 +0,0 @@ -## Decorator - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**\SellingPartnerApi\Model\AplusContentV20201101\DecoratorType**](DecoratorType.md) | | [optional] -**offset** | **int** | The starting character of this decorator within the content string. Use zero for the first character. | [optional] -**length** | **int** | The number of content characters to alter with this decorator. Decorators such as line breaks can have zero length and fit between characters. | [optional] -**depth** | **int** | The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/DecoratorType.md b/docs/Model/AplusContentV20201101/DecoratorType.md deleted file mode 100644 index f88df4c24..000000000 --- a/docs/Model/AplusContentV20201101/DecoratorType.md +++ /dev/null @@ -1,8 +0,0 @@ -## DecoratorType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/Error.md b/docs/Model/AplusContentV20201101/Error.md deleted file mode 100644 index 887bcd43e..000000000 --- a/docs/Model/AplusContentV20201101/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | The code that identifies the type of error condition. | -**message** | **string** | A human readable description of the error condition. | -**details** | **string** | Additional information, if available, to clarify the error condition. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ErrorList.md b/docs/Model/AplusContentV20201101/ErrorList.md deleted file mode 100644 index 59b95c655..000000000 --- a/docs/Model/AplusContentV20201101/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/GetContentDocumentResponse.md b/docs/Model/AplusContentV20201101/GetContentDocumentResponse.md deleted file mode 100644 index efc0fdf3d..000000000 --- a/docs/Model/AplusContentV20201101/GetContentDocumentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetContentDocumentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**content_record** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentRecord**](ContentRecord.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.md b/docs/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.md deleted file mode 100644 index 9b19d167a..000000000 --- a/docs/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetContentDocumentResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_record** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentRecord**](ContentRecord.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ImageComponent.md b/docs/Model/AplusContentV20201101/ImageComponent.md deleted file mode 100644 index a3bf8695c..000000000 --- a/docs/Model/AplusContentV20201101/ImageComponent.md +++ /dev/null @@ -1,11 +0,0 @@ -## ImageComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload_destination_id** | **string** | This identifier is provided by the Selling Partner API for Uploads. | -**image_crop_specification** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageCropSpecification**](ImageCropSpecification.md) | | -**alt_text** | **string** | The alternative text for the image. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ImageCropSpecification.md b/docs/Model/AplusContentV20201101/ImageCropSpecification.md deleted file mode 100644 index 759ba1b6f..000000000 --- a/docs/Model/AplusContentV20201101/ImageCropSpecification.md +++ /dev/null @@ -1,10 +0,0 @@ -## ImageCropSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageDimensions**](ImageDimensions.md) | | -**offset** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageOffsets**](ImageOffsets.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ImageDimensions.md b/docs/Model/AplusContentV20201101/ImageDimensions.md deleted file mode 100644 index cde7f2ca2..000000000 --- a/docs/Model/AplusContentV20201101/ImageDimensions.md +++ /dev/null @@ -1,10 +0,0 @@ -## ImageDimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**width** | [**\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits**](IntegerWithUnits.md) | | -**height** | [**\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits**](IntegerWithUnits.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ImageOffsets.md b/docs/Model/AplusContentV20201101/ImageOffsets.md deleted file mode 100644 index f6732f4f9..000000000 --- a/docs/Model/AplusContentV20201101/ImageOffsets.md +++ /dev/null @@ -1,10 +0,0 @@ -## ImageOffsets - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**x** | [**\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits**](IntegerWithUnits.md) | | -**y** | [**\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits**](IntegerWithUnits.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/IntegerWithUnits.md b/docs/Model/AplusContentV20201101/IntegerWithUnits.md deleted file mode 100644 index 59a67efd8..000000000 --- a/docs/Model/AplusContentV20201101/IntegerWithUnits.md +++ /dev/null @@ -1,10 +0,0 @@ -## IntegerWithUnits - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **int** | The dimension value. | -**units** | **string** | The unit of measurement. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.md b/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.md deleted file mode 100644 index 95fe863a8..000000000 --- a/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## ListContentDocumentAsinRelationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**next_page_token** | **string** | A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. | [optional] -**asin_metadata_set** | [**\SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[]**](AsinMetadata.md) | The set of ASIN metadata. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.md b/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.md deleted file mode 100644 index 2445da294..000000000 --- a/docs/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## ListContentDocumentAsinRelationsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin_metadata_set** | [**\SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[]**](AsinMetadata.md) | The set of ASIN metadata. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ParagraphComponent.md b/docs/Model/AplusContentV20201101/ParagraphComponent.md deleted file mode 100644 index 68bd11da9..000000000 --- a/docs/Model/AplusContentV20201101/ParagraphComponent.md +++ /dev/null @@ -1,9 +0,0 @@ -## ParagraphComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent[]**](TextComponent.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PlainTextItem.md b/docs/Model/AplusContentV20201101/PlainTextItem.md deleted file mode 100644 index 7a4b4ae10..000000000 --- a/docs/Model/AplusContentV20201101/PlainTextItem.md +++ /dev/null @@ -1,10 +0,0 @@ -## PlainTextItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**position** | **int** | The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. | -**value** | **string** | The actual plain text. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PositionType.md b/docs/Model/AplusContentV20201101/PositionType.md deleted file mode 100644 index 07d30aeb3..000000000 --- a/docs/Model/AplusContentV20201101/PositionType.md +++ /dev/null @@ -1,8 +0,0 @@ -## PositionType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.md b/docs/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.md deleted file mode 100644 index f319b2241..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentApprovalSubmissionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.md b/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.md deleted file mode 100644 index 05d046db1..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentAsinRelationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin_set** | **string[]** | The set of ASINs. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.md b/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.md deleted file mode 100644 index 17f7cd669..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentAsinRelationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentRequest.md b/docs/Model/AplusContentV20201101/PostContentDocumentRequest.md deleted file mode 100644 index 849735b55..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_document** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentDocument**](ContentDocument.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentResponse.md b/docs/Model/AplusContentV20201101/PostContentDocumentResponse.md deleted file mode 100644 index d595085b5..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## PostContentDocumentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**content_reference_key** | **string** | A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.md b/docs/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.md deleted file mode 100644 index 748dc7880..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_reference_key** | **string** | A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.md b/docs/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.md deleted file mode 100644 index 8cf5b5d29..000000000 --- a/docs/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## PostContentDocumentSuspendSubmissionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/PublishRecord.md b/docs/Model/AplusContentV20201101/PublishRecord.md deleted file mode 100644 index 6c97fc289..000000000 --- a/docs/Model/AplusContentV20201101/PublishRecord.md +++ /dev/null @@ -1,15 +0,0 @@ -## PublishRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The identifier for the marketplace where the A+ Content is published. | -**locale** | **string** | The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. -**Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ | -**asin** | **string** | The Amazon Standard Identification Number (ASIN). | -**content_type** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentType**](ContentType.md) | | -**content_sub_type** | **string** | The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. | [optional] -**content_reference_key** | **string** | A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/SearchContentDocumentsResponse.md b/docs/Model/AplusContentV20201101/SearchContentDocumentsResponse.md deleted file mode 100644 index 2b0c2703e..000000000 --- a/docs/Model/AplusContentV20201101/SearchContentDocumentsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## SearchContentDocumentsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**next_page_token** | **string** | A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. | [optional] -**content_metadata_records** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[]**](ContentMetadataRecord.md) | A list of A+ Content metadata records. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.md b/docs/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.md deleted file mode 100644 index 541666f25..000000000 --- a/docs/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## SearchContentDocumentsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_metadata_records** | [**\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[]**](ContentMetadataRecord.md) | A list of A+ Content metadata records. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.md b/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.md deleted file mode 100644 index aa78b77af..000000000 --- a/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## SearchContentPublishRecordsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**next_page_token** | **string** | A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. | [optional] -**publish_record_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[]**](PublishRecord.md) | A list of A+ Content publishing records. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.md b/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.md deleted file mode 100644 index f85237efc..000000000 --- a/docs/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## SearchContentPublishRecordsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**publish_record_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[]**](PublishRecord.md) | A list of A+ Content publishing records. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardCompanyLogoModule.md b/docs/Model/AplusContentV20201101/StandardCompanyLogoModule.md deleted file mode 100644 index 5a047ee7b..000000000 --- a/docs/Model/AplusContentV20201101/StandardCompanyLogoModule.md +++ /dev/null @@ -1,9 +0,0 @@ -## StandardCompanyLogoModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_logo** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardComparisonProductBlock.md b/docs/Model/AplusContentV20201101/StandardComparisonProductBlock.md deleted file mode 100644 index 9e191dd64..000000000 --- a/docs/Model/AplusContentV20201101/StandardComparisonProductBlock.md +++ /dev/null @@ -1,14 +0,0 @@ -## StandardComparisonProductBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**position** | **int** | The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module. | -**image** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | [optional] -**title** | **string** | The comparison product title. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN). | [optional] -**highlight** | **bool** | Determines whether this block of content is visually highlighted. | [optional] -**metrics** | [**\SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]**](PlainTextItem.md) | Comparison metrics for the product. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardComparisonTableModule.md b/docs/Model/AplusContentV20201101/StandardComparisonTableModule.md deleted file mode 100644 index d81c57a7d..000000000 --- a/docs/Model/AplusContentV20201101/StandardComparisonTableModule.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardComparisonTableModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_columns** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonProductBlock[]**](StandardComparisonProductBlock.md) | | [optional] -**metric_row_labels** | [**\SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]**](PlainTextItem.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardFourImageTextModule.md b/docs/Model/AplusContentV20201101/StandardFourImageTextModule.md deleted file mode 100644 index 1644d0dba..000000000 --- a/docs/Model/AplusContentV20201101/StandardFourImageTextModule.md +++ /dev/null @@ -1,13 +0,0 @@ -## StandardFourImageTextModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**block1** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**block2** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**block3** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**block4** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.md b/docs/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.md deleted file mode 100644 index e7e6b63b6..000000000 --- a/docs/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.md +++ /dev/null @@ -1,12 +0,0 @@ -## StandardFourImageTextQuadrantModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**block1** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | -**block2** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | -**block3** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | -**block4** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardHeaderImageTextModule.md b/docs/Model/AplusContentV20201101/StandardHeaderImageTextModule.md deleted file mode 100644 index 611a33339..000000000 --- a/docs/Model/AplusContentV20201101/StandardHeaderImageTextModule.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardHeaderImageTextModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardHeaderTextListBlock.md b/docs/Model/AplusContentV20201101/StandardHeaderTextListBlock.md deleted file mode 100644 index 4c2a90efd..000000000 --- a/docs/Model/AplusContentV20201101/StandardHeaderTextListBlock.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardHeaderTextListBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock**](StandardTextListBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardImageCaptionBlock.md b/docs/Model/AplusContentV20201101/StandardImageCaptionBlock.md deleted file mode 100644 index 78accf13e..000000000 --- a/docs/Model/AplusContentV20201101/StandardImageCaptionBlock.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardImageCaptionBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | [optional] -**caption** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardImageSidebarModule.md b/docs/Model/AplusContentV20201101/StandardImageSidebarModule.md deleted file mode 100644 index 365fb6bd1..000000000 --- a/docs/Model/AplusContentV20201101/StandardImageSidebarModule.md +++ /dev/null @@ -1,14 +0,0 @@ -## StandardImageSidebarModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**image_caption_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageCaptionBlock**](StandardImageCaptionBlock.md) | | [optional] -**description_text_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**description_list_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock**](StandardTextListBlock.md) | | [optional] -**sidebar_image_text_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**sidebar_list_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock**](StandardTextListBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardImageTextBlock.md b/docs/Model/AplusContentV20201101/StandardImageTextBlock.md deleted file mode 100644 index 784abb167..000000000 --- a/docs/Model/AplusContentV20201101/StandardImageTextBlock.md +++ /dev/null @@ -1,11 +0,0 @@ -## StandardImageTextBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | [optional] -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent**](ParagraphComponent.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardImageTextCaptionBlock.md b/docs/Model/AplusContentV20201101/StandardImageTextCaptionBlock.md deleted file mode 100644 index 8e810cf2b..000000000 --- a/docs/Model/AplusContentV20201101/StandardImageTextCaptionBlock.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardImageTextCaptionBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**caption** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardImageTextOverlayModule.md b/docs/Model/AplusContentV20201101/StandardImageTextOverlayModule.md deleted file mode 100644 index 2c5ad67e6..000000000 --- a/docs/Model/AplusContentV20201101/StandardImageTextOverlayModule.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardImageTextOverlayModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**overlay_color_type** | [**\SellingPartnerApi\Model\AplusContentV20201101\ColorType**](ColorType.md) | | -**block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardMultipleImageTextModule.md b/docs/Model/AplusContentV20201101/StandardMultipleImageTextModule.md deleted file mode 100644 index d08826f57..000000000 --- a/docs/Model/AplusContentV20201101/StandardMultipleImageTextModule.md +++ /dev/null @@ -1,9 +0,0 @@ -## StandardMultipleImageTextModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**blocks** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextCaptionBlock[]**](StandardImageTextCaptionBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardProductDescriptionModule.md b/docs/Model/AplusContentV20201101/StandardProductDescriptionModule.md deleted file mode 100644 index abbe2b21d..000000000 --- a/docs/Model/AplusContentV20201101/StandardProductDescriptionModule.md +++ /dev/null @@ -1,9 +0,0 @@ -## StandardProductDescriptionModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent**](ParagraphComponent.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.md b/docs/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.md deleted file mode 100644 index 0701c7e2f..000000000 --- a/docs/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.md +++ /dev/null @@ -1,14 +0,0 @@ -## StandardSingleImageHighlightsModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | [optional] -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**text_block1** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**text_block2** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**text_block3** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**bulleted_list_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock**](StandardHeaderTextListBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.md b/docs/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.md deleted file mode 100644 index e93e5d0a2..000000000 --- a/docs/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.md +++ /dev/null @@ -1,16 +0,0 @@ -## StandardSingleImageSpecsDetailModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**image** | [**\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent**](ImageComponent.md) | | [optional] -**description_headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**description_block1** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**description_block2** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] -**specification_headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**specification_list_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock**](StandardHeaderTextListBlock.md) | | [optional] -**specification_text_block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock**](StandardTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardSingleSideImageModule.md b/docs/Model/AplusContentV20201101/StandardSingleSideImageModule.md deleted file mode 100644 index b840d9510..000000000 --- a/docs/Model/AplusContentV20201101/StandardSingleSideImageModule.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardSingleSideImageModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image_position_type** | [**\SellingPartnerApi\Model\AplusContentV20201101\PositionType**](PositionType.md) | | -**block** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardTechSpecsModule.md b/docs/Model/AplusContentV20201101/StandardTechSpecsModule.md deleted file mode 100644 index a6e49709f..000000000 --- a/docs/Model/AplusContentV20201101/StandardTechSpecsModule.md +++ /dev/null @@ -1,11 +0,0 @@ -## StandardTechSpecsModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**specification_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardTextPairBlock[]**](StandardTextPairBlock.md) | The specification list. | -**table_count** | **int** | The number of tables to present. Features are evenly divided between the tables. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardTextBlock.md b/docs/Model/AplusContentV20201101/StandardTextBlock.md deleted file mode 100644 index 169694498..000000000 --- a/docs/Model/AplusContentV20201101/StandardTextBlock.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardTextBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent**](ParagraphComponent.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardTextListBlock.md b/docs/Model/AplusContentV20201101/StandardTextListBlock.md deleted file mode 100644 index 6df29ba1c..000000000 --- a/docs/Model/AplusContentV20201101/StandardTextListBlock.md +++ /dev/null @@ -1,9 +0,0 @@ -## StandardTextListBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text_list** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextItem[]**](TextItem.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardTextModule.md b/docs/Model/AplusContentV20201101/StandardTextModule.md deleted file mode 100644 index d5c9c9294..000000000 --- a/docs/Model/AplusContentV20201101/StandardTextModule.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardTextModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent**](ParagraphComponent.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardTextPairBlock.md b/docs/Model/AplusContentV20201101/StandardTextPairBlock.md deleted file mode 100644 index 37f467798..000000000 --- a/docs/Model/AplusContentV20201101/StandardTextPairBlock.md +++ /dev/null @@ -1,10 +0,0 @@ -## StandardTextPairBlock - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**description** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/StandardThreeImageTextModule.md b/docs/Model/AplusContentV20201101/StandardThreeImageTextModule.md deleted file mode 100644 index beba294d0..000000000 --- a/docs/Model/AplusContentV20201101/StandardThreeImageTextModule.md +++ /dev/null @@ -1,12 +0,0 @@ -## StandardThreeImageTextModule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headline** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | [optional] -**block1** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**block2** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] -**block3** | [**\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock**](StandardImageTextBlock.md) | | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/TextComponent.md b/docs/Model/AplusContentV20201101/TextComponent.md deleted file mode 100644 index 002cdd5b8..000000000 --- a/docs/Model/AplusContentV20201101/TextComponent.md +++ /dev/null @@ -1,10 +0,0 @@ -## TextComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **string** | The actual plain text. | -**decorator_set** | [**\SellingPartnerApi\Model\AplusContentV20201101\Decorator[]**](Decorator.md) | A set of content decorators. | [optional] - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/TextItem.md b/docs/Model/AplusContentV20201101/TextItem.md deleted file mode 100644 index e63ad2990..000000000 --- a/docs/Model/AplusContentV20201101/TextItem.md +++ /dev/null @@ -1,10 +0,0 @@ -## TextItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**position** | **int** | The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. | -**text** | [**\SellingPartnerApi\Model\AplusContentV20201101\TextComponent**](TextComponent.md) | | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.md b/docs/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.md deleted file mode 100644 index e66e82f86..000000000 --- a/docs/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ValidateContentDocumentAsinRelationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A set of messages to the user, such as warnings or comments. | [optional] -**errors** | [**\SellingPartnerApi\Model\AplusContentV20201101\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | - -[[AplusContentV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AuthorizationV1/AuthorizationCode.md b/docs/Model/AuthorizationV1/AuthorizationCode.md deleted file mode 100644 index 0129bd80d..000000000 --- a/docs/Model/AuthorizationV1/AuthorizationCode.md +++ /dev/null @@ -1,9 +0,0 @@ -## AuthorizationCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authorization_code** | **string** | A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API. | [optional] - -[[AuthorizationV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AuthorizationV1/Error.md b/docs/Model/AuthorizationV1/Error.md deleted file mode 100644 index 97cf3b396..000000000 --- a/docs/Model/AuthorizationV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[AuthorizationV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/AuthorizationV1/GetAuthorizationCodeResponse.md b/docs/Model/AuthorizationV1/GetAuthorizationCodeResponse.md deleted file mode 100644 index a7530a9c8..000000000 --- a/docs/Model/AuthorizationV1/GetAuthorizationCodeResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAuthorizationCodeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\AuthorizationV1\AuthorizationCode**](AuthorizationCode.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\AuthorizationV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[AuthorizationV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/ASINIdentifier.md b/docs/Model/CatalogItemsV0/ASINIdentifier.md deleted file mode 100644 index 3e1d77bc9..000000000 --- a/docs/Model/CatalogItemsV0/ASINIdentifier.md +++ /dev/null @@ -1,10 +0,0 @@ -## ASINIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/AttributeSetListType.md b/docs/Model/CatalogItemsV0/AttributeSetListType.md deleted file mode 100644 index 1b438f811..000000000 --- a/docs/Model/CatalogItemsV0/AttributeSetListType.md +++ /dev/null @@ -1,104 +0,0 @@ -## AttributeSetListType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actor** | **string[]** | The actor attributes of the item. | [optional] -**artist** | **string[]** | The artist attributes of the item. | [optional] -**aspect_ratio** | **string** | The aspect ratio attribute of the item. | [optional] -**audience_rating** | **string** | The audience rating attribute of the item. | [optional] -**author** | **string[]** | The author attributes of the item. | [optional] -**back_finding** | **string** | The back finding attribute of the item. | [optional] -**band_material_type** | **string** | The band material type attribute of the item. | [optional] -**binding** | **string** | The binding attribute of the item. | [optional] -**bluray_region** | **string** | The Bluray region attribute of the item. | [optional] -**brand** | **string** | The brand attribute of the item. | [optional] -**cero_age_rating** | **string** | The CERO age rating attribute of the item. | [optional] -**chain_type** | **string** | The chain type attribute of the item. | [optional] -**clasp_type** | **string** | The clasp type attribute of the item. | [optional] -**color** | **string** | The color attribute of the item. | [optional] -**cpu_manufacturer** | **string** | The CPU manufacturer attribute of the item. | [optional] -**cpu_speed** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**cpu_type** | **string** | The CPU type attribute of the item. | [optional] -**creator** | [**\SellingPartnerApi\Model\CatalogItemsV0\CreatorType[]**](CreatorType.md) | The creator attributes of the item. | [optional] -**department** | **string** | The department attribute of the item. | [optional] -**director** | **string[]** | The director attributes of the item. | [optional] -**display_size** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**edition** | **string** | The edition attribute of the item. | [optional] -**episode_sequence** | **string** | The episode sequence attribute of the item. | [optional] -**esrb_age_rating** | **string** | The ESRB age rating attribute of the item. | [optional] -**feature** | **string[]** | The feature attributes of the item | [optional] -**flavor** | **string** | The flavor attribute of the item. | [optional] -**format** | **string[]** | The format attributes of the item. | [optional] -**gem_type** | **string[]** | The gem type attributes of the item. | [optional] -**genre** | **string** | The genre attribute of the item. | [optional] -**golf_club_flex** | **string** | The golf club flex attribute of the item. | [optional] -**golf_club_loft** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**hand_orientation** | **string** | The hand orientation attribute of the item. | [optional] -**hard_disk_interface** | **string** | The hard disk interface attribute of the item. | [optional] -**hard_disk_size** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**hardware_platform** | **string** | The hardware platform attribute of the item. | [optional] -**hazardous_material_type** | **string** | The hazardous material type attribute of the item. | [optional] -**item_dimensions** | [**\SellingPartnerApi\Model\CatalogItemsV0\DimensionType**](DimensionType.md) | | [optional] -**is_adult_product** | **bool** | The adult product attribute of the item. | [optional] -**is_autographed** | **bool** | The autographed attribute of the item. | [optional] -**is_eligible_for_trade_in** | **bool** | The is eligible for trade in attribute of the item. | [optional] -**is_memorabilia** | **bool** | The is memorabilia attribute of the item. | [optional] -**issues_per_year** | **string** | The issues per year attribute of the item. | [optional] -**item_part_number** | **string** | The item part number attribute of the item. | [optional] -**label** | **string** | The label attribute of the item. | [optional] -**languages** | [**\SellingPartnerApi\Model\CatalogItemsV0\LanguageType[]**](LanguageType.md) | The languages attribute of the item. | [optional] -**legal_disclaimer** | **string** | The legal disclaimer attribute of the item. | [optional] -**list_price** | [**\SellingPartnerApi\Model\CatalogItemsV0\Price**](Price.md) | | [optional] -**manufacturer** | **string** | The manufacturer attribute of the item. | [optional] -**manufacturer_maximum_age** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**manufacturer_minimum_age** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**manufacturer_parts_warranty_description** | **string** | The manufacturer parts warranty description attribute of the item. | [optional] -**material_type** | **string[]** | The material type attributes of the item. | [optional] -**maximum_resolution** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**media_type** | **string[]** | The media type attributes of the item. | [optional] -**metal_stamp** | **string** | The metal stamp attribute of the item. | [optional] -**metal_type** | **string** | The metal type attribute of the item. | [optional] -**model** | **string** | The model attribute of the item. | [optional] -**number_of_discs** | **int** | The number of discs attribute of the item. | [optional] -**number_of_issues** | **int** | The number of issues attribute of the item. | [optional] -**number_of_items** | **int** | The number of items attribute of the item. | [optional] -**number_of_pages** | **int** | The number of pages attribute of the item. | [optional] -**number_of_tracks** | **int** | The number of tracks attribute of the item. | [optional] -**operating_system** | **string[]** | The operating system attributes of the item. | [optional] -**optical_zoom** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**package_dimensions** | [**\SellingPartnerApi\Model\CatalogItemsV0\DimensionType**](DimensionType.md) | | [optional] -**package_quantity** | **int** | The package quantity attribute of the item. | [optional] -**part_number** | **string** | The part number attribute of the item. | [optional] -**pegi_rating** | **string** | The PEGI rating attribute of the item. | [optional] -**platform** | **string[]** | The platform attributes of the item. | [optional] -**processor_count** | **int** | The processor count attribute of the item. | [optional] -**product_group** | **string** | The product group attribute of the item. | [optional] -**product_type_name** | **string** | The product type name attribute of the item. | [optional] -**product_type_subcategory** | **string** | The product type subcategory attribute of the item. | [optional] -**publication_date** | **string** | The publication date attribute of the item. | [optional] -**publisher** | **string** | The publisher attribute of the item. | [optional] -**region_code** | **string** | The region code attribute of the item. | [optional] -**release_date** | **string** | The release date attribute of the item. | [optional] -**ring_size** | **string** | The ring size attribute of the item. | [optional] -**running_time** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**shaft_material** | **string** | The shaft material attribute of the item. | [optional] -**scent** | **string** | The scent attribute of the item. | [optional] -**season_sequence** | **string** | The season sequence attribute of the item. | [optional] -**seikodo_product_code** | **string** | The Seikodo product code attribute of the item. | [optional] -**size** | **string** | The size attribute of the item. | [optional] -**size_per_pearl** | **string** | The size per pearl attribute of the item. | [optional] -**small_image** | [**\SellingPartnerApi\Model\CatalogItemsV0\Image**](Image.md) | | [optional] -**studio** | **string** | The studio attribute of the item. | [optional] -**subscription_length** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**system_memory_size** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**system_memory_type** | **string** | The system memory type attribute of the item. | [optional] -**theatrical_release_date** | **string** | The theatrical release date attribute of the item. | [optional] -**title** | **string** | The title attribute of the item. | [optional] -**total_diamond_weight** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**total_gem_weight** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**warranty** | **string** | The warranty attribute of the item. | [optional] -**weee_tax_value** | [**\SellingPartnerApi\Model\CatalogItemsV0\Price**](Price.md) | | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/Categories.md b/docs/Model/CatalogItemsV0/Categories.md deleted file mode 100644 index 1f7ee6787..000000000 --- a/docs/Model/CatalogItemsV0/Categories.md +++ /dev/null @@ -1,11 +0,0 @@ -## Categories - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_category_id** | **string** | The identifier for the product category (or browse node). | [optional] -**product_category_name** | **string** | The name of the product category (or browse node). | [optional] -**parent** | **object** | The parent product category. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/CreatorType.md b/docs/Model/CatalogItemsV0/CreatorType.md deleted file mode 100644 index ed3babef1..000000000 --- a/docs/Model/CatalogItemsV0/CreatorType.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreatorType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **string** | The value of the attribute. | [optional] -**role** | **string** | The role of the value. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/DecimalWithUnits.md b/docs/Model/CatalogItemsV0/DecimalWithUnits.md deleted file mode 100644 index 2fc702953..000000000 --- a/docs/Model/CatalogItemsV0/DecimalWithUnits.md +++ /dev/null @@ -1,10 +0,0 @@ -## DecimalWithUnits - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **float** | The decimal value. | [optional] -**units** | **string** | The unit of the decimal value. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/DimensionType.md b/docs/Model/CatalogItemsV0/DimensionType.md deleted file mode 100644 index 683450b4e..000000000 --- a/docs/Model/CatalogItemsV0/DimensionType.md +++ /dev/null @@ -1,12 +0,0 @@ -## DimensionType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**height** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**length** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**width** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/Error.md b/docs/Model/CatalogItemsV0/Error.md deleted file mode 100644 index 3b83c2b3d..000000000 --- a/docs/Model/CatalogItemsV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/GetCatalogItemResponse.md b/docs/Model/CatalogItemsV0/GetCatalogItemResponse.md deleted file mode 100644 index 79aef31bd..000000000 --- a/docs/Model/CatalogItemsV0/GetCatalogItemResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetCatalogItemResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\CatalogItemsV0\Item**](Item.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\CatalogItemsV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/IdentifierType.md b/docs/Model/CatalogItemsV0/IdentifierType.md deleted file mode 100644 index de6b99d2e..000000000 --- a/docs/Model/CatalogItemsV0/IdentifierType.md +++ /dev/null @@ -1,10 +0,0 @@ -## IdentifierType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_asin** | [**\SellingPartnerApi\Model\CatalogItemsV0\ASINIdentifier**](ASINIdentifier.md) | | [optional] -**sku_identifier** | [**\SellingPartnerApi\Model\CatalogItemsV0\SellerSKUIdentifier**](SellerSKUIdentifier.md) | | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/Image.md b/docs/Model/CatalogItemsV0/Image.md deleted file mode 100644 index b234197bf..000000000 --- a/docs/Model/CatalogItemsV0/Image.md +++ /dev/null @@ -1,11 +0,0 @@ -## Image - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | The image URL attribute of the item. | [optional] -**height** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**width** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/Item.md b/docs/Model/CatalogItemsV0/Item.md deleted file mode 100644 index 6f34792f0..000000000 --- a/docs/Model/CatalogItemsV0/Item.md +++ /dev/null @@ -1,12 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV0\IdentifierType**](IdentifierType.md) | | -**attribute_sets** | [**\SellingPartnerApi\Model\CatalogItemsV0\AttributeSetListType[]**](AttributeSetListType.md) | A list of attributes for the item. | [optional] -**relationships** | [**\SellingPartnerApi\Model\CatalogItemsV0\RelationshipType[]**](RelationshipType.md) | A list of variation relationship information, if applicable for the item. | [optional] -**sales_rankings** | [**\SellingPartnerApi\Model\CatalogItemsV0\SalesRankType[]**](SalesRankType.md) | A list of sales rank information for the item by category. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/LanguageType.md b/docs/Model/CatalogItemsV0/LanguageType.md deleted file mode 100644 index a9a67ae8d..000000000 --- a/docs/Model/CatalogItemsV0/LanguageType.md +++ /dev/null @@ -1,11 +0,0 @@ -## LanguageType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name attribute of the item. | [optional] -**type** | **string** | The type attribute of the item. | [optional] -**audio_format** | **string** | The audio format attribute of the item. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/ListCatalogCategoriesResponse.md b/docs/Model/CatalogItemsV0/ListCatalogCategoriesResponse.md deleted file mode 100644 index dacab7efc..000000000 --- a/docs/Model/CatalogItemsV0/ListCatalogCategoriesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListCatalogCategoriesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\CatalogItemsV0\Categories[]**](Categories.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\CatalogItemsV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/ListCatalogItemsResponse.md b/docs/Model/CatalogItemsV0/ListCatalogItemsResponse.md deleted file mode 100644 index 2e87e707e..000000000 --- a/docs/Model/CatalogItemsV0/ListCatalogItemsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListCatalogItemsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\CatalogItemsV0\ListMatchingItemsResponse**](ListMatchingItemsResponse.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\CatalogItemsV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/ListMatchingItemsResponse.md b/docs/Model/CatalogItemsV0/ListMatchingItemsResponse.md deleted file mode 100644 index fccb5c3b7..000000000 --- a/docs/Model/CatalogItemsV0/ListMatchingItemsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## ListMatchingItemsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**\SellingPartnerApi\Model\CatalogItemsV0\Item[]**](Item.md) | A list of items. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/Price.md b/docs/Model/CatalogItemsV0/Price.md deleted file mode 100644 index 91dbef27d..000000000 --- a/docs/Model/CatalogItemsV0/Price.md +++ /dev/null @@ -1,10 +0,0 @@ -## Price - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **float** | The amount. | [optional] -**currency_code** | **string** | The currency code of the amount. | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/RelationshipType.md b/docs/Model/CatalogItemsV0/RelationshipType.md deleted file mode 100644 index 3d04f1b4c..000000000 --- a/docs/Model/CatalogItemsV0/RelationshipType.md +++ /dev/null @@ -1,31 +0,0 @@ -## RelationshipType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV0\IdentifierType**](IdentifierType.md) | | [optional] -**color** | **string** | The color variation of the item. | [optional] -**edition** | **string** | The edition variation of the item. | [optional] -**flavor** | **string** | The flavor variation of the item. | [optional] -**gem_type** | **string[]** | The gem type variations of the item. | [optional] -**golf_club_flex** | **string** | The golf club flex variation of an item. | [optional] -**hand_orientation** | **string** | The hand orientation variation of an item. | [optional] -**hardware_platform** | **string** | The hardware platform variation of an item. | [optional] -**material_type** | **string[]** | The material type variations of an item. | [optional] -**metal_type** | **string** | The metal type variation of an item. | [optional] -**model** | **string** | The model variation of an item. | [optional] -**operating_system** | **string[]** | The operating system variations of an item. | [optional] -**product_type_subcategory** | **string** | The product type subcategory variation of an item. | [optional] -**ring_size** | **string** | The ring size variation of an item. | [optional] -**shaft_material** | **string** | The shaft material variation of an item. | [optional] -**scent** | **string** | The scent variation of an item. | [optional] -**size** | **string** | The size variation of an item. | [optional] -**size_per_pearl** | **string** | The size per pearl variation of an item. | [optional] -**golf_club_loft** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**total_diamond_weight** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**total_gem_weight** | [**\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits**](DecimalWithUnits.md) | | [optional] -**package_quantity** | **int** | The package quantity variation of an item. | [optional] -**item_dimensions** | [**\SellingPartnerApi\Model\CatalogItemsV0\DimensionType**](DimensionType.md) | | [optional] - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/SalesRankType.md b/docs/Model/CatalogItemsV0/SalesRankType.md deleted file mode 100644 index 0adb3faf7..000000000 --- a/docs/Model/CatalogItemsV0/SalesRankType.md +++ /dev/null @@ -1,10 +0,0 @@ -## SalesRankType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_category_id** | **string** | Identifies the item category from which the sales rank is taken. | -**rank** | **int** | The sales rank of the item within the item category. | - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV0/SellerSKUIdentifier.md b/docs/Model/CatalogItemsV0/SellerSKUIdentifier.md deleted file mode 100644 index ce7d2c861..000000000 --- a/docs/Model/CatalogItemsV0/SellerSKUIdentifier.md +++ /dev/null @@ -1,11 +0,0 @@ -## SellerSKUIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**seller_id** | **string** | The seller identifier submitted for the operation. | -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | - -[[CatalogItemsV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/BrandRefinement.md b/docs/Model/CatalogItemsV20201201/BrandRefinement.md deleted file mode 100644 index 2446e04c4..000000000 --- a/docs/Model/CatalogItemsV20201201/BrandRefinement.md +++ /dev/null @@ -1,10 +0,0 @@ -## BrandRefinement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | The estimated number of results that would still be returned if refinement key applied. | -**brand_name** | **string** | Brand name. For display and can be used as a search refinement. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ClassificationRefinement.md b/docs/Model/CatalogItemsV20201201/ClassificationRefinement.md deleted file mode 100644 index 42dc25fee..000000000 --- a/docs/Model/CatalogItemsV20201201/ClassificationRefinement.md +++ /dev/null @@ -1,11 +0,0 @@ -## ClassificationRefinement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | The estimated number of results that would still be returned if refinement key applied. | -**display_name** | **string** | Display name for the classification. | -**classification_id** | **string** | Identifier for the classification that can be used for search refinement purposes. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/Error.md b/docs/Model/CatalogItemsV20201201/Error.md deleted file mode 100644 index 938a75547..000000000 --- a/docs/Model/CatalogItemsV20201201/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ErrorList.md b/docs/Model/CatalogItemsV20201201/ErrorList.md deleted file mode 100644 index 9c1d524e3..000000000 --- a/docs/Model/CatalogItemsV20201201/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\Error[]**](Error.md) | | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/Item.md b/docs/Model/CatalogItemsV20201201/Item.md deleted file mode 100644 index afac251f2..000000000 --- a/docs/Model/CatalogItemsV20201201/Item.md +++ /dev/null @@ -1,17 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. | -**attributes** | **object** | A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. | [optional] -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifiersByMarketplace[]**](ItemIdentifiersByMarketplace.md) | Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. | [optional] -**images** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemImagesByMarketplace[]**](ItemImagesByMarketplace.md) | Images for an item in the Amazon catalog. All image variants are provided to brand owners. Otherwise, a thumbnail of the \"MAIN\" image variant is provided. | [optional] -**product_types** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemProductTypeByMarketplace[]**](ItemProductTypeByMarketplace.md) | Product types associated with the Amazon catalog item. | [optional] -**ranks** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRanksByMarketplace[]**](ItemSalesRanksByMarketplace.md) | Sales ranks of an Amazon catalog item. | [optional] -**summaries** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSummaryByMarketplace[]**](ItemSummaryByMarketplace.md) | Summary details of an Amazon catalog item. | [optional] -**variations** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemVariationsByMarketplace[]**](ItemVariationsByMarketplace.md) | Variation details by marketplace for an Amazon catalog item (variation relationships). | [optional] -**vendor_details** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemVendorDetailsByMarketplace[]**](ItemVendorDetailsByMarketplace.md) | Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemIdentifier.md b/docs/Model/CatalogItemsV20201201/ItemIdentifier.md deleted file mode 100644 index f92abee7c..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemIdentifier.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifier_type** | **string** | Type of identifier, such as UPC, EAN, or ISBN. | -**identifier** | **string** | Identifier. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.md deleted file mode 100644 index 3416f2c49..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemIdentifiersByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifier[]**](ItemIdentifier.md) | Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemImage.md b/docs/Model/CatalogItemsV20201201/ItemImage.md deleted file mode 100644 index 4d5706961..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemImage.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**variant** | **string** | Variant of the image, such as MAIN or PT01. | -**link** | **string** | Link, or URL, for the image. | -**height** | **int** | Height of the image in pixels. | -**width** | **int** | Width of the image in pixels. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemImagesByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemImagesByMarketplace.md deleted file mode 100644 index da3ab3dcb..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemImagesByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemImagesByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**images** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemImage[]**](ItemImage.md) | Images for an item in the Amazon catalog for the indicated Amazon marketplace. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.md deleted file mode 100644 index e23da254f..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemProductTypeByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | [optional] -**product_type** | **string** | Name of the product type associated with the Amazon catalog item. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemSalesRank.md b/docs/Model/CatalogItemsV20201201/ItemSalesRank.md deleted file mode 100644 index d6d603dc8..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemSalesRank.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemSalesRank - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **string** | Title, or name, of the sales rank. | -**link** | **string** | Corresponding Amazon retail website link, or URL, for the sales rank. | [optional] -**value** | **int** | Sales rank value. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.md deleted file mode 100644 index 3e0657e33..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemSalesRanksByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**ranks** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRank[]**](ItemSalesRank.md) | Sales ranks of an Amazon catalog item for an Amazon marketplace. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemSearchResults.md b/docs/Model/CatalogItemsV20201201/ItemSearchResults.md deleted file mode 100644 index e611c6e57..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemSearchResults.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemSearchResults - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | The estimated total number of products matched by the search query (only results up to the page count limit will be returned per request regardless of the number found).

Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. | -**pagination** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\Pagination**](Pagination.md) | | -**refinements** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\Refinements**](Refinements.md) | | -**items** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\Item[]**](Item.md) | A list of items from the Amazon catalog. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.md deleted file mode 100644 index 4b0810c91..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.md +++ /dev/null @@ -1,17 +0,0 @@ -## ItemSummaryByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**brand_name** | **string** | Name of the brand associated with an Amazon catalog item. | [optional] -**browse_node** | **string** | Identifier of the browse node associated with an Amazon catalog item. | [optional] -**color_name** | **string** | Name of the color associated with an Amazon catalog item. | [optional] -**item_name** | **string** | Name, or title, associated with an Amazon catalog item. | [optional] -**manufacturer** | **string** | Name of the manufacturer associated with an Amazon catalog item. | [optional] -**model_number** | **string** | Model number associated with an Amazon catalog item. | [optional] -**size_name** | **string** | Name of the size associated with an Amazon catalog item. | [optional] -**style_name** | **string** | Name of the style associated with an Amazon catalog item. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.md deleted file mode 100644 index f31004512..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemVariationsByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**asins** | **string[]** | Identifiers (ASINs) of the related items. | -**variation_type** | **string** | Type of variation relationship of the Amazon catalog item in the request to the related item(s): \"PARENT\" or \"CHILD\". | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.md b/docs/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.md deleted file mode 100644 index 2b00c0f6b..000000000 --- a/docs/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.md +++ /dev/null @@ -1,16 +0,0 @@ -## ItemVendorDetailsByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**brand_code** | **string** | Brand code associated with an Amazon catalog item. | [optional] -**category_code** | **string** | Product category associated with an Amazon catalog item. | [optional] -**manufacturer_code** | **string** | Manufacturer code associated with an Amazon catalog item. | [optional] -**manufacturer_code_parent** | **string** | Parent vendor code of the manufacturer code. | [optional] -**product_group** | **string** | Product group associated with an Amazon catalog item. | [optional] -**replenishment_category** | **string** | Replenishment category associated with an Amazon catalog item. | [optional] -**subcategory_code** | **string** | Product subcategory associated with an Amazon catalog item. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/Pagination.md b/docs/Model/CatalogItemsV20201201/Pagination.md deleted file mode 100644 index 3e0362179..000000000 --- a/docs/Model/CatalogItemsV20201201/Pagination.md +++ /dev/null @@ -1,10 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A token that can be used to fetch the next page. | [optional] -**previous_token** | **string** | A token that can be used to fetch the previous page. | [optional] - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20201201/Refinements.md b/docs/Model/CatalogItemsV20201201/Refinements.md deleted file mode 100644 index fae1ccacf..000000000 --- a/docs/Model/CatalogItemsV20201201/Refinements.md +++ /dev/null @@ -1,10 +0,0 @@ -## Refinements - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**brands** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\BrandRefinement[]**](BrandRefinement.md) | Brand search refinements. | -**classifications** | [**\SellingPartnerApi\Model\CatalogItemsV20201201\ClassificationRefinement[]**](ClassificationRefinement.md) | Classification search refinements. | - -[[CatalogItemsV20201201 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/BrandRefinement.md b/docs/Model/CatalogItemsV20220401/BrandRefinement.md deleted file mode 100644 index bfdf46403..000000000 --- a/docs/Model/CatalogItemsV20220401/BrandRefinement.md +++ /dev/null @@ -1,10 +0,0 @@ -## BrandRefinement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | The estimated number of results that would still be returned if refinement key applied. | -**brand_name** | **string** | Brand name. For display and can be used as a search refinement. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ClassificationRefinement.md b/docs/Model/CatalogItemsV20220401/ClassificationRefinement.md deleted file mode 100644 index d4542ab7f..000000000 --- a/docs/Model/CatalogItemsV20220401/ClassificationRefinement.md +++ /dev/null @@ -1,11 +0,0 @@ -## ClassificationRefinement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | The estimated number of results that would still be returned if refinement key applied. | -**display_name** | **string** | Display name for the classification. | -**classification_id** | **string** | Identifier for the classification that can be used for search refinement purposes. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Dimension.md b/docs/Model/CatalogItemsV20220401/Dimension.md deleted file mode 100644 index ff0d876ab..000000000 --- a/docs/Model/CatalogItemsV20220401/Dimension.md +++ /dev/null @@ -1,10 +0,0 @@ -## Dimension - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **string** | Measurement unit of the dimension value. | [optional] -**value** | **float** | Numeric dimension value. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Dimensions.md b/docs/Model/CatalogItemsV20220401/Dimensions.md deleted file mode 100644 index fb52f0722..000000000 --- a/docs/Model/CatalogItemsV20220401/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**height** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension**](Dimension.md) | | [optional] -**length** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension**](Dimension.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension**](Dimension.md) | | [optional] -**width** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension**](Dimension.md) | | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Error.md b/docs/Model/CatalogItemsV20220401/Error.md deleted file mode 100644 index c1de2b010..000000000 --- a/docs/Model/CatalogItemsV20220401/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ErrorList.md b/docs/Model/CatalogItemsV20220401/ErrorList.md deleted file mode 100644 index f63a0b436..000000000 --- a/docs/Model/CatalogItemsV20220401/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Error[]**](Error.md) | | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Item.md b/docs/Model/CatalogItemsV20220401/Item.md deleted file mode 100644 index f7edd72cc..000000000 --- a/docs/Model/CatalogItemsV20220401/Item.md +++ /dev/null @@ -1,18 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. | -**attributes** | **object** | A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemDimensionsByMarketplace[]**](ItemDimensionsByMarketplace.md) | Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace. | [optional] -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifiersByMarketplace[]**](ItemIdentifiersByMarketplace.md) | Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. | [optional] -**images** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemImagesByMarketplace[]**](ItemImagesByMarketplace.md) | Images for an item in the Amazon catalog. | [optional] -**product_types** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemProductTypeByMarketplace[]**](ItemProductTypeByMarketplace.md) | Product types associated with the Amazon catalog item. | [optional] -**relationships** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationshipsByMarketplace[]**](ItemRelationshipsByMarketplace.md) | Relationships by marketplace for an Amazon catalog item (for example, variations). | [optional] -**sales_ranks** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSalesRanksByMarketplace[]**](ItemSalesRanksByMarketplace.md) | Sales ranks of an Amazon catalog item. | [optional] -**summaries** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSummaryByMarketplace[]**](ItemSummaryByMarketplace.md) | Summary details of an Amazon catalog item. | [optional] -**vendor_details** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsByMarketplace[]**](ItemVendorDetailsByMarketplace.md) | Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemBrowseClassification.md b/docs/Model/CatalogItemsV20220401/ItemBrowseClassification.md deleted file mode 100644 index 015890d00..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemBrowseClassification.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemBrowseClassification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**display_name** | **string** | Display name for the classification. | -**classification_id** | **string** | Identifier of the classification (browse node identifier). | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemClassificationSalesRank.md b/docs/Model/CatalogItemsV20220401/ItemClassificationSalesRank.md deleted file mode 100644 index 3482bae5f..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemClassificationSalesRank.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemClassificationSalesRank - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**classification_id** | **string** | Identifier of the classification associated with the sales rank. | -**title** | **string** | Title, or name, of the sales rank. | -**link** | **string** | Corresponding Amazon retail website link, or URL, for the sales rank. | [optional] -**rank** | **int** | Sales rank value. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemContributor.md b/docs/Model/CatalogItemsV20220401/ItemContributor.md deleted file mode 100644 index 87b2b94a5..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemContributor.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemContributor - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**role** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributorRole**](ItemContributorRole.md) | | -**value** | **string** | Name of the contributor, such as Jane Austen. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemContributorRole.md b/docs/Model/CatalogItemsV20220401/ItemContributorRole.md deleted file mode 100644 index 33bdde5d1..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemContributorRole.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemContributorRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**display_name** | **string** | Display name of the role in the requested locale, such as Author or Actor. | [optional] -**value** | **string** | Role value for the Amazon catalog item, such as author or actor. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.md deleted file mode 100644 index dcc29a0f7..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemDimensionsByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**item** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions**](Dimensions.md) | | [optional] -**package** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions**](Dimensions.md) | | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.md b/docs/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.md deleted file mode 100644 index a74902379..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemDisplayGroupSalesRank - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**website_display_group** | **string** | Name of the website display group associated with the sales rank | -**title** | **string** | Title, or name, of the sales rank. | -**link** | **string** | Corresponding Amazon retail website link, or URL, for the sales rank. | [optional] -**rank** | **int** | Sales rank value. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemIdentifier.md b/docs/Model/CatalogItemsV20220401/ItemIdentifier.md deleted file mode 100644 index 269f082fd..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemIdentifier.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifier_type** | **string** | Type of identifier, such as UPC, EAN, or ISBN. | -**identifier** | **string** | Identifier. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.md deleted file mode 100644 index 8d0c65ffd..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemIdentifiersByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**identifiers** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifier[]**](ItemIdentifier.md) | Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemImage.md b/docs/Model/CatalogItemsV20220401/ItemImage.md deleted file mode 100644 index a0f82f183..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemImage.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**variant** | **string** | Variant of the image, such as `MAIN` or `PT01`. | -**link** | **string** | Link, or URL, for the image. | -**height** | **int** | Height of the image in pixels. | -**width** | **int** | Width of the image in pixels. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemImagesByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemImagesByMarketplace.md deleted file mode 100644 index b6824c7fe..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemImagesByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemImagesByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**images** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemImage[]**](ItemImage.md) | Images for an item in the Amazon catalog for the indicated Amazon marketplace. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.md deleted file mode 100644 index 83fd18288..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemProductTypeByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | [optional] -**product_type** | **string** | Name of the product type associated with the Amazon catalog item. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemRelationship.md b/docs/Model/CatalogItemsV20220401/ItemRelationship.md deleted file mode 100644 index 221d44d9f..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemRelationship.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**child_asins** | **string[]** | Identifiers (ASINs) of the related items that are children of this item. | [optional] -**parent_asins** | **string[]** | Identifiers (ASINs) of the related items that are parents of this item. | [optional] -**variation_theme** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVariationTheme**](ItemVariationTheme.md) | | [optional] -**type** | **string** | Type of relationship. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.md deleted file mode 100644 index 42f0930c4..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemRelationshipsByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**relationships** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationship[]**](ItemRelationship.md) | Relationships for the item. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.md deleted file mode 100644 index b4748a246..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemSalesRanksByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**classification_ranks** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemClassificationSalesRank[]**](ItemClassificationSalesRank.md) | Sales ranks of an Amazon catalog item for an Amazon marketplace by classification. | [optional] -**display_group_ranks** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemDisplayGroupSalesRank[]**](ItemDisplayGroupSalesRank.md) | Sales ranks of an Amazon catalog item for an Amazon marketplace by website display group. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemSearchResults.md b/docs/Model/CatalogItemsV20220401/ItemSearchResults.md deleted file mode 100644 index 15ef16e11..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemSearchResults.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemSearchResults - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_results** | **int** | For `identifiers`-based searches, the total number of Amazon catalog items found. For `keywords`-based searches, the estimated total number of Amazon catalog items matched by the search query (only results up to the page count limit will be returned per request regardless of the number found).

Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. | -**pagination** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Pagination**](Pagination.md) | | -**refinements** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Refinements**](Refinements.md) | | -**items** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\Item[]**](Item.md) | A list of items from the Amazon catalog. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.md deleted file mode 100644 index dcec38d53..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.md +++ /dev/null @@ -1,28 +0,0 @@ -## ItemSummaryByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**adult_product** | **bool** | Identifies an Amazon catalog item is intended for an adult audience or is sexual in nature. | [optional] -**autographed** | **bool** | Identifies an Amazon catalog item is autographed by a player or celebrity. | [optional] -**brand** | **string** | Name of the brand associated with an Amazon catalog item. | [optional] -**browse_classification** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemBrowseClassification**](ItemBrowseClassification.md) | | [optional] -**color** | **string** | Name of the color associated with an Amazon catalog item. | [optional] -**contributors** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributor[]**](ItemContributor.md) | Individual contributors to the creation of an item, such as the authors or actors. | [optional] -**item_classification** | **string** | Classification type associated with the Amazon catalog item. | [optional] -**item_name** | **string** | Name, or title, associated with an Amazon catalog item. | [optional] -**manufacturer** | **string** | Name of the manufacturer associated with an Amazon catalog item. | [optional] -**memorabilia** | **bool** | Identifies an Amazon catalog item is memorabilia valued for its connection with historical events, culture, or entertainment. | [optional] -**model_number** | **string** | Model number associated with an Amazon catalog item. | [optional] -**package_quantity** | **int** | Quantity of an Amazon catalog item in one package. | [optional] -**part_number** | **string** | Part number associated with an Amazon catalog item. | [optional] -**release_date** | **string** | First date on which an Amazon catalog item is shippable to customers. | [optional] -**size** | **string** | Name of the size associated with an Amazon catalog item. | [optional] -**style** | **string** | Name of the style associated with an Amazon catalog item. | [optional] -**trade_in_eligible** | **bool** | Identifies an Amazon catalog item is eligible for trade-in. | [optional] -**website_display_group** | **string** | Identifier of the website display group associated with an Amazon catalog item. | [optional] -**website_display_group_name** | **string** | Display name of the website display group associated with an Amazon catalog item. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemVariationTheme.md b/docs/Model/CatalogItemsV20220401/ItemVariationTheme.md deleted file mode 100644 index b94b01243..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemVariationTheme.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemVariationTheme - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | **string[]** | Names of the Amazon catalog item attributes associated with the variation theme. | [optional] -**theme** | **string** | Variation theme indicating the combination of Amazon item catalog attributes that define the variation family. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.md b/docs/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.md deleted file mode 100644 index 7ffdfcb26..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.md +++ /dev/null @@ -1,16 +0,0 @@ -## ItemVendorDetailsByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**brand_code** | **string** | Brand code associated with an Amazon catalog item. | [optional] -**manufacturer_code** | **string** | Manufacturer code associated with an Amazon catalog item. | [optional] -**manufacturer_code_parent** | **string** | Parent vendor code of the manufacturer code. | [optional] -**product_category** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory**](ItemVendorDetailsCategory.md) | | [optional] -**product_group** | **string** | Product group associated with an Amazon catalog item. | [optional] -**product_subcategory** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory**](ItemVendorDetailsCategory.md) | | [optional] -**replenishment_category** | **string** | Replenishment category associated with an Amazon catalog item. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.md b/docs/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.md deleted file mode 100644 index 243e49fc6..000000000 --- a/docs/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemVendorDetailsCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**display_name** | **string** | Display name of the product category or subcategory | [optional] -**value** | **string** | Value (code) of the product category or subcategory. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Pagination.md b/docs/Model/CatalogItemsV20220401/Pagination.md deleted file mode 100644 index c62e2186c..000000000 --- a/docs/Model/CatalogItemsV20220401/Pagination.md +++ /dev/null @@ -1,10 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A token that can be used to fetch the next page. | [optional] -**previous_token** | **string** | A token that can be used to fetch the previous page. | [optional] - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/CatalogItemsV20220401/Refinements.md b/docs/Model/CatalogItemsV20220401/Refinements.md deleted file mode 100644 index a77139aaf..000000000 --- a/docs/Model/CatalogItemsV20220401/Refinements.md +++ /dev/null @@ -1,10 +0,0 @@ -## Refinements - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**brands** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\BrandRefinement[]**](BrandRefinement.md) | Brand search refinements. | -**classifications** | [**\SellingPartnerApi\Model\CatalogItemsV20220401\ClassificationRefinement[]**](ClassificationRefinement.md) | Classification search refinements. | - -[[CatalogItemsV20220401 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Code.md b/docs/Model/EasyShipV20220323/Code.md deleted file mode 100644 index 0501a6edf..000000000 --- a/docs/Model/EasyShipV20220323/Code.md +++ /dev/null @@ -1,8 +0,0 @@ -## Code - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/CreateScheduledPackageRequest.md b/docs/Model/EasyShipV20220323/CreateScheduledPackageRequest.md deleted file mode 100644 index 6f68b7a77..000000000 --- a/docs/Model/EasyShipV20220323/CreateScheduledPackageRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateScheduledPackageRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**marketplace_id** | **string** | A string of up to 255 characters. | -**package_details** | [**\SellingPartnerApi\Model\EasyShipV20220323\PackageDetails**](PackageDetails.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/CreateScheduledPackagesRequest.md b/docs/Model/EasyShipV20220323/CreateScheduledPackagesRequest.md deleted file mode 100644 index e93cf05fd..000000000 --- a/docs/Model/EasyShipV20220323/CreateScheduledPackagesRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateScheduledPackagesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A string of up to 255 characters. | -**order_schedule_details_list** | [**\SellingPartnerApi\Model\EasyShipV20220323\OrderScheduleDetails[]**](OrderScheduleDetails.md) | An array allowing users to specify orders to be scheduled. | -**label_format** | [**\SellingPartnerApi\Model\EasyShipV20220323\LabelFormat**](LabelFormat.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/CreateScheduledPackagesResponse.md b/docs/Model/EasyShipV20220323/CreateScheduledPackagesResponse.md deleted file mode 100644 index a605e81ef..000000000 --- a/docs/Model/EasyShipV20220323/CreateScheduledPackagesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateScheduledPackagesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduled_packages** | [**\SellingPartnerApi\Model\EasyShipV20220323\Package[]**](Package.md) | A list of packages. Refer to the `Package` object. | [optional] -**rejected_orders** | [**\SellingPartnerApi\Model\EasyShipV20220323\RejectedOrder[]**](RejectedOrder.md) | A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error. | [optional] -**printable_documents_url** | **string** | A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Dimensions.md b/docs/Model/EasyShipV20220323/Dimensions.md deleted file mode 100644 index be0765550..000000000 --- a/docs/Model/EasyShipV20220323/Dimensions.md +++ /dev/null @@ -1,13 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **float** | The numerical value of the specified dimension. | [optional] -**width** | **float** | The numerical value of the specified dimension. | [optional] -**height** | **float** | The numerical value of the specified dimension. | [optional] -**unit** | [**\SellingPartnerApi\Model\EasyShipV20220323\UnitOfLength**](UnitOfLength.md) | | [optional] -**identifier** | **string** | A string of up to 255 characters. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Error.md b/docs/Model/EasyShipV20220323/Error.md deleted file mode 100644 index 10252fa01..000000000 --- a/docs/Model/EasyShipV20220323/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/ErrorList.md b/docs/Model/EasyShipV20220323/ErrorList.md deleted file mode 100644 index 499dd15a9..000000000 --- a/docs/Model/EasyShipV20220323/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\EasyShipV20220323\Error[]**](Error.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/HandoverMethod.md b/docs/Model/EasyShipV20220323/HandoverMethod.md deleted file mode 100644 index a1d9b9f24..000000000 --- a/docs/Model/EasyShipV20220323/HandoverMethod.md +++ /dev/null @@ -1,8 +0,0 @@ -## HandoverMethod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/InvoiceData.md b/docs/Model/EasyShipV20220323/InvoiceData.md deleted file mode 100644 index 0b0e96982..000000000 --- a/docs/Model/EasyShipV20220323/InvoiceData.md +++ /dev/null @@ -1,10 +0,0 @@ -## InvoiceData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_number** | **string** | A string of up to 255 characters. | -**invoice_date** | **string** | A datetime value in ISO 8601 format. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Item.md b/docs/Model/EasyShipV20220323/Item.md deleted file mode 100644 index 4e06cb427..000000000 --- a/docs/Model/EasyShipV20220323/Item.md +++ /dev/null @@ -1,10 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_item_id** | **string** | The Amazon-defined order item identifier. | [optional] -**order_item_serial_numbers** | **string[]** | A list of serial numbers for the items associated with the `OrderItemId` value. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/LabelFormat.md b/docs/Model/EasyShipV20220323/LabelFormat.md deleted file mode 100644 index 3acb874a0..000000000 --- a/docs/Model/EasyShipV20220323/LabelFormat.md +++ /dev/null @@ -1,8 +0,0 @@ -## LabelFormat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/ListHandoverSlotsRequest.md b/docs/Model/EasyShipV20220323/ListHandoverSlotsRequest.md deleted file mode 100644 index 289324c5e..000000000 --- a/docs/Model/EasyShipV20220323/ListHandoverSlotsRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -## ListHandoverSlotsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A string of up to 255 characters. | -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**package_dimensions** | [**\SellingPartnerApi\Model\EasyShipV20220323\Dimensions**](Dimensions.md) | | -**package_weight** | [**\SellingPartnerApi\Model\EasyShipV20220323\Weight**](Weight.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/ListHandoverSlotsResponse.md b/docs/Model/EasyShipV20220323/ListHandoverSlotsResponse.md deleted file mode 100644 index 739665d6c..000000000 --- a/docs/Model/EasyShipV20220323/ListHandoverSlotsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListHandoverSlotsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**time_slots** | [**\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot[]**](TimeSlot.md) | A list of time slots. | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/OrderScheduleDetails.md b/docs/Model/EasyShipV20220323/OrderScheduleDetails.md deleted file mode 100644 index 0e78520a1..000000000 --- a/docs/Model/EasyShipV20220323/OrderScheduleDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderScheduleDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**package_details** | [**\SellingPartnerApi\Model\EasyShipV20220323\PackageDetails**](PackageDetails.md) | | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Package.md b/docs/Model/EasyShipV20220323/Package.md deleted file mode 100644 index bb4f18341..000000000 --- a/docs/Model/EasyShipV20220323/Package.md +++ /dev/null @@ -1,17 +0,0 @@ -## Package - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduled_package_id** | [**\SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId**](ScheduledPackageId.md) | | -**package_dimensions** | [**\SellingPartnerApi\Model\EasyShipV20220323\Dimensions**](Dimensions.md) | | -**package_weight** | [**\SellingPartnerApi\Model\EasyShipV20220323\Weight**](Weight.md) | | -**package_items** | [**\SellingPartnerApi\Model\EasyShipV20220323\Item[]**](Item.md) | A list of items contained in the package. | [optional] -**package_time_slot** | [**\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot**](TimeSlot.md) | | -**package_identifier** | **string** | Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. | [optional] -**invoice** | [**\SellingPartnerApi\Model\EasyShipV20220323\InvoiceData**](InvoiceData.md) | | [optional] -**package_status** | [**\SellingPartnerApi\Model\EasyShipV20220323\PackageStatus**](PackageStatus.md) | | [optional] -**tracking_details** | [**\SellingPartnerApi\Model\EasyShipV20220323\TrackingDetails**](TrackingDetails.md) | | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/PackageDetails.md b/docs/Model/EasyShipV20220323/PackageDetails.md deleted file mode 100644 index 08a4f2357..000000000 --- a/docs/Model/EasyShipV20220323/PackageDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackageDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_items** | [**\SellingPartnerApi\Model\EasyShipV20220323\Item[]**](Item.md) | A list of items contained in the package. | [optional] -**package_time_slot** | [**\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot**](TimeSlot.md) | | -**package_identifier** | **string** | Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/PackageStatus.md b/docs/Model/EasyShipV20220323/PackageStatus.md deleted file mode 100644 index fb97c9fc1..000000000 --- a/docs/Model/EasyShipV20220323/PackageStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## PackageStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Packages.md b/docs/Model/EasyShipV20220323/Packages.md deleted file mode 100644 index 248b977f2..000000000 --- a/docs/Model/EasyShipV20220323/Packages.md +++ /dev/null @@ -1,9 +0,0 @@ -## Packages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**packages** | [**\SellingPartnerApi\Model\EasyShipV20220323\Package[]**](Package.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/RejectedOrder.md b/docs/Model/EasyShipV20220323/RejectedOrder.md deleted file mode 100644 index 4289a6bb3..000000000 --- a/docs/Model/EasyShipV20220323/RejectedOrder.md +++ /dev/null @@ -1,10 +0,0 @@ -## RejectedOrder - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**error** | [**\SellingPartnerApi\Model\EasyShipV20220323\Error**](Error.md) | | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/ScheduledPackageId.md b/docs/Model/EasyShipV20220323/ScheduledPackageId.md deleted file mode 100644 index 19dfce355..000000000 --- a/docs/Model/EasyShipV20220323/ScheduledPackageId.md +++ /dev/null @@ -1,10 +0,0 @@ -## ScheduledPackageId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. | -**package_id** | **string** | An Amazon-defined identifier for the scheduled package. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/TimeSlot.md b/docs/Model/EasyShipV20220323/TimeSlot.md deleted file mode 100644 index c994ee0d6..000000000 --- a/docs/Model/EasyShipV20220323/TimeSlot.md +++ /dev/null @@ -1,12 +0,0 @@ -## TimeSlot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**slot_id** | **string** | A string of up to 255 characters. | -**start_time** | **string** | A datetime value in ISO 8601 format. | [optional] -**end_time** | **string** | A datetime value in ISO 8601 format. | [optional] -**handover_method** | [**\SellingPartnerApi\Model\EasyShipV20220323\HandoverMethod**](HandoverMethod.md) | | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/TrackingDetails.md b/docs/Model/EasyShipV20220323/TrackingDetails.md deleted file mode 100644 index dc6de79ad..000000000 --- a/docs/Model/EasyShipV20220323/TrackingDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## TrackingDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_id** | **string** | A string of up to 255 characters. | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/UnitOfLength.md b/docs/Model/EasyShipV20220323/UnitOfLength.md deleted file mode 100644 index 5c980889c..000000000 --- a/docs/Model/EasyShipV20220323/UnitOfLength.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfLength - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/UnitOfWeight.md b/docs/Model/EasyShipV20220323/UnitOfWeight.md deleted file mode 100644 index 3cdd06cba..000000000 --- a/docs/Model/EasyShipV20220323/UnitOfWeight.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfWeight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/UpdatePackageDetails.md b/docs/Model/EasyShipV20220323/UpdatePackageDetails.md deleted file mode 100644 index 00fe1482b..000000000 --- a/docs/Model/EasyShipV20220323/UpdatePackageDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## UpdatePackageDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduled_package_id** | [**\SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId**](ScheduledPackageId.md) | | -**package_time_slot** | [**\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot**](TimeSlot.md) | | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.md b/docs/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.md deleted file mode 100644 index 1b6da2a31..000000000 --- a/docs/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## UpdateScheduledPackagesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A string of up to 255 characters. | -**update_package_details_list** | [**\SellingPartnerApi\Model\EasyShipV20220323\UpdatePackageDetails[]**](UpdatePackageDetails.md) | A list of package update details. | - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/EasyShipV20220323/Weight.md b/docs/Model/EasyShipV20220323/Weight.md deleted file mode 100644 index 48e9bff16..000000000 --- a/docs/Model/EasyShipV20220323/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **float** | The weight of the package. | [optional] -**unit** | [**\SellingPartnerApi\Model\EasyShipV20220323\UnitOfWeight**](UnitOfWeight.md) | | [optional] - -[[EasyShipV20220323 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundEligibilityV1/Error.md b/docs/Model/FbaInboundEligibilityV1/Error.md deleted file mode 100644 index 5d2c3b36a..000000000 --- a/docs/Model/FbaInboundEligibilityV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | [optional] -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[FbaInboundEligibilityV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.md b/docs/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.md deleted file mode 100644 index 284c375fa..000000000 --- a/docs/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetItemEligibilityPreviewResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundEligibilityV1\ItemEligibilityPreview**](ItemEligibilityPreview.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundEligibilityV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundEligibilityV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.md b/docs/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.md deleted file mode 100644 index e93e01167..000000000 --- a/docs/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.md +++ /dev/null @@ -1,13 +0,0 @@ -## ItemEligibilityPreview - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The ASIN for which eligibility was determined. | -**marketplace_id** | **string** | The marketplace for which eligibility was determined. | [optional] -**program** | **string** | The program for which eligibility was determined. | -**is_eligible_for_program** | **bool** | Indicates if the item is eligible for the program. | -**ineligibility_reason_list** | **string[]** | Potential Ineligibility Reason Codes. | [optional] - -[[FbaInboundEligibilityV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ASINInboundGuidance.md b/docs/Model/FbaInboundV0/ASINInboundGuidance.md deleted file mode 100644 index aa757f4c5..000000000 --- a/docs/Model/FbaInboundV0/ASINInboundGuidance.md +++ /dev/null @@ -1,11 +0,0 @@ -## ASINInboundGuidance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**inbound_guidance** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundGuidance**](InboundGuidance.md) | | -**guidance_reason_list** | [**\SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]**](GuidanceReason.md) | A list of inbound guidance reason information. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ASINPrepInstructions.md b/docs/Model/FbaInboundV0/ASINPrepInstructions.md deleted file mode 100644 index 4ce700602..000000000 --- a/docs/Model/FbaInboundV0/ASINPrepInstructions.md +++ /dev/null @@ -1,12 +0,0 @@ -## ASINPrepInstructions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**barcode_instruction** | [**\SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction**](BarcodeInstruction.md) | | [optional] -**prep_guidance** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepGuidance**](PrepGuidance.md) | | [optional] -**prep_instruction_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]**](PrepInstruction.md) | A list of preparation instructions to help with item sourcing decisions. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Address.md b/docs/Model/FbaInboundV0/Address.md deleted file mode 100644 index 83431537a..000000000 --- a/docs/Model/FbaInboundV0/Address.md +++ /dev/null @@ -1,20 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Name of the individual or business. | -**address_line1** | **string** | The street address information. | -**address_line2** | **string** | Additional street address information, if required. | [optional] -**district_or_county** | **string** | The district or county. | [optional] -**city** | **string** | The city. | -**state_or_province_code** | **string** | The state or province code. - -If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan. | -**country_code** | **string** | The country code in two-character ISO 3166-1 alpha-2 format. | -**postal_code** | **string** | The postal code. - -If postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/AmazonPrepFeesDetails.md b/docs/Model/FbaInboundV0/AmazonPrepFeesDetails.md deleted file mode 100644 index c06a6ff20..000000000 --- a/docs/Model/FbaInboundV0/AmazonPrepFeesDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## AmazonPrepFeesDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prep_instruction** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction**](PrepInstruction.md) | | [optional] -**fee_per_unit** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Amount.md b/docs/Model/FbaInboundV0/Amount.md deleted file mode 100644 index d266c9cd0..000000000 --- a/docs/Model/FbaInboundV0/Amount.md +++ /dev/null @@ -1,10 +0,0 @@ -## Amount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | [**\SellingPartnerApi\Model\FbaInboundV0\CurrencyCode**](CurrencyCode.md) | | -**value** | **double** | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/BarcodeInstruction.md b/docs/Model/FbaInboundV0/BarcodeInstruction.md deleted file mode 100644 index ed7e585fe..000000000 --- a/docs/Model/FbaInboundV0/BarcodeInstruction.md +++ /dev/null @@ -1,8 +0,0 @@ -## BarcodeInstruction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/BillOfLadingDownloadURL.md b/docs/Model/FbaInboundV0/BillOfLadingDownloadURL.md deleted file mode 100644 index dfd3b739e..000000000 --- a/docs/Model/FbaInboundV0/BillOfLadingDownloadURL.md +++ /dev/null @@ -1,9 +0,0 @@ -## BillOfLadingDownloadURL - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**download_url** | **string** | URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/BoxContentsFeeDetails.md b/docs/Model/FbaInboundV0/BoxContentsFeeDetails.md deleted file mode 100644 index a4c35ffb4..000000000 --- a/docs/Model/FbaInboundV0/BoxContentsFeeDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## BoxContentsFeeDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_units** | **int** | The item quantity. | [optional] -**fee_per_unit** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] -**total_fee** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/BoxContentsSource.md b/docs/Model/FbaInboundV0/BoxContentsSource.md deleted file mode 100644 index 4f30adc4d..000000000 --- a/docs/Model/FbaInboundV0/BoxContentsSource.md +++ /dev/null @@ -1,8 +0,0 @@ -## BoxContentsSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/CommonTransportResult.md b/docs/Model/FbaInboundV0/CommonTransportResult.md deleted file mode 100644 index 5a9a51153..000000000 --- a/docs/Model/FbaInboundV0/CommonTransportResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## CommonTransportResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transport_result** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportResult**](TransportResult.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Condition.md b/docs/Model/FbaInboundV0/Condition.md deleted file mode 100644 index a0f408585..000000000 --- a/docs/Model/FbaInboundV0/Condition.md +++ /dev/null @@ -1,8 +0,0 @@ -## Condition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ConfirmPreorderResponse.md b/docs/Model/FbaInboundV0/ConfirmPreorderResponse.md deleted file mode 100644 index 4dbfc13a6..000000000 --- a/docs/Model/FbaInboundV0/ConfirmPreorderResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ConfirmPreorderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResult**](ConfirmPreorderResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ConfirmPreorderResult.md b/docs/Model/FbaInboundV0/ConfirmPreorderResult.md deleted file mode 100644 index 60e89bd95..000000000 --- a/docs/Model/FbaInboundV0/ConfirmPreorderResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## ConfirmPreorderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**confirmed_need_by_date** | **string** | A date string in ISO 8601 format. | [optional] -**confirmed_fulfillable_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ConfirmTransportResponse.md b/docs/Model/FbaInboundV0/ConfirmTransportResponse.md deleted file mode 100644 index 6e9211c0d..000000000 --- a/docs/Model/FbaInboundV0/ConfirmTransportResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ConfirmTransportResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult**](CommonTransportResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Contact.md b/docs/Model/FbaInboundV0/Contact.md deleted file mode 100644 index c8f52d34e..000000000 --- a/docs/Model/FbaInboundV0/Contact.md +++ /dev/null @@ -1,12 +0,0 @@ -## Contact - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the contact person. | -**phone** | **string** | The phone number of the contact person. | -**email** | **string** | The email address of the contact person. | -**fax** | **string** | The fax number of the contact person. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.md b/docs/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.md deleted file mode 100644 index 2f2653cde..000000000 --- a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.md +++ /dev/null @@ -1,33 +0,0 @@ -## CreateInboundShipmentPlanRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_from_address** | [**\SellingPartnerApi\Model\FbaInboundV0\Address**](Address.md) | | -**label_prep_preference** | [**\SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference**](LabelPrepPreference.md) | | -**ship_to_country_code** | **string** | The two-character country code for the country where the inbound shipment is to be sent. - -Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. - - Values: - - ShipToCountryCode values for North America: - * CA - Canada - * MX - Mexico - * US - United States - -ShipToCountryCode values for MCI sellers in Europe: - * DE - Germany - * ES - Spain - * FR - France - * GB - United Kingdom - * IT - Italy - -Default: The country code for the seller's home marketplace. | [optional] -**ship_to_country_subdivision_code** | **string** | The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, \"IN-MH\". In full ISO 3166-2 format. - -Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. | [optional] -**inbound_shipment_plan_request_items** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanRequestItem[]**](InboundShipmentPlanRequestItem.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.md b/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.md deleted file mode 100644 index a42857cfa..000000000 --- a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateInboundShipmentPlanResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResult**](CreateInboundShipmentPlanResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResult.md b/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResult.md deleted file mode 100644 index 15a88c2f6..000000000 --- a/docs/Model/FbaInboundV0/CreateInboundShipmentPlanResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateInboundShipmentPlanResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inbound_shipment_plans** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlan[]**](InboundShipmentPlan.md) | A list of inbound shipment plan information | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/CurrencyCode.md b/docs/Model/FbaInboundV0/CurrencyCode.md deleted file mode 100644 index 6b2edc1eb..000000000 --- a/docs/Model/FbaInboundV0/CurrencyCode.md +++ /dev/null @@ -1,8 +0,0 @@ -## CurrencyCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Dimensions.md b/docs/Model/FbaInboundV0/Dimensions.md deleted file mode 100644 index 8aefaf4e2..000000000 --- a/docs/Model/FbaInboundV0/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **double** | | -**width** | **double** | | -**height** | **double** | | -**unit** | [**\SellingPartnerApi\Model\FbaInboundV0\UnitOfMeasurement**](UnitOfMeasurement.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Error.md b/docs/Model/FbaInboundV0/Error.md deleted file mode 100644 index fc36c6871..000000000 --- a/docs/Model/FbaInboundV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ErrorReason.md b/docs/Model/FbaInboundV0/ErrorReason.md deleted file mode 100644 index 628318f3c..000000000 --- a/docs/Model/FbaInboundV0/ErrorReason.md +++ /dev/null @@ -1,8 +0,0 @@ -## ErrorReason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/EstimateTransportResponse.md b/docs/Model/FbaInboundV0/EstimateTransportResponse.md deleted file mode 100644 index 9faf22273..000000000 --- a/docs/Model/FbaInboundV0/EstimateTransportResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## EstimateTransportResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult**](CommonTransportResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetBillOfLadingResponse.md b/docs/Model/FbaInboundV0/GetBillOfLadingResponse.md deleted file mode 100644 index 0cc98da22..000000000 --- a/docs/Model/FbaInboundV0/GetBillOfLadingResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetBillOfLadingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\BillOfLadingDownloadURL**](BillOfLadingDownloadURL.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetInboundGuidanceResponse.md b/docs/Model/FbaInboundV0/GetInboundGuidanceResponse.md deleted file mode 100644 index 9092854ae..000000000 --- a/docs/Model/FbaInboundV0/GetInboundGuidanceResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetInboundGuidanceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResult**](GetInboundGuidanceResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetInboundGuidanceResult.md b/docs/Model/FbaInboundV0/GetInboundGuidanceResult.md deleted file mode 100644 index f0f521330..000000000 --- a/docs/Model/FbaInboundV0/GetInboundGuidanceResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetInboundGuidanceResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku_inbound_guidance_list** | [**\SellingPartnerApi\Model\FbaInboundV0\SKUInboundGuidance[]**](SKUInboundGuidance.md) | A list of SKU inbound guidance information. | [optional] -**invalid_sku_list** | [**\SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]**](InvalidSKU.md) | A list of invalid SKU values and the reason they are invalid. | [optional] -**asin_inbound_guidance_list** | [**\SellingPartnerApi\Model\FbaInboundV0\ASINInboundGuidance[]**](ASINInboundGuidance.md) | A list of ASINs and their associated inbound guidance. | [optional] -**invalid_asin_list** | [**\SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]**](InvalidASIN.md) | A list of invalid ASIN values and the reasons they are invalid. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetLabelsResponse.md b/docs/Model/FbaInboundV0/GetLabelsResponse.md deleted file mode 100644 index ec84a4d48..000000000 --- a/docs/Model/FbaInboundV0/GetLabelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetLabelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\LabelDownloadURL**](LabelDownloadURL.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetPreorderInfoResponse.md b/docs/Model/FbaInboundV0/GetPreorderInfoResponse.md deleted file mode 100644 index 4c4f73349..000000000 --- a/docs/Model/FbaInboundV0/GetPreorderInfoResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPreorderInfoResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResult**](GetPreorderInfoResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetPreorderInfoResult.md b/docs/Model/FbaInboundV0/GetPreorderInfoResult.md deleted file mode 100644 index eaa26e135..000000000 --- a/docs/Model/FbaInboundV0/GetPreorderInfoResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetPreorderInfoResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_contains_preorderable_items** | **bool** | Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help. | [optional] -**shipment_confirmed_for_preorder** | **bool** | Indicates whether this shipment has been confirmed for pre-order. | [optional] -**need_by_date** | **string** | A date string in ISO 8601 format. | [optional] -**confirmed_fulfillable_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetPrepInstructionsResponse.md b/docs/Model/FbaInboundV0/GetPrepInstructionsResponse.md deleted file mode 100644 index 6b9950c19..000000000 --- a/docs/Model/FbaInboundV0/GetPrepInstructionsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPrepInstructionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResult**](GetPrepInstructionsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetPrepInstructionsResult.md b/docs/Model/FbaInboundV0/GetPrepInstructionsResult.md deleted file mode 100644 index 0648dc08e..000000000 --- a/docs/Model/FbaInboundV0/GetPrepInstructionsResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetPrepInstructionsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku_prep_instructions_list** | [**\SellingPartnerApi\Model\FbaInboundV0\SKUPrepInstructions[]**](SKUPrepInstructions.md) | A list of SKU labeling requirements and item preparation instructions. | [optional] -**invalid_sku_list** | [**\SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]**](InvalidSKU.md) | A list of invalid SKU values and the reason they are invalid. | [optional] -**asin_prep_instructions_list** | [**\SellingPartnerApi\Model\FbaInboundV0\ASINPrepInstructions[]**](ASINPrepInstructions.md) | A list of item preparation instructions. | [optional] -**invalid_asin_list** | [**\SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]**](InvalidASIN.md) | A list of invalid ASIN values and the reasons they are invalid. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetShipmentItemsResponse.md b/docs/Model/FbaInboundV0/GetShipmentItemsResponse.md deleted file mode 100644 index 51d2e2f79..000000000 --- a/docs/Model/FbaInboundV0/GetShipmentItemsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentItemsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResult**](GetShipmentItemsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetShipmentItemsResult.md b/docs/Model/FbaInboundV0/GetShipmentItemsResult.md deleted file mode 100644 index 5682b7042..000000000 --- a/docs/Model/FbaInboundV0/GetShipmentItemsResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentItemsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_data** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]**](InboundShipmentItem.md) | A list of inbound shipment item information. | [optional] -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetShipmentsResponse.md b/docs/Model/FbaInboundV0/GetShipmentsResponse.md deleted file mode 100644 index 15eaeba76..000000000 --- a/docs/Model/FbaInboundV0/GetShipmentsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResult**](GetShipmentsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetShipmentsResult.md b/docs/Model/FbaInboundV0/GetShipmentsResult.md deleted file mode 100644 index 52f49cf5c..000000000 --- a/docs/Model/FbaInboundV0/GetShipmentsResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_data** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentInfo[]**](InboundShipmentInfo.md) | A list of inbound shipment information. | [optional] -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetTransportDetailsResponse.md b/docs/Model/FbaInboundV0/GetTransportDetailsResponse.md deleted file mode 100644 index 5dd84f311..000000000 --- a/docs/Model/FbaInboundV0/GetTransportDetailsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetTransportDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResult**](GetTransportDetailsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GetTransportDetailsResult.md b/docs/Model/FbaInboundV0/GetTransportDetailsResult.md deleted file mode 100644 index d8d1f6492..000000000 --- a/docs/Model/FbaInboundV0/GetTransportDetailsResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetTransportDetailsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transport_content** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportContent**](TransportContent.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/GuidanceReason.md b/docs/Model/FbaInboundV0/GuidanceReason.md deleted file mode 100644 index e24a65f94..000000000 --- a/docs/Model/FbaInboundV0/GuidanceReason.md +++ /dev/null @@ -1,8 +0,0 @@ -## GuidanceReason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundGuidance.md b/docs/Model/FbaInboundV0/InboundGuidance.md deleted file mode 100644 index a9bf042fc..000000000 --- a/docs/Model/FbaInboundV0/InboundGuidance.md +++ /dev/null @@ -1,8 +0,0 @@ -## InboundGuidance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentHeader.md b/docs/Model/FbaInboundV0/InboundShipmentHeader.md deleted file mode 100644 index 941429f78..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentHeader.md +++ /dev/null @@ -1,23 +0,0 @@ -## InboundShipmentHeader - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_name** | **string** | The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created. | -**ship_from_address** | [**\SellingPartnerApi\Model\FbaInboundV0\Address**](Address.md) | | -**destination_fulfillment_center_id** | **string** | The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation. | -**are_cases_required** | **bool** | Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes. - -Possible values: - -true - All boxes in the shipment must be case packed. - -false - All boxes in the shipment must be individually packed. - -Note: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error. | [optional] -**shipment_status** | [**\SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus**](ShipmentStatus.md) | | -**label_prep_preference** | [**\SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference**](LabelPrepPreference.md) | | -**intended_box_contents_source** | [**\SellingPartnerApi\Model\FbaInboundV0\IntendedBoxContentsSource**](IntendedBoxContentsSource.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentInfo.md b/docs/Model/FbaInboundV0/InboundShipmentInfo.md deleted file mode 100644 index 319683d52..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -## InboundShipmentInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The shipment identifier submitted in the request. | [optional] -**shipment_name** | **string** | The name for the inbound shipment. | [optional] -**ship_from_address** | [**\SellingPartnerApi\Model\FbaInboundV0\Address**](Address.md) | | -**destination_fulfillment_center_id** | **string** | An Amazon fulfillment center identifier created by Amazon. | [optional] -**shipment_status** | [**\SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus**](ShipmentStatus.md) | | [optional] -**label_prep_type** | [**\SellingPartnerApi\Model\FbaInboundV0\LabelPrepType**](LabelPrepType.md) | | [optional] -**are_cases_required** | **bool** | Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed. | -**confirmed_need_by_date** | **string** | A date string in ISO 8601 format. | [optional] -**box_contents_source** | [**\SellingPartnerApi\Model\FbaInboundV0\BoxContentsSource**](BoxContentsSource.md) | | [optional] -**estimated_box_contents_fee** | [**\SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails**](BoxContentsFeeDetails.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentItem.md b/docs/Model/FbaInboundV0/InboundShipmentItem.md deleted file mode 100644 index 525bda13d..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentItem.md +++ /dev/null @@ -1,16 +0,0 @@ -## InboundShipmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | A shipment identifier originally returned by the createInboundShipmentPlan operation. | [optional] -**seller_sku** | **string** | The seller SKU of the item. | -**fulfillment_network_sku** | **string** | Amazon's fulfillment network SKU of the item. | [optional] -**quantity_shipped** | **int** | The item quantity. | -**quantity_received** | **int** | The item quantity. | [optional] -**quantity_in_case** | **int** | The item quantity. | [optional] -**release_date** | **string** | A date string in ISO 8601 format. | [optional] -**prep_details_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]**](PrepDetails.md) | A list of preparation instructions and who is responsible for that preparation. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentPlan.md b/docs/Model/FbaInboundV0/InboundShipmentPlan.md deleted file mode 100644 index f7e4aa58b..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentPlan.md +++ /dev/null @@ -1,14 +0,0 @@ -## InboundShipmentPlan - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | A shipment identifier originally returned by the createInboundShipmentPlan operation. | -**destination_fulfillment_center_id** | **string** | An Amazon fulfillment center identifier created by Amazon. | -**ship_to_address** | [**\SellingPartnerApi\Model\FbaInboundV0\Address**](Address.md) | | -**label_prep_type** | [**\SellingPartnerApi\Model\FbaInboundV0\LabelPrepType**](LabelPrepType.md) | | -**items** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanItem[]**](InboundShipmentPlanItem.md) | A list of inbound shipment plan item information. | -**estimated_box_contents_fee** | [**\SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails**](BoxContentsFeeDetails.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentPlanItem.md b/docs/Model/FbaInboundV0/InboundShipmentPlanItem.md deleted file mode 100644 index 26017913c..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentPlanItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## InboundShipmentPlanItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**fulfillment_network_sku** | **string** | Amazon's fulfillment network SKU of the item. | -**quantity** | **int** | The item quantity. | -**prep_details_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]**](PrepDetails.md) | A list of preparation instructions and who is responsible for that preparation. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentPlanRequestItem.md b/docs/Model/FbaInboundV0/InboundShipmentPlanRequestItem.md deleted file mode 100644 index 01749291f..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentPlanRequestItem.md +++ /dev/null @@ -1,14 +0,0 @@ -## InboundShipmentPlanRequestItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**condition** | [**\SellingPartnerApi\Model\FbaInboundV0\Condition**](Condition.md) | | -**quantity** | **int** | The item quantity. | -**quantity_in_case** | **int** | The item quantity. | [optional] -**prep_details_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]**](PrepDetails.md) | A list of preparation instructions and who is responsible for that preparation. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentRequest.md b/docs/Model/FbaInboundV0/InboundShipmentRequest.md deleted file mode 100644 index 319238575..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## InboundShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inbound_shipment_header** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentHeader**](InboundShipmentHeader.md) | | -**inbound_shipment_items** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]**](InboundShipmentItem.md) | A list of inbound shipment item information. | -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace where the product would be stored. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentResponse.md b/docs/Model/FbaInboundV0/InboundShipmentResponse.md deleted file mode 100644 index 180461711..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## InboundShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResult**](InboundShipmentResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InboundShipmentResult.md b/docs/Model/FbaInboundV0/InboundShipmentResult.md deleted file mode 100644 index 8fa3d3e81..000000000 --- a/docs/Model/FbaInboundV0/InboundShipmentResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## InboundShipmentResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The shipment identifier submitted in the request. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/IntendedBoxContentsSource.md b/docs/Model/FbaInboundV0/IntendedBoxContentsSource.md deleted file mode 100644 index a4c2bcc81..000000000 --- a/docs/Model/FbaInboundV0/IntendedBoxContentsSource.md +++ /dev/null @@ -1,8 +0,0 @@ -## IntendedBoxContentsSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InvalidASIN.md b/docs/Model/FbaInboundV0/InvalidASIN.md deleted file mode 100644 index 49f150c71..000000000 --- a/docs/Model/FbaInboundV0/InvalidASIN.md +++ /dev/null @@ -1,10 +0,0 @@ -## InvalidASIN - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**error_reason** | [**\SellingPartnerApi\Model\FbaInboundV0\ErrorReason**](ErrorReason.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/InvalidSKU.md b/docs/Model/FbaInboundV0/InvalidSKU.md deleted file mode 100644 index 779419fc9..000000000 --- a/docs/Model/FbaInboundV0/InvalidSKU.md +++ /dev/null @@ -1,10 +0,0 @@ -## InvalidSKU - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | [optional] -**error_reason** | [**\SellingPartnerApi\Model\FbaInboundV0\ErrorReason**](ErrorReason.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/LabelDownloadURL.md b/docs/Model/FbaInboundV0/LabelDownloadURL.md deleted file mode 100644 index cda5e4635..000000000 --- a/docs/Model/FbaInboundV0/LabelDownloadURL.md +++ /dev/null @@ -1,9 +0,0 @@ -## LabelDownloadURL - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**download_url** | **string** | URL to download the label for the package. Note: The URL will only be valid for 15 seconds | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/LabelPrepPreference.md b/docs/Model/FbaInboundV0/LabelPrepPreference.md deleted file mode 100644 index 515641258..000000000 --- a/docs/Model/FbaInboundV0/LabelPrepPreference.md +++ /dev/null @@ -1,8 +0,0 @@ -## LabelPrepPreference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/LabelPrepType.md b/docs/Model/FbaInboundV0/LabelPrepType.md deleted file mode 100644 index e844d73ff..000000000 --- a/docs/Model/FbaInboundV0/LabelPrepType.md +++ /dev/null @@ -1,8 +0,0 @@ -## LabelPrepType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredLtlDataInput.md b/docs/Model/FbaInboundV0/NonPartneredLtlDataInput.md deleted file mode 100644 index 8e57a5352..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredLtlDataInput.md +++ /dev/null @@ -1,10 +0,0 @@ -## NonPartneredLtlDataInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The carrier that you are using for the inbound shipment. | -**pro_number** | **string** | The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredLtlDataOutput.md b/docs/Model/FbaInboundV0/NonPartneredLtlDataOutput.md deleted file mode 100644 index 195364609..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredLtlDataOutput.md +++ /dev/null @@ -1,10 +0,0 @@ -## NonPartneredLtlDataOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The carrier that you are using for the inbound shipment. | -**pro_number** | **string** | The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.md b/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.md deleted file mode 100644 index ccc15d76a..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.md +++ /dev/null @@ -1,10 +0,0 @@ -## NonPartneredSmallParcelDataInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The carrier that you are using for the inbound shipment. | -**package_list** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageInput[]**](NonPartneredSmallParcelPackageInput.md) | A list of package tracking information. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.md b/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.md deleted file mode 100644 index acfe4f4ec..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.md +++ /dev/null @@ -1,9 +0,0 @@ -## NonPartneredSmallParcelDataOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_list** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageOutput[]**](NonPartneredSmallParcelPackageOutput.md) | A list of packages, including carrier, tracking number, and status information for each package. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.md b/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.md deleted file mode 100644 index 2432fce0c..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.md +++ /dev/null @@ -1,9 +0,0 @@ -## NonPartneredSmallParcelPackageInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_id** | **string** | The tracking number of the package, provided by the carrier. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.md b/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.md deleted file mode 100644 index 4a45313da..000000000 --- a/docs/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.md +++ /dev/null @@ -1,11 +0,0 @@ -## NonPartneredSmallParcelPackageOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The carrier that you are using for the inbound shipment. | -**tracking_id** | **string** | The tracking number of the package, provided by the carrier. | -**package_status** | [**\SellingPartnerApi\Model\FbaInboundV0\PackageStatus**](PackageStatus.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PackageStatus.md b/docs/Model/FbaInboundV0/PackageStatus.md deleted file mode 100644 index fcad71868..000000000 --- a/docs/Model/FbaInboundV0/PackageStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## PackageStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Pallet.md b/docs/Model/FbaInboundV0/Pallet.md deleted file mode 100644 index 42e02c8cc..000000000 --- a/docs/Model/FbaInboundV0/Pallet.md +++ /dev/null @@ -1,11 +0,0 @@ -## Pallet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensions** | [**\SellingPartnerApi\Model\FbaInboundV0\Dimensions**](Dimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\FbaInboundV0\Weight**](Weight.md) | | [optional] -**is_stacked** | **bool** | Indicates whether pallets will be stacked when carrier arrives for pick-up. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredEstimate.md b/docs/Model/FbaInboundV0/PartneredEstimate.md deleted file mode 100644 index 23ee93cc5..000000000 --- a/docs/Model/FbaInboundV0/PartneredEstimate.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartneredEstimate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | -**confirm_deadline** | **string** | A datetime string in ISO 8601 format | [optional] -**void_deadline** | **string** | A datetime string in ISO 8601 format | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredLtlDataInput.md b/docs/Model/FbaInboundV0/PartneredLtlDataInput.md deleted file mode 100644 index 9767bbd7a..000000000 --- a/docs/Model/FbaInboundV0/PartneredLtlDataInput.md +++ /dev/null @@ -1,15 +0,0 @@ -## PartneredLtlDataInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contact** | [**\SellingPartnerApi\Model\FbaInboundV0\Contact**](Contact.md) | | [optional] -**box_count** | **int** | | [optional] -**seller_freight_class** | **string** | The freight class of the shipment. For information about determining the freight class, contact the carrier. | [optional] -**freight_ready_date** | **string** | A date string in ISO 8601 format. | [optional] -**pallet_list** | [**\SellingPartnerApi\Model\FbaInboundV0\Pallet[]**](Pallet.md) | A list of pallet information. | [optional] -**total_weight** | [**\SellingPartnerApi\Model\FbaInboundV0\Weight**](Weight.md) | | [optional] -**seller_declared_value** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredLtlDataOutput.md b/docs/Model/FbaInboundV0/PartneredLtlDataOutput.md deleted file mode 100644 index 7416a243a..000000000 --- a/docs/Model/FbaInboundV0/PartneredLtlDataOutput.md +++ /dev/null @@ -1,23 +0,0 @@ -## PartneredLtlDataOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contact** | [**\SellingPartnerApi\Model\FbaInboundV0\Contact**](Contact.md) | | -**box_count** | **int** | | -**seller_freight_class** | **string** | The freight class of the shipment. For information about determining the freight class, contact the carrier. | [optional] -**freight_ready_date** | **string** | A date string in ISO 8601 format. | -**pallet_list** | [**\SellingPartnerApi\Model\FbaInboundV0\Pallet[]**](Pallet.md) | A list of pallet information. | -**total_weight** | [**\SellingPartnerApi\Model\FbaInboundV0\Weight**](Weight.md) | | -**seller_declared_value** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] -**amazon_calculated_value** | [**\SellingPartnerApi\Model\FbaInboundV0\Amount**](Amount.md) | | [optional] -**preview_pickup_date** | **string** | A date string in ISO 8601 format. | -**preview_delivery_date** | **string** | A date string in ISO 8601 format. | -**preview_freight_class** | **string** | The freight class of the shipment. For information about determining the freight class, contact the carrier. | -**amazon_reference_id** | **string** | A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment. | -**is_bill_of_lading_available** | **bool** | Indicates whether the bill of lading for the shipment is available. | -**partnered_estimate** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate**](PartneredEstimate.md) | | [optional] -**carrier_name** | **string** | The carrier for the inbound shipment. | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredSmallParcelDataInput.md b/docs/Model/FbaInboundV0/PartneredSmallParcelDataInput.md deleted file mode 100644 index b5fc55429..000000000 --- a/docs/Model/FbaInboundV0/PartneredSmallParcelDataInput.md +++ /dev/null @@ -1,10 +0,0 @@ -## PartneredSmallParcelDataInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageInput[]**](PartneredSmallParcelPackageInput.md) | A list of dimensions and weight information for packages. | [optional] -**carrier_name** | **string** | The Amazon-partnered carrier to use for the inbound shipment. **`CarrierName`** values in France (FR), Italy (IT), Spain (ES), the United Kingdom (UK), and the United States (US): `UNITED_PARCEL_SERVICE_INC`.
**`CarrierName`** values in Germany (DE): `DHL_STANDARD`,`UNITED_PARCEL_SERVICE_INC`.
Default: `UNITED_PARCEL_SERVICE_INC`. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredSmallParcelDataOutput.md b/docs/Model/FbaInboundV0/PartneredSmallParcelDataOutput.md deleted file mode 100644 index e339b5247..000000000 --- a/docs/Model/FbaInboundV0/PartneredSmallParcelDataOutput.md +++ /dev/null @@ -1,10 +0,0 @@ -## PartneredSmallParcelDataOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageOutput[]**](PartneredSmallParcelPackageOutput.md) | A list of packages, including shipping information from the Amazon-partnered carrier. | -**partnered_estimate** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate**](PartneredEstimate.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredSmallParcelPackageInput.md b/docs/Model/FbaInboundV0/PartneredSmallParcelPackageInput.md deleted file mode 100644 index cbf35a9b5..000000000 --- a/docs/Model/FbaInboundV0/PartneredSmallParcelPackageInput.md +++ /dev/null @@ -1,10 +0,0 @@ -## PartneredSmallParcelPackageInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensions** | [**\SellingPartnerApi\Model\FbaInboundV0\Dimensions**](Dimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\FbaInboundV0\Weight**](Weight.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.md b/docs/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.md deleted file mode 100644 index 01a1e1451..000000000 --- a/docs/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.md +++ /dev/null @@ -1,13 +0,0 @@ -## PartneredSmallParcelPackageOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensions** | [**\SellingPartnerApi\Model\FbaInboundV0\Dimensions**](Dimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\FbaInboundV0\Weight**](Weight.md) | | -**carrier_name** | **string** | The carrier specified with a previous call to putTransportDetails. | -**tracking_id** | **string** | The tracking number of the package, provided by the carrier. | -**package_status** | [**\SellingPartnerApi\Model\FbaInboundV0\PackageStatus**](PackageStatus.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PrepDetails.md b/docs/Model/FbaInboundV0/PrepDetails.md deleted file mode 100644 index c32421bb5..000000000 --- a/docs/Model/FbaInboundV0/PrepDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## PrepDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prep_instruction** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction**](PrepInstruction.md) | | -**prep_owner** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepOwner**](PrepOwner.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PrepGuidance.md b/docs/Model/FbaInboundV0/PrepGuidance.md deleted file mode 100644 index 2c7bf99ee..000000000 --- a/docs/Model/FbaInboundV0/PrepGuidance.md +++ /dev/null @@ -1,8 +0,0 @@ -## PrepGuidance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PrepInstruction.md b/docs/Model/FbaInboundV0/PrepInstruction.md deleted file mode 100644 index 4117bd459..000000000 --- a/docs/Model/FbaInboundV0/PrepInstruction.md +++ /dev/null @@ -1,8 +0,0 @@ -## PrepInstruction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PrepOwner.md b/docs/Model/FbaInboundV0/PrepOwner.md deleted file mode 100644 index 5f1b06bfa..000000000 --- a/docs/Model/FbaInboundV0/PrepOwner.md +++ /dev/null @@ -1,8 +0,0 @@ -## PrepOwner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PutTransportDetailsRequest.md b/docs/Model/FbaInboundV0/PutTransportDetailsRequest.md deleted file mode 100644 index ef3b78496..000000000 --- a/docs/Model/FbaInboundV0/PutTransportDetailsRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## PutTransportDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_partnered** | **bool** | Indicates whether a putTransportDetails request is for an Amazon-partnered carrier. | -**shipment_type** | [**\SellingPartnerApi\Model\FbaInboundV0\ShipmentType**](ShipmentType.md) | | -**transport_details** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportDetailInput**](TransportDetailInput.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/PutTransportDetailsResponse.md b/docs/Model/FbaInboundV0/PutTransportDetailsResponse.md deleted file mode 100644 index f78b686cc..000000000 --- a/docs/Model/FbaInboundV0/PutTransportDetailsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## PutTransportDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult**](CommonTransportResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/SKUInboundGuidance.md b/docs/Model/FbaInboundV0/SKUInboundGuidance.md deleted file mode 100644 index f11fd00d7..000000000 --- a/docs/Model/FbaInboundV0/SKUInboundGuidance.md +++ /dev/null @@ -1,12 +0,0 @@ -## SKUInboundGuidance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**inbound_guidance** | [**\SellingPartnerApi\Model\FbaInboundV0\InboundGuidance**](InboundGuidance.md) | | -**guidance_reason_list** | [**\SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]**](GuidanceReason.md) | A list of inbound guidance reason information. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/SKUPrepInstructions.md b/docs/Model/FbaInboundV0/SKUPrepInstructions.md deleted file mode 100644 index e2c702ee2..000000000 --- a/docs/Model/FbaInboundV0/SKUPrepInstructions.md +++ /dev/null @@ -1,14 +0,0 @@ -## SKUPrepInstructions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**barcode_instruction** | [**\SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction**](BarcodeInstruction.md) | | [optional] -**prep_guidance** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepGuidance**](PrepGuidance.md) | | [optional] -**prep_instruction_list** | [**\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]**](PrepInstruction.md) | A list of preparation instructions to help with item sourcing decisions. | [optional] -**amazon_prep_fees_details_list** | [**\SellingPartnerApi\Model\FbaInboundV0\AmazonPrepFeesDetails[]**](AmazonPrepFeesDetails.md) | A list of preparation instructions and fees for Amazon to prep goods for shipment. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ShipmentStatus.md b/docs/Model/FbaInboundV0/ShipmentStatus.md deleted file mode 100644 index 7a69c7434..000000000 --- a/docs/Model/FbaInboundV0/ShipmentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShipmentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/ShipmentType.md b/docs/Model/FbaInboundV0/ShipmentType.md deleted file mode 100644 index 0474b7013..000000000 --- a/docs/Model/FbaInboundV0/ShipmentType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShipmentType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportContent.md b/docs/Model/FbaInboundV0/TransportContent.md deleted file mode 100644 index 76e7022bc..000000000 --- a/docs/Model/FbaInboundV0/TransportContent.md +++ /dev/null @@ -1,11 +0,0 @@ -## TransportContent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transport_header** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportHeader**](TransportHeader.md) | | -**transport_details** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportDetailOutput**](TransportDetailOutput.md) | | -**transport_result** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportResult**](TransportResult.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportDetailInput.md b/docs/Model/FbaInboundV0/TransportDetailInput.md deleted file mode 100644 index 398f90d87..000000000 --- a/docs/Model/FbaInboundV0/TransportDetailInput.md +++ /dev/null @@ -1,12 +0,0 @@ -## TransportDetailInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**partnered_small_parcel_data** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataInput**](PartneredSmallParcelDataInput.md) | | [optional] -**non_partnered_small_parcel_data** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataInput**](NonPartneredSmallParcelDataInput.md) | | [optional] -**partnered_ltl_data** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataInput**](PartneredLtlDataInput.md) | | [optional] -**non_partnered_ltl_data** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataInput**](NonPartneredLtlDataInput.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportDetailOutput.md b/docs/Model/FbaInboundV0/TransportDetailOutput.md deleted file mode 100644 index 79026f210..000000000 --- a/docs/Model/FbaInboundV0/TransportDetailOutput.md +++ /dev/null @@ -1,12 +0,0 @@ -## TransportDetailOutput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**partnered_small_parcel_data** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataOutput**](PartneredSmallParcelDataOutput.md) | | [optional] -**non_partnered_small_parcel_data** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataOutput**](NonPartneredSmallParcelDataOutput.md) | | [optional] -**partnered_ltl_data** | [**\SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataOutput**](PartneredLtlDataOutput.md) | | [optional] -**non_partnered_ltl_data** | [**\SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataOutput**](NonPartneredLtlDataOutput.md) | | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportHeader.md b/docs/Model/FbaInboundV0/TransportHeader.md deleted file mode 100644 index fae26ab7c..000000000 --- a/docs/Model/FbaInboundV0/TransportHeader.md +++ /dev/null @@ -1,18 +0,0 @@ -## TransportHeader - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_id** | **string** | The Amazon seller identifier. | -**shipment_id** | **string** | A shipment identifier originally returned by the createInboundShipmentPlan operation. | -**is_partnered** | **bool** | Indicates whether a putTransportDetails request is for a partnered carrier. - -Possible values: - -* true - Request is for an Amazon-partnered carrier. - -* false - Request is for a non-Amazon-partnered carrier. | -**shipment_type** | [**\SellingPartnerApi\Model\FbaInboundV0\ShipmentType**](ShipmentType.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportResult.md b/docs/Model/FbaInboundV0/TransportResult.md deleted file mode 100644 index f9a7093a8..000000000 --- a/docs/Model/FbaInboundV0/TransportResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## TransportResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transport_status** | [**\SellingPartnerApi\Model\FbaInboundV0\TransportStatus**](TransportStatus.md) | | -**error_code** | **string** | An error code that identifies the type of error that occured. | [optional] -**error_description** | **string** | A message that describes the error condition. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/TransportStatus.md b/docs/Model/FbaInboundV0/TransportStatus.md deleted file mode 100644 index d5c2dbd54..000000000 --- a/docs/Model/FbaInboundV0/TransportStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## TransportStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/UnitOfMeasurement.md b/docs/Model/FbaInboundV0/UnitOfMeasurement.md deleted file mode 100644 index 01e58e41a..000000000 --- a/docs/Model/FbaInboundV0/UnitOfMeasurement.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfMeasurement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/UnitOfWeight.md b/docs/Model/FbaInboundV0/UnitOfWeight.md deleted file mode 100644 index 74d105511..000000000 --- a/docs/Model/FbaInboundV0/UnitOfWeight.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfWeight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/VoidTransportResponse.md b/docs/Model/FbaInboundV0/VoidTransportResponse.md deleted file mode 100644 index 8950c3849..000000000 --- a/docs/Model/FbaInboundV0/VoidTransportResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## VoidTransportResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult**](CommonTransportResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInboundV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInboundV0/Weight.md b/docs/Model/FbaInboundV0/Weight.md deleted file mode 100644 index 3f2414736..000000000 --- a/docs/Model/FbaInboundV0/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **double** | | -**unit** | [**\SellingPartnerApi\Model\FbaInboundV0\UnitOfWeight**](UnitOfWeight.md) | | - -[[FbaInboundV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/Error.md b/docs/Model/FbaInventoryV1/Error.md deleted file mode 100644 index e91fe94a1..000000000 --- a/docs/Model/FbaInventoryV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | [optional] -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/GetInventorySummariesResponse.md b/docs/Model/FbaInventoryV1/GetInventorySummariesResponse.md deleted file mode 100644 index 066129357..000000000 --- a/docs/Model/FbaInventoryV1/GetInventorySummariesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetInventorySummariesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResult**](GetInventorySummariesResult.md) | | [optional] -**pagination** | [**\SellingPartnerApi\Model\FbaInventoryV1\Pagination**](Pagination.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaInventoryV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/GetInventorySummariesResult.md b/docs/Model/FbaInventoryV1/GetInventorySummariesResult.md deleted file mode 100644 index 877d3f243..000000000 --- a/docs/Model/FbaInventoryV1/GetInventorySummariesResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetInventorySummariesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**granularity** | [**\SellingPartnerApi\Model\FbaInventoryV1\Granularity**](Granularity.md) | | -**inventory_summaries** | [**\SellingPartnerApi\Model\FbaInventoryV1\InventorySummary[]**](InventorySummary.md) | A list of inventory summaries. | - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/Granularity.md b/docs/Model/FbaInventoryV1/Granularity.md deleted file mode 100644 index bb7907a8e..000000000 --- a/docs/Model/FbaInventoryV1/Granularity.md +++ /dev/null @@ -1,10 +0,0 @@ -## Granularity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**granularity_type** | **string** | The granularity type for the inventory aggregation level. | [optional] -**granularity_id** | **string** | The granularity ID for the specified granularity type. When granularityType is Marketplace, specify the marketplaceId. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/InventoryDetails.md b/docs/Model/FbaInventoryV1/InventoryDetails.md deleted file mode 100644 index 5837a0955..000000000 --- a/docs/Model/FbaInventoryV1/InventoryDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## InventoryDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillable_quantity** | **int** | The item quantity that can be picked, packed, and shipped. | [optional] -**inbound_working_quantity** | **int** | The number of units in an inbound shipment for which you have notified Amazon. | [optional] -**inbound_shipped_quantity** | **int** | The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number. | [optional] -**inbound_receiving_quantity** | **int** | The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed. | [optional] -**reserved_quantity** | [**\SellingPartnerApi\Model\FbaInventoryV1\ReservedQuantity**](ReservedQuantity.md) | | [optional] -**researching_quantity** | [**\SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantity**](ResearchingQuantity.md) | | [optional] -**unfulfillable_quantity** | [**\SellingPartnerApi\Model\FbaInventoryV1\UnfulfillableQuantity**](UnfulfillableQuantity.md) | | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/InventorySummary.md b/docs/Model/FbaInventoryV1/InventorySummary.md deleted file mode 100644 index 27fa7a3e1..000000000 --- a/docs/Model/FbaInventoryV1/InventorySummary.md +++ /dev/null @@ -1,16 +0,0 @@ -## InventorySummary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of an item. | [optional] -**fn_sku** | **string** | Amazon's fulfillment network SKU identifier. | [optional] -**seller_sku** | **string** | The seller SKU of the item. | [optional] -**condition** | **string** | The condition of the item as described by the seller (for example, New Item). | [optional] -**inventory_details** | [**\SellingPartnerApi\Model\FbaInventoryV1\InventoryDetails**](InventoryDetails.md) | | [optional] -**last_updated_time** | **string** | The date and time that any quantity was last updated in ISO8601 format. | [optional] -**product_name** | **string** | The localized language product title of the item within the specific marketplace. | [optional] -**total_quantity** | **int** | The total number of units in an inbound shipment or in Amazon fulfillment centers. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/Pagination.md b/docs/Model/FbaInventoryV1/Pagination.md deleted file mode 100644 index c976b250f..000000000 --- a/docs/Model/FbaInventoryV1/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to retrieve the next page of the result. If nextToken is returned, pass the value of nextToken to the next request. If nextToken is not returned, there are no more items to return. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/ResearchingQuantity.md b/docs/Model/FbaInventoryV1/ResearchingQuantity.md deleted file mode 100644 index 9cf34abeb..000000000 --- a/docs/Model/FbaInventoryV1/ResearchingQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ResearchingQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_researching_quantity** | **int** | The total number of units currently being researched in Amazon's fulfillment network. | [optional] -**researching_quantity_breakdown** | [**\SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantityEntry[]**](ResearchingQuantityEntry.md) | A list of quantity details for items currently being researched. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/ResearchingQuantityEntry.md b/docs/Model/FbaInventoryV1/ResearchingQuantityEntry.md deleted file mode 100644 index 865e71ea5..000000000 --- a/docs/Model/FbaInventoryV1/ResearchingQuantityEntry.md +++ /dev/null @@ -1,10 +0,0 @@ -## ResearchingQuantityEntry - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The duration of the research. | -**quantity** | **int** | The number of units. | - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/ReservedQuantity.md b/docs/Model/FbaInventoryV1/ReservedQuantity.md deleted file mode 100644 index 674b1c71e..000000000 --- a/docs/Model/FbaInventoryV1/ReservedQuantity.md +++ /dev/null @@ -1,12 +0,0 @@ -## ReservedQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_reserved_quantity** | **int** | The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes. | [optional] -**pending_customer_order_quantity** | **int** | The number of units reserved for customer orders. | [optional] -**pending_transshipment_quantity** | **int** | The number of units being transferred from one fulfillment center to another. | [optional] -**fc_processing_quantity** | **int** | The number of units that have been sidelined at the fulfillment center for additional processing. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaInventoryV1/UnfulfillableQuantity.md b/docs/Model/FbaInventoryV1/UnfulfillableQuantity.md deleted file mode 100644 index 712b55d72..000000000 --- a/docs/Model/FbaInventoryV1/UnfulfillableQuantity.md +++ /dev/null @@ -1,15 +0,0 @@ -## UnfulfillableQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_unfulfillable_quantity** | **int** | The total number of units in Amazon's fulfillment network in unsellable condition. | [optional] -**customer_damaged_quantity** | **int** | The number of units in customer damaged disposition. | [optional] -**warehouse_damaged_quantity** | **int** | The number of units in warehouse damaged disposition. | [optional] -**distributor_damaged_quantity** | **int** | The number of units in distributor damaged disposition. | [optional] -**carrier_damaged_quantity** | **int** | The number of units in carrier damaged disposition. | [optional] -**defective_quantity** | **int** | The number of units in defective disposition. | [optional] -**expired_quantity** | **int** | The number of units in expired disposition. | [optional] - -[[FbaInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/AdditionalLocationInfo.md b/docs/Model/FbaOutboundV20200701/AdditionalLocationInfo.md deleted file mode 100644 index 2bf51e1b9..000000000 --- a/docs/Model/FbaOutboundV20200701/AdditionalLocationInfo.md +++ /dev/null @@ -1,8 +0,0 @@ -## AdditionalLocationInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Address.md b/docs/Model/FbaOutboundV20200701/Address.md deleted file mode 100644 index 4c220033b..000000000 --- a/docs/Model/FbaOutboundV20200701/Address.md +++ /dev/null @@ -1,18 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at the address. | -**address_line1** | **string** | The first line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan. | [optional] -**district_or_county** | **string** | The district or county where the person, business, or institution is located. | [optional] -**state_or_region** | **string** | The state or region where the person, business or institution is located. | -**postal_code** | **string** | The postal code of the address. | -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business, or institution located at the address. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CODSettings.md b/docs/Model/FbaOutboundV20200701/CODSettings.md deleted file mode 100644 index c0c815572..000000000 --- a/docs/Model/FbaOutboundV20200701/CODSettings.md +++ /dev/null @@ -1,13 +0,0 @@ -## CODSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_cod_required** | **bool** | When true, this fulfillment order requires a COD (Cash On Delivery) payment. | -**cod_charge** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**cod_charge_tax** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**shipping_charge** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**shipping_charge_tax** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.md b/docs/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.md deleted file mode 100644 index eceadc5c6..000000000 --- a/docs/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CancelFulfillmentOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.md deleted file mode 100644 index 8054859cb..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.md +++ /dev/null @@ -1,17 +0,0 @@ -## CreateFulfillmentOrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**seller_fulfillment_order_item_id** | **string** | A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same SellerSKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same SellerSKU but have different GiftMessage values. | -**quantity** | **int** | The item quantity. | -**gift_message** | **string** | A message to the gift recipient, if applicable. | [optional] -**displayable_comment** | **string** | Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. | [optional] -**fulfillment_network_sku** | **string** | Amazon's fulfillment network SKU of the item. | [optional] -**per_unit_declared_value** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_price** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_tax** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.md deleted file mode 100644 index c73fc5e24..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.md +++ /dev/null @@ -1,23 +0,0 @@ -## CreateFulfillmentOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The marketplace the fulfillment order is placed against. | [optional] -**seller_fulfillment_order_id** | **string** | A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use. | -**displayable_order_id** | **string** | A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed. | -**displayable_order_date** | **string** | A datetime string in ISO 8601 format. | -**displayable_order_comment** | **string** | Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. | -**shipping_speed_category** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory**](ShippingSpeedCategory.md) | | -**delivery_window** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow**](DeliveryWindow.md) | | [optional] -**destination_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Address**](Address.md) | | -**fulfillment_action** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction**](FulfillmentAction.md) | | [optional] -**fulfillment_policy** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy**](FulfillmentPolicy.md) | | [optional] -**cod_settings** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings**](CODSettings.md) | | [optional] -**ship_from_country_code** | **string** | The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. | [optional] -**notification_emails** | **string[]** | 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. | [optional] -**feature_constraints** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] -**items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderItem[]**](CreateFulfillmentOrderItem.md) | An array of item information for creating a fulfillment order. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.md deleted file mode 100644 index 79a7e7c3d..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateFulfillmentOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.md deleted file mode 100644 index 926880059..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateFulfillmentReturnRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateReturnItem[]**](CreateReturnItem.md) | An array of items to be returned. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.md deleted file mode 100644 index 90750fef0..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateFulfillmentReturnResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResult**](CreateFulfillmentReturnResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.md b/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.md deleted file mode 100644 index 2bb879fcb..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateFulfillmentReturnResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**return_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]**](ReturnItem.md) | An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. | [optional] -**invalid_return_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidReturnItem[]**](InvalidReturnItem.md) | An array of invalid return item information. | [optional] -**return_authorizations** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]**](ReturnAuthorization.md) | An array of return authorization information. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CreateReturnItem.md b/docs/Model/FbaOutboundV20200701/CreateReturnItem.md deleted file mode 100644 index c9c0028bd..000000000 --- a/docs/Model/FbaOutboundV20200701/CreateReturnItem.md +++ /dev/null @@ -1,13 +0,0 @@ -## CreateReturnItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_return_item_id** | **string** | An identifier assigned by the seller to the return item. | -**seller_fulfillment_order_item_id** | **string** | The identifier assigned to the item by the seller when the fulfillment order was created. | -**amazon_shipment_id** | **string** | The identifier for the shipment that is associated with the return item. | -**return_reason_code** | **string** | The return reason code assigned to the return item by the seller. | -**return_comment** | **string** | An optional comment about the return item. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/CurrentStatus.md b/docs/Model/FbaOutboundV20200701/CurrentStatus.md deleted file mode 100644 index eb0940872..000000000 --- a/docs/Model/FbaOutboundV20200701/CurrentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## CurrentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/DeliveryWindow.md b/docs/Model/FbaOutboundV20200701/DeliveryWindow.md deleted file mode 100644 index 9fcc9f95d..000000000 --- a/docs/Model/FbaOutboundV20200701/DeliveryWindow.md +++ /dev/null @@ -1,10 +0,0 @@ -## DeliveryWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **string** | A datetime string in ISO 8601 format. | -**end_date** | **string** | A datetime string in ISO 8601 format. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Error.md b/docs/Model/FbaOutboundV20200701/Error.md deleted file mode 100644 index a9e257194..000000000 --- a/docs/Model/FbaOutboundV20200701/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/EventCode.md b/docs/Model/FbaOutboundV20200701/EventCode.md deleted file mode 100644 index e4eb5a9c7..000000000 --- a/docs/Model/FbaOutboundV20200701/EventCode.md +++ /dev/null @@ -1,8 +0,0 @@ -## EventCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Feature.md b/docs/Model/FbaOutboundV20200701/Feature.md deleted file mode 100644 index 99ace9360..000000000 --- a/docs/Model/FbaOutboundV20200701/Feature.md +++ /dev/null @@ -1,11 +0,0 @@ -## Feature - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feature_name** | **string** | The feature name. | -**feature_description** | **string** | The feature description. | -**seller_eligible** | **bool** | When true, indicates that the seller is eligible to use the feature. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FeatureSettings.md b/docs/Model/FbaOutboundV20200701/FeatureSettings.md deleted file mode 100644 index ae6efb304..000000000 --- a/docs/Model/FbaOutboundV20200701/FeatureSettings.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeatureSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feature_name** | **string** | The name of the feature. | [optional] -**feature_fulfillment_policy** | **string** | Specifies the policy to use when fulfilling an order. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FeatureSku.md b/docs/Model/FbaOutboundV20200701/FeatureSku.md deleted file mode 100644 index 42774c02f..000000000 --- a/docs/Model/FbaOutboundV20200701/FeatureSku.md +++ /dev/null @@ -1,13 +0,0 @@ -## FeatureSku - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | 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. | [optional] -**fn_sku** | **string** | The unique SKU used by Amazon's fulfillment network. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**sku_count** | **float** | The number of SKUs available for this service. | [optional] -**overlapping_skus** | **string[]** | Other seller SKUs that are shared across the same inventory. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Fee.md b/docs/Model/FbaOutboundV20200701/Fee.md deleted file mode 100644 index d3dc6327f..000000000 --- a/docs/Model/FbaOutboundV20200701/Fee.md +++ /dev/null @@ -1,10 +0,0 @@ -## Fee - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The type of fee. | -**amount** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentAction.md b/docs/Model/FbaOutboundV20200701/FulfillmentAction.md deleted file mode 100644 index aef792a99..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentAction.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentOrder.md b/docs/Model/FbaOutboundV20200701/FulfillmentOrder.md deleted file mode 100644 index b79750800..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentOrder.md +++ /dev/null @@ -1,24 +0,0 @@ -## FulfillmentOrder - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_fulfillment_order_id** | **string** | The fulfillment order identifier submitted with the createFulfillmentOrder operation. | -**marketplace_id** | **string** | The identifier for the marketplace the fulfillment order is placed against. | -**displayable_order_id** | **string** | A fulfillment order identifier submitted with the createFulfillmentOrder operation. Displays as the order identifier in recipient-facing materials such as the packing slip. | -**displayable_order_date** | **string** | A datetime string in ISO 8601 format. | -**displayable_order_comment** | **string** | A text block submitted with the createFulfillmentOrder operation. Displays in recipient-facing materials such as the packing slip. | -**shipping_speed_category** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory**](ShippingSpeedCategory.md) | | -**delivery_window** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow**](DeliveryWindow.md) | | [optional] -**destination_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Address**](Address.md) | | -**fulfillment_action** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction**](FulfillmentAction.md) | | [optional] -**fulfillment_policy** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy**](FulfillmentPolicy.md) | | [optional] -**cod_settings** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings**](CODSettings.md) | | [optional] -**received_date** | **string** | A datetime string in ISO 8601 format. | -**fulfillment_order_status** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus**](FulfillmentOrderStatus.md) | | -**status_updated_date** | **string** | A datetime string in ISO 8601 format. | -**notification_emails** | **string[]** | 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. | [optional] -**feature_constraints** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentOrderItem.md b/docs/Model/FbaOutboundV20200701/FulfillmentOrderItem.md deleted file mode 100644 index ddd047b79..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentOrderItem.md +++ /dev/null @@ -1,22 +0,0 @@ -## FulfillmentOrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**seller_fulfillment_order_item_id** | **string** | A fulfillment order item identifier submitted with a call to the createFulfillmentOrder operation. | -**quantity** | **int** | The item quantity. | -**gift_message** | **string** | A message to the gift recipient, if applicable. | [optional] -**displayable_comment** | **string** | Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. | [optional] -**fulfillment_network_sku** | **string** | Amazon's fulfillment network SKU of the item. | [optional] -**order_item_disposition** | **string** | Indicates whether the item is sellable or unsellable. | [optional] -**cancelled_quantity** | **int** | The item quantity. | -**unfulfillable_quantity** | **int** | The item quantity. | -**estimated_ship_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**estimated_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**per_unit_price** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_tax** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_declared_value** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentOrderStatus.md b/docs/Model/FbaOutboundV20200701/FulfillmentOrderStatus.md deleted file mode 100644 index a7ed4c302..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentOrderStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentOrderStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentPolicy.md b/docs/Model/FbaOutboundV20200701/FulfillmentPolicy.md deleted file mode 100644 index e84f69b1c..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentPolicy.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentPreview.md b/docs/Model/FbaOutboundV20200701/FulfillmentPreview.md deleted file mode 100644 index bc51daf1c..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentPreview.md +++ /dev/null @@ -1,19 +0,0 @@ -## FulfillmentPreview - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_speed_category** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory**](ShippingSpeedCategory.md) | | -**scheduled_delivery_info** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ScheduledDeliveryInfo**](ScheduledDeliveryInfo.md) | | [optional] -**is_fulfillable** | **bool** | When true, this fulfillment order preview is fulfillable. | -**is_cod_capable** | **bool** | When true, this fulfillment order preview is for COD (Cash On Delivery). | -**estimated_shipping_weight** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Weight**](Weight.md) | | [optional] -**estimated_fees** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Fee[]**](Fee.md) | An array of fee type and cost pairs. | [optional] -**fulfillment_preview_shipments** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewShipment[]**](FulfillmentPreviewShipment.md) | An array of fulfillment preview shipment information. | [optional] -**unfulfillable_preview_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\UnfulfillablePreviewItem[]**](UnfulfillablePreviewItem.md) | An array of unfulfillable preview item information. | [optional] -**order_unfulfillable_reasons** | **string[]** | | [optional] -**marketplace_id** | **string** | The marketplace the fulfillment order is placed against. | -**feature_constraints** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentPreviewItem.md b/docs/Model/FbaOutboundV20200701/FulfillmentPreviewItem.md deleted file mode 100644 index d4016843a..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentPreviewItem.md +++ /dev/null @@ -1,13 +0,0 @@ -## FulfillmentPreviewItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**quantity** | **int** | The item quantity. | -**seller_fulfillment_order_item_id** | **string** | A fulfillment order item identifier that the seller created with a call to the createFulfillmentOrder operation. | -**estimated_shipping_weight** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Weight**](Weight.md) | | [optional] -**shipping_weight_calculation_method** | **string** | The method used to calculate the estimated shipping weight. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.md b/docs/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.md deleted file mode 100644 index c517bfa7c..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.md +++ /dev/null @@ -1,14 +0,0 @@ -## FulfillmentPreviewShipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**earliest_ship_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**latest_ship_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**earliest_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**latest_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**shipping_notes** | **string[]** | Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed. | [optional] -**fulfillment_preview_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewItem[]**](FulfillmentPreviewItem.md) | An array of fulfillment preview item information. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.md b/docs/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.md deleted file mode 100644 index f515d4604..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentReturnItemStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentShipment.md b/docs/Model/FbaOutboundV20200701/FulfillmentShipment.md deleted file mode 100644 index 394ac34b5..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentShipment.md +++ /dev/null @@ -1,16 +0,0 @@ -## FulfillmentShipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_shipment_id** | **string** | A shipment identifier assigned by Amazon. | -**fulfillment_center_id** | **string** | An identifier for the fulfillment center that the shipment will be sent from. | -**fulfillment_shipment_status** | **string** | The current status of the shipment. | -**shipping_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**estimated_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**shipping_notes** | **string[]** | Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available. | [optional] -**fulfillment_shipment_item** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentItem[]**](FulfillmentShipmentItem.md) | An array of fulfillment shipment item information. | -**fulfillment_shipment_package** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentPackage[]**](FulfillmentShipmentPackage.md) | An array of fulfillment shipment package information. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentShipmentItem.md b/docs/Model/FbaOutboundV20200701/FulfillmentShipmentItem.md deleted file mode 100644 index 1e1f8dbe1..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentShipmentItem.md +++ /dev/null @@ -1,13 +0,0 @@ -## FulfillmentShipmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**seller_fulfillment_order_item_id** | **string** | The fulfillment order item identifier that the seller created and submitted with a call to the createFulfillmentOrder operation. | -**quantity** | **int** | The item quantity. | -**package_number** | **int** | An identifier for the package that contains the item quantity. | [optional] -**serial_number** | **string** | The serial number of the shipped item. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.md b/docs/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.md deleted file mode 100644 index df9e6fd01..000000000 --- a/docs/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.md +++ /dev/null @@ -1,12 +0,0 @@ -## FulfillmentShipmentPackage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_number** | **int** | Identifies a package in a shipment. | -**carrier_code** | **string** | Identifies the carrier who will deliver the shipment to the recipient. | -**tracking_number** | **string** | The tracking number, if provided, can be used to obtain tracking and delivery information. | [optional] -**estimated_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.md b/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.md deleted file mode 100644 index 41923abb4..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFeatureInventoryResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResult**](GetFeatureInventoryResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResult.md b/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResult.md deleted file mode 100644 index 54aeb8558..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeatureInventoryResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetFeatureInventoryResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The requested marketplace. | -**feature_name** | **string** | The name of the feature. | -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**feature_skus** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku[]**](FeatureSku.md) | An array of SKUs eligible for this feature and the quantity available. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeatureSkuResponse.md b/docs/Model/FbaOutboundV20200701/GetFeatureSkuResponse.md deleted file mode 100644 index 328287367..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeatureSkuResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFeatureSkuResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResult**](GetFeatureSkuResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeatureSkuResult.md b/docs/Model/FbaOutboundV20200701/GetFeatureSkuResult.md deleted file mode 100644 index cd286a728..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeatureSkuResult.md +++ /dev/null @@ -1,13 +0,0 @@ -## GetFeatureSkuResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The requested marketplace. | -**feature_name** | **string** | The name of the feature. | -**is_eligible** | **bool** | When true, the seller SKU is eligible for the requested feature. | -**ineligible_reasons** | **string[]** | A list of one or more reasons that the seller SKU is ineligibile for the feature.

Possible values:
* MERCHANT_NOT_ENROLLED - The merchant isn't enrolled for the feature.
* SKU_NOT_ELIGIBLE - The SKU doesn't reside in a warehouse that supports the feature.
* INVALID_SKU - There is an issue with the SKU provided. | [optional] -**sku_info** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku**](FeatureSku.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeaturesResponse.md b/docs/Model/FbaOutboundV20200701/GetFeaturesResponse.md deleted file mode 100644 index 44822ef46..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeaturesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFeaturesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResult**](GetFeaturesResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFeaturesResult.md b/docs/Model/FbaOutboundV20200701/GetFeaturesResult.md deleted file mode 100644 index f9de6ba40..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFeaturesResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetFeaturesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**features** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Feature[]**](Feature.md) | An array of features. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.md deleted file mode 100644 index b5b6198b9..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFulfillmentOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResult**](GetFulfillmentOrderResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.md deleted file mode 100644 index ef9b52413..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.md +++ /dev/null @@ -1,13 +0,0 @@ -## GetFulfillmentOrderResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_order** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder**](FulfillmentOrder.md) | | -**fulfillment_order_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderItem[]**](FulfillmentOrderItem.md) | An array of fulfillment order item information. | -**fulfillment_shipments** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipment[]**](FulfillmentShipment.md) | An array of fulfillment shipment information. | [optional] -**return_items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]**](ReturnItem.md) | An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. | -**return_authorizations** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]**](ReturnAuthorization.md) | An array of return authorization information. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.md deleted file mode 100644 index fc6ec8cdd..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetFulfillmentPreviewItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**quantity** | **int** | The item quantity. | -**per_unit_declared_value** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**seller_fulfillment_order_item_id** | **string** | A fulfillment order item identifier that the seller creates to track items in the fulfillment preview. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.md deleted file mode 100644 index 96ca703dc..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -## GetFulfillmentPreviewRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The marketplace the fulfillment order is placed against. | [optional] -**address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Address**](Address.md) | | -**items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewItem[]**](GetFulfillmentPreviewItem.md) | An array of fulfillment preview item information. | -**shipping_speed_categories** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory[]**](ShippingSpeedCategory.md) | | [optional] -**include_cod_fulfillment_preview** | **bool** | When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. | [optional] -**include_delivery_windows** | **bool** | When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. | [optional] -**feature_constraints** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.md deleted file mode 100644 index 871b7d5ee..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFulfillmentPreviewResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResult**](GetFulfillmentPreviewResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.md b/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.md deleted file mode 100644 index 565f5befd..000000000 --- a/docs/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetFulfillmentPreviewResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_previews** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreview[]**](FulfillmentPreview.md) | An array of fulfillment preview information. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.md b/docs/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.md deleted file mode 100644 index 3644a5058..000000000 --- a/docs/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPackageTrackingDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\PackageTrackingDetails**](PackageTrackingDetails.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/InvalidItemReason.md b/docs/Model/FbaOutboundV20200701/InvalidItemReason.md deleted file mode 100644 index aa608af40..000000000 --- a/docs/Model/FbaOutboundV20200701/InvalidItemReason.md +++ /dev/null @@ -1,10 +0,0 @@ -## InvalidItemReason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invalid_item_reason_code** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReasonCode**](InvalidItemReasonCode.md) | | -**description** | **string** | A human readable description of the invalid item reason code. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/InvalidItemReasonCode.md b/docs/Model/FbaOutboundV20200701/InvalidItemReasonCode.md deleted file mode 100644 index 965482f39..000000000 --- a/docs/Model/FbaOutboundV20200701/InvalidItemReasonCode.md +++ /dev/null @@ -1,8 +0,0 @@ -## InvalidItemReasonCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/InvalidReturnItem.md b/docs/Model/FbaOutboundV20200701/InvalidReturnItem.md deleted file mode 100644 index cbab8ae0e..000000000 --- a/docs/Model/FbaOutboundV20200701/InvalidReturnItem.md +++ /dev/null @@ -1,11 +0,0 @@ -## InvalidReturnItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_return_item_id** | **string** | An identifier assigned by the seller to the return item. | -**seller_fulfillment_order_item_id** | **string** | The identifier assigned to the item by the seller when the fulfillment order was created. | -**invalid_item_reason** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReason**](InvalidItemReason.md) | | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.md b/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.md deleted file mode 100644 index ed529d9b6..000000000 --- a/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListAllFulfillmentOrdersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResult**](ListAllFulfillmentOrdersResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.md b/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.md deleted file mode 100644 index c18eb9604..000000000 --- a/docs/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListAllFulfillmentOrdersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**fulfillment_orders** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder[]**](FulfillmentOrder.md) | An array of fulfillment order information. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.md b/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.md deleted file mode 100644 index 0913083fd..000000000 --- a/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListReturnReasonCodesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResult**](ListReturnReasonCodesResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.md b/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.md deleted file mode 100644 index f3f995bdc..000000000 --- a/docs/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## ListReturnReasonCodesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason_code_details** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReasonCodeDetails[]**](ReasonCodeDetails.md) | An array of return reason code details. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Money.md b/docs/Model/FbaOutboundV20200701/Money.md deleted file mode 100644 index ca7d00938..000000000 --- a/docs/Model/FbaOutboundV20200701/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. | -**value** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/PackageTrackingDetails.md b/docs/Model/FbaOutboundV20200701/PackageTrackingDetails.md deleted file mode 100644 index 37c66eff6..000000000 --- a/docs/Model/FbaOutboundV20200701/PackageTrackingDetails.md +++ /dev/null @@ -1,22 +0,0 @@ -## PackageTrackingDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_number** | **int** | The package identifier. | -**tracking_number** | **string** | The tracking number for the package. | [optional] -**customer_tracking_link** | **string** | Link on swiship.com that allows customers to track the package. | [optional] -**carrier_code** | **string** | The name of the carrier. | [optional] -**carrier_phone_number** | **string** | The phone number of the carrier. | [optional] -**carrier_url** | **string** | The URL of the carrier's website. | [optional] -**ship_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**estimated_arrival_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**ship_to_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress**](TrackingAddress.md) | | [optional] -**current_status** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\CurrentStatus**](CurrentStatus.md) | | [optional] -**current_status_description** | **string** | Description corresponding to the CurrentStatus value. | [optional] -**signed_for_by** | **string** | The name of the person who signed for the package. | [optional] -**additional_location_info** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\AdditionalLocationInfo**](AdditionalLocationInfo.md) | | [optional] -**tracking_events** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingEvent[]**](TrackingEvent.md) | An array of tracking event information. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ReasonCodeDetails.md b/docs/Model/FbaOutboundV20200701/ReasonCodeDetails.md deleted file mode 100644 index 493491930..000000000 --- a/docs/Model/FbaOutboundV20200701/ReasonCodeDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## ReasonCodeDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**return_reason_code** | **string** | A code that indicates a valid return reason. | -**description** | **string** | A human readable description of the return reason code. | -**translated_description** | **string** | A translation of the description. The translation is in the language specified in the Language request parameter. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ReturnAuthorization.md b/docs/Model/FbaOutboundV20200701/ReturnAuthorization.md deleted file mode 100644 index 9b5bada4a..000000000 --- a/docs/Model/FbaOutboundV20200701/ReturnAuthorization.md +++ /dev/null @@ -1,13 +0,0 @@ -## ReturnAuthorization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**return_authorization_id** | **string** | An identifier for the return authorization. This identifier associates return items with the return authorization used to return them. | -**fulfillment_center_id** | **string** | An identifier for the Amazon fulfillment center that the return items should be sent to. | -**return_to_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Address**](Address.md) | | -**amazon_rma_id** | **string** | The return merchandise authorization (RMA) that Amazon needs to process the return. | -**rma_page_url** | **string** | A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ReturnItem.md b/docs/Model/FbaOutboundV20200701/ReturnItem.md deleted file mode 100644 index 631facc4f..000000000 --- a/docs/Model/FbaOutboundV20200701/ReturnItem.md +++ /dev/null @@ -1,19 +0,0 @@ -## ReturnItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_return_item_id** | **string** | An identifier assigned by the seller to the return item. | -**seller_fulfillment_order_item_id** | **string** | The identifier assigned to the item by the seller when the fulfillment order was created. | -**amazon_shipment_id** | **string** | The identifier for the shipment that is associated with the return item. | -**seller_return_reason_code** | **string** | The return reason code assigned to the return item by the seller. | -**return_comment** | **string** | An optional comment about the return item. | [optional] -**amazon_return_reason_code** | **string** | The return reason code that the Amazon fulfillment center assigned to the return item. | [optional] -**status** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentReturnItemStatus**](FulfillmentReturnItemStatus.md) | | -**status_changed_date** | **string** | A datetime string in ISO 8601 format. | -**return_authorization_id** | **string** | Identifies the return authorization used to return this item. See ReturnAuthorization. | [optional] -**return_received_condition** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItemDisposition**](ReturnItemDisposition.md) | | [optional] -**fulfillment_center_id** | **string** | The identifier for the Amazon fulfillment center that processed the return item. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ReturnItemDisposition.md b/docs/Model/FbaOutboundV20200701/ReturnItemDisposition.md deleted file mode 100644 index cd384722c..000000000 --- a/docs/Model/FbaOutboundV20200701/ReturnItemDisposition.md +++ /dev/null @@ -1,8 +0,0 @@ -## ReturnItemDisposition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.md b/docs/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.md deleted file mode 100644 index 8f47df6e4..000000000 --- a/docs/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.md +++ /dev/null @@ -1,10 +0,0 @@ -## ScheduledDeliveryInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivery_time_zone** | **string** | The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo. | -**delivery_windows** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow[]**](DeliveryWindow.md) | An array of delivery windows. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/ShippingSpeedCategory.md b/docs/Model/FbaOutboundV20200701/ShippingSpeedCategory.md deleted file mode 100644 index d0e6a4fa7..000000000 --- a/docs/Model/FbaOutboundV20200701/ShippingSpeedCategory.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShippingSpeedCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.md b/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.md deleted file mode 100644 index b66a842c5..000000000 --- a/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitFulfillmentOrderStatusUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_order_status** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus**](FulfillmentOrderStatus.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.md b/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.md deleted file mode 100644 index 9276ac29d..000000000 --- a/docs/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitFulfillmentOrderStatusUpdateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/TrackingAddress.md b/docs/Model/FbaOutboundV20200701/TrackingAddress.md deleted file mode 100644 index d5f5a9435..000000000 --- a/docs/Model/FbaOutboundV20200701/TrackingAddress.md +++ /dev/null @@ -1,11 +0,0 @@ -## TrackingAddress - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**city** | **string** | The city. | -**state** | **string** | The state. | -**country** | **string** | The country. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/TrackingEvent.md b/docs/Model/FbaOutboundV20200701/TrackingEvent.md deleted file mode 100644 index 550e093d5..000000000 --- a/docs/Model/FbaOutboundV20200701/TrackingEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## TrackingEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_date** | **string** | A datetime string in ISO 8601 format. | -**event_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress**](TrackingAddress.md) | | -**event_code** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\EventCode**](EventCode.md) | | -**event_description** | **string** | A description for the corresponding event code. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.md b/docs/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.md deleted file mode 100644 index 42eb84112..000000000 --- a/docs/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## UnfulfillablePreviewItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | -**quantity** | **int** | The item quantity. | -**seller_fulfillment_order_item_id** | **string** | A fulfillment order item identifier created with a call to the getFulfillmentPreview operation. | -**item_unfulfillable_reasons** | **string[]** | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.md b/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.md deleted file mode 100644 index a923ae649..000000000 --- a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.md +++ /dev/null @@ -1,18 +0,0 @@ -## UpdateFulfillmentOrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. | [optional] -**seller_fulfillment_order_item_id** | **string** | Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation. | -**quantity** | **int** | The item quantity. | -**gift_message** | **string** | A message to the gift recipient, if applicable. | [optional] -**displayable_comment** | **string** | Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. | [optional] -**fulfillment_network_sku** | **string** | Amazon's fulfillment network SKU of the item. | [optional] -**order_item_disposition** | **string** | Indicates whether the item is sellable or unsellable. | [optional] -**per_unit_declared_value** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_price** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] -**per_unit_tax** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Money**](Money.md) | | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.md b/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.md deleted file mode 100644 index eab862352..000000000 --- a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -## UpdateFulfillmentOrderRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The marketplace the fulfillment order is placed against. | [optional] -**displayable_order_id** | **string** | A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. | [optional] -**displayable_order_date** | **string** | A datetime string in ISO 8601 format. | [optional] -**displayable_order_comment** | **string** | Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. | [optional] -**shipping_speed_category** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory**](ShippingSpeedCategory.md) | | [optional] -**destination_address** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Address**](Address.md) | | [optional] -**fulfillment_action** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction**](FulfillmentAction.md) | | [optional] -**fulfillment_policy** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy**](FulfillmentPolicy.md) | | [optional] -**ship_from_country_code** | **string** | The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. | [optional] -**notification_emails** | **string[]** | 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. | [optional] -**feature_constraints** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]**](FeatureSettings.md) | A list of features and their fulfillment policies to apply to the order. | [optional] -**items** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderItem[]**](UpdateFulfillmentOrderItem.md) | An array of fulfillment order item information for updating a fulfillment order. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.md b/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.md deleted file mode 100644 index 016a2c691..000000000 --- a/docs/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## UpdateFulfillmentOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FbaOutboundV20200701/Weight.md b/docs/Model/FbaOutboundV20200701/Weight.md deleted file mode 100644 index 5f1deecd2..000000000 --- a/docs/Model/FbaOutboundV20200701/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **string** | The unit of weight. | -**value** | **string** | The weight value. | - -[[FbaOutboundV20200701 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/CreateFeedDocumentResponse.md b/docs/Model/FeedsV20210630/CreateFeedDocumentResponse.md deleted file mode 100644 index 81a9dee6d..000000000 --- a/docs/Model/FeedsV20210630/CreateFeedDocumentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateFeedDocumentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feed_document_id** | **string** | The identifier of the feed document. | -**url** | **string** | The presigned URL for uploading the feed contents. This URL expires after 5 minutes. | - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/CreateFeedDocumentSpecification.md b/docs/Model/FeedsV20210630/CreateFeedDocumentSpecification.md deleted file mode 100644 index 8e4a9f6c1..000000000 --- a/docs/Model/FeedsV20210630/CreateFeedDocumentSpecification.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateFeedDocumentSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_type** | **string** | The content type of the feed. | - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/CreateFeedResponse.md b/docs/Model/FeedsV20210630/CreateFeedResponse.md deleted file mode 100644 index 404ee04b2..000000000 --- a/docs/Model/FeedsV20210630/CreateFeedResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateFeedResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feed_id** | **string** | The identifier for the feed. This identifier is unique only in combination with a seller ID. | - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/CreateFeedSpecification.md b/docs/Model/FeedsV20210630/CreateFeedSpecification.md deleted file mode 100644 index fd9a9478b..000000000 --- a/docs/Model/FeedsV20210630/CreateFeedSpecification.md +++ /dev/null @@ -1,12 +0,0 @@ -## CreateFeedSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feed_type** | **string** | The feed type. | -**marketplace_ids** | **string[]** | A list of identifiers for marketplaces that you want the feed to be applied to. | -**input_feed_document_id** | **string** | The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation. | -**feed_options** | **map[string,string]** | Additional options to control the feed. These vary by feed type. | [optional] - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/Error.md b/docs/Model/FeedsV20210630/Error.md deleted file mode 100644 index 0193f5b40..000000000 --- a/docs/Model/FeedsV20210630/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/ErrorList.md b/docs/Model/FeedsV20210630/ErrorList.md deleted file mode 100644 index 60534156a..000000000 --- a/docs/Model/FeedsV20210630/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FeedsV20210630\Error[]**](Error.md) | | - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/Feed.md b/docs/Model/FeedsV20210630/Feed.md deleted file mode 100644 index 7c251a0d6..000000000 --- a/docs/Model/FeedsV20210630/Feed.md +++ /dev/null @@ -1,16 +0,0 @@ -## Feed - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feed_id** | **string** | The identifier for the feed. This identifier is unique only in combination with a seller ID. | -**feed_type** | **string** | The feed type. | -**marketplace_ids** | **string[]** | A list of identifiers for the marketplaces that the feed is applied to. | [optional] -**created_time** | **string** | The date and time when the feed was created, in ISO 8601 date time format. | -**processing_status** | **string** | The processing status of the feed. | -**processing_start_time** | **string** | The date and time when feed processing started, in ISO 8601 date time format. | [optional] -**processing_end_time** | **string** | The date and time when feed processing completed, in ISO 8601 date time format. | [optional] -**result_feed_document_id** | **string** | The identifier for the feed document. This identifier is unique only in combination with a seller ID. | [optional] - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/FeedDocument.md b/docs/Model/FeedsV20210630/FeedDocument.md deleted file mode 100644 index 7436bd531..000000000 --- a/docs/Model/FeedsV20210630/FeedDocument.md +++ /dev/null @@ -1,11 +0,0 @@ -## FeedDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feed_document_id** | **string** | The identifier for the feed document. This identifier is unique only in combination with a seller ID. | -**url** | **string** | A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes. | -**compression_algorithm** | **string** | If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 7. Download the feed processing report](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-use-case-guide#step-7-download-the-feed-processing-report) in the use case guide, where sample code is provided. | [optional] - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeedsV20210630/GetFeedsResponse.md b/docs/Model/FeedsV20210630/GetFeedsResponse.md deleted file mode 100644 index 2ea2248a6..000000000 --- a/docs/Model/FeedsV20210630/GetFeedsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetFeedsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**feeds** | [**\SellingPartnerApi\Model\FeedsV20210630\Feed[]**](Feed.md) | A list of feeds. | -**next_token** | **string** | 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. | [optional] - -[[FeedsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/Error.md b/docs/Model/FeesV0/Error.md deleted file mode 100644 index 299df6972..000000000 --- a/docs/Model/FeesV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeeDetail.md b/docs/Model/FeesV0/FeeDetail.md deleted file mode 100644 index 6a7af8266..000000000 --- a/docs/Model/FeesV0/FeeDetail.md +++ /dev/null @@ -1,14 +0,0 @@ -## FeeDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fee_type** | **string** | The type of fee charged to a seller. | -**fee_amount** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | -**fee_promotion** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**final_fee** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | -**included_fee_detail_list** | [**\SellingPartnerApi\Model\FeesV0\IncludedFeeDetail[]**](IncludedFeeDetail.md) | A list of other fees that contribute to a given fee. | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimate.md b/docs/Model/FeesV0/FeesEstimate.md deleted file mode 100644 index ef944cebb..000000000 --- a/docs/Model/FeesV0/FeesEstimate.md +++ /dev/null @@ -1,11 +0,0 @@ -## FeesEstimate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**time_of_fees_estimation** | **string** | The time at which the fees were estimated. This defaults to the time the request is made. Must be in ISO 8601 format. | -**total_fees_estimate** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**fee_detail_list** | [**\SellingPartnerApi\Model\FeesV0\FeeDetail[]**](FeeDetail.md) | A list of other fees that contribute to a given fee. | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimateByIdRequest.md b/docs/Model/FeesV0/FeesEstimateByIdRequest.md deleted file mode 100644 index 6da72aa7c..000000000 --- a/docs/Model/FeesV0/FeesEstimateByIdRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## FeesEstimateByIdRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fees_estimate_request** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateRequest**](FeesEstimateRequest.md) | | [optional] -**id_type** | [**\SellingPartnerApi\Model\FeesV0\IdType**](IdType.md) | | -**id_value** | **string** | The item identifier. | - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimateError.md b/docs/Model/FeesV0/FeesEstimateError.md deleted file mode 100644 index 41535dffd..000000000 --- a/docs/Model/FeesV0/FeesEstimateError.md +++ /dev/null @@ -1,12 +0,0 @@ -## FeesEstimateError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | An error type, identifying either the receiver or the sender as the originator of the error. | -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**detail** | **object[]** | Additional information that can help the caller understand or fix the issue. | - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimateIdentifier.md b/docs/Model/FeesV0/FeesEstimateIdentifier.md deleted file mode 100644 index e44212643..000000000 --- a/docs/Model/FeesV0/FeesEstimateIdentifier.md +++ /dev/null @@ -1,16 +0,0 @@ -## FeesEstimateIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | [optional] -**seller_id** | **string** | The seller identifier. | [optional] -**id_type** | [**\SellingPartnerApi\Model\FeesV0\IdType**](IdType.md) | | [optional] -**id_value** | **string** | The item identifier. | [optional] -**is_amazon_fulfilled** | **bool** | When true, the offer is fulfilled by Amazon. | [optional] -**price_to_estimate_fees** | [**\SellingPartnerApi\Model\FeesV0\PriceToEstimateFees**](PriceToEstimateFees.md) | | [optional] -**seller_input_identifier** | **string** | A unique identifier provided by the caller to track this request. | [optional] -**optional_fulfillment_program** | [**\SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram**](OptionalFulfillmentProgram.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimateRequest.md b/docs/Model/FeesV0/FeesEstimateRequest.md deleted file mode 100644 index 099781dc2..000000000 --- a/docs/Model/FeesV0/FeesEstimateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -## FeesEstimateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**is_amazon_fulfilled** | **bool** | When true, the offer is fulfilled by Amazon. | [optional] -**price_to_estimate_fees** | [**\SellingPartnerApi\Model\FeesV0\PriceToEstimateFees**](PriceToEstimateFees.md) | | -**identifier** | **string** | A unique identifier provided by the caller to track this request. | -**optional_fulfillment_program** | [**\SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram**](OptionalFulfillmentProgram.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/FeesEstimateResult.md b/docs/Model/FeesV0/FeesEstimateResult.md deleted file mode 100644 index 345092235..000000000 --- a/docs/Model/FeesV0/FeesEstimateResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## FeesEstimateResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | The status of the fee request. Possible values: Success, ClientError, ServiceError. | [optional] -**fees_estimate_identifier** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateIdentifier**](FeesEstimateIdentifier.md) | | [optional] -**fees_estimate** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimate**](FeesEstimate.md) | | [optional] -**error** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateError**](FeesEstimateError.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/GetMyFeesEstimateRequest.md b/docs/Model/FeesV0/GetMyFeesEstimateRequest.md deleted file mode 100644 index 6f07a1c15..000000000 --- a/docs/Model/FeesV0/GetMyFeesEstimateRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetMyFeesEstimateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fees_estimate_request** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateRequest**](FeesEstimateRequest.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/GetMyFeesEstimateResponse.md b/docs/Model/FeesV0/GetMyFeesEstimateResponse.md deleted file mode 100644 index 61be27cd0..000000000 --- a/docs/Model/FeesV0/GetMyFeesEstimateResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetMyFeesEstimateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResult**](GetMyFeesEstimateResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FeesV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/GetMyFeesEstimateResult.md b/docs/Model/FeesV0/GetMyFeesEstimateResult.md deleted file mode 100644 index c5a3a468e..000000000 --- a/docs/Model/FeesV0/GetMyFeesEstimateResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetMyFeesEstimateResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fees_estimate_result** | [**\SellingPartnerApi\Model\FeesV0\FeesEstimateResult**](FeesEstimateResult.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/GetMyFeesEstimatesErrorList.md b/docs/Model/FeesV0/GetMyFeesEstimatesErrorList.md deleted file mode 100644 index 7204c509b..000000000 --- a/docs/Model/FeesV0/GetMyFeesEstimatesErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetMyFeesEstimatesErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\FeesV0\Error[]**](Error.md) | | - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/IdType.md b/docs/Model/FeesV0/IdType.md deleted file mode 100644 index af4b5fead..000000000 --- a/docs/Model/FeesV0/IdType.md +++ /dev/null @@ -1,8 +0,0 @@ -## IdType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/IncludedFeeDetail.md b/docs/Model/FeesV0/IncludedFeeDetail.md deleted file mode 100644 index 813f9c5d2..000000000 --- a/docs/Model/FeesV0/IncludedFeeDetail.md +++ /dev/null @@ -1,13 +0,0 @@ -## IncludedFeeDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fee_type** | **string** | The type of fee charged to a seller. | -**fee_amount** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | -**fee_promotion** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**final_fee** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/MoneyType.md b/docs/Model/FeesV0/MoneyType.md deleted file mode 100644 index d25b6e917..000000000 --- a/docs/Model/FeesV0/MoneyType.md +++ /dev/null @@ -1,10 +0,0 @@ -## MoneyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] -**amount** | **float** | The monetary value. | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/OptionalFulfillmentProgram.md b/docs/Model/FeesV0/OptionalFulfillmentProgram.md deleted file mode 100644 index 5e4617f0e..000000000 --- a/docs/Model/FeesV0/OptionalFulfillmentProgram.md +++ /dev/null @@ -1,8 +0,0 @@ -## OptionalFulfillmentProgram - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/Points.md b/docs/Model/FeesV0/Points.md deleted file mode 100644 index d1e6a334b..000000000 --- a/docs/Model/FeesV0/Points.md +++ /dev/null @@ -1,10 +0,0 @@ -## Points - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**points_number** | **int** | | [optional] -**points_monetary_value** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FeesV0/PriceToEstimateFees.md b/docs/Model/FeesV0/PriceToEstimateFees.md deleted file mode 100644 index e8bec79bf..000000000 --- a/docs/Model/FeesV0/PriceToEstimateFees.md +++ /dev/null @@ -1,11 +0,0 @@ -## PriceToEstimateFees - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**listing_price** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | -**shipping** | [**\SellingPartnerApi\Model\FeesV0\MoneyType**](MoneyType.md) | | [optional] -**points** | [**\SellingPartnerApi\Model\FeesV0\Points**](Points.md) | | [optional] - -[[FeesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/AdhocDisbursementEvent.md b/docs/Model/FinancesV0/AdhocDisbursementEvent.md deleted file mode 100644 index bfd7ee065..000000000 --- a/docs/Model/FinancesV0/AdhocDisbursementEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## AdhocDisbursementEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_type** | **string** | Indicates the type of transaction.

Example: \"Disbursed to Amazon Gift Card balance\" | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**transaction_id** | **string** | The identifier for the transaction. | [optional] -**transaction_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/AdjustmentEvent.md b/docs/Model/FinancesV0/AdjustmentEvent.md deleted file mode 100644 index 567a5f55c..000000000 --- a/docs/Model/FinancesV0/AdjustmentEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## AdjustmentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_type** | **string** | The type of adjustment.

Possible values:

* FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged.

* ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back.

* PostageBilling - The amount paid by a seller for shipping labels.

* PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded.

* LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged.

* CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace.

* ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace.

* SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**adjustment_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**adjustment_item_list** | [**\SellingPartnerApi\Model\FinancesV0\AdjustmentItem[]**](AdjustmentItem.md) | A list of information about items in an adjustment to the seller's account. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/AdjustmentItem.md b/docs/Model/FinancesV0/AdjustmentItem.md deleted file mode 100644 index 0aaa8f78f..000000000 --- a/docs/Model/FinancesV0/AdjustmentItem.md +++ /dev/null @@ -1,15 +0,0 @@ -## AdjustmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**quantity** | **string** | Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement. | [optional] -**per_unit_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**total_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**seller_sku** | **string** | The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. | [optional] -**fn_sku** | **string** | A unique identifier assigned to products stored in and fulfilled from a fulfillment center. | [optional] -**product_description** | **string** | A short description of the item. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/AffordabilityExpenseEvent.md b/docs/Model/FinancesV0/AffordabilityExpenseEvent.md deleted file mode 100644 index 2374f10cb..000000000 --- a/docs/Model/FinancesV0/AffordabilityExpenseEvent.md +++ /dev/null @@ -1,17 +0,0 @@ -## AffordabilityExpenseEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**marketplace_id** | **string** | An encrypted, Amazon-defined marketplace identifier. | [optional] -**transaction_type** | **string** | Indicates the type of transaction.

Possible values:

* Charge - For an affordability promotion expense.

* Refund - For an affordability promotion expense reversal. | [optional] -**base_expense** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_type_cgst** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | -**tax_type_sgst** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | -**tax_type_igst** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | -**total_expense** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/CapacityReservationBillingEvent.md b/docs/Model/FinancesV0/CapacityReservationBillingEvent.md deleted file mode 100644 index 25c65d184..000000000 --- a/docs/Model/FinancesV0/CapacityReservationBillingEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## CapacityReservationBillingEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_type** | **string** | Indicates the type of transaction. For example, FBA Inventory Fee | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**description** | **string** | A short description of the capacity reservation billing event. | [optional] -**transaction_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ChargeComponent.md b/docs/Model/FinancesV0/ChargeComponent.md deleted file mode 100644 index 3ae5c98f5..000000000 --- a/docs/Model/FinancesV0/ChargeComponent.md +++ /dev/null @@ -1,10 +0,0 @@ -## ChargeComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**charge_type** | **string** | The type of charge. | [optional] -**charge_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ChargeInstrument.md b/docs/Model/FinancesV0/ChargeInstrument.md deleted file mode 100644 index 33b62580e..000000000 --- a/docs/Model/FinancesV0/ChargeInstrument.md +++ /dev/null @@ -1,11 +0,0 @@ -## ChargeInstrument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **string** | A short description of the charge instrument. | [optional] -**tail** | **string** | The account tail (trailing digits) of the charge instrument. | [optional] -**amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ChargeRefundEvent.md b/docs/Model/FinancesV0/ChargeRefundEvent.md deleted file mode 100644 index c2fca13e4..000000000 --- a/docs/Model/FinancesV0/ChargeRefundEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## ChargeRefundEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**reason_code** | **string** | The reason given for a charge refund.

Example: `SubscriptionFeeCorrection` | [optional] -**reason_code_description** | **string** | A description of the Reason Code.

Example: `SubscriptionFeeCorrection` | [optional] -**charge_refund_transactions** | [**\SellingPartnerApi\Model\FinancesV0\ChargeRefundTransaction**](ChargeRefundTransaction.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ChargeRefundTransaction.md b/docs/Model/FinancesV0/ChargeRefundTransaction.md deleted file mode 100644 index 7007005e6..000000000 --- a/docs/Model/FinancesV0/ChargeRefundTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -## ChargeRefundTransaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**charge_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**charge_type** | **string** | The type of charge. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/CouponPaymentEvent.md b/docs/Model/FinancesV0/CouponPaymentEvent.md deleted file mode 100644 index 8524b5999..000000000 --- a/docs/Model/FinancesV0/CouponPaymentEvent.md +++ /dev/null @@ -1,16 +0,0 @@ -## CouponPaymentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**coupon_id** | **string** | A coupon identifier. | [optional] -**seller_coupon_description** | **string** | The description provided by the seller when they created the coupon. | [optional] -**clip_or_redemption_count** | **int** | The number of coupon clips or redemptions. | [optional] -**payment_event_id** | **string** | A payment event identifier. | [optional] -**fee_component** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent**](FeeComponent.md) | | [optional] -**charge_component** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent**](ChargeComponent.md) | | [optional] -**total_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/Currency.md b/docs/Model/FinancesV0/Currency.md deleted file mode 100644 index d8dc25011..000000000 --- a/docs/Model/FinancesV0/Currency.md +++ /dev/null @@ -1,10 +0,0 @@ -## Currency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The three-digit currency code in ISO 4217 format. | [optional] -**currency_amount** | **float** | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/DebtRecoveryEvent.md b/docs/Model/FinancesV0/DebtRecoveryEvent.md deleted file mode 100644 index d1c94cc8b..000000000 --- a/docs/Model/FinancesV0/DebtRecoveryEvent.md +++ /dev/null @@ -1,13 +0,0 @@ -## DebtRecoveryEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**debt_recovery_type** | **string** | The debt recovery type.

Possible values:

* DebtPayment

* DebtPaymentFailure

*DebtAdjustment | [optional] -**recovery_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**over_payment_credit** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**debt_recovery_item_list** | [**\SellingPartnerApi\Model\FinancesV0\DebtRecoveryItem[]**](DebtRecoveryItem.md) | A list of debt recovery item information. | [optional] -**charge_instrument_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeInstrument[]**](ChargeInstrument.md) | A list of payment instruments. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/DebtRecoveryItem.md b/docs/Model/FinancesV0/DebtRecoveryItem.md deleted file mode 100644 index b3861ff30..000000000 --- a/docs/Model/FinancesV0/DebtRecoveryItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## DebtRecoveryItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recovery_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**original_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**group_begin_date** | **string** | A date string in ISO 8601 format. | [optional] -**group_end_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/DirectPayment.md b/docs/Model/FinancesV0/DirectPayment.md deleted file mode 100644 index 184aba86f..000000000 --- a/docs/Model/FinancesV0/DirectPayment.md +++ /dev/null @@ -1,10 +0,0 @@ -## DirectPayment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**direct_payment_type** | **string** | The type of payment.

Possible values:

* StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card.

* StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded.

* PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon.

* PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded.

* CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer.

* CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded. | [optional] -**direct_payment_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/Error.md b/docs/Model/FinancesV0/Error.md deleted file mode 100644 index c11675c4c..000000000 --- a/docs/Model/FinancesV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/FBALiquidationEvent.md b/docs/Model/FinancesV0/FBALiquidationEvent.md deleted file mode 100644 index dfa164379..000000000 --- a/docs/Model/FinancesV0/FBALiquidationEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## FBALiquidationEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**original_removal_order_id** | **string** | The identifier for the original removal order. | [optional] -**liquidation_proceeds_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**liquidation_fee_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/FailedAdhocDisbursementEventList.md b/docs/Model/FinancesV0/FailedAdhocDisbursementEventList.md deleted file mode 100644 index b509c1601..000000000 --- a/docs/Model/FinancesV0/FailedAdhocDisbursementEventList.md +++ /dev/null @@ -1,15 +0,0 @@ -## FailedAdhocDisbursementEventList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**funds_transfers_type** | **string** | The type of fund transfer.

Example \"Refund\" | [optional] -**transfer_id** | **string** | The transfer identifier. | [optional] -**disbursement_id** | **string** | The disbursement identifier. | [optional] -**payment_disbursement_type** | **string** | The type of payment for disbursement.

Example `CREDIT_CARD` | [optional] -**status** | **string** | The status of the failed `AdhocDisbursement`.

Example `HARD_DECLINED` | [optional] -**transfer_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/FeeComponent.md b/docs/Model/FinancesV0/FeeComponent.md deleted file mode 100644 index cd60f960a..000000000 --- a/docs/Model/FinancesV0/FeeComponent.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeeComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fee_type** | **string** | The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central. | [optional] -**fee_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/FinancialEventGroup.md b/docs/Model/FinancesV0/FinancialEventGroup.md deleted file mode 100644 index ca69d66dd..000000000 --- a/docs/Model/FinancesV0/FinancialEventGroup.md +++ /dev/null @@ -1,19 +0,0 @@ -## FinancialEventGroup - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**financial_event_group_id** | **string** | A unique identifier for the financial event group. | [optional] -**processing_status** | **string** | The processing status of the financial event group indicates whether the balance of the financial event group is settled.

Possible values:

* Open

* Closed | [optional] -**fund_transfer_status** | **string** | The status of the fund transfer. | [optional] -**original_total** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**converted_total** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**fund_transfer_date** | **string** | A date string in ISO 8601 format. | [optional] -**trace_id** | **string** | The trace identifier used by sellers to look up transactions externally. | [optional] -**account_tail** | **string** | The account tail of the payment instrument. | [optional] -**beginning_balance** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**financial_event_group_start** | **string** | A date string in ISO 8601 format. | [optional] -**financial_event_group_end** | **string** | A date string in ISO 8601 format. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/FinancialEvents.md b/docs/Model/FinancesV0/FinancialEvents.md deleted file mode 100644 index 719401e62..000000000 --- a/docs/Model/FinancesV0/FinancialEvents.md +++ /dev/null @@ -1,41 +0,0 @@ -## FinancialEvents - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]**](ShipmentEvent.md) | A list of shipment event information. | [optional] -**shipment_settle_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]**](ShipmentEvent.md) | A list of `ShipmentEvent` items. | [optional] -**refund_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]**](ShipmentEvent.md) | A list of shipment event information. | [optional] -**guarantee_claim_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]**](ShipmentEvent.md) | A list of shipment event information. | [optional] -**chargeback_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]**](ShipmentEvent.md) | A list of shipment event information. | [optional] -**pay_with_amazon_event_list** | [**\SellingPartnerApi\Model\FinancesV0\PayWithAmazonEvent[]**](PayWithAmazonEvent.md) | A list of events related to the seller's Pay with Amazon account. | [optional] -**service_provider_credit_event_list** | [**\SellingPartnerApi\Model\FinancesV0\SolutionProviderCreditEvent[]**](SolutionProviderCreditEvent.md) | A list of information about solution provider credits. | [optional] -**retrocharge_event_list** | [**\SellingPartnerApi\Model\FinancesV0\RetrochargeEvent[]**](RetrochargeEvent.md) | A list of information about Retrocharge or RetrochargeReversal events. | [optional] -**rental_transaction_event_list** | [**\SellingPartnerApi\Model\FinancesV0\RentalTransactionEvent[]**](RentalTransactionEvent.md) | A list of rental transaction event information. | [optional] -**product_ads_payment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ProductAdsPaymentEvent[]**](ProductAdsPaymentEvent.md) | A list of sponsored products payment events. | [optional] -**service_fee_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ServiceFeeEvent[]**](ServiceFeeEvent.md) | A list of information about service fee events. | [optional] -**seller_deal_payment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\SellerDealPaymentEvent[]**](SellerDealPaymentEvent.md) | A list of payment events for deal-related fees. | [optional] -**debt_recovery_event_list** | [**\SellingPartnerApi\Model\FinancesV0\DebtRecoveryEvent[]**](DebtRecoveryEvent.md) | A list of debt recovery event information. | [optional] -**loan_servicing_event_list** | [**\SellingPartnerApi\Model\FinancesV0\LoanServicingEvent[]**](LoanServicingEvent.md) | A list of loan servicing events. | [optional] -**adjustment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\AdjustmentEvent[]**](AdjustmentEvent.md) | A list of adjustment event information for the seller's account. | [optional] -**safet_reimbursement_event_list** | [**\SellingPartnerApi\Model\FinancesV0\SAFETReimbursementEvent[]**](SAFETReimbursementEvent.md) | A list of SAFETReimbursementEvents. | [optional] -**seller_review_enrollment_payment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\SellerReviewEnrollmentPaymentEvent[]**](SellerReviewEnrollmentPaymentEvent.md) | A list of information about fee events for the Early Reviewer Program. | [optional] -**fba_liquidation_event_list** | [**\SellingPartnerApi\Model\FinancesV0\FBALiquidationEvent[]**](FBALiquidationEvent.md) | A list of FBA inventory liquidation payment events. | [optional] -**coupon_payment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\CouponPaymentEvent[]**](CouponPaymentEvent.md) | A list of coupon payment event information. | [optional] -**imaging_services_fee_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ImagingServicesFeeEvent[]**](ImagingServicesFeeEvent.md) | A list of fee events related to Amazon Imaging services. | [optional] -**network_commingling_transaction_event_list** | [**\SellingPartnerApi\Model\FinancesV0\NetworkComminglingTransactionEvent[]**](NetworkComminglingTransactionEvent.md) | A list of network commingling transaction events. | [optional] -**affordability_expense_event_list** | [**\SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]**](AffordabilityExpenseEvent.md) | A list of expense information related to an affordability promotion. | [optional] -**affordability_expense_reversal_event_list** | [**\SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]**](AffordabilityExpenseEvent.md) | A list of expense information related to an affordability promotion. | [optional] -**removal_shipment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\RemovalShipmentEvent[]**](RemovalShipmentEvent.md) | A list of removal shipment event information. | [optional] -**removal_shipment_adjustment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\RemovalShipmentAdjustmentEvent[]**](RemovalShipmentAdjustmentEvent.md) | A comma-delimited list of Removal shipmentAdjustment details for FBA inventory. | [optional] -**trial_shipment_event_list** | [**\SellingPartnerApi\Model\FinancesV0\TrialShipmentEvent[]**](TrialShipmentEvent.md) | A list of information about trial shipment financial events. | [optional] -**tds_reimbursement_event_list** | [**\SellingPartnerApi\Model\FinancesV0\TDSReimbursementEvent[]**](TDSReimbursementEvent.md) | A list of `TDSReimbursementEvent` items. | [optional] -**adhoc_disbursement_event_list** | [**\SellingPartnerApi\Model\FinancesV0\AdhocDisbursementEvent[]**](AdhocDisbursementEvent.md) | A list of `AdhocDisbursement` events. | [optional] -**tax_withholding_event_list** | [**\SellingPartnerApi\Model\FinancesV0\TaxWithholdingEvent[]**](TaxWithholdingEvent.md) | A list of `TaxWithholding` events. | [optional] -**charge_refund_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeRefundEvent[]**](ChargeRefundEvent.md) | A list of charge refund events. | [optional] -**failed_adhoc_disbursement_event_list** | [**\SellingPartnerApi\Model\FinancesV0\FailedAdhocDisbursementEventList**](FailedAdhocDisbursementEventList.md) | | [optional] -**value_added_service_charge_event_list** | [**\SellingPartnerApi\Model\FinancesV0\ValueAddedServiceChargeEventList**](ValueAddedServiceChargeEventList.md) | | [optional] -**capacity_reservation_billing_event_list** | [**\SellingPartnerApi\Model\FinancesV0\CapacityReservationBillingEvent[]**](CapacityReservationBillingEvent.md) | A list of `CapacityReservationBillingEvent` events. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ImagingServicesFeeEvent.md b/docs/Model/FinancesV0/ImagingServicesFeeEvent.md deleted file mode 100644 index 55d50c609..000000000 --- a/docs/Model/FinancesV0/ImagingServicesFeeEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## ImagingServicesFeeEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**imaging_request_billing_item_id** | **string** | The identifier for the imaging services request. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ListFinancialEventGroupsPayload.md b/docs/Model/FinancesV0/ListFinancialEventGroupsPayload.md deleted file mode 100644 index 00e272279..000000000 --- a/docs/Model/FinancesV0/ListFinancialEventGroupsPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListFinancialEventGroupsPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**financial_event_group_list** | [**\SellingPartnerApi\Model\FinancesV0\FinancialEventGroup[]**](FinancialEventGroup.md) | A list of financial event group information. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ListFinancialEventGroupsResponse.md b/docs/Model/FinancesV0/ListFinancialEventGroupsResponse.md deleted file mode 100644 index 04e84b0e7..000000000 --- a/docs/Model/FinancesV0/ListFinancialEventGroupsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListFinancialEventGroupsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsPayload**](ListFinancialEventGroupsPayload.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FinancesV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ListFinancialEventsPayload.md b/docs/Model/FinancesV0/ListFinancialEventsPayload.md deleted file mode 100644 index 8b8a715e8..000000000 --- a/docs/Model/FinancesV0/ListFinancialEventsPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListFinancialEventsPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**financial_events** | [**\SellingPartnerApi\Model\FinancesV0\FinancialEvents**](FinancialEvents.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ListFinancialEventsResponse.md b/docs/Model/FinancesV0/ListFinancialEventsResponse.md deleted file mode 100644 index 8a5bfd235..000000000 --- a/docs/Model/FinancesV0/ListFinancialEventsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListFinancialEventsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsPayload**](ListFinancialEventsPayload.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\FinancesV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/LoanServicingEvent.md b/docs/Model/FinancesV0/LoanServicingEvent.md deleted file mode 100644 index fd29f1679..000000000 --- a/docs/Model/FinancesV0/LoanServicingEvent.md +++ /dev/null @@ -1,10 +0,0 @@ -## LoanServicingEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loan_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**source_business_event_type** | **string** | The type of event.

Possible values:

* LoanAdvance

* LoanPayment

* LoanRefund | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/NetworkComminglingTransactionEvent.md b/docs/Model/FinancesV0/NetworkComminglingTransactionEvent.md deleted file mode 100644 index ce58b2238..000000000 --- a/docs/Model/FinancesV0/NetworkComminglingTransactionEvent.md +++ /dev/null @@ -1,16 +0,0 @@ -## NetworkComminglingTransactionEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_type** | **string** | The type of network item swap.

Possible values:

* NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace.

* ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**net_co_transaction_id** | **string** | The identifier for the network item swap. | [optional] -**swap_reason** | **string** | The reason for the network item swap. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the swapped item. | [optional] -**marketplace_id** | **string** | The marketplace in which the event took place. | [optional] -**tax_exclusive_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/PayWithAmazonEvent.md b/docs/Model/FinancesV0/PayWithAmazonEvent.md deleted file mode 100644 index 559eba963..000000000 --- a/docs/Model/FinancesV0/PayWithAmazonEvent.md +++ /dev/null @@ -1,18 +0,0 @@ -## PayWithAmazonEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_order_id** | **string** | An order identifier that is specified by the seller. | [optional] -**transaction_posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**business_object_type** | **string** | The type of business object. | [optional] -**sales_channel** | **string** | The sales channel for the transaction. | [optional] -**charge** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent**](ChargeComponent.md) | | [optional] -**fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**payment_amount_type** | **string** | The type of payment.

Possible values:

* Sales | [optional] -**amount_description** | **string** | A short description of this payment event. | [optional] -**fulfillment_channel** | **string** | The fulfillment channel.

Possible values:

* AFN - Amazon Fulfillment Network (Fulfillment by Amazon)

* MFN - Merchant Fulfillment Network (self-fulfilled) | [optional] -**store_name** | **string** | The store name where the event occurred. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ProductAdsPaymentEvent.md b/docs/Model/FinancesV0/ProductAdsPaymentEvent.md deleted file mode 100644 index 342d62db7..000000000 --- a/docs/Model/FinancesV0/ProductAdsPaymentEvent.md +++ /dev/null @@ -1,14 +0,0 @@ -## ProductAdsPaymentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**transaction_type** | **string** | Indicates if the transaction is for a charge or a refund.

Possible values:

* charge - Charge

* refund - Refund | [optional] -**invoice_id** | **string** | Identifier for the invoice that the transaction appears in. | [optional] -**base_value** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_value** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**transaction_value** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/Promotion.md b/docs/Model/FinancesV0/Promotion.md deleted file mode 100644 index 177919e17..000000000 --- a/docs/Model/FinancesV0/Promotion.md +++ /dev/null @@ -1,11 +0,0 @@ -## Promotion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**promotion_type** | **string** | The type of promotion. | [optional] -**promotion_id** | **string** | The seller-specified identifier for the promotion. | [optional] -**promotion_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RemovalShipmentAdjustmentEvent.md b/docs/Model/FinancesV0/RemovalShipmentAdjustmentEvent.md deleted file mode 100644 index 0836b3594..000000000 --- a/docs/Model/FinancesV0/RemovalShipmentAdjustmentEvent.md +++ /dev/null @@ -1,14 +0,0 @@ -## RemovalShipmentAdjustmentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**adjustment_event_id** | **string** | The unique identifier for the adjustment event. | [optional] -**merchant_order_id** | **string** | The merchant removal orderId. | [optional] -**order_id** | **string** | The orderId for shipping inventory. | [optional] -**transaction_type** | **string** | The type of removal order.

Possible values:

* WHOLESALE_LIQUIDATION. | [optional] -**removal_shipment_item_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\RemovalShipmentItemAdjustment[]**](RemovalShipmentItemAdjustment.md) | A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RemovalShipmentEvent.md b/docs/Model/FinancesV0/RemovalShipmentEvent.md deleted file mode 100644 index 202de0eb8..000000000 --- a/docs/Model/FinancesV0/RemovalShipmentEvent.md +++ /dev/null @@ -1,13 +0,0 @@ -## RemovalShipmentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**merchant_order_id** | **string** | The merchant removal orderId. | [optional] -**order_id** | **string** | The identifier for the removal shipment order. | [optional] -**transaction_type** | **string** | The type of removal order.

Possible values:

* WHOLESALE_LIQUIDATION | [optional] -**removal_shipment_item_list** | [**\SellingPartnerApi\Model\FinancesV0\RemovalShipmentItem[]**](RemovalShipmentItem.md) | A list of information about removal shipment items. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RemovalShipmentItem.md b/docs/Model/FinancesV0/RemovalShipmentItem.md deleted file mode 100644 index 7426e9834..000000000 --- a/docs/Model/FinancesV0/RemovalShipmentItem.md +++ /dev/null @@ -1,16 +0,0 @@ -## RemovalShipmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**removal_shipment_item_id** | **string** | An identifier for an item in a removal shipment. | [optional] -**tax_collection_model** | **string** | The tax collection model applied to the item.

Possible values:

* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.

* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. | [optional] -**fulfillment_network_sku** | **string** | The Amazon fulfillment network SKU for the item. | [optional] -**quantity** | **int** | The quantity of the item. | [optional] -**revenue** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**fee_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_withheld** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RemovalShipmentItemAdjustment.md b/docs/Model/FinancesV0/RemovalShipmentItemAdjustment.md deleted file mode 100644 index bba2e4699..000000000 --- a/docs/Model/FinancesV0/RemovalShipmentItemAdjustment.md +++ /dev/null @@ -1,15 +0,0 @@ -## RemovalShipmentItemAdjustment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**removal_shipment_item_id** | **string** | An identifier for an item in a removal shipment. | [optional] -**tax_collection_model** | **string** | The tax collection model applied to the item.

Possible values:

* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.

* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. | [optional] -**fulfillment_network_sku** | **string** | The Amazon fulfillment network SKU for the item. | [optional] -**adjusted_quantity** | **int** | Adjusted quantity of removal shipmentItemAdjustment items. | [optional] -**revenue_adjustment** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_amount_adjustment** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_withheld_adjustment** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RentalTransactionEvent.md b/docs/Model/FinancesV0/RentalTransactionEvent.md deleted file mode 100644 index d514f0eba..000000000 --- a/docs/Model/FinancesV0/RentalTransactionEvent.md +++ /dev/null @@ -1,18 +0,0 @@ -## RentalTransactionEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**rental_event_type** | **string** | The type of rental event.

Possible values:

* RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item.

* RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period.

* RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item.

* RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item.

* RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon.

* RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge.

* RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item. | [optional] -**extension_length** | **int** | The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**rental_charge_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**rental_fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**marketplace_name** | **string** | The name of the marketplace. | [optional] -**rental_initial_value** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**rental_reimbursement** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**rental_tax_withheld_list** | [**\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]**](TaxWithheldComponent.md) | A list of information about taxes withheld. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/RetrochargeEvent.md b/docs/Model/FinancesV0/RetrochargeEvent.md deleted file mode 100644 index f230af637..000000000 --- a/docs/Model/FinancesV0/RetrochargeEvent.md +++ /dev/null @@ -1,15 +0,0 @@ -## RetrochargeEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**retrocharge_event_type** | **string** | The type of event.

Possible values:

* Retrocharge

* RetrochargeReversal | [optional] -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**base_tax** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**shipping_tax** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**marketplace_name** | **string** | The name of the marketplace where the retrocharge event occurred. | [optional] -**retrocharge_tax_withheld_list** | [**\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]**](TaxWithheldComponent.md) | A list of information about taxes withheld. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/SAFETReimbursementEvent.md b/docs/Model/FinancesV0/SAFETReimbursementEvent.md deleted file mode 100644 index 6d8993307..000000000 --- a/docs/Model/FinancesV0/SAFETReimbursementEvent.md +++ /dev/null @@ -1,13 +0,0 @@ -## SAFETReimbursementEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**safet_claim_id** | **string** | A SAFE-T claim identifier. | [optional] -**reimbursed_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**reason_code** | **string** | Indicates why the seller was reimbursed. | [optional] -**safet_reimbursement_item_list** | [**\SellingPartnerApi\Model\FinancesV0\SAFETReimbursementItem[]**](SAFETReimbursementItem.md) | A list of SAFETReimbursementItems. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/SAFETReimbursementItem.md b/docs/Model/FinancesV0/SAFETReimbursementItem.md deleted file mode 100644 index e7fd04e84..000000000 --- a/docs/Model/FinancesV0/SAFETReimbursementItem.md +++ /dev/null @@ -1,11 +0,0 @@ -## SAFETReimbursementItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_charge_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**product_description** | **string** | The description of the item as shown on the product detail page on the retail website. | [optional] -**quantity** | **string** | The number of units of the item being reimbursed. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/SellerDealPaymentEvent.md b/docs/Model/FinancesV0/SellerDealPaymentEvent.md deleted file mode 100644 index 22e7ed945..000000000 --- a/docs/Model/FinancesV0/SellerDealPaymentEvent.md +++ /dev/null @@ -1,16 +0,0 @@ -## SellerDealPaymentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**deal_id** | **string** | The unique identifier of the deal. | [optional] -**deal_description** | **string** | The internal description of the deal. | [optional] -**event_type** | **string** | The type of event: SellerDealComplete. | [optional] -**fee_type** | **string** | The type of fee: RunLightningDealFee. | [optional] -**fee_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**total_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.md b/docs/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.md deleted file mode 100644 index f7b3c19a8..000000000 --- a/docs/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.md +++ /dev/null @@ -1,14 +0,0 @@ -## SellerReviewEnrollmentPaymentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**enrollment_id** | **string** | An enrollment identifier. | [optional] -**parent_asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program. | [optional] -**fee_component** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent**](FeeComponent.md) | | [optional] -**charge_component** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent**](ChargeComponent.md) | | [optional] -**total_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ServiceFeeEvent.md b/docs/Model/FinancesV0/ServiceFeeEvent.md deleted file mode 100644 index f8036a5f4..000000000 --- a/docs/Model/FinancesV0/ServiceFeeEvent.md +++ /dev/null @@ -1,15 +0,0 @@ -## ServiceFeeEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**fee_reason** | **string** | A short description of the service fee reason. | [optional] -**fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**seller_sku** | **string** | The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. | [optional] -**fn_sku** | **string** | A unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center. | [optional] -**fee_description** | **string** | A short description of the service fee event. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ShipmentEvent.md b/docs/Model/FinancesV0/ShipmentEvent.md deleted file mode 100644 index 56dbd2855..000000000 --- a/docs/Model/FinancesV0/ShipmentEvent.md +++ /dev/null @@ -1,21 +0,0 @@ -## ShipmentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**seller_order_id** | **string** | A seller-defined identifier for an order. | [optional] -**marketplace_name** | **string** | The name of the marketplace where the event occurred. | [optional] -**order_charge_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**order_charge_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**shipment_fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**shipment_fee_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**order_fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**order_fee_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**direct_payment_list** | [**\SellingPartnerApi\Model\FinancesV0\DirectPayment[]**](DirectPayment.md) | A list of direct payment information. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**shipment_item_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentItem[]**](ShipmentItem.md) | A list of shipment items. | [optional] -**shipment_item_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\ShipmentItem[]**](ShipmentItem.md) | A list of shipment items. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ShipmentItem.md b/docs/Model/FinancesV0/ShipmentItem.md deleted file mode 100644 index 387797a83..000000000 --- a/docs/Model/FinancesV0/ShipmentItem.md +++ /dev/null @@ -1,21 +0,0 @@ -## ShipmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. | [optional] -**order_item_id** | **string** | An Amazon-defined order item identifier. | [optional] -**order_adjustment_item_id** | **string** | An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events. | [optional] -**quantity_shipped** | **int** | The number of items shipped. | [optional] -**item_charge_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**item_charge_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] -**item_fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**item_fee_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] -**item_tax_withheld_list** | [**\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]**](TaxWithheldComponent.md) | A list of information about taxes withheld. | [optional] -**promotion_list** | [**\SellingPartnerApi\Model\FinancesV0\Promotion[]**](Promotion.md) | A list of promotions. | [optional] -**promotion_adjustment_list** | [**\SellingPartnerApi\Model\FinancesV0\Promotion[]**](Promotion.md) | A list of promotions. | [optional] -**cost_of_points_granted** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**cost_of_points_returned** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/SolutionProviderCreditEvent.md b/docs/Model/FinancesV0/SolutionProviderCreditEvent.md deleted file mode 100644 index 54d681eb6..000000000 --- a/docs/Model/FinancesV0/SolutionProviderCreditEvent.md +++ /dev/null @@ -1,18 +0,0 @@ -## SolutionProviderCreditEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**provider_transaction_type** | **string** | The transaction type. | [optional] -**seller_order_id** | **string** | A seller-defined identifier for an order. | [optional] -**marketplace_id** | **string** | The identifier of the marketplace where the order was placed. | [optional] -**marketplace_country_code** | **string** | The two-letter country code of the country associated with the marketplace where the order was placed. | [optional] -**seller_id** | **string** | The Amazon-defined identifier of the seller. | [optional] -**seller_store_name** | **string** | The store name where the payment event occurred. | [optional] -**provider_id** | **string** | The Amazon-defined identifier of the solution provider. | [optional] -**provider_store_name** | **string** | The store name where the payment event occurred. | [optional] -**transaction_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**transaction_creation_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/TDSReimbursementEvent.md b/docs/Model/FinancesV0/TDSReimbursementEvent.md deleted file mode 100644 index c84bab9e9..000000000 --- a/docs/Model/FinancesV0/TDSReimbursementEvent.md +++ /dev/null @@ -1,11 +0,0 @@ -## TDSReimbursementEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**tds_order_id** | **string** | The Tax-Deducted-at-Source (TDS) identifier. | [optional] -**reimbursed_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/TaxWithheldComponent.md b/docs/Model/FinancesV0/TaxWithheldComponent.md deleted file mode 100644 index ed5de2c4c..000000000 --- a/docs/Model/FinancesV0/TaxWithheldComponent.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxWithheldComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_collection_model** | **string** | The tax collection model applied to the item.

Possible values:

* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.

* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. | [optional] -**taxes_withheld** | [**\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]**](ChargeComponent.md) | A list of charge information on the seller's account. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/TaxWithholdingEvent.md b/docs/Model/FinancesV0/TaxWithholdingEvent.md deleted file mode 100644 index c78169d95..000000000 --- a/docs/Model/FinancesV0/TaxWithholdingEvent.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxWithholdingEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**base_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**withheld_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] -**tax_withholding_period** | [**\SellingPartnerApi\Model\FinancesV0\TaxWithholdingPeriod**](TaxWithholdingPeriod.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/TaxWithholdingPeriod.md b/docs/Model/FinancesV0/TaxWithholdingPeriod.md deleted file mode 100644 index d528eaad9..000000000 --- a/docs/Model/FinancesV0/TaxWithholdingPeriod.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxWithholdingPeriod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **string** | A date string in ISO 8601 format. | [optional] -**end_date** | **string** | A date string in ISO 8601 format. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/TrialShipmentEvent.md b/docs/Model/FinancesV0/TrialShipmentEvent.md deleted file mode 100644 index cdb0cf251..000000000 --- a/docs/Model/FinancesV0/TrialShipmentEvent.md +++ /dev/null @@ -1,13 +0,0 @@ -## TrialShipmentEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined identifier for an order. | [optional] -**financial_event_group_id** | **string** | The identifier of the financial event group. | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**sku** | **string** | The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. | [optional] -**fee_list** | [**\SellingPartnerApi\Model\FinancesV0\FeeComponent[]**](FeeComponent.md) | A list of fee component information. | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/FinancesV0/ValueAddedServiceChargeEventList.md b/docs/Model/FinancesV0/ValueAddedServiceChargeEventList.md deleted file mode 100644 index b8ea5b5c2..000000000 --- a/docs/Model/FinancesV0/ValueAddedServiceChargeEventList.md +++ /dev/null @@ -1,12 +0,0 @@ -## ValueAddedServiceChargeEventList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_type** | **string** | Indicates the type of transaction.

Example: 'Other Support Service fees' | [optional] -**posted_date** | **string** | A date string in ISO 8601 format. | [optional] -**description** | **string** | A short description of the service charge event. | [optional] -**transaction_amount** | [**\SellingPartnerApi\Model\FinancesV0\Currency**](Currency.md) | | [optional] - -[[FinancesV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsRestrictionsV20210801/Error.md b/docs/Model/ListingsRestrictionsV20210801/Error.md deleted file mode 100644 index df83e87d6..000000000 --- a/docs/Model/ListingsRestrictionsV20210801/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ListingsRestrictionsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsRestrictionsV20210801/Link.md b/docs/Model/ListingsRestrictionsV20210801/Link.md deleted file mode 100644 index c49835dca..000000000 --- a/docs/Model/ListingsRestrictionsV20210801/Link.md +++ /dev/null @@ -1,12 +0,0 @@ -## Link - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource** | **string** | The URI of the related resource. | -**verb** | **string** | The HTTP verb used to interact with the related resource. | -**title** | **string** | The title of the related resource. | [optional] -**type** | **string** | The media type of the related resource. | [optional] - -[[ListingsRestrictionsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsRestrictionsV20210801/Reason.md b/docs/Model/ListingsRestrictionsV20210801/Reason.md deleted file mode 100644 index bf20906c4..000000000 --- a/docs/Model/ListingsRestrictionsV20210801/Reason.md +++ /dev/null @@ -1,11 +0,0 @@ -## Reason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **string** | A message describing the reason for the restriction. | -**reason_code** | **string** | A code indicating why the listing is restricted. | [optional] -**links** | [**\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Link[]**](Link.md) | A list of path forward links that may allow Selling Partners to remove the restriction. | [optional] - -[[ListingsRestrictionsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsRestrictionsV20210801/Restriction.md b/docs/Model/ListingsRestrictionsV20210801/Restriction.md deleted file mode 100644 index 7ad81a3e7..000000000 --- a/docs/Model/ListingsRestrictionsV20210801/Restriction.md +++ /dev/null @@ -1,11 +0,0 @@ -## Restriction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Identifies the Amazon marketplace where the restriction is enforced. | -**condition_type** | **string** | The condition that applies to the restriction. | [optional] -**reasons** | [**\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Reason[]**](Reason.md) | A list of reasons for the restriction. | [optional] - -[[ListingsRestrictionsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsRestrictionsV20210801/RestrictionList.md b/docs/Model/ListingsRestrictionsV20210801/RestrictionList.md deleted file mode 100644 index dd6899567..000000000 --- a/docs/Model/ListingsRestrictionsV20210801/RestrictionList.md +++ /dev/null @@ -1,9 +0,0 @@ -## RestrictionList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**restrictions** | [**\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Restriction[]**](Restriction.md) | | - -[[ListingsRestrictionsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/Error.md b/docs/Model/ListingsV20200901/Error.md deleted file mode 100644 index 73ed4e57f..000000000 --- a/docs/Model/ListingsV20200901/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/ErrorList.md b/docs/Model/ListingsV20200901/ErrorList.md deleted file mode 100644 index 8f65b5c6c..000000000 --- a/docs/Model/ListingsV20200901/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ListingsV20200901\Error[]**](Error.md) | | - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/Issue.md b/docs/Model/ListingsV20200901/Issue.md deleted file mode 100644 index 8bc0b245a..000000000 --- a/docs/Model/ListingsV20200901/Issue.md +++ /dev/null @@ -1,12 +0,0 @@ -## Issue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An issue code that identifies the type of issue. | -**message** | **string** | A message that describes the issue. | -**severity** | **string** | The severity of the issue. | -**attribute_name** | **string** | Name of the attribute associated with the issue, if applicable. | [optional] - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/ListingsItemPatchRequest.md b/docs/Model/ListingsV20200901/ListingsItemPatchRequest.md deleted file mode 100644 index 565e39ef6..000000000 --- a/docs/Model/ListingsV20200901/ListingsItemPatchRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListingsItemPatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_type** | **string** | The Amazon product type of the listings item. | -**patches** | [**\SellingPartnerApi\Model\ListingsV20200901\PatchOperation[]**](PatchOperation.md) | One or more JSON Patch operations to perform on the listings item. | - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/ListingsItemPutRequest.md b/docs/Model/ListingsV20200901/ListingsItemPutRequest.md deleted file mode 100644 index 306c574f0..000000000 --- a/docs/Model/ListingsV20200901/ListingsItemPutRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## ListingsItemPutRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_type** | **string** | The Amazon product type of the listings item. | -**requirements** | **string** | The name of the requirements set for the provided data. | [optional] -**attributes** | **object** | JSON object containing structured listings item attribute data keyed by attribute name. | - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/ListingsItemSubmissionResponse.md b/docs/Model/ListingsV20200901/ListingsItemSubmissionResponse.md deleted file mode 100644 index 8bc312f2b..000000000 --- a/docs/Model/ListingsV20200901/ListingsItemSubmissionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## ListingsItemSubmissionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku** | **string** | A selling partner provided identifier for an Amazon listing. | -**status** | **string** | The status of the listings item submission. | -**submission_id** | **string** | The unique identifier of the listings item submission. | -**issues** | [**\SellingPartnerApi\Model\ListingsV20200901\Issue[]**](Issue.md) | Listings item issues related to the listings item submission. | [optional] - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20200901/PatchOperation.md b/docs/Model/ListingsV20200901/PatchOperation.md deleted file mode 100644 index 45a5175f3..000000000 --- a/docs/Model/ListingsV20200901/PatchOperation.md +++ /dev/null @@ -1,11 +0,0 @@ -## PatchOperation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**op** | **string** | Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See . | -**path** | **string** | JSON Pointer path of the element to patch. See . | -**value** | **object[]** | JSON value to add, replace, or delete. | [optional] - -[[ListingsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/Error.md b/docs/Model/ListingsV20210801/Error.md deleted file mode 100644 index 8aa7e27d4..000000000 --- a/docs/Model/ListingsV20210801/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ErrorList.md b/docs/Model/ListingsV20210801/ErrorList.md deleted file mode 100644 index e3c120ce6..000000000 --- a/docs/Model/ListingsV20210801/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ListingsV20210801\Error[]**](Error.md) | | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/FulfillmentAvailability.md b/docs/Model/ListingsV20210801/FulfillmentAvailability.md deleted file mode 100644 index ca159d16f..000000000 --- a/docs/Model/ListingsV20210801/FulfillmentAvailability.md +++ /dev/null @@ -1,10 +0,0 @@ -## FulfillmentAvailability - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_channel_code** | **string** | Designates which fulfillment network will be used. | -**quantity** | **int** | The quantity of the item you are making available for sale. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/Issue.md b/docs/Model/ListingsV20210801/Issue.md deleted file mode 100644 index 6cf5d31dd..000000000 --- a/docs/Model/ListingsV20210801/Issue.md +++ /dev/null @@ -1,12 +0,0 @@ -## Issue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An issue code that identifies the type of issue. | -**message** | **string** | A message that describes the issue. | -**severity** | **string** | The severity of the issue. | -**attribute_names** | **string[]** | Names of the attributes associated with the issue, if applicable. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/Item.md b/docs/Model/ListingsV20210801/Item.md deleted file mode 100644 index d84442da7..000000000 --- a/docs/Model/ListingsV20210801/Item.md +++ /dev/null @@ -1,15 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku** | **string** | A selling partner provided identifier for an Amazon listing. | -**summaries** | [**\SellingPartnerApi\Model\ListingsV20210801\ItemSummaryByMarketplace[]**](ItemSummaryByMarketplace.md) | Summary details of a listings item. | [optional] -**attributes** | **object** | JSON object containing structured listings item attribute data keyed by attribute name. | [optional] -**issues** | [**\SellingPartnerApi\Model\ListingsV20210801\Issue[]**](Issue.md) | Issues associated with the listings item. | [optional] -**offers** | [**\SellingPartnerApi\Model\ListingsV20210801\ItemOfferByMarketplace[]**](ItemOfferByMarketplace.md) | Offer details for the listings item. | [optional] -**fulfillment_availability** | [**\SellingPartnerApi\Model\ListingsV20210801\FulfillmentAvailability[]**](FulfillmentAvailability.md) | Fulfillment availability for the listings item. | [optional] -**procurement** | [**\SellingPartnerApi\Model\ListingsV20210801\ItemProcurement[]**](ItemProcurement.md) | Procurement details of a listings item. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ItemImage.md b/docs/Model/ListingsV20210801/ItemImage.md deleted file mode 100644 index 332ae435e..000000000 --- a/docs/Model/ListingsV20210801/ItemImage.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**link** | **string** | Link, or URL, for the image. | -**height** | **int** | Height of the image in pixels. | -**width** | **int** | Width of the image in pixels. | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ItemOfferByMarketplace.md b/docs/Model/ListingsV20210801/ItemOfferByMarketplace.md deleted file mode 100644 index 6324ffd4f..000000000 --- a/docs/Model/ListingsV20210801/ItemOfferByMarketplace.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemOfferByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | Amazon marketplace identifier. | -**offer_type** | **string** | Type of offer for the listings item. | -**price** | [**\SellingPartnerApi\Model\ListingsV20210801\Money**](Money.md) | | -**points** | [**\SellingPartnerApi\Model\ListingsV20210801\Points**](Points.md) | | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ItemProcurement.md b/docs/Model/ListingsV20210801/ItemProcurement.md deleted file mode 100644 index 226a181c2..000000000 --- a/docs/Model/ListingsV20210801/ItemProcurement.md +++ /dev/null @@ -1,9 +0,0 @@ -## ItemProcurement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cost_price** | [**\SellingPartnerApi\Model\ListingsV20210801\Money**](Money.md) | | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ItemSummaryByMarketplace.md b/docs/Model/ListingsV20210801/ItemSummaryByMarketplace.md deleted file mode 100644 index f8c164c15..000000000 --- a/docs/Model/ListingsV20210801/ItemSummaryByMarketplace.md +++ /dev/null @@ -1,18 +0,0 @@ -## ItemSummaryByMarketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Identifies the Amazon marketplace for the listings item. | -**asin** | **string** | Amazon Standard Identification Number (ASIN) of the listings item. | -**product_type** | **string** | The Amazon product type of the listings item. | -**condition_type** | **string** | Identifies the condition of the listings item. | [optional] -**status** | **string[]** | Statuses that apply to the listings item. | -**fn_sku** | **string** | Fulfillment network stock keeping unit is an identifier used by Amazon fulfillment centers to identify each unique item. | [optional] -**item_name** | **string** | Name, or title, associated with an Amazon catalog item. | -**created_date** | **string** | Date the listings item was created, in ISO 8601 format. | -**last_updated_date** | **string** | Date the listings item was last updated, in ISO 8601 format. | -**main_image** | [**\SellingPartnerApi\Model\ListingsV20210801\ItemImage**](ItemImage.md) | | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ListingsItemPatchRequest.md b/docs/Model/ListingsV20210801/ListingsItemPatchRequest.md deleted file mode 100644 index 568d0ed9a..000000000 --- a/docs/Model/ListingsV20210801/ListingsItemPatchRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListingsItemPatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_type** | **string** | The Amazon product type of the listings item. | -**patches** | [**\SellingPartnerApi\Model\ListingsV20210801\PatchOperation[]**](PatchOperation.md) | One or more JSON Patch operations to perform on the listings item. | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ListingsItemPutRequest.md b/docs/Model/ListingsV20210801/ListingsItemPutRequest.md deleted file mode 100644 index 4e63389af..000000000 --- a/docs/Model/ListingsV20210801/ListingsItemPutRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## ListingsItemPutRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_type** | **string** | The Amazon product type of the listings item. | -**requirements** | **string** | The name of the requirements set for the provided data. | [optional] -**attributes** | **object** | JSON object containing structured listings item attribute data keyed by attribute name. | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/ListingsItemSubmissionResponse.md b/docs/Model/ListingsV20210801/ListingsItemSubmissionResponse.md deleted file mode 100644 index 69b521441..000000000 --- a/docs/Model/ListingsV20210801/ListingsItemSubmissionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## ListingsItemSubmissionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku** | **string** | A selling partner provided identifier for an Amazon listing. | -**status** | **string** | The status of the listings item submission. | -**submission_id** | **string** | The unique identifier of the listings item submission. | -**issues** | [**\SellingPartnerApi\Model\ListingsV20210801\Issue[]**](Issue.md) | Listings item issues related to the listings item submission. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/Money.md b/docs/Model/ListingsV20210801/Money.md deleted file mode 100644 index 585ffefbe..000000000 --- a/docs/Model/ListingsV20210801/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three-digit currency code. In ISO 4217 format. | -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation. | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/PatchOperation.md b/docs/Model/ListingsV20210801/PatchOperation.md deleted file mode 100644 index 79f1e18ce..000000000 --- a/docs/Model/ListingsV20210801/PatchOperation.md +++ /dev/null @@ -1,11 +0,0 @@ -## PatchOperation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**op** | **string** | Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See . | -**path** | **string** | JSON Pointer path of the element to patch. See . | -**value** | **object[]** | JSON value to add, replace, or delete. | [optional] - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ListingsV20210801/Points.md b/docs/Model/ListingsV20210801/Points.md deleted file mode 100644 index 0ff6798a2..000000000 --- a/docs/Model/ListingsV20210801/Points.md +++ /dev/null @@ -1,9 +0,0 @@ -## Points - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**points_number** | **int** | | - -[[ListingsV20210801 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AdditionalInputs.md b/docs/Model/MerchantFulfillmentV0/AdditionalInputs.md deleted file mode 100644 index 517b91b2b..000000000 --- a/docs/Model/MerchantFulfillmentV0/AdditionalInputs.md +++ /dev/null @@ -1,10 +0,0 @@ -## AdditionalInputs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additional_input_field_name** | **string** | The field name. | [optional] -**seller_input_definition** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\SellerInputDefinition**](SellerInputDefinition.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AdditionalSellerInput.md b/docs/Model/MerchantFulfillmentV0/AdditionalSellerInput.md deleted file mode 100644 index 9eb05b65d..000000000 --- a/docs/Model/MerchantFulfillmentV0/AdditionalSellerInput.md +++ /dev/null @@ -1,17 +0,0 @@ -## AdditionalSellerInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data_type** | **string** | The data type of the additional information. | [optional] -**value_as_string** | **string** | The value when the data type is string. | [optional] -**value_as_boolean** | **bool** | The value when the data type is boolean. | [optional] -**value_as_integer** | **int** | The value when the data type is integer. | [optional] -**value_as_timestamp** | **string** | A timestamp in ISO 8601 format. | [optional] -**value_as_address** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Address**](Address.md) | | [optional] -**value_as_weight** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight**](Weight.md) | | [optional] -**value_as_dimension** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Length**](Length.md) | | [optional] -**value_as_currency** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AdditionalSellerInputs.md b/docs/Model/MerchantFulfillmentV0/AdditionalSellerInputs.md deleted file mode 100644 index 93bb6375d..000000000 --- a/docs/Model/MerchantFulfillmentV0/AdditionalSellerInputs.md +++ /dev/null @@ -1,10 +0,0 @@ -## AdditionalSellerInputs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additional_input_field_name** | **string** | The name of the additional input field. | -**additional_seller_input** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput**](AdditionalSellerInput.md) | | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Address.md b/docs/Model/MerchantFulfillmentV0/Address.md deleted file mode 100644 index 7d3f546f3..000000000 --- a/docs/Model/MerchantFulfillmentV0/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the addressee, or business name. | -**address_line1** | **string** | The street address information. | -**address_line2** | **string** | Additional street address information. | [optional] -**address_line3** | **string** | Additional street address information. | [optional] -**district_or_county** | **string** | The district or county. | [optional] -**email** | **string** | The email address. | -**city** | **string** | The city. | -**state_or_province_code** | **string** | The state or province code. **Note.** Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China. | [optional] -**postal_code** | **string** | The zip code or postal code. | -**country_code** | **string** | The country code. A two-character country code, in ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.md b/docs/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.md deleted file mode 100644 index 7b1e39a89..000000000 --- a/docs/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.md +++ /dev/null @@ -1,10 +0,0 @@ -## AvailableCarrierWillPickUpOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_will_pick_up_option** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption**](CarrierWillPickUpOption.md) | | -**charge** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.md b/docs/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.md deleted file mode 100644 index f0b69098c..000000000 --- a/docs/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.md +++ /dev/null @@ -1,10 +0,0 @@ -## AvailableDeliveryExperienceOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivery_experience_option** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption**](DeliveryExperienceOption.md) | | -**charge** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.md b/docs/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.md deleted file mode 100644 index 3ca3bd5ed..000000000 --- a/docs/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -## AvailableShippingServiceOptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available_carrier_will_pick_up_options** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableCarrierWillPickUpOption[]**](AvailableCarrierWillPickUpOption.md) | List of available carrier pickup options. | -**available_delivery_experience_options** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableDeliveryExperienceOption[]**](AvailableDeliveryExperienceOption.md) | List of available delivery experience options. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/CancelShipmentResponse.md b/docs/Model/MerchantFulfillmentV0/CancelShipmentResponse.md deleted file mode 100644 index c1ca0c281..000000000 --- a/docs/Model/MerchantFulfillmentV0/CancelShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CancelShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment**](Shipment.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.md b/docs/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.md deleted file mode 100644 index 23200dc6a..000000000 --- a/docs/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.md +++ /dev/null @@ -1,8 +0,0 @@ -## CarrierWillPickUpOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Constraint.md b/docs/Model/MerchantFulfillmentV0/Constraint.md deleted file mode 100644 index 2d7b56cc0..000000000 --- a/docs/Model/MerchantFulfillmentV0/Constraint.md +++ /dev/null @@ -1,10 +0,0 @@ -## Constraint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**validation_reg_ex** | **string** | A regular expression. | [optional] -**validation_string** | **string** | A validation string. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/CreateShipmentRequest.md b/docs/Model/MerchantFulfillmentV0/CreateShipmentRequest.md deleted file mode 100644 index 06089d1c9..000000000 --- a/docs/Model/MerchantFulfillmentV0/CreateShipmentRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## CreateShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_request_details** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails**](ShipmentRequestDetails.md) | | -**shipping_service_id** | **string** | An Amazon-defined shipping service identifier. | -**shipping_service_offer_id** | **string** | Identifies a shipping service order made by a carrier. | [optional] -**hazmat_type** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\HazmatType**](HazmatType.md) | | [optional] -**label_format_option** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOptionRequest**](LabelFormatOptionRequest.md) | | [optional] -**shipment_level_seller_inputs_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]**](AdditionalSellerInputs.md) | A list of additional seller input pairs required to purchase shipping. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/CreateShipmentResponse.md b/docs/Model/MerchantFulfillmentV0/CreateShipmentResponse.md deleted file mode 100644 index 52fc369b4..000000000 --- a/docs/Model/MerchantFulfillmentV0/CreateShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment**](Shipment.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/CurrencyAmount.md b/docs/Model/MerchantFulfillmentV0/CurrencyAmount.md deleted file mode 100644 index b1d8c8571..000000000 --- a/docs/Model/MerchantFulfillmentV0/CurrencyAmount.md +++ /dev/null @@ -1,10 +0,0 @@ -## CurrencyAmount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three-digit currency code in ISO 4217 format. | -**amount** | **double** | The currency amount. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/DeliveryExperienceOption.md b/docs/Model/MerchantFulfillmentV0/DeliveryExperienceOption.md deleted file mode 100644 index a1856e244..000000000 --- a/docs/Model/MerchantFulfillmentV0/DeliveryExperienceOption.md +++ /dev/null @@ -1,8 +0,0 @@ -## DeliveryExperienceOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/DeliveryExperienceType.md b/docs/Model/MerchantFulfillmentV0/DeliveryExperienceType.md deleted file mode 100644 index a9cbc6bff..000000000 --- a/docs/Model/MerchantFulfillmentV0/DeliveryExperienceType.md +++ /dev/null @@ -1,8 +0,0 @@ -## DeliveryExperienceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Error.md b/docs/Model/MerchantFulfillmentV0/Error.md deleted file mode 100644 index 1681afb12..000000000 --- a/docs/Model/MerchantFulfillmentV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/FBMItem.md b/docs/Model/MerchantFulfillmentV0/FBMItem.md deleted file mode 100644 index d16a9a8ec..000000000 --- a/docs/Model/MerchantFulfillmentV0/FBMItem.md +++ /dev/null @@ -1,14 +0,0 @@ -## FBMItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_item_id** | **string** | An Amazon-defined identifier for an individual item in an order. | -**quantity** | **int** | The number of items. | -**item_weight** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight**](Weight.md) | | [optional] -**item_description** | **string** | The description of the item. | [optional] -**transparency_code_list** | **string[]** | A list of transparency codes. | [optional] -**item_level_seller_inputs_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]**](AdditionalSellerInputs.md) | A list of additional seller input pairs required to purchase shipping. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/FileContents.md b/docs/Model/MerchantFulfillmentV0/FileContents.md deleted file mode 100644 index 731466d04..000000000 --- a/docs/Model/MerchantFulfillmentV0/FileContents.md +++ /dev/null @@ -1,11 +0,0 @@ -## FileContents - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contents** | **string** | Data for printing labels, in the form of a Base64-encoded, GZip-compressed string. | -**file_type** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\FileType**](FileType.md) | | -**checksum** | **string** | An MD5 hash to validate the PDF document data, in the form of a Base64-encoded string. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/FileType.md b/docs/Model/MerchantFulfillmentV0/FileType.md deleted file mode 100644 index 76e4ef3cb..000000000 --- a/docs/Model/MerchantFulfillmentV0/FileType.md +++ /dev/null @@ -1,8 +0,0 @@ -## FileType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.md b/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.md deleted file mode 100644 index 8dce58836..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetAdditionalSellerInputsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_service_id** | **string** | An Amazon-defined shipping service identifier. | -**ship_from_address** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Address**](Address.md) | | -**order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.md b/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.md deleted file mode 100644 index d18820c0b..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAdditionalSellerInputsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResult**](GetAdditionalSellerInputsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.md b/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.md deleted file mode 100644 index b0d774b6c..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAdditionalSellerInputsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_level_fields** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]**](AdditionalInputs.md) | A list of additional inputs. | [optional] -**item_level_fields_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ItemLevelFields[]**](ItemLevelFields.md) | A list of item level fields. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.md b/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.md deleted file mode 100644 index fd27b68bd..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetEligibleShipmentServicesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_request_details** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails**](ShipmentRequestDetails.md) | | -**shipping_offering_filter** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingOfferingFilter**](ShippingOfferingFilter.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.md b/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.md deleted file mode 100644 index 08ec87b69..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetEligibleShipmentServicesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResult**](GetEligibleShipmentServicesResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.md b/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.md deleted file mode 100644 index c6df6f56b..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetEligibleShipmentServicesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_service_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService[]**](ShippingService.md) | A list of shipping services offers. | -**rejected_shipping_service_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\RejectedShippingService[]**](RejectedShippingService.md) | List of services that were for some reason unavailable for this request | [optional] -**temporarily_unavailable_carrier_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\TemporarilyUnavailableCarrier[]**](TemporarilyUnavailableCarrier.md) | A list of temporarily unavailable carriers. | [optional] -**terms_and_conditions_not_accepted_carrier_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\TermsAndConditionsNotAcceptedCarrier[]**](TermsAndConditionsNotAcceptedCarrier.md) | List of carriers whose terms and conditions were not accepted by the seller. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/GetShipmentResponse.md b/docs/Model/MerchantFulfillmentV0/GetShipmentResponse.md deleted file mode 100644 index b056bcd06..000000000 --- a/docs/Model/MerchantFulfillmentV0/GetShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment**](Shipment.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/HazmatType.md b/docs/Model/MerchantFulfillmentV0/HazmatType.md deleted file mode 100644 index dd735cad9..000000000 --- a/docs/Model/MerchantFulfillmentV0/HazmatType.md +++ /dev/null @@ -1,8 +0,0 @@ -## HazmatType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/InputTargetType.md b/docs/Model/MerchantFulfillmentV0/InputTargetType.md deleted file mode 100644 index 8a8375a81..000000000 --- a/docs/Model/MerchantFulfillmentV0/InputTargetType.md +++ /dev/null @@ -1,8 +0,0 @@ -## InputTargetType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ItemLevelFields.md b/docs/Model/MerchantFulfillmentV0/ItemLevelFields.md deleted file mode 100644 index 087523d53..000000000 --- a/docs/Model/MerchantFulfillmentV0/ItemLevelFields.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemLevelFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**additional_inputs** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]**](AdditionalInputs.md) | A list of additional inputs. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Label.md b/docs/Model/MerchantFulfillmentV0/Label.md deleted file mode 100644 index 63b07628d..000000000 --- a/docs/Model/MerchantFulfillmentV0/Label.md +++ /dev/null @@ -1,13 +0,0 @@ -## Label - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**custom_text_for_label** | **string** | Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelDimensions**](LabelDimensions.md) | | -**file_contents** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\FileContents**](FileContents.md) | | -**label_format** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat**](LabelFormat.md) | | [optional] -**standard_id_for_label** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel**](StandardIdForLabel.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/LabelCustomization.md b/docs/Model/MerchantFulfillmentV0/LabelCustomization.md deleted file mode 100644 index 50f7d2b85..000000000 --- a/docs/Model/MerchantFulfillmentV0/LabelCustomization.md +++ /dev/null @@ -1,10 +0,0 @@ -## LabelCustomization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**custom_text_for_label** | **string** | Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. | [optional] -**standard_id_for_label** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel**](StandardIdForLabel.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/LabelDimensions.md b/docs/Model/MerchantFulfillmentV0/LabelDimensions.md deleted file mode 100644 index 09ffca4a1..000000000 --- a/docs/Model/MerchantFulfillmentV0/LabelDimensions.md +++ /dev/null @@ -1,11 +0,0 @@ -## LabelDimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **float** | A label dimension. | -**width** | **float** | A label dimension. | -**unit** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength**](UnitOfLength.md) | | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/LabelFormat.md b/docs/Model/MerchantFulfillmentV0/LabelFormat.md deleted file mode 100644 index 1cd0ba6a7..000000000 --- a/docs/Model/MerchantFulfillmentV0/LabelFormat.md +++ /dev/null @@ -1,8 +0,0 @@ -## LabelFormat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/LabelFormatOption.md b/docs/Model/MerchantFulfillmentV0/LabelFormatOption.md deleted file mode 100644 index 66636b649..000000000 --- a/docs/Model/MerchantFulfillmentV0/LabelFormatOption.md +++ /dev/null @@ -1,10 +0,0 @@ -## LabelFormatOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**include_packing_slip_with_label** | **bool** | When true, include a packing slip with the label. | [optional] -**label_format** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat**](LabelFormat.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.md b/docs/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.md deleted file mode 100644 index 6e8d90e14..000000000 --- a/docs/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## LabelFormatOptionRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**include_packing_slip_with_label** | **bool** | When true, include a packing slip with the label. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Length.md b/docs/Model/MerchantFulfillmentV0/Length.md deleted file mode 100644 index 1dcfcc9e8..000000000 --- a/docs/Model/MerchantFulfillmentV0/Length.md +++ /dev/null @@ -1,10 +0,0 @@ -## Length - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **float** | The value in units. | [optional] -**unit** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength**](UnitOfLength.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/PackageDimensions.md b/docs/Model/MerchantFulfillmentV0/PackageDimensions.md deleted file mode 100644 index 7949d393d..000000000 --- a/docs/Model/MerchantFulfillmentV0/PackageDimensions.md +++ /dev/null @@ -1,13 +0,0 @@ -## PackageDimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **double** | | [optional] -**width** | **double** | | [optional] -**height** | **double** | | [optional] -**unit** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength**](UnitOfLength.md) | | [optional] -**predefined_package_dimensions** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\PredefinedPackageDimensions**](PredefinedPackageDimensions.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.md b/docs/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.md deleted file mode 100644 index 92215f4ce..000000000 --- a/docs/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.md +++ /dev/null @@ -1,8 +0,0 @@ -## PredefinedPackageDimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/RejectedShippingService.md b/docs/Model/MerchantFulfillmentV0/RejectedShippingService.md deleted file mode 100644 index f4a05c94f..000000000 --- a/docs/Model/MerchantFulfillmentV0/RejectedShippingService.md +++ /dev/null @@ -1,13 +0,0 @@ -## RejectedShippingService - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The rejected shipping carrier name. e.g. USPS | -**shipping_service_name** | **string** | The rejected shipping service localized name. e.g. FedEx Standard Overnight | -**shipping_service_id** | **string** | An Amazon-defined shipping service identifier. | -**rejection_reason_code** | **string** | A reason code meant to be consumed programatically. e.g. CARRIER_CANNOT_SHIP_TO_POBOX | -**rejection_reason_message** | **string** | A localized human readable description of the rejected reason. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/SellerInputDefinition.md b/docs/Model/MerchantFulfillmentV0/SellerInputDefinition.md deleted file mode 100644 index 2ed208aa5..000000000 --- a/docs/Model/MerchantFulfillmentV0/SellerInputDefinition.md +++ /dev/null @@ -1,15 +0,0 @@ -## SellerInputDefinition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_required** | **bool** | When true, the additional input field is required. | -**data_type** | **string** | The data type of the additional input field. | -**constraints** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Constraint[]**](Constraint.md) | List of constraints. | -**input_display_text** | **string** | The display text for the additional input field. | -**input_target** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\InputTargetType**](InputTargetType.md) | | [optional] -**stored_value** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput**](AdditionalSellerInput.md) | | -**restricted_set_values** | **string[]** | The set of fixed values in an additional seller input. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Shipment.md b/docs/Model/MerchantFulfillmentV0/Shipment.md deleted file mode 100644 index 1cffa9a86..000000000 --- a/docs/Model/MerchantFulfillmentV0/Shipment.md +++ /dev/null @@ -1,23 +0,0 @@ -## Shipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | An Amazon-defined shipment identifier. | -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**seller_order_id** | **string** | A seller-defined order identifier. | [optional] -**item_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[]**](FBMItem.md) | The list of items to be included in a shipment. | -**ship_from_address** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Address**](Address.md) | | -**ship_to_address** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Address**](Address.md) | | -**package_dimensions** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions**](PackageDimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight**](Weight.md) | | -**insurance** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | -**shipping_service** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService**](ShippingService.md) | | -**label** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Label**](Label.md) | | -**status** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentStatus**](ShipmentStatus.md) | | -**tracking_id** | **string** | The shipment tracking identifier provided by the carrier. | [optional] -**created_date** | **string** | A timestamp in ISO 8601 format. | -**last_updated_date** | **string** | A timestamp in ISO 8601 format. | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ShipmentRequestDetails.md b/docs/Model/MerchantFulfillmentV0/ShipmentRequestDetails.md deleted file mode 100644 index d472ba44a..000000000 --- a/docs/Model/MerchantFulfillmentV0/ShipmentRequestDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -## ShipmentRequestDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**seller_order_id** | **string** | A seller-defined order identifier. | [optional] -**item_list** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[]**](FBMItem.md) | The list of items to be included in a shipment. | -**ship_from_address** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Address**](Address.md) | | -**package_dimensions** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions**](PackageDimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight**](Weight.md) | | -**must_arrive_by_date** | **string** | A timestamp in ISO 8601 format. | [optional] -**ship_date** | **string** | A timestamp in ISO 8601 format. | [optional] -**shipping_service_options** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions**](ShippingServiceOptions.md) | | -**label_customization** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelCustomization**](LabelCustomization.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ShipmentStatus.md b/docs/Model/MerchantFulfillmentV0/ShipmentStatus.md deleted file mode 100644 index b6b215382..000000000 --- a/docs/Model/MerchantFulfillmentV0/ShipmentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShipmentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ShippingOfferingFilter.md b/docs/Model/MerchantFulfillmentV0/ShippingOfferingFilter.md deleted file mode 100644 index 20e30367a..000000000 --- a/docs/Model/MerchantFulfillmentV0/ShippingOfferingFilter.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShippingOfferingFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**include_packing_slip_with_label** | **bool** | When true, include a packing slip with the label. | [optional] -**include_complex_shipping_options** | **bool** | When true, include complex shipping options. | [optional] -**carrier_will_pick_up** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption**](CarrierWillPickUpOption.md) | | [optional] -**delivery_experience** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption**](DeliveryExperienceOption.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ShippingService.md b/docs/Model/MerchantFulfillmentV0/ShippingService.md deleted file mode 100644 index beed8ea9d..000000000 --- a/docs/Model/MerchantFulfillmentV0/ShippingService.md +++ /dev/null @@ -1,21 +0,0 @@ -## ShippingService - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_service_name** | **string** | A plain text representation of a carrier's shipping service. For example, \"UPS Ground\" or \"FedEx Standard Overnight\". | -**carrier_name** | **string** | The name of the carrier. | -**shipping_service_id** | **string** | An Amazon-defined shipping service identifier. | -**shipping_service_offer_id** | **string** | An Amazon-defined shipping service offer identifier. | -**ship_date** | **string** | A timestamp in ISO 8601 format. | -**earliest_estimated_delivery_date** | **string** | A timestamp in ISO 8601 format. | [optional] -**latest_estimated_delivery_date** | **string** | A timestamp in ISO 8601 format. | [optional] -**rate** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | -**shipping_service_options** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions**](ShippingServiceOptions.md) | | -**available_shipping_service_options** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableShippingServiceOptions**](AvailableShippingServiceOptions.md) | | [optional] -**available_label_formats** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat[]**](LabelFormat.md) | List of label formats. | [optional] -**available_format_options_for_label** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOption[]**](LabelFormatOption.md) | The available label formats. | [optional] -**requires_additional_seller_inputs** | **bool** | When true, additional seller inputs are required. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/ShippingServiceOptions.md b/docs/Model/MerchantFulfillmentV0/ShippingServiceOptions.md deleted file mode 100644 index 579e9e291..000000000 --- a/docs/Model/MerchantFulfillmentV0/ShippingServiceOptions.md +++ /dev/null @@ -1,13 +0,0 @@ -## ShippingServiceOptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivery_experience** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceType**](DeliveryExperienceType.md) | | -**declared_value** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount**](CurrencyAmount.md) | | [optional] -**carrier_will_pick_up** | **bool** | 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). | -**carrier_will_pick_up_option** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption**](CarrierWillPickUpOption.md) | | [optional] -**label_format** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat**](LabelFormat.md) | | [optional] - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/StandardIdForLabel.md b/docs/Model/MerchantFulfillmentV0/StandardIdForLabel.md deleted file mode 100644 index b02df825b..000000000 --- a/docs/Model/MerchantFulfillmentV0/StandardIdForLabel.md +++ /dev/null @@ -1,8 +0,0 @@ -## StandardIdForLabel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.md b/docs/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.md deleted file mode 100644 index 37d3fc723..000000000 --- a/docs/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.md +++ /dev/null @@ -1,9 +0,0 @@ -## TemporarilyUnavailableCarrier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The name of the carrier. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.md b/docs/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.md deleted file mode 100644 index 759beaa32..000000000 --- a/docs/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.md +++ /dev/null @@ -1,9 +0,0 @@ -## TermsAndConditionsNotAcceptedCarrier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carrier_name** | **string** | The name of the carrier. | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/UnitOfLength.md b/docs/Model/MerchantFulfillmentV0/UnitOfLength.md deleted file mode 100644 index aa85b29d2..000000000 --- a/docs/Model/MerchantFulfillmentV0/UnitOfLength.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfLength - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/UnitOfWeight.md b/docs/Model/MerchantFulfillmentV0/UnitOfWeight.md deleted file mode 100644 index 87452d9ca..000000000 --- a/docs/Model/MerchantFulfillmentV0/UnitOfWeight.md +++ /dev/null @@ -1,8 +0,0 @@ -## UnitOfWeight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MerchantFulfillmentV0/Weight.md b/docs/Model/MerchantFulfillmentV0/Weight.md deleted file mode 100644 index 72ba3fc9b..000000000 --- a/docs/Model/MerchantFulfillmentV0/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **double** | The weight value. | -**unit** | [**\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfWeight**](UnitOfWeight.md) | | - -[[MerchantFulfillmentV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/Attachment.md b/docs/Model/MessagingV1/Attachment.md deleted file mode 100644 index f0015d441..000000000 --- a/docs/Model/MessagingV1/Attachment.md +++ /dev/null @@ -1,10 +0,0 @@ -## Attachment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload_destination_id** | **string** | The identifier of the upload destination. Get this value by calling the [createUploadDestinationForResource](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Uploads API. | -**file_name** | **string** | The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded. | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateAmazonMotorsRequest.md b/docs/Model/MessagingV1/CreateAmazonMotorsRequest.md deleted file mode 100644 index d048e4ad7..000000000 --- a/docs/Model/MessagingV1/CreateAmazonMotorsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateAmazonMotorsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateAmazonMotorsResponse.md b/docs/Model/MessagingV1/CreateAmazonMotorsResponse.md deleted file mode 100644 index 3ad3e7362..000000000 --- a/docs/Model/MessagingV1/CreateAmazonMotorsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateAmazonMotorsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.md b/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.md deleted file mode 100644 index a4f487de6..000000000 --- a/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateConfirmCustomizationDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to customization details are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.md b/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.md deleted file mode 100644 index 547a27232..000000000 --- a/docs/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmCustomizationDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.md b/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.md deleted file mode 100644 index 4eb83b453..000000000 --- a/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmDeliveryDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to order delivery are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.md b/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.md deleted file mode 100644 index 9624c9b5f..000000000 --- a/docs/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmDeliveryDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmOrderDetailsRequest.md b/docs/Model/MessagingV1/CreateConfirmOrderDetailsRequest.md deleted file mode 100644 index 0d5979e3f..000000000 --- a/docs/Model/MessagingV1/CreateConfirmOrderDetailsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmOrderDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to order completion are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmOrderDetailsResponse.md b/docs/Model/MessagingV1/CreateConfirmOrderDetailsResponse.md deleted file mode 100644 index 874b2c44f..000000000 --- a/docs/Model/MessagingV1/CreateConfirmOrderDetailsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmOrderDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmServiceDetailsRequest.md b/docs/Model/MessagingV1/CreateConfirmServiceDetailsRequest.md deleted file mode 100644 index ab3934a7b..000000000 --- a/docs/Model/MessagingV1/CreateConfirmServiceDetailsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmServiceDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to Home Service calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateConfirmServiceDetailsResponse.md b/docs/Model/MessagingV1/CreateConfirmServiceDetailsResponse.md deleted file mode 100644 index 4e3dcf459..000000000 --- a/docs/Model/MessagingV1/CreateConfirmServiceDetailsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateConfirmServiceDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateDigitalAccessKeyRequest.md b/docs/Model/MessagingV1/CreateDigitalAccessKeyRequest.md deleted file mode 100644 index 3634514ce..000000000 --- a/docs/Model/MessagingV1/CreateDigitalAccessKeyRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateDigitalAccessKeyRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateDigitalAccessKeyResponse.md b/docs/Model/MessagingV1/CreateDigitalAccessKeyResponse.md deleted file mode 100644 index 1088269d1..000000000 --- a/docs/Model/MessagingV1/CreateDigitalAccessKeyResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateDigitalAccessKeyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateLegalDisclosureRequest.md b/docs/Model/MessagingV1/CreateLegalDisclosureRequest.md deleted file mode 100644 index fb6a80892..000000000 --- a/docs/Model/MessagingV1/CreateLegalDisclosureRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateLegalDisclosureRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateLegalDisclosureResponse.md b/docs/Model/MessagingV1/CreateLegalDisclosureResponse.md deleted file mode 100644 index ac764bb3f..000000000 --- a/docs/Model/MessagingV1/CreateLegalDisclosureResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateLegalDisclosureResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.md b/docs/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.md deleted file mode 100644 index d5d14c9a9..000000000 --- a/docs/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateNegativeFeedbackRemovalResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateUnexpectedProblemRequest.md b/docs/Model/MessagingV1/CreateUnexpectedProblemRequest.md deleted file mode 100644 index fa5fbac69..000000000 --- a/docs/Model/MessagingV1/CreateUnexpectedProblemRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateUnexpectedProblemRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **string** | The text to be sent to the buyer. Only links related to unexpected problem calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateUnexpectedProblemResponse.md b/docs/Model/MessagingV1/CreateUnexpectedProblemResponse.md deleted file mode 100644 index bdae389c4..000000000 --- a/docs/Model/MessagingV1/CreateUnexpectedProblemResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateUnexpectedProblemResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateWarrantyRequest.md b/docs/Model/MessagingV1/CreateWarrantyRequest.md deleted file mode 100644 index b58a4ed56..000000000 --- a/docs/Model/MessagingV1/CreateWarrantyRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateWarrantyRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. | [optional] -**coverage_start_date** | **string** | The start date of the warranty coverage to include in the message to the buyer. Must be in ISO 8601 format. | [optional] -**coverage_end_date** | **string** | The end date of the warranty coverage to include in the message to the buyer. Must be in ISO 8601 format. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/CreateWarrantyResponse.md b/docs/Model/MessagingV1/CreateWarrantyResponse.md deleted file mode 100644 index c63536f4a..000000000 --- a/docs/Model/MessagingV1/CreateWarrantyResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateWarrantyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/Error.md b/docs/Model/MessagingV1/Error.md deleted file mode 100644 index 0bbe0e17d..000000000 --- a/docs/Model/MessagingV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetAttributesResponse.md b/docs/Model/MessagingV1/GetAttributesResponse.md deleted file mode 100644 index d69b2110c..000000000 --- a/docs/Model/MessagingV1/GetAttributesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAttributesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer** | [**\SellingPartnerApi\Model\MessagingV1\GetAttributesResponseBuyer**](GetAttributesResponseBuyer.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetAttributesResponseBuyer.md b/docs/Model/MessagingV1/GetAttributesResponseBuyer.md deleted file mode 100644 index 84bc3b300..000000000 --- a/docs/Model/MessagingV1/GetAttributesResponseBuyer.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetAttributesResponseBuyer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**locale** | **string** | The buyer's language of preference, indicated with a locale-specific language tag. Examples: \"en-US\", \"zh-CN\", and \"en-GB\". | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionResponse.md b/docs/Model/MessagingV1/GetMessagingActionResponse.md deleted file mode 100644 index 04ab9013f..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetMessagingActionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseLinks**](GetMessagingActionResponseLinks.md) | | [optional] -**_embedded** | [**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseEmbedded**](GetMessagingActionResponseEmbedded.md) | | [optional] -**payload** | [**\SellingPartnerApi\Model\MessagingV1\MessagingAction**](MessagingAction.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionResponseEmbedded.md b/docs/Model/MessagingV1/GetMessagingActionResponseEmbedded.md deleted file mode 100644 index 35986e649..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionResponseEmbedded.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetMessagingActionResponseEmbedded - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schema** | [**\SellingPartnerApi\Model\MessagingV1\GetSchemaResponse**](GetSchemaResponse.md) | | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionResponseLinks.md b/docs/Model/MessagingV1/GetMessagingActionResponseLinks.md deleted file mode 100644 index 24e613a40..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionResponseLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetMessagingActionResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\MessagingV1\LinkObject**](LinkObject.md) | | -**schema** | [**\SellingPartnerApi\Model\MessagingV1\LinkObject**](LinkObject.md) | | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponse.md b/docs/Model/MessagingV1/GetMessagingActionsForOrderResponse.md deleted file mode 100644 index 6b05b7a4e..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetMessagingActionsForOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseLinks**](GetMessagingActionsForOrderResponseLinks.md) | | [optional] -**_embedded** | [**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseEmbedded**](GetMessagingActionsForOrderResponseEmbedded.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.md b/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.md deleted file mode 100644 index b144431be..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetMessagingActionsForOrderResponseEmbedded - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | [**\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponse[]**](GetMessagingActionResponse.md) | | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.md b/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.md deleted file mode 100644 index 2530971db..000000000 --- a/docs/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetMessagingActionsForOrderResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\MessagingV1\LinkObject**](LinkObject.md) | | -**actions** | [**\SellingPartnerApi\Model\MessagingV1\LinkObject[]**](LinkObject.md) | Eligible actions for the specified amazonOrderId. | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetSchemaResponse.md b/docs/Model/MessagingV1/GetSchemaResponse.md deleted file mode 100644 index 45066f8ad..000000000 --- a/docs/Model/MessagingV1/GetSchemaResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetSchemaResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\MessagingV1\GetSchemaResponseLinks**](GetSchemaResponseLinks.md) | | [optional] -**payload** | **map[string,object]** | A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema. | [optional] -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/GetSchemaResponseLinks.md b/docs/Model/MessagingV1/GetSchemaResponseLinks.md deleted file mode 100644 index f348df255..000000000 --- a/docs/Model/MessagingV1/GetSchemaResponseLinks.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetSchemaResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\MessagingV1\LinkObject**](LinkObject.md) | | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/InvoiceRequest.md b/docs/Model/MessagingV1/InvoiceRequest.md deleted file mode 100644 index 18777170b..000000000 --- a/docs/Model/MessagingV1/InvoiceRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## InvoiceRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attachments** | [**\SellingPartnerApi\Model\MessagingV1\Attachment[]**](Attachment.md) | Attachments to include in the message to the buyer. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/InvoiceResponse.md b/docs/Model/MessagingV1/InvoiceResponse.md deleted file mode 100644 index 6ef5f50ed..000000000 --- a/docs/Model/MessagingV1/InvoiceResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## InvoiceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\MessagingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/LinkObject.md b/docs/Model/MessagingV1/LinkObject.md deleted file mode 100644 index 5e6cc92b6..000000000 --- a/docs/Model/MessagingV1/LinkObject.md +++ /dev/null @@ -1,10 +0,0 @@ -## LinkObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **string** | A URI for this object. | -**name** | **string** | An identifier for this object. | [optional] - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/MessagingV1/MessagingAction.md b/docs/Model/MessagingV1/MessagingAction.md deleted file mode 100644 index 865dab56b..000000000 --- a/docs/Model/MessagingV1/MessagingAction.md +++ /dev/null @@ -1,9 +0,0 @@ -## MessagingAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | - -[[MessagingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/AggregationFilter.md b/docs/Model/NotificationsV1/AggregationFilter.md deleted file mode 100644 index 9103b3ead..000000000 --- a/docs/Model/NotificationsV1/AggregationFilter.md +++ /dev/null @@ -1,9 +0,0 @@ -## AggregationFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregation_settings** | [**\SellingPartnerApi\Model\NotificationsV1\AggregationSettings**](AggregationSettings.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/AggregationSettings.md b/docs/Model/NotificationsV1/AggregationSettings.md deleted file mode 100644 index be6d3a75c..000000000 --- a/docs/Model/NotificationsV1/AggregationSettings.md +++ /dev/null @@ -1,9 +0,0 @@ -## AggregationSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregation_time_period** | [**\SellingPartnerApi\Model\NotificationsV1\AggregationTimePeriod**](AggregationTimePeriod.md) | | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/AggregationTimePeriod.md b/docs/Model/NotificationsV1/AggregationTimePeriod.md deleted file mode 100644 index d23a10d2c..000000000 --- a/docs/Model/NotificationsV1/AggregationTimePeriod.md +++ /dev/null @@ -1,8 +0,0 @@ -## AggregationTimePeriod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/CreateDestinationRequest.md b/docs/Model/NotificationsV1/CreateDestinationRequest.md deleted file mode 100644 index 95298fa23..000000000 --- a/docs/Model/NotificationsV1/CreateDestinationRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateDestinationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_specification** | [**\SellingPartnerApi\Model\NotificationsV1\DestinationResourceSpecification**](DestinationResourceSpecification.md) | | -**name** | **string** | A developer-defined name to help identify this destination. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/CreateDestinationResponse.md b/docs/Model/NotificationsV1/CreateDestinationResponse.md deleted file mode 100644 index 2ed3d8b13..000000000 --- a/docs/Model/NotificationsV1/CreateDestinationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateDestinationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Destination**](Destination.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/CreateSubscriptionRequest.md b/docs/Model/NotificationsV1/CreateSubscriptionRequest.md deleted file mode 100644 index 6a0643f1e..000000000 --- a/docs/Model/NotificationsV1/CreateSubscriptionRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateSubscriptionRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload_version** | **string** | The version of the payload object to be used in the notification. | [optional] -**destination_id** | **string** | The identifier for the destination where notifications will be delivered. | [optional] -**processing_directive** | [**\SellingPartnerApi\Model\NotificationsV1\ProcessingDirective**](ProcessingDirective.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/CreateSubscriptionResponse.md b/docs/Model/NotificationsV1/CreateSubscriptionResponse.md deleted file mode 100644 index 37be85a17..000000000 --- a/docs/Model/NotificationsV1/CreateSubscriptionResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateSubscriptionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Subscription**](Subscription.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/DeleteDestinationResponse.md b/docs/Model/NotificationsV1/DeleteDestinationResponse.md deleted file mode 100644 index 56b51f966..000000000 --- a/docs/Model/NotificationsV1/DeleteDestinationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## DeleteDestinationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/DeleteSubscriptionByIdResponse.md b/docs/Model/NotificationsV1/DeleteSubscriptionByIdResponse.md deleted file mode 100644 index c02067e81..000000000 --- a/docs/Model/NotificationsV1/DeleteSubscriptionByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## DeleteSubscriptionByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/Destination.md b/docs/Model/NotificationsV1/Destination.md deleted file mode 100644 index 779fc8756..000000000 --- a/docs/Model/NotificationsV1/Destination.md +++ /dev/null @@ -1,11 +0,0 @@ -## Destination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The developer-defined name for this destination. | -**destination_id** | **string** | The destination identifier generated when you created the destination. | -**resource** | [**\SellingPartnerApi\Model\NotificationsV1\DestinationResource**](DestinationResource.md) | | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/DestinationResource.md b/docs/Model/NotificationsV1/DestinationResource.md deleted file mode 100644 index 0d8d526ca..000000000 --- a/docs/Model/NotificationsV1/DestinationResource.md +++ /dev/null @@ -1,10 +0,0 @@ -## DestinationResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sqs** | [**\SellingPartnerApi\Model\NotificationsV1\SqsResource**](SqsResource.md) | | [optional] -**event_bridge** | [**\SellingPartnerApi\Model\NotificationsV1\EventBridgeResource**](EventBridgeResource.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/DestinationResourceSpecification.md b/docs/Model/NotificationsV1/DestinationResourceSpecification.md deleted file mode 100644 index b32a3953c..000000000 --- a/docs/Model/NotificationsV1/DestinationResourceSpecification.md +++ /dev/null @@ -1,10 +0,0 @@ -## DestinationResourceSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sqs** | [**\SellingPartnerApi\Model\NotificationsV1\SqsResource**](SqsResource.md) | | [optional] -**event_bridge** | [**\SellingPartnerApi\Model\NotificationsV1\EventBridgeResourceSpecification**](EventBridgeResourceSpecification.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/Error.md b/docs/Model/NotificationsV1/Error.md deleted file mode 100644 index 555ff1dcd..000000000 --- a/docs/Model/NotificationsV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/EventBridgeResource.md b/docs/Model/NotificationsV1/EventBridgeResource.md deleted file mode 100644 index e12fd0206..000000000 --- a/docs/Model/NotificationsV1/EventBridgeResource.md +++ /dev/null @@ -1,11 +0,0 @@ -## EventBridgeResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the partner event source associated with the destination. | -**region** | **string** | The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https://docs.aws.amazon.com/general/latest/gr/ev.html. | -**account_id** | **string** | The identifier for the AWS account that is responsible for charges related to receiving notifications. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/EventBridgeResourceSpecification.md b/docs/Model/NotificationsV1/EventBridgeResourceSpecification.md deleted file mode 100644 index 9fd86585f..000000000 --- a/docs/Model/NotificationsV1/EventBridgeResourceSpecification.md +++ /dev/null @@ -1,10 +0,0 @@ -## EventBridgeResourceSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**region** | **string** | The AWS region in which you will be receiving the notifications. | -**account_id** | **string** | The identifier for the AWS account that is responsible for charges related to receiving notifications. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/EventFilter.md b/docs/Model/NotificationsV1/EventFilter.md deleted file mode 100644 index 1eae23fdf..000000000 --- a/docs/Model/NotificationsV1/EventFilter.md +++ /dev/null @@ -1,12 +0,0 @@ -## EventFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregation_settings** | [**\SellingPartnerApi\Model\NotificationsV1\AggregationSettings**](AggregationSettings.md) | | [optional] -**marketplace_ids** | **string[]** | A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list. | [optional] -**order_change_types** | [**\SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]**](OrderChangeTypeEnum.md) | A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list. | [optional] -**event_filter_type** | **string** | An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/EventFilterAllOf.md b/docs/Model/NotificationsV1/EventFilterAllOf.md deleted file mode 100644 index d07826bfb..000000000 --- a/docs/Model/NotificationsV1/EventFilterAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## EventFilterAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_filter_type** | **string** | An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/GetDestinationResponse.md b/docs/Model/NotificationsV1/GetDestinationResponse.md deleted file mode 100644 index e76f95f23..000000000 --- a/docs/Model/NotificationsV1/GetDestinationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetDestinationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Destination**](Destination.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/GetDestinationsResponse.md b/docs/Model/NotificationsV1/GetDestinationsResponse.md deleted file mode 100644 index 45cc60618..000000000 --- a/docs/Model/NotificationsV1/GetDestinationsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetDestinationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Destination[]**](Destination.md) | A list of destinations. | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/GetSubscriptionByIdResponse.md b/docs/Model/NotificationsV1/GetSubscriptionByIdResponse.md deleted file mode 100644 index 908be4e8a..000000000 --- a/docs/Model/NotificationsV1/GetSubscriptionByIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetSubscriptionByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Subscription**](Subscription.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/GetSubscriptionResponse.md b/docs/Model/NotificationsV1/GetSubscriptionResponse.md deleted file mode 100644 index 5f6d8c17c..000000000 --- a/docs/Model/NotificationsV1/GetSubscriptionResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetSubscriptionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\NotificationsV1\Subscription**](Subscription.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\NotificationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/MarketplaceFilter.md b/docs/Model/NotificationsV1/MarketplaceFilter.md deleted file mode 100644 index c588584b1..000000000 --- a/docs/Model/NotificationsV1/MarketplaceFilter.md +++ /dev/null @@ -1,9 +0,0 @@ -## MarketplaceFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_ids** | **string[]** | A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/OrderChangeTypeEnum.md b/docs/Model/NotificationsV1/OrderChangeTypeEnum.md deleted file mode 100644 index e9c205336..000000000 --- a/docs/Model/NotificationsV1/OrderChangeTypeEnum.md +++ /dev/null @@ -1,8 +0,0 @@ -## OrderChangeTypeEnum - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/OrderChangeTypeFilter.md b/docs/Model/NotificationsV1/OrderChangeTypeFilter.md deleted file mode 100644 index 64b3ba305..000000000 --- a/docs/Model/NotificationsV1/OrderChangeTypeFilter.md +++ /dev/null @@ -1,9 +0,0 @@ -## OrderChangeTypeFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_change_types** | [**\SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]**](OrderChangeTypeEnum.md) | A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list. | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/ProcessingDirective.md b/docs/Model/NotificationsV1/ProcessingDirective.md deleted file mode 100644 index 92e532948..000000000 --- a/docs/Model/NotificationsV1/ProcessingDirective.md +++ /dev/null @@ -1,9 +0,0 @@ -## ProcessingDirective - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_filter** | [**\SellingPartnerApi\Model\NotificationsV1\EventFilter**](EventFilter.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/SqsResource.md b/docs/Model/NotificationsV1/SqsResource.md deleted file mode 100644 index 4163618e8..000000000 --- a/docs/Model/NotificationsV1/SqsResource.md +++ /dev/null @@ -1,9 +0,0 @@ -## SqsResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arn** | **string** | The Amazon Resource Name (ARN) associated with the SQS queue. | - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/NotificationsV1/Subscription.md b/docs/Model/NotificationsV1/Subscription.md deleted file mode 100644 index 0348a052b..000000000 --- a/docs/Model/NotificationsV1/Subscription.md +++ /dev/null @@ -1,12 +0,0 @@ -## Subscription - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subscription_id** | **string** | The subscription identifier generated when the subscription is created. | -**payload_version** | **string** | The version of the payload object to be used in the notification. | -**destination_id** | **string** | The identifier for the destination where notifications will be delivered. | -**processing_directive** | [**\SellingPartnerApi\Model\NotificationsV1\ProcessingDirective**](ProcessingDirective.md) | | [optional] - -[[NotificationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/Address.md b/docs/Model/OrdersV0/Address.md deleted file mode 100644 index b5cf5cfd4..000000000 --- a/docs/Model/OrdersV0/Address.md +++ /dev/null @@ -1,21 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name. | -**address_line1** | **string** | The street address. | [optional] -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city | [optional] -**county** | **string** | The county. | [optional] -**district** | **string** | The district. | [optional] -**state_or_region** | **string** | The state or region. | [optional] -**municipality** | **string** | The municipality. | [optional] -**postal_code** | **string** | The postal code. | [optional] -**country_code** | **string** | The country code. A two-character country code, in ISO 3166-1 alpha-2 format. | [optional] -**phone** | **string** | The phone number. Not returned for Fulfillment by Amazon (FBA) orders. | [optional] -**address_type** | **string** | The address type of the shipping address. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/AutomatedShippingSettings.md b/docs/Model/OrdersV0/AutomatedShippingSettings.md deleted file mode 100644 index 0a52067c0..000000000 --- a/docs/Model/OrdersV0/AutomatedShippingSettings.md +++ /dev/null @@ -1,11 +0,0 @@ -## AutomatedShippingSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**has_automated_shipping_settings** | **bool** | When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. | [optional] -**automated_carrier** | **string** | Auto-generated carrier for SSA orders. | [optional] -**automated_ship_method** | **string** | Auto-generated ship method for SSA orders. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BusinessHours.md b/docs/Model/OrdersV0/BusinessHours.md deleted file mode 100644 index d2884aa30..000000000 --- a/docs/Model/OrdersV0/BusinessHours.md +++ /dev/null @@ -1,10 +0,0 @@ -## BusinessHours - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**day_of_week** | **string** | Day of the week. | [optional] -**open_intervals** | [**\SellingPartnerApi\Model\OrdersV0\OpenInterval[]**](OpenInterval.md) | Time window during the day when the business is open. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BuyerCustomizedInfoDetail.md b/docs/Model/OrdersV0/BuyerCustomizedInfoDetail.md deleted file mode 100644 index c27b83dfb..000000000 --- a/docs/Model/OrdersV0/BuyerCustomizedInfoDetail.md +++ /dev/null @@ -1,9 +0,0 @@ -## BuyerCustomizedInfoDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customized_url** | **string** | The location of a zip file containing Amazon Custom data. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BuyerInfo.md b/docs/Model/OrdersV0/BuyerInfo.md deleted file mode 100644 index 0fc8f34a6..000000000 --- a/docs/Model/OrdersV0/BuyerInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -## BuyerInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer_email** | **string** | The anonymized email address of the buyer. | [optional] -**buyer_name** | **string** | The buyer name or the recipient name. | [optional] -**buyer_county** | **string** | The county of the buyer. | [optional] -**buyer_tax_info** | [**\SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo**](BuyerTaxInfo.md) | | [optional] -**purchase_order_number** | **string** | The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BuyerRequestedCancel.md b/docs/Model/OrdersV0/BuyerRequestedCancel.md deleted file mode 100644 index 811921a4e..000000000 --- a/docs/Model/OrdersV0/BuyerRequestedCancel.md +++ /dev/null @@ -1,10 +0,0 @@ -## BuyerRequestedCancel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_buyer_requested_cancel** | **bool** | When true, the buyer has requested cancellation. | [optional] -**buyer_cancel_reason** | **string** | The reason that the buyer requested cancellation. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BuyerTaxInfo.md b/docs/Model/OrdersV0/BuyerTaxInfo.md deleted file mode 100644 index 41f20476a..000000000 --- a/docs/Model/OrdersV0/BuyerTaxInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -## BuyerTaxInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_legal_name** | **string** | The legal name of the company. | [optional] -**taxing_region** | **string** | The country or region imposing the tax. | [optional] -**tax_classifications** | [**\SellingPartnerApi\Model\OrdersV0\TaxClassification[]**](TaxClassification.md) | A list of tax classifications that apply to the order. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/BuyerTaxInformation.md b/docs/Model/OrdersV0/BuyerTaxInformation.md deleted file mode 100644 index a7f002a99..000000000 --- a/docs/Model/OrdersV0/BuyerTaxInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -## BuyerTaxInformation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer_legal_company_name** | **string** | Business buyer's company legal name. | [optional] -**buyer_business_address** | **string** | Business buyer's address. | [optional] -**buyer_tax_registration_id** | **string** | Business buyer's tax registration ID. | [optional] -**buyer_tax_office** | **string** | Business buyer's tax office. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ConfirmShipmentErrorResponse.md b/docs/Model/OrdersV0/ConfirmShipmentErrorResponse.md deleted file mode 100644 index 852fe42b2..000000000 --- a/docs/Model/OrdersV0/ConfirmShipmentErrorResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## ConfirmShipmentErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ConfirmShipmentOrderItem.md b/docs/Model/OrdersV0/ConfirmShipmentOrderItem.md deleted file mode 100644 index 0346c10bd..000000000 --- a/docs/Model/OrdersV0/ConfirmShipmentOrderItem.md +++ /dev/null @@ -1,11 +0,0 @@ -## ConfirmShipmentOrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_item_id** | **string** | The unique identifier of the order item. | -**quantity** | **int** | The quantity of the item. | -**transparency_codes** | **string[]** | A list of order items. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ConfirmShipmentRequest.md b/docs/Model/OrdersV0/ConfirmShipmentRequest.md deleted file mode 100644 index a495a1d12..000000000 --- a/docs/Model/OrdersV0/ConfirmShipmentRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## ConfirmShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_detail** | [**\SellingPartnerApi\Model\OrdersV0\PackageDetail**](PackageDetail.md) | | -**cod_collection_method** | **string** | The cod collection method, support in JP only. | [optional] -**marketplace_id** | **string** | The unobfuscated marketplace identifier. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/DeliveryPreferences.md b/docs/Model/OrdersV0/DeliveryPreferences.md deleted file mode 100644 index 7814965b7..000000000 --- a/docs/Model/OrdersV0/DeliveryPreferences.md +++ /dev/null @@ -1,12 +0,0 @@ -## DeliveryPreferences - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**drop_off_location** | **string** | Drop-off location selected by the customer. | [optional] -**preferred_delivery_time** | [**\SellingPartnerApi\Model\OrdersV0\PreferredDeliveryTime**](PreferredDeliveryTime.md) | | [optional] -**other_attributes** | [**\SellingPartnerApi\Model\OrdersV0\OtherDeliveryAttributes[]**](OtherDeliveryAttributes.md) | Enumerated list of miscellaneous delivery attributes associated with the shipping address. | [optional] -**address_instructions** | **string** | Building instructions, nearby landmark or navigation instructions. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/EasyShipShipmentStatus.md b/docs/Model/OrdersV0/EasyShipShipmentStatus.md deleted file mode 100644 index 53f96ac97..000000000 --- a/docs/Model/OrdersV0/EasyShipShipmentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## EasyShipShipmentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ElectronicInvoiceStatus.md b/docs/Model/OrdersV0/ElectronicInvoiceStatus.md deleted file mode 100644 index 218a3e403..000000000 --- a/docs/Model/OrdersV0/ElectronicInvoiceStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ElectronicInvoiceStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/Error.md b/docs/Model/OrdersV0/Error.md deleted file mode 100644 index b7a9d7f1a..000000000 --- a/docs/Model/OrdersV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ExceptionDates.md b/docs/Model/OrdersV0/ExceptionDates.md deleted file mode 100644 index 8e16adda3..000000000 --- a/docs/Model/OrdersV0/ExceptionDates.md +++ /dev/null @@ -1,11 +0,0 @@ -## ExceptionDates - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exception_date** | **string** | Date when the business is closed, in ISO-8601 date format. | [optional] -**is_open** | **bool** | Boolean indicating if the business is closed or open on that date. | [optional] -**open_intervals** | [**\SellingPartnerApi\Model\OrdersV0\OpenInterval[]**](OpenInterval.md) | Time window during the day when the business is open. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/FulfillmentInstruction.md b/docs/Model/OrdersV0/FulfillmentInstruction.md deleted file mode 100644 index c626dc9f7..000000000 --- a/docs/Model/OrdersV0/FulfillmentInstruction.md +++ /dev/null @@ -1,9 +0,0 @@ -## FulfillmentInstruction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_supply_source_id** | **string** | Denotes the recommended sourceId where the order should be fulfilled from. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderAddressResponse.md b/docs/Model/OrdersV0/GetOrderAddressResponse.md deleted file mode 100644 index 4d41025d2..000000000 --- a/docs/Model/OrdersV0/GetOrderAddressResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderAddressResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrderAddress**](OrderAddress.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderBuyerInfoResponse.md b/docs/Model/OrdersV0/GetOrderBuyerInfoResponse.md deleted file mode 100644 index 3eea581c5..000000000 --- a/docs/Model/OrdersV0/GetOrderBuyerInfoResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderBuyerInfoResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrderBuyerInfo**](OrderBuyerInfo.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.md b/docs/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.md deleted file mode 100644 index a5358da13..000000000 --- a/docs/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderItemsBuyerInfoResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrderItemsBuyerInfoList**](OrderItemsBuyerInfoList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderItemsResponse.md b/docs/Model/OrdersV0/GetOrderItemsResponse.md deleted file mode 100644 index 84ae7727c..000000000 --- a/docs/Model/OrdersV0/GetOrderItemsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderItemsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrderItemsList**](OrderItemsList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderRegulatedInfoResponse.md b/docs/Model/OrdersV0/GetOrderRegulatedInfoResponse.md deleted file mode 100644 index 8283fcc3f..000000000 --- a/docs/Model/OrdersV0/GetOrderRegulatedInfoResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderRegulatedInfoResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrderRegulatedInfo**](OrderRegulatedInfo.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrderResponse.md b/docs/Model/OrdersV0/GetOrderResponse.md deleted file mode 100644 index c089294af..000000000 --- a/docs/Model/OrdersV0/GetOrderResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\Order**](Order.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/GetOrdersResponse.md b/docs/Model/OrdersV0/GetOrdersResponse.md deleted file mode 100644 index 3486eba5d..000000000 --- a/docs/Model/OrdersV0/GetOrdersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrdersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\OrdersV0\OrdersList**](OrdersList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ItemBuyerInfo.md b/docs/Model/OrdersV0/ItemBuyerInfo.md deleted file mode 100644 index bfdcb84e0..000000000 --- a/docs/Model/OrdersV0/ItemBuyerInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -## ItemBuyerInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer_customized_info** | [**\SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail**](BuyerCustomizedInfoDetail.md) | | [optional] -**gift_wrap_price** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**gift_wrap_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**gift_message_text** | **string** | A gift message provided by the buyer. | [optional] -**gift_wrap_level** | **string** | The gift wrap level specified by the buyer. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/MarketplaceTaxInfo.md b/docs/Model/OrdersV0/MarketplaceTaxInfo.md deleted file mode 100644 index 0278e45c8..000000000 --- a/docs/Model/OrdersV0/MarketplaceTaxInfo.md +++ /dev/null @@ -1,9 +0,0 @@ -## MarketplaceTaxInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_classifications** | [**\SellingPartnerApi\Model\OrdersV0\TaxClassification[]**](TaxClassification.md) | A list of tax classifications that apply to the order. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/Money.md b/docs/Model/OrdersV0/Money.md deleted file mode 100644 index bc2d6bc9d..000000000 --- a/docs/Model/OrdersV0/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The three-digit currency code. In ISO 4217 format. | [optional] -**amount** | **string** | The currency amount. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OpenInterval.md b/docs/Model/OrdersV0/OpenInterval.md deleted file mode 100644 index 97927561a..000000000 --- a/docs/Model/OrdersV0/OpenInterval.md +++ /dev/null @@ -1,10 +0,0 @@ -## OpenInterval - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | [**\SellingPartnerApi\Model\OrdersV0\OpenTimeInterval**](OpenTimeInterval.md) | | [optional] -**end_time** | [**\SellingPartnerApi\Model\OrdersV0\OpenTimeInterval**](OpenTimeInterval.md) | | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OpenTimeInterval.md b/docs/Model/OrdersV0/OpenTimeInterval.md deleted file mode 100644 index 5f7b783be..000000000 --- a/docs/Model/OrdersV0/OpenTimeInterval.md +++ /dev/null @@ -1,10 +0,0 @@ -## OpenTimeInterval - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hour** | **int** | The hour when the business opens or closes. | [optional] -**minute** | **int** | The minute when the business opens or closes. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/Order.md b/docs/Model/OrdersV0/Order.md deleted file mode 100644 index 395fb53ab..000000000 --- a/docs/Model/OrdersV0/Order.md +++ /dev/null @@ -1,55 +0,0 @@ -## Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**seller_order_id** | **string** | A seller-defined order identifier. | [optional] -**purchase_date** | **string** | The date when the order was created. | -**last_update_date** | **string** | The date when the order was last updated.

__Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01. | -**order_status** | **string** | The current order status. | -**fulfillment_channel** | **string** | Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN). | [optional] -**sales_channel** | **string** | The sales channel of the first item in the order. | [optional] -**order_channel** | **string** | The order channel of the first item in the order. | [optional] -**ship_service_level** | **string** | The shipment service level of the order. | [optional] -**order_total** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**number_of_items_shipped** | **int** | The number of items shipped. | [optional] -**number_of_items_unshipped** | **int** | The number of items unshipped. | [optional] -**payment_execution_detail** | [**\SellingPartnerApi\Model\OrdersV0\PaymentExecutionDetailItem[]**](PaymentExecutionDetailItem.md) | A list of payment execution detail items. | [optional] -**payment_method** | **string** | The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information. | [optional] -**payment_method_details** | **string[]** | A list of payment method detail items. | [optional] -**marketplace_id** | **string** | The identifier for the marketplace where the order was placed. | [optional] -**shipment_service_level_category** | **string** | The shipment service level category of the order.

Possible values: Expedited, FreeEconomy, NextDay, SameDay, SecondDay, Scheduled, Standard. | [optional] -**easy_ship_shipment_status** | [**\SellingPartnerApi\Model\OrdersV0\EasyShipShipmentStatus**](EasyShipShipmentStatus.md) | | [optional] -**cba_displayable_shipping_label** | **string** | Custom ship label for Checkout by Amazon (CBA). | [optional] -**order_type** | **string** | The type of the order. | [optional] -**earliest_ship_date** | **string** | The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.

__Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013. | [optional] -**latest_ship_date** | **string** | The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.

__Note__: LatestShipDate might not be returned for orders placed before February 1, 2013. | [optional] -**earliest_delivery_date** | **string** | The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. | [optional] -**latest_delivery_date** | **string** | The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status. | [optional] -**is_business_order** | **bool** | When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer. | [optional] -**is_prime** | **bool** | When true, the order is a seller-fulfilled Amazon Prime order. | [optional] -**is_premium_order** | **bool** | When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, see \"Premium Shipping Options\" in the Seller Central Help for your marketplace. | [optional] -**is_global_express_enabled** | **bool** | When true, the order is a GlobalExpress order. | [optional] -**replaced_order_id** | **string** | The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true. | [optional] -**is_replacement_order** | **bool** | When true, this is a replacement order. | [optional] -**promise_response_due_date** | **string** | Indicates the date by which the seller must respond to the buyer with an estimated ship date. Returned only for Sourcing on Demand orders. | [optional] -**is_estimated_ship_date_set** | **bool** | When true, the estimated ship date is set for the order. Returned only for Sourcing on Demand orders. | [optional] -**is_sold_by_ab** | **bool** | When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. | [optional] -**is_iba** | **bool** | When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. | [optional] -**default_ship_from_location_address** | [**\SellingPartnerApi\Model\OrdersV0\Address**](Address.md) | | [optional] -**buyer_invoice_preference** | **string** | The buyer's invoicing preference. Available only in the TR marketplace. | [optional] -**buyer_tax_information** | [**\SellingPartnerApi\Model\OrdersV0\BuyerTaxInformation**](BuyerTaxInformation.md) | | [optional] -**fulfillment_instruction** | [**\SellingPartnerApi\Model\OrdersV0\FulfillmentInstruction**](FulfillmentInstruction.md) | | [optional] -**is_ispu** | **bool** | When true, this order is marked to be picked up from a store rather than delivered. | [optional] -**is_access_point_order** | **bool** | When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers. | [optional] -**marketplace_tax_info** | [**\SellingPartnerApi\Model\OrdersV0\MarketplaceTaxInfo**](MarketplaceTaxInfo.md) | | [optional] -**seller_display_name** | **string** | The seller's friendly name registered in the marketplace. | [optional] -**shipping_address** | [**\SellingPartnerApi\Model\OrdersV0\Address**](Address.md) | | [optional] -**buyer_info** | [**\SellingPartnerApi\Model\OrdersV0\BuyerInfo**](BuyerInfo.md) | | [optional] -**automated_shipping_settings** | [**\SellingPartnerApi\Model\OrdersV0\AutomatedShippingSettings**](AutomatedShippingSettings.md) | | [optional] -**has_regulated_items** | **bool** | Whether the order contains regulated items which may require additional approval steps before being fulfilled. | [optional] -**electronic_invoice_status** | [**\SellingPartnerApi\Model\OrdersV0\ElectronicInvoiceStatus**](ElectronicInvoiceStatus.md) | | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderAddress.md b/docs/Model/OrdersV0/OrderAddress.md deleted file mode 100644 index 986a11679..000000000 --- a/docs/Model/OrdersV0/OrderAddress.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderAddress - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**buyer_company_name** | **string** | Company name of the destination address. | [optional] -**shipping_address** | [**\SellingPartnerApi\Model\OrdersV0\Address**](Address.md) | | [optional] -**delivery_preferences** | [**\SellingPartnerApi\Model\OrdersV0\DeliveryPreferences**](DeliveryPreferences.md) | | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderBuyerInfo.md b/docs/Model/OrdersV0/OrderBuyerInfo.md deleted file mode 100644 index 641a1e50d..000000000 --- a/docs/Model/OrdersV0/OrderBuyerInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -## OrderBuyerInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**buyer_email** | **string** | The anonymized email address of the buyer. | [optional] -**buyer_name** | **string** | The buyer name or the recipient name. | [optional] -**buyer_county** | **string** | The county of the buyer. | [optional] -**buyer_tax_info** | [**\SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo**](BuyerTaxInfo.md) | | [optional] -**purchase_order_number** | **string** | The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderItem.md b/docs/Model/OrdersV0/OrderItem.md deleted file mode 100644 index ab39ee46c..000000000 --- a/docs/Model/OrdersV0/OrderItem.md +++ /dev/null @@ -1,43 +0,0 @@ -## OrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | [optional] -**order_item_id** | **string** | An Amazon-defined order item identifier. | -**title** | **string** | The name of the item. | [optional] -**quantity_ordered** | **int** | The number of items in the order. | -**quantity_shipped** | **int** | The number of items shipped. | [optional] -**product_info** | [**\SellingPartnerApi\Model\OrdersV0\ProductInfoDetail**](ProductInfoDetail.md) | | [optional] -**points_granted** | [**\SellingPartnerApi\Model\OrdersV0\PointsGrantedDetail**](PointsGrantedDetail.md) | | [optional] -**item_price** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**shipping_price** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**item_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**shipping_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**shipping_discount** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**shipping_discount_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**promotion_discount** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**promotion_discount_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**promotion_ids** | **string[]** | A list of promotion identifiers provided by the seller when the promotions were created. | [optional] -**cod_fee** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**cod_fee_discount** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**is_gift** | **bool** | When true, the item is a gift. | [optional] -**condition_note** | **string** | The condition of the item as described by the seller. | [optional] -**condition_id** | **string** | The condition of the item.

Possible values: New, Used, Collectible, Refurbished, Preorder, Club. | [optional] -**condition_subtype_id** | **string** | The subcondition of the item.

Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other. | [optional] -**scheduled_delivery_start_date** | **string** | The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. | [optional] -**scheduled_delivery_end_date** | **string** | The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. | [optional] -**price_designation** | **string** | Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business).

Possible values: BusinessPrice - A special price that is available only for Amazon Business orders. | [optional] -**tax_collection** | [**\SellingPartnerApi\Model\OrdersV0\TaxCollection**](TaxCollection.md) | | [optional] -**serial_number_required** | **bool** | When true, the product type for this item has a serial number.

Returned only for Amazon Easy Ship orders. | [optional] -**is_transparency** | **bool** | When true, transparency codes are required. | [optional] -**ioss_number** | **string** | The IOSS number for the marketplace. Sellers shipping to the European Union (EU) from outside of the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale. | [optional] -**store_chain_store_id** | **string** | The store chain store identifier. Linked to a specific store in a store chain. | [optional] -**deemed_reseller_category** | **string** | The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK. | [optional] -**buyer_info** | [**\SellingPartnerApi\Model\OrdersV0\ItemBuyerInfo**](ItemBuyerInfo.md) | | [optional] -**buyer_requested_cancel** | [**\SellingPartnerApi\Model\OrdersV0\BuyerRequestedCancel**](BuyerRequestedCancel.md) | | [optional] -**serial_numbers** | **string[]** | A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderItemBuyerInfo.md b/docs/Model/OrdersV0/OrderItemBuyerInfo.md deleted file mode 100644 index 83f8cfc12..000000000 --- a/docs/Model/OrdersV0/OrderItemBuyerInfo.md +++ /dev/null @@ -1,14 +0,0 @@ -## OrderItemBuyerInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_item_id** | **string** | An Amazon-defined order item identifier. | -**buyer_customized_info** | [**\SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail**](BuyerCustomizedInfoDetail.md) | | [optional] -**gift_wrap_price** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**gift_wrap_tax** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] -**gift_message_text** | **string** | A gift message provided by the buyer. | [optional] -**gift_wrap_level** | **string** | The gift wrap level specified by the buyer. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderItemsBuyerInfoList.md b/docs/Model/OrdersV0/OrderItemsBuyerInfoList.md deleted file mode 100644 index 7806a5a1a..000000000 --- a/docs/Model/OrdersV0/OrderItemsBuyerInfoList.md +++ /dev/null @@ -1,11 +0,0 @@ -## OrderItemsBuyerInfoList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_items** | [**\SellingPartnerApi\Model\OrdersV0\OrderItemBuyerInfo[]**](OrderItemBuyerInfo.md) | A single order item's buyer information list. | -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderItemsList.md b/docs/Model/OrdersV0/OrderItemsList.md deleted file mode 100644 index 1c1646e76..000000000 --- a/docs/Model/OrdersV0/OrderItemsList.md +++ /dev/null @@ -1,11 +0,0 @@ -## OrderItemsList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_items** | [**\SellingPartnerApi\Model\OrdersV0\OrderItem[]**](OrderItem.md) | A list of order items. | -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrderRegulatedInfo.md b/docs/Model/OrdersV0/OrderRegulatedInfo.md deleted file mode 100644 index df933a976..000000000 --- a/docs/Model/OrdersV0/OrderRegulatedInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderRegulatedInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_order_id** | **string** | An Amazon-defined order identifier, in 3-7-7 format. | -**regulated_information** | [**\SellingPartnerApi\Model\OrdersV0\RegulatedInformation**](RegulatedInformation.md) | | -**requires_dosage_label** | **bool** | When true, the order requires attaching a dosage information label when shipped. | -**regulated_order_verification_status** | [**\SellingPartnerApi\Model\OrdersV0\RegulatedOrderVerificationStatus**](RegulatedOrderVerificationStatus.md) | | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OrdersList.md b/docs/Model/OrdersV0/OrdersList.md deleted file mode 100644 index 7d2b6cff1..000000000 --- a/docs/Model/OrdersV0/OrdersList.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrdersList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**orders** | [**\SellingPartnerApi\Model\OrdersV0\Order[]**](Order.md) | A list of orders. | -**next_token** | **string** | When present and not empty, pass this string token in the next request to return the next response page. | [optional] -**last_updated_before** | **string** | 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. All dates must be in ISO 8601 format. | [optional] -**created_before** | **string** | 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] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/OtherDeliveryAttributes.md b/docs/Model/OrdersV0/OtherDeliveryAttributes.md deleted file mode 100644 index 4961ed741..000000000 --- a/docs/Model/OrdersV0/OtherDeliveryAttributes.md +++ /dev/null @@ -1,8 +0,0 @@ -## OtherDeliveryAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/PackageDetail.md b/docs/Model/OrdersV0/PackageDetail.md deleted file mode 100644 index f3ea24447..000000000 --- a/docs/Model/OrdersV0/PackageDetail.md +++ /dev/null @@ -1,16 +0,0 @@ -## PackageDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_reference_id** | **string** | A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. | -**carrier_code** | **string** | Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). | -**carrier_name** | **string** | Carrier Name that will deliver the package. Required when carrierCode is \"Others\" | [optional] -**shipping_method** | **string** | Ship method to be used for shipping the order. | [optional] -**tracking_number** | **string** | The tracking number used to obtain tracking and delivery information. | -**ship_date** | **string** | The shipping date for the package. Must be in ISO-8601 date/time format. | -**ship_from_supply_source_id** | **string** | The unique identifier of the supply source. | [optional] -**order_items** | [**\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentOrderItem[]**](ConfirmShipmentOrderItem.md) | A list of order items. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/PaymentExecutionDetailItem.md b/docs/Model/OrdersV0/PaymentExecutionDetailItem.md deleted file mode 100644 index 1c366a3e4..000000000 --- a/docs/Model/OrdersV0/PaymentExecutionDetailItem.md +++ /dev/null @@ -1,10 +0,0 @@ -## PaymentExecutionDetailItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | -**payment_method** | **string** | A sub-payment method for a COD order.

Possible values:

* COD - Cash On Delivery.

* GC - Gift Card.

* PointsAccount - Amazon Points. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/PointsGrantedDetail.md b/docs/Model/OrdersV0/PointsGrantedDetail.md deleted file mode 100644 index 92178165d..000000000 --- a/docs/Model/OrdersV0/PointsGrantedDetail.md +++ /dev/null @@ -1,10 +0,0 @@ -## PointsGrantedDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**points_number** | **int** | The number of Amazon Points granted with the purchase of an item. | [optional] -**points_monetary_value** | [**\SellingPartnerApi\Model\OrdersV0\Money**](Money.md) | | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/PreferredDeliveryTime.md b/docs/Model/OrdersV0/PreferredDeliveryTime.md deleted file mode 100644 index 39f0b7ea7..000000000 --- a/docs/Model/OrdersV0/PreferredDeliveryTime.md +++ /dev/null @@ -1,10 +0,0 @@ -## PreferredDeliveryTime - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**business_hours** | [**\SellingPartnerApi\Model\OrdersV0\BusinessHours[]**](BusinessHours.md) | Business hours when the business is open for deliveries. | [optional] -**exception_dates** | [**\SellingPartnerApi\Model\OrdersV0\ExceptionDates[]**](ExceptionDates.md) | Dates when the business is closed in the next 30 days. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ProductInfoDetail.md b/docs/Model/OrdersV0/ProductInfoDetail.md deleted file mode 100644 index c3fa44e42..000000000 --- a/docs/Model/OrdersV0/ProductInfoDetail.md +++ /dev/null @@ -1,9 +0,0 @@ -## ProductInfoDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number_of_items** | **int** | The total number of items that are included in the ASIN. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/RegulatedInformation.md b/docs/Model/OrdersV0/RegulatedInformation.md deleted file mode 100644 index e641ac5ae..000000000 --- a/docs/Model/OrdersV0/RegulatedInformation.md +++ /dev/null @@ -1,9 +0,0 @@ -## RegulatedInformation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fields** | [**\SellingPartnerApi\Model\OrdersV0\RegulatedInformationField[]**](RegulatedInformationField.md) | A list of regulated information fields as collected from the regulatory form. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/RegulatedInformationField.md b/docs/Model/OrdersV0/RegulatedInformationField.md deleted file mode 100644 index a071b837f..000000000 --- a/docs/Model/OrdersV0/RegulatedInformationField.md +++ /dev/null @@ -1,12 +0,0 @@ -## RegulatedInformationField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field_id** | **string** | The unique identifier for the field. | -**field_label** | **string** | The name for the field. | -**field_type** | **string** | The type of field. | -**field_value** | **string** | The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/RegulatedOrderVerificationStatus.md b/docs/Model/OrdersV0/RegulatedOrderVerificationStatus.md deleted file mode 100644 index 6888a4bc3..000000000 --- a/docs/Model/OrdersV0/RegulatedOrderVerificationStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -## RegulatedOrderVerificationStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**\SellingPartnerApi\Model\OrdersV0\VerificationStatus**](VerificationStatus.md) | | -**requires_merchant_action** | **bool** | When true, the regulated information provided in the order requires a review by the merchant. | -**valid_rejection_reasons** | [**\SellingPartnerApi\Model\OrdersV0\RejectionReason[]**](RejectionReason.md) | A list of valid rejection reasons that may be used to reject the order's regulated information. | -**rejection_reason** | [**\SellingPartnerApi\Model\OrdersV0\RejectionReason**](RejectionReason.md) | | [optional] -**review_date** | **string** | The date the order was reviewed. In ISO 8601 date time format. | [optional] -**external_reviewer_id** | **string** | The identifier for the order's regulated information reviewer. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/RejectionReason.md b/docs/Model/OrdersV0/RejectionReason.md deleted file mode 100644 index c26da4afc..000000000 --- a/docs/Model/OrdersV0/RejectionReason.md +++ /dev/null @@ -1,10 +0,0 @@ -## RejectionReason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rejection_reason_id** | **string** | The unique identifier for the rejection reason. | -**rejection_reason_description** | **string** | The description of this rejection reason. | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/ShipmentStatus.md b/docs/Model/OrdersV0/ShipmentStatus.md deleted file mode 100644 index 732a370e2..000000000 --- a/docs/Model/OrdersV0/ShipmentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShipmentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/TaxClassification.md b/docs/Model/OrdersV0/TaxClassification.md deleted file mode 100644 index c846fd583..000000000 --- a/docs/Model/OrdersV0/TaxClassification.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxClassification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The type of tax. | [optional] -**value** | **string** | The buyer's tax identifier. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/TaxCollection.md b/docs/Model/OrdersV0/TaxCollection.md deleted file mode 100644 index 734ccae2f..000000000 --- a/docs/Model/OrdersV0/TaxCollection.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxCollection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**model** | **string** | The tax collection model applied to the item. | [optional] -**responsible_party** | **string** | The party responsible for withholding the taxes and remitting them to the taxing authority. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/UpdateShipmentStatusErrorResponse.md b/docs/Model/OrdersV0/UpdateShipmentStatusErrorResponse.md deleted file mode 100644 index b8393be85..000000000 --- a/docs/Model/OrdersV0/UpdateShipmentStatusErrorResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## UpdateShipmentStatusErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/UpdateShipmentStatusRequest.md b/docs/Model/OrdersV0/UpdateShipmentStatusRequest.md deleted file mode 100644 index 37f0dcc13..000000000 --- a/docs/Model/OrdersV0/UpdateShipmentStatusRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## UpdateShipmentStatusRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The unobfuscated marketplace identifier. | -**shipment_status** | [**\SellingPartnerApi\Model\OrdersV0\ShipmentStatus**](ShipmentStatus.md) | | -**order_items** | **object[]** | For partial shipment status updates, the list of order items and quantities to be updated. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/UpdateVerificationStatusErrorResponse.md b/docs/Model/OrdersV0/UpdateVerificationStatusErrorResponse.md deleted file mode 100644 index 8e97f0b9a..000000000 --- a/docs/Model/OrdersV0/UpdateVerificationStatusErrorResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## UpdateVerificationStatusErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\OrdersV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/UpdateVerificationStatusRequest.md b/docs/Model/OrdersV0/UpdateVerificationStatusRequest.md deleted file mode 100644 index 18a77fce1..000000000 --- a/docs/Model/OrdersV0/UpdateVerificationStatusRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## UpdateVerificationStatusRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regulated_order_verification_status** | [**\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequestBody**](UpdateVerificationStatusRequestBody.md) | | - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/UpdateVerificationStatusRequestBody.md b/docs/Model/OrdersV0/UpdateVerificationStatusRequestBody.md deleted file mode 100644 index 85215c0cd..000000000 --- a/docs/Model/OrdersV0/UpdateVerificationStatusRequestBody.md +++ /dev/null @@ -1,11 +0,0 @@ -## UpdateVerificationStatusRequestBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**\SellingPartnerApi\Model\OrdersV0\VerificationStatus**](VerificationStatus.md) | | -**external_reviewer_id** | **string** | The identifier for the order's regulated information reviewer. | -**rejection_reason_id** | **string** | The unique identifier for the rejection reason used for rejecting the order's regulated information. Only required if the new status is rejected. | [optional] - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/OrdersV0/VerificationStatus.md b/docs/Model/OrdersV0/VerificationStatus.md deleted file mode 100644 index bb688d430..000000000 --- a/docs/Model/OrdersV0/VerificationStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## VerificationStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[OrdersV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ASINIdentifier.md b/docs/Model/ProductPricingV0/ASINIdentifier.md deleted file mode 100644 index 40666b96d..000000000 --- a/docs/Model/ProductPricingV0/ASINIdentifier.md +++ /dev/null @@ -1,10 +0,0 @@ -## ASINIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/BatchOffersRequestParams.md b/docs/Model/ProductPricingV0/BatchOffersRequestParams.md deleted file mode 100644 index 856b6bd54..000000000 --- a/docs/Model/ProductPricingV0/BatchOffersRequestParams.md +++ /dev/null @@ -1,11 +0,0 @@ -## BatchOffersRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which prices are returned. | -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemCondition**](ItemCondition.md) | | -**customer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\CustomerType**](CustomerType.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/BatchOffersResponse.md b/docs/Model/ProductPricingV0/BatchOffersResponse.md deleted file mode 100644 index f3364da0f..000000000 --- a/docs/Model/ProductPricingV0/BatchOffersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## BatchOffersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse**](GetOffersResponse.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/BatchRequest.md b/docs/Model/ProductPricingV0/BatchRequest.md deleted file mode 100644 index 34a827273..000000000 --- a/docs/Model/ProductPricingV0/BatchRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## BatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **string** | The resource path of the operation you are calling in batch without any query parameters.

If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`.

**Example:** `/products/pricing/v0/items/B000P6Q7MY/offers`

If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`.

**Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` | -**method** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpMethod**](HttpMethod.md) | | -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for the individual batch request. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/BuyBoxPriceType.md b/docs/Model/ProductPricingV0/BuyBoxPriceType.md deleted file mode 100644 index 2e2afecd5..000000000 --- a/docs/Model/ProductPricingV0/BuyBoxPriceType.md +++ /dev/null @@ -1,17 +0,0 @@ -## BuyBoxPriceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **string** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | -**offer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **int** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**landed_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**shipping** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**points** | [**\SellingPartnerApi\Model\ProductPricingV0\Points**](Points.md) | | [optional] -**seller_id** | **string** | The seller identifier for the offer. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/CompetitivePriceType.md b/docs/Model/ProductPricingV0/CompetitivePriceType.md deleted file mode 100644 index aed1ec5e0..000000000 --- a/docs/Model/ProductPricingV0/CompetitivePriceType.md +++ /dev/null @@ -1,17 +0,0 @@ -## CompetitivePriceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**competitive_price_id** | **string** | The pricing model for each price that is returned.

Possible values:

* 1 - New Buy Box Price.
* 2 - Used Buy Box Price. | -**price** | [**\SellingPartnerApi\Model\ProductPricingV0\PriceType**](PriceType.md) | | -**condition** | **string** | Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club. | [optional] -**subcondition** | **string** | Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | [optional] -**offer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **int** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**seller_id** | **string** | The seller identifier for the offer. | [optional] -**belongs_to_requester** | **bool** | Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/CompetitivePricingType.md b/docs/Model/ProductPricingV0/CompetitivePricingType.md deleted file mode 100644 index 3e3ed27be..000000000 --- a/docs/Model/ProductPricingV0/CompetitivePricingType.md +++ /dev/null @@ -1,11 +0,0 @@ -## CompetitivePricingType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**competitive_prices** | [**\SellingPartnerApi\Model\ProductPricingV0\CompetitivePriceType[]**](CompetitivePriceType.md) | A list of competitive pricing information. | -**number_of_offer_listings** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferListingCountType[]**](OfferListingCountType.md) | 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. | -**trade_in_value** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ConditionType.md b/docs/Model/ProductPricingV0/ConditionType.md deleted file mode 100644 index 44fcf1a8c..000000000 --- a/docs/Model/ProductPricingV0/ConditionType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ConditionType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/CustomerType.md b/docs/Model/ProductPricingV0/CustomerType.md deleted file mode 100644 index d758e2c6d..000000000 --- a/docs/Model/ProductPricingV0/CustomerType.md +++ /dev/null @@ -1,8 +0,0 @@ -## CustomerType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/DetailedShippingTimeType.md b/docs/Model/ProductPricingV0/DetailedShippingTimeType.md deleted file mode 100644 index 92228ac45..000000000 --- a/docs/Model/ProductPricingV0/DetailedShippingTimeType.md +++ /dev/null @@ -1,12 +0,0 @@ -## DetailedShippingTimeType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minimum_hours** | **int** | The minimum time, in hours, that the item will likely be shipped after the order has been placed. | [optional] -**maximum_hours** | **int** | The maximum time, in hours, that the item will likely be shipped after the order has been placed. | [optional] -**available_date** | **string** | The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping. | [optional] -**availability_type** | **string** | Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Error.md b/docs/Model/ProductPricingV0/Error.md deleted file mode 100644 index 733e94de3..000000000 --- a/docs/Model/ProductPricingV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Errors.md b/docs/Model/ProductPricingV0/Errors.md deleted file mode 100644 index 738dd65df..000000000 --- a/docs/Model/ProductPricingV0/Errors.md +++ /dev/null @@ -1,9 +0,0 @@ -## Errors - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ProductPricingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/FulfillmentChannelType.md b/docs/Model/ProductPricingV0/FulfillmentChannelType.md deleted file mode 100644 index 0dc448ce5..000000000 --- a/docs/Model/ProductPricingV0/FulfillmentChannelType.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentChannelType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetItemOffersBatchRequest.md b/docs/Model/ProductPricingV0/GetItemOffersBatchRequest.md deleted file mode 100644 index dbd79ebc7..000000000 --- a/docs/Model/ProductPricingV0/GetItemOffersBatchRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetItemOffersBatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requests** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequest[]**](ItemOffersRequest.md) | A list of `getListingOffers` batched requests to run. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetItemOffersBatchResponse.md b/docs/Model/ProductPricingV0/GetItemOffersBatchResponse.md deleted file mode 100644 index a01ebc3b1..000000000 --- a/docs/Model/ProductPricingV0/GetItemOffersBatchResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetItemOffersBatchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**responses** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemOffersResponse[]**](ItemOffersResponse.md) | A list of `getItemOffers` batched responses. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetListingOffersBatchRequest.md b/docs/Model/ProductPricingV0/GetListingOffersBatchRequest.md deleted file mode 100644 index ca8b6905f..000000000 --- a/docs/Model/ProductPricingV0/GetListingOffersBatchRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetListingOffersBatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requests** | [**\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequest[]**](ListingOffersRequest.md) | A list of `getListingOffers` batched requests to run. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetListingOffersBatchResponse.md b/docs/Model/ProductPricingV0/GetListingOffersBatchResponse.md deleted file mode 100644 index 5335f2246..000000000 --- a/docs/Model/ProductPricingV0/GetListingOffersBatchResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetListingOffersBatchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**responses** | [**\SellingPartnerApi\Model\ProductPricingV0\ListingOffersResponse[]**](ListingOffersResponse.md) | A list of `getListingOffers` batched responses. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetOffersHttpStatusLine.md b/docs/Model/ProductPricingV0/GetOffersHttpStatusLine.md deleted file mode 100644 index a46dca0f1..000000000 --- a/docs/Model/ProductPricingV0/GetOffersHttpStatusLine.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOffersHttpStatusLine - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | **int** | The HTTP response Status Code. | [optional] -**reason_phrase** | **string** | The HTTP response Reason-Phase. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetOffersResponse.md b/docs/Model/ProductPricingV0/GetOffersResponse.md deleted file mode 100644 index 1dd96f221..000000000 --- a/docs/Model/ProductPricingV0/GetOffersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOffersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResult**](GetOffersResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ProductPricingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetOffersResult.md b/docs/Model/ProductPricingV0/GetOffersResult.md deleted file mode 100644 index 6940a555f..000000000 --- a/docs/Model/ProductPricingV0/GetOffersResult.md +++ /dev/null @@ -1,16 +0,0 @@ -## GetOffersResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**sku** | **string** | The stock keeping unit (SKU) of the item. | [optional] -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ConditionType**](ConditionType.md) | | -**status** | **string** | The status of the operation. | -**identifier** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemIdentifier**](ItemIdentifier.md) | | -**summary** | [**\SellingPartnerApi\Model\ProductPricingV0\Summary**](Summary.md) | | -**offers** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferDetail[]**](OfferDetail.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/GetPricingResponse.md b/docs/Model/ProductPricingV0/GetPricingResponse.md deleted file mode 100644 index d14a10870..000000000 --- a/docs/Model/ProductPricingV0/GetPricingResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPricingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ProductPricingV0\Price[]**](Price.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ProductPricingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/HttpMethod.md b/docs/Model/ProductPricingV0/HttpMethod.md deleted file mode 100644 index fac655c96..000000000 --- a/docs/Model/ProductPricingV0/HttpMethod.md +++ /dev/null @@ -1,8 +0,0 @@ -## HttpMethod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/HttpResponseHeaders.md b/docs/Model/ProductPricingV0/HttpResponseHeaders.md deleted file mode 100644 index 7f22e27a0..000000000 --- a/docs/Model/ProductPricingV0/HttpResponseHeaders.md +++ /dev/null @@ -1,10 +0,0 @@ -## HttpResponseHeaders - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**date** | **string** | The timestamp that the API request was received. For more information, consult [RFC 2616 Section 14](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). | [optional] -**x_amzn_request_id** | **string** | Unique request reference ID. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/IdentifierType.md b/docs/Model/ProductPricingV0/IdentifierType.md deleted file mode 100644 index da65995e4..000000000 --- a/docs/Model/ProductPricingV0/IdentifierType.md +++ /dev/null @@ -1,10 +0,0 @@ -## IdentifierType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_asin** | [**\SellingPartnerApi\Model\ProductPricingV0\ASINIdentifier**](ASINIdentifier.md) | | -**sku_identifier** | [**\SellingPartnerApi\Model\ProductPricingV0\SellerSKUIdentifier**](SellerSKUIdentifier.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemCondition.md b/docs/Model/ProductPricingV0/ItemCondition.md deleted file mode 100644 index f55dba3ea..000000000 --- a/docs/Model/ProductPricingV0/ItemCondition.md +++ /dev/null @@ -1,8 +0,0 @@ -## ItemCondition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemIdentifier.md b/docs/Model/ProductPricingV0/ItemIdentifier.md deleted file mode 100644 index 658e4aed6..000000000 --- a/docs/Model/ProductPricingV0/ItemIdentifier.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace from which prices are returned. | -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | [optional] -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ConditionType**](ConditionType.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemOffersRequest.md b/docs/Model/ProductPricingV0/ItemOffersRequest.md deleted file mode 100644 index 2a90038ca..000000000 --- a/docs/Model/ProductPricingV0/ItemOffersRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## ItemOffersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **string** | The resource path of the operation you are calling in batch without any query parameters.

If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`.

**Example:** `/products/pricing/v0/items/B000P6Q7MY/offers`

If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`.

**Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` | -**method** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpMethod**](HttpMethod.md) | | -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for the individual batch request. | [optional] -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which prices are returned. | -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemCondition**](ItemCondition.md) | | -**customer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\CustomerType**](CustomerType.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemOffersRequestParams.md b/docs/Model/ProductPricingV0/ItemOffersRequestParams.md deleted file mode 100644 index f2ae6cfd8..000000000 --- a/docs/Model/ProductPricingV0/ItemOffersRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemOffersRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which prices are returned. | -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemCondition**](ItemCondition.md) | | -**customer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\CustomerType**](CustomerType.md) | | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.md b/docs/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.md deleted file mode 100644 index 98a96be9a..000000000 --- a/docs/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## ItemOffersRequestParamsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemOffersResponse.md b/docs/Model/ProductPricingV0/ItemOffersResponse.md deleted file mode 100644 index 80f93f4b9..000000000 --- a/docs/Model/ProductPricingV0/ItemOffersResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemOffersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse**](GetOffersResponse.md) | | -**request** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams**](ItemOffersRequestParams.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ItemOffersResponseAllOf.md b/docs/Model/ProductPricingV0/ItemOffersResponseAllOf.md deleted file mode 100644 index e60bc5d5a..000000000 --- a/docs/Model/ProductPricingV0/ItemOffersResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## ItemOffersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams**](ItemOffersRequestParams.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ListingOffersRequest.md b/docs/Model/ProductPricingV0/ListingOffersRequest.md deleted file mode 100644 index fb5c2acef..000000000 --- a/docs/Model/ProductPricingV0/ListingOffersRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## ListingOffersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **string** | The resource path of the operation you are calling in batch without any query parameters.

If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`.

**Example:** `/products/pricing/v0/items/B000P6Q7MY/offers`

If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`.

**Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` | -**method** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpMethod**](HttpMethod.md) | | -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for the individual batch request. | [optional] -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which prices are returned. | -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemCondition**](ItemCondition.md) | | -**customer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\CustomerType**](CustomerType.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ListingOffersRequestParams.md b/docs/Model/ProductPricingV0/ListingOffersRequestParams.md deleted file mode 100644 index de5436226..000000000 --- a/docs/Model/ProductPricingV0/ListingOffersRequestParams.md +++ /dev/null @@ -1,12 +0,0 @@ -## ListingOffersRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which prices are returned. | -**item_condition** | [**\SellingPartnerApi\Model\ProductPricingV0\ItemCondition**](ItemCondition.md) | | -**customer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\CustomerType**](CustomerType.md) | | [optional] -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.md b/docs/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.md deleted file mode 100644 index f22632bd6..000000000 --- a/docs/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## ListingOffersRequestParamsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ListingOffersResponse.md b/docs/Model/ProductPricingV0/ListingOffersResponse.md deleted file mode 100644 index 6ec2d3af2..000000000 --- a/docs/Model/ProductPricingV0/ListingOffersResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## ListingOffersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | [**\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders**](HttpResponseHeaders.md) | | [optional] -**status** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine**](GetOffersHttpStatusLine.md) | | [optional] -**body** | [**\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse**](GetOffersResponse.md) | | -**request** | [**\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams**](ListingOffersRequestParams.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ListingOffersResponseAllOf.md b/docs/Model/ProductPricingV0/ListingOffersResponseAllOf.md deleted file mode 100644 index b642573d9..000000000 --- a/docs/Model/ProductPricingV0/ListingOffersResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -## ListingOffersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request** | [**\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams**](ListingOffersRequestParams.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/LowestPriceType.md b/docs/Model/ProductPricingV0/LowestPriceType.md deleted file mode 100644 index 1e4b46157..000000000 --- a/docs/Model/ProductPricingV0/LowestPriceType.md +++ /dev/null @@ -1,17 +0,0 @@ -## LowestPriceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **string** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | -**fulfillment_channel** | **string** | Indicates whether the item is fulfilled by Amazon or by the seller. | -**offer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType**](OfferCustomerType.md) | | [optional] -**quantity_tier** | **int** | Indicates at what quantity this price becomes active. | [optional] -**quantity_discount_type** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType**](QuantityDiscountType.md) | | [optional] -**landed_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**shipping** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**points** | [**\SellingPartnerApi\Model\ProductPricingV0\Points**](Points.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/MoneyType.md b/docs/Model/ProductPricingV0/MoneyType.md deleted file mode 100644 index bf52b4b47..000000000 --- a/docs/Model/ProductPricingV0/MoneyType.md +++ /dev/null @@ -1,10 +0,0 @@ -## MoneyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] -**amount** | **float** | The monetary value. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/OfferCountType.md b/docs/Model/ProductPricingV0/OfferCountType.md deleted file mode 100644 index c39289320..000000000 --- a/docs/Model/ProductPricingV0/OfferCountType.md +++ /dev/null @@ -1,11 +0,0 @@ -## OfferCountType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**condition** | **string** | Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. | [optional] -**fulfillment_channel** | [**\SellingPartnerApi\Model\ProductPricingV0\FulfillmentChannelType**](FulfillmentChannelType.md) | | [optional] -**offer_count** | **int** | The number of offers in a fulfillment channel that meet a specific condition. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/OfferCustomerType.md b/docs/Model/ProductPricingV0/OfferCustomerType.md deleted file mode 100644 index 4bced0a39..000000000 --- a/docs/Model/ProductPricingV0/OfferCustomerType.md +++ /dev/null @@ -1,8 +0,0 @@ -## OfferCustomerType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/OfferDetail.md b/docs/Model/ProductPricingV0/OfferDetail.md deleted file mode 100644 index b675a126f..000000000 --- a/docs/Model/ProductPricingV0/OfferDetail.md +++ /dev/null @@ -1,24 +0,0 @@ -## OfferDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**my_offer** | **bool** | When true, this is the seller's offer. | [optional] -**offer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType**](OfferCustomerType.md) | | [optional] -**sub_condition** | **string** | The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | -**seller_id** | **string** | The seller identifier for the offer. | [optional] -**condition_notes** | **string** | Information about the condition of the item. | [optional] -**seller_feedback_rating** | [**\SellingPartnerApi\Model\ProductPricingV0\SellerFeedbackType**](SellerFeedbackType.md) | | [optional] -**shipping_time** | [**\SellingPartnerApi\Model\ProductPricingV0\DetailedShippingTimeType**](DetailedShippingTimeType.md) | | -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**quantity_discount_prices** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]**](QuantityDiscountPriceType.md) | | [optional] -**points** | [**\SellingPartnerApi\Model\ProductPricingV0\Points**](Points.md) | | [optional] -**shipping** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**ships_from** | [**\SellingPartnerApi\Model\ProductPricingV0\ShipsFromType**](ShipsFromType.md) | | [optional] -**is_fulfilled_by_amazon** | **bool** | When true, the offer is fulfilled by Amazon. | -**prime_information** | [**\SellingPartnerApi\Model\ProductPricingV0\PrimeInformationType**](PrimeInformationType.md) | | [optional] -**is_buy_box_winner** | **bool** | When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime. | [optional] -**is_featured_merchant** | **bool** | When true, the seller of the item is eligible to win the Buy Box. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/OfferListingCountType.md b/docs/Model/ProductPricingV0/OfferListingCountType.md deleted file mode 100644 index 1d3d94718..000000000 --- a/docs/Model/ProductPricingV0/OfferListingCountType.md +++ /dev/null @@ -1,10 +0,0 @@ -## OfferListingCountType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | The number of offer listings. | -**condition** | **string** | The condition of the item. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/OfferType.md b/docs/Model/ProductPricingV0/OfferType.md deleted file mode 100644 index 9664a6815..000000000 --- a/docs/Model/ProductPricingV0/OfferType.md +++ /dev/null @@ -1,17 +0,0 @@ -## OfferType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offer_type** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType**](OfferCustomerType.md) | | [optional] -**buying_price** | [**\SellingPartnerApi\Model\ProductPricingV0\PriceType**](PriceType.md) | | -**regular_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**business_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**quantity_discount_prices** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]**](QuantityDiscountPriceType.md) | | [optional] -**fulfillment_channel** | **string** | The fulfillment channel for the offer listing. Possible values:

* Amazon - Fulfilled by Amazon.
* Merchant - Fulfilled by the seller. | -**item_condition** | **string** | The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club. | -**item_sub_condition** | **string** | The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. | -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Points.md b/docs/Model/ProductPricingV0/Points.md deleted file mode 100644 index 7774d9a24..000000000 --- a/docs/Model/ProductPricingV0/Points.md +++ /dev/null @@ -1,10 +0,0 @@ -## Points - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**points_number** | **int** | The number of points. | [optional] -**points_monetary_value** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Price.md b/docs/Model/ProductPricingV0/Price.md deleted file mode 100644 index d06b037c1..000000000 --- a/docs/Model/ProductPricingV0/Price.md +++ /dev/null @@ -1,12 +0,0 @@ -## Price - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | The status of the operation. | -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**product** | [**\SellingPartnerApi\Model\ProductPricingV0\Product**](Product.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/PriceType.md b/docs/Model/ProductPricingV0/PriceType.md deleted file mode 100644 index dc653ace5..000000000 --- a/docs/Model/ProductPricingV0/PriceType.md +++ /dev/null @@ -1,12 +0,0 @@ -## PriceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**landed_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | -**shipping** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**points** | [**\SellingPartnerApi\Model\ProductPricingV0\Points**](Points.md) | | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/PrimeInformationType.md b/docs/Model/ProductPricingV0/PrimeInformationType.md deleted file mode 100644 index 3b0046b52..000000000 --- a/docs/Model/ProductPricingV0/PrimeInformationType.md +++ /dev/null @@ -1,10 +0,0 @@ -## PrimeInformationType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_prime** | **bool** | Indicates whether the offer is an Amazon Prime offer. | -**is_national_prime** | **bool** | Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Product.md b/docs/Model/ProductPricingV0/Product.md deleted file mode 100644 index 32b9f25ef..000000000 --- a/docs/Model/ProductPricingV0/Product.md +++ /dev/null @@ -1,14 +0,0 @@ -## Product - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identifiers** | [**\SellingPartnerApi\Model\ProductPricingV0\IdentifierType**](IdentifierType.md) | | -**attribute_sets** | **object[]** | A list of product attributes if they are applicable to the product that is returned. | [optional] -**relationships** | **object[]** | A list that contains product variation information, if applicable. | [optional] -**competitive_pricing** | [**\SellingPartnerApi\Model\ProductPricingV0\CompetitivePricingType**](CompetitivePricingType.md) | | [optional] -**sales_rankings** | [**\SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]**](SalesRankType.md) | A list of sales rank information for the item, by category. | [optional] -**offers** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferType[]**](OfferType.md) | A list of offers. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/QuantityDiscountPriceType.md b/docs/Model/ProductPricingV0/QuantityDiscountPriceType.md deleted file mode 100644 index a985094d0..000000000 --- a/docs/Model/ProductPricingV0/QuantityDiscountPriceType.md +++ /dev/null @@ -1,11 +0,0 @@ -## QuantityDiscountPriceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**quantity_tier** | **int** | Indicates at what quantity this price becomes active. | -**quantity_discount_type** | [**\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType**](QuantityDiscountType.md) | | -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/QuantityDiscountType.md b/docs/Model/ProductPricingV0/QuantityDiscountType.md deleted file mode 100644 index 2ca9af4c6..000000000 --- a/docs/Model/ProductPricingV0/QuantityDiscountType.md +++ /dev/null @@ -1,8 +0,0 @@ -## QuantityDiscountType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/SalesRankType.md b/docs/Model/ProductPricingV0/SalesRankType.md deleted file mode 100644 index d60448b25..000000000 --- a/docs/Model/ProductPricingV0/SalesRankType.md +++ /dev/null @@ -1,10 +0,0 @@ -## SalesRankType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_category_id** | **string** | Identifies the item category from which the sales rank is taken. | -**rank** | **int** | The sales rank of the item within the item category. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/SellerFeedbackType.md b/docs/Model/ProductPricingV0/SellerFeedbackType.md deleted file mode 100644 index 1dfc59bc4..000000000 --- a/docs/Model/ProductPricingV0/SellerFeedbackType.md +++ /dev/null @@ -1,10 +0,0 @@ -## SellerFeedbackType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_positive_feedback_rating** | **double** | The percentage of positive feedback for the seller in the past 365 days. | [optional] -**feedback_count** | **int** | The number of ratings received about the seller. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/SellerSKUIdentifier.md b/docs/Model/ProductPricingV0/SellerSKUIdentifier.md deleted file mode 100644 index a8cc45406..000000000 --- a/docs/Model/ProductPricingV0/SellerSKUIdentifier.md +++ /dev/null @@ -1,11 +0,0 @@ -## SellerSKUIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**seller_id** | **string** | The seller identifier submitted for the operation. | -**seller_sku** | **string** | The seller stock keeping unit (SKU) of the item. | - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/ShipsFromType.md b/docs/Model/ProductPricingV0/ShipsFromType.md deleted file mode 100644 index f19bce602..000000000 --- a/docs/Model/ProductPricingV0/ShipsFromType.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipsFromType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**state** | **string** | The state from where the item is shipped. | [optional] -**country** | **string** | The country from where the item is shipped. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV0/Summary.md b/docs/Model/ProductPricingV0/Summary.md deleted file mode 100644 index ffa3f7453..000000000 --- a/docs/Model/ProductPricingV0/Summary.md +++ /dev/null @@ -1,18 +0,0 @@ -## Summary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_offer_count** | **int** | The number of unique offers contained in NumberOfOffers. | -**number_of_offers** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]**](OfferCountType.md) | | [optional] -**lowest_prices** | [**\SellingPartnerApi\Model\ProductPricingV0\LowestPriceType[]**](LowestPriceType.md) | | [optional] -**buy_box_prices** | [**\SellingPartnerApi\Model\ProductPricingV0\BuyBoxPriceType[]**](BuyBoxPriceType.md) | | [optional] -**list_price** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**competitive_price_threshold** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**suggested_lower_price_plus_shipping** | [**\SellingPartnerApi\Model\ProductPricingV0\MoneyType**](MoneyType.md) | | [optional] -**sales_rankings** | [**\SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]**](SalesRankType.md) | A list of sales rank information for the item, by category. | [optional] -**buy_box_eligible_offers** | [**\SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]**](OfferCountType.md) | | [optional] -**offers_available_time** | **string** | When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing. Must be in ISO 8601 format. | [optional] - -[[ProductPricingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/BatchRequest.md b/docs/Model/ProductPricingV20220501/BatchRequest.md deleted file mode 100644 index 3564e2803..000000000 --- a/docs/Model/ProductPricingV20220501/BatchRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -## BatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **string** | The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. | -**method** | [**\SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod**](HttpMethod.md) | | -**body** | **map[string,object]** | Additional HTTP body information associated with an individual request within a batch. | [optional] -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for an individual request within a batch. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/BatchResponse.md b/docs/Model/ProductPricingV20220501/BatchResponse.md deleted file mode 100644 index 87944dea9..000000000 --- a/docs/Model/ProductPricingV20220501/BatchResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## BatchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for an individual request within a batch. | -**status** | [**\SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine**](HttpStatusLine.md) | | - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/Condition.md b/docs/Model/ProductPricingV20220501/Condition.md deleted file mode 100644 index 734d022b8..000000000 --- a/docs/Model/ProductPricingV20220501/Condition.md +++ /dev/null @@ -1,8 +0,0 @@ -## Condition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/Error.md b/docs/Model/ProductPricingV20220501/Error.md deleted file mode 100644 index 79b5421fd..000000000 --- a/docs/Model/ProductPricingV20220501/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/Errors.md b/docs/Model/ProductPricingV20220501/Errors.md deleted file mode 100644 index bfa89b080..000000000 --- a/docs/Model/ProductPricingV20220501/Errors.md +++ /dev/null @@ -1,9 +0,0 @@ -## Errors - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOffer.md b/docs/Model/ProductPricingV20220501/FeaturedOffer.md deleted file mode 100644 index 99d49be42..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOffer.md +++ /dev/null @@ -1,11 +0,0 @@ -## FeaturedOffer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offer_identifier** | [**\SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier**](OfferIdentifier.md) | | -**condition** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Condition**](Condition.md) | | [optional] -**price** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Price**](Price.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.md deleted file mode 100644 index 74fe9cacf..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeaturedOfferExpectedPrice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType**](MoneyType.md) | | -**points** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Points**](Points.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.md deleted file mode 100644 index 03352f33d..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## FeaturedOfferExpectedPriceRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **string** | The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. | -**method** | [**\SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod**](HttpMethod.md) | | -**body** | **map[string,object]** | Additional HTTP body information associated with an individual request within a batch. | [optional] -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for an individual request within a batch. | [optional] -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which data is returned. | -**sku** | **string** | The seller SKU of the item. | - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.md deleted file mode 100644 index 69d21787a..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeaturedOfferExpectedPriceRequestParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which data is returned. | -**sku** | **string** | The seller SKU of the item. | - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.md deleted file mode 100644 index 00c27c021..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## FeaturedOfferExpectedPriceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**headers** | **map[string,string]** | A mapping of additional HTTP headers to send/receive for an individual request within a batch. | -**status** | [**\SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine**](HttpStatusLine.md) | | -**request** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams**](FeaturedOfferExpectedPriceRequestParams.md) | | -**body** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody**](FeaturedOfferExpectedPriceResponseBody.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.md deleted file mode 100644 index 420475ab5..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeaturedOfferExpectedPriceResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams**](FeaturedOfferExpectedPriceRequestParams.md) | | -**body** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody**](FeaturedOfferExpectedPriceResponseBody.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.md deleted file mode 100644 index 1124cd6ea..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.md +++ /dev/null @@ -1,11 +0,0 @@ -## FeaturedOfferExpectedPriceResponseBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offer_identifier** | [**\SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier**](OfferIdentifier.md) | | -**featured_offer_expected_price_results** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResult[]**](FeaturedOfferExpectedPriceResult.md) | A list of featured offer expected price results for the requested offer. | [optional] -**errors** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.md b/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.md deleted file mode 100644 index 794f2867d..000000000 --- a/docs/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## FeaturedOfferExpectedPriceResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**featured_offer_expected_price** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPrice**](FeaturedOfferExpectedPrice.md) | | [optional] -**result_status** | **string** | The status of the featured offer expected price computation. Possible values include VALID_FOEP, NO_COMPETING_OFFER, OFFER_NOT_ELIGIBLE, OFFER_NOT_FOUND. | -**competing_featured_offer** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer**](FeaturedOffer.md) | | [optional] -**current_featured_offer** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer**](FeaturedOffer.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/FulfillmentType.md b/docs/Model/ProductPricingV20220501/FulfillmentType.md deleted file mode 100644 index 5962ce373..000000000 --- a/docs/Model/ProductPricingV20220501/FulfillmentType.md +++ /dev/null @@ -1,8 +0,0 @@ -## FulfillmentType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.md b/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.md deleted file mode 100644 index 6a3c5e012..000000000 --- a/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetFeaturedOfferExpectedPriceBatchRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requests** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequest[]**](FeaturedOfferExpectedPriceRequest.md) | A batched list of featured offer expected price requests. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.md b/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.md deleted file mode 100644 index 34ea36665..000000000 --- a/docs/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetFeaturedOfferExpectedPriceBatchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**responses** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponse[]**](FeaturedOfferExpectedPriceResponse.md) | A batched list of featured offer expected price responses. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/HttpMethod.md b/docs/Model/ProductPricingV20220501/HttpMethod.md deleted file mode 100644 index 36f2b8d2c..000000000 --- a/docs/Model/ProductPricingV20220501/HttpMethod.md +++ /dev/null @@ -1,8 +0,0 @@ -## HttpMethod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/HttpStatusLine.md b/docs/Model/ProductPricingV20220501/HttpStatusLine.md deleted file mode 100644 index 150ecfb29..000000000 --- a/docs/Model/ProductPricingV20220501/HttpStatusLine.md +++ /dev/null @@ -1,10 +0,0 @@ -## HttpStatusLine - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | **int** | The HTTP response Status-Code. | [optional] -**reason_phrase** | **string** | The HTTP response Reason-Phase. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/MoneyType.md b/docs/Model/ProductPricingV20220501/MoneyType.md deleted file mode 100644 index 7bff0bf32..000000000 --- a/docs/Model/ProductPricingV20220501/MoneyType.md +++ /dev/null @@ -1,10 +0,0 @@ -## MoneyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] -**amount** | **float** | The monetary value. | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/OfferIdentifier.md b/docs/Model/ProductPricingV20220501/OfferIdentifier.md deleted file mode 100644 index e9b302415..000000000 --- a/docs/Model/ProductPricingV20220501/OfferIdentifier.md +++ /dev/null @@ -1,13 +0,0 @@ -## OfferIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. Specifies the marketplace for which data is returned. | -**seller_id** | **string** | The seller identifier for the offer. | [optional] -**sku** | **string** | The seller stock keeping unit (SKU) of the item. This will only be present for the target offer, which belongs to the requesting seller. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | -**fulfillment_type** | [**\SellingPartnerApi\Model\ProductPricingV20220501\FulfillmentType**](FulfillmentType.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/Points.md b/docs/Model/ProductPricingV20220501/Points.md deleted file mode 100644 index 9d745c6de..000000000 --- a/docs/Model/ProductPricingV20220501/Points.md +++ /dev/null @@ -1,10 +0,0 @@ -## Points - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**points_number** | **int** | The number of points. | [optional] -**points_monetary_value** | [**\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType**](MoneyType.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductPricingV20220501/Price.md b/docs/Model/ProductPricingV20220501/Price.md deleted file mode 100644 index 27227162c..000000000 --- a/docs/Model/ProductPricingV20220501/Price.md +++ /dev/null @@ -1,11 +0,0 @@ -## Price - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**listing_price** | [**\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType**](MoneyType.md) | | -**shipping_price** | [**\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType**](MoneyType.md) | | [optional] -**points** | [**\SellingPartnerApi\Model\ProductPricingV20220501\Points**](Points.md) | | [optional] - -[[ProductPricingV20220501 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/Error.md b/docs/Model/ProductTypeDefinitionsV20200901/Error.md deleted file mode 100644 index a36c84130..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/ErrorList.md b/docs/Model/ProductTypeDefinitionsV20200901/ErrorList.md deleted file mode 100644 index 47615d1e4..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\Error[]**](Error.md) | | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/ProductType.md b/docs/Model/ProductTypeDefinitionsV20200901/ProductType.md deleted file mode 100644 index 32e8cb5e2..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/ProductType.md +++ /dev/null @@ -1,10 +0,0 @@ -## ProductType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the Amazon product type. | -**marketplace_ids** | **string[]** | The Amazon marketplace identifiers for which the product type definition is available. | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.md b/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.md deleted file mode 100644 index 59cb787b3..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.md +++ /dev/null @@ -1,17 +0,0 @@ -## ProductTypeDefinition - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**meta_schema** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink**](SchemaLink.md) | | [optional] -**schema** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink**](SchemaLink.md) | | -**requirements** | **string** | Name of the requirements set represented in this product type definition. | -**requirements_enforced** | **string** | Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates). | -**property_groups** | [**map[string,\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\PropertyGroup]**](PropertyGroup.md) | Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes. | -**locale** | **string** | Locale of the display elements contained in the product type definition. | -**marketplace_ids** | **string[]** | Amazon marketplace identifiers for which the product type definition is applicable. | -**product_type** | **string** | The name of the Amazon product type that this product type definition applies to. | -**product_type_version** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeVersion**](ProductTypeVersion.md) | | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeList.md b/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeList.md deleted file mode 100644 index 7a146061a..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ProductTypeList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_types** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductType[]**](ProductType.md) | | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.md b/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.md deleted file mode 100644 index 96f2452da..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.md +++ /dev/null @@ -1,11 +0,0 @@ -## ProductTypeVersion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **string** | Version identifier. | -**latest** | **bool** | When true, the version indicated by the version identifier is the latest available for the Amazon product type. | -**release_candidate** | **bool** | When true, the version indicated by the version identifier is the prerelease (release candidate) for the Amazon product type. | [optional] - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/PropertyGroup.md b/docs/Model/ProductTypeDefinitionsV20200901/PropertyGroup.md deleted file mode 100644 index fb24d1c69..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/PropertyGroup.md +++ /dev/null @@ -1,11 +0,0 @@ -## PropertyGroup - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **string** | The display label of the property group. | [optional] -**description** | **string** | The description of the property group. | [optional] -**property_names** | **string[]** | The names of the schema properties for the property group. | [optional] - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/SchemaLink.md b/docs/Model/ProductTypeDefinitionsV20200901/SchemaLink.md deleted file mode 100644 index 4a6418b56..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/SchemaLink.md +++ /dev/null @@ -1,10 +0,0 @@ -## SchemaLink - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**link** | [**\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLinkLink**](SchemaLinkLink.md) | | -**checksum** | **string** | Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching. | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.md b/docs/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.md deleted file mode 100644 index b87451486..000000000 --- a/docs/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.md +++ /dev/null @@ -1,10 +0,0 @@ -## SchemaLinkLink - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource** | **string** | URI resource for the link. | -**verb** | **string** | HTTP method for the link operation. | - -[[ProductTypeDefinitionsV20200901 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/AggregationFrequency.md b/docs/Model/ReplenishmentV20221107/AggregationFrequency.md deleted file mode 100644 index 7475de721..000000000 --- a/docs/Model/ReplenishmentV20221107/AggregationFrequency.md +++ /dev/null @@ -1,8 +0,0 @@ -## AggregationFrequency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/AutoEnrollmentPreference.md b/docs/Model/ReplenishmentV20221107/AutoEnrollmentPreference.md deleted file mode 100644 index ab9bd307e..000000000 --- a/docs/Model/ReplenishmentV20221107/AutoEnrollmentPreference.md +++ /dev/null @@ -1,8 +0,0 @@ -## AutoEnrollmentPreference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/DiscountFunding.md b/docs/Model/ReplenishmentV20221107/DiscountFunding.md deleted file mode 100644 index ff680e5bf..000000000 --- a/docs/Model/ReplenishmentV20221107/DiscountFunding.md +++ /dev/null @@ -1,9 +0,0 @@ -## DiscountFunding - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**percentage** | **float[]** | Filters the results to only include offers with the percentage specified. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/EligibilityStatus.md b/docs/Model/ReplenishmentV20221107/EligibilityStatus.md deleted file mode 100644 index 219276812..000000000 --- a/docs/Model/ReplenishmentV20221107/EligibilityStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## EligibilityStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/EnrollmentMethod.md b/docs/Model/ReplenishmentV20221107/EnrollmentMethod.md deleted file mode 100644 index bb5862c9a..000000000 --- a/docs/Model/ReplenishmentV20221107/EnrollmentMethod.md +++ /dev/null @@ -1,8 +0,0 @@ -## EnrollmentMethod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/Error.md b/docs/Model/ReplenishmentV20221107/Error.md deleted file mode 100644 index 2127b6e1a..000000000 --- a/docs/Model/ReplenishmentV20221107/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ErrorList.md b/docs/Model/ReplenishmentV20221107/ErrorList.md deleted file mode 100644 index 567286ac9..000000000 --- a/docs/Model/ReplenishmentV20221107/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\Error[]**](Error.md) | | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.md b/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.md deleted file mode 100644 index 244c163d8..000000000 --- a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## GetSellingPartnerMetricsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregation_frequency** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency**](AggregationFrequency.md) | | [optional] -**time_interval** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval**](TimeInterval.md) | | -**metrics** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\Metric[]**](Metric.md) | The list of metrics requested. If no metric value is provided, data for all of the metrics will be returned. | [optional] -**time_period_type** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType**](TimePeriodType.md) | | -**marketplace_id** | **string** | The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. | -**program_types** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]**](ProgramType.md) | A list of replenishment program types. | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.md b/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.md deleted file mode 100644 index 94873128b..000000000 --- a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetSellingPartnerMetricsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metrics** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponseMetric[]**](GetSellingPartnerMetricsResponseMetric.md) | A list of metrics data for the selling partner. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.md b/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.md deleted file mode 100644 index 7d2b5941d..000000000 --- a/docs/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.md +++ /dev/null @@ -1,16 +0,0 @@ -## GetSellingPartnerMetricsResponseMetric - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**not_delivered_due_to_oos** | **double** | The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**total_subscriptions_revenue** | **double** | The revenue generated from subscriptions over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. | [optional] -**shipped_subscription_units** | **float** | The number of units shipped to the subscribers over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. | [optional] -**active_subscriptions** | **float** | The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**subscriber_average_revenue** | **double** | The average revenue per subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**non_subscriber_average_revenue** | **double** | The average revenue per non-subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**time_interval** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval**](TimeInterval.md) | | [optional] -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequest.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequest.md deleted file mode 100644 index 94f2edc14..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## ListOfferMetricsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestPagination**](ListOfferMetricsRequestPagination.md) | | -**sort** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestSort**](ListOfferMetricsRequestSort.md) | | [optional] -**filters** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestFilters**](ListOfferMetricsRequestFilters.md) | | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.md deleted file mode 100644 index 0907c8e90..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.md +++ /dev/null @@ -1,14 +0,0 @@ -## ListOfferMetricsRequestFilters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregation_frequency** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency**](AggregationFrequency.md) | | [optional] -**time_interval** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval**](TimeInterval.md) | | -**time_period_type** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType**](TimePeriodType.md) | | -**marketplace_id** | **string** | The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. | -**program_types** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]**](ProgramType.md) | A list of replenishment program types. | -**asins** | **string[]** | A list of Amazon Standard Identification Numbers (ASINs). | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.md deleted file mode 100644 index 472ecf049..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOfferMetricsRequestPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limit** | **int** | The maximum number of results to return in the response. | -**offset** | **int** | The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0. | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.md deleted file mode 100644 index 7209cabcd..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOfferMetricsRequestSort - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder**](SortOrder.md) | | -**key** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsSortKey**](ListOfferMetricsSortKey.md) | | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponse.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponse.md deleted file mode 100644 index b581ca5ab..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOfferMetricsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offers** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponseOffer[]**](ListOfferMetricsResponseOffer.md) | A list of offers and associated metrics. | [optional] -**pagination** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse**](PaginationResponse.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.md deleted file mode 100644 index b1348dedf..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.md +++ /dev/null @@ -1,22 +0,0 @@ -## ListOfferMetricsResponseOffer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN). | [optional] -**not_delivered_due_to_oos** | **double** | The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**total_subscriptions_revenue** | **double** | The revenue generated from subscriptions over a period of time. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**shipped_subscription_units** | **float** | The number of units shipped to the subscribers over a period of time. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**active_subscriptions** | **float** | The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**revenue_penetration** | **double** | The percentage of total program revenue out of total product revenue. Applicable only for the PERFORMANCE timePeriodType. | [optional] -**next30_day_total_subscriptions_revenue** | **double** | The forecasted total subscription revenue for the next 30 days. Applicable only for the FORECAST timePeriodType. | [optional] -**next60_day_total_subscriptions_revenue** | **double** | The forecasted total subscription revenue for the next 60 days. Applicable only for the FORECAST timePeriodType. | [optional] -**next90_day_total_subscriptions_revenue** | **double** | The forecasted total subscription revenue for the next 90 days. Applicable only for the FORECAST timePeriodType. | [optional] -**next30_day_shipped_subscription_units** | **float** | The forecasted shipped subscription units for the next 30 days. Applicable only for the FORECAST timePeriodType. | [optional] -**next60_day_shipped_subscription_units** | **float** | The forecasted shipped subscription units for the next 60 days. Applicable only for the FORECAST timePeriodType. | [optional] -**next90_day_shipped_subscription_units** | **float** | The forecasted shipped subscription units for the next 90 days. Applicable only for the FORECAST timePeriodType. | [optional] -**time_interval** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval**](TimeInterval.md) | | [optional] -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.md b/docs/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.md deleted file mode 100644 index 70bd38bd9..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.md +++ /dev/null @@ -1,8 +0,0 @@ -## ListOfferMetricsSortKey - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersRequest.md b/docs/Model/ReplenishmentV20221107/ListOffersRequest.md deleted file mode 100644 index 92ccb7b68..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## ListOffersRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestPagination**](ListOffersRequestPagination.md) | | -**filters** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestFilters**](ListOffersRequestFilters.md) | | -**sort** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestSort**](ListOffersRequestSort.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersRequestFilters.md b/docs/Model/ReplenishmentV20221107/ListOffersRequestFilters.md deleted file mode 100644 index ea6f9253c..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersRequestFilters.md +++ /dev/null @@ -1,15 +0,0 @@ -## ListOffersRequestFilters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. | -**skus** | **string[]** | A list of SKUs to filter. This filter is only supported for sellers and not for vendors. | [optional] -**asins** | **string[]** | A list of Amazon Standard Identification Numbers (ASINs). | [optional] -**eligibilities** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus[]**](EligibilityStatus.md) | A list of eligibilities associated with an offer. | [optional] -**preferences** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\Preference**](Preference.md) | | [optional] -**promotions** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\Promotion**](Promotion.md) | | [optional] -**program_types** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]**](ProgramType.md) | A list of replenishment program types. | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersRequestPagination.md b/docs/Model/ReplenishmentV20221107/ListOffersRequestPagination.md deleted file mode 100644 index 06b7064af..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersRequestPagination.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOffersRequestPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limit** | **int** | The maximum number of results to return in the response. | -**offset** | **int** | The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0. | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersRequestSort.md b/docs/Model/ReplenishmentV20221107/ListOffersRequestSort.md deleted file mode 100644 index 553948236..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersRequestSort.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOffersRequestSort - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder**](SortOrder.md) | | -**key** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersSortKey**](ListOffersSortKey.md) | | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersResponse.md b/docs/Model/ReplenishmentV20221107/ListOffersResponse.md deleted file mode 100644 index 16d182f1f..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## ListOffersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offers** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponseOffer[]**](ListOffersResponseOffer.md) | A list of offers. | [optional] -**pagination** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse**](PaginationResponse.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersResponseOffer.md b/docs/Model/ReplenishmentV20221107/ListOffersResponseOffer.md deleted file mode 100644 index 57a1dad2f..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersResponseOffer.md +++ /dev/null @@ -1,15 +0,0 @@ -## ListOffersResponseOffer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sku** | **string** | The SKU. This property is only supported for sellers and not for vendors. | [optional] -**asin** | **string** | The Amazon Standard Identification Number (ASIN). | [optional] -**marketplace_id** | **string** | The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. | [optional] -**eligibility** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus**](EligibilityStatus.md) | | [optional] -**offer_program_configuration** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfiguration**](OfferProgramConfiguration.md) | | [optional] -**program_type** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType**](ProgramType.md) | | [optional] -**vendor_codes** | **string[]** | A list of vendor codes associated with the offer. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ListOffersSortKey.md b/docs/Model/ReplenishmentV20221107/ListOffersSortKey.md deleted file mode 100644 index 195beef99..000000000 --- a/docs/Model/ReplenishmentV20221107/ListOffersSortKey.md +++ /dev/null @@ -1,8 +0,0 @@ -## ListOffersSortKey - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/Metric.md b/docs/Model/ReplenishmentV20221107/Metric.md deleted file mode 100644 index bc050ace3..000000000 --- a/docs/Model/ReplenishmentV20221107/Metric.md +++ /dev/null @@ -1,8 +0,0 @@ -## Metric - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/OfferProgramConfiguration.md b/docs/Model/ReplenishmentV20221107/OfferProgramConfiguration.md deleted file mode 100644 index 091ed31b0..000000000 --- a/docs/Model/ReplenishmentV20221107/OfferProgramConfiguration.md +++ /dev/null @@ -1,11 +0,0 @@ -## OfferProgramConfiguration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferences** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPreferences**](OfferProgramConfigurationPreferences.md) | | [optional] -**promotions** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotions**](OfferProgramConfigurationPromotions.md) | | [optional] -**enrollment_method** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\EnrollmentMethod**](EnrollmentMethod.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.md b/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.md deleted file mode 100644 index 9e410344e..000000000 --- a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.md +++ /dev/null @@ -1,9 +0,0 @@ -## OfferProgramConfigurationPreferences - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auto_enrollment** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference**](AutoEnrollmentPreference.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.md b/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.md deleted file mode 100644 index 50baec1f3..000000000 --- a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.md +++ /dev/null @@ -1,12 +0,0 @@ -## OfferProgramConfigurationPromotions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_partner_funded_base_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding**](OfferProgramConfigurationPromotionsDiscountFunding.md) | | [optional] -**selling_partner_funded_tiered_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding**](OfferProgramConfigurationPromotionsDiscountFunding.md) | | [optional] -**amazon_funded_base_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding**](OfferProgramConfigurationPromotionsDiscountFunding.md) | | [optional] -**amazon_funded_tiered_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding**](OfferProgramConfigurationPromotionsDiscountFunding.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.md b/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.md deleted file mode 100644 index 02964f3fd..000000000 --- a/docs/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.md +++ /dev/null @@ -1,9 +0,0 @@ -## OfferProgramConfigurationPromotionsDiscountFunding - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**percentage** | **float** | The percentage discount on the offer. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/PaginationResponse.md b/docs/Model/ReplenishmentV20221107/PaginationResponse.md deleted file mode 100644 index d70c4c1d8..000000000 --- a/docs/Model/ReplenishmentV20221107/PaginationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## PaginationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_results** | **int** | Total number of results matching the given filter criteria. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/Preference.md b/docs/Model/ReplenishmentV20221107/Preference.md deleted file mode 100644 index d22524814..000000000 --- a/docs/Model/ReplenishmentV20221107/Preference.md +++ /dev/null @@ -1,9 +0,0 @@ -## Preference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auto_enrollment** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference[]**](AutoEnrollmentPreference.md) | Filters the results to only include offers with the auto-enrollment preference specified. | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/ProgramType.md b/docs/Model/ReplenishmentV20221107/ProgramType.md deleted file mode 100644 index 70b8e1ffa..000000000 --- a/docs/Model/ReplenishmentV20221107/ProgramType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ProgramType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/Promotion.md b/docs/Model/ReplenishmentV20221107/Promotion.md deleted file mode 100644 index da29650b2..000000000 --- a/docs/Model/ReplenishmentV20221107/Promotion.md +++ /dev/null @@ -1,12 +0,0 @@ -## Promotion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_partner_funded_base_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding**](DiscountFunding.md) | | [optional] -**selling_partner_funded_tiered_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding**](DiscountFunding.md) | | [optional] -**amazon_funded_base_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding**](DiscountFunding.md) | | [optional] -**amazon_funded_tiered_discount** | [**\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding**](DiscountFunding.md) | | [optional] - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/SortOrder.md b/docs/Model/ReplenishmentV20221107/SortOrder.md deleted file mode 100644 index d374b4008..000000000 --- a/docs/Model/ReplenishmentV20221107/SortOrder.md +++ /dev/null @@ -1,8 +0,0 @@ -## SortOrder - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/TimeInterval.md b/docs/Model/ReplenishmentV20221107/TimeInterval.md deleted file mode 100644 index cef261f85..000000000 --- a/docs/Model/ReplenishmentV20221107/TimeInterval.md +++ /dev/null @@ -1,21 +0,0 @@ -## TimeInterval - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **string** | When this object is used as a request parameter, the specified startDate is adjusted based on the aggregation frequency. - -* For WEEK the metric is computed from the first day of the week (that is, Sunday based on ISO 8601) that contains the startDate. -* For MONTH the metric is computed from the first day of the month that contains the startDate. -* For QUARTER the metric is computed from the first day of the quarter that contains the startDate. -* For YEAR the metric is computed from the first day of the year that contains the startDate. | -**end_date** | **string** | When this object is used as a request parameter, the specified endDate is adjusted based on the aggregation frequency. - -* For WEEK the metric is computed up to the last day of the week (that is, Sunday based on ISO 8601) that contains the endDate. -* For MONTH, the metric is computed up to the last day that contains the endDate. -* For QUARTER the metric is computed up to the last day of the quarter that contains the endDate. -* For YEAR the metric is computed up to the last day of the year that contains the endDate. - Note: The end date may be adjusted to a lower value based on the data available in our system. | - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReplenishmentV20221107/TimePeriodType.md b/docs/Model/ReplenishmentV20221107/TimePeriodType.md deleted file mode 100644 index 4dc7dec17..000000000 --- a/docs/Model/ReplenishmentV20221107/TimePeriodType.md +++ /dev/null @@ -1,8 +0,0 @@ -## TimePeriodType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ReplenishmentV20221107 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/CreateReportResponse.md b/docs/Model/ReportsV20210630/CreateReportResponse.md deleted file mode 100644 index a74e1d7f0..000000000 --- a/docs/Model/ReportsV20210630/CreateReportResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateReportResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_id** | **string** | The identifier for the report. This identifier is unique only in combination with a seller ID. | - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/CreateReportScheduleResponse.md b/docs/Model/ReportsV20210630/CreateReportScheduleResponse.md deleted file mode 100644 index ea2488c3e..000000000 --- a/docs/Model/ReportsV20210630/CreateReportScheduleResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateReportScheduleResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_schedule_id** | **string** | The identifier for the report schedule. This identifier is unique only in combination with a seller ID. | - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/CreateReportScheduleSpecification.md b/docs/Model/ReportsV20210630/CreateReportScheduleSpecification.md deleted file mode 100644 index 56d1f7ed9..000000000 --- a/docs/Model/ReportsV20210630/CreateReportScheduleSpecification.md +++ /dev/null @@ -1,13 +0,0 @@ -## CreateReportScheduleSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_type** | **string** | The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. | -**marketplace_ids** | **string[]** | A list of marketplace identifiers for the report schedule. | -**report_options** | **map[string,string]** | Additional information passed to reports. This varies by report type. | [optional] -**period** | **string** | One of a set of predefined ISO 8601 periods that specifies how often a report should be created. | -**next_report_creation_time** | **string** | The date and time when the schedule will create its next report, in ISO 8601 date time format. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/CreateReportSpecification.md b/docs/Model/ReportsV20210630/CreateReportSpecification.md deleted file mode 100644 index 960fb1cfb..000000000 --- a/docs/Model/ReportsV20210630/CreateReportSpecification.md +++ /dev/null @@ -1,13 +0,0 @@ -## CreateReportSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_options** | **map[string,string]** | Additional information passed to reports. This varies by report type. | [optional] -**report_type** | **string** | The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. | -**data_start_time** | **string** | 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. | [optional] -**data_end_time** | **string** | 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. | [optional] -**marketplace_ids** | **string[]** | 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. | - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/Error.md b/docs/Model/ReportsV20210630/Error.md deleted file mode 100644 index b61dd7a89..000000000 --- a/docs/Model/ReportsV20210630/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/ErrorList.md b/docs/Model/ReportsV20210630/ErrorList.md deleted file mode 100644 index 1e1b04f73..000000000 --- a/docs/Model/ReportsV20210630/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ReportsV20210630\Error[]**](Error.md) | | - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/GetReportsResponse.md b/docs/Model/ReportsV20210630/GetReportsResponse.md deleted file mode 100644 index c6848a0df..000000000 --- a/docs/Model/ReportsV20210630/GetReportsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetReportsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**\SellingPartnerApi\Model\ReportsV20210630\Report[]**](Report.md) | A list of reports. | -**next_token** | **string** | Returned when the number of results exceeds pageSize. To get the next page of results, call getReports with this token as the only parameter. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/Report.md b/docs/Model/ReportsV20210630/Report.md deleted file mode 100644 index 0cf48b332..000000000 --- a/docs/Model/ReportsV20210630/Report.md +++ /dev/null @@ -1,19 +0,0 @@ -## Report - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_ids** | **string[]** | A list of marketplace identifiers for the report. | [optional] -**report_id** | **string** | The identifier for the report. This identifier is unique only in combination with a seller ID. | -**report_type** | **string** | The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. | -**data_start_time** | **string** | The start of a date and time range used for selecting the data to report. Must be in ISO 8601 format. | [optional] -**data_end_time** | **string** | The end of a date and time range used for selecting the data to report. Must be in ISO 8601 format. | [optional] -**report_schedule_id** | **string** | The identifier of the report schedule that created this report (if any). This identifier is unique only in combination with a seller ID. | [optional] -**created_time** | **string** | The date and time when the report was created. | -**processing_status** | **string** | The processing status of the report. | -**processing_start_time** | **string** | The date and time when the report processing started, in ISO 8601 date time format. | [optional] -**processing_end_time** | **string** | The date and time when the report processing completed, in ISO 8601 date time format. | [optional] -**report_document_id** | **string** | The identifier for the report document. Pass this into the getReportDocument operation to get the information you will need to retrieve the report document's contents. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/ReportDocument.md b/docs/Model/ReportsV20210630/ReportDocument.md deleted file mode 100644 index 205e6dae0..000000000 --- a/docs/Model/ReportsV20210630/ReportDocument.md +++ /dev/null @@ -1,11 +0,0 @@ -## ReportDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_document_id** | **string** | The identifier for the report document. This identifier is unique only in combination with a seller ID. | -**url** | **string** | A presigned URL for the report document. If `compressionAlgorithm` is not returned, you can download the report directly from this URL. This URL expires after 5 minutes. | -**compression_algorithm** | **string** | If the report document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the report when you download. Otherwise, you can download the report directly. Refer to [Step 2. Download the report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-retrieve-a-report#step-2-download-the-report) in the use case guide, where sample code is provided. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/ReportSchedule.md b/docs/Model/ReportsV20210630/ReportSchedule.md deleted file mode 100644 index 462f4404c..000000000 --- a/docs/Model/ReportsV20210630/ReportSchedule.md +++ /dev/null @@ -1,14 +0,0 @@ -## ReportSchedule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_schedule_id** | **string** | The identifier for the report schedule. This identifier is unique only in combination with a seller ID. | -**report_type** | **string** | The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. | -**marketplace_ids** | **string[]** | 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. | [optional] -**report_options** | **map[string,string]** | Additional information passed to reports. This varies by report type. | [optional] -**period** | **string** | An ISO 8601 period value that indicates how often a report should be created. | -**next_report_creation_time** | **string** | The date and time when the schedule will create its next report, in ISO 8601 date time format. | [optional] - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ReportsV20210630/ReportScheduleList.md b/docs/Model/ReportsV20210630/ReportScheduleList.md deleted file mode 100644 index adf58b24d..000000000 --- a/docs/Model/ReportsV20210630/ReportScheduleList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ReportScheduleList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**report_schedules** | [**\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule[]**](ReportSchedule.md) | | - -[[ReportsV20210630 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SalesV1/Error.md b/docs/Model/SalesV1/Error.md deleted file mode 100644 index ace42b514..000000000 --- a/docs/Model/SalesV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[SalesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SalesV1/GetOrderMetricsResponse.md b/docs/Model/SalesV1/GetOrderMetricsResponse.md deleted file mode 100644 index 99673eddb..000000000 --- a/docs/Model/SalesV1/GetOrderMetricsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderMetricsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\SalesV1\OrderMetricsInterval[]**](OrderMetricsInterval.md) | A set of order metrics, each scoped to a particular time interval. | [optional] -**errors** | [**\SellingPartnerApi\Model\SalesV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SalesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SalesV1/Money.md b/docs/Model/SalesV1/Money.md deleted file mode 100644 index de2191602..000000000 --- a/docs/Model/SalesV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three-digit currency code. In ISO 4217 format. | -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation. | - -[[SalesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SalesV1/OrderMetricsInterval.md b/docs/Model/SalesV1/OrderMetricsInterval.md deleted file mode 100644 index 20e72fecd..000000000 --- a/docs/Model/SalesV1/OrderMetricsInterval.md +++ /dev/null @@ -1,14 +0,0 @@ -## OrderMetricsInterval - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**interval** | **string** | The interval of time based on requested granularity (ex. Hour, Day, etc.) If this is the first or the last interval from the list, it might contain incomplete data if the requested interval doesn't align with the requested granularity (ex. request interval 2018-09-01T02:00:00Z--2018-09-04T19:00:00Z and granularity day will result in Sept 1st UTC day and Sept 4th UTC days having partial data). | -**unit_count** | **int** | The number of units in orders based on the specified filters. | -**order_item_count** | **int** | The number of order items based on the specified filters. | -**order_count** | **int** | The number of orders based on the specified filters. | -**average_unit_price** | [**\SellingPartnerApi\Model\SalesV1\Money**](Money.md) | | -**total_sales** | [**\SellingPartnerApi\Model\SalesV1\Money**](Money.md) | | - -[[SalesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SellersV1/Error.md b/docs/Model/SellersV1/Error.md deleted file mode 100644 index ff829b9fa..000000000 --- a/docs/Model/SellersV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[SellersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SellersV1/GetMarketplaceParticipationsResponse.md b/docs/Model/SellersV1/GetMarketplaceParticipationsResponse.md deleted file mode 100644 index c2bce3b38..000000000 --- a/docs/Model/SellersV1/GetMarketplaceParticipationsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetMarketplaceParticipationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\SellersV1\MarketplaceParticipation[]**](MarketplaceParticipation.md) | List of marketplace participations. | [optional] -**errors** | [**\SellingPartnerApi\Model\SellersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SellersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SellersV1/Marketplace.md b/docs/Model/SellersV1/Marketplace.md deleted file mode 100644 index 31dbebef2..000000000 --- a/docs/Model/SellersV1/Marketplace.md +++ /dev/null @@ -1,14 +0,0 @@ -## Marketplace - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | The encrypted marketplace value. | -**name** | **string** | Marketplace name. | -**country_code** | **string** | The ISO 3166-1 alpha-2 format country code of the marketplace. | -**default_currency_code** | **string** | The ISO 4217 format currency code of the marketplace. | -**default_language_code** | **string** | The ISO 639-1 format language code of the marketplace. | -**domain_name** | **string** | The domain name of the marketplace. | - -[[SellersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SellersV1/MarketplaceParticipation.md b/docs/Model/SellersV1/MarketplaceParticipation.md deleted file mode 100644 index e249b3a3f..000000000 --- a/docs/Model/SellersV1/MarketplaceParticipation.md +++ /dev/null @@ -1,10 +0,0 @@ -## MarketplaceParticipation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace** | [**\SellingPartnerApi\Model\SellersV1\Marketplace**](Marketplace.md) | | -**participation** | [**\SellingPartnerApi\Model\SellersV1\Participation**](Participation.md) | | - -[[SellersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SellersV1/Participation.md b/docs/Model/SellersV1/Participation.md deleted file mode 100644 index a362e5573..000000000 --- a/docs/Model/SellersV1/Participation.md +++ /dev/null @@ -1,10 +0,0 @@ -## Participation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_participating** | **bool** | | -**has_suspended_listings** | **bool** | Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False. | - -[[SellersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AddAppointmentRequest.md b/docs/Model/ServiceV1/AddAppointmentRequest.md deleted file mode 100644 index 1ae33668a..000000000 --- a/docs/Model/ServiceV1/AddAppointmentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## AddAppointmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appointment_time** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput**](AppointmentTimeInput.md) | | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Address.md b/docs/Model/ServiceV1/Address.md deleted file mode 100644 index 8e906e6ff..000000000 --- a/docs/Model/ServiceV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business, or institution. | -**address_line1** | **string** | The first line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city. | [optional] -**county** | **string** | The county. | [optional] -**district** | **string** | The district. | [optional] -**state_or_region** | **string** | The state or region. | [optional] -**postal_code** | **string** | The postal code. This can contain letters, digits, spaces, and/or punctuation. | [optional] -**country_code** | **string** | The two digit country code, in ISO 3166-1 alpha-2 format. | [optional] -**phone** | **string** | The phone number. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Appointment.md b/docs/Model/ServiceV1/Appointment.md deleted file mode 100644 index fde1ccf47..000000000 --- a/docs/Model/ServiceV1/Appointment.md +++ /dev/null @@ -1,14 +0,0 @@ -## Appointment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appointment_id** | **string** | The appointment identifier. | [optional] -**appointment_status** | **string** | The status of the appointment. | [optional] -**appointment_time** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentTime**](AppointmentTime.md) | | [optional] -**assigned_technicians** | [**\SellingPartnerApi\Model\ServiceV1\Technician[]**](Technician.md) | A list of technicians assigned to the service job. | [optional] -**rescheduled_appointment_id** | **string** | The appointment identifier. | [optional] -**poa** | [**\SellingPartnerApi\Model\ServiceV1\Poa**](Poa.md) | | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AppointmentResource.md b/docs/Model/ServiceV1/AppointmentResource.md deleted file mode 100644 index 7adab4e0b..000000000 --- a/docs/Model/ServiceV1/AppointmentResource.md +++ /dev/null @@ -1,9 +0,0 @@ -## AppointmentResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_id** | **string** | The resource identifier. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AppointmentSlot.md b/docs/Model/ServiceV1/AppointmentSlot.md deleted file mode 100644 index a6a2a82af..000000000 --- a/docs/Model/ServiceV1/AppointmentSlot.md +++ /dev/null @@ -1,11 +0,0 @@ -## AppointmentSlot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | Time window start time in ISO 8601 format. | [optional] -**end_time** | **string** | Time window end time in ISO 8601 format. | [optional] -**capacity** | **int** | Number of resources for which a slot can be reserved. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AppointmentSlotReport.md b/docs/Model/ServiceV1/AppointmentSlotReport.md deleted file mode 100644 index 989e9df15..000000000 --- a/docs/Model/ServiceV1/AppointmentSlotReport.md +++ /dev/null @@ -1,12 +0,0 @@ -## AppointmentSlotReport - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduling_type** | **string** | Defines the type of slots. | [optional] -**start_time** | **string** | Start Time from which the appointment slots are generated in ISO 8601 format. | [optional] -**end_time** | **string** | End Time up to which the appointment slots are generated in ISO 8601 format. | [optional] -**appointment_slots** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentSlot[]**](AppointmentSlot.md) | A list of time windows along with associated capacity in which the service can be performed. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AppointmentTime.md b/docs/Model/ServiceV1/AppointmentTime.md deleted file mode 100644 index aa84d2d7c..000000000 --- a/docs/Model/ServiceV1/AppointmentTime.md +++ /dev/null @@ -1,10 +0,0 @@ -## AppointmentTime - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | The date and time of the start of the appointment window in ISO 8601 format. | -**duration_in_minutes** | **int** | The duration of the appointment window, in minutes. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AppointmentTimeInput.md b/docs/Model/ServiceV1/AppointmentTimeInput.md deleted file mode 100644 index 693e42e26..000000000 --- a/docs/Model/ServiceV1/AppointmentTimeInput.md +++ /dev/null @@ -1,10 +0,0 @@ -## AppointmentTimeInput - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | The date, time in UTC for the start time of an appointment in ISO 8601 format. | -**duration_in_minutes** | **int** | The duration of an appointment in minutes. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AssignAppointmentResourcesRequest.md b/docs/Model/ServiceV1/AssignAppointmentResourcesRequest.md deleted file mode 100644 index 8dbe89334..000000000 --- a/docs/Model/ServiceV1/AssignAppointmentResourcesRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## AssignAppointmentResourcesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resources** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentResource[]**](AppointmentResource.md) | List of resources that performs or performed job appointment fulfillment. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AssignAppointmentResourcesResponse.md b/docs/Model/ServiceV1/AssignAppointmentResourcesResponse.md deleted file mode 100644 index 45d604079..000000000 --- a/docs/Model/ServiceV1/AssignAppointmentResourcesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## AssignAppointmentResourcesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponsePayload**](AssignAppointmentResourcesResponsePayload.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.md b/docs/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.md deleted file mode 100644 index 1e2f03ce6..000000000 --- a/docs/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.md +++ /dev/null @@ -1,9 +0,0 @@ -## AssignAppointmentResourcesResponsePayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warnings** | [**\SellingPartnerApi\Model\ServiceV1\Warning[]**](Warning.md) | A list of warnings returned in the sucessful execution response of an API request. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AssociatedItem.md b/docs/Model/ServiceV1/AssociatedItem.md deleted file mode 100644 index da7044a36..000000000 --- a/docs/Model/ServiceV1/AssociatedItem.md +++ /dev/null @@ -1,15 +0,0 @@ -## AssociatedItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**title** | **string** | The title of the item. | [optional] -**quantity** | **int** | The total number of items included in the order. | [optional] -**order_id** | **string** | The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. | [optional] -**item_status** | **string** | The status of the item. | [optional] -**brand_name** | **string** | The brand name of the item. | [optional] -**item_delivery** | [**\SellingPartnerApi\Model\ServiceV1\ItemDelivery**](ItemDelivery.md) | | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/AvailabilityRecord.md b/docs/Model/ServiceV1/AvailabilityRecord.md deleted file mode 100644 index aa205577d..000000000 --- a/docs/Model/ServiceV1/AvailabilityRecord.md +++ /dev/null @@ -1,12 +0,0 @@ -## AvailabilityRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | Denotes the time from when the resource is available in a day in ISO-8601 format. | -**end_time** | **string** | Denotes the time till when the resource is available in a day in ISO-8601 format. | -**recurrence** | [**\SellingPartnerApi\Model\ServiceV1\Recurrence**](Recurrence.md) | | [optional] -**capacity** | **int** | Signifies the capacity of a resource which is available. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Buyer.md b/docs/Model/ServiceV1/Buyer.md deleted file mode 100644 index 5ae2e04bd..000000000 --- a/docs/Model/ServiceV1/Buyer.md +++ /dev/null @@ -1,12 +0,0 @@ -## Buyer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer_id** | **string** | The identifier of the buyer. | [optional] -**name** | **string** | The name of the buyer. | [optional] -**phone** | **string** | The phone number of the buyer. | [optional] -**is_prime_member** | **bool** | When true, the service is for an Amazon Prime buyer. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CancelReservationResponse.md b/docs/Model/ServiceV1/CancelReservationResponse.md deleted file mode 100644 index ce5e807fe..000000000 --- a/docs/Model/ServiceV1/CancelReservationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CancelReservationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.md b/docs/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.md deleted file mode 100644 index 4dac43700..000000000 --- a/docs/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CancelServiceJobByServiceJobIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CapacityType.md b/docs/Model/ServiceV1/CapacityType.md deleted file mode 100644 index 0503e61b2..000000000 --- a/docs/Model/ServiceV1/CapacityType.md +++ /dev/null @@ -1,8 +0,0 @@ -## CapacityType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.md b/docs/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.md deleted file mode 100644 index eb90f603c..000000000 --- a/docs/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CompleteServiceJobByServiceJobIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CreateReservationRecord.md b/docs/Model/ServiceV1/CreateReservationRecord.md deleted file mode 100644 index 37f678f0b..000000000 --- a/docs/Model/ServiceV1/CreateReservationRecord.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateReservationRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reservation** | [**\SellingPartnerApi\Model\ServiceV1\Reservation**](Reservation.md) | | [optional] -**warnings** | [**\SellingPartnerApi\Model\ServiceV1\Warning[]**](Warning.md) | A list of warnings returned in the sucessful execution response of an API request. | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CreateReservationRequest.md b/docs/Model/ServiceV1/CreateReservationRequest.md deleted file mode 100644 index 27c557dce..000000000 --- a/docs/Model/ServiceV1/CreateReservationRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateReservationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_id** | **string** | Resource (store) identifier. | -**reservation** | [**\SellingPartnerApi\Model\ServiceV1\Reservation**](Reservation.md) | | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CreateReservationResponse.md b/docs/Model/ServiceV1/CreateReservationResponse.md deleted file mode 100644 index 721ce137b..000000000 --- a/docs/Model/ServiceV1/CreateReservationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateReservationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\CreateReservationRecord**](CreateReservationRecord.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/CreateServiceDocumentUploadDestination.md b/docs/Model/ServiceV1/CreateServiceDocumentUploadDestination.md deleted file mode 100644 index e3e06638e..000000000 --- a/docs/Model/ServiceV1/CreateServiceDocumentUploadDestination.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateServiceDocumentUploadDestination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\ServiceDocumentUploadDestination**](ServiceDocumentUploadDestination.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/DayOfWeek.md b/docs/Model/ServiceV1/DayOfWeek.md deleted file mode 100644 index cc85b3322..000000000 --- a/docs/Model/ServiceV1/DayOfWeek.md +++ /dev/null @@ -1,8 +0,0 @@ -## DayOfWeek - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/EncryptionDetails.md b/docs/Model/ServiceV1/EncryptionDetails.md deleted file mode 100644 index e6e4e8651..000000000 --- a/docs/Model/ServiceV1/EncryptionDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## EncryptionDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**standard** | **string** | The encryption standard required to encrypt or decrypt the document contents. | -**initialization_vector** | **string** | The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC). | -**key** | **string** | The encryption key used to encrypt or decrypt the document contents. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Error.md b/docs/Model/ServiceV1/Error.md deleted file mode 100644 index 3e404118b..000000000 --- a/docs/Model/ServiceV1/Error.md +++ /dev/null @@ -1,12 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] -**error_level** | **string** | The type of error. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FixedSlot.md b/docs/Model/ServiceV1/FixedSlot.md deleted file mode 100644 index fb4d863ed..000000000 --- a/docs/Model/ServiceV1/FixedSlot.md +++ /dev/null @@ -1,13 +0,0 @@ -## FixedSlot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date_time** | **string** | Start date time of slot in ISO 8601 format with precision of seconds. | [optional] -**scheduled_capacity** | **int** | Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule. | [optional] -**available_capacity** | **int** | Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations. | [optional] -**encumbered_capacity** | **int** | Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders. | [optional] -**reserved_capacity** | **int** | Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FixedSlotCapacity.md b/docs/Model/ServiceV1/FixedSlotCapacity.md deleted file mode 100644 index 4c557a2d0..000000000 --- a/docs/Model/ServiceV1/FixedSlotCapacity.md +++ /dev/null @@ -1,12 +0,0 @@ -## FixedSlotCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_id** | **string** | Resource Identifier. | [optional] -**slot_duration** | **float** | The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360. | [optional] -**capacities** | [**\SellingPartnerApi\Model\ServiceV1\FixedSlot[]**](FixedSlot.md) | Array of capacity slots in fixed slot format. | [optional] -**next_page_token** | **string** | Next page token, if there are more pages. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FixedSlotCapacityErrors.md b/docs/Model/ServiceV1/FixedSlotCapacityErrors.md deleted file mode 100644 index 261027206..000000000 --- a/docs/Model/ServiceV1/FixedSlotCapacityErrors.md +++ /dev/null @@ -1,9 +0,0 @@ -## FixedSlotCapacityErrors - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FixedSlotCapacityQuery.md b/docs/Model/ServiceV1/FixedSlotCapacityQuery.md deleted file mode 100644 index 89e8fa241..000000000 --- a/docs/Model/ServiceV1/FixedSlotCapacityQuery.md +++ /dev/null @@ -1,12 +0,0 @@ -## FixedSlotCapacityQuery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capacity_types** | [**\SellingPartnerApi\Model\ServiceV1\CapacityType[]**](CapacityType.md) | An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. | [optional] -**slot_duration** | **float** | Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= `slotDuration` <= 360. | [optional] -**start_date_time** | **string** | Start date time from which the capacity slots are being requested in ISO 8601 format. | -**end_date_time** | **string** | End date time up to which the capacity slots are being requested in ISO 8601 format. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FulfillmentDocument.md b/docs/Model/ServiceV1/FulfillmentDocument.md deleted file mode 100644 index ce5f83e3f..000000000 --- a/docs/Model/ServiceV1/FulfillmentDocument.md +++ /dev/null @@ -1,10 +0,0 @@ -## FulfillmentDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload_destination_id** | **string** | The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API. | [optional] -**content_sha256** | **string** | Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/FulfillmentTime.md b/docs/Model/ServiceV1/FulfillmentTime.md deleted file mode 100644 index aeddfab25..000000000 --- a/docs/Model/ServiceV1/FulfillmentTime.md +++ /dev/null @@ -1,10 +0,0 @@ -## FulfillmentTime - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | The date, time in UTC of the fulfillment start time in ISO 8601 format. | [optional] -**end_time** | **string** | The date, time in UTC of the fulfillment end time in ISO 8601 format. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/GetAppointmentSlotsResponse.md b/docs/Model/ServiceV1/GetAppointmentSlotsResponse.md deleted file mode 100644 index 2060fdc2b..000000000 --- a/docs/Model/ServiceV1/GetAppointmentSlotsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAppointmentSlotsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentSlotReport**](AppointmentSlotReport.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.md b/docs/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.md deleted file mode 100644 index 64fe595bb..000000000 --- a/docs/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetServiceJobByServiceJobIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\ServiceJob**](ServiceJob.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/GetServiceJobsResponse.md b/docs/Model/ServiceV1/GetServiceJobsResponse.md deleted file mode 100644 index 028ef94ca..000000000 --- a/docs/Model/ServiceV1/GetServiceJobsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetServiceJobsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\JobListing**](JobListing.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ItemDelivery.md b/docs/Model/ServiceV1/ItemDelivery.md deleted file mode 100644 index ab42c31ff..000000000 --- a/docs/Model/ServiceV1/ItemDelivery.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemDelivery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**estimated_delivery_date** | **string** | The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format. | [optional] -**item_delivery_promise** | [**\SellingPartnerApi\Model\ServiceV1\ItemDeliveryPromise**](ItemDeliveryPromise.md) | | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ItemDeliveryPromise.md b/docs/Model/ServiceV1/ItemDeliveryPromise.md deleted file mode 100644 index 37a690cf1..000000000 --- a/docs/Model/ServiceV1/ItemDeliveryPromise.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemDeliveryPromise - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | The date and time of the start of the promised delivery window in ISO 8601 format. | [optional] -**end_time** | **string** | The date and time of the end of the promised delivery window in ISO 8601 format. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/JobListing.md b/docs/Model/ServiceV1/JobListing.md deleted file mode 100644 index 9a0025755..000000000 --- a/docs/Model/ServiceV1/JobListing.md +++ /dev/null @@ -1,12 +0,0 @@ -## JobListing - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_result_size** | **int** | Total result size of the query result. | [optional] -**next_page_token** | **string** | A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results. | [optional] -**previous_page_token** | **string** | A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results. | [optional] -**jobs** | [**\SellingPartnerApi\Model\ServiceV1\ServiceJob[]**](ServiceJob.md) | List of job details for the given input. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Poa.md b/docs/Model/ServiceV1/Poa.md deleted file mode 100644 index 69f90513e..000000000 --- a/docs/Model/ServiceV1/Poa.md +++ /dev/null @@ -1,13 +0,0 @@ -## Poa - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appointment_time** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentTime**](AppointmentTime.md) | | [optional] -**technicians** | [**\SellingPartnerApi\Model\ServiceV1\Technician[]**](Technician.md) | A list of technicians. | [optional] -**uploading_technician** | **string** | The identifier of the technician who uploaded the POA. | [optional] -**upload_time** | **string** | The date and time when the POA was uploaded in ISO 8601 format. | [optional] -**poa_type** | **string** | The type of POA uploaded. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RangeCapacity.md b/docs/Model/ServiceV1/RangeCapacity.md deleted file mode 100644 index 69b9ac224..000000000 --- a/docs/Model/ServiceV1/RangeCapacity.md +++ /dev/null @@ -1,10 +0,0 @@ -## RangeCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capacity_type** | [**\SellingPartnerApi\Model\ServiceV1\CapacityType**](CapacityType.md) | | [optional] -**slots** | [**\SellingPartnerApi\Model\ServiceV1\RangeSlot[]**](RangeSlot.md) | Array of capacity slots in range slot format. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RangeSlot.md b/docs/Model/ServiceV1/RangeSlot.md deleted file mode 100644 index 517a3f905..000000000 --- a/docs/Model/ServiceV1/RangeSlot.md +++ /dev/null @@ -1,11 +0,0 @@ -## RangeSlot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date_time** | **string** | Start date time of slot in ISO 8601 format with precision of seconds. | [optional] -**end_date_time** | **string** | End date time of slot in ISO 8601 format with precision of seconds. | [optional] -**capacity** | **int** | Capacity of the slot. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RangeSlotCapacity.md b/docs/Model/ServiceV1/RangeSlotCapacity.md deleted file mode 100644 index 52edd8d34..000000000 --- a/docs/Model/ServiceV1/RangeSlotCapacity.md +++ /dev/null @@ -1,11 +0,0 @@ -## RangeSlotCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_id** | **string** | Resource Identifier. | [optional] -**capacities** | [**\SellingPartnerApi\Model\ServiceV1\RangeCapacity[]**](RangeCapacity.md) | Array of range capacities where each entry is for a specific capacity type. | [optional] -**next_page_token** | **string** | Next page token, if there are more pages. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RangeSlotCapacityErrors.md b/docs/Model/ServiceV1/RangeSlotCapacityErrors.md deleted file mode 100644 index 198260f4e..000000000 --- a/docs/Model/ServiceV1/RangeSlotCapacityErrors.md +++ /dev/null @@ -1,9 +0,0 @@ -## RangeSlotCapacityErrors - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RangeSlotCapacityQuery.md b/docs/Model/ServiceV1/RangeSlotCapacityQuery.md deleted file mode 100644 index 7b7a33485..000000000 --- a/docs/Model/ServiceV1/RangeSlotCapacityQuery.md +++ /dev/null @@ -1,11 +0,0 @@ -## RangeSlotCapacityQuery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capacity_types** | [**\SellingPartnerApi\Model\ServiceV1\CapacityType[]**](CapacityType.md) | An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. | [optional] -**start_date_time** | **string** | Start date time from which the capacity slots are being requested in ISO 8601 format. | -**end_date_time** | **string** | End date time up to which the capacity slots are being requested in ISO 8601 format. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Recurrence.md b/docs/Model/ServiceV1/Recurrence.md deleted file mode 100644 index 4cb7a10c3..000000000 --- a/docs/Model/ServiceV1/Recurrence.md +++ /dev/null @@ -1,11 +0,0 @@ -## Recurrence - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**end_time** | **string** | End time of the recurrence. | -**days_of_week** | [**\SellingPartnerApi\Model\ServiceV1\DayOfWeek[]**](DayOfWeek.md) | Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list. | [optional] -**days_of_month** | **int[]** | Days of the month when recurrence is valid. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/RescheduleAppointmentRequest.md b/docs/Model/ServiceV1/RescheduleAppointmentRequest.md deleted file mode 100644 index 0b6c695dc..000000000 --- a/docs/Model/ServiceV1/RescheduleAppointmentRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## RescheduleAppointmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appointment_time** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput**](AppointmentTimeInput.md) | | -**reschedule_reason_code** | **string** | The appointment reschedule reason code. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Reservation.md b/docs/Model/ServiceV1/Reservation.md deleted file mode 100644 index 7a335bc19..000000000 --- a/docs/Model/ServiceV1/Reservation.md +++ /dev/null @@ -1,11 +0,0 @@ -## Reservation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reservation_id** | **string** | Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request. | [optional] -**type** | **string** | Type of reservation. | -**availability** | [**\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord**](AvailabilityRecord.md) | | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ScopeOfWork.md b/docs/Model/ServiceV1/ScopeOfWork.md deleted file mode 100644 index 6410085d2..000000000 --- a/docs/Model/ServiceV1/ScopeOfWork.md +++ /dev/null @@ -1,12 +0,0 @@ -## ScopeOfWork - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the service job. | [optional] -**title** | **string** | The title of the service job. | [optional] -**quantity** | **int** | The number of service jobs. | [optional] -**required_skills** | **string[]** | A list of skills required to perform the job. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Seller.md b/docs/Model/ServiceV1/Seller.md deleted file mode 100644 index ba7db836d..000000000 --- a/docs/Model/ServiceV1/Seller.md +++ /dev/null @@ -1,9 +0,0 @@ -## Seller - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**seller_id** | **string** | The identifier of the seller of the service job. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ServiceDocumentUploadDestination.md b/docs/Model/ServiceV1/ServiceDocumentUploadDestination.md deleted file mode 100644 index e7229a18c..000000000 --- a/docs/Model/ServiceV1/ServiceDocumentUploadDestination.md +++ /dev/null @@ -1,12 +0,0 @@ -## ServiceDocumentUploadDestination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload_destination_id** | **string** | The unique identifier to be used by APIs that reference the upload destination. | -**url** | **string** | The URL to which to upload the file. | -**encryption_details** | [**\SellingPartnerApi\Model\ServiceV1\EncryptionDetails**](EncryptionDetails.md) | | -**headers** | **object** | The headers to include in the upload request. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ServiceJob.md b/docs/Model/ServiceV1/ServiceJob.md deleted file mode 100644 index 4f0e3431a..000000000 --- a/docs/Model/ServiceV1/ServiceJob.md +++ /dev/null @@ -1,22 +0,0 @@ -## ServiceJob - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**create_time** | **string** | The date and time of the creation of the job in ISO 8601 format. | [optional] -**service_job_id** | **string** | Amazon identifier for the service job. | [optional] -**service_job_status** | **string** | The status of the service job. | [optional] -**scope_of_work** | [**\SellingPartnerApi\Model\ServiceV1\ScopeOfWork**](ScopeOfWork.md) | | [optional] -**seller** | [**\SellingPartnerApi\Model\ServiceV1\Seller**](Seller.md) | | [optional] -**service_job_provider** | [**\SellingPartnerApi\Model\ServiceV1\ServiceJobProvider**](ServiceJobProvider.md) | | [optional] -**preferred_appointment_times** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentTime[]**](AppointmentTime.md) | A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order. | [optional] -**appointments** | [**\SellingPartnerApi\Model\ServiceV1\Appointment[]**](Appointment.md) | A list of appointments. | [optional] -**service_order_id** | **string** | The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. | [optional] -**marketplace_id** | **string** | The marketplace identifier. | [optional] -**store_id** | **string** | The Amazon-defined identifier for the region scope. | [optional] -**buyer** | [**\SellingPartnerApi\Model\ServiceV1\Buyer**](Buyer.md) | | [optional] -**associated_items** | [**\SellingPartnerApi\Model\ServiceV1\AssociatedItem[]**](AssociatedItem.md) | A list of items associated with the service job. | [optional] -**service_location** | [**\SellingPartnerApi\Model\ServiceV1\ServiceLocation**](ServiceLocation.md) | | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ServiceJobProvider.md b/docs/Model/ServiceV1/ServiceJobProvider.md deleted file mode 100644 index 22d57819c..000000000 --- a/docs/Model/ServiceV1/ServiceJobProvider.md +++ /dev/null @@ -1,9 +0,0 @@ -## ServiceJobProvider - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**service_job_provider_id** | **string** | The identifier of the service job provider. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ServiceLocation.md b/docs/Model/ServiceV1/ServiceLocation.md deleted file mode 100644 index 29b77a78c..000000000 --- a/docs/Model/ServiceV1/ServiceLocation.md +++ /dev/null @@ -1,10 +0,0 @@ -## ServiceLocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**service_location_type** | **string** | The location of the service job. | [optional] -**address** | [**\SellingPartnerApi\Model\ServiceV1\Address**](Address.md) | | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/ServiceUploadDocument.md b/docs/Model/ServiceV1/ServiceUploadDocument.md deleted file mode 100644 index ad173383d..000000000 --- a/docs/Model/ServiceV1/ServiceUploadDocument.md +++ /dev/null @@ -1,11 +0,0 @@ -## ServiceUploadDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content_type** | **string** | The content type of the to-be-uploaded file | -**content_length** | **float** | The content length of the to-be-uploaded file | -**content_md5** | **string** | An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.md b/docs/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.md deleted file mode 100644 index 86e70ea7e..000000000 --- a/docs/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## SetAppointmentFulfillmentDataRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fulfillment_time** | [**\SellingPartnerApi\Model\ServiceV1\FulfillmentTime**](FulfillmentTime.md) | | [optional] -**appointment_resources** | [**\SellingPartnerApi\Model\ServiceV1\AppointmentResource[]**](AppointmentResource.md) | List of resources that performs or performed job appointment fulfillment. | [optional] -**fulfillment_documents** | [**\SellingPartnerApi\Model\ServiceV1\FulfillmentDocument[]**](FulfillmentDocument.md) | List of documents captured during service appointment fulfillment. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/SetAppointmentResponse.md b/docs/Model/ServiceV1/SetAppointmentResponse.md deleted file mode 100644 index 4eaf884e9..000000000 --- a/docs/Model/ServiceV1/SetAppointmentResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## SetAppointmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appointment_id** | **string** | The appointment identifier. | [optional] -**warnings** | [**\SellingPartnerApi\Model\ServiceV1\Warning[]**](Warning.md) | A list of warnings returned in the sucessful execution response of an API request. | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Technician.md b/docs/Model/ServiceV1/Technician.md deleted file mode 100644 index 6cb7183d4..000000000 --- a/docs/Model/ServiceV1/Technician.md +++ /dev/null @@ -1,10 +0,0 @@ -## Technician - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**technician_id** | **string** | The technician identifier. | [optional] -**name** | **string** | The name of the technician. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateReservationRecord.md b/docs/Model/ServiceV1/UpdateReservationRecord.md deleted file mode 100644 index 894acdf75..000000000 --- a/docs/Model/ServiceV1/UpdateReservationRecord.md +++ /dev/null @@ -1,11 +0,0 @@ -## UpdateReservationRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reservation** | [**\SellingPartnerApi\Model\ServiceV1\Reservation**](Reservation.md) | | [optional] -**warnings** | [**\SellingPartnerApi\Model\ServiceV1\Warning[]**](Warning.md) | A list of warnings returned in the sucessful execution response of an API request. | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateReservationRequest.md b/docs/Model/ServiceV1/UpdateReservationRequest.md deleted file mode 100644 index 97995756c..000000000 --- a/docs/Model/ServiceV1/UpdateReservationRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## UpdateReservationRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resource_id** | **string** | Resource (store) identifier. | -**reservation** | [**\SellingPartnerApi\Model\ServiceV1\Reservation**](Reservation.md) | | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateReservationResponse.md b/docs/Model/ServiceV1/UpdateReservationResponse.md deleted file mode 100644 index fb6647112..000000000 --- a/docs/Model/ServiceV1/UpdateReservationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## UpdateReservationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\UpdateReservationRecord**](UpdateReservationRecord.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateScheduleRecord.md b/docs/Model/ServiceV1/UpdateScheduleRecord.md deleted file mode 100644 index 90602a44e..000000000 --- a/docs/Model/ServiceV1/UpdateScheduleRecord.md +++ /dev/null @@ -1,11 +0,0 @@ -## UpdateScheduleRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availability** | [**\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord**](AvailabilityRecord.md) | | [optional] -**warnings** | [**\SellingPartnerApi\Model\ServiceV1\Warning[]**](Warning.md) | A list of warnings returned in the sucessful execution response of an API request. | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateScheduleRequest.md b/docs/Model/ServiceV1/UpdateScheduleRequest.md deleted file mode 100644 index 2de66c43e..000000000 --- a/docs/Model/ServiceV1/UpdateScheduleRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## UpdateScheduleRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schedules** | [**\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord[]**](AvailabilityRecord.md) | List of `AvailabilityRecord`s to represent the capacity of a resource over a time range. | - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/UpdateScheduleResponse.md b/docs/Model/ServiceV1/UpdateScheduleResponse.md deleted file mode 100644 index fbc6cde25..000000000 --- a/docs/Model/ServiceV1/UpdateScheduleResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## UpdateScheduleResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ServiceV1\UpdateScheduleRecord[]**](UpdateScheduleRecord.md) | Contains the `UpdateScheduleRecords` for which the error/warning has occurred. | [optional] -**errors** | [**\SellingPartnerApi\Model\ServiceV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ServiceV1/Warning.md b/docs/Model/ServiceV1/Warning.md deleted file mode 100644 index 7d1b493fe..000000000 --- a/docs/Model/ServiceV1/Warning.md +++ /dev/null @@ -1,11 +0,0 @@ -## Warning - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An warning code that identifies the type of warning that occurred. | -**message** | **string** | A message that describes the warning condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or address the warning. | [optional] - -[[ServiceV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/Address.md b/docs/Model/ShipmentInvoicingV0/Address.md deleted file mode 100644 index c39f09aa7..000000000 --- a/docs/Model/ShipmentInvoicingV0/Address.md +++ /dev/null @@ -1,20 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name. | [optional] -**address_line1** | **string** | The street address. | [optional] -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city. | [optional] -**county** | **string** | The county. | [optional] -**district** | **string** | The district. | [optional] -**state_or_region** | **string** | The state or region. | [optional] -**postal_code** | **string** | The postal code. | [optional] -**country_code** | **string** | The country code. | [optional] -**phone** | **string** | The phone number. | [optional] -**address_type** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\AddressTypeEnum**](AddressTypeEnum.md) | | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/AddressTypeEnum.md b/docs/Model/ShipmentInvoicingV0/AddressTypeEnum.md deleted file mode 100644 index d8c91ba64..000000000 --- a/docs/Model/ShipmentInvoicingV0/AddressTypeEnum.md +++ /dev/null @@ -1,8 +0,0 @@ -## AddressTypeEnum - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/BuyerTaxInfo.md b/docs/Model/ShipmentInvoicingV0/BuyerTaxInfo.md deleted file mode 100644 index 08701027f..000000000 --- a/docs/Model/ShipmentInvoicingV0/BuyerTaxInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -## BuyerTaxInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_legal_name** | **string** | The legal name of the company. | [optional] -**taxing_region** | **string** | The country or region imposing the tax. | [optional] -**tax_classifications** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]**](TaxClassification.md) | The list of tax classifications. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/Error.md b/docs/Model/ShipmentInvoicingV0/Error.md deleted file mode 100644 index 53ca78509..000000000 --- a/docs/Model/ShipmentInvoicingV0/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.md b/docs/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.md deleted file mode 100644 index de6575ec8..000000000 --- a/docs/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetInvoiceStatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusResponse**](ShipmentInvoiceStatusResponse.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.md b/docs/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.md deleted file mode 100644 index aa2f6be38..000000000 --- a/docs/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentDetail**](ShipmentDetail.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.md b/docs/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.md deleted file mode 100644 index 5a35ef0f6..000000000 --- a/docs/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -## MarketplaceTaxInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_legal_name** | **string** | The legal name of the company. | [optional] -**taxing_region** | **string** | The country or region imposing the tax. | [optional] -**tax_classifications** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]**](TaxClassification.md) | The list of tax classifications. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/Money.md b/docs/Model/ShipmentInvoicingV0/Money.md deleted file mode 100644 index e72cac8b9..000000000 --- a/docs/Model/ShipmentInvoicingV0/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three-digit currency code in ISO 4217 format. | [optional] -**amount** | **string** | The currency amount. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/ShipmentDetail.md b/docs/Model/ShipmentInvoicingV0/ShipmentDetail.md deleted file mode 100644 index 6497bb464..000000000 --- a/docs/Model/ShipmentInvoicingV0/ShipmentDetail.md +++ /dev/null @@ -1,22 +0,0 @@ -## ShipmentDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**warehouse_id** | **string** | The Amazon-defined identifier for the warehouse. | [optional] -**amazon_order_id** | **string** | The Amazon-defined identifier for the order. | [optional] -**amazon_shipment_id** | **string** | The Amazon-defined identifier for the shipment. | [optional] -**purchase_date** | **string** | The date and time when the order was created, in ISO 8601 format. | [optional] -**shipping_address** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Address**](Address.md) | | [optional] -**payment_method_details** | **string[]** | The list of payment method details. | [optional] -**marketplace_id** | **string** | The identifier for the marketplace where the order was placed. | [optional] -**seller_id** | **string** | The seller identifier. | [optional] -**buyer_name** | **string** | The name of the buyer. | [optional] -**buyer_county** | **string** | The county of the buyer. | [optional] -**buyer_tax_info** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\BuyerTaxInfo**](BuyerTaxInfo.md) | | [optional] -**marketplace_tax_info** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\MarketplaceTaxInfo**](MarketplaceTaxInfo.md) | | [optional] -**seller_display_name** | **string** | The seller's friendly name registered in the marketplace. | [optional] -**shipment_items** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentItem[]**](ShipmentItem.md) | A list of shipment items. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.md b/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.md deleted file mode 100644 index 3bc355a44..000000000 --- a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## ShipmentInvoiceStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.md b/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.md deleted file mode 100644 index e6fc75f09..000000000 --- a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipmentInvoiceStatusInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amazon_shipment_id** | **string** | The Amazon-defined shipment identifier. | [optional] -**invoice_status** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatus**](ShipmentInvoiceStatus.md) | | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.md b/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.md deleted file mode 100644 index 981e81f3a..000000000 --- a/docs/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## ShipmentInvoiceStatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipments** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusInfo**](ShipmentInvoiceStatusInfo.md) | | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/ShipmentItem.md b/docs/Model/ShipmentInvoicingV0/ShipmentItem.md deleted file mode 100644 index a5d83ee55..000000000 --- a/docs/Model/ShipmentInvoicingV0/ShipmentItem.md +++ /dev/null @@ -1,19 +0,0 @@ -## ShipmentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) of the item. | [optional] -**seller_sku** | **string** | The seller SKU of the item. | [optional] -**order_item_id** | **string** | The Amazon-defined identifier for the order item. | [optional] -**title** | **string** | The name of the item. | [optional] -**quantity_ordered** | **float** | The number of items ordered. | [optional] -**item_price** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Money**](Money.md) | | [optional] -**shipping_price** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Money**](Money.md) | | [optional] -**gift_wrap_price** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Money**](Money.md) | | [optional] -**shipping_discount** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Money**](Money.md) | | [optional] -**promotion_discount** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Money**](Money.md) | | [optional] -**serial_numbers** | **string[]** | The list of serial numbers. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.md b/docs/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.md deleted file mode 100644 index c0a73262a..000000000 --- a/docs/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## SubmitInvoiceRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_content** | **string** | Shipment invoice document content. | -**marketplace_id** | **string** | An Amazon marketplace identifier. | [optional] -**content_md5_value** | **string** | MD5 sum for validating the invoice data. For more information about calculating this value, see [Working with Content-MD5 Checksums](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_MD5.html). | - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.md b/docs/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.md deleted file mode 100644 index be7a5b707..000000000 --- a/docs/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitInvoiceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShipmentInvoicingV0/TaxClassification.md b/docs/Model/ShipmentInvoicingV0/TaxClassification.md deleted file mode 100644 index e33456c56..000000000 --- a/docs/Model/ShipmentInvoicingV0/TaxClassification.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxClassification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The type of tax. | [optional] -**value** | **string** | The entity's tax identifier. | [optional] - -[[ShipmentInvoicingV0 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/AcceptedRate.md b/docs/Model/ShippingV1/AcceptedRate.md deleted file mode 100644 index 60373a383..000000000 --- a/docs/Model/ShippingV1/AcceptedRate.md +++ /dev/null @@ -1,12 +0,0 @@ -## AcceptedRate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_charge** | [**\SellingPartnerApi\Model\ShippingV1\Currency**](Currency.md) | | [optional] -**billed_weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | [optional] -**service_type** | [**\SellingPartnerApi\Model\ShippingV1\ServiceType**](ServiceType.md) | | [optional] -**promise** | [**\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet**](ShippingPromiseSet.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Account.md b/docs/Model/ShippingV1/Account.md deleted file mode 100644 index a6344d889..000000000 --- a/docs/Model/ShippingV1/Account.md +++ /dev/null @@ -1,9 +0,0 @@ -## Account - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **string** | This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Address.md b/docs/Model/ShippingV1/Address.md deleted file mode 100644 index d6e94f908..000000000 --- a/docs/Model/ShippingV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of that address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**state_or_region** | **string** | The state or region where the person, business or institution is located. | -**city** | **string** | The city where the person, business or institution is located. | -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | -**email** | **string** | The email address of the contact associated with the address. | [optional] -**copy_emails** | **string[]** | The email cc addresses of the contact associated with the address. | [optional] -**phone_number** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/CancelShipmentResponse.md b/docs/Model/ShippingV1/CancelShipmentResponse.md deleted file mode 100644 index 373e3d91b..000000000 --- a/docs/Model/ShippingV1/CancelShipmentResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CancelShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Container.md b/docs/Model/ShippingV1/Container.md deleted file mode 100644 index 39245020b..000000000 --- a/docs/Model/ShippingV1/Container.md +++ /dev/null @@ -1,14 +0,0 @@ -## Container - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_type** | **string** | The type of physical container being used. (always 'PACKAGE') | [optional] -**container_reference_id** | **string** | An identifier for the container. This must be unique within all the containers in the same shipment. | -**value** | [**\SellingPartnerApi\Model\ShippingV1\Currency**](Currency.md) | | -**dimensions** | [**\SellingPartnerApi\Model\ShippingV1\Dimensions**](Dimensions.md) | | -**items** | [**\SellingPartnerApi\Model\ShippingV1\ContainerItem[]**](ContainerItem.md) | A list of the items in the container. | -**weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/ContainerItem.md b/docs/Model/ShippingV1/ContainerItem.md deleted file mode 100644 index 509e3b4b5..000000000 --- a/docs/Model/ShippingV1/ContainerItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## ContainerItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**quantity** | **float** | The quantity of the items of this type in the container. | -**unit_price** | [**\SellingPartnerApi\Model\ShippingV1\Currency**](Currency.md) | | -**unit_weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | -**title** | **string** | A descriptive title of the item. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/ContainerSpecification.md b/docs/Model/ShippingV1/ContainerSpecification.md deleted file mode 100644 index e081bb08b..000000000 --- a/docs/Model/ShippingV1/ContainerSpecification.md +++ /dev/null @@ -1,10 +0,0 @@ -## ContainerSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensions** | [**\SellingPartnerApi\Model\ShippingV1\Dimensions**](Dimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/CreateShipmentRequest.md b/docs/Model/ShippingV1/CreateShipmentRequest.md deleted file mode 100644 index 53680ba63..000000000 --- a/docs/Model/ShippingV1/CreateShipmentRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -## CreateShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_id** | **string** | Client reference id. | -**ship_to** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**ship_from** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**containers** | [**\SellingPartnerApi\Model\ShippingV1\Container[]**](Container.md) | A list of container. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/CreateShipmentResponse.md b/docs/Model/ShippingV1/CreateShipmentResponse.md deleted file mode 100644 index eb696f382..000000000 --- a/docs/Model/ShippingV1/CreateShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\CreateShipmentResult**](CreateShipmentResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/CreateShipmentResult.md b/docs/Model/ShippingV1/CreateShipmentResult.md deleted file mode 100644 index 76a4d194f..000000000 --- a/docs/Model/ShippingV1/CreateShipmentResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateShipmentResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier. | -**eligible_rates** | [**\SellingPartnerApi\Model\ShippingV1\Rate[]**](Rate.md) | A list of all the available rates that can be used to send the shipment. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Currency.md b/docs/Model/ShippingV1/Currency.md deleted file mode 100644 index ea24ef5a4..000000000 --- a/docs/Model/ShippingV1/Currency.md +++ /dev/null @@ -1,10 +0,0 @@ -## Currency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **float** | The amount of currency. | -**unit** | **string** | A 3-character currency code. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Dimensions.md b/docs/Model/ShippingV1/Dimensions.md deleted file mode 100644 index 4d8972efb..000000000 --- a/docs/Model/ShippingV1/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **float** | The length of the container. | -**width** | **float** | The width of the container. | -**height** | **float** | The height of the container. | -**unit** | **string** | The unit of these measurements. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Error.md b/docs/Model/ShippingV1/Error.md deleted file mode 100644 index fe48a0877..000000000 --- a/docs/Model/ShippingV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Event.md b/docs/Model/ShippingV1/Event.md deleted file mode 100644 index 875fc260c..000000000 --- a/docs/Model/ShippingV1/Event.md +++ /dev/null @@ -1,11 +0,0 @@ -## Event - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_code** | **string** | The event code of a shipment, such as Departed, Received, and ReadyForReceive. | -**event_time** | **string** | The date and time of an event for a shipment, in ISO 8601 format. | -**location** | [**\SellingPartnerApi\Model\ShippingV1\Location**](Location.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetAccountResponse.md b/docs/Model/ShippingV1/GetAccountResponse.md deleted file mode 100644 index 3377e5f6b..000000000 --- a/docs/Model/ShippingV1/GetAccountResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetAccountResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\Account**](Account.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetRatesRequest.md b/docs/Model/ShippingV1/GetRatesRequest.md deleted file mode 100644 index e11a31727..000000000 --- a/docs/Model/ShippingV1/GetRatesRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -## GetRatesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_to** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**ship_from** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**service_types** | [**\SellingPartnerApi\Model\ShippingV1\ServiceType[]**](ServiceType.md) | A list of service types that can be used to send the shipment. | -**ship_date** | **string** | The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. | [optional] -**container_specifications** | [**\SellingPartnerApi\Model\ShippingV1\ContainerSpecification[]**](ContainerSpecification.md) | A list of container specifications. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetRatesResponse.md b/docs/Model/ShippingV1/GetRatesResponse.md deleted file mode 100644 index 63070fb4e..000000000 --- a/docs/Model/ShippingV1/GetRatesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetRatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\GetRatesResult**](GetRatesResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetRatesResult.md b/docs/Model/ShippingV1/GetRatesResult.md deleted file mode 100644 index ee50820f5..000000000 --- a/docs/Model/ShippingV1/GetRatesResult.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetRatesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**service_rates** | [**\SellingPartnerApi\Model\ShippingV1\ServiceRate[]**](ServiceRate.md) | A list of service rates. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetShipmentResponse.md b/docs/Model/ShippingV1/GetShipmentResponse.md deleted file mode 100644 index 8a8b0ceb9..000000000 --- a/docs/Model/ShippingV1/GetShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\Shipment**](Shipment.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/GetTrackingInformationResponse.md b/docs/Model/ShippingV1/GetTrackingInformationResponse.md deleted file mode 100644 index 26a21431e..000000000 --- a/docs/Model/ShippingV1/GetTrackingInformationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetTrackingInformationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\TrackingInformation**](TrackingInformation.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Label.md b/docs/Model/ShippingV1/Label.md deleted file mode 100644 index 01dd7edbc..000000000 --- a/docs/Model/ShippingV1/Label.md +++ /dev/null @@ -1,10 +0,0 @@ -## Label - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_stream** | **string** | Contains binary image data encoded as a base-64 string. | [optional] -**label_specification** | [**\SellingPartnerApi\Model\ShippingV1\LabelSpecification**](LabelSpecification.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/LabelResult.md b/docs/Model/ShippingV1/LabelResult.md deleted file mode 100644 index fcd13a7ba..000000000 --- a/docs/Model/ShippingV1/LabelResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## LabelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_reference_id** | **string** | An identifier for the container. This must be unique within all the containers in the same shipment. | [optional] -**tracking_id** | **string** | The tracking identifier assigned to the container. | [optional] -**label** | [**\SellingPartnerApi\Model\ShippingV1\Label**](Label.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/LabelSpecification.md b/docs/Model/ShippingV1/LabelSpecification.md deleted file mode 100644 index e208f74b6..000000000 --- a/docs/Model/ShippingV1/LabelSpecification.md +++ /dev/null @@ -1,10 +0,0 @@ -## LabelSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_format** | **string** | The format of the label. Enum of PNG only for now. | -**label_stock_size** | **string** | The label stock size specification in length and height. Enum of 4x6 only for now. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Location.md b/docs/Model/ShippingV1/Location.md deleted file mode 100644 index bb29a6a80..000000000 --- a/docs/Model/ShippingV1/Location.md +++ /dev/null @@ -1,12 +0,0 @@ -## Location - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**state_or_region** | **string** | The state or region where the person, business or institution is located. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | [optional] -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Party.md b/docs/Model/ShippingV1/Party.md deleted file mode 100644 index 6221df7f7..000000000 --- a/docs/Model/ShippingV1/Party.md +++ /dev/null @@ -1,9 +0,0 @@ -## Party - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **string** | This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseLabelsRequest.md b/docs/Model/ShippingV1/PurchaseLabelsRequest.md deleted file mode 100644 index 61c9cfca5..000000000 --- a/docs/Model/ShippingV1/PurchaseLabelsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## PurchaseLabelsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate_id** | **string** | An identifier for the rating. | -**label_specification** | [**\SellingPartnerApi\Model\ShippingV1\LabelSpecification**](LabelSpecification.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseLabelsResponse.md b/docs/Model/ShippingV1/PurchaseLabelsResponse.md deleted file mode 100644 index 05accdd10..000000000 --- a/docs/Model/ShippingV1/PurchaseLabelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## PurchaseLabelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResult**](PurchaseLabelsResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseLabelsResult.md b/docs/Model/ShippingV1/PurchaseLabelsResult.md deleted file mode 100644 index b692309e0..000000000 --- a/docs/Model/ShippingV1/PurchaseLabelsResult.md +++ /dev/null @@ -1,12 +0,0 @@ -## PurchaseLabelsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier. | -**client_reference_id** | **string** | Client reference id. | [optional] -**accepted_rate** | [**\SellingPartnerApi\Model\ShippingV1\AcceptedRate**](AcceptedRate.md) | | -**label_results** | [**\SellingPartnerApi\Model\ShippingV1\LabelResult[]**](LabelResult.md) | A list of label results | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseShipmentRequest.md b/docs/Model/ShippingV1/PurchaseShipmentRequest.md deleted file mode 100644 index 7233606d4..000000000 --- a/docs/Model/ShippingV1/PurchaseShipmentRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -## PurchaseShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_id** | **string** | Client reference id. | -**ship_to** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**ship_from** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**ship_date** | **string** | The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. | [optional] -**service_type** | [**\SellingPartnerApi\Model\ShippingV1\ServiceType**](ServiceType.md) | | -**containers** | [**\SellingPartnerApi\Model\ShippingV1\Container[]**](Container.md) | A list of container. | -**label_specification** | [**\SellingPartnerApi\Model\ShippingV1\LabelSpecification**](LabelSpecification.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseShipmentResponse.md b/docs/Model/ShippingV1/PurchaseShipmentResponse.md deleted file mode 100644 index fa79d2d59..000000000 --- a/docs/Model/ShippingV1/PurchaseShipmentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## PurchaseShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResult**](PurchaseShipmentResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/PurchaseShipmentResult.md b/docs/Model/ShippingV1/PurchaseShipmentResult.md deleted file mode 100644 index b9ce2db89..000000000 --- a/docs/Model/ShippingV1/PurchaseShipmentResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## PurchaseShipmentResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier. | -**service_rate** | [**\SellingPartnerApi\Model\ShippingV1\ServiceRate**](ServiceRate.md) | | -**label_results** | [**\SellingPartnerApi\Model\ShippingV1\LabelResult[]**](LabelResult.md) | A list of label results | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Rate.md b/docs/Model/ShippingV1/Rate.md deleted file mode 100644 index e8e622eea..000000000 --- a/docs/Model/ShippingV1/Rate.md +++ /dev/null @@ -1,14 +0,0 @@ -## Rate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate_id** | **string** | An identifier for the rate. | [optional] -**total_charge** | [**\SellingPartnerApi\Model\ShippingV1\Currency**](Currency.md) | | [optional] -**billed_weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | [optional] -**expiration_time** | **string** | The time after which the offering will expire. | [optional] -**service_type** | [**\SellingPartnerApi\Model\ShippingV1\ServiceType**](ServiceType.md) | | [optional] -**promise** | [**\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet**](ShippingPromiseSet.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/RetrieveShippingLabelRequest.md b/docs/Model/ShippingV1/RetrieveShippingLabelRequest.md deleted file mode 100644 index 3b6c26cb2..000000000 --- a/docs/Model/ShippingV1/RetrieveShippingLabelRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## RetrieveShippingLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_specification** | [**\SellingPartnerApi\Model\ShippingV1\LabelSpecification**](LabelSpecification.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/RetrieveShippingLabelResponse.md b/docs/Model/ShippingV1/RetrieveShippingLabelResponse.md deleted file mode 100644 index 030bb3d35..000000000 --- a/docs/Model/ShippingV1/RetrieveShippingLabelResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## RetrieveShippingLabelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResult**](RetrieveShippingLabelResult.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\ShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/RetrieveShippingLabelResult.md b/docs/Model/ShippingV1/RetrieveShippingLabelResult.md deleted file mode 100644 index 743c086b1..000000000 --- a/docs/Model/ShippingV1/RetrieveShippingLabelResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## RetrieveShippingLabelResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_stream** | **string** | Contains binary image data encoded as a base-64 string. | -**label_specification** | [**\SellingPartnerApi\Model\ShippingV1\LabelSpecification**](LabelSpecification.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/ServiceRate.md b/docs/Model/ShippingV1/ServiceRate.md deleted file mode 100644 index 6ec9199cf..000000000 --- a/docs/Model/ShippingV1/ServiceRate.md +++ /dev/null @@ -1,12 +0,0 @@ -## ServiceRate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_charge** | [**\SellingPartnerApi\Model\ShippingV1\Currency**](Currency.md) | | -**billable_weight** | [**\SellingPartnerApi\Model\ShippingV1\Weight**](Weight.md) | | -**service_type** | [**\SellingPartnerApi\Model\ShippingV1\ServiceType**](ServiceType.md) | | -**promise** | [**\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet**](ShippingPromiseSet.md) | | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/ServiceType.md b/docs/Model/ShippingV1/ServiceType.md deleted file mode 100644 index 442d2b870..000000000 --- a/docs/Model/ShippingV1/ServiceType.md +++ /dev/null @@ -1,8 +0,0 @@ -## ServiceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Shipment.md b/docs/Model/ShippingV1/Shipment.md deleted file mode 100644 index 4cbec6b40..000000000 --- a/docs/Model/ShippingV1/Shipment.md +++ /dev/null @@ -1,15 +0,0 @@ -## Shipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier. | -**client_reference_id** | **string** | Client reference id. | -**ship_from** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**ship_to** | [**\SellingPartnerApi\Model\ShippingV1\Address**](Address.md) | | -**accepted_rate** | [**\SellingPartnerApi\Model\ShippingV1\AcceptedRate**](AcceptedRate.md) | | [optional] -**shipper** | [**\SellingPartnerApi\Model\ShippingV1\Party**](Party.md) | | [optional] -**containers** | [**\SellingPartnerApi\Model\ShippingV1\Container[]**](Container.md) | A list of container. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/ShippingPromiseSet.md b/docs/Model/ShippingV1/ShippingPromiseSet.md deleted file mode 100644 index aae171239..000000000 --- a/docs/Model/ShippingV1/ShippingPromiseSet.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShippingPromiseSet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivery_window** | [**\SellingPartnerApi\Model\ShippingV1\TimeRange**](TimeRange.md) | | [optional] -**receive_window** | [**\SellingPartnerApi\Model\ShippingV1\TimeRange**](TimeRange.md) | | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/TimeRange.md b/docs/Model/ShippingV1/TimeRange.md deleted file mode 100644 index 5fd46c754..000000000 --- a/docs/Model/ShippingV1/TimeRange.md +++ /dev/null @@ -1,10 +0,0 @@ -## TimeRange - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **string** | The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. | [optional] -**end** | **string** | The end date and time. This must come after the value of start. This defaults to the next business day from the start. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/TrackingInformation.md b/docs/Model/ShippingV1/TrackingInformation.md deleted file mode 100644 index 89455055f..000000000 --- a/docs/Model/ShippingV1/TrackingInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -## TrackingInformation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_id** | **string** | The tracking id generated to each shipment. It contains a series of letters or digits or both. | -**summary** | [**\SellingPartnerApi\Model\ShippingV1\TrackingSummary**](TrackingSummary.md) | | -**promised_delivery_date** | **string** | The promised delivery date and time of a shipment in ISO 8601 format. | -**event_history** | [**\SellingPartnerApi\Model\ShippingV1\Event[]**](Event.md) | A list of events of a shipment. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/TrackingSummary.md b/docs/Model/ShippingV1/TrackingSummary.md deleted file mode 100644 index 40ccdcb9f..000000000 --- a/docs/Model/ShippingV1/TrackingSummary.md +++ /dev/null @@ -1,9 +0,0 @@ -## TrackingSummary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | The derived status based on the events in the eventHistory. | [optional] - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV1/Weight.md b/docs/Model/ShippingV1/Weight.md deleted file mode 100644 index a0733b499..000000000 --- a/docs/Model/ShippingV1/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **string** | The unit of measurement. | -**value** | **float** | The measurement value. | - -[[ShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Address.md b/docs/Model/ShippingV2/Address.md deleted file mode 100644 index 258229455..000000000 --- a/docs/Model/ShippingV2/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at the address. | -**address_line1** | **string** | The first line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**company_name** | **string** | The name of the business or institution associated with the address. | [optional] -**state_or_region** | **string** | The state, county or region where the person, business or institution is located. | -**city** | **string** | The city or town where the person, business or institution is located. | -**country_code** | **string** | The two digit country code. Follows ISO 3166-1 alpha-2 format. | -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | -**email** | **string** | The email address of the contact associated with the address. | [optional] -**phone_number** | **string** | The phone number of the person, business or institution located at that address, including the country calling code. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/AmazonOrderDetails.md b/docs/Model/ShippingV2/AmazonOrderDetails.md deleted file mode 100644 index b18e5f7de..000000000 --- a/docs/Model/ShippingV2/AmazonOrderDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## AmazonOrderDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_id** | **string** | The Amazon order ID associated with the Amazon order fulfilled by this shipment. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/AmazonShipmentDetails.md b/docs/Model/ShippingV2/AmazonShipmentDetails.md deleted file mode 100644 index 0563370b7..000000000 --- a/docs/Model/ShippingV2/AmazonShipmentDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## AmazonShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/AvailableValueAddedServiceGroup.md b/docs/Model/ShippingV2/AvailableValueAddedServiceGroup.md deleted file mode 100644 index ccad2c371..000000000 --- a/docs/Model/ShippingV2/AvailableValueAddedServiceGroup.md +++ /dev/null @@ -1,12 +0,0 @@ -## AvailableValueAddedServiceGroup - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group_id** | **string** | The type of the value-added service group. | -**group_description** | **string** | The name of the value-added service group. | -**is_required** | **bool** | When true, one or more of the value-added services listed must be specified. | -**value_added_services** | [**\SellingPartnerApi\Model\ShippingV2\ValueAddedService[]**](ValueAddedService.md) | A list of optional value-added services available for purchase with a shipping service offering. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/CancelShipmentResponse.md b/docs/Model/ShippingV2/CancelShipmentResponse.md deleted file mode 100644 index f23ebcf88..000000000 --- a/docs/Model/ShippingV2/CancelShipmentResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CancelShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | **object** | The payload for the cancelShipment operation. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/ChannelDetails.md b/docs/Model/ShippingV2/ChannelDetails.md deleted file mode 100644 index 49b85a347..000000000 --- a/docs/Model/ShippingV2/ChannelDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## ChannelDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channel_type** | **string** | The shipment source channel type. | -**amazon_order_details** | [**\SellingPartnerApi\Model\ShippingV2\AmazonOrderDetails**](AmazonOrderDetails.md) | | [optional] -**amazon_shipment_details** | [**\SellingPartnerApi\Model\ShippingV2\AmazonShipmentDetails**](AmazonShipmentDetails.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/ChargeComponent.md b/docs/Model/ShippingV2/ChargeComponent.md deleted file mode 100644 index e799366ad..000000000 --- a/docs/Model/ShippingV2/ChargeComponent.md +++ /dev/null @@ -1,10 +0,0 @@ -## ChargeComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | [optional] -**charge_type** | **string** | The type of charge. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/CollectOnDelivery.md b/docs/Model/ShippingV2/CollectOnDelivery.md deleted file mode 100644 index c288a4bdb..000000000 --- a/docs/Model/ShippingV2/CollectOnDelivery.md +++ /dev/null @@ -1,9 +0,0 @@ -## CollectOnDelivery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Currency.md b/docs/Model/ShippingV2/Currency.md deleted file mode 100644 index 0eff540dc..000000000 --- a/docs/Model/ShippingV2/Currency.md +++ /dev/null @@ -1,10 +0,0 @@ -## Currency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **float** | The monetary value. | -**unit** | **string** | The ISO 4217 format 3-character currency code. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Dimensions.md b/docs/Model/ShippingV2/Dimensions.md deleted file mode 100644 index 426fc4cdb..000000000 --- a/docs/Model/ShippingV2/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **float** | The length of the package. | -**width** | **float** | The width of the package. | -**height** | **float** | The height of the package. | -**unit** | **string** | The unit of measurement. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DirectFulfillmentItemIdentifiers.md b/docs/Model/ShippingV2/DirectFulfillmentItemIdentifiers.md deleted file mode 100644 index 6fa9dbe4b..000000000 --- a/docs/Model/ShippingV2/DirectFulfillmentItemIdentifiers.md +++ /dev/null @@ -1,10 +0,0 @@ -## DirectFulfillmentItemIdentifiers - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**line_item_id** | **string** | A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped. | -**piece_number** | **string** | A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DirectPurchaseRequest.md b/docs/Model/ShippingV2/DirectPurchaseRequest.md deleted file mode 100644 index dbdc266f4..000000000 --- a/docs/Model/ShippingV2/DirectPurchaseRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -## DirectPurchaseRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_to** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | [optional] -**ship_from** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | [optional] -**return_to** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | [optional] -**packages** | [**\SellingPartnerApi\Model\ShippingV2\Package[]**](Package.md) | A list of packages to be shipped through a shipping service offering. | [optional] -**channel_details** | [**\SellingPartnerApi\Model\ShippingV2\ChannelDetails**](ChannelDetails.md) | | -**label_specifications** | [**\SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification**](RequestedDocumentSpecification.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DirectPurchaseResponse.md b/docs/Model/ShippingV2/DirectPurchaseResponse.md deleted file mode 100644 index b90a8658d..000000000 --- a/docs/Model/ShippingV2/DirectPurchaseResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## DirectPurchaseResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResult**](DirectPurchaseResult.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DirectPurchaseResult.md b/docs/Model/ShippingV2/DirectPurchaseResult.md deleted file mode 100644 index b8198200b..000000000 --- a/docs/Model/ShippingV2/DirectPurchaseResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## DirectPurchaseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier provided by a shipping service. | -**package_document_detail_list** | [**\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]**](PackageDocumentDetail.md) | A list of post-purchase details about a package that will be shipped using a shipping service. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DocumentFormat.md b/docs/Model/ShippingV2/DocumentFormat.md deleted file mode 100644 index 852b383d9..000000000 --- a/docs/Model/ShippingV2/DocumentFormat.md +++ /dev/null @@ -1,8 +0,0 @@ -## DocumentFormat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DocumentSize.md b/docs/Model/ShippingV2/DocumentSize.md deleted file mode 100644 index 60751d608..000000000 --- a/docs/Model/ShippingV2/DocumentSize.md +++ /dev/null @@ -1,11 +0,0 @@ -## DocumentSize - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**width** | **float** | The width of the document measured in the units specified. | -**length** | **float** | The length of the document measured in the units specified. | -**unit** | **string** | The unit of measurement. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/DocumentType.md b/docs/Model/ShippingV2/DocumentType.md deleted file mode 100644 index e484d9e05..000000000 --- a/docs/Model/ShippingV2/DocumentType.md +++ /dev/null @@ -1,8 +0,0 @@ -## DocumentType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Error.md b/docs/Model/ShippingV2/Error.md deleted file mode 100644 index 3ac0791c5..000000000 --- a/docs/Model/ShippingV2/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/ErrorList.md b/docs/Model/ShippingV2/ErrorList.md deleted file mode 100644 index 0c248cd59..000000000 --- a/docs/Model/ShippingV2/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\ShippingV2\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Event.md b/docs/Model/ShippingV2/Event.md deleted file mode 100644 index d97225955..000000000 --- a/docs/Model/ShippingV2/Event.md +++ /dev/null @@ -1,11 +0,0 @@ -## Event - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_code** | [**\SellingPartnerApi\Model\ShippingV2\EventCode**](EventCode.md) | | -**location** | [**\SellingPartnerApi\Model\ShippingV2\Location**](Location.md) | | [optional] -**event_time** | **string** | The ISO 8601 formatted timestamp of the event. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/EventCode.md b/docs/Model/ShippingV2/EventCode.md deleted file mode 100644 index 1aa6f7252..000000000 --- a/docs/Model/ShippingV2/EventCode.md +++ /dev/null @@ -1,8 +0,0 @@ -## EventCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetAdditionalInputsResponse.md b/docs/Model/ShippingV2/GetAdditionalInputsResponse.md deleted file mode 100644 index 61a1b67bd..000000000 --- a/docs/Model/ShippingV2/GetAdditionalInputsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetAdditionalInputsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | **object** | The JSON schema to use to provide additional inputs when required to purchase a shipping offering. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetRatesRequest.md b/docs/Model/ShippingV2/GetRatesRequest.md deleted file mode 100644 index de098e192..000000000 --- a/docs/Model/ShippingV2/GetRatesRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -## GetRatesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_to** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | [optional] -**ship_from** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | -**return_to** | [**\SellingPartnerApi\Model\ShippingV2\Address**](Address.md) | | [optional] -**ship_date** | **string** | The ship date and time (the requested pickup). This defaults to the current date and time. | [optional] -**packages** | [**\SellingPartnerApi\Model\ShippingV2\Package[]**](Package.md) | A list of packages to be shipped through a shipping service offering. | -**value_added_services** | [**\SellingPartnerApi\Model\ShippingV2\ValueAddedServiceDetails**](ValueAddedServiceDetails.md) | | [optional] -**tax_details** | [**\SellingPartnerApi\Model\ShippingV2\TaxDetail[]**](TaxDetail.md) | A list of tax detail information. | [optional] -**channel_details** | [**\SellingPartnerApi\Model\ShippingV2\ChannelDetails**](ChannelDetails.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetRatesResponse.md b/docs/Model/ShippingV2/GetRatesResponse.md deleted file mode 100644 index aaa9a93f5..000000000 --- a/docs/Model/ShippingV2/GetRatesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetRatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV2\GetRatesResult**](GetRatesResult.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetRatesResult.md b/docs/Model/ShippingV2/GetRatesResult.md deleted file mode 100644 index 9efab5627..000000000 --- a/docs/Model/ShippingV2/GetRatesResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetRatesResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request_token** | **string** | A unique token generated to identify a getRates operation. | -**rates** | [**\SellingPartnerApi\Model\ShippingV2\Rate[]**](Rate.md) | A list of eligible shipping service offerings. | -**ineligible_rates** | [**\SellingPartnerApi\Model\ShippingV2\IneligibleRate[]**](IneligibleRate.md) | A list of ineligible shipping service offerings. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetShipmentDocumentsResponse.md b/docs/Model/ShippingV2/GetShipmentDocumentsResponse.md deleted file mode 100644 index d65269f3e..000000000 --- a/docs/Model/ShippingV2/GetShipmentDocumentsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetShipmentDocumentsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResult**](GetShipmentDocumentsResult.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetShipmentDocumentsResult.md b/docs/Model/ShippingV2/GetShipmentDocumentsResult.md deleted file mode 100644 index ae019ca45..000000000 --- a/docs/Model/ShippingV2/GetShipmentDocumentsResult.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentDocumentsResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier provided by a shipping service. | -**package_document_detail** | [**\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail**](PackageDocumentDetail.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetTrackingResponse.md b/docs/Model/ShippingV2/GetTrackingResponse.md deleted file mode 100644 index 9468ae977..000000000 --- a/docs/Model/ShippingV2/GetTrackingResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetTrackingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV2\GetTrackingResult**](GetTrackingResult.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/GetTrackingResult.md b/docs/Model/ShippingV2/GetTrackingResult.md deleted file mode 100644 index 7a50b4664..000000000 --- a/docs/Model/ShippingV2/GetTrackingResult.md +++ /dev/null @@ -1,13 +0,0 @@ -## GetTrackingResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_id** | **string** | The carrier generated identifier for a package in a purchased shipment. | -**alternate_leg_tracking_id** | **string** | The carrier generated reverse identifier for a returned package in a purchased shipment. | -**event_history** | [**\SellingPartnerApi\Model\ShippingV2\Event[]**](Event.md) | A list of tracking events. | -**promised_delivery_date** | **string** | The date and time by which the shipment is promised to be delivered. | -**summary** | [**\SellingPartnerApi\Model\ShippingV2\TrackingSummary**](TrackingSummary.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/IneligibilityReason.md b/docs/Model/ShippingV2/IneligibilityReason.md deleted file mode 100644 index bc8c1aae7..000000000 --- a/docs/Model/ShippingV2/IneligibilityReason.md +++ /dev/null @@ -1,10 +0,0 @@ -## IneligibilityReason - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | [**\SellingPartnerApi\Model\ShippingV2\IneligibilityReasonCode**](IneligibilityReasonCode.md) | | -**message** | **string** | The ineligibility reason. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/IneligibilityReasonCode.md b/docs/Model/ShippingV2/IneligibilityReasonCode.md deleted file mode 100644 index eef8a7148..000000000 --- a/docs/Model/ShippingV2/IneligibilityReasonCode.md +++ /dev/null @@ -1,8 +0,0 @@ -## IneligibilityReasonCode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/IneligibleRate.md b/docs/Model/ShippingV2/IneligibleRate.md deleted file mode 100644 index 2b4b55632..000000000 --- a/docs/Model/ShippingV2/IneligibleRate.md +++ /dev/null @@ -1,13 +0,0 @@ -## IneligibleRate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**service_id** | **string** | An identifier for the shipping service. | -**service_name** | **string** | The name of the shipping service. | -**carrier_name** | **string** | The carrier name for the offering. | -**carrier_id** | **string** | The carrier identifier for the offering, provided by the carrier. | -**ineligibility_reasons** | [**\SellingPartnerApi\Model\ShippingV2\IneligibilityReason[]**](IneligibilityReason.md) | A list of reasons why a shipping service offering is ineligible. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/InvoiceDetails.md b/docs/Model/ShippingV2/InvoiceDetails.md deleted file mode 100644 index 9019fc5a8..000000000 --- a/docs/Model/ShippingV2/InvoiceDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## InvoiceDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_number** | **string** | The invoice number of the item. | [optional] -**invoice_date** | **string** | The invoice date of the item in ISO 8601 format. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Item.md b/docs/Model/ShippingV2/Item.md deleted file mode 100644 index db17d3666..000000000 --- a/docs/Model/ShippingV2/Item.md +++ /dev/null @@ -1,18 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_value** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | [optional] -**description** | **string** | The product description of the item. | [optional] -**item_identifier** | **string** | A unique identifier for an item provided by the client. Should be the order item identifier for the item if this item is associated with an Amazon order. If the item is part of an external (non-Amazon) order, this field can be left blank. | [optional] -**quantity** | **int** | The number of units. This value is required. | -**weight** | [**\SellingPartnerApi\Model\ShippingV2\Weight**](Weight.md) | | -**is_hazmat** | **bool** | When true, the item qualifies as hazardous materials (hazmat). Defaults to false. | [optional] -**product_type** | **string** | The product type of the item. | [optional] -**invoice_details** | [**\SellingPartnerApi\Model\ShippingV2\InvoiceDetails**](InvoiceDetails.md) | | [optional] -**serial_numbers** | **string[]** | A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon. | [optional] -**direct_fulfillment_item_identifiers** | [**\SellingPartnerApi\Model\ShippingV2\DirectFulfillmentItemIdentifiers**](DirectFulfillmentItemIdentifiers.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Location.md b/docs/Model/ShippingV2/Location.md deleted file mode 100644 index 9ea4530f6..000000000 --- a/docs/Model/ShippingV2/Location.md +++ /dev/null @@ -1,12 +0,0 @@ -## Location - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**state_or_region** | **string** | The state, county or region where the person, business or institution is located. | [optional] -**city** | **string** | The city or town where the person, business or institution is located. | [optional] -**country_code** | **string** | The two digit country code. Follows ISO 3166-1 alpha-2 format. | [optional] -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Package.md b/docs/Model/ShippingV2/Package.md deleted file mode 100644 index cd80ace4d..000000000 --- a/docs/Model/ShippingV2/Package.md +++ /dev/null @@ -1,16 +0,0 @@ -## Package - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensions** | [**\SellingPartnerApi\Model\ShippingV2\Dimensions**](Dimensions.md) | | -**weight** | [**\SellingPartnerApi\Model\ShippingV2\Weight**](Weight.md) | | -**insured_value** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | -**is_hazmat** | **bool** | When true, the package contains hazardous materials. Defaults to false. | [optional] -**seller_display_name** | **string** | The seller name displayed on the label. | [optional] -**charges** | [**\SellingPartnerApi\Model\ShippingV2\ChargeComponent[]**](ChargeComponent.md) | A list of charges based on the shipping service charges applied on a package. | [optional] -**package_client_reference_id** | **string** | A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. | -**items** | [**\SellingPartnerApi\Model\ShippingV2\Item[]**](Item.md) | A list of items. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PackageDocument.md b/docs/Model/ShippingV2/PackageDocument.md deleted file mode 100644 index e32a22420..000000000 --- a/docs/Model/ShippingV2/PackageDocument.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackageDocument - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**\SellingPartnerApi\Model\ShippingV2\DocumentType**](DocumentType.md) | | -**format** | [**\SellingPartnerApi\Model\ShippingV2\DocumentFormat**](DocumentFormat.md) | | -**contents** | **string** | A Base64 encoded string of the file contents. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PackageDocumentDetail.md b/docs/Model/ShippingV2/PackageDocumentDetail.md deleted file mode 100644 index f46161663..000000000 --- a/docs/Model/ShippingV2/PackageDocumentDetail.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackageDocumentDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_client_reference_id** | **string** | A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. | -**package_documents** | [**\SellingPartnerApi\Model\ShippingV2\PackageDocument[]**](PackageDocument.md) | A list of documents related to a package. | -**tracking_id** | **string** | The carrier generated identifier for a package in a purchased shipment. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PrintOption.md b/docs/Model/ShippingV2/PrintOption.md deleted file mode 100644 index 5ae6a80e2..000000000 --- a/docs/Model/ShippingV2/PrintOption.md +++ /dev/null @@ -1,12 +0,0 @@ -## PrintOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**supported_dpis** | **int[]** | A list of the supported DPI options for a document. | [optional] -**supported_page_layouts** | **string[]** | A list of the supported page layout options for a document. | -**supported_file_joining_options** | **bool[]** | A list of the supported needFileJoining boolean values for a document. | -**supported_document_details** | [**\SellingPartnerApi\Model\ShippingV2\SupportedDocumentDetail[]**](SupportedDocumentDetail.md) | A list of the supported documented details. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Promise.md b/docs/Model/ShippingV2/Promise.md deleted file mode 100644 index 39768a2d7..000000000 --- a/docs/Model/ShippingV2/Promise.md +++ /dev/null @@ -1,10 +0,0 @@ -## Promise - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delivery_window** | [**\SellingPartnerApi\Model\ShippingV2\TimeWindow**](TimeWindow.md) | | [optional] -**pickup_window** | [**\SellingPartnerApi\Model\ShippingV2\TimeWindow**](TimeWindow.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PurchaseShipmentRequest.md b/docs/Model/ShippingV2/PurchaseShipmentRequest.md deleted file mode 100644 index 7e150dcad..000000000 --- a/docs/Model/ShippingV2/PurchaseShipmentRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -## PurchaseShipmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request_token** | **string** | A unique token generated to identify a getRates operation. | -**rate_id** | **string** | An identifier for the rate (shipment offering) provided by a shipping service provider. | -**requested_document_specification** | [**\SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification**](RequestedDocumentSpecification.md) | | -**requested_value_added_services** | [**\SellingPartnerApi\Model\ShippingV2\RequestedValueAddedService[]**](RequestedValueAddedService.md) | The value-added services to be added to a shipping service purchase. | [optional] -**additional_inputs** | **object** | The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation.

Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PurchaseShipmentResponse.md b/docs/Model/ShippingV2/PurchaseShipmentResponse.md deleted file mode 100644 index 14227bde6..000000000 --- a/docs/Model/ShippingV2/PurchaseShipmentResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## PurchaseShipmentResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResult**](PurchaseShipmentResult.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/PurchaseShipmentResult.md b/docs/Model/ShippingV2/PurchaseShipmentResult.md deleted file mode 100644 index a789aca3f..000000000 --- a/docs/Model/ShippingV2/PurchaseShipmentResult.md +++ /dev/null @@ -1,11 +0,0 @@ -## PurchaseShipmentResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_id** | **string** | The unique shipment identifier provided by a shipping service. | -**package_document_details** | [**\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]**](PackageDocumentDetail.md) | A list of post-purchase details about a package that will be shipped using a shipping service. | -**promise** | [**\SellingPartnerApi\Model\ShippingV2\Promise**](Promise.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Rate.md b/docs/Model/ShippingV2/Rate.md deleted file mode 100644 index 876123049..000000000 --- a/docs/Model/ShippingV2/Rate.md +++ /dev/null @@ -1,19 +0,0 @@ -## Rate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate_id** | **string** | An identifier for the rate (shipment offering) provided by a shipping service provider. | -**carrier_id** | **string** | The carrier identifier for the offering, provided by the carrier. | -**carrier_name** | **string** | The carrier name for the offering. | -**service_id** | **string** | An identifier for the shipping service. | -**service_name** | **string** | The name of the shipping service. | -**billed_weight** | [**\SellingPartnerApi\Model\ShippingV2\Weight**](Weight.md) | | [optional] -**total_charge** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | -**promise** | [**\SellingPartnerApi\Model\ShippingV2\Promise**](Promise.md) | | -**supported_document_specifications** | [**\SellingPartnerApi\Model\ShippingV2\SupportedDocumentSpecification[]**](SupportedDocumentSpecification.md) | A list of the document specifications supported for a shipment service offering. | -**available_value_added_service_groups** | [**\SellingPartnerApi\Model\ShippingV2\AvailableValueAddedServiceGroup[]**](AvailableValueAddedServiceGroup.md) | A list of value-added services available for a shipping service offering. | [optional] -**requires_additional_inputs** | **bool** | When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/RequestedDocumentSpecification.md b/docs/Model/ShippingV2/RequestedDocumentSpecification.md deleted file mode 100644 index a1c5cf959..000000000 --- a/docs/Model/ShippingV2/RequestedDocumentSpecification.md +++ /dev/null @@ -1,14 +0,0 @@ -## RequestedDocumentSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | [**\SellingPartnerApi\Model\ShippingV2\DocumentFormat**](DocumentFormat.md) | | -**size** | [**\SellingPartnerApi\Model\ShippingV2\DocumentSize**](DocumentSize.md) | | -**dpi** | **int** | The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document. | [optional] -**page_layout** | **string** | Indicates the position of the label on the paper. Should be the same value as returned in getRates response. | [optional] -**need_file_joining** | **bool** | When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false. | -**requested_document_types** | [**\SellingPartnerApi\Model\ShippingV2\DocumentType[]**](DocumentType.md) | A list of the document types requested. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/RequestedValueAddedService.md b/docs/Model/ShippingV2/RequestedValueAddedService.md deleted file mode 100644 index 91f8107a0..000000000 --- a/docs/Model/ShippingV2/RequestedValueAddedService.md +++ /dev/null @@ -1,9 +0,0 @@ -## RequestedValueAddedService - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Status.md b/docs/Model/ShippingV2/Status.md deleted file mode 100644 index 107ed8d54..000000000 --- a/docs/Model/ShippingV2/Status.md +++ /dev/null @@ -1,8 +0,0 @@ -## Status - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/SupportedDocumentDetail.md b/docs/Model/ShippingV2/SupportedDocumentDetail.md deleted file mode 100644 index d847ebcc3..000000000 --- a/docs/Model/ShippingV2/SupportedDocumentDetail.md +++ /dev/null @@ -1,10 +0,0 @@ -## SupportedDocumentDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | [**\SellingPartnerApi\Model\ShippingV2\DocumentType**](DocumentType.md) | | -**is_mandatory** | **bool** | When true, the supported document type is required. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/SupportedDocumentSpecification.md b/docs/Model/ShippingV2/SupportedDocumentSpecification.md deleted file mode 100644 index 7bc14aa5a..000000000 --- a/docs/Model/ShippingV2/SupportedDocumentSpecification.md +++ /dev/null @@ -1,11 +0,0 @@ -## SupportedDocumentSpecification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | [**\SellingPartnerApi\Model\ShippingV2\DocumentFormat**](DocumentFormat.md) | | -**size** | [**\SellingPartnerApi\Model\ShippingV2\DocumentSize**](DocumentSize.md) | | -**print_options** | [**\SellingPartnerApi\Model\ShippingV2\PrintOption[]**](PrintOption.md) | A list of the format options for a label. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/TaxDetail.md b/docs/Model/ShippingV2/TaxDetail.md deleted file mode 100644 index 5fbeb2c64..000000000 --- a/docs/Model/ShippingV2/TaxDetail.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_type** | [**\SellingPartnerApi\Model\ShippingV2\TaxType**](TaxType.md) | | -**tax_registration_number** | **string** | The shipper's tax registration number associated with the shipment for customs compliance purposes in certain regions. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/TaxType.md b/docs/Model/ShippingV2/TaxType.md deleted file mode 100644 index 8266fb32a..000000000 --- a/docs/Model/ShippingV2/TaxType.md +++ /dev/null @@ -1,8 +0,0 @@ -## TaxType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/TimeWindow.md b/docs/Model/ShippingV2/TimeWindow.md deleted file mode 100644 index ad3211a09..000000000 --- a/docs/Model/ShippingV2/TimeWindow.md +++ /dev/null @@ -1,10 +0,0 @@ -## TimeWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_time** | **string** | The start time of the time window. | [optional] -**end_time** | **string** | The end time of the time window. | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/TrackingSummary.md b/docs/Model/ShippingV2/TrackingSummary.md deleted file mode 100644 index 25289fc91..000000000 --- a/docs/Model/ShippingV2/TrackingSummary.md +++ /dev/null @@ -1,9 +0,0 @@ -## TrackingSummary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**\SellingPartnerApi\Model\ShippingV2\Status**](Status.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/ValueAddedService.md b/docs/Model/ShippingV2/ValueAddedService.md deleted file mode 100644 index 0891bcfda..000000000 --- a/docs/Model/ShippingV2/ValueAddedService.md +++ /dev/null @@ -1,11 +0,0 @@ -## ValueAddedService - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | The identifier for the value-added service. | -**name** | **string** | The name of the value-added service. | -**cost** | [**\SellingPartnerApi\Model\ShippingV2\Currency**](Currency.md) | | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/ValueAddedServiceDetails.md b/docs/Model/ShippingV2/ValueAddedServiceDetails.md deleted file mode 100644 index 3136fed2f..000000000 --- a/docs/Model/ShippingV2/ValueAddedServiceDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## ValueAddedServiceDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**collect_on_delivery** | [**\SellingPartnerApi\Model\ShippingV2\CollectOnDelivery**](CollectOnDelivery.md) | | [optional] - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/ShippingV2/Weight.md b/docs/Model/ShippingV2/Weight.md deleted file mode 100644 index 8c25886fe..000000000 --- a/docs/Model/ShippingV2/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **string** | The unit of measurement. | -**value** | **float** | The measurement value. | - -[[ShippingV2 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/Error.md b/docs/Model/SmallAndLightV1/Error.md deleted file mode 100644 index 142cb9f8a..000000000 --- a/docs/Model/SmallAndLightV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional information that can help the caller understand or fix the issue. | [optional] - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/ErrorList.md b/docs/Model/SmallAndLightV1/ErrorList.md deleted file mode 100644 index 7de3f2849..000000000 --- a/docs/Model/SmallAndLightV1/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\SmallAndLightV1\Error[]**](Error.md) | | [optional] - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/FeeLineItem.md b/docs/Model/SmallAndLightV1/FeeLineItem.md deleted file mode 100644 index 98bcf845c..000000000 --- a/docs/Model/SmallAndLightV1/FeeLineItem.md +++ /dev/null @@ -1,10 +0,0 @@ -## FeeLineItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fee_type** | **string** | The type of fee charged to the seller. | -**fee_charge** | [**\SellingPartnerApi\Model\SmallAndLightV1\MoneyType**](MoneyType.md) | | - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/FeePreview.md b/docs/Model/SmallAndLightV1/FeePreview.md deleted file mode 100644 index 93a0cdc75..000000000 --- a/docs/Model/SmallAndLightV1/FeePreview.md +++ /dev/null @@ -1,13 +0,0 @@ -## FeePreview - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) value used to identify the item. | [optional] -**price** | [**\SellingPartnerApi\Model\SmallAndLightV1\MoneyType**](MoneyType.md) | | [optional] -**fee_breakdown** | [**\SellingPartnerApi\Model\SmallAndLightV1\FeeLineItem[]**](FeeLineItem.md) | A list of the Small and Light fees for the item. | [optional] -**total_fees** | [**\SellingPartnerApi\Model\SmallAndLightV1\MoneyType**](MoneyType.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\SmallAndLightV1\Error[]**](Error.md) | One or more unexpected errors occurred during the getSmallAndLightFeePreview operation. | [optional] - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/Item.md b/docs/Model/SmallAndLightV1/Item.md deleted file mode 100644 index 65170f461..000000000 --- a/docs/Model/SmallAndLightV1/Item.md +++ /dev/null @@ -1,10 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**asin** | **string** | The Amazon Standard Identification Number (ASIN) value used to identify the item. | -**price** | [**\SellingPartnerApi\Model\SmallAndLightV1\MoneyType**](MoneyType.md) | | - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/MoneyType.md b/docs/Model/SmallAndLightV1/MoneyType.md deleted file mode 100644 index f87448ad2..000000000 --- a/docs/Model/SmallAndLightV1/MoneyType.md +++ /dev/null @@ -1,10 +0,0 @@ -## MoneyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | The currency code in ISO 4217 format. | [optional] -**amount** | **float** | The monetary value. | [optional] - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightEligibility.md b/docs/Model/SmallAndLightV1/SmallAndLightEligibility.md deleted file mode 100644 index 644533f32..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightEligibility.md +++ /dev/null @@ -1,11 +0,0 @@ -## SmallAndLightEligibility - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**seller_sku** | **string** | Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. | -**status** | [**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibilityStatus**](SmallAndLightEligibilityStatus.md) | | - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.md b/docs/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.md deleted file mode 100644 index 6171f2d33..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## SmallAndLightEligibilityStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightEnrollment.md b/docs/Model/SmallAndLightV1/SmallAndLightEnrollment.md deleted file mode 100644 index 50aefea9d..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightEnrollment.md +++ /dev/null @@ -1,11 +0,0 @@ -## SmallAndLightEnrollment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**seller_sku** | **string** | Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. | -**status** | [**\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollmentStatus**](SmallAndLightEnrollmentStatus.md) | | - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.md b/docs/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.md deleted file mode 100644 index 95bd75797..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -## SmallAndLightEnrollmentStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.md b/docs/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.md deleted file mode 100644 index 8b1a9b1b4..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## SmallAndLightFeePreviewRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_id** | **string** | A marketplace identifier. | -**items** | [**\SellingPartnerApi\Model\SmallAndLightV1\Item[]**](Item.md) | A list of items for which to retrieve fee estimates (limit: 25). | - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SmallAndLightV1/SmallAndLightFeePreviews.md b/docs/Model/SmallAndLightV1/SmallAndLightFeePreviews.md deleted file mode 100644 index 0e90c9771..000000000 --- a/docs/Model/SmallAndLightV1/SmallAndLightFeePreviews.md +++ /dev/null @@ -1,9 +0,0 @@ -## SmallAndLightFeePreviews - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**\SellingPartnerApi\Model\SmallAndLightV1\FeePreview[]**](FeePreview.md) | A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed. | [optional] - -[[SmallAndLightV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.md b/docs/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.md deleted file mode 100644 index 3af76d6d6..000000000 --- a/docs/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -## CreateProductReviewAndSellerFeedbackSolicitationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\SolicitationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/Error.md b/docs/Model/SolicitationsV1/Error.md deleted file mode 100644 index 9adb591ff..000000000 --- a/docs/Model/SolicitationsV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSchemaResponse.md b/docs/Model/SolicitationsV1/GetSchemaResponse.md deleted file mode 100644 index b68cb581e..000000000 --- a/docs/Model/SolicitationsV1/GetSchemaResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetSchemaResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponseLinks**](GetSchemaResponseLinks.md) | | [optional] -**payload** | **map[string,object]** | A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema. | [optional] -**errors** | [**\SellingPartnerApi\Model\SolicitationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSchemaResponseLinks.md b/docs/Model/SolicitationsV1/GetSchemaResponseLinks.md deleted file mode 100644 index 87545a0ba..000000000 --- a/docs/Model/SolicitationsV1/GetSchemaResponseLinks.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetSchemaResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\SolicitationsV1\LinkObject**](LinkObject.md) | | - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionResponse.md b/docs/Model/SolicitationsV1/GetSolicitationActionResponse.md deleted file mode 100644 index 2e21a705a..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -## GetSolicitationActionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseLinks**](GetSolicitationActionResponseLinks.md) | | [optional] -**_embedded** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseEmbedded**](GetSolicitationActionResponseEmbedded.md) | | [optional] -**payload** | [**\SellingPartnerApi\Model\SolicitationsV1\SolicitationsAction**](SolicitationsAction.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\SolicitationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.md b/docs/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.md deleted file mode 100644 index b2563e192..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetSolicitationActionResponseEmbedded - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**schema** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponse**](GetSchemaResponse.md) | | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionResponseLinks.md b/docs/Model/SolicitationsV1/GetSolicitationActionResponseLinks.md deleted file mode 100644 index ca8905979..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionResponseLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetSolicitationActionResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\SolicitationsV1\LinkObject**](LinkObject.md) | | -**schema** | [**\SellingPartnerApi\Model\SolicitationsV1\LinkObject**](LinkObject.md) | | - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.md b/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.md deleted file mode 100644 index a13233d0d..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -## GetSolicitationActionsForOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_links** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseLinks**](GetSolicitationActionsForOrderResponseLinks.md) | | [optional] -**_embedded** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseEmbedded**](GetSolicitationActionsForOrderResponseEmbedded.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\SolicitationsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.md b/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.md deleted file mode 100644 index 3908ee06e..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.md +++ /dev/null @@ -1,9 +0,0 @@ -## GetSolicitationActionsForOrderResponseEmbedded - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | [**\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponse[]**](GetSolicitationActionResponse.md) | | - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.md b/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.md deleted file mode 100644 index d0269d3de..000000000 --- a/docs/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetSolicitationActionsForOrderResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**self** | [**\SellingPartnerApi\Model\SolicitationsV1\LinkObject**](LinkObject.md) | | -**actions** | [**\SellingPartnerApi\Model\SolicitationsV1\LinkObject[]**](LinkObject.md) | Eligible actions for the specified amazonOrderId. | - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/LinkObject.md b/docs/Model/SolicitationsV1/LinkObject.md deleted file mode 100644 index 9fbc9f0a4..000000000 --- a/docs/Model/SolicitationsV1/LinkObject.md +++ /dev/null @@ -1,10 +0,0 @@ -## LinkObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **string** | A URI for this object. | -**name** | **string** | An identifier for this object. | [optional] - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/SolicitationsV1/SolicitationsAction.md b/docs/Model/SolicitationsV1/SolicitationsAction.md deleted file mode 100644 index 200434064..000000000 --- a/docs/Model/SolicitationsV1/SolicitationsAction.md +++ /dev/null @@ -1,9 +0,0 @@ -## SolicitationsAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | - -[[SolicitationsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/TokensV20210301/CreateRestrictedDataTokenRequest.md b/docs/Model/TokensV20210301/CreateRestrictedDataTokenRequest.md deleted file mode 100644 index 64d632b5c..000000000 --- a/docs/Model/TokensV20210301/CreateRestrictedDataTokenRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateRestrictedDataTokenRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**target_application** | **string** | The application ID for the target application to which access is being delegated. | [optional] -**restricted_resources** | [**\SellingPartnerApi\Model\TokensV20210301\RestrictedResource[]**](RestrictedResource.md) | A list of restricted resources.
Maximum: 50 | - -[[TokensV20210301 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/TokensV20210301/CreateRestrictedDataTokenResponse.md b/docs/Model/TokensV20210301/CreateRestrictedDataTokenResponse.md deleted file mode 100644 index 098bf4e84..000000000 --- a/docs/Model/TokensV20210301/CreateRestrictedDataTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateRestrictedDataTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**restricted_data_token** | **string** | A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources. | [optional] -**expires_in** | **int** | The lifetime of the Restricted Data Token, in seconds. | [optional] - -[[TokensV20210301 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/TokensV20210301/Error.md b/docs/Model/TokensV20210301/Error.md deleted file mode 100644 index d70036d0e..000000000 --- a/docs/Model/TokensV20210301/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[TokensV20210301 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/TokensV20210301/ErrorList.md b/docs/Model/TokensV20210301/ErrorList.md deleted file mode 100644 index 1f48f4ee2..000000000 --- a/docs/Model/TokensV20210301/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\TokensV20210301\Error[]**](Error.md) | | [optional] - -[[TokensV20210301 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/TokensV20210301/RestrictedResource.md b/docs/Model/TokensV20210301/RestrictedResource.md deleted file mode 100644 index 2a8b45cc9..000000000 --- a/docs/Model/TokensV20210301/RestrictedResource.md +++ /dev/null @@ -1,11 +0,0 @@ -## RestrictedResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**method** | **string** | The HTTP method in the restricted resource. | -**path** | **string** | The path in the restricted resource. Here are some path examples:
- ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders.
- ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order.
- ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order.
- ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment.
- ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation. | -**data_elements** | **string[]** | Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide). Possible values include:
- **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available.
- **shippingAddress**. This includes information for fulfilling orders.
- **buyerTaxInformation**. This includes information for issuing tax invoices. | [optional] - -[[TokensV20210301 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/UploadsV20201101/CreateUploadDestinationResponse.md b/docs/Model/UploadsV20201101/CreateUploadDestinationResponse.md deleted file mode 100644 index 93e8659c9..000000000 --- a/docs/Model/UploadsV20201101/CreateUploadDestinationResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## CreateUploadDestinationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\UploadsV20201101\UploadDestination**](UploadDestination.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\UploadsV20201101\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[UploadsV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/UploadsV20201101/Error.md b/docs/Model/UploadsV20201101/Error.md deleted file mode 100644 index 8c5e0dac8..000000000 --- a/docs/Model/UploadsV20201101/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition in a human-readable form. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[UploadsV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/UploadsV20201101/UploadDestination.md b/docs/Model/UploadsV20201101/UploadDestination.md deleted file mode 100644 index f57fadeb0..000000000 --- a/docs/Model/UploadsV20201101/UploadDestination.md +++ /dev/null @@ -1,11 +0,0 @@ -## UploadDestination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload_destination_id** | **string** | The unique identifier for the upload destination. | [optional] -**url** | **string** | The URL for the upload destination. | [optional] -**headers** | **object** | The headers to include in the upload request. | [optional] - -[[UploadsV20201101 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/Error.md b/docs/Model/VendorDirectFulfillmentInventoryV1/Error.md deleted file mode 100644 index 5ce5fbdad..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.md b/docs/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.md deleted file mode 100644 index 8be993ad4..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.md +++ /dev/null @@ -1,11 +0,0 @@ -## InventoryUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\PartyIdentification**](PartyIdentification.md) | | -**is_full_update** | **bool** | When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged. | -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemDetails[]**](ItemDetails.md) | A list of inventory items with updated details, including quantity available. | - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.md b/docs/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.md deleted file mode 100644 index 2470425bb..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## ItemDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buyer_product_identifier** | **string** | The buyer selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. | [optional] -**available_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemQuantity**](ItemQuantity.md) | | -**is_obsolete** | **bool** | When true, the item is permanently unavailable. | [optional] - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.md deleted file mode 100644 index 4f87bbdc7..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Quantity of units available for a specific item. | [optional] -**unit_of_measure** | **string** | Unit of measure for the available quantity. | - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.md deleted file mode 100644 index 15fb9f3db..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.md +++ /dev/null @@ -1,9 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. | - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.md b/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.md deleted file mode 100644 index 696842290..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitInventoryUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inventory** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\InventoryUpdate**](InventoryUpdate.md) | | [optional] - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.md b/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.md deleted file mode 100644 index 393b210ff..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitInventoryUpdateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.md b/docs/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.md deleted file mode 100644 index 86ea7ff7b..000000000 --- a/docs/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentInventoryV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.md b/docs/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.md deleted file mode 100644 index a6be6dad8..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -## AcknowledgementStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide. | [optional] -**description** | **string** | Reason for the acknowledgement code. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/Address.md b/docs/Model/VendorDirectFulfillmentOrdersV1/Address.md deleted file mode 100644 index 9cefaa16a..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/Address.md +++ /dev/null @@ -1,20 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**attention** | **string** | The attention name of the person at that address. | [optional] -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | -**postal_code** | **string** | The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/Error.md b/docs/Model/VendorDirectFulfillmentOrdersV1/Error.md deleted file mode 100644 index 46145cae4..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.md b/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.md deleted file mode 100644 index a65d59018..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order**](Order.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.md b/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.md deleted file mode 100644 index 8c8394247..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetOrdersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderList**](OrderList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.md deleted file mode 100644 index 0c2b37166..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## GiftDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gift_message** | **string** | Gift message to be printed in shipment. | [optional] -**gift_wrap_id** | **string** | Gift wrap identifier for the gift wrapping, if any. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.md deleted file mode 100644 index b2c67f9e4..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Acknowledged quantity. This value should not be zero. | [optional] -**unit_of_measure** | **string** | Unit of measure for the acknowledged quantity. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/Money.md b/docs/Model/VendorDirectFulfillmentOrdersV1/Money.md deleted file mode 100644 index 6959b261a..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. String of length 3. | [optional] -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/Order.md b/docs/Model/VendorDirectFulfillmentOrdersV1/Order.md deleted file mode 100644 index c9f2e54b1..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/Order.md +++ /dev/null @@ -1,10 +0,0 @@ -## Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: alpha-numeric code. | -**order_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetails**](OrderDetails.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.md deleted file mode 100644 index 1dd2b4707..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.md +++ /dev/null @@ -1,15 +0,0 @@ -## OrderAcknowledgementItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: alpha-numeric code. | -**vendor_order_number** | **string** | The vendor's order number for this order. | -**acknowledgement_date** | **string** | The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. | -**acknowledgement_status** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\AcknowledgementStatus**](AcknowledgementStatus.md) | | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**item_acknowledgements** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemAcknowledgement[]**](OrderItemAcknowledgement.md) | Item details including acknowledged quantity. | - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.md deleted file mode 100644 index 18f38b5b1..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -## OrderDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_order_number** | **string** | The customer order number. | -**order_date** | **string** | The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. | -**order_status** | **string** | Current status of the order. | [optional] -**shipment_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDetails**](ShipmentDetails.md) | | -**tax_total** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetailsTaxTotal**](OrderDetailsTaxTotal.md) | | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address**](Address.md) | | -**bill_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItem[]**](OrderItem.md) | A list of items in this purchase order. | - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.md deleted file mode 100644 index b6aa9e4d4..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.md +++ /dev/null @@ -1,9 +0,0 @@ -## OrderDetailsTaxTotal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_line_item** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]**](TaxDetails.md) | A list of tax line items. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItem.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItem.md deleted file mode 100644 index 3cc848229..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItem.md +++ /dev/null @@ -1,18 +0,0 @@ -## OrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. | -**buyer_product_identifier** | **string** | Buyer's standard identification number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. | [optional] -**title** | **string** | Title for the item. | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity**](ItemQuantity.md) | | -**scheduled_delivery_shipment** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ScheduledDeliveryShipment**](ScheduledDeliveryShipment.md) | | [optional] -**gift_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GiftDetails**](GiftDetails.md) | | [optional] -**net_price** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemTaxDetails**](OrderItemTaxDetails.md) | | [optional] -**total_price** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money**](Money.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.md deleted file mode 100644 index 24119689f..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderItemAcknowledgement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Line item sequence number for the item. | -**buyer_product_identifier** | **string** | Buyer's standard identification number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was provided in the purchase order. | [optional] -**acknowledged_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.md deleted file mode 100644 index 95402f259..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## OrderItemTaxDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_line_item** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]**](TaxDetails.md) | A list of tax line items. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderList.md b/docs/Model/VendorDirectFulfillmentOrdersV1/OrderList.md deleted file mode 100644 index 3ae6df051..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/OrderList.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Pagination**](Pagination.md) | | [optional] -**orders** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order[]**](Order.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/Pagination.md b/docs/Model/VendorDirectFulfillmentOrdersV1/Pagination.md deleted file mode 100644 index 3c4d15090..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.md deleted file mode 100644 index cdd1bdad6..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. | -**address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address**](Address.md) | | [optional] -**tax_info** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxRegistrationDetails**](TaxRegistrationDetails.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.md b/docs/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.md deleted file mode 100644 index 942407d23..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.md +++ /dev/null @@ -1,11 +0,0 @@ -## ScheduledDeliveryShipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduled_delivery_service_type** | **string** | Scheduled delivery service type. | [optional] -**earliest_nominated_delivery_date** | **string** | Earliest nominated delivery date for the scheduled delivery, in ISO 8601 format. | [optional] -**latest_nominated_delivery_date** | **string** | Latest nominated delivery date for the scheduled delivery, in ISO 8601 format. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.md b/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.md deleted file mode 100644 index 297cbbb7c..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipmentDates - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**required_ship_date** | **string** | Time by which the vendor is required to ship the order. | -**promised_delivery_date** | **string** | Delivery date promised to the Amazon customer. Must be in ISO 8601 format. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.md deleted file mode 100644 index 3d358423e..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## ShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_priority_shipment** | **bool** | When true, this is a priority shipment. | -**is_scheduled_delivery_shipment** | **bool** | When true, this order is part of a scheduled delivery program. | [optional] -**is_pslip_required** | **bool** | When true, a packing slip is required to be sent to the customer. | -**is_gift** | **bool** | When true, the order contain a gift. Include the gift message and gift wrap information. | [optional] -**ship_method** | **string** | Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'. | -**shipment_dates** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDates**](ShipmentDates.md) | | -**message_to_customer** | **string** | Message to customer for order status. | - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.md b/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.md deleted file mode 100644 index dcfaa38a7..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitAcknowledgementRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_acknowledgements** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderAcknowledgementItem[]**](OrderAcknowledgementItem.md) | A list of one or more purchase orders. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.md b/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.md deleted file mode 100644 index 8bd33513f..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitAcknowledgementResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TransactionId**](TransactionId.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.md deleted file mode 100644 index cfaa9c472..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_rate** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money**](Money.md) | | -**taxable_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money**](Money.md) | | [optional] -**type** | **string** | Tax type. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.md deleted file mode 100644 index 6128c1533..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | [optional] -**tax_registration_number** | **string** | Tax registration number for the party. For example, VAT ID. | -**tax_registration_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address**](Address.md) | | [optional] -**tax_registration_messages** | **string** | Tax registration message that can be used for additional tax related details. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV1/TransactionId.md b/docs/Model/VendorDirectFulfillmentOrdersV1/TransactionId.md deleted file mode 100644 index 79fcd59e8..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV1/TransactionId.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.md deleted file mode 100644 index 9c97b3b74..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -## AcknowledgementStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide. | [optional] -**description** | **string** | Reason for the acknowledgement code. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Address.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/Address.md deleted file mode 100644 index bf4ff851d..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Address.md +++ /dev/null @@ -1,20 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**attention** | **string** | The attention name of the person at that address. | [optional] -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | -**postal_code** | **string** | The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.md deleted file mode 100644 index a80034a72..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.md +++ /dev/null @@ -1,9 +0,0 @@ -## BuyerCustomizedInfoDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customized_url** | **string** | A [Base 64](https://datatracker.ietf.org/doc/html/rfc4648#section-4) encoded URL using the UTF-8 character set. The URL provides the location of the zip file that specifies the types of customizations or configurations allowed by the vendor, along with types and ranges for the attributes of their products. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Error.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/Error.md deleted file mode 100644 index 884e0c6f2..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.md deleted file mode 100644 index 75b8c1472..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Error[]**](Error.md) | | - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.md deleted file mode 100644 index f522956d1..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## GiftDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gift_message** | **string** | Gift message to be printed in shipment. | [optional] -**gift_wrap_id** | **string** | Gift wrap identifier for the gift wrapping, if any. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.md deleted file mode 100644 index a51086d49..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Acknowledged quantity. This value should not be zero. | [optional] -**unit_of_measure** | **string** | Unit of measure for the acknowledged quantity. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Money.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/Money.md deleted file mode 100644 index 0bb3807c6..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. String of length 3. | [optional] -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Order.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/Order.md deleted file mode 100644 index 286995e4b..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Order.md +++ /dev/null @@ -1,10 +0,0 @@ -## Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: alpha-numeric code. | -**order_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderDetails**](OrderDetails.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.md deleted file mode 100644 index 37d5ba6ce..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.md +++ /dev/null @@ -1,15 +0,0 @@ -## OrderAcknowledgementItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: alpha-numeric code. | -**vendor_order_number** | **string** | The vendor's order number for this order. | -**acknowledgement_date** | **string** | The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. | -**acknowledgement_status** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\AcknowledgementStatus**](AcknowledgementStatus.md) | | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification**](PartyIdentification.md) | | -**item_acknowledgements** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItemAcknowledgement[]**](OrderItemAcknowledgement.md) | Item details including acknowledged quantity. | - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.md deleted file mode 100644 index 2447f5445..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -## OrderDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_order_number** | **string** | The customer order number. | -**order_date** | **string** | The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. | -**order_status** | **string** | Current status of the order. | [optional] -**shipment_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDetails**](ShipmentDetails.md) | | -**tax_total** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails**](TaxItemDetails.md) | | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address**](Address.md) | | -**bill_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification**](PartyIdentification.md) | | -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItem[]**](OrderItem.md) | A list of items in this purchase order. | - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.md deleted file mode 100644 index d054bf97b..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.md +++ /dev/null @@ -1,19 +0,0 @@ -## OrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. | -**buyer_product_identifier** | **string** | Buyer's standard identification number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. | [optional] -**title** | **string** | Title for the item. | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity**](ItemQuantity.md) | | -**scheduled_delivery_shipment** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ScheduledDeliveryShipment**](ScheduledDeliveryShipment.md) | | [optional] -**gift_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\GiftDetails**](GiftDetails.md) | | [optional] -**net_price** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails**](TaxItemDetails.md) | | [optional] -**total_price** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money**](Money.md) | | [optional] -**buyer_customized_info** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\BuyerCustomizedInfoDetail**](BuyerCustomizedInfoDetail.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.md deleted file mode 100644 index 99036436e..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderItemAcknowledgement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Line item sequence number for the item. | -**buyer_product_identifier** | **string** | Buyer's standard identification number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was provided in the purchase order. | [optional] -**acknowledged_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.md deleted file mode 100644 index 5f1288fdf..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Pagination**](Pagination.md) | | [optional] -**orders** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order[]**](Order.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.md deleted file mode 100644 index 9ceee7cbd..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.md deleted file mode 100644 index 37abd0be4..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. | -**address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address**](Address.md) | | [optional] -**tax_info** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxRegistrationDetails**](TaxRegistrationDetails.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.md deleted file mode 100644 index 1f18e8624..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.md +++ /dev/null @@ -1,11 +0,0 @@ -## ScheduledDeliveryShipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scheduled_delivery_service_type** | **string** | Scheduled delivery service type. | [optional] -**earliest_nominated_delivery_date** | **string** | Earliest nominated delivery date for the scheduled delivery. Must be in ISO 8601 format. | [optional] -**latest_nominated_delivery_date** | **string** | Latest nominated delivery date for the scheduled delivery. Must be in ISO 8601 format. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.md deleted file mode 100644 index 924cf381c..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipmentDates - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**required_ship_date** | **string** | Time by which the vendor is required to ship the order. Must be in ISO 8601 format. | -**promised_delivery_date** | **string** | Delivery date promised to the Amazon customer. Must be in ISO 8601 format. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.md deleted file mode 100644 index a7c090de1..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## ShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**is_priority_shipment** | **bool** | When true, this is a priority shipment. | -**is_scheduled_delivery_shipment** | **bool** | When true, this order is part of a scheduled delivery program. | [optional] -**is_pslip_required** | **bool** | When true, a packing slip is required to be sent to the customer. | -**is_gift** | **bool** | When true, the order contain a gift. Include the gift message and gift wrap information. | [optional] -**ship_method** | **string** | Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'. | -**shipment_dates** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDates**](ShipmentDates.md) | | -**message_to_customer** | **string** | Message to customer for order status. | - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.md deleted file mode 100644 index 125bbc30c..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitAcknowledgementRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_acknowledgements** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderAcknowledgementItem[]**](OrderAcknowledgementItem.md) | A list of one or more purchase orders. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.md deleted file mode 100644 index 80ccb7439..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitAcknowledgementResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId**](TransactionId.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList**](ErrorList.md) | | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.md deleted file mode 100644 index 3e7792207..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_rate** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money**](Money.md) | | -**taxable_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money**](Money.md) | | [optional] -**type** | **string** | Tax type. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.md deleted file mode 100644 index b8845372c..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## TaxItemDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_line_item** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxDetails[]**](TaxDetails.md) | A list of tax line items. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.md deleted file mode 100644 index 81343d6eb..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | [optional] -**tax_registration_number** | **string** | Tax registration number for the party. For example, VAT ID. | -**tax_registration_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address**](Address.md) | | [optional] -**tax_registration_messages** | **string** | Tax registration message that can be used for additional tax related details. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.md b/docs/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.md deleted file mode 100644 index c92b44bc4..000000000 --- a/docs/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentOrdersV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.md deleted file mode 100644 index e76a86d01..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## AdditionalDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | The type of the additional information provided by the selling party. | -**detail** | **string** | The detail of the additional information provided by the selling party. | -**language_code** | **string** | The language code of the additional information detail. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/Address.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/Address.md deleted file mode 100644 index e75b838ea..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | -**postal_code** | **string** | The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. | -**country_code** | **string** | The two digit country code in ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.md deleted file mode 100644 index 4478c9589..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## ChargeDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | Type of charge applied. | -**charge_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]**](TaxDetail.md) | Individual tax details per line item. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/Error.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/Error.md deleted file mode 100644 index 4fb01d800..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.md deleted file mode 100644 index b331fddeb..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.md +++ /dev/null @@ -1,21 +0,0 @@ -## InvoiceDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_number** | **string** | The unique invoice number. | -**invoice_date** | **string** | Invoice date. Must be in ISO 8601 format. | -**reference_number** | **string** | An additional unique reference number used for regulatory or other purposes. | [optional] -**remit_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification**](PartyIdentification.md) | | -**bill_to_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**ship_to_country_code** | **string** | Ship-to country code. | [optional] -**payment_terms_code** | **string** | The payment terms for the invoice. | [optional] -**invoice_total** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money**](Money.md) | | -**tax_totals** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]**](TaxDetail.md) | Individual tax details per line item. | [optional] -**additional_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\AdditionalDetails[]**](AdditionalDetails.md) | Additional details provided by the selling party, for tax-related or other purposes. | [optional] -**charge_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]**](ChargeDetails.md) | Total charge amount details for all line items. | [optional] -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceItem[]**](InvoiceItem.md) | Provides the details of the items in this invoice. | - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.md deleted file mode 100644 index b85e7160e..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.md +++ /dev/null @@ -1,18 +0,0 @@ -## InvoiceItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. | -**buyer_product_identifier** | **string** | Buyer's standard identification number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. | [optional] -**invoiced_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ItemQuantity**](ItemQuantity.md) | | -**net_cost** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money**](Money.md) | | -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. | -**vendor_order_number** | **string** | The vendor's order number for this order. | [optional] -**hsn_code** | **string** | Harmonized System of Nomenclature (HSN) tax code. The HSN number cannot contain alphabets. | [optional] -**tax_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]**](TaxDetail.md) | Individual tax details per line item. | [optional] -**charge_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]**](ChargeDetails.md) | Individual charge details per line item. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.md deleted file mode 100644 index f6f1f239f..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Quantity of units available for a specific item. | -**unit_of_measure** | **string** | Unit of measure for the available quantity. | - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/Money.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/Money.md deleted file mode 100644 index aac243309..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. | -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.md deleted file mode 100644 index ab66f5213..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned Identification for the party. | -**address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address**](Address.md) | | [optional] -**tax_registration_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxRegistrationDetail[]**](TaxRegistrationDetail.md) | Tax registration details of the entity. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.md deleted file mode 100644 index 7e7e73df9..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitInvoiceRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoices** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceDetail[]**](InvoiceDetail.md) | | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.md deleted file mode 100644 index 57a125885..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitInvoiceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.md deleted file mode 100644 index 0ec9ce6d6..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_type** | **string** | Type of the tax applied. | -**tax_rate** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money**](Money.md) | | -**taxable_amount** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money**](Money.md) | | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.md deleted file mode 100644 index 5a664c5c0..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxRegistrationDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | [optional] -**tax_registration_number** | **string** | Tax registration number for the entity. For example, VAT ID, Consumption Tax ID. | -**tax_registration_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address**](Address.md) | | [optional] -**tax_registration_message** | **string** | Tax registration message that can be used for additional tax related details. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.md b/docs/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.md deleted file mode 100644 index fb3313c9c..000000000 --- a/docs/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentPaymentsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Error.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/Error.md deleted file mode 100644 index fda36f7b9..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occured. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.md deleted file mode 100644 index 0d27aa7c0..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Error[]**](Error.md) | | - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.md deleted file mode 100644 index 2e6876545..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## GenerateOrderScenarioRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**orders** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\OrderScenarioRequest[]**](OrderScenarioRequest.md) | The list of test orders requested as indicated by party identifiers. | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.md deleted file mode 100644 index ba187caf0..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderScenarioRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification**](PartyIdentification.md) | | - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.md deleted file mode 100644 index 8defbb6e2..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.md deleted file mode 100644 index 349eda265..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.md +++ /dev/null @@ -1,9 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. | - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.md deleted file mode 100644 index 68f0805e6..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.md +++ /dev/null @@ -1,10 +0,0 @@ -## Scenario - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scenario_id** | **string** | An identifier that identifies the type of scenario that user can use for testing. | -**orders** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestOrder[]**](TestOrder.md) | A list of orders that can be used by the caller to test each life cycle or scenario. | - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.md deleted file mode 100644 index 9e19b866e..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.md +++ /dev/null @@ -1,9 +0,0 @@ -## TestCaseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scenarios** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Scenario[]**](Scenario.md) | Set of use cases that describes the possible test scenarios. | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.md deleted file mode 100644 index 5e9ac15da..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.md +++ /dev/null @@ -1,9 +0,0 @@ -## TestOrder - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_id** | **string** | An error code that identifies the type of error that occurred. | - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.md deleted file mode 100644 index a51d07f98..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.md +++ /dev/null @@ -1,11 +0,0 @@ -## Transaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | The unique identifier returned in the response to the generateOrderScenarios request. | -**status** | **string** | The current processing status of the transaction. | -**test_case_data** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestCaseData**](TestCaseData.md) | | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.md deleted file mode 100644 index 26f625af4..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.md b/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.md deleted file mode 100644 index 681ad0c3b..000000000 --- a/docs/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_status** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Transaction**](Transaction.md) | | [optional] - -[[VendorDirectFulfillmentSandboxV20211028 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Address.md b/docs/Model/VendorDirectFulfillmentShippingV1/Address.md deleted file mode 100644 index 6719410f0..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | [optional] -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code in ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Container.md b/docs/Model/VendorDirectFulfillmentShippingV1/Container.md deleted file mode 100644 index bae28c867..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Container.md +++ /dev/null @@ -1,20 +0,0 @@ -## Container - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_type** | **string** | The type of container. | -**container_identifier** | **string** | The container identifier. | -**tracking_number** | **string** | The tracking number. | [optional] -**manifest_id** | **string** | The manifest identifier. | [optional] -**manifest_date** | **string** | The date of the manifest. | [optional] -**ship_method** | **string** | The shipment method. | [optional] -**scac_code** | **string** | SCAC code required for NA VOC vendors only. | [optional] -**carrier** | **string** | Carrier required for EU VOC vendors only. | [optional] -**container_sequence_number** | **int** | An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Dimensions**](Dimensions.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Weight**](Weight.md) | | [optional] -**packed_items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackedItem[]**](PackedItem.md) | A list of packed items. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.md b/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.md deleted file mode 100644 index 525c67577..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.md +++ /dev/null @@ -1,10 +0,0 @@ -## CustomerInvoice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. | -**content** | **string** | The Base64encoded customer invoice. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.md b/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.md deleted file mode 100644 index f3e01d365..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.md +++ /dev/null @@ -1,10 +0,0 @@ -## CustomerInvoiceList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination**](Pagination.md) | | [optional] -**customer_invoices** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice[]**](CustomerInvoice.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Dimensions.md b/docs/Model/VendorDirectFulfillmentShippingV1/Dimensions.md deleted file mode 100644 index abedd3d0d..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**width** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**height** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**unit_of_measure** | **string** | The unit of measure for dimensions. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Error.md b/docs/Model/VendorDirectFulfillmentShippingV1/Error.md deleted file mode 100644 index 183bd3c69..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.md deleted file mode 100644 index d3468e4ed..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetCustomerInvoiceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice**](CustomerInvoice.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.md deleted file mode 100644 index a1904a19c..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetCustomerInvoicesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoiceList**](CustomerInvoiceList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.md deleted file mode 100644 index 178b5deb4..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPackingSlipListResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlipList**](PackingSlipList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.md deleted file mode 100644 index 12e23f181..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPackingSlipResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip**](PackingSlip.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.md deleted file mode 100644 index 3373eeebd..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShippingLabelListResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelList**](ShippingLabelList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.md deleted file mode 100644 index 85ef76da2..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShippingLabelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel**](ShippingLabel.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Item.md b/docs/Model/VendorDirectFulfillmentShippingV1/Item.md deleted file mode 100644 index a1c154b6f..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Item.md +++ /dev/null @@ -1,12 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **int** | Item Sequence Number for the item. This must be the same value as sent in order for a given item. | -**buyer_product_identifier** | **string** | Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number. | [optional] -**shipped_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.md deleted file mode 100644 index 33ad81173..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level. | -**unit_of_measure** | **string** | Unit of measure for the shipped quantity. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/LabelData.md b/docs/Model/VendorDirectFulfillmentShippingV1/LabelData.md deleted file mode 100644 index f60218758..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/LabelData.md +++ /dev/null @@ -1,13 +0,0 @@ -## LabelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_identifier** | **string** | Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level. | [optional] -**tracking_number** | **string** | Package tracking identifier from the shipping carrier. | [optional] -**ship_method** | **string** | Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation. | [optional] -**ship_method_name** | **string** | Shipping method name for internal reference. | [optional] -**content** | **string** | This field will contain the Base64encoded string of the shipment label content. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/PackedItem.md b/docs/Model/VendorDirectFulfillmentShippingV1/PackedItem.md deleted file mode 100644 index 234c40eef..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/PackedItem.md +++ /dev/null @@ -1,12 +0,0 @@ -## PackedItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **int** | Item Sequence Number for the item. This must be the same value as sent in the order for a given item. | -**buyer_product_identifier** | **string** | Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number. | [optional] -**packed_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlip.md b/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlip.md deleted file mode 100644 index 86ddaf659..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlip.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackingSlip - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the shipment that corresponds to the packing slip. | -**content** | **string** | A Base64encoded string of the packing slip PDF. | -**content_type** | **string** | The format of the file such as PDF, JPEG etc. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.md b/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.md deleted file mode 100644 index cca3dc4b6..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.md +++ /dev/null @@ -1,10 +0,0 @@ -## PackingSlipList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination**](Pagination.md) | | [optional] -**packing_slips** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip[]**](PackingSlip.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Pagination.md b/docs/Model/VendorDirectFulfillmentShippingV1/Pagination.md deleted file mode 100644 index 0d236a230..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.md deleted file mode 100644 index 80e4ee8a6..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned Identification for the party. | -**address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address**](Address.md) | | [optional] -**tax_registration_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TaxRegistrationDetails[]**](TaxRegistrationDetails.md) | Tax registration details of the entity. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.md deleted file mode 100644 index 065f983e1..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.md +++ /dev/null @@ -1,14 +0,0 @@ -## ShipmentConfirmation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number corresponding to the shipment. | -**shipment_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentDetails**](ShipmentDetails.md) | | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Item[]**](Item.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | -**containers** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]**](Container.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.md deleted file mode 100644 index 560eb1799..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -## ShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipped_date** | **string** | This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. Must be in ISO 8601 format. | -**shipment_status** | **string** | Indicate the shipment status. | -**is_priority_shipment** | **bool** | Provide the priority of the shipment. | [optional] -**vendor_order_number** | **string** | The vendor order number is a unique identifier generated by a vendor for their reference. | [optional] -**estimated_delivery_date** | **string** | Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. Must be in ISO 8601 format. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.md deleted file mode 100644 index 69560026b..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShipmentStatusUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the shipment for which to update the shipment status. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**status_update_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetails**](StatusUpdateDetails.md) | | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.md deleted file mode 100644 index 84702e4e5..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.md +++ /dev/null @@ -1,13 +0,0 @@ -## ShippingLabel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | This field will contain the Purchase Order Number for this order. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**label_format** | **string** | Format of the label. | -**label_data** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\LabelData[]**](LabelData.md) | Provides the details of the packages in this shipment. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.md deleted file mode 100644 index a3fb0067a..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShippingLabelList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination**](Pagination.md) | | [optional] -**shipping_labels** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel[]**](ShippingLabel.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.md b/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.md deleted file mode 100644 index 0a22c7b02..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShippingLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the order for which to create a shipping label. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification**](PartyIdentification.md) | | -**containers** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]**](Container.md) | A list of the packages in this shipment. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.md b/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.md deleted file mode 100644 index ebc3e8212..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.md +++ /dev/null @@ -1,14 +0,0 @@ -## StatusUpdateDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_number** | **string** | This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. | -**status_code** | **string** | Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. | -**reason_code** | **string** | Provides a reason code for the status of the package that will provide additional information about the transportation status. | -**status_date_time** | **string** | The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | -**status_location_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address**](Address.md) | | -**shipment_schedule** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetailsShipmentSchedule**](StatusUpdateDetailsShipmentSchedule.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.md b/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.md deleted file mode 100644 index cc33fc6f0..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.md +++ /dev/null @@ -1,11 +0,0 @@ -## StatusUpdateDetailsShipmentSchedule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**estimated_delivery_date_time** | **string** | Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] -**appt_window_start_date_time** | **string** | This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] -**appt_window_end_date_time** | **string** | This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.md deleted file mode 100644 index ba6d9d26c..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipmentConfirmationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_confirmations** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentConfirmation[]**](ShipmentConfirmation.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.md deleted file mode 100644 index 8380b1459..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitShipmentConfirmationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.md deleted file mode 100644 index 0e008e9bb..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipmentStatusUpdatesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_status_updates** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentStatusUpdate[]**](ShipmentStatusUpdate.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.md deleted file mode 100644 index 5d2e80709..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitShipmentStatusUpdatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.md deleted file mode 100644 index 8fb620a77..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShippingLabelsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_label_requests** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelRequest[]**](ShippingLabelRequest.md) | | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.md b/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.md deleted file mode 100644 index 17ade94a1..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitShippingLabelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.md b/docs/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.md deleted file mode 100644 index 082113ead..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | [optional] -**tax_registration_number** | **string** | Tax registration number for the party. For example, VAT ID. | -**tax_registration_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address**](Address.md) | | [optional] -**tax_registration_messages** | **string** | Tax registration message that can be used for additional tax related details. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/TransactionReference.md b/docs/Model/VendorDirectFulfillmentShippingV1/TransactionReference.md deleted file mode 100644 index b3899a7e4..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV1/Weight.md b/docs/Model/VendorDirectFulfillmentShippingV1/Weight.md deleted file mode 100644 index 5720eaba1..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV1/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit_of_measure** | **string** | The unit of measurement. | -**value** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | - -[[VendorDirectFulfillmentShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Address.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Address.md deleted file mode 100644 index 095350f2a..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | [optional] -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code in ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Container.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Container.md deleted file mode 100644 index b53ed63e5..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Container.md +++ /dev/null @@ -1,20 +0,0 @@ -## Container - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_type** | **string** | The type of container. | -**container_identifier** | **string** | The container identifier. | -**tracking_number** | **string** | The tracking number. | [optional] -**manifest_id** | **string** | The manifest identifier. | [optional] -**manifest_date** | **string** | The date of the manifest. | [optional] -**ship_method** | **string** | The shipment method. This property is required when calling the submitShipmentConfirmations operation, and optional otherwise. | [optional] -**scac_code** | **string** | SCAC code required for NA VOC vendors only. | [optional] -**carrier** | **string** | Carrier required for EU VOC vendors only. | [optional] -**container_sequence_number** | **int** | An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Dimensions**](Dimensions.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Weight**](Weight.md) | | [optional] -**packed_items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackedItem[]**](PackedItem.md) | A list of packed items. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.md deleted file mode 100644 index 6e8e8b2ee..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -## CreateShippingLabelsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**containers** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]**](Container.md) | A list of the packages in this shipment. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.md deleted file mode 100644 index 84c7e009c..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.md +++ /dev/null @@ -1,10 +0,0 @@ -## CustomerInvoice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. | -**content** | **string** | The Base64encoded customer invoice. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.md deleted file mode 100644 index 65fbed129..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.md +++ /dev/null @@ -1,10 +0,0 @@ -## CustomerInvoiceList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination**](Pagination.md) | | [optional] -**customer_invoices** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice[]**](CustomerInvoice.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.md deleted file mode 100644 index cfaaf9131..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**width** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**height** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | -**unit_of_measure** | **string** | The unit of measure for dimensions. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Error.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Error.md deleted file mode 100644 index 9edcc024c..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.md deleted file mode 100644 index 7264ec1c5..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Error[]**](Error.md) | | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Item.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Item.md deleted file mode 100644 index 23c7780c7..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Item.md +++ /dev/null @@ -1,12 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **int** | Item Sequence Number for the item. This must be the same value as sent in order for a given item. | -**buyer_product_identifier** | **string** | Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number. | [optional] -**shipped_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.md deleted file mode 100644 index bfa94dc26..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level. | -**unit_of_measure** | **string** | Unit of measure for the shipped quantity. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/LabelData.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/LabelData.md deleted file mode 100644 index c9d48b29c..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/LabelData.md +++ /dev/null @@ -1,13 +0,0 @@ -## LabelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**package_identifier** | **string** | Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level. | [optional] -**tracking_number** | **string** | Package tracking identifier from the shipping carrier. | [optional] -**ship_method** | **string** | Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation. | [optional] -**ship_method_name** | **string** | Shipping method name for internal reference. | [optional] -**content** | **string** | This field will contain the Base64encoded string of the shipment label content. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.md deleted file mode 100644 index 338fdf579..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.md +++ /dev/null @@ -1,13 +0,0 @@ -## PackedItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **int** | Item Sequence Number for the item. This must be the same value as sent in the order for a given item. | -**buyer_product_identifier** | **string** | Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. | [optional] -**piece_number** | **int** | The piece number of the item in this container. This is required when the item is split across different containers. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number. | [optional] -**packed_quantity** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity**](ItemQuantity.md) | | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.md deleted file mode 100644 index 72dcb9bed..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackingSlip - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the shipment that the packing slip is for. | -**content** | **string** | A Base64encoded string of the packing slip PDF. | -**content_type** | **string** | The format of the file such as PDF, JPEG etc. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.md deleted file mode 100644 index 16e9653c4..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.md +++ /dev/null @@ -1,10 +0,0 @@ -## PackingSlipList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination**](Pagination.md) | | [optional] -**packing_slips** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip[]**](PackingSlip.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Pagination.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Pagination.md deleted file mode 100644 index f7205348d..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.md deleted file mode 100644 index 6de85b983..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned Identification for the party. | -**address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address**](Address.md) | | [optional] -**tax_registration_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TaxRegistrationDetails[]**](TaxRegistrationDetails.md) | Tax registration details of the entity. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.md deleted file mode 100644 index 3e73faf07..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.md +++ /dev/null @@ -1,14 +0,0 @@ -## ShipmentConfirmation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number corresponding to the shipment. | -**shipment_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentDetails**](ShipmentDetails.md) | | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**items** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Item[]**](Item.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | -**containers** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]**](Container.md) | Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.md deleted file mode 100644 index b98591ae0..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -## ShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipped_date** | **string** | This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. Must be in ISO-8601 date/time format. | -**shipment_status** | **string** | Indicate the shipment status. | -**is_priority_shipment** | **bool** | Provide the priority of the shipment. | [optional] -**vendor_order_number** | **string** | The vendor order number is a unique identifier generated by a vendor for their reference. | [optional] -**estimated_delivery_date** | **string** | Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. Must be in ISO-8601 date/time format. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.md deleted file mode 100644 index 759babc39..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.md +++ /dev/null @@ -1,11 +0,0 @@ -## ShipmentSchedule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**estimated_delivery_date_time** | **string** | Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] -**appt_window_start_date_time** | **string** | This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] -**appt_window_end_date_time** | **string** | This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.md deleted file mode 100644 index ea3d9894b..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShipmentStatusUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the shipment for which to update the shipment status. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**status_update_details** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\StatusUpdateDetails**](StatusUpdateDetails.md) | | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.md deleted file mode 100644 index d1c07a557..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.md +++ /dev/null @@ -1,13 +0,0 @@ -## ShippingLabel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | This field will contain the Purchase Order Number for this order. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**label_format** | **string** | Format of the label. | -**label_data** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\LabelData[]**](LabelData.md) | Provides the details of the packages in this shipment. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.md deleted file mode 100644 index 821b81cb9..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShippingLabelList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination**](Pagination.md) | | [optional] -**shipping_labels** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel[]**](ShippingLabel.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.md deleted file mode 100644 index e4c65bbc9..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShippingLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order number of the order for which to create a shipping label. | -**selling_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification**](PartyIdentification.md) | | -**containers** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]**](Container.md) | A list of the packages in this shipment. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.md deleted file mode 100644 index 64b342344..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.md +++ /dev/null @@ -1,14 +0,0 @@ -## StatusUpdateDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tracking_number** | **string** | This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. | -**status_code** | **string** | Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. | -**reason_code** | **string** | Provides a reason code for the status of the package that will provide additional information about the transportation status. | -**status_date_time** | **string** | The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. | -**status_location_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address**](Address.md) | | -**shipment_schedule** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentSchedule**](ShipmentSchedule.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.md deleted file mode 100644 index 7716cce86..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipmentConfirmationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_confirmations** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentConfirmation[]**](ShipmentConfirmation.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.md deleted file mode 100644 index 741dac8cb..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipmentStatusUpdatesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_status_updates** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentStatusUpdate[]**](ShipmentStatusUpdate.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.md deleted file mode 100644 index cbe3e9307..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShippingLabelsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipping_label_requests** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelRequest[]**](ShippingLabelRequest.md) | | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.md deleted file mode 100644 index 036ace0e9..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | [optional] -**tax_registration_number** | **string** | Tax registration number for the party. For example, VAT ID. | -**tax_registration_address** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address**](Address.md) | | [optional] -**tax_registration_messages** | **string** | Tax registration message that can be used for additional tax related details. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md deleted file mode 100644 index 3571ae914..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentShippingV20211228/Weight.md b/docs/Model/VendorDirectFulfillmentShippingV20211228/Weight.md deleted file mode 100644 index d99fab6a1..000000000 --- a/docs/Model/VendorDirectFulfillmentShippingV20211228/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit_of_measure** | **string** | The unit of measurement. | -**value** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. | - -[[VendorDirectFulfillmentShippingV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV1/Error.md b/docs/Model/VendorDirectFulfillmentTransactionsV1/Error.md deleted file mode 100644 index 8135c629e..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentTransactionsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.md b/docs/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.md deleted file mode 100644 index 30fa651e8..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetTransactionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\TransactionStatus**](TransactionStatus.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentTransactionsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV1/Transaction.md b/docs/Model/VendorDirectFulfillmentTransactionsV1/Transaction.md deleted file mode 100644 index 3481aaabc..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV1/Transaction.md +++ /dev/null @@ -1,11 +0,0 @@ -## Transaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction. | -**status** | **string** | Current processing status of the transaction. | -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorDirectFulfillmentTransactionsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.md b/docs/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.md deleted file mode 100644 index 0bf5aa4ea..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_status** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Transaction**](Transaction.md) | | [optional] - -[[VendorDirectFulfillmentTransactionsV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Error.md b/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Error.md deleted file mode 100644 index 243285c36..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorDirectFulfillmentTransactionsV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.md b/docs/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.md deleted file mode 100644 index 2cd8a789f..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.md +++ /dev/null @@ -1,9 +0,0 @@ -## ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error[]**](Error.md) | | - -[[VendorDirectFulfillmentTransactionsV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.md b/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.md deleted file mode 100644 index 792b14130..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.md +++ /dev/null @@ -1,11 +0,0 @@ -## Transaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction. | -**status** | **string** | Current processing status of the transaction. | -**errors** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList**](ErrorList.md) | | [optional] - -[[VendorDirectFulfillmentTransactionsV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.md b/docs/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.md deleted file mode 100644 index b20e1ce87..000000000 --- a/docs/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_status** | [**\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Transaction**](Transaction.md) | | [optional] - -[[VendorDirectFulfillmentTransactionsV20211228 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/AdditionalDetails.md b/docs/Model/VendorInvoicesV1/AdditionalDetails.md deleted file mode 100644 index 7043f2044..000000000 --- a/docs/Model/VendorInvoicesV1/AdditionalDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## AdditionalDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | The type of the additional information provided by the selling party. | -**detail** | **string** | The detail of the additional information provided by the selling party. | -**language_code** | **string** | The language code of the additional information detail. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/Address.md b/docs/Model/VendorInvoicesV1/Address.md deleted file mode 100644 index 5062c3cac..000000000 --- a/docs/Model/VendorInvoicesV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of street address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | [optional] -**postal_or_zip_code** | **string** | The postal or zip code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/AllowanceDetails.md b/docs/Model/VendorInvoicesV1/AllowanceDetails.md deleted file mode 100644 index 6b9e68563..000000000 --- a/docs/Model/VendorInvoicesV1/AllowanceDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## AllowanceDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | Type of the allowance applied. | -**description** | **string** | Description of the allowance. | [optional] -**allowance_amount** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]**](TaxDetails.md) | Tax amount details applied on this allowance. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/ChargeDetails.md b/docs/Model/VendorInvoicesV1/ChargeDetails.md deleted file mode 100644 index 24e7b505f..000000000 --- a/docs/Model/VendorInvoicesV1/ChargeDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## ChargeDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | Type of the charge applied. | -**description** | **string** | Description of the charge. | [optional] -**charge_amount** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]**](TaxDetails.md) | Tax amount details applied on this charge. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/CreditNoteDetails.md b/docs/Model/VendorInvoicesV1/CreditNoteDetails.md deleted file mode 100644 index 42b45fb80..000000000 --- a/docs/Model/VendorInvoicesV1/CreditNoteDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## CreditNoteDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_invoice_number** | **string** | Original Invoice Number when sending a credit note relating to an existing invoice. One Invoice only to be processed per Credit Note. This is mandatory for AP Credit Notes. | [optional] -**debit_note_number** | **string** | Debit Note Number as generated by Amazon. Recommended for Returns and COOP Credit Notes. | [optional] -**returns_reference_number** | **string** | Identifies the Returns Notice Number. Mandatory for all Returns Credit Notes. | [optional] -**goods_return_date** | **string** | Defines a date and time according to ISO8601. | [optional] -**rma_id** | **string** | Identifies the Returned Merchandise Authorization ID, if generated. | [optional] -**coop_reference_number** | **string** | Identifies the COOP reference used for COOP agreement. Failure to provide the COOP reference number or the Debit Note number may lead to a rejection of the Credit Note. | [optional] -**consignors_reference_number** | **string** | Identifies the consignor reference number (VRET number), if generated by Amazon. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/Error.md b/docs/Model/VendorInvoicesV1/Error.md deleted file mode 100644 index 54b1947d1..000000000 --- a/docs/Model/VendorInvoicesV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/Invoice.md b/docs/Model/VendorInvoicesV1/Invoice.md deleted file mode 100644 index 28584f799..000000000 --- a/docs/Model/VendorInvoicesV1/Invoice.md +++ /dev/null @@ -1,23 +0,0 @@ -## Invoice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_type** | **string** | Identifies the type of invoice. | -**id** | **string** | Unique number relating to the charges defined in this document. This will be invoice number if the document type is Invoice or CreditNote number if the document type is Credit Note. Failure to provide this reference will result in a rejection. | -**reference_number** | **string** | An additional unique reference number used for regulatory or other purposes. | [optional] -**date** | **string** | Defines a date and time according to ISO8601. | -**remit_to_party** | [**\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**ship_from_party** | [**\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**bill_to_party** | [**\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**payment_terms** | [**\SellingPartnerApi\Model\VendorInvoicesV1\PaymentTerms**](PaymentTerms.md) | | [optional] -**invoice_total** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | -**tax_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]**](TaxDetails.md) | Total tax amount details for all line items. | [optional] -**additional_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\AdditionalDetails[]**](AdditionalDetails.md) | Additional details provided by the selling party, for tax related or other purposes. | [optional] -**charge_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]**](ChargeDetails.md) | Total charge amount details for all line items. | [optional] -**allowance_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]**](AllowanceDetails.md) | Total allowance amount details for all line items. | [optional] -**items** | [**\SellingPartnerApi\Model\VendorInvoicesV1\InvoiceItem[]**](InvoiceItem.md) | The list of invoice items. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/InvoiceItem.md b/docs/Model/VendorInvoicesV1/InvoiceItem.md deleted file mode 100644 index e84729a49..000000000 --- a/docs/Model/VendorInvoicesV1/InvoiceItem.md +++ /dev/null @@ -1,19 +0,0 @@ -## InvoiceItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **int** | Unique number related to this line item. | -**amazon_product_identifier** | **string** | Amazon Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identifier of the item. Should be the same as was provided in the purchase order. | [optional] -**invoiced_quantity** | [**\SellingPartnerApi\Model\VendorInvoicesV1\ItemQuantity**](ItemQuantity.md) | | -**net_cost** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | -**purchase_order_number** | **string** | The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote. | [optional] -**hsn_code** | **string** | HSN Tax code. The HSN number cannot contain alphabets. | [optional] -**credit_note_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\CreditNoteDetails**](CreditNoteDetails.md) | | [optional] -**tax_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]**](TaxDetails.md) | Individual tax details per line item. | [optional] -**charge_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]**](ChargeDetails.md) | Individual charge details per line item. | [optional] -**allowance_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]**](AllowanceDetails.md) | Individual allowance details per line item. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/ItemQuantity.md b/docs/Model/VendorInvoicesV1/ItemQuantity.md deleted file mode 100644 index 41a8ace6c..000000000 --- a/docs/Model/VendorInvoicesV1/ItemQuantity.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Quantity of an item. This value should not be zero. | -**unit_of_measure** | **string** | Unit of measure for the quantity. | -**unit_size** | **int** | The case size, if the unit of measure value is Cases. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/Money.md b/docs/Model/VendorInvoicesV1/Money.md deleted file mode 100644 index ac8e30bc2..000000000 --- a/docs/Model/VendorInvoicesV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three-digit currency code in ISO 4217 format. | [optional] -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/PartyIdentification.md b/docs/Model/VendorInvoicesV1/PartyIdentification.md deleted file mode 100644 index 19abae12d..000000000 --- a/docs/Model/VendorInvoicesV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. | -**address** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Address**](Address.md) | | [optional] -**tax_registration_details** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TaxRegistrationDetails[]**](TaxRegistrationDetails.md) | Tax registration details of the party. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/PaymentTerms.md b/docs/Model/VendorInvoicesV1/PaymentTerms.md deleted file mode 100644 index 15bac7cd0..000000000 --- a/docs/Model/VendorInvoicesV1/PaymentTerms.md +++ /dev/null @@ -1,12 +0,0 @@ -## PaymentTerms - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | The payment term type for the invoice. | [optional] -**discount_percent** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | [optional] -**discount_due_days** | **float** | The number of calendar days from the Base date (Invoice date) until the discount is no longer valid. | [optional] -**net_due_days** | **float** | The number of calendar days from the base date (invoice date) until the total amount on the invoice is due. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/SubmitInvoicesRequest.md b/docs/Model/VendorInvoicesV1/SubmitInvoicesRequest.md deleted file mode 100644 index 3f18ece07..000000000 --- a/docs/Model/VendorInvoicesV1/SubmitInvoicesRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitInvoicesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoices** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Invoice[]**](Invoice.md) | | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/SubmitInvoicesResponse.md b/docs/Model/VendorInvoicesV1/SubmitInvoicesResponse.md deleted file mode 100644 index 9d51de42c..000000000 --- a/docs/Model/VendorInvoicesV1/SubmitInvoicesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitInvoicesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorInvoicesV1\TransactionId**](TransactionId.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/TaxDetails.md b/docs/Model/VendorInvoicesV1/TaxDetails.md deleted file mode 100644 index c5566d5d5..000000000 --- a/docs/Model/VendorInvoicesV1/TaxDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -## TaxDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_type** | **string** | Type of the tax applied. | -**tax_rate** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | [optional] -**tax_amount** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | -**taxable_amount** | [**\SellingPartnerApi\Model\VendorInvoicesV1\Money**](Money.md) | | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/TaxRegistrationDetails.md b/docs/Model/VendorInvoicesV1/TaxRegistrationDetails.md deleted file mode 100644 index ad6efc952..000000000 --- a/docs/Model/VendorInvoicesV1/TaxRegistrationDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | The tax registration type for the entity. | -**tax_registration_number** | **string** | The tax registration number for the entity. For example, VAT ID, Consumption Tax ID. | - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorInvoicesV1/TransactionId.md b/docs/Model/VendorInvoicesV1/TransactionId.md deleted file mode 100644 index 9e4b63a4a..000000000 --- a/docs/Model/VendorInvoicesV1/TransactionId.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorInvoicesV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/AcknowledgementStatusDetails.md b/docs/Model/VendorOrdersV1/AcknowledgementStatusDetails.md deleted file mode 100644 index 05284aeb8..000000000 --- a/docs/Model/VendorOrdersV1/AcknowledgementStatusDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## AcknowledgementStatusDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acknowledgement_date** | **string** | The date when the line item was confirmed by vendor. Must be in ISO-8601 date/time format. | [optional] -**accepted_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**rejected_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/Address.md b/docs/Model/VendorOrdersV1/Address.md deleted file mode 100644 index 02ebe977e..000000000 --- a/docs/Model/VendorOrdersV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional address information, if required. | [optional] -**address_line3** | **string** | Additional address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | [optional] -**postal_code** | **string** | The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/Error.md b/docs/Model/VendorOrdersV1/Error.md deleted file mode 100644 index 51f4f686b..000000000 --- a/docs/Model/VendorOrdersV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/GetPurchaseOrderResponse.md b/docs/Model/VendorOrdersV1/GetPurchaseOrderResponse.md deleted file mode 100644 index 9963b78a6..000000000 --- a/docs/Model/VendorOrdersV1/GetPurchaseOrderResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPurchaseOrderResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorOrdersV1\Order**](Order.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/GetPurchaseOrdersResponse.md b/docs/Model/VendorOrdersV1/GetPurchaseOrdersResponse.md deleted file mode 100644 index 1a60053e6..000000000 --- a/docs/Model/VendorOrdersV1/GetPurchaseOrdersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPurchaseOrdersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderList**](OrderList.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.md b/docs/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.md deleted file mode 100644 index aeae1cba0..000000000 --- a/docs/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetPurchaseOrdersStatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderListStatus**](OrderListStatus.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/ImportDetails.md b/docs/Model/VendorOrdersV1/ImportDetails.md deleted file mode 100644 index 2e71fa100..000000000 --- a/docs/Model/VendorOrdersV1/ImportDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -## ImportDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**method_of_payment** | **string** | If the recipient requests, contains the shipment method of payment. This is for import PO's only. | [optional] -**international_commercial_terms** | **string** | Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only. | [optional] -**port_of_delivery** | **string** | The port where goods on an import purchase order must be delivered by the vendor. This should only be specified when the internationalCommercialTerms is FOB. | [optional] -**import_containers** | **string** | Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if the shipment has multiple containers. HC signifies a high-capacity container. Free-text field, limited to 64 characters. The format will be a comma-delimited list containing values of the type: $NUMBER_OF_CONTAINERS_OF_THIS_TYPE-$CONTAINER_TYPE. The list of values for the container type is: 40'(40-foot container), 40'HC (40-foot high-capacity container), 45', 45'HC, 30', 30'HC, 20', 20'HC. | [optional] -**shipping_instructions** | **string** | Special instructions regarding the shipment. This field is for import purchase orders. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/ItemQuantity.md b/docs/Model/VendorOrdersV1/ItemQuantity.md deleted file mode 100644 index 7aadc9f22..000000000 --- a/docs/Model/VendorOrdersV1/ItemQuantity.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Acknowledged quantity. This value should not be zero. | [optional] -**unit_of_measure** | **string** | Unit of measure for the acknowledged quantity. | [optional] -**unit_size** | **int** | The case size, in the event that we ordered using cases. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/Money.md b/docs/Model/VendorOrdersV1/Money.md deleted file mode 100644 index 747889dbb..000000000 --- a/docs/Model/VendorOrdersV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. String of length 3. | [optional] -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/Order.md b/docs/Model/VendorOrdersV1/Order.md deleted file mode 100644 index 5ed23f1e1..000000000 --- a/docs/Model/VendorOrdersV1/Order.md +++ /dev/null @@ -1,11 +0,0 @@ -## Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. | -**purchase_order_state** | **string** | This field will contain the current state of the purchase order. | -**order_details** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderDetails**](OrderDetails.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderAcknowledgement.md b/docs/Model/VendorOrdersV1/OrderAcknowledgement.md deleted file mode 100644 index e2cbe03f6..000000000 --- a/docs/Model/VendorOrdersV1/OrderAcknowledgement.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderAcknowledgement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number. Formatting Notes: 8-character alpha-numeric code. | -**selling_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**acknowledgement_date** | **string** | The date and time when the purchase order is acknowledged, in ISO-8601 date/time format. | -**items** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgementItem[]**](OrderAcknowledgementItem.md) | A list of the items being acknowledged with associated details. | - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderAcknowledgementItem.md b/docs/Model/VendorOrdersV1/OrderAcknowledgementItem.md deleted file mode 100644 index c4f76efa7..000000000 --- a/docs/Model/VendorOrdersV1/OrderAcknowledgementItem.md +++ /dev/null @@ -1,16 +0,0 @@ -## OrderAcknowledgementItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Line item sequence number for the item. | [optional] -**amazon_product_identifier** | **string** | Amazon Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | -**net_cost** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] -**list_price** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] -**discount_multiplier** | **string** | The discount multiplier that should be applied to the price if a vendor sells books with a list price. This is a multiplier factor to arrive at a final discounted price. A multiplier of .90 would be the factor if a 10% discount is given. | [optional] -**item_acknowledgements** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItemAcknowledgement[]**](OrderItemAcknowledgement.md) | This is used to indicate acknowledged quantity. | - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderDetails.md b/docs/Model/VendorOrdersV1/OrderDetails.md deleted file mode 100644 index 338fd4b9a..000000000 --- a/docs/Model/VendorOrdersV1/OrderDetails.md +++ /dev/null @@ -1,22 +0,0 @@ -## OrderDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_date** | **string** | The date the purchase order was placed. Must be in ISO-8601 date/time format. | -**purchase_order_changed_date** | **string** | The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than 'purchaseOrderDate'. This means the PO data was changed on that date and vendors are required to fulfill the updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date/time format. | [optional] -**purchase_order_state_changed_date** | **string** | The date when current purchase order state was changed. Current purchase order state is available in the field 'purchaseOrderState'. Must be in ISO-8601 date/time format. | -**purchase_order_type** | **string** | Type of purchase order. | [optional] -**import_details** | [**\SellingPartnerApi\Model\VendorOrdersV1\ImportDetails**](ImportDetails.md) | | [optional] -**deal_code** | **string** | If requested by the recipient, this field will contain a promotional/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order. | [optional] -**payment_method** | **string** | Payment method used. | [optional] -**buying_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**ship_to_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**bill_to_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**ship_window** | **string** | Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). | [optional] -**delivery_window** | **string** | Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). | [optional] -**items** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItem[]**](OrderItem.md) | A list of items in this purchase order. | - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItem.md b/docs/Model/VendorOrdersV1/OrderItem.md deleted file mode 100644 index aade38570..000000000 --- a/docs/Model/VendorOrdersV1/OrderItem.md +++ /dev/null @@ -1,15 +0,0 @@ -## OrderItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. | -**amazon_product_identifier** | **string** | Amazon Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | -**is_back_order_allowed** | **bool** | When true, we will accept backorder confirmations for this item. | -**net_cost** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] -**list_price** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItemAcknowledgement.md b/docs/Model/VendorOrdersV1/OrderItemAcknowledgement.md deleted file mode 100644 index da4cf3291..000000000 --- a/docs/Model/VendorOrdersV1/OrderItemAcknowledgement.md +++ /dev/null @@ -1,13 +0,0 @@ -## OrderItemAcknowledgement - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acknowledgement_code** | **string** | This indicates the acknowledgement code. | -**acknowledged_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | -**scheduled_ship_date** | **string** | Estimated ship date per line item. Must be in ISO-8601 date/time format. | [optional] -**scheduled_delivery_date** | **string** | Estimated delivery date per line item. Must be in ISO-8601 date/time format. | [optional] -**rejection_reason** | **string** | Indicates the reason for rejection. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItemStatus.md b/docs/Model/VendorOrdersV1/OrderItemStatus.md deleted file mode 100644 index 5372417ca..000000000 --- a/docs/Model/VendorOrdersV1/OrderItemStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -## OrderItemStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. | -**buyer_product_identifier** | **string** | Buyer's Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. | [optional] -**net_cost** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] -**list_price** | [**\SellingPartnerApi\Model\VendorOrdersV1\Money**](Money.md) | | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusOrderedQuantity**](OrderItemStatusOrderedQuantity.md) | | [optional] -**acknowledgement_status** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusAcknowledgementStatus**](OrderItemStatusAcknowledgementStatus.md) | | [optional] -**receiving_status** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusReceivingStatus**](OrderItemStatusReceivingStatus.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.md b/docs/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.md deleted file mode 100644 index 20654d765..000000000 --- a/docs/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -## OrderItemStatusAcknowledgementStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**confirmation_status** | **string** | Confirmation status of line item. | [optional] -**accepted_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**rejected_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**acknowledgement_status_details** | [**\SellingPartnerApi\Model\VendorOrdersV1\AcknowledgementStatusDetails[]**](AcknowledgementStatusDetails.md) | Details of item quantity confirmed. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.md b/docs/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.md deleted file mode 100644 index 188b93d9d..000000000 --- a/docs/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderItemStatusOrderedQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**ordered_quantity_details** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderedQuantityDetails[]**](OrderedQuantityDetails.md) | Details of item quantity ordered. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.md b/docs/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.md deleted file mode 100644 index 00eb9ebc5..000000000 --- a/docs/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -## OrderItemStatusReceivingStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**receive_status** | **string** | Receive status of the line item. | [optional] -**received_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**last_receive_date** | **string** | The date when the most recent item was received at the buyer's warehouse. Must be in ISO-8601 date/time format. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderList.md b/docs/Model/VendorOrdersV1/OrderList.md deleted file mode 100644 index f5c4da064..000000000 --- a/docs/Model/VendorOrdersV1/OrderList.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorOrdersV1\Pagination**](Pagination.md) | | [optional] -**orders** | [**\SellingPartnerApi\Model\VendorOrdersV1\Order[]**](Order.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderListStatus.md b/docs/Model/VendorOrdersV1/OrderListStatus.md deleted file mode 100644 index dfbd2d5aa..000000000 --- a/docs/Model/VendorOrdersV1/OrderListStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -## OrderListStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorOrdersV1\Pagination**](Pagination.md) | | [optional] -**orders_status** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderStatus[]**](OrderStatus.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderStatus.md b/docs/Model/VendorOrdersV1/OrderStatus.md deleted file mode 100644 index 5dcdb1c6b..000000000 --- a/docs/Model/VendorOrdersV1/OrderStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -## OrderStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The buyer's purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. | -**purchase_order_status** | **string** | The status of the buyer's purchase order for this order. | -**purchase_order_date** | **string** | The date the purchase order was placed. Must be in ISO-8601 date/time format. | -**last_updated_date** | **string** | The date when the purchase order was last updated. Must be in ISO-8601 date/time format. | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification**](PartyIdentification.md) | | -**item_status** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatus[]**](OrderItemStatus.md) | Detailed description of items order status. | - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/OrderedQuantityDetails.md b/docs/Model/VendorOrdersV1/OrderedQuantityDetails.md deleted file mode 100644 index 32a9babd3..000000000 --- a/docs/Model/VendorOrdersV1/OrderedQuantityDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## OrderedQuantityDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**updated_date** | **string** | The date when the line item quantity was updated by buyer. Must be in ISO-8601 date/time format. | [optional] -**ordered_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**cancelled_quantity** | [**\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity**](ItemQuantity.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/Pagination.md b/docs/Model/VendorOrdersV1/Pagination.md deleted file mode 100644 index 1321f661a..000000000 --- a/docs/Model/VendorOrdersV1/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more purchase order items to return. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/PartyIdentification.md b/docs/Model/VendorOrdersV1/PartyIdentification.md deleted file mode 100644 index eaf9fc45e..000000000 --- a/docs/Model/VendorOrdersV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**party_id** | **string** | Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. | -**address** | [**\SellingPartnerApi\Model\VendorOrdersV1\Address**](Address.md) | | [optional] -**tax_info** | [**\SellingPartnerApi\Model\VendorOrdersV1\TaxRegistrationDetails**](TaxRegistrationDetails.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/SubmitAcknowledgementRequest.md b/docs/Model/VendorOrdersV1/SubmitAcknowledgementRequest.md deleted file mode 100644 index a99d79470..000000000 --- a/docs/Model/VendorOrdersV1/SubmitAcknowledgementRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitAcknowledgementRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acknowledgements** | [**\SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgement[]**](OrderAcknowledgement.md) | | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/SubmitAcknowledgementResponse.md b/docs/Model/VendorOrdersV1/SubmitAcknowledgementResponse.md deleted file mode 100644 index 5b0edf73f..000000000 --- a/docs/Model/VendorOrdersV1/SubmitAcknowledgementResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitAcknowledgementResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorOrdersV1\TransactionId**](TransactionId.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorOrdersV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/TaxRegistrationDetails.md b/docs/Model/VendorOrdersV1/TaxRegistrationDetails.md deleted file mode 100644 index 585f12382..000000000 --- a/docs/Model/VendorOrdersV1/TaxRegistrationDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | -**tax_registration_number** | **string** | Tax registration number for the entity. For example, VAT ID. | - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorOrdersV1/TransactionId.md b/docs/Model/VendorOrdersV1/TransactionId.md deleted file mode 100644 index 2c13e27b1..000000000 --- a/docs/Model/VendorOrdersV1/TransactionId.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorOrdersV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Address.md b/docs/Model/VendorShippingV1/Address.md deleted file mode 100644 index d13f6924d..000000000 --- a/docs/Model/VendorShippingV1/Address.md +++ /dev/null @@ -1,19 +0,0 @@ -## Address - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the person, business or institution at that address. | -**address_line1** | **string** | First line of the address. | -**address_line2** | **string** | Additional street address information, if required. | [optional] -**address_line3** | **string** | Additional street address information, if required. | [optional] -**city** | **string** | The city where the person, business or institution is located. | [optional] -**county** | **string** | The county where person, business or institution is located. | [optional] -**district** | **string** | The district where person, business or institution is located. | [optional] -**state_or_region** | **string** | The state or region where person, business or institution is located. | [optional] -**postal_code** | **string** | The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. | [optional] -**country_code** | **string** | The two digit country code in ISO 3166-1 alpha-2 format. | -**phone** | **string** | The phone number of the person, business or institution located at that address. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/CarrierDetails.md b/docs/Model/VendorShippingV1/CarrierDetails.md deleted file mode 100644 index 8740fe943..000000000 --- a/docs/Model/VendorShippingV1/CarrierDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -## CarrierDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The field is used to represent the carrier used for performing the shipment. | [optional] -**code** | **string** | Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). | [optional] -**phone** | **string** | The field is used to represent the Carrier contact number. | [optional] -**email** | **string** | The field is used to represent the carrier Email id. | [optional] -**shipment_reference_number** | **string** | The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Carton.md b/docs/Model/VendorShippingV1/Carton.md deleted file mode 100644 index e5ad85ff3..000000000 --- a/docs/Model/VendorShippingV1/Carton.md +++ /dev/null @@ -1,14 +0,0 @@ -## Carton - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carton_identifiers** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]**](ContainerIdentification.md) | A list of carton identifiers. | [optional] -**carton_sequence_number** | **string** | Carton sequence number for the carton. The first carton will be 001, the second 002, and so on. This number is used as a reference to refer to this carton from the pallet level. | -**dimensions** | [**\SellingPartnerApi\Model\VendorShippingV1\Dimensions**](Dimensions.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**tracking_number** | **string** | This is required to be provided for every carton in the small parcel shipments. | [optional] -**items** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]**](ContainerItem.md) | A list of container item details. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/CartonReferenceDetails.md b/docs/Model/VendorShippingV1/CartonReferenceDetails.md deleted file mode 100644 index 512270f1c..000000000 --- a/docs/Model/VendorShippingV1/CartonReferenceDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## CartonReferenceDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**carton_count** | **int** | Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet. | [optional] -**carton_reference_numbers** | **string[]** | Array of reference numbers for the carton that are part of this pallet/shipment. Please provide the cartonSequenceNumber from the 'cartons' segment to refer to that carton's details here. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/CollectFreightPickupDetails.md b/docs/Model/VendorShippingV1/CollectFreightPickupDetails.md deleted file mode 100644 index 09d581a5b..000000000 --- a/docs/Model/VendorShippingV1/CollectFreightPickupDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## CollectFreightPickupDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requested_pick_up** | **string** | Date on which the items can be picked up from vendor warehouse by Buyer used for WePay/Collect vendors. | [optional] -**scheduled_pick_up** | **string** | Date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay/Collect vendors. | [optional] -**carrier_assignment_date** | **string** | Date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay/Collect vendors. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ContainerIdentification.md b/docs/Model/VendorShippingV1/ContainerIdentification.md deleted file mode 100644 index 2ccf78587..000000000 --- a/docs/Model/VendorShippingV1/ContainerIdentification.md +++ /dev/null @@ -1,10 +0,0 @@ -## ContainerIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_identification_type** | **string** | The container identification type. | -**container_identification_number** | **string** | Container identification number that adheres to the definition of the container identification type. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ContainerItem.md b/docs/Model/VendorShippingV1/ContainerItem.md deleted file mode 100644 index f05c16281..000000000 --- a/docs/Model/VendorShippingV1/ContainerItem.md +++ /dev/null @@ -1,11 +0,0 @@ -## ContainerItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_reference** | **string** | The reference number for the item. Please provide the itemSequenceNumber from the 'items' segment to refer to that item's details here. | -**shipped_quantity** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity**](ItemQuantity.md) | | -**item_details** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemDetails**](ItemDetails.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ContainerSequenceNumbers.md b/docs/Model/VendorShippingV1/ContainerSequenceNumbers.md deleted file mode 100644 index 8b1b82f17..000000000 --- a/docs/Model/VendorShippingV1/ContainerSequenceNumbers.md +++ /dev/null @@ -1,9 +0,0 @@ -## ContainerSequenceNumbers - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_sequence_number** | **string** | A list of containers shipped | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Containers.md b/docs/Model/VendorShippingV1/Containers.md deleted file mode 100644 index 0ae308db3..000000000 --- a/docs/Model/VendorShippingV1/Containers.md +++ /dev/null @@ -1,18 +0,0 @@ -## Containers - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_type** | **string** | The type of container. | -**container_sequence_number** | **string** | An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. | [optional] -**container_identifiers** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]**](ContainerIdentification.md) | A list of carton identifiers. | -**tracking_number** | **string** | The tracking number used for identifying the shipment. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\VendorShippingV1\Dimensions**](Dimensions.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**tier** | **int** | Number of layers per pallet. | [optional] -**block** | **int** | Number of cartons per layer on the pallet. | [optional] -**inner_containers_details** | [**\SellingPartnerApi\Model\VendorShippingV1\InnerContainersDetails**](InnerContainersDetails.md) | | [optional] -**packed_items** | [**\SellingPartnerApi\Model\VendorShippingV1\PackedItems[]**](PackedItems.md) | A list of packed items. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Dimensions.md b/docs/Model/VendorShippingV1/Dimensions.md deleted file mode 100644 index c33dd50af..000000000 --- a/docs/Model/VendorShippingV1/Dimensions.md +++ /dev/null @@ -1,12 +0,0 @@ -## Dimensions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**length** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | -**width** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | -**height** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | -**unit_of_measure** | **string** | The unit of measure for dimensions. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Duration.md b/docs/Model/VendorShippingV1/Duration.md deleted file mode 100644 index 72573d75b..000000000 --- a/docs/Model/VendorShippingV1/Duration.md +++ /dev/null @@ -1,10 +0,0 @@ -## Duration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**duration_unit** | **string** | Unit for duration. | -**duration_value** | **int** | Value for the duration in terms of the durationUnit. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Error.md b/docs/Model/VendorShippingV1/Error.md deleted file mode 100644 index 97ace16c8..000000000 --- a/docs/Model/VendorShippingV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Expiry.md b/docs/Model/VendorShippingV1/Expiry.md deleted file mode 100644 index 8a3e667e3..000000000 --- a/docs/Model/VendorShippingV1/Expiry.md +++ /dev/null @@ -1,11 +0,0 @@ -## Expiry - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**manufacturer_date** | **string** | Production, packaging or assembly date determined by the manufacturer. Its meaning is determined based on the trade item context. | [optional] -**expiry_date** | **string** | The date that determines the limit of consumption or use of a product. Its meaning is determined based on the trade item context. | [optional] -**expiry_after_duration** | [**\SellingPartnerApi\Model\VendorShippingV1\Duration**](Duration.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/GetShipmentDetailsResponse.md b/docs/Model/VendorShippingV1/GetShipmentDetailsResponse.md deleted file mode 100644 index 9be757782..000000000 --- a/docs/Model/VendorShippingV1/GetShipmentDetailsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorShippingV1\ShipmentDetails**](ShipmentDetails.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/GetShipmentLabels.md b/docs/Model/VendorShippingV1/GetShipmentLabels.md deleted file mode 100644 index 28bff896f..000000000 --- a/docs/Model/VendorShippingV1/GetShipmentLabels.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetShipmentLabels - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorShippingV1\TransportationLabels**](TransportationLabels.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ImportDetails.md b/docs/Model/VendorShippingV1/ImportDetails.md deleted file mode 100644 index 44b71e9dd..000000000 --- a/docs/Model/VendorShippingV1/ImportDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## ImportDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**method_of_payment** | **string** | This is used for import purchase orders only. If the recipient requests, this field will contain the shipment method of payment. | [optional] -**seal_number** | **string** | The container's seal number. | [optional] -**route** | [**\SellingPartnerApi\Model\VendorShippingV1\Route**](Route.md) | | [optional] -**import_containers** | **string** | Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if shipment has multiple containers. | [optional] -**billable_weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**estimated_ship_by_date** | **string** | Date on which the shipment is expected to be shipped. This value should not be in the past and not more than 60 days out in the future. | [optional] -**handling_instructions** | **string** | Identification of the instructions on how specified item/carton/pallet should be handled. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/InnerContainersDetails.md b/docs/Model/VendorShippingV1/InnerContainersDetails.md deleted file mode 100644 index 6f3fc423d..000000000 --- a/docs/Model/VendorShippingV1/InnerContainersDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## InnerContainersDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container_count** | **int** | Total containers as part of the shipment | [optional] -**container_sequence_numbers** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerSequenceNumbers[]**](ContainerSequenceNumbers.md) | Container sequence numbers that are involved in this shipment. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Item.md b/docs/Model/VendorShippingV1/Item.md deleted file mode 100644 index e7dc6037b..000000000 --- a/docs/Model/VendorShippingV1/Item.md +++ /dev/null @@ -1,13 +0,0 @@ -## Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | -**amazon_product_identifier** | **string** | Buyer Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] -**shipped_quantity** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity**](ItemQuantity.md) | | -**item_details** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemDetails**](ItemDetails.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ItemDetails.md b/docs/Model/VendorShippingV1/ItemDetails.md deleted file mode 100644 index 616f34dc6..000000000 --- a/docs/Model/VendorShippingV1/ItemDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -## ItemDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. | [optional] -**lot_number** | **string** | The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. | [optional] -**expiry** | [**\SellingPartnerApi\Model\VendorShippingV1\Expiry**](Expiry.md) | | [optional] -**maximum_retail_price** | [**\SellingPartnerApi\Model\VendorShippingV1\Money**](Money.md) | | [optional] -**handling_code** | **string** | Identification of the instructions on how specified item/carton/pallet should be handled. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ItemQuantity.md b/docs/Model/VendorShippingV1/ItemQuantity.md deleted file mode 100644 index 5a0dff0fe..000000000 --- a/docs/Model/VendorShippingV1/ItemQuantity.md +++ /dev/null @@ -1,11 +0,0 @@ -## ItemQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. | -**unit_of_measure** | **string** | Unit of measure for the shipped quantity. | -**unit_size** | **int** | The case size, in the event that we ordered using cases. Otherwise, 1. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/LabelData.md b/docs/Model/VendorShippingV1/LabelData.md deleted file mode 100644 index 0b21a0bd3..000000000 --- a/docs/Model/VendorShippingV1/LabelData.md +++ /dev/null @@ -1,13 +0,0 @@ -## LabelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_sequence_number** | **int** | Label list sequence number | [optional] -**label_format** | **string** | Type of the label format like PDF | [optional] -**carrier_code** | **string** | Unique identification for the carrier like UPS,DHL,USPS..etc | [optional] -**tracking_id** | **string** | Tracking Id for the transportation. | [optional] -**label** | **string** | Label created as part of the transportation and it is base64 encoded | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Location.md b/docs/Model/VendorShippingV1/Location.md deleted file mode 100644 index 9473618a3..000000000 --- a/docs/Model/VendorShippingV1/Location.md +++ /dev/null @@ -1,11 +0,0 @@ -## Location - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | Type of location identification. | [optional] -**location_code** | **string** | Location code. | [optional] -**country_code** | **string** | The two digit country code. In ISO 3166-1 alpha-2 format. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Money.md b/docs/Model/VendorShippingV1/Money.md deleted file mode 100644 index 7e21ac731..000000000 --- a/docs/Model/VendorShippingV1/Money.md +++ /dev/null @@ -1,10 +0,0 @@ -## Money - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency_code** | **string** | Three digit currency code in ISO 4217 format. | -**amount** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PackageItemDetails.md b/docs/Model/VendorShippingV1/PackageItemDetails.md deleted file mode 100644 index 5d110e790..000000000 --- a/docs/Model/VendorShippingV1/PackageItemDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackageItemDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. | [optional] -**lot_number** | **string** | The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. | [optional] -**expiry** | [**\SellingPartnerApi\Model\VendorShippingV1\Expiry**](Expiry.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PackedItems.md b/docs/Model/VendorShippingV1/PackedItems.md deleted file mode 100644 index 7efb03b7b..000000000 --- a/docs/Model/VendorShippingV1/PackedItems.md +++ /dev/null @@ -1,13 +0,0 @@ -## PackedItems - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | [optional] -**buyer_product_identifier** | **string** | Buyer Standard Identification Number (ASIN) of an item. | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] -**packed_quantity** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity**](ItemQuantity.md) | | [optional] -**item_details** | [**\SellingPartnerApi\Model\VendorShippingV1\PackageItemDetails**](PackageItemDetails.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PackedQuantity.md b/docs/Model/VendorShippingV1/PackedQuantity.md deleted file mode 100644 index 4731252c1..000000000 --- a/docs/Model/VendorShippingV1/PackedQuantity.md +++ /dev/null @@ -1,11 +0,0 @@ -## PackedQuantity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. | -**unit_of_measure** | **string** | Unit of measure for the shipped quantity. | -**unit_size** | **int** | The case size, in the event that we ordered using cases. Otherwise, 1. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Pagination.md b/docs/Model/VendorShippingV1/Pagination.md deleted file mode 100644 index 396bb3b5f..000000000 --- a/docs/Model/VendorShippingV1/Pagination.md +++ /dev/null @@ -1,9 +0,0 @@ -## Pagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_token** | **string** | A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Pallet.md b/docs/Model/VendorShippingV1/Pallet.md deleted file mode 100644 index 7be176c89..000000000 --- a/docs/Model/VendorShippingV1/Pallet.md +++ /dev/null @@ -1,15 +0,0 @@ -## Pallet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pallet_identifiers** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]**](ContainerIdentification.md) | A list of pallet identifiers. | -**tier** | **int** | Number of layers per pallet. Only applicable to container type Pallet. | [optional] -**block** | **int** | Number of cartons per layer on the pallet. Only applicable to container type Pallet. | [optional] -**dimensions** | [**\SellingPartnerApi\Model\VendorShippingV1\Dimensions**](Dimensions.md) | | [optional] -**weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**carton_reference_details** | [**\SellingPartnerApi\Model\VendorShippingV1\CartonReferenceDetails**](CartonReferenceDetails.md) | | [optional] -**items** | [**\SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]**](ContainerItem.md) | A list of container item details. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PartyIdentification.md b/docs/Model/VendorShippingV1/PartyIdentification.md deleted file mode 100644 index a594ce0d6..000000000 --- a/docs/Model/VendorShippingV1/PartyIdentification.md +++ /dev/null @@ -1,11 +0,0 @@ -## PartyIdentification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | [**\SellingPartnerApi\Model\VendorShippingV1\Address**](Address.md) | | [optional] -**party_id** | **string** | Assigned identification for the party. | -**tax_registration_details** | [**\SellingPartnerApi\Model\VendorShippingV1\TaxRegistrationDetails[]**](TaxRegistrationDetails.md) | Tax registration details of the entity. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PurchaseOrderItemDetails.md b/docs/Model/VendorShippingV1/PurchaseOrderItemDetails.md deleted file mode 100644 index a1f98186e..000000000 --- a/docs/Model/VendorShippingV1/PurchaseOrderItemDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -## PurchaseOrderItemDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maximum_retail_price** | [**\SellingPartnerApi\Model\VendorShippingV1\Money**](Money.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PurchaseOrderItems.md b/docs/Model/VendorShippingV1/PurchaseOrderItems.md deleted file mode 100644 index 955a60577..000000000 --- a/docs/Model/VendorShippingV1/PurchaseOrderItems.md +++ /dev/null @@ -1,13 +0,0 @@ -## PurchaseOrderItems - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_sequence_number** | **string** | Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. | -**buyer_product_identifier** | **string** | Amazon Standard Identification Number (ASIN) for a SKU | [optional] -**vendor_product_identifier** | **string** | The vendor selected product identification of the item. Should be the same as was sent in the purchase order. | [optional] -**shipped_quantity** | [**\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity**](ItemQuantity.md) | | -**maximum_retail_price** | [**\SellingPartnerApi\Model\VendorShippingV1\Money**](Money.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/PurchaseOrders.md b/docs/Model/VendorShippingV1/PurchaseOrders.md deleted file mode 100644 index be12e93f3..000000000 --- a/docs/Model/VendorShippingV1/PurchaseOrders.md +++ /dev/null @@ -1,12 +0,0 @@ -## PurchaseOrders - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **string** | Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. | [optional] -**purchase_order_date** | **string** | Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. | [optional] -**ship_window** | **string** | Date range in which shipment is expected for these purchase orders. | [optional] -**items** | [**\SellingPartnerApi\Model\VendorShippingV1\PurchaseOrderItems[]**](PurchaseOrderItems.md) | A list of the items that are associated to the PO in this transport and their associated details. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Route.md b/docs/Model/VendorShippingV1/Route.md deleted file mode 100644 index 345278dc7..000000000 --- a/docs/Model/VendorShippingV1/Route.md +++ /dev/null @@ -1,9 +0,0 @@ -## Route - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stops** | [**\SellingPartnerApi\Model\VendorShippingV1\Stop[]**](Stop.md) | | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Shipment.md b/docs/Model/VendorShippingV1/Shipment.md deleted file mode 100644 index 0f5a7e17b..000000000 --- a/docs/Model/VendorShippingV1/Shipment.md +++ /dev/null @@ -1,28 +0,0 @@ -## Shipment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vendor_shipment_identifier** | **string** | Unique Transportation ID created by Vendor (Should not be used over the last 365 days). | -**transaction_type** | **string** | Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. | -**buyer_reference_number** | **string** | The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. | [optional] -**transaction_date** | **string** | Date on which the transportation request was submitted. | -**current_shipment_status** | **string** | Indicates the current shipment status. | [optional] -**currentshipment_status_date** | **string** | Date and time when the last status was updated. | [optional] -**shipment_status_details** | [**\SellingPartnerApi\Model\VendorShippingV1\ShipmentStatusDetails[]**](ShipmentStatusDetails.md) | Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response. | [optional] -**shipment_create_date** | **string** | The date and time of the shipment request created by vendor. | [optional] -**shipment_confirm_date** | **string** | The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. | [optional] -**package_label_create_date** | **string** | The date and time of the package label created for the shipment by buyer. | [optional] -**shipment_freight_term** | **string** | Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**shipment_measurements** | [**\SellingPartnerApi\Model\VendorShippingV1\TransportShipmentMeasurements**](TransportShipmentMeasurements.md) | | [optional] -**collect_freight_pickup_details** | [**\SellingPartnerApi\Model\VendorShippingV1\CollectFreightPickupDetails**](CollectFreightPickupDetails.md) | | [optional] -**purchase_orders** | [**\SellingPartnerApi\Model\VendorShippingV1\PurchaseOrders[]**](PurchaseOrders.md) | Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) | [optional] -**import_details** | [**\SellingPartnerApi\Model\VendorShippingV1\ImportDetails**](ImportDetails.md) | | [optional] -**containers** | [**\SellingPartnerApi\Model\VendorShippingV1\Containers[]**](Containers.md) | A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. | [optional] -**transportation_details** | [**\SellingPartnerApi\Model\VendorShippingV1\TransportationDetails**](TransportationDetails.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ShipmentConfirmation.md b/docs/Model/VendorShippingV1/ShipmentConfirmation.md deleted file mode 100644 index 0ba1614ee..000000000 --- a/docs/Model/VendorShippingV1/ShipmentConfirmation.md +++ /dev/null @@ -1,25 +0,0 @@ -## ShipmentConfirmation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_identifier** | **string** | Unique shipment ID (not used over the last 365 days). | -**shipment_confirmation_type** | **string** | Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation. If replacing an existing shipment confirmation, be sure to provide the identical shipmentIdentifier and sellingParty information as in the previous confirmation. | -**shipment_type** | **string** | The type of shipment. | [optional] -**shipment_structure** | **string** | Shipment hierarchical structure. | [optional] -**transportation_details** | [**\SellingPartnerApi\Model\VendorShippingV1\TransportationDetails**](TransportationDetails.md) | | [optional] -**amazon_reference_number** | **string** | The Amazon Reference Number is a unique identifier generated by Amazon for all Collect/WePay shipments when you submit a routing request. This field is mandatory for Collect/WePay shipments. | [optional] -**shipment_confirmation_date** | **string** | Date on which the shipment confirmation was submitted. | -**shipped_date** | **string** | The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. | [optional] -**estimated_delivery_date** | **string** | The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. | [optional] -**selling_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_from_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**ship_to_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | -**shipment_measurements** | [**\SellingPartnerApi\Model\VendorShippingV1\ShipmentMeasurements**](ShipmentMeasurements.md) | | [optional] -**import_details** | [**\SellingPartnerApi\Model\VendorShippingV1\ImportDetails**](ImportDetails.md) | | [optional] -**shipped_items** | [**\SellingPartnerApi\Model\VendorShippingV1\Item[]**](Item.md) | A list of the items in this shipment and their associated details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. | -**cartons** | [**\SellingPartnerApi\Model\VendorShippingV1\Carton[]**](Carton.md) | A list of the cartons in this shipment. | [optional] -**pallets** | [**\SellingPartnerApi\Model\VendorShippingV1\Pallet[]**](Pallet.md) | A list of the pallets in this shipment. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ShipmentDetails.md b/docs/Model/VendorShippingV1/ShipmentDetails.md deleted file mode 100644 index 811ebbddb..000000000 --- a/docs/Model/VendorShippingV1/ShipmentDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorShippingV1\Pagination**](Pagination.md) | | [optional] -**shipments** | [**\SellingPartnerApi\Model\VendorShippingV1\Shipment[]**](Shipment.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ShipmentInformation.md b/docs/Model/VendorShippingV1/ShipmentInformation.md deleted file mode 100644 index 937ce9e11..000000000 --- a/docs/Model/VendorShippingV1/ShipmentInformation.md +++ /dev/null @@ -1,16 +0,0 @@ -## ShipmentInformation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vendor_details** | [**\SellingPartnerApi\Model\VendorShippingV1\VendorDetails**](VendorDetails.md) | | [optional] -**buyer_reference_number** | **string** | Buyer Reference number which is a unique number. | [optional] -**ship_to_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**ship_from_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**warehouse_id** | **string** | Vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer / Carrier. | [optional] -**master_tracking_id** | **string** | Unique Id with which the shipment can be tracked for Small Parcels. | [optional] -**total_label_count** | **int** | Number of Labels that are created as part of this shipment. | [optional] -**ship_mode** | **string** | Type of shipment whether it is Small Parcel | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ShipmentMeasurements.md b/docs/Model/VendorShippingV1/ShipmentMeasurements.md deleted file mode 100644 index 484c2626c..000000000 --- a/docs/Model/VendorShippingV1/ShipmentMeasurements.md +++ /dev/null @@ -1,12 +0,0 @@ -## ShipmentMeasurements - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gross_shipment_weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**shipment_volume** | [**\SellingPartnerApi\Model\VendorShippingV1\Volume**](Volume.md) | | [optional] -**carton_count** | **int** | Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. | [optional] -**pallet_count** | **int** | Number of pallets present in the shipment. Provide the palletCount only for palletized shipments. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/ShipmentStatusDetails.md b/docs/Model/VendorShippingV1/ShipmentStatusDetails.md deleted file mode 100644 index a7b8e72c8..000000000 --- a/docs/Model/VendorShippingV1/ShipmentStatusDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## ShipmentStatusDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_status** | **string** | Current status of the shipment on whether it is picked up or scheduled. | [optional] -**shipment_status_date** | **string** | Date and time on last status update received for the shipment | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Stop.md b/docs/Model/VendorShippingV1/Stop.md deleted file mode 100644 index 0fb199970..000000000 --- a/docs/Model/VendorShippingV1/Stop.md +++ /dev/null @@ -1,12 +0,0 @@ -## Stop - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**function_code** | **string** | Provide the function code. | -**location_identification** | [**\SellingPartnerApi\Model\VendorShippingV1\Location**](Location.md) | | [optional] -**arrival_time** | **string** | Date and time of the arrival of the cargo. | [optional] -**departure_time** | **string** | Date and time of the departure of the cargo. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.md b/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.md deleted file mode 100644 index 1abba0ec3..000000000 --- a/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipmentConfirmationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipment_confirmations** | [**\SellingPartnerApi\Model\VendorShippingV1\ShipmentConfirmation[]**](ShipmentConfirmation.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.md b/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.md deleted file mode 100644 index 35d454661..000000000 --- a/docs/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## SubmitShipmentConfirmationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorShippingV1\TransactionReference**](TransactionReference.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorShippingV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/SubmitShipments.md b/docs/Model/VendorShippingV1/SubmitShipments.md deleted file mode 100644 index 6c2fa23ee..000000000 --- a/docs/Model/VendorShippingV1/SubmitShipments.md +++ /dev/null @@ -1,9 +0,0 @@ -## SubmitShipments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**shipments** | [**\SellingPartnerApi\Model\VendorShippingV1\Shipment[]**](Shipment.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TaxRegistrationDetails.md b/docs/Model/VendorShippingV1/TaxRegistrationDetails.md deleted file mode 100644 index bed44d7b4..000000000 --- a/docs/Model/VendorShippingV1/TaxRegistrationDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## TaxRegistrationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_registration_type** | **string** | Tax registration type for the entity. | -**tax_registration_number** | **string** | Tax registration number for the entity. For example, VAT ID. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TransactionReference.md b/docs/Model/VendorShippingV1/TransactionReference.md deleted file mode 100644 index 5932b51d1..000000000 --- a/docs/Model/VendorShippingV1/TransactionReference.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TransportLabel.md b/docs/Model/VendorShippingV1/TransportLabel.md deleted file mode 100644 index fdaaea7f4..000000000 --- a/docs/Model/VendorShippingV1/TransportLabel.md +++ /dev/null @@ -1,11 +0,0 @@ -## TransportLabel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label_create_date_time** | **string** | Date on which label is created. | [optional] -**shipment_information** | [**\SellingPartnerApi\Model\VendorShippingV1\ShipmentInformation**](ShipmentInformation.md) | | [optional] -**label_data** | [**\SellingPartnerApi\Model\VendorShippingV1\LabelData[]**](LabelData.md) | Indicates the label data,format and type associated . | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TransportShipmentMeasurements.md b/docs/Model/VendorShippingV1/TransportShipmentMeasurements.md deleted file mode 100644 index 162647406..000000000 --- a/docs/Model/VendorShippingV1/TransportShipmentMeasurements.md +++ /dev/null @@ -1,13 +0,0 @@ -## TransportShipmentMeasurements - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_carton_count** | **int** | Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. | [optional] -**total_pallet_stackable** | **int** | Total number of Stackable Pallets present in the shipment. | [optional] -**total_pallet_non_stackable** | **int** | Total number of Non Stackable Pallets present in the shipment. | [optional] -**shipment_weight** | [**\SellingPartnerApi\Model\VendorShippingV1\Weight**](Weight.md) | | [optional] -**shipment_volume** | [**\SellingPartnerApi\Model\VendorShippingV1\Volume**](Volume.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TransportationDetails.md b/docs/Model/VendorShippingV1/TransportationDetails.md deleted file mode 100644 index aa71e342a..000000000 --- a/docs/Model/VendorShippingV1/TransportationDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -## TransportationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_mode** | **string** | The type of shipment. | [optional] -**transportation_mode** | **string** | The mode of transportation for this shipment. | [optional] -**shipped_date** | **string** | Date when shipment is performed by the Vendor to Buyer | [optional] -**estimated_delivery_date** | **string** | Estimated Date on which shipment will be delivered from Vendor to Buyer | [optional] -**shipment_delivery_date** | **string** | Date on which shipment will be delivered from Vendor to Buyer | [optional] -**carrier_details** | [**\SellingPartnerApi\Model\VendorShippingV1\CarrierDetails**](CarrierDetails.md) | | [optional] -**bill_of_lading_number** | **string** | Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field. | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/TransportationLabels.md b/docs/Model/VendorShippingV1/TransportationLabels.md deleted file mode 100644 index 5b893414c..000000000 --- a/docs/Model/VendorShippingV1/TransportationLabels.md +++ /dev/null @@ -1,10 +0,0 @@ -## TransportationLabels - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**\SellingPartnerApi\Model\VendorShippingV1\Pagination**](Pagination.md) | | [optional] -**transport_labels** | [**\SellingPartnerApi\Model\VendorShippingV1\TransportLabel[]**](TransportLabel.md) | | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/VendorDetails.md b/docs/Model/VendorShippingV1/VendorDetails.md deleted file mode 100644 index eb8014f5e..000000000 --- a/docs/Model/VendorShippingV1/VendorDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -## VendorDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selling_party** | [**\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification**](PartyIdentification.md) | | [optional] -**vendor_shipment_id** | **string** | Unique vendor shipment id which is not used in last 365 days | [optional] - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Volume.md b/docs/Model/VendorShippingV1/Volume.md deleted file mode 100644 index 1c9b242a1..000000000 --- a/docs/Model/VendorShippingV1/Volume.md +++ /dev/null @@ -1,10 +0,0 @@ -## Volume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit_of_measure** | **string** | The unit of measurement. | -**value** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorShippingV1/Weight.md b/docs/Model/VendorShippingV1/Weight.md deleted file mode 100644 index 96eee1a44..000000000 --- a/docs/Model/VendorShippingV1/Weight.md +++ /dev/null @@ -1,10 +0,0 @@ -## Weight - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit_of_measure** | **string** | The unit of measurement. | -**value** | **string** | A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. | - -[[VendorShippingV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorTransactionStatusV1/Error.md b/docs/Model/VendorTransactionStatusV1/Error.md deleted file mode 100644 index e05f79b71..000000000 --- a/docs/Model/VendorTransactionStatusV1/Error.md +++ /dev/null @@ -1,11 +0,0 @@ -## Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **string** | An error code that identifies the type of error that occurred. | -**message** | **string** | A message that describes the error condition. | -**details** | **string** | Additional details that can help the caller understand or fix the issue. | [optional] - -[[VendorTransactionStatusV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorTransactionStatusV1/GetTransactionResponse.md b/docs/Model/VendorTransactionStatusV1/GetTransactionResponse.md deleted file mode 100644 index 2e615b99a..000000000 --- a/docs/Model/VendorTransactionStatusV1/GetTransactionResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -## GetTransactionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | [**\SellingPartnerApi\Model\VendorTransactionStatusV1\TransactionStatus**](TransactionStatus.md) | | [optional] -**errors** | [**\SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorTransactionStatusV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorTransactionStatusV1/Transaction.md b/docs/Model/VendorTransactionStatusV1/Transaction.md deleted file mode 100644 index 9f09eda1c..000000000 --- a/docs/Model/VendorTransactionStatusV1/Transaction.md +++ /dev/null @@ -1,11 +0,0 @@ -## Transaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **string** | The unique identifier returned in the 'transactionId' field in response to the post request of a specific transaction. | -**status** | **string** | Current processing status of the transaction. | -**errors** | [**\SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]**](Error.md) | A list of error responses returned when a request is unsuccessful. | [optional] - -[[VendorTransactionStatusV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/docs/Model/VendorTransactionStatusV1/TransactionStatus.md b/docs/Model/VendorTransactionStatusV1/TransactionStatus.md deleted file mode 100644 index 6f94ee73d..000000000 --- a/docs/Model/VendorTransactionStatusV1/TransactionStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -## TransactionStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_status** | [**\SellingPartnerApi\Model\VendorTransactionStatusV1\Transaction**](Transaction.md) | | [optional] - -[[VendorTransactionStatusV1 Models]](../) [[API list]](../../Api) [[README]](../../../README.md) diff --git a/lib/Api/AplusContentV20201101Api.php b/lib/Api/AplusContentV20201101Api.php deleted file mode 100644 index 3ede3905f..000000000 --- a/lib/Api/AplusContentV20201101Api.php +++ /dev/null @@ -1,4309 +0,0 @@ -createContentDocumentWithHttpInfo($marketplace_id, $post_content_document_request); - return $response; - } - - /** - * Operation createContentDocumentWithHttpInfo - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createContentDocumentWithHttpInfo($marketplace_id, $post_content_document_request) - { - $request = $this->createContentDocumentRequest($marketplace_id, $post_content_document_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createContentDocumentAsync - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createContentDocumentAsync($marketplace_id, $post_content_document_request) - { - return $this->createContentDocumentAsyncWithHttpInfo($marketplace_id, $post_content_document_request); - } - - /** - * Operation createContentDocumentAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createContentDocumentAsyncWithHttpInfo($marketplace_id, $post_content_document_request) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse'; - $request = $this->createContentDocumentRequest($marketplace_id, $post_content_document_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createContentDocument' - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createContentDocumentRequest($marketplace_id, $post_content_document_request) - { - // 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 createContentDocument' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.createContentDocument, must be bigger than or equal to 1.'); - } - - // verify the required parameter 'post_content_document_request' is set - if ($post_content_document_request === null || (is_array($post_content_document_request) && count($post_content_document_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $post_content_document_request when calling createContentDocument' - ); - } - - $resourcePath = '/aplus/2020-11-01/contentDocuments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($post_content_document_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($post_content_document_request)); - } else { - $httpBody = $post_content_document_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getContentDocument - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse - */ - public function getContentDocument($content_reference_key, $marketplace_id, $included_data_set) - { - $response = $this->getContentDocumentWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set); - return $response; - } - - /** - * Operation getContentDocumentWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getContentDocumentWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set) - { - $request = $this->getContentDocumentRequest($content_reference_key, $marketplace_id, $included_data_set); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getContentDocumentAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getContentDocumentAsync($content_reference_key, $marketplace_id, $included_data_set) - { - return $this->getContentDocumentAsyncWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set); - } - - /** - * Operation getContentDocumentAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getContentDocumentAsyncWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\GetContentDocumentResponse'; - $request = $this->getContentDocumentRequest($content_reference_key, $marketplace_id, $included_data_set); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getContentDocument' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getContentDocumentRequest($content_reference_key, $marketplace_id, $included_data_set) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling getContentDocument' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.getContentDocument, must be bigger than or equal to 1.'); - } - - // 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 getContentDocument' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.getContentDocument, must be bigger than or equal to 1.'); - } - - // verify the required parameter 'included_data_set' is set - if ($included_data_set === null || (is_array($included_data_set) && count($included_data_set) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $included_data_set when calling getContentDocument' - ); - } - if (count($included_data_set) < 1) { - throw new \InvalidArgumentException('invalid value for "$included_data_set" when calling AplusContentV20201101Api.getContentDocument, number of items must be greater than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($included_data_set)) { - $included_data_set = ObjectSerializer::serializeCollection($included_data_set, 'form', true); - } - if ($included_data_set !== null) { - $queryParams['includedDataSet'] = $included_data_set; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listContentDocumentAsinRelations - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. (optional) - * @param string[] $asin_set The set of ASINs. (optional) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse - */ - public function listContentDocumentAsinRelations($content_reference_key, $marketplace_id, $included_data_set = null, $asin_set = null, $page_token = null) - { - $response = $this->listContentDocumentAsinRelationsWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token); - return $response; - } - - /** - * Operation listContentDocumentAsinRelationsWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. (optional) - * @param string[] $asin_set The set of ASINs. (optional) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listContentDocumentAsinRelationsWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set = null, $asin_set = null, $page_token = null) - { - $request = $this->listContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listContentDocumentAsinRelationsAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. (optional) - * @param string[] $asin_set The set of ASINs. (optional) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listContentDocumentAsinRelationsAsync($content_reference_key, $marketplace_id, $included_data_set = null, $asin_set = null, $page_token = null) - { - return $this->listContentDocumentAsinRelationsAsyncWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token); - } - - /** - * Operation listContentDocumentAsinRelationsAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. (optional) - * @param string[] $asin_set The set of ASINs. (optional) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listContentDocumentAsinRelationsAsyncWithHttpInfo($content_reference_key, $marketplace_id, $included_data_set = null, $asin_set = null, $page_token = null) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\ListContentDocumentAsinRelationsResponse'; - $request = $this->listContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $included_data_set, $asin_set, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listContentDocumentAsinRelations' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string[] $included_data_set The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. (optional) - * @param string[] $asin_set The set of ASINs. (optional) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $included_data_set = null, $asin_set = null, $page_token = null) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling listContentDocumentAsinRelations' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.listContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - // 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 listContentDocumentAsinRelations' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.listContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - if ($included_data_set !== null && count($included_data_set) < 0) { - throw new \InvalidArgumentException('invalid value for "$included_data_set" when calling AplusContentV20201101Api.listContentDocumentAsinRelations, number of items must be greater than or equal to 0.'); - } - - - if ($page_token !== null && strlen($page_token) < 1) { - throw new \InvalidArgumentException('invalid length for "$page_token" when calling AplusContentV20201101Api.listContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($included_data_set)) { - $included_data_set = ObjectSerializer::serializeCollection($included_data_set, 'form', true); - } - if ($included_data_set !== null) { - $queryParams['includedDataSet'] = $included_data_set; - } - - // query params - if (is_array($asin_set)) { - $asin_set = ObjectSerializer::serializeCollection($asin_set, 'form', true); - } - if ($asin_set !== null) { - $queryParams['asinSet'] = $asin_set; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation postContentDocumentApprovalSubmission - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse - */ - public function postContentDocumentApprovalSubmission($content_reference_key, $marketplace_id) - { - $response = $this->postContentDocumentApprovalSubmissionWithHttpInfo($content_reference_key, $marketplace_id); - return $response; - } - - /** - * Operation postContentDocumentApprovalSubmissionWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function postContentDocumentApprovalSubmissionWithHttpInfo($content_reference_key, $marketplace_id) - { - $request = $this->postContentDocumentApprovalSubmissionRequest($content_reference_key, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation postContentDocumentApprovalSubmissionAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentApprovalSubmissionAsync($content_reference_key, $marketplace_id) - { - return $this->postContentDocumentApprovalSubmissionAsyncWithHttpInfo($content_reference_key, $marketplace_id); - } - - /** - * Operation postContentDocumentApprovalSubmissionAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentApprovalSubmissionAsyncWithHttpInfo($content_reference_key, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentApprovalSubmissionResponse'; - $request = $this->postContentDocumentApprovalSubmissionRequest($content_reference_key, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'postContentDocumentApprovalSubmission' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function postContentDocumentApprovalSubmissionRequest($content_reference_key, $marketplace_id) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling postContentDocumentApprovalSubmission' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.postContentDocumentApprovalSubmission, must be bigger than or equal to 1.'); - } - - // 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 postContentDocumentApprovalSubmission' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.postContentDocumentApprovalSubmission, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/approvalSubmissions'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation postContentDocumentAsinRelations - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse - */ - public function postContentDocumentAsinRelations($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request) - { - $response = $this->postContentDocumentAsinRelationsWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request); - return $response; - } - - /** - * Operation postContentDocumentAsinRelationsWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function postContentDocumentAsinRelationsWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request) - { - $request = $this->postContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation postContentDocumentAsinRelationsAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentAsinRelationsAsync($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request) - { - return $this->postContentDocumentAsinRelationsAsyncWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request); - } - - /** - * Operation postContentDocumentAsinRelationsAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentAsinRelationsAsyncWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsResponse'; - $request = $this->postContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'postContentDocumentAsinRelations' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request The content document ASIN relations request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function postContentDocumentAsinRelationsRequest($content_reference_key, $marketplace_id, $post_content_document_asin_relations_request) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling postContentDocumentAsinRelations' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.postContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - // 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 postContentDocumentAsinRelations' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.postContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - // verify the required parameter 'post_content_document_asin_relations_request' is set - if ($post_content_document_asin_relations_request === null || (is_array($post_content_document_asin_relations_request) && count($post_content_document_asin_relations_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $post_content_document_asin_relations_request when calling postContentDocumentAsinRelations' - ); - } - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/asins'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($post_content_document_asin_relations_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($post_content_document_asin_relations_request)); - } else { - $httpBody = $post_content_document_asin_relations_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation postContentDocumentSuspendSubmission - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse - */ - public function postContentDocumentSuspendSubmission($content_reference_key, $marketplace_id) - { - $response = $this->postContentDocumentSuspendSubmissionWithHttpInfo($content_reference_key, $marketplace_id); - return $response; - } - - /** - * Operation postContentDocumentSuspendSubmissionWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function postContentDocumentSuspendSubmissionWithHttpInfo($content_reference_key, $marketplace_id) - { - $request = $this->postContentDocumentSuspendSubmissionRequest($content_reference_key, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation postContentDocumentSuspendSubmissionAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentSuspendSubmissionAsync($content_reference_key, $marketplace_id) - { - return $this->postContentDocumentSuspendSubmissionAsyncWithHttpInfo($content_reference_key, $marketplace_id); - } - - /** - * Operation postContentDocumentSuspendSubmissionAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function postContentDocumentSuspendSubmissionAsyncWithHttpInfo($content_reference_key, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentSuspendSubmissionResponse'; - $request = $this->postContentDocumentSuspendSubmissionRequest($content_reference_key, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'postContentDocumentSuspendSubmission' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function postContentDocumentSuspendSubmissionRequest($content_reference_key, $marketplace_id) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling postContentDocumentSuspendSubmission' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.postContentDocumentSuspendSubmission, must be bigger than or equal to 1.'); - } - - // 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 postContentDocumentSuspendSubmission' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.postContentDocumentSuspendSubmission, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}/suspendSubmissions'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation searchContentDocuments - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse - */ - public function searchContentDocuments($marketplace_id, $page_token = null) - { - $response = $this->searchContentDocumentsWithHttpInfo($marketplace_id, $page_token); - return $response; - } - - /** - * Operation searchContentDocumentsWithHttpInfo - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function searchContentDocumentsWithHttpInfo($marketplace_id, $page_token = null) - { - $request = $this->searchContentDocumentsRequest($marketplace_id, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation searchContentDocumentsAsync - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchContentDocumentsAsync($marketplace_id, $page_token = null) - { - return $this->searchContentDocumentsAsyncWithHttpInfo($marketplace_id, $page_token); - } - - /** - * Operation searchContentDocumentsAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchContentDocumentsAsyncWithHttpInfo($marketplace_id, $page_token = null) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentDocumentsResponse'; - $request = $this->searchContentDocumentsRequest($marketplace_id, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'searchContentDocuments' - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function searchContentDocumentsRequest($marketplace_id, $page_token = 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 searchContentDocuments' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.searchContentDocuments, must be bigger than or equal to 1.'); - } - - if ($page_token !== null && strlen($page_token) < 1) { - throw new \InvalidArgumentException('invalid length for "$page_token" when calling AplusContentV20201101Api.searchContentDocuments, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentDocuments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation searchContentPublishRecords - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN). (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse - */ - public function searchContentPublishRecords($marketplace_id, $asin, $page_token = null) - { - $response = $this->searchContentPublishRecordsWithHttpInfo($marketplace_id, $asin, $page_token); - return $response; - } - - /** - * Operation searchContentPublishRecordsWithHttpInfo - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN). (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function searchContentPublishRecordsWithHttpInfo($marketplace_id, $asin, $page_token = null) - { - $request = $this->searchContentPublishRecordsRequest($marketplace_id, $asin, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation searchContentPublishRecordsAsync - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN). (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchContentPublishRecordsAsync($marketplace_id, $asin, $page_token = null) - { - return $this->searchContentPublishRecordsAsyncWithHttpInfo($marketplace_id, $asin, $page_token); - } - - /** - * Operation searchContentPublishRecordsAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN). (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchContentPublishRecordsAsyncWithHttpInfo($marketplace_id, $asin, $page_token = null) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\SearchContentPublishRecordsResponse'; - $request = $this->searchContentPublishRecordsRequest($marketplace_id, $asin, $page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'searchContentPublishRecords' - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN). (required) - * @param string $page_token A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function searchContentPublishRecordsRequest($marketplace_id, $asin, $page_token = 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 searchContentPublishRecords' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.searchContentPublishRecords, must be bigger than or equal to 1.'); - } - - // 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 searchContentPublishRecords' - ); - } - if (strlen($asin) < 10) { - throw new \InvalidArgumentException('invalid length for "$asin" when calling AplusContentV20201101Api.searchContentPublishRecords, must be bigger than or equal to 10.'); - } - - if ($page_token !== null && strlen($page_token) < 1) { - throw new \InvalidArgumentException('invalid length for "$page_token" when calling AplusContentV20201101Api.searchContentPublishRecords, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/aplus/2020-11-01/contentPublishRecords'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['asin'] = $asin; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateContentDocument - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse - */ - public function updateContentDocument($content_reference_key, $marketplace_id, $post_content_document_request) - { - $response = $this->updateContentDocumentWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_request); - return $response; - } - - /** - * Operation updateContentDocumentWithHttpInfo - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function updateContentDocumentWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_request) - { - $request = $this->updateContentDocumentRequest($content_reference_key, $marketplace_id, $post_content_document_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 410: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 410: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateContentDocumentAsync - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateContentDocumentAsync($content_reference_key, $marketplace_id, $post_content_document_request) - { - return $this->updateContentDocumentAsyncWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_request); - } - - /** - * Operation updateContentDocumentAsyncWithHttpInfo - * - * - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateContentDocumentAsyncWithHttpInfo($content_reference_key, $marketplace_id, $post_content_document_request) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentResponse'; - $request = $this->updateContentDocumentRequest($content_reference_key, $marketplace_id, $post_content_document_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateContentDocument' - * - * @param string $content_reference_key The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. (required) - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateContentDocumentRequest($content_reference_key, $marketplace_id, $post_content_document_request) - { - // verify the required parameter 'content_reference_key' is set - if ($content_reference_key === null || (is_array($content_reference_key) && count($content_reference_key) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_reference_key when calling updateContentDocument' - ); - } - if (strlen($content_reference_key) < 1) { - throw new \InvalidArgumentException('invalid length for "$content_reference_key" when calling AplusContentV20201101Api.updateContentDocument, must be bigger than or equal to 1.'); - } - - // 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 updateContentDocument' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.updateContentDocument, must be bigger than or equal to 1.'); - } - - // verify the required parameter 'post_content_document_request' is set - if ($post_content_document_request === null || (is_array($post_content_document_request) && count($post_content_document_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $post_content_document_request when calling updateContentDocument' - ); - } - - $resourcePath = '/aplus/2020-11-01/contentDocuments/{contentReferenceKey}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // path params - if ($content_reference_key !== null) { - $resourcePath = str_replace( - '{' . 'contentReferenceKey' . '}', - ObjectSerializer::toPathValue($content_reference_key), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($post_content_document_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($post_content_document_request)); - } else { - $httpBody = $post_content_document_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation validateContentDocumentAsinRelations - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param string[] $asin_set The set of ASINs. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse - */ - public function validateContentDocumentAsinRelations($marketplace_id, $post_content_document_request, $asin_set = null) - { - $response = $this->validateContentDocumentAsinRelationsWithHttpInfo($marketplace_id, $post_content_document_request, $asin_set); - return $response; - } - - /** - * Operation validateContentDocumentAsinRelationsWithHttpInfo - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param string[] $asin_set The set of ASINs. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function validateContentDocumentAsinRelationsWithHttpInfo($marketplace_id, $post_content_document_request, $asin_set = null) - { - $request = $this->validateContentDocumentAsinRelationsRequest($marketplace_id, $post_content_document_request, $asin_set); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AplusContentV20201101\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AplusContentV20201101\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation validateContentDocumentAsinRelationsAsync - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param string[] $asin_set The set of ASINs. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function validateContentDocumentAsinRelationsAsync($marketplace_id, $post_content_document_request, $asin_set = null) - { - return $this->validateContentDocumentAsinRelationsAsyncWithHttpInfo($marketplace_id, $post_content_document_request, $asin_set); - } - - /** - * Operation validateContentDocumentAsinRelationsAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param string[] $asin_set The set of ASINs. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function validateContentDocumentAsinRelationsAsyncWithHttpInfo($marketplace_id, $post_content_document_request, $asin_set = null) - { - $returnType = '\SellingPartnerApi\Model\AplusContentV20201101\ValidateContentDocumentAsinRelationsResponse'; - $request = $this->validateContentDocumentAsinRelationsRequest($marketplace_id, $post_content_document_request, $asin_set); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'validateContentDocumentAsinRelations' - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. (required) - * @param \SellingPartnerApi\Model\AplusContentV20201101\PostContentDocumentRequest $post_content_document_request The content document request details. (required) - * @param string[] $asin_set The set of ASINs. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function validateContentDocumentAsinRelationsRequest($marketplace_id, $post_content_document_request, $asin_set = 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 validateContentDocumentAsinRelations' - ); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling AplusContentV20201101Api.validateContentDocumentAsinRelations, must be bigger than or equal to 1.'); - } - - // verify the required parameter 'post_content_document_request' is set - if ($post_content_document_request === null || (is_array($post_content_document_request) && count($post_content_document_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $post_content_document_request when calling validateContentDocumentAsinRelations' - ); - } - - - $resourcePath = '/aplus/2020-11-01/contentAsinValidations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($asin_set)) { - $asin_set = ObjectSerializer::serializeCollection($asin_set, 'form', true); - } - if ($asin_set !== null) { - $queryParams['asinSet'] = $asin_set; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($post_content_document_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($post_content_document_request)); - } else { - $httpBody = $post_content_document_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/AuthorizationV1Api.php b/lib/Api/AuthorizationV1Api.php deleted file mode 100644 index 41ceb9aa9..000000000 --- a/lib/Api/AuthorizationV1Api.php +++ /dev/null @@ -1,480 +0,0 @@ -getAuthorizationCodeWithHttpInfo($selling_partner_id, $developer_id, $mws_auth_token); - return $response; - } - - /** - * Operation getAuthorizationCodeWithHttpInfo - * - * Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. - * - * @param string $selling_partner_id The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. (required) - * @param string $developer_id Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. (required) - * @param string $mws_auth_token The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAuthorizationCodeWithHttpInfo($selling_partner_id, $developer_id, $mws_auth_token) - { - $request = $this->getAuthorizationCodeRequest($selling_partner_id, $developer_id, $mws_auth_token); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::migration" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAuthorizationCodeAsync - * - * Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. - * - * @param string $selling_partner_id The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. (required) - * @param string $developer_id Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. (required) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAuthorizationCodeAsync($selling_partner_id, $developer_id, $mws_auth_token) - { - return $this->getAuthorizationCodeAsyncWithHttpInfo($selling_partner_id, $developer_id, $mws_auth_token); - } - - /** - * Operation getAuthorizationCodeAsyncWithHttpInfo - * - * Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. - * - * @param string $selling_partner_id The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. (required) - * @param string $developer_id Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. (required) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAuthorizationCodeAsyncWithHttpInfo($selling_partner_id, $developer_id, $mws_auth_token) - { - $returnType = '\SellingPartnerApi\Model\AuthorizationV1\GetAuthorizationCodeResponse'; - $request = $this->getAuthorizationCodeRequest($selling_partner_id, $developer_id, $mws_auth_token); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::migration" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAuthorizationCode' - * - * @param string $selling_partner_id The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. (required) - * @param string $developer_id Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. (required) - * @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 - * @return \GuzzleHttp\Psr7\Request - */ - public function getAuthorizationCodeRequest($selling_partner_id, $developer_id, $mws_auth_token) - { - // verify the required parameter 'selling_partner_id' is set - if ($selling_partner_id === null || (is_array($selling_partner_id) && count($selling_partner_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $selling_partner_id when calling getAuthorizationCode' - ); - } - // verify the required parameter 'developer_id' is set - if ($developer_id === null || (is_array($developer_id) && count($developer_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $developer_id when calling getAuthorizationCode' - ); - } - // verify the required parameter 'mws_auth_token' is set - if ($mws_auth_token === null || (is_array($mws_auth_token) && count($mws_auth_token) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $mws_auth_token when calling getAuthorizationCode' - ); - } - - $resourcePath = '/authorization/v1/authorizationCode'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($selling_partner_id)) { - $selling_partner_id = ObjectSerializer::serializeCollection($selling_partner_id, '', true); - } - if ($selling_partner_id !== null) { - $queryParams['sellingPartnerId'] = $selling_partner_id; - } - - // query params - if (is_array($developer_id)) { - $developer_id = ObjectSerializer::serializeCollection($developer_id, '', true); - } - if ($developer_id !== null) { - $queryParams['developerId'] = $developer_id; - } - - // query params - if (is_array($mws_auth_token)) { - $mws_auth_token = ObjectSerializer::serializeCollection($mws_auth_token, '', true); - } - if ($mws_auth_token !== null) { - $queryParams['mwsAuthToken'] = $mws_auth_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload', 'errors'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload', 'errors'], - [], - "sellingpartnerapi::migration" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/BaseApi.php b/lib/Api/BaseApi.php deleted file mode 100644 index 3c072fa42..000000000 --- a/lib/Api/BaseApi.php +++ /dev/null @@ -1,97 +0,0 @@ -config = $config; - $this->client = $client ?: new Client(); - $this->headerSelector = $selector ?: new HeaderSelector($this->config); - } - - /** - * @return SellingPartnerApi\Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * @param SellingPartnerApi\Configuration $config - * @return $this - */ - public function setConfig(Configuration $config) - { - $this->config = $config; - $this->headerSelector = new HeaderSelector($config); - return $this; - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } - - /** - * Writes to the debug log file - * - * @param any $data - * @return void - */ - protected function writeDebug($data) - { - if ($this->config->getDebug()) { - file_put_contents( - $this->config->getDebugFile(), - '[' . date('Y-m-d H:i:s') . ']: ' . print_r($data, true) . "\n", - FILE_APPEND - ); - } - } -} diff --git a/lib/Api/CatalogItemsV0Api.php b/lib/Api/CatalogItemsV0Api.php deleted file mode 100644 index 830b49471..000000000 --- a/lib/Api/CatalogItemsV0Api.php +++ /dev/null @@ -1,1308 +0,0 @@ -getCatalogItemWithHttpInfo($marketplace_id, $asin); - return $response; - } - - /** - * Operation getCatalogItemWithHttpInfo - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getCatalogItemWithHttpInfo($marketplace_id, $asin) - { - $request = $this->getCatalogItemRequest($marketplace_id, $asin); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCatalogItemAsync - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsync($marketplace_id, $asin) - { - return $this->getCatalogItemAsyncWithHttpInfo($marketplace_id, $asin); - } - - /** - * Operation getCatalogItemAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsyncWithHttpInfo($marketplace_id, $asin) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\GetCatalogItemResponse'; - $request = $this->getCatalogItemRequest($marketplace_id, $asin); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCatalogItem' - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCatalogItemRequest($marketplace_id, $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 getCatalogItem' - ); - } - // 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 getCatalogItem' - ); - } - - $resourcePath = '/catalog/v0/items/{asin}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // path params - if ($asin !== null) { - $resourcePath = str_replace( - '{' . 'asin' . '}', - ObjectSerializer::toPathValue($asin), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listCatalogCategories - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (optional) - * @param string $seller_sku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse - */ - public function listCatalogCategories($marketplace_id, $asin = null, $seller_sku = null) - { - $response = $this->listCatalogCategoriesWithHttpInfo($marketplace_id, $asin, $seller_sku); - return $response; - } - - /** - * Operation listCatalogCategoriesWithHttpInfo - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (optional) - * @param string $seller_sku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listCatalogCategoriesWithHttpInfo($marketplace_id, $asin = null, $seller_sku = null) - { - $request = $this->listCatalogCategoriesRequest($marketplace_id, $asin, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listCatalogCategoriesAsync - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (optional) - * @param string $seller_sku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listCatalogCategoriesAsync($marketplace_id, $asin = null, $seller_sku = null) - { - return $this->listCatalogCategoriesAsyncWithHttpInfo($marketplace_id, $asin, $seller_sku); - } - - /** - * Operation listCatalogCategoriesAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (optional) - * @param string $seller_sku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listCatalogCategoriesAsyncWithHttpInfo($marketplace_id, $asin = null, $seller_sku = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogCategoriesResponse'; - $request = $this->listCatalogCategoriesRequest($marketplace_id, $asin, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listCatalogCategories' - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for the item. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (optional) - * @param string $seller_sku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listCatalogCategoriesRequest($marketplace_id, $asin = null, $seller_sku = 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 listCatalogCategories' - ); - } - - $resourcePath = '/catalog/v0/categories'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['ASIN'] = $asin; - } - - // query params - if (is_array($seller_sku)) { - $seller_sku = ObjectSerializer::serializeCollection($seller_sku, '', true); - } - if ($seller_sku !== null) { - $queryParams['SellerSKU'] = $seller_sku; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listCatalogItems - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which items are returned. (required) - * @param string $query Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. (optional) - * @param string $query_context_id An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. (optional) - * @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. (optional) - * @param string $upc A 12-digit bar code used for retail packaging. (optional) - * @param string $ean A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. (optional) - * @param string $isbn The unique commercial book identifier used to identify books internationally. (optional) - * @param string $jan A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse - */ - public function listCatalogItems($marketplace_id, $query = null, $query_context_id = null, $seller_sku = null, $upc = null, $ean = null, $isbn = null, $jan = null) - { - $response = $this->listCatalogItemsWithHttpInfo($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan); - return $response; - } - - /** - * Operation listCatalogItemsWithHttpInfo - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which items are returned. (required) - * @param string $query Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. (optional) - * @param string $query_context_id An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. (optional) - * @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. (optional) - * @param string $upc A 12-digit bar code used for retail packaging. (optional) - * @param string $ean A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. (optional) - * @param string $isbn The unique commercial book identifier used to identify books internationally. (optional) - * @param string $jan A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listCatalogItemsWithHttpInfo($marketplace_id, $query = null, $query_context_id = null, $seller_sku = null, $upc = null, $ean = null, $isbn = null, $jan = null) - { - $request = $this->listCatalogItemsRequest($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listCatalogItemsAsync - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which items are returned. (required) - * @param string $query Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. (optional) - * @param string $query_context_id An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. (optional) - * @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. (optional) - * @param string $upc A 12-digit bar code used for retail packaging. (optional) - * @param string $ean A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. (optional) - * @param string $isbn The unique commercial book identifier used to identify books internationally. (optional) - * @param string $jan A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listCatalogItemsAsync($marketplace_id, $query = null, $query_context_id = null, $seller_sku = null, $upc = null, $ean = null, $isbn = null, $jan = null) - { - return $this->listCatalogItemsAsyncWithHttpInfo($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan); - } - - /** - * Operation listCatalogItemsAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which items are returned. (required) - * @param string $query Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. (optional) - * @param string $query_context_id An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. (optional) - * @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. (optional) - * @param string $upc A 12-digit bar code used for retail packaging. (optional) - * @param string $ean A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. (optional) - * @param string $isbn The unique commercial book identifier used to identify books internationally. (optional) - * @param string $jan A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listCatalogItemsAsyncWithHttpInfo($marketplace_id, $query = null, $query_context_id = null, $seller_sku = null, $upc = null, $ean = null, $isbn = null, $jan = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV0\ListCatalogItemsResponse'; - $request = $this->listCatalogItemsRequest($marketplace_id, $query, $query_context_id, $seller_sku, $upc, $ean, $isbn, $jan); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listCatalogItems' - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which items are returned. (required) - * @param string $query Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'. (optional) - * @param string $query_context_id An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items. (optional) - * @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. (optional) - * @param string $upc A 12-digit bar code used for retail packaging. (optional) - * @param string $ean A European article number that uniquely identifies the catalog item, manufacturer, and its attributes. (optional) - * @param string $isbn The unique commercial book identifier used to identify books internationally. (optional) - * @param string $jan A Japanese article number that uniquely identifies the product, manufacturer, and its attributes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listCatalogItemsRequest($marketplace_id, $query = null, $query_context_id = null, $seller_sku = null, $upc = null, $ean = null, $isbn = null, $jan = 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 listCatalogItems' - ); - } - - $resourcePath = '/catalog/v0/items'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($query)) { - $query = ObjectSerializer::serializeCollection($query, '', true); - } - if ($query !== null) { - $queryParams['Query'] = $query; - } - - // query params - if (is_array($query_context_id)) { - $query_context_id = ObjectSerializer::serializeCollection($query_context_id, '', true); - } - if ($query_context_id !== null) { - $queryParams['QueryContextId'] = $query_context_id; - } - - // query params - if (is_array($seller_sku)) { - $seller_sku = ObjectSerializer::serializeCollection($seller_sku, '', true); - } - if ($seller_sku !== null) { - $queryParams['SellerSKU'] = $seller_sku; - } - - // query params - if (is_array($upc)) { - $upc = ObjectSerializer::serializeCollection($upc, '', true); - } - if ($upc !== null) { - $queryParams['UPC'] = $upc; - } - - // query params - if (is_array($ean)) { - $ean = ObjectSerializer::serializeCollection($ean, '', true); - } - if ($ean !== null) { - $queryParams['EAN'] = $ean; - } - - // query params - if (is_array($isbn)) { - $isbn = ObjectSerializer::serializeCollection($isbn, '', true); - } - if ($isbn !== null) { - $queryParams['ISBN'] = $isbn; - } - - // query params - if (is_array($jan)) { - $jan = ObjectSerializer::serializeCollection($jan, '', true); - } - if ($jan !== null) { - $queryParams['JAN'] = $jan; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/CatalogItemsV20201201Api.php b/lib/Api/CatalogItemsV20201201Api.php deleted file mode 100644 index cc1133daa..000000000 --- a/lib/Api/CatalogItemsV20201201Api.php +++ /dev/null @@ -1,991 +0,0 @@ -getCatalogItemWithHttpInfo($asin, $marketplace_ids, $included_data, $locale); - return $response; - } - - /** - * Operation getCatalogItemWithHttpInfo - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV20201201\Item, HTTP status code, HTTP response headers (array of strings) - */ - public function getCatalogItemWithHttpInfo($asin, $marketplace_ids, $included_data = null, $locale = null) - { - $request = $this->getCatalogItemRequest($asin, $marketplace_ids, $included_data, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\Item' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\Item', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20201201\Item'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\Item', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCatalogItemAsync - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsync($asin, $marketplace_ids, $included_data = null, $locale = null) - { - return $this->getCatalogItemAsyncWithHttpInfo($asin, $marketplace_ids, $included_data, $locale); - } - - /** - * Operation getCatalogItemAsyncWithHttpInfo - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsyncWithHttpInfo($asin, $marketplace_ids, $included_data = null, $locale = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20201201\Item'; - $request = $this->getCatalogItemRequest($asin, $marketplace_ids, $included_data, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCatalogItem' - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCatalogItemRequest($asin, $marketplace_ids, $included_data = null, $locale = null) - { - // 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 getCatalogItem' - ); - } - // 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 getCatalogItem' - ); - } - - $resourcePath = '/catalog/2020-12-01/items/{asin}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($included_data)) { - $included_data = ObjectSerializer::serializeCollection($included_data, 'form', true); - } - if ($included_data !== null) { - $queryParams['includedData'] = $included_data; - } - - // query params - if (is_array($locale)) { - $locale = ObjectSerializer::serializeCollection($locale, '', true); - } - if ($locale !== null) { - $queryParams['locale'] = $locale; - } - - // path params - if ($asin !== null) { - $resourcePath = str_replace( - '{' . 'asin' . '}', - ObjectSerializer::toPathValue($asin), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation searchCatalogItems - * - * @param string[] $keywords A comma-delimited list of words or item identifiers to search the Amazon catalog for. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search to. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults - */ - public function searchCatalogItems($keywords, $marketplace_ids, $included_data = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null, $locale = null) - { - $response = $this->searchCatalogItemsWithHttpInfo($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale); - return $response; - } - - /** - * Operation searchCatalogItemsWithHttpInfo - * - * @param string[] $keywords A comma-delimited list of words or item identifiers to search the Amazon catalog for. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search to. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults, HTTP status code, HTTP response headers (array of strings) - */ - public function searchCatalogItemsWithHttpInfo($keywords, $marketplace_ids, $included_data = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null, $locale = null) - { - $request = $this->searchCatalogItemsRequest($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20201201\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation searchCatalogItemsAsync - * - * - * - * @param string[] $keywords A comma-delimited list of words or item identifiers to search the Amazon catalog for. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search to. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchCatalogItemsAsync($keywords, $marketplace_ids, $included_data = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null, $locale = null) - { - return $this->searchCatalogItemsAsyncWithHttpInfo($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale); - } - - /** - * Operation searchCatalogItemsAsyncWithHttpInfo - * - * - * - * @param string[] $keywords A comma-delimited list of words or item identifiers to search the Amazon catalog for. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search to. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchCatalogItemsAsyncWithHttpInfo($keywords, $marketplace_ids, $included_data = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null, $locale = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSearchResults'; - $request = $this->searchCatalogItemsRequest($keywords, $marketplace_ids, $included_data, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'searchCatalogItems' - * - * @param string[] $keywords A comma-delimited list of words or item identifiers to search the Amazon catalog for. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search to. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search to. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language the keywords are provided in. Defaults to the primary locale of the marketplace. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function searchCatalogItemsRequest($keywords, $marketplace_ids, $included_data = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null, $locale = null) - { - // verify the required parameter 'keywords' is set - if ($keywords === null || (is_array($keywords) && count($keywords) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $keywords when calling searchCatalogItems' - ); - } - // 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 searchCatalogItems' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling CatalogItemsV20201201Api.searchCatalogItems, number of items must be less than or equal to 1.'); - } - - if ($page_size !== null && $page_size > 20) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling CatalogItemsV20201201Api.searchCatalogItems, must be smaller than or equal to 20.'); - } - - - $resourcePath = '/catalog/2020-12-01/items'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($keywords)) { - $keywords = ObjectSerializer::serializeCollection($keywords, 'form', true); - } - if ($keywords !== null) { - $queryParams['keywords'] = $keywords; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($included_data)) { - $included_data = ObjectSerializer::serializeCollection($included_data, 'form', true); - } - if ($included_data !== null) { - $queryParams['includedData'] = $included_data; - } - - // query params - if (is_array($brand_names)) { - $brand_names = ObjectSerializer::serializeCollection($brand_names, 'form', true); - } - if ($brand_names !== null) { - $queryParams['brandNames'] = $brand_names; - } - - // query params - if (is_array($classification_ids)) { - $classification_ids = ObjectSerializer::serializeCollection($classification_ids, 'form', true); - } - if ($classification_ids !== null) { - $queryParams['classificationIds'] = $classification_ids; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['pageSize'] = $page_size; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - // query params - if (is_array($keywords_locale)) { - $keywords_locale = ObjectSerializer::serializeCollection($keywords_locale, '', true); - } - if ($keywords_locale !== null) { - $queryParams['keywordsLocale'] = $keywords_locale; - } - - // query params - if (is_array($locale)) { - $locale = ObjectSerializer::serializeCollection($locale, '', true); - } - if ($locale !== null) { - $queryParams['locale'] = $locale; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/CatalogItemsV20220401Api.php b/lib/Api/CatalogItemsV20220401Api.php deleted file mode 100644 index 17e34da4f..000000000 --- a/lib/Api/CatalogItemsV20220401Api.php +++ /dev/null @@ -1,1032 +0,0 @@ -getCatalogItemWithHttpInfo($asin, $marketplace_ids, $included_data, $locale); - return $response; - } - - /** - * Operation getCatalogItemWithHttpInfo - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV20220401\Item, HTTP status code, HTTP response headers (array of strings) - */ - public function getCatalogItemWithHttpInfo($asin, $marketplace_ids, $included_data = null, $locale = null) - { - $request = $this->getCatalogItemRequest($asin, $marketplace_ids, $included_data, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\Item' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\Item', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20220401\Item'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\Item', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCatalogItemAsync - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsync($asin, $marketplace_ids, $included_data = null, $locale = null) - { - return $this->getCatalogItemAsyncWithHttpInfo($asin, $marketplace_ids, $included_data, $locale); - } - - /** - * Operation getCatalogItemAsyncWithHttpInfo - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCatalogItemAsyncWithHttpInfo($asin, $marketplace_ids, $included_data = null, $locale = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20220401\Item'; - $request = $this->getCatalogItemRequest($asin, $marketplace_ids, $included_data, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCatalogItem' - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. (required) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCatalogItemRequest($asin, $marketplace_ids, $included_data = null, $locale = null) - { - // 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 getCatalogItem' - ); - } - // 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 getCatalogItem' - ); - } - - $resourcePath = '/catalog/2022-04-01/items/{asin}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($included_data)) { - $included_data = ObjectSerializer::serializeCollection($included_data, 'form', true); - } - if ($included_data !== null) { - $queryParams['includedData'] = $included_data; - } - - // query params - if (is_array($locale)) { - $locale = ObjectSerializer::serializeCollection($locale, '', true); - } - if ($locale !== null) { - $queryParams['locale'] = $locale; - } - - // path params - if ($asin !== null) { - $resourcePath = str_replace( - '{' . 'asin' . '}', - ObjectSerializer::toPathValue($asin), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation searchCatalogItems - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. (optional) - * @param string $identifiers_type Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * @param string $seller_id A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. (optional) - * @param string[] $keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults - */ - public function searchCatalogItems($marketplace_ids, $identifiers = null, $identifiers_type = null, $included_data = null, $locale = null, $seller_id = null, $keywords = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null) - { - $response = $this->searchCatalogItemsWithHttpInfo($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale); - return $response; - } - - /** - * Operation searchCatalogItemsWithHttpInfo - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. (optional) - * @param string $identifiers_type Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * @param string $seller_id A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. (optional) - * @param string[] $keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults, HTTP status code, HTTP response headers (array of strings) - */ - public function searchCatalogItemsWithHttpInfo($marketplace_ids, $identifiers = null, $identifiers_type = null, $included_data = null, $locale = null, $seller_id = null, $keywords = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null) - { - $request = $this->searchCatalogItemsRequest($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\CatalogItemsV20220401\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation searchCatalogItemsAsync - * - * - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. (optional) - * @param string $identifiers_type Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * @param string $seller_id A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. (optional) - * @param string[] $keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchCatalogItemsAsync($marketplace_ids, $identifiers = null, $identifiers_type = null, $included_data = null, $locale = null, $seller_id = null, $keywords = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null) - { - return $this->searchCatalogItemsAsyncWithHttpInfo($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale); - } - - /** - * Operation searchCatalogItemsAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. (optional) - * @param string $identifiers_type Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * @param string $seller_id A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. (optional) - * @param string[] $keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchCatalogItemsAsyncWithHttpInfo($marketplace_ids, $identifiers = null, $identifiers_type = null, $included_data = null, $locale = null, $seller_id = null, $keywords = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = null) - { - $returnType = '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSearchResults'; - $request = $this->searchCatalogItemsRequest($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'searchCatalogItems' - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $identifiers A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. (optional) - * @param string $identifiers_type Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: `summaries`. (optional) - * @param string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. (optional) - * @param string $seller_id A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. (optional) - * @param string[] $keywords A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $brand_names A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param string[] $classification_ids A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. (optional) - * @param int $page_size Number of results to be returned per page. (optional, default to 10) - * @param string $page_token A token to fetch a certain page when there are multiple pages worth of results. (optional) - * @param string $keywords_locale The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function searchCatalogItemsRequest($marketplace_ids, $identifiers = null, $identifiers_type = null, $included_data = null, $locale = null, $seller_id = null, $keywords = null, $brand_names = null, $classification_ids = null, $page_size = 10, $page_token = null, $keywords_locale = 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 searchCatalogItems' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 1.'); - } - - if ($identifiers !== null && count($identifiers) > 20) { - throw new \InvalidArgumentException('invalid value for "$identifiers" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 20.'); - } - - if ($keywords !== null && count($keywords) > 20) { - throw new \InvalidArgumentException('invalid value for "$keywords" when calling CatalogItemsV20220401Api.searchCatalogItems, number of items must be less than or equal to 20.'); - } - - if ($page_size !== null && $page_size > 20) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling CatalogItemsV20220401Api.searchCatalogItems, must be smaller than or equal to 20.'); - } - - - $resourcePath = '/catalog/2022-04-01/items'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($identifiers)) { - $identifiers = ObjectSerializer::serializeCollection($identifiers, 'form', true); - } - if ($identifiers !== null) { - $queryParams['identifiers'] = $identifiers; - } - - // query params - if (is_array($identifiers_type)) { - $identifiers_type = ObjectSerializer::serializeCollection($identifiers_type, '', true); - } - if ($identifiers_type !== null) { - $queryParams['identifiersType'] = $identifiers_type; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($included_data)) { - $included_data = ObjectSerializer::serializeCollection($included_data, 'form', true); - } - if ($included_data !== null) { - $queryParams['includedData'] = $included_data; - } - - // query params - if (is_array($locale)) { - $locale = ObjectSerializer::serializeCollection($locale, '', true); - } - if ($locale !== null) { - $queryParams['locale'] = $locale; - } - - // query params - if (is_array($seller_id)) { - $seller_id = ObjectSerializer::serializeCollection($seller_id, '', true); - } - if ($seller_id !== null) { - $queryParams['sellerId'] = $seller_id; - } - - // query params - if (is_array($keywords)) { - $keywords = ObjectSerializer::serializeCollection($keywords, 'form', true); - } - if ($keywords !== null) { - $queryParams['keywords'] = $keywords; - } - - // query params - if (is_array($brand_names)) { - $brand_names = ObjectSerializer::serializeCollection($brand_names, 'form', true); - } - if ($brand_names !== null) { - $queryParams['brandNames'] = $brand_names; - } - - // query params - if (is_array($classification_ids)) { - $classification_ids = ObjectSerializer::serializeCollection($classification_ids, 'form', true); - } - if ($classification_ids !== null) { - $queryParams['classificationIds'] = $classification_ids; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['pageSize'] = $page_size; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - // query params - if (is_array($keywords_locale)) { - $keywords_locale = ObjectSerializer::serializeCollection($keywords_locale, '', true); - } - if ($keywords_locale !== null) { - $queryParams['keywordsLocale'] = $keywords_locale; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/EasyShipV20220323Api.php b/lib/Api/EasyShipV20220323Api.php deleted file mode 100644 index 815408ec0..000000000 --- a/lib/Api/EasyShipV20220323Api.php +++ /dev/null @@ -1,2016 +0,0 @@ -createScheduledPackageWithHttpInfo($create_scheduled_package_request); - return $response; - } - - /** - * Operation createScheduledPackageWithHttpInfo - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest $create_scheduled_package_request (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\EasyShipV20220323\Package, HTTP status code, HTTP response headers (array of strings) - */ - public function createScheduledPackageWithHttpInfo($create_scheduled_package_request) - { - $request = $this->createScheduledPackageRequest($create_scheduled_package_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\EasyShipV20220323\Package' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\Package', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Package'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\Package', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createScheduledPackageAsync - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest $create_scheduled_package_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createScheduledPackageAsync($create_scheduled_package_request) - { - return $this->createScheduledPackageAsyncWithHttpInfo($create_scheduled_package_request); - } - - /** - * Operation createScheduledPackageAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest $create_scheduled_package_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createScheduledPackageAsyncWithHttpInfo($create_scheduled_package_request) - { - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Package'; - $request = $this->createScheduledPackageRequest($create_scheduled_package_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createScheduledPackage' - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackageRequest $create_scheduled_package_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createScheduledPackageRequest($create_scheduled_package_request) - { - // verify the required parameter 'create_scheduled_package_request' is set - if ($create_scheduled_package_request === null || (is_array($create_scheduled_package_request) && count($create_scheduled_package_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $create_scheduled_package_request when calling createScheduledPackage' - ); - } - - $resourcePath = '/easyShip/2022-03-23/package'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($create_scheduled_package_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($create_scheduled_package_request)); - } else { - $httpBody = $create_scheduled_package_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createScheduledPackageBulk - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest $create_scheduled_packages_request create_scheduled_packages_request (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse - */ - public function createScheduledPackageBulk($create_scheduled_packages_request) - { - $response = $this->createScheduledPackageBulkWithHttpInfo($create_scheduled_packages_request); - return $response; - } - - /** - * Operation createScheduledPackageBulkWithHttpInfo - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest $create_scheduled_packages_request (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createScheduledPackageBulkWithHttpInfo($create_scheduled_packages_request) - { - $request = $this->createScheduledPackageBulkRequest($create_scheduled_packages_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createScheduledPackageBulkAsync - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest $create_scheduled_packages_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createScheduledPackageBulkAsync($create_scheduled_packages_request) - { - return $this->createScheduledPackageBulkAsyncWithHttpInfo($create_scheduled_packages_request); - } - - /** - * Operation createScheduledPackageBulkAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest $create_scheduled_packages_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createScheduledPackageBulkAsyncWithHttpInfo($create_scheduled_packages_request) - { - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesResponse'; - $request = $this->createScheduledPackageBulkRequest($create_scheduled_packages_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createScheduledPackageBulk' - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\CreateScheduledPackagesRequest $create_scheduled_packages_request (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createScheduledPackageBulkRequest($create_scheduled_packages_request) - { - // verify the required parameter 'create_scheduled_packages_request' is set - if ($create_scheduled_packages_request === null || (is_array($create_scheduled_packages_request) && count($create_scheduled_packages_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $create_scheduled_packages_request when calling createScheduledPackageBulk' - ); - } - - $resourcePath = '/easyShip/2022-03-23/packages/bulk'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($create_scheduled_packages_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($create_scheduled_packages_request)); - } else { - $httpBody = $create_scheduled_packages_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getScheduledPackage - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplace_id An identifier for the marketplace in which the seller is selling. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\EasyShipV20220323\Package - */ - public function getScheduledPackage($amazon_order_id, $marketplace_id) - { - $response = $this->getScheduledPackageWithHttpInfo($amazon_order_id, $marketplace_id); - return $response; - } - - /** - * Operation getScheduledPackageWithHttpInfo - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplace_id An identifier for the marketplace in which the seller is selling. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\EasyShipV20220323\Package, HTTP status code, HTTP response headers (array of strings) - */ - public function getScheduledPackageWithHttpInfo($amazon_order_id, $marketplace_id) - { - $request = $this->getScheduledPackageRequest($amazon_order_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\EasyShipV20220323\Package' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\Package', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Package'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\Package', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getScheduledPackageAsync - * - * - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplace_id An identifier for the marketplace in which the seller is selling. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getScheduledPackageAsync($amazon_order_id, $marketplace_id) - { - return $this->getScheduledPackageAsyncWithHttpInfo($amazon_order_id, $marketplace_id); - } - - /** - * Operation getScheduledPackageAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplace_id An identifier for the marketplace in which the seller is selling. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getScheduledPackageAsyncWithHttpInfo($amazon_order_id, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Package'; - $request = $this->getScheduledPackageRequest($amazon_order_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getScheduledPackage' - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplace_id An identifier for the marketplace in which the seller is selling. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getScheduledPackageRequest($amazon_order_id, $marketplace_id) - { - // 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 getScheduledPackage' - ); - } - if (strlen($amazon_order_id) > 255) { - throw new \InvalidArgumentException('invalid length for "$amazon_order_id" when calling EasyShipV20220323Api.getScheduledPackage, must be smaller than or equal to 255.'); - } - if (strlen($amazon_order_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$amazon_order_id" when calling EasyShipV20220323Api.getScheduledPackage, must be bigger than or equal to 1.'); - } - - // 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 getScheduledPackage' - ); - } - if (strlen($marketplace_id) > 255) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling EasyShipV20220323Api.getScheduledPackage, must be smaller than or equal to 255.'); - } - if (strlen($marketplace_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$marketplace_id" when calling EasyShipV20220323Api.getScheduledPackage, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/easyShip/2022-03-23/package'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($amazon_order_id)) { - $amazon_order_id = ObjectSerializer::serializeCollection($amazon_order_id, '', true); - } - if ($amazon_order_id !== null) { - $queryParams['amazonOrderId'] = $amazon_order_id; - } - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listHandoverSlots - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest $list_handover_slots_request list_handover_slots_request (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse - */ - public function listHandoverSlots($list_handover_slots_request = null) - { - $response = $this->listHandoverSlotsWithHttpInfo($list_handover_slots_request); - return $response; - } - - /** - * Operation listHandoverSlotsWithHttpInfo - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest $list_handover_slots_request (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listHandoverSlotsWithHttpInfo($list_handover_slots_request = null) - { - $request = $this->listHandoverSlotsRequest($list_handover_slots_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listHandoverSlotsAsync - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest $list_handover_slots_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listHandoverSlotsAsync($list_handover_slots_request = null) - { - return $this->listHandoverSlotsAsyncWithHttpInfo($list_handover_slots_request); - } - - /** - * Operation listHandoverSlotsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest $list_handover_slots_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listHandoverSlotsAsyncWithHttpInfo($list_handover_slots_request = null) - { - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsResponse'; - $request = $this->listHandoverSlotsRequest($list_handover_slots_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listHandoverSlots' - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ListHandoverSlotsRequest $list_handover_slots_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listHandoverSlotsRequest($list_handover_slots_request = null) - { - - $resourcePath = '/easyShip/2022-03-23/timeSlot'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($list_handover_slots_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($list_handover_slots_request)); - } else { - $httpBody = $list_handover_slots_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateScheduledPackages - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest $update_scheduled_packages_request update_scheduled_packages_request (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\EasyShipV20220323\Packages - */ - public function updateScheduledPackages($update_scheduled_packages_request = null) - { - $response = $this->updateScheduledPackagesWithHttpInfo($update_scheduled_packages_request); - return $response; - } - - /** - * Operation updateScheduledPackagesWithHttpInfo - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest $update_scheduled_packages_request (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\EasyShipV20220323\Packages, HTTP status code, HTTP response headers (array of strings) - */ - public function updateScheduledPackagesWithHttpInfo($update_scheduled_packages_request = null) - { - $request = $this->updateScheduledPackagesRequest($update_scheduled_packages_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\EasyShipV20220323\Packages' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\Packages', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\EasyShipV20220323\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Packages'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\Packages', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\EasyShipV20220323\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateScheduledPackagesAsync - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest $update_scheduled_packages_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateScheduledPackagesAsync($update_scheduled_packages_request = null) - { - return $this->updateScheduledPackagesAsyncWithHttpInfo($update_scheduled_packages_request); - } - - /** - * Operation updateScheduledPackagesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest $update_scheduled_packages_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateScheduledPackagesAsyncWithHttpInfo($update_scheduled_packages_request = null) - { - $returnType = '\SellingPartnerApi\Model\EasyShipV20220323\Packages'; - $request = $this->updateScheduledPackagesRequest($update_scheduled_packages_request); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateScheduledPackages' - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdateScheduledPackagesRequest $update_scheduled_packages_request (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateScheduledPackagesRequest($update_scheduled_packages_request = null) - { - - $resourcePath = '/easyShip/2022-03-23/package'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($update_scheduled_packages_request)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($update_scheduled_packages_request)); - } else { - $httpBody = $update_scheduled_packages_request; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PATCH', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FbaInboundEligibilityV1Api.php b/lib/Api/FbaInboundEligibilityV1Api.php deleted file mode 100644 index 551f48086..000000000 --- a/lib/Api/FbaInboundEligibilityV1Api.php +++ /dev/null @@ -1,455 +0,0 @@ -getItemEligibilityPreviewWithHttpInfo($asin, $program, $marketplace_ids); - return $response; - } - - /** - * Operation getItemEligibilityPreviewWithHttpInfo - * - * @param string $asin The ASIN of the item for which you want an eligibility preview. (required) - * @param string $program The program that you want to check eligibility against. (required) - * @param string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getItemEligibilityPreviewWithHttpInfo($asin, $program, $marketplace_ids = null) - { - $request = $this->getItemEligibilityPreviewRequest($asin, $program, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getItemEligibilityPreviewAsync - * - * - * - * @param string $asin The ASIN of the item for which you want an eligibility preview. (required) - * @param string $program The program that you want to check eligibility against. (required) - * @param string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemEligibilityPreviewAsync($asin, $program, $marketplace_ids = null) - { - return $this->getItemEligibilityPreviewAsyncWithHttpInfo($asin, $program, $marketplace_ids); - } - - /** - * Operation getItemEligibilityPreviewAsyncWithHttpInfo - * - * - * - * @param string $asin The ASIN of the item for which you want an eligibility preview. (required) - * @param string $program The program that you want to check eligibility against. (required) - * @param string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemEligibilityPreviewAsyncWithHttpInfo($asin, $program, $marketplace_ids = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundEligibilityV1\GetItemEligibilityPreviewResponse'; - $request = $this->getItemEligibilityPreviewRequest($asin, $program, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getItemEligibilityPreview' - * - * @param string $asin The ASIN of the item for which you want an eligibility preview. (required) - * @param string $program The program that you want to check eligibility against. (required) - * @param string[] $marketplace_ids The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getItemEligibilityPreviewRequest($asin, $program, $marketplace_ids = null) - { - // 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 getItemEligibilityPreview' - ); - } - // verify the required parameter 'program' is set - if ($program === null || (is_array($program) && count($program) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $program when calling getItemEligibilityPreview' - ); - } - if ($marketplace_ids !== null && count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling FbaInboundEligibilityV1Api.getItemEligibilityPreview, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/fba/inbound/v1/eligibility/itemPreview'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['asin'] = $asin; - } - - // query params - if (is_array($program)) { - $program = ObjectSerializer::serializeCollection($program, '', true); - } - if ($program !== null) { - $queryParams['program'] = $program; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'ItemEligibilityPreview'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'ItemEligibilityPreview'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FbaInboundV0Api.php b/lib/Api/FbaInboundV0Api.php deleted file mode 100644 index e35e60f8a..000000000 --- a/lib/Api/FbaInboundV0Api.php +++ /dev/null @@ -1,6889 +0,0 @@ -confirmPreorderWithHttpInfo($shipment_id, $need_by_date, $marketplace_id); - return $response; - } - - /** - * Operation confirmPreorderWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function confirmPreorderWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) - { - $request = $this->confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation confirmPreorderAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $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 - */ - public function confirmPreorderAsync($shipment_id, $need_by_date, $marketplace_id) - { - return $this->confirmPreorderAsyncWithHttpInfo($shipment_id, $need_by_date, $marketplace_id); - } - - /** - * Operation confirmPreorderAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $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 - */ - public function confirmPreorderAsyncWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResponse'; - $request = $this->confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'confirmPreorder' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $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\Psr7\Request - */ - public 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' - ); - } - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/preorder/confirm'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($need_by_date)) { - $need_by_date = ObjectSerializer::serializeCollection($need_by_date, '', true); - } - if ($need_by_date !== null) { - $queryParams['NeedByDate'] = $need_by_date; - } - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation confirmTransport - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse - */ - public function confirmTransport($shipment_id) - { - $response = $this->confirmTransportWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation confirmTransportWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function confirmTransportWithHttpInfo($shipment_id) - { - $request = $this->confirmTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation confirmTransportAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmTransportAsync($shipment_id) - { - return $this->confirmTransportAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation confirmTransportAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmTransportAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\ConfirmTransportResponse'; - $request = $this->confirmTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'confirmTransport' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/confirm'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createInboundShipment - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse - */ - public function createInboundShipment($shipment_id, $body) - { - $response = $this->createInboundShipmentWithHttpInfo($shipment_id, $body); - return $response; - } - - /** - * Operation createInboundShipmentWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createInboundShipmentWithHttpInfo($shipment_id, $body) - { - $request = $this->createInboundShipmentRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createInboundShipmentAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createInboundShipmentAsync($shipment_id, $body) - { - return $this->createInboundShipmentAsyncWithHttpInfo($shipment_id, $body); - } - - /** - * Operation createInboundShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createInboundShipmentAsyncWithHttpInfo($shipment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse'; - $request = $this->createInboundShipmentRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createInboundShipment' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createInboundShipmentRequest($shipment_id, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createInboundShipmentPlan - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse - */ - public function createInboundShipmentPlan($body) - { - $response = $this->createInboundShipmentPlanWithHttpInfo($body); - return $response; - } - - /** - * Operation createInboundShipmentPlanWithHttpInfo - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createInboundShipmentPlanWithHttpInfo($body) - { - $request = $this->createInboundShipmentPlanRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createInboundShipmentPlanAsync - * - * - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createInboundShipmentPlanAsync($body) - { - return $this->createInboundShipmentPlanAsyncWithHttpInfo($body); - } - - /** - * Operation createInboundShipmentPlanAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createInboundShipmentPlanAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResponse'; - $request = $this->createInboundShipmentPlanRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createInboundShipmentPlan' - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/plans'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation estimateTransport - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse - */ - public function estimateTransport($shipment_id) - { - $response = $this->estimateTransportWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation estimateTransportWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function estimateTransportWithHttpInfo($shipment_id) - { - $request = $this->estimateTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation estimateTransportAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function estimateTransportAsync($shipment_id) - { - return $this->estimateTransportAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation estimateTransportAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function estimateTransportAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\EstimateTransportResponse'; - $request = $this->estimateTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'estimateTransport' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/estimate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getBillOfLading - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse - */ - public function getBillOfLading($shipment_id) - { - $response = $this->getBillOfLadingWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getBillOfLadingWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getBillOfLadingWithHttpInfo($shipment_id) - { - $request = $this->getBillOfLadingRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getBillOfLadingAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getBillOfLadingAsync($shipment_id) - { - return $this->getBillOfLadingAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getBillOfLadingAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getBillOfLadingAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetBillOfLadingResponse'; - $request = $this->getBillOfLadingRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getBillOfLading' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/billOfLading'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getInboundGuidance - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse - */ - public function getInboundGuidance($marketplace_id, $seller_sku_list = null, $asin_list = null) - { - $response = $this->getInboundGuidanceWithHttpInfo($marketplace_id, $seller_sku_list, $asin_list); - return $response; - } - - /** - * Operation getInboundGuidanceWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getInboundGuidanceWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) - { - $request = $this->getInboundGuidanceRequest($marketplace_id, $seller_sku_list, $asin_list); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getInboundGuidanceAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getInboundGuidanceAsync($marketplace_id, $seller_sku_list = null, $asin_list = null) - { - return $this->getInboundGuidanceAsyncWithHttpInfo($marketplace_id, $seller_sku_list, $asin_list); - } - - /** - * Operation getInboundGuidanceAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getInboundGuidanceAsyncWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResponse'; - $request = $this->getInboundGuidanceRequest($marketplace_id, $seller_sku_list, $asin_list); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getInboundGuidance' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 ($seller_sku_list !== null && count($seller_sku_list) > 50) { - throw new \InvalidArgumentException('invalid value for "$seller_sku_list" when calling FbaInboundV0Api.getInboundGuidance, number of items must be less than or equal to 50.'); - } - - if ($asin_list !== null && count($asin_list) > 50) { - throw new \InvalidArgumentException('invalid value for "$asin_list" when calling FbaInboundV0Api.getInboundGuidance, number of items must be less than or equal to 50.'); - } - - - $resourcePath = '/fba/inbound/v0/itemsGuidance'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($seller_sku_list)) { - $seller_sku_list = ObjectSerializer::serializeCollection($seller_sku_list, 'form', true); - } - if ($seller_sku_list !== null) { - $queryParams['SellerSKUList'] = $seller_sku_list; - } - - // query params - if (is_array($asin_list)) { - $asin_list = ObjectSerializer::serializeCollection($asin_list, 'form', true); - } - if ($asin_list !== null) { - $queryParams['ASINList'] = $asin_list; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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[] $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 $page_size The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. (optional) - * @param int $page_start_index The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse - */ - public function getLabels($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null, $page_size = null, $page_start_index = null) - { - $response = $this->getLabelsWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index); - return $response; - } - - /** - * 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[] $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 $page_size The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. (optional) - * @param int $page_start_index The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\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, $page_size = null, $page_start_index = null) - { - $request = $this->getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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[] $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 $page_size The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. (optional) - * @param int $page_start_index The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. (optional) - * - * @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, $page_size = null, $page_start_index = null) - { - return $this->getLabelsAsyncWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index); - } - - /** - * 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[] $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 $page_size The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. (optional) - * @param int $page_start_index The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. (optional) - * - * @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, $page_size = null, $page_start_index = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetLabelsResponse'; - $request = $this->getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets, $page_size, $page_start_index); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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[] $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 $page_size The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. (optional) - * @param int $page_start_index The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null, $page_size = null, $page_start_index = 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' - ); - } - // 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' - ); - } - // 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 ($package_labels_to_print !== null && count($package_labels_to_print) > 999) { - throw new \InvalidArgumentException('invalid value for "$package_labels_to_print" when calling FbaInboundV0Api.getLabels, number of items must be less than or equal to 999.'); - } - - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/labels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($page_type)) { - $page_type = ObjectSerializer::serializeCollection($page_type, '', true); - } - if ($page_type !== null) { - $queryParams['PageType'] = $page_type; - } - - // query params - if (is_array($label_type)) { - $label_type = ObjectSerializer::serializeCollection($label_type, '', true); - } - if ($label_type !== null) { - $queryParams['LabelType'] = $label_type; - } - - // query params - if (is_array($number_of_packages)) { - $number_of_packages = ObjectSerializer::serializeCollection($number_of_packages, '', true); - } - if ($number_of_packages !== null) { - $queryParams['NumberOfPackages'] = $number_of_packages; - } - - // query params - if (is_array($package_labels_to_print)) { - $package_labels_to_print = ObjectSerializer::serializeCollection($package_labels_to_print, 'form', true); - } - if ($package_labels_to_print !== null) { - $queryParams['PackageLabelsToPrint'] = $package_labels_to_print; - } - - // query params - if (is_array($number_of_pallets)) { - $number_of_pallets = ObjectSerializer::serializeCollection($number_of_pallets, '', true); - } - if ($number_of_pallets !== null) { - $queryParams['NumberOfPallets'] = $number_of_pallets; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['PageSize'] = $page_size; - } - - // query params - if (is_array($page_start_index)) { - $page_start_index = ObjectSerializer::serializeCollection($page_start_index, '', true); - } - if ($page_start_index !== null) { - $queryParams['PageStartIndex'] = $page_start_index; - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPreorderInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse - */ - public function getPreorderInfo($shipment_id, $marketplace_id) - { - $response = $this->getPreorderInfoWithHttpInfo($shipment_id, $marketplace_id); - return $response; - } - - /** - * Operation getPreorderInfoWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPreorderInfoWithHttpInfo($shipment_id, $marketplace_id) - { - $request = $this->getPreorderInfoRequest($shipment_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPreorderInfoAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPreorderInfoAsync($shipment_id, $marketplace_id) - { - return $this->getPreorderInfoAsyncWithHttpInfo($shipment_id, $marketplace_id); - } - - /** - * Operation getPreorderInfoAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPreorderInfoAsyncWithHttpInfo($shipment_id, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResponse'; - $request = $this->getPreorderInfoRequest($shipment_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPreorderInfo' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/preorder'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse - */ - public function getPrepInstructions($ship_to_country_code, $seller_sku_list = null, $asin_list = null) - { - $response = $this->getPrepInstructionsWithHttpInfo($ship_to_country_code, $seller_sku_list, $asin_list); - return $response; - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse, HTTP status code, HTTP response headers (array of strings) - */ - 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); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - 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); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPrepInstructionsAsyncWithHttpInfo($ship_to_country_code, $seller_sku_list = null, $asin_list = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResponse'; - $request = $this->getPrepInstructionsRequest($ship_to_country_code, $seller_sku_list, $asin_list); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 ($seller_sku_list !== null && count($seller_sku_list) > 50) { - throw new \InvalidArgumentException('invalid value for "$seller_sku_list" when calling FbaInboundV0Api.getPrepInstructions, number of items must be less than or equal to 50.'); - } - - if ($asin_list !== null && count($asin_list) > 50) { - throw new \InvalidArgumentException('invalid value for "$asin_list" when calling FbaInboundV0Api.getPrepInstructions, number of items must be less than or equal to 50.'); - } - - - $resourcePath = '/fba/inbound/v0/prepInstructions'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_to_country_code)) { - $ship_to_country_code = ObjectSerializer::serializeCollection($ship_to_country_code, '', true); - } - if ($ship_to_country_code !== null) { - $queryParams['ShipToCountryCode'] = $ship_to_country_code; - } - - // query params - if (is_array($seller_sku_list)) { - $seller_sku_list = ObjectSerializer::serializeCollection($seller_sku_list, 'form', true); - } - if ($seller_sku_list !== null) { - $queryParams['SellerSKUList'] = $seller_sku_list; - } - - // query params - if (is_array($asin_list)) { - $asin_list = ObjectSerializer::serializeCollection($asin_list, 'form', true); - } - if ($asin_list !== null) { - $queryParams['ASINList'] = $asin_list; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 string $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. Must be in ISO 8601 format. (optional) - * @param string $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. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse - */ - public function getShipmentItems($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) - { - $response = $this->getShipmentItemsWithHttpInfo($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); - return $response; - } - - /** - * 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 string $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. Must be in ISO 8601 format. (optional) - * @param string $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. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\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) - { - $request = $this->getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 string $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. Must be in ISO 8601 format. (optional) - * @param string $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. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - 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); - } - - /** - * 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 string $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. Must be in ISO 8601 format. (optional) - * @param string $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. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentItemsAsyncWithHttpInfo($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse'; - $request = $this->getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 string $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. Must be in ISO 8601 format. (optional) - * @param string $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. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipmentItems'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($last_updated_after)) { - $last_updated_after = ObjectSerializer::serializeCollection($last_updated_after, '', true); - } - if ($last_updated_after !== null) { - $queryParams['LastUpdatedAfter'] = $last_updated_after; - } - - // query params - if (is_array($last_updated_before)) { - $last_updated_before = ObjectSerializer::serializeCollection($last_updated_before, '', true); - } - if ($last_updated_before !== null) { - $queryParams['LastUpdatedBefore'] = $last_updated_before; - } - - // query params - if (is_array($query_type)) { - $query_type = ObjectSerializer::serializeCollection($query_type, '', true); - } - if ($query_type !== null) { - $queryParams['QueryType'] = $query_type; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipmentItemsByShipmentId - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse - */ - public function getShipmentItemsByShipmentId($shipment_id, $marketplace_id) - { - $response = $this->getShipmentItemsByShipmentIdWithHttpInfo($shipment_id, $marketplace_id); - return $response; - } - - /** - * Operation getShipmentItemsByShipmentIdWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentItemsByShipmentIdWithHttpInfo($shipment_id, $marketplace_id) - { - $request = $this->getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentItemsByShipmentIdAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentItemsByShipmentIdAsync($shipment_id, $marketplace_id) - { - return $this->getShipmentItemsByShipmentIdAsyncWithHttpInfo($shipment_id, $marketplace_id); - } - - /** - * Operation getShipmentItemsByShipmentIdAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentItemsByShipmentIdAsyncWithHttpInfo($shipment_id, $marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResponse'; - $request = $this->getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipmentItemsByShipmentId' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/items'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 string $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 string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\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) - { - $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 - * - * @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 string $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 string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\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) - { - $request = $this->getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 string $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 string $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 - */ - 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); - } - - /** - * 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 string $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 string $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 - */ - 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) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResponse'; - $request = $this->getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 string $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 string $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\Psr7\Request - */ - public 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($shipment_status_list)) { - $shipment_status_list = ObjectSerializer::serializeCollection($shipment_status_list, 'form', true); - } - if ($shipment_status_list !== null) { - $queryParams['ShipmentStatusList'] = $shipment_status_list; - } - - // query params - if (is_array($shipment_id_list)) { - $shipment_id_list = ObjectSerializer::serializeCollection($shipment_id_list, 'form', true); - } - if ($shipment_id_list !== null) { - $queryParams['ShipmentIdList'] = $shipment_id_list; - } - - // query params - if (is_array($last_updated_after)) { - $last_updated_after = ObjectSerializer::serializeCollection($last_updated_after, '', true); - } - if ($last_updated_after !== null) { - $queryParams['LastUpdatedAfter'] = $last_updated_after; - } - - // query params - if (is_array($last_updated_before)) { - $last_updated_before = ObjectSerializer::serializeCollection($last_updated_before, '', true); - } - if ($last_updated_before !== null) { - $queryParams['LastUpdatedBefore'] = $last_updated_before; - } - - // query params - if (is_array($query_type)) { - $query_type = ObjectSerializer::serializeCollection($query_type, '', true); - } - if ($query_type !== null) { - $queryParams['QueryType'] = $query_type; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getTransportDetails - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse - */ - public function getTransportDetails($shipment_id) - { - $response = $this->getTransportDetailsWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getTransportDetailsWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getTransportDetailsWithHttpInfo($shipment_id) - { - $request = $this->getTransportDetailsRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTransportDetailsAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransportDetailsAsync($shipment_id) - { - return $this->getTransportDetailsAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getTransportDetailsAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransportDetailsAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResponse'; - $request = $this->getTransportDetailsRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTransportDetails' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation putTransportDetails - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse - */ - public function putTransportDetails($shipment_id, $body) - { - $response = $this->putTransportDetailsWithHttpInfo($shipment_id, $body); - return $response; - } - - /** - * Operation putTransportDetailsWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function putTransportDetailsWithHttpInfo($shipment_id, $body) - { - $request = $this->putTransportDetailsRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation putTransportDetailsAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putTransportDetailsAsync($shipment_id, $body) - { - return $this->putTransportDetailsAsyncWithHttpInfo($shipment_id, $body); - } - - /** - * Operation putTransportDetailsAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putTransportDetailsAsyncWithHttpInfo($shipment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsResponse'; - $request = $this->putTransportDetailsRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'putTransportDetails' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\PutTransportDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function putTransportDetailsRequest($shipment_id, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateInboundShipment - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse - */ - public function updateInboundShipment($shipment_id, $body) - { - $response = $this->updateInboundShipmentWithHttpInfo($shipment_id, $body); - return $response; - } - - /** - * Operation updateInboundShipmentWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function updateInboundShipmentWithHttpInfo($shipment_id, $body) - { - $request = $this->updateInboundShipmentRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateInboundShipmentAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateInboundShipmentAsync($shipment_id, $body) - { - return $this->updateInboundShipmentAsyncWithHttpInfo($shipment_id, $body); - } - - /** - * Operation updateInboundShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateInboundShipmentAsyncWithHttpInfo($shipment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResponse'; - $request = $this->updateInboundShipmentRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateInboundShipment' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateInboundShipmentRequest($shipment_id, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation voidTransport - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse - */ - public function voidTransport($shipment_id) - { - $response = $this->voidTransportWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation voidTransportWithHttpInfo - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function voidTransportWithHttpInfo($shipment_id) - { - $request = $this->voidTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation voidTransportAsync - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function voidTransportAsync($shipment_id) - { - return $this->voidTransportAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation voidTransportAsyncWithHttpInfo - * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function voidTransportAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\FbaInboundV0\VoidTransportResponse'; - $request = $this->voidTransportRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'voidTransport' - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/void'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FbaInventoryV1Api.php b/lib/Api/FbaInventoryV1Api.php deleted file mode 100644 index d1d70c214..000000000 --- a/lib/Api/FbaInventoryV1Api.php +++ /dev/null @@ -1,514 +0,0 @@ -getInventorySummariesWithHttpInfo($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku); - return $response; - } - - /** - * 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 string $details 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). (optional, default to 'false') - * @param string $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. The string token will expire 30 seconds after being created. (optional) - * @param string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaInventoryV1\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, $seller_sku = null) - { - $request = $this->getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 string $details 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). (optional, default to 'false') - * @param string $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. The string token will expire 30 seconds after being created. (optional) - * @param string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (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, $seller_sku = null) - { - return $this->getInventorySummariesAsyncWithHttpInfo($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku); - } - - /** - * 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 string $details 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). (optional, default to 'false') - * @param string $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. The string token will expire 30 seconds after being created. (optional) - * @param string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (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, $seller_sku = null) - { - $returnType = '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResponse'; - $request = $this->getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 string $details 'true' to return inventory summaries with additional summarized inventory details and quantities. Must be the *string* 'true', not the boolean value, due to a bug in Amazon's API implementation. Otherwise, returns inventory summaries only (default value). (optional, default to 'false') - * @param string $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. The string token will expire 30 seconds after being created. (optional) - * @param string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null, $seller_sku = 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' - ); - } - // 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling FbaInventoryV1Api.getInventorySummaries, number of items must be less than or equal to 1.'); - } - - if ($seller_skus !== null && count($seller_skus) > 50) { - throw new \InvalidArgumentException('invalid value for "$seller_skus" when calling FbaInventoryV1Api.getInventorySummaries, number of items must be less than or equal to 50.'); - } - - - $resourcePath = '/fba/inventory/v1/summaries'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($details)) { - $details = ObjectSerializer::serializeCollection($details, '', true); - } - if ($details !== null) { - $queryParams['details'] = $details; - } - - // query params - if (is_array($granularity_type)) { - $granularity_type = ObjectSerializer::serializeCollection($granularity_type, '', true); - } - if ($granularity_type !== null) { - $queryParams['granularityType'] = $granularity_type; - } - - // query params - if (is_array($granularity_id)) { - $granularity_id = ObjectSerializer::serializeCollection($granularity_id, '', true); - } - if ($granularity_id !== null) { - $queryParams['granularityId'] = $granularity_id; - } - - // query params - if (is_array($start_date_time)) { - $start_date_time = ObjectSerializer::serializeCollection($start_date_time, '', true); - } - if ($start_date_time !== null) { - $queryParams['startDateTime'] = $start_date_time; - } - - // query params - if (is_array($seller_skus)) { - $seller_skus = ObjectSerializer::serializeCollection($seller_skus, 'form', true); - } - if ($seller_skus !== null) { - $queryParams['sellerSkus'] = $seller_skus; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($seller_sku)) { - $seller_sku = ObjectSerializer::serializeCollection($seller_sku, '', true); - } - if ($seller_sku !== null) { - $queryParams['sellerSku'] = $seller_sku; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FbaOutboundV20200701Api.php b/lib/Api/FbaOutboundV20200701Api.php deleted file mode 100644 index 0414f1336..000000000 --- a/lib/Api/FbaOutboundV20200701Api.php +++ /dev/null @@ -1,5124 +0,0 @@ -cancelFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id); - return $response; - } - - /** - * Operation cancelFulfillmentOrderWithHttpInfo - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id) - { - $request = $this->cancelFulfillmentOrderRequest($seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelFulfillmentOrderAsync - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelFulfillmentOrderAsync($seller_fulfillment_order_id) - { - return $this->cancelFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id); - } - - /** - * Operation cancelFulfillmentOrderAsyncWithHttpInfo - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CancelFulfillmentOrderResponse'; - $request = $this->cancelFulfillmentOrderRequest($seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelFulfillmentOrder' - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelFulfillmentOrderRequest($seller_fulfillment_order_id) - { - // verify the required parameter 'seller_fulfillment_order_id' is set - if ($seller_fulfillment_order_id === null || (is_array($seller_fulfillment_order_id) && count($seller_fulfillment_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_fulfillment_order_id when calling cancelFulfillmentOrder' - ); - } - if (strlen($seller_fulfillment_order_id) > 40) { - throw new \InvalidArgumentException('invalid length for "$seller_fulfillment_order_id" when calling FbaOutboundV20200701Api.cancelFulfillmentOrder, must be smaller than or equal to 40.'); - } - - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_fulfillment_order_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerFulfillmentOrderId' . '}', - ObjectSerializer::toPathValue($seller_fulfillment_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createFulfillmentOrder - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse - */ - public function createFulfillmentOrder($body) - { - $response = $this->createFulfillmentOrderWithHttpInfo($body); - return $response; - } - - /** - * Operation createFulfillmentOrderWithHttpInfo - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createFulfillmentOrderWithHttpInfo($body) - { - $request = $this->createFulfillmentOrderRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createFulfillmentOrderAsync - * - * - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFulfillmentOrderAsync($body) - { - return $this->createFulfillmentOrderAsyncWithHttpInfo($body); - } - - /** - * Operation createFulfillmentOrderAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFulfillmentOrderAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderResponse'; - $request = $this->createFulfillmentOrderRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createFulfillmentOrder' - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createFulfillmentOrderRequest($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 createFulfillmentOrder' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createFulfillmentReturn - * - * @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 \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse - */ - public function createFulfillmentReturn($seller_fulfillment_order_id, $body) - { - $response = $this->createFulfillmentReturnWithHttpInfo($seller_fulfillment_order_id, $body); - return $response; - } - - /** - * Operation createFulfillmentReturnWithHttpInfo - * - * @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 \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createFulfillmentReturnWithHttpInfo($seller_fulfillment_order_id, $body) - { - $request = $this->createFulfillmentReturnRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createFulfillmentReturnAsync - * - * - * - * @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 \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFulfillmentReturnAsync($seller_fulfillment_order_id, $body) - { - return $this->createFulfillmentReturnAsyncWithHttpInfo($seller_fulfillment_order_id, $body); - } - - /** - * Operation createFulfillmentReturnAsyncWithHttpInfo - * - * - * - * @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 \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFulfillmentReturnAsyncWithHttpInfo($seller_fulfillment_order_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResponse'; - $request = $this->createFulfillmentReturnRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createFulfillmentReturn' - * - * @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 \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createFulfillmentReturnRequest($seller_fulfillment_order_id, $body) - { - // verify the required parameter 'seller_fulfillment_order_id' is set - if ($seller_fulfillment_order_id === null || (is_array($seller_fulfillment_order_id) && count($seller_fulfillment_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_fulfillment_order_id when calling createFulfillmentReturn' - ); - } - // 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 createFulfillmentReturn' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_fulfillment_order_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerFulfillmentOrderId' . '}', - ObjectSerializer::toPathValue($seller_fulfillment_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFeatureInventory - * - * @param string $marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. (required) - * @param string $feature_name The name of the feature for which to return a list of eligible inventory. (required) - * @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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse - */ - public function getFeatureInventory($marketplace_id, $feature_name, $next_token = null) - { - $response = $this->getFeatureInventoryWithHttpInfo($marketplace_id, $feature_name, $next_token); - return $response; - } - - /** - * Operation getFeatureInventoryWithHttpInfo - * - * @param string $marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. (required) - * @param string $feature_name The name of the feature for which to return a list of eligible inventory. (required) - * @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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeatureInventoryWithHttpInfo($marketplace_id, $feature_name, $next_token = null) - { - $request = $this->getFeatureInventoryRequest($marketplace_id, $feature_name, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeatureInventoryAsync - * - * - * - * @param string $marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. (required) - * @param string $feature_name The name of the feature for which to return a list of eligible inventory. (required) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeatureInventoryAsync($marketplace_id, $feature_name, $next_token = null) - { - return $this->getFeatureInventoryAsyncWithHttpInfo($marketplace_id, $feature_name, $next_token); - } - - /** - * Operation getFeatureInventoryAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. (required) - * @param string $feature_name The name of the feature for which to return a list of eligible inventory. (required) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeatureInventoryAsyncWithHttpInfo($marketplace_id, $feature_name, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResponse'; - $request = $this->getFeatureInventoryRequest($marketplace_id, $feature_name, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFeatureInventory' - * - * @param string $marketplace_id The marketplace for which to return a list of the inventory that is eligible for the specified feature. (required) - * @param string $feature_name The name of the feature for which to return a list of eligible inventory. (required) - * @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 - * @return \GuzzleHttp\Psr7\Request - */ - public function getFeatureInventoryRequest($marketplace_id, $feature_name, $next_token = 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 getFeatureInventory' - ); - } - // verify the required parameter 'feature_name' is set - if ($feature_name === null || (is_array($feature_name) && count($feature_name) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $feature_name when calling getFeatureInventory' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/features/inventory/{featureName}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // path params - if ($feature_name !== null) { - $resourcePath = str_replace( - '{' . 'featureName' . '}', - ObjectSerializer::toPathValue($feature_name), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFeatureSKU - * - * @param string $marketplace_id The marketplace for which to return the count. (required) - * @param string $feature_name The name of the feature. (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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse - */ - public function getFeatureSKU($marketplace_id, $feature_name, $seller_sku) - { - $response = $this->getFeatureSKUWithHttpInfo($marketplace_id, $feature_name, $seller_sku); - return $response; - } - - /** - * Operation getFeatureSKUWithHttpInfo - * - * @param string $marketplace_id The marketplace for which to return the count. (required) - * @param string $feature_name The name of the feature. (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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeatureSKUWithHttpInfo($marketplace_id, $feature_name, $seller_sku) - { - $request = $this->getFeatureSKURequest($marketplace_id, $feature_name, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeatureSKUAsync - * - * - * - * @param string $marketplace_id The marketplace for which to return the count. (required) - * @param string $feature_name The name of the feature. (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 - */ - public function getFeatureSKUAsync($marketplace_id, $feature_name, $seller_sku) - { - return $this->getFeatureSKUAsyncWithHttpInfo($marketplace_id, $feature_name, $seller_sku); - } - - /** - * Operation getFeatureSKUAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The marketplace for which to return the count. (required) - * @param string $feature_name The name of the feature. (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 - */ - public function getFeatureSKUAsyncWithHttpInfo($marketplace_id, $feature_name, $seller_sku) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResponse'; - $request = $this->getFeatureSKURequest($marketplace_id, $feature_name, $seller_sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFeatureSKU' - * - * @param string $marketplace_id The marketplace for which to return the count. (required) - * @param string $feature_name The name of the feature. (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\Psr7\Request - */ - public function getFeatureSKURequest($marketplace_id, $feature_name, $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 getFeatureSKU' - ); - } - // verify the required parameter 'feature_name' is set - if ($feature_name === null || (is_array($feature_name) && count($feature_name) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $feature_name when calling getFeatureSKU' - ); - } - // 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 getFeatureSKU' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // path params - if ($feature_name !== null) { - $resourcePath = str_replace( - '{' . 'featureName' . '}', - ObjectSerializer::toPathValue($feature_name), - $resourcePath - ); - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'sellerSku' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFeatures - * - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse - */ - public function getFeatures($marketplace_id) - { - $response = $this->getFeaturesWithHttpInfo($marketplace_id); - return $response; - } - - /** - * Operation getFeaturesWithHttpInfo - * - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeaturesWithHttpInfo($marketplace_id) - { - $request = $this->getFeaturesRequest($marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeaturesAsync - * - * - * - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeaturesAsync($marketplace_id) - { - return $this->getFeaturesAsyncWithHttpInfo($marketplace_id); - } - - /** - * Operation getFeaturesAsyncWithHttpInfo - * - * - * - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeaturesAsyncWithHttpInfo($marketplace_id) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResponse'; - $request = $this->getFeaturesRequest($marketplace_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFeatures' - * - * @param string $marketplace_id The marketplace for which to return the list of features. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getFeaturesRequest($marketplace_id) - { - // 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 getFeatures' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/features'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFulfillmentOrder - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse - */ - public function getFulfillmentOrder($seller_fulfillment_order_id) - { - $response = $this->getFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id); - return $response; - } - - /** - * Operation getFulfillmentOrderWithHttpInfo - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id) - { - $request = $this->getFulfillmentOrderRequest($seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFulfillmentOrderAsync - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFulfillmentOrderAsync($seller_fulfillment_order_id) - { - return $this->getFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id); - } - - /** - * Operation getFulfillmentOrderAsyncWithHttpInfo - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResponse'; - $request = $this->getFulfillmentOrderRequest($seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFulfillmentOrder' - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getFulfillmentOrderRequest($seller_fulfillment_order_id) - { - // verify the required parameter 'seller_fulfillment_order_id' is set - if ($seller_fulfillment_order_id === null || (is_array($seller_fulfillment_order_id) && count($seller_fulfillment_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_fulfillment_order_id when calling getFulfillmentOrder' - ); - } - if (strlen($seller_fulfillment_order_id) > 40) { - throw new \InvalidArgumentException('invalid length for "$seller_fulfillment_order_id" when calling FbaOutboundV20200701Api.getFulfillmentOrder, must be smaller than or equal to 40.'); - } - - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_fulfillment_order_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerFulfillmentOrderId' . '}', - ObjectSerializer::toPathValue($seller_fulfillment_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFulfillmentPreview - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse - */ - public function getFulfillmentPreview($body) - { - $response = $this->getFulfillmentPreviewWithHttpInfo($body); - return $response; - } - - /** - * Operation getFulfillmentPreviewWithHttpInfo - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFulfillmentPreviewWithHttpInfo($body) - { - $request = $this->getFulfillmentPreviewRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFulfillmentPreviewAsync - * - * - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFulfillmentPreviewAsync($body) - { - return $this->getFulfillmentPreviewAsyncWithHttpInfo($body); - } - - /** - * Operation getFulfillmentPreviewAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFulfillmentPreviewAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResponse'; - $request = $this->getFulfillmentPreviewRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFulfillmentPreview' - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getFulfillmentPreviewRequest($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 getFulfillmentPreview' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/preview'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPackageTrackingDetails - * - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse - */ - public function getPackageTrackingDetails($package_number) - { - $response = $this->getPackageTrackingDetailsWithHttpInfo($package_number); - return $response; - } - - /** - * Operation getPackageTrackingDetailsWithHttpInfo - * - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPackageTrackingDetailsWithHttpInfo($package_number) - { - $request = $this->getPackageTrackingDetailsRequest($package_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPackageTrackingDetailsAsync - * - * - * - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackageTrackingDetailsAsync($package_number) - { - return $this->getPackageTrackingDetailsAsyncWithHttpInfo($package_number); - } - - /** - * Operation getPackageTrackingDetailsAsyncWithHttpInfo - * - * - * - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackageTrackingDetailsAsyncWithHttpInfo($package_number) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\GetPackageTrackingDetailsResponse'; - $request = $this->getPackageTrackingDetailsRequest($package_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPackageTrackingDetails' - * - * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPackageTrackingDetailsRequest($package_number) - { - // verify the required parameter 'package_number' is set - if ($package_number === null || (is_array($package_number) && count($package_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $package_number when calling getPackageTrackingDetails' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/tracking'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($package_number)) { - $package_number = ObjectSerializer::serializeCollection($package_number, '', true); - } - if ($package_number !== null) { - $queryParams['packageNumber'] = $package_number; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listAllFulfillmentOrders - * - * @param string $query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse - */ - public function listAllFulfillmentOrders($query_start_date = null, $next_token = null) - { - $response = $this->listAllFulfillmentOrdersWithHttpInfo($query_start_date, $next_token); - return $response; - } - - /** - * Operation listAllFulfillmentOrdersWithHttpInfo - * - * @param string $query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listAllFulfillmentOrdersWithHttpInfo($query_start_date = null, $next_token = null) - { - $request = $this->listAllFulfillmentOrdersRequest($query_start_date, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listAllFulfillmentOrdersAsync - * - * - * - * @param string $query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listAllFulfillmentOrdersAsync($query_start_date = null, $next_token = null) - { - return $this->listAllFulfillmentOrdersAsyncWithHttpInfo($query_start_date, $next_token); - } - - /** - * Operation listAllFulfillmentOrdersAsyncWithHttpInfo - * - * - * - * @param string $query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listAllFulfillmentOrdersAsyncWithHttpInfo($query_start_date = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResponse'; - $request = $this->listAllFulfillmentOrdersRequest($query_start_date, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listAllFulfillmentOrders' - * - * @param string $query_start_date A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. Must be in ISO 8601 format. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listAllFulfillmentOrdersRequest($query_start_date = null, $next_token = null) - { - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($query_start_date)) { - $query_start_date = ObjectSerializer::serializeCollection($query_start_date, '', true); - } - if ($query_start_date !== null) { - $queryParams['queryStartDate'] = $query_start_date; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listReturnReasonCodes - * - * @param string $seller_sku The seller SKU for which return reason codes are required. (required) - * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. (required) - * @param string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse - */ - public function listReturnReasonCodes($seller_sku, $language, $marketplace_id = null, $seller_fulfillment_order_id = null) - { - $response = $this->listReturnReasonCodesWithHttpInfo($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id); - return $response; - } - - /** - * Operation listReturnReasonCodesWithHttpInfo - * - * @param string $seller_sku The seller SKU for which return reason codes are required. (required) - * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. (required) - * @param string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listReturnReasonCodesWithHttpInfo($seller_sku, $language, $marketplace_id = null, $seller_fulfillment_order_id = null) - { - $request = $this->listReturnReasonCodesRequest($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listReturnReasonCodesAsync - * - * - * - * @param string $seller_sku The seller SKU for which return reason codes are required. (required) - * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. (required) - * @param string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listReturnReasonCodesAsync($seller_sku, $language, $marketplace_id = null, $seller_fulfillment_order_id = null) - { - return $this->listReturnReasonCodesAsyncWithHttpInfo($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id); - } - - /** - * Operation listReturnReasonCodesAsyncWithHttpInfo - * - * - * - * @param string $seller_sku The seller SKU for which return reason codes are required. (required) - * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. (required) - * @param string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @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 - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listReturnReasonCodesAsyncWithHttpInfo($seller_sku, $language, $marketplace_id = null, $seller_fulfillment_order_id = null) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResponse'; - $request = $this->listReturnReasonCodesRequest($seller_sku, $language, $marketplace_id, $seller_fulfillment_order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listReturnReasonCodes' - * - * @param string $seller_sku The seller SKU for which return reason codes are required. (required) - * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. (required) - * @param string $marketplace_id The marketplace for which the seller wants return reason codes. (optional) - * @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 - * @return \GuzzleHttp\Psr7\Request - */ - public function listReturnReasonCodesRequest($seller_sku, $language, $marketplace_id = null, $seller_fulfillment_order_id = null) - { - // 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 listReturnReasonCodes' - ); - } - // verify the required parameter 'language' is set - if ($language === null || (is_array($language) && count($language) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $language when calling listReturnReasonCodes' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/returnReasonCodes'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($seller_sku)) { - $seller_sku = ObjectSerializer::serializeCollection($seller_sku, '', true); - } - if ($seller_sku !== null) { - $queryParams['sellerSku'] = $seller_sku; - } - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['marketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($seller_fulfillment_order_id)) { - $seller_fulfillment_order_id = ObjectSerializer::serializeCollection($seller_fulfillment_order_id, '', true); - } - if ($seller_fulfillment_order_id !== null) { - $queryParams['sellerFulfillmentOrderId'] = $seller_fulfillment_order_id; - } - - // query params - if (is_array($language)) { - $language = ObjectSerializer::serializeCollection($language, '', true); - } - if ($language !== null) { - $queryParams['language'] = $language; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitFulfillmentOrderStatusUpdate - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse - */ - public function submitFulfillmentOrderStatusUpdate($seller_fulfillment_order_id, $body) - { - $response = $this->submitFulfillmentOrderStatusUpdateWithHttpInfo($seller_fulfillment_order_id, $body); - return $response; - } - - /** - * Operation submitFulfillmentOrderStatusUpdateWithHttpInfo - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitFulfillmentOrderStatusUpdateWithHttpInfo($seller_fulfillment_order_id, $body) - { - $request = $this->submitFulfillmentOrderStatusUpdateRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitFulfillmentOrderStatusUpdateAsync - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitFulfillmentOrderStatusUpdateAsync($seller_fulfillment_order_id, $body) - { - return $this->submitFulfillmentOrderStatusUpdateAsyncWithHttpInfo($seller_fulfillment_order_id, $body); - } - - /** - * Operation submitFulfillmentOrderStatusUpdateAsyncWithHttpInfo - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitFulfillmentOrderStatusUpdateAsyncWithHttpInfo($seller_fulfillment_order_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateResponse'; - $request = $this->submitFulfillmentOrderStatusUpdateRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitFulfillmentOrderStatusUpdate' - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\SubmitFulfillmentOrderStatusUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitFulfillmentOrderStatusUpdateRequest($seller_fulfillment_order_id, $body) - { - // verify the required parameter 'seller_fulfillment_order_id' is set - if ($seller_fulfillment_order_id === null || (is_array($seller_fulfillment_order_id) && count($seller_fulfillment_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_fulfillment_order_id when calling submitFulfillmentOrderStatusUpdate' - ); - } - if (strlen($seller_fulfillment_order_id) > 40) { - throw new \InvalidArgumentException('invalid length for "$seller_fulfillment_order_id" when calling FbaOutboundV20200701Api.submitFulfillmentOrderStatusUpdate, must be smaller than or equal to 40.'); - } - - // 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 submitFulfillmentOrderStatusUpdate' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_fulfillment_order_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerFulfillmentOrderId' . '}', - ObjectSerializer::toPathValue($seller_fulfillment_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateFulfillmentOrder - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse - */ - public function updateFulfillmentOrder($seller_fulfillment_order_id, $body) - { - $response = $this->updateFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id, $body); - return $response; - } - - /** - * Operation updateFulfillmentOrderWithHttpInfo - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function updateFulfillmentOrderWithHttpInfo($seller_fulfillment_order_id, $body) - { - $request = $this->updateFulfillmentOrderRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateFulfillmentOrderAsync - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateFulfillmentOrderAsync($seller_fulfillment_order_id, $body) - { - return $this->updateFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id, $body); - } - - /** - * Operation updateFulfillmentOrderAsyncWithHttpInfo - * - * - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateFulfillmentOrderAsyncWithHttpInfo($seller_fulfillment_order_id, $body) - { - $returnType = '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderResponse'; - $request = $this->updateFulfillmentOrderRequest($seller_fulfillment_order_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateFulfillmentOrder' - * - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateFulfillmentOrderRequest($seller_fulfillment_order_id, $body) - { - // verify the required parameter 'seller_fulfillment_order_id' is set - if ($seller_fulfillment_order_id === null || (is_array($seller_fulfillment_order_id) && count($seller_fulfillment_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_fulfillment_order_id when calling updateFulfillmentOrder' - ); - } - if (strlen($seller_fulfillment_order_id) > 40) { - throw new \InvalidArgumentException('invalid length for "$seller_fulfillment_order_id" when calling FbaOutboundV20200701Api.updateFulfillmentOrder, must be smaller than or equal to 40.'); - } - - // 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 updateFulfillmentOrder' - ); - } - - $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_fulfillment_order_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerFulfillmentOrderId' . '}', - ObjectSerializer::toPathValue($seller_fulfillment_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FeedsV20210630Api.php b/lib/Api/FeedsV20210630Api.php deleted file mode 100644 index cfeed4bab..000000000 --- a/lib/Api/FeedsV20210630Api.php +++ /dev/null @@ -1,2391 +0,0 @@ -cancelFeedWithHttpInfo($feed_id); - } - - /** - * Operation cancelFeedWithHttpInfo - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelFeedWithHttpInfo($feed_id) - { - $request = $this->cancelFeedRequest($feed_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelFeedAsync - * - * - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelFeedAsync($feed_id) - { - return $this->cancelFeedAsyncWithHttpInfo($feed_id); - } - - /** - * Operation cancelFeedAsyncWithHttpInfo - * - * - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelFeedAsyncWithHttpInfo($feed_id) - { - $returnType = ''; - $request = $this->cancelFeedRequest($feed_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/feeds/2021-06-30/feeds/{feedId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($feed_id !== null) { - $resourcePath = str_replace( - '{' . 'feedId' . '}', - ObjectSerializer::toPathValue($feed_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createFeed - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse - */ - public function createFeed($body) - { - $response = $this->createFeedWithHttpInfo($body); - return $response; - } - - /** - * Operation createFeedWithHttpInfo - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createFeedWithHttpInfo($body) - { - $request = $this->createFeedRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createFeedAsync - * - * - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFeedAsync($body) - { - return $this->createFeedAsyncWithHttpInfo($body); - } - - /** - * Operation createFeedAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFeedAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedResponse'; - $request = $this->createFeedRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createFeed' - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/feeds/2021-06-30/feeds'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createFeedDocument - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse - */ - public function createFeedDocument($body) - { - $response = $this->createFeedDocumentWithHttpInfo($body); - return $response; - } - - /** - * Operation createFeedDocumentWithHttpInfo - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createFeedDocumentWithHttpInfo($body) - { - $request = $this->createFeedDocumentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createFeedDocumentAsync - * - * - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFeedDocumentAsync($body) - { - return $this->createFeedDocumentAsyncWithHttpInfo($body); - } - - /** - * Operation createFeedDocumentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createFeedDocumentAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentResponse'; - $request = $this->createFeedDocumentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createFeedDocument' - * - * @param \SellingPartnerApi\Model\FeedsV20210630\CreateFeedDocumentSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/feeds/2021-06-30/documents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFeed - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeedsV20210630\Feed - */ - public function getFeed($feed_id) - { - $response = $this->getFeedWithHttpInfo($feed_id); - return $response; - } - - /** - * Operation getFeedWithHttpInfo - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeedsV20210630\Feed, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeedWithHttpInfo($feed_id) - { - $request = $this->getFeedRequest($feed_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeedsV20210630\Feed' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\Feed', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\Feed'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\Feed', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeedAsync - * - * - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeedAsync($feed_id) - { - return $this->getFeedAsyncWithHttpInfo($feed_id); - } - - /** - * Operation getFeedAsyncWithHttpInfo - * - * - * - * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeedAsyncWithHttpInfo($feed_id) - { - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\Feed'; - $request = $this->getFeedRequest($feed_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/feeds/2021-06-30/feeds/{feedId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($feed_id !== null) { - $resourcePath = str_replace( - '{' . 'feedId' . '}', - ObjectSerializer::toPathValue($feed_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFeedDocument - * - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeedsV20210630\FeedDocument - */ - public function getFeedDocument($feed_document_id) - { - $response = $this->getFeedDocumentWithHttpInfo($feed_document_id); - return $response; - } - - /** - * Operation getFeedDocumentWithHttpInfo - * - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeedsV20210630\FeedDocument, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeedDocumentWithHttpInfo($feed_document_id) - { - $request = $this->getFeedDocumentRequest($feed_document_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeedsV20210630\FeedDocument' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\FeedDocument', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\FeedDocument'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\FeedDocument', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeedDocumentAsync - * - * - * - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeedDocumentAsync($feed_document_id) - { - return $this->getFeedDocumentAsyncWithHttpInfo($feed_document_id); - } - - /** - * Operation getFeedDocumentAsyncWithHttpInfo - * - * - * - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeedDocumentAsyncWithHttpInfo($feed_document_id) - { - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\FeedDocument'; - $request = $this->getFeedDocumentRequest($feed_document_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFeedDocument' - * - * @param string $feed_document_id The identifier of the feed document. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/feeds/2021-06-30/documents/{feedDocumentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($feed_document_id !== null) { - $resourcePath = str_replace( - '{' . 'feedDocumentId' . '}', - ObjectSerializer::toPathValue($feed_document_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 string $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 string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeedsV20210630\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) - { - $response = $this->getFeedsWithHttpInfo($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); - return $response; - } - - /** - * 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 string $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 string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeedsV20210630\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) - { - $request = $this->getFeedsRequest($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeedsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeedsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 string $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 string $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 - */ - 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); - } - - /** - * 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 string $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 string $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 - */ - 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 = '\SellingPartnerApi\Model\FeedsV20210630\GetFeedsResponse'; - $request = $this->getFeedsRequest($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 string $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 string $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\Psr7\Request - */ - public function getFeedsRequest($feed_types = null, $marketplace_ids = null, $page_size = 10, $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) - { - if ($feed_types !== null && count($feed_types) > 10) { - throw new \InvalidArgumentException('invalid value for "$feed_types" when calling FeedsV20210630Api.getFeeds, number of items must be less than or equal to 10.'); - } - if ($feed_types !== null && count($feed_types) < 1) { - throw new \InvalidArgumentException('invalid value for "$feed_types" when calling FeedsV20210630Api.getFeeds, number of items must be greater than or equal to 1.'); - } - - if ($marketplace_ids !== null && count($marketplace_ids) > 10) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling FeedsV20210630Api.getFeeds, number of items must be less than or equal to 10.'); - } - if ($marketplace_ids !== null && count($marketplace_ids) < 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling FeedsV20210630Api.getFeeds, number of items must be greater than or equal to 1.'); - } - - if ($page_size !== null && $page_size > 100) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling FeedsV20210630Api.getFeeds, must be smaller than or equal to 100.'); - } - if ($page_size !== null && $page_size < 1) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling FeedsV20210630Api.getFeeds, must be bigger than or equal to 1.'); - } - - if ($processing_statuses !== null && count($processing_statuses) < 1) { - throw new \InvalidArgumentException('invalid value for "$processing_statuses" when calling FeedsV20210630Api.getFeeds, number of items must be greater than or equal to 1.'); - } - - - $resourcePath = '/feeds/2021-06-30/feeds'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($feed_types)) { - $feed_types = ObjectSerializer::serializeCollection($feed_types, 'form', true); - } - if ($feed_types !== null) { - $queryParams['feedTypes'] = $feed_types; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['pageSize'] = $page_size; - } - - // query params - if (is_array($processing_statuses)) { - $processing_statuses = ObjectSerializer::serializeCollection($processing_statuses, 'form', true); - } - if ($processing_statuses !== null) { - $queryParams['processingStatuses'] = $processing_statuses; - } - - // query params - if (is_array($created_since)) { - $created_since = ObjectSerializer::serializeCollection($created_since, '', true); - } - if ($created_since !== null) { - $queryParams['createdSince'] = $created_since; - } - - // query params - if (is_array($created_until)) { - $created_until = ObjectSerializer::serializeCollection($created_until, '', true); - } - if ($created_until !== null) { - $queryParams['createdUntil'] = $created_until; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FeesV0Api.php b/lib/Api/FeesV0Api.php deleted file mode 100644 index 97d4b0c30..000000000 --- a/lib/Api/FeesV0Api.php +++ /dev/null @@ -1,1205 +0,0 @@ -getMyFeesEstimateForASINWithHttpInfo($asin, $body); - return $response; - } - - /** - * Operation getMyFeesEstimateForASINWithHttpInfo - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getMyFeesEstimateForASINWithHttpInfo($asin, $body) - { - $request = $this->getMyFeesEstimateForASINRequest($asin, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getMyFeesEstimateForASINAsync - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimateForASINAsync($asin, $body) - { - return $this->getMyFeesEstimateForASINAsyncWithHttpInfo($asin, $body); - } - - /** - * Operation getMyFeesEstimateForASINAsyncWithHttpInfo - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimateForASINAsyncWithHttpInfo($asin, $body) - { - $returnType = '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse'; - $request = $this->getMyFeesEstimateForASINRequest($asin, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getMyFeesEstimateForASIN' - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getMyFeesEstimateForASINRequest($asin, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/products/fees/v0/items/{Asin}/feesEstimate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($asin !== null) { - $resourcePath = str_replace( - '{' . 'Asin' . '}', - ObjectSerializer::toPathValue($asin), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getMyFeesEstimateForSKU - * - * @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 \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse - */ - public function getMyFeesEstimateForSKU($seller_sku, $body) - { - $response = $this->getMyFeesEstimateForSKUWithHttpInfo($seller_sku, $body); - return $response; - } - - /** - * Operation getMyFeesEstimateForSKUWithHttpInfo - * - * @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 \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getMyFeesEstimateForSKUWithHttpInfo($seller_sku, $body) - { - $request = $this->getMyFeesEstimateForSKURequest($seller_sku, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getMyFeesEstimateForSKUAsync - * - * - * - * @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 \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimateForSKUAsync($seller_sku, $body) - { - return $this->getMyFeesEstimateForSKUAsyncWithHttpInfo($seller_sku, $body); - } - - /** - * Operation getMyFeesEstimateForSKUAsyncWithHttpInfo - * - * - * - * @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 \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimateForSKUAsyncWithHttpInfo($seller_sku, $body) - { - $returnType = '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResponse'; - $request = $this->getMyFeesEstimateForSKURequest($seller_sku, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getMyFeesEstimateForSKU' - * - * @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 \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getMyFeesEstimateForSKURequest($seller_sku, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/products/fees/v0/listings/{SellerSKU}/feesEstimate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'SellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getMyFeesEstimates - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateResult[] - */ - public function getMyFeesEstimates($body) - { - $response = $this->getMyFeesEstimatesWithHttpInfo($body); - return $response; - } - - /** - * Operation getMyFeesEstimatesWithHttpInfo - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FeesV0\FeesEstimateResult[], HTTP status code, HTTP response headers (array of strings) - */ - public function getMyFeesEstimatesWithHttpInfo($body) - { - $request = $this->getMyFeesEstimatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimatesErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getMyFeesEstimatesAsync - * - * - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimatesAsync($body) - { - return $this->getMyFeesEstimatesAsyncWithHttpInfo($body); - } - - /** - * Operation getMyFeesEstimatesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMyFeesEstimatesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\FeesV0\FeesEstimateResult[]'; - $request = $this->getMyFeesEstimatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getMyFeesEstimates' - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateByIdRequest[] $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getMyFeesEstimatesRequest($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 getMyFeesEstimates' - ); - } - - $resourcePath = '/products/fees/v0/feesEstimate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/FinancesV0Api.php b/lib/Api/FinancesV0Api.php deleted file mode 100644 index 0285ed673..000000000 --- a/lib/Api/FinancesV0Api.php +++ /dev/null @@ -1,1657 +0,0 @@ -listFinancialEventGroupsWithHttpInfo($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token); - return $response; - } - - /** - * Operation listFinancialEventGroupsWithHttpInfo - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. (optional) - * @param string $financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listFinancialEventGroupsWithHttpInfo($max_results_per_page = 100, $financial_event_group_started_before = null, $financial_event_group_started_after = null, $next_token = null) - { - $request = $this->listFinancialEventGroupsRequest($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listFinancialEventGroupsAsync - * - * - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. (optional) - * @param string $financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventGroupsAsync($max_results_per_page = 100, $financial_event_group_started_before = null, $financial_event_group_started_after = null, $next_token = null) - { - return $this->listFinancialEventGroupsAsyncWithHttpInfo($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token); - } - - /** - * Operation listFinancialEventGroupsAsyncWithHttpInfo - * - * - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. (optional) - * @param string $financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventGroupsAsyncWithHttpInfo($max_results_per_page = 100, $financial_event_group_started_before = null, $financial_event_group_started_after = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsResponse'; - $request = $this->listFinancialEventGroupsRequest($max_results_per_page, $financial_event_group_started_before, $financial_event_group_started_after, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listFinancialEventGroups' - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $financial_event_group_started_before A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned. (optional) - * @param string $financial_event_group_started_after A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listFinancialEventGroupsRequest($max_results_per_page = 100, $financial_event_group_started_before = null, $financial_event_group_started_after = null, $next_token = null) - { - if ($max_results_per_page !== null && $max_results_per_page > 100) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventGroups, must be smaller than or equal to 100.'); - } - if ($max_results_per_page !== null && $max_results_per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventGroups, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/finances/v0/financialEventGroups'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($max_results_per_page)) { - $max_results_per_page = ObjectSerializer::serializeCollection($max_results_per_page, '', true); - } - if ($max_results_per_page !== null) { - $queryParams['MaxResultsPerPage'] = $max_results_per_page; - } - - // query params - if (is_array($financial_event_group_started_before)) { - $financial_event_group_started_before = ObjectSerializer::serializeCollection($financial_event_group_started_before, '', true); - } - if ($financial_event_group_started_before !== null) { - $queryParams['FinancialEventGroupStartedBefore'] = $financial_event_group_started_before; - } - - // query params - if (is_array($financial_event_group_started_after)) { - $financial_event_group_started_after = ObjectSerializer::serializeCollection($financial_event_group_started_after, '', true); - } - if ($financial_event_group_started_after !== null) { - $queryParams['FinancialEventGroupStartedAfter'] = $financial_event_group_started_after; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listFinancialEvents - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse - */ - public function listFinancialEvents($max_results_per_page = 100, $posted_after = null, $posted_before = null, $next_token = null) - { - $response = $this->listFinancialEventsWithHttpInfo($max_results_per_page, $posted_after, $posted_before, $next_token); - return $response; - } - - /** - * Operation listFinancialEventsWithHttpInfo - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listFinancialEventsWithHttpInfo($max_results_per_page = 100, $posted_after = null, $posted_before = null, $next_token = null) - { - $request = $this->listFinancialEventsRequest($max_results_per_page, $posted_after, $posted_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listFinancialEventsAsync - * - * - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsAsync($max_results_per_page = 100, $posted_after = null, $posted_before = null, $next_token = null) - { - return $this->listFinancialEventsAsyncWithHttpInfo($max_results_per_page, $posted_after, $posted_before, $next_token); - } - - /** - * Operation listFinancialEventsAsyncWithHttpInfo - * - * - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsAsyncWithHttpInfo($max_results_per_page = 100, $posted_after = null, $posted_before = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $request = $this->listFinancialEventsRequest($max_results_per_page, $posted_after, $posted_before, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listFinancialEvents' - * - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. (optional) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listFinancialEventsRequest($max_results_per_page = 100, $posted_after = null, $posted_before = null, $next_token = null) - { - if ($max_results_per_page !== null && $max_results_per_page > 100) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEvents, must be smaller than or equal to 100.'); - } - if ($max_results_per_page !== null && $max_results_per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEvents, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/finances/v0/financialEvents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($max_results_per_page)) { - $max_results_per_page = ObjectSerializer::serializeCollection($max_results_per_page, '', true); - } - if ($max_results_per_page !== null) { - $queryParams['MaxResultsPerPage'] = $max_results_per_page; - } - - // query params - if (is_array($posted_after)) { - $posted_after = ObjectSerializer::serializeCollection($posted_after, '', true); - } - if ($posted_after !== null) { - $queryParams['PostedAfter'] = $posted_after; - } - - // query params - if (is_array($posted_before)) { - $posted_before = ObjectSerializer::serializeCollection($posted_before, '', true); - } - if ($posted_before !== null) { - $queryParams['PostedBefore'] = $posted_before; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listFinancialEventsByGroupId - * - * @param string $event_group_id The identifier of the financial event group to which the events belong. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse - */ - public function listFinancialEventsByGroupId($event_group_id, $max_results_per_page = 100, $next_token = null, $posted_after = null, $posted_before = null) - { - $response = $this->listFinancialEventsByGroupIdWithHttpInfo($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before); - return $response; - } - - /** - * Operation listFinancialEventsByGroupIdWithHttpInfo - * - * @param string $event_group_id The identifier of the financial event group to which the events belong. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listFinancialEventsByGroupIdWithHttpInfo($event_group_id, $max_results_per_page = 100, $next_token = null, $posted_after = null, $posted_before = null) - { - $request = $this->listFinancialEventsByGroupIdRequest($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listFinancialEventsByGroupIdAsync - * - * - * - * @param string $event_group_id The identifier of the financial event group to which the events belong. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsByGroupIdAsync($event_group_id, $max_results_per_page = 100, $next_token = null, $posted_after = null, $posted_before = null) - { - return $this->listFinancialEventsByGroupIdAsyncWithHttpInfo($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before); - } - - /** - * Operation listFinancialEventsByGroupIdAsyncWithHttpInfo - * - * - * - * @param string $event_group_id The identifier of the financial event group to which the events belong. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsByGroupIdAsyncWithHttpInfo($event_group_id, $max_results_per_page = 100, $next_token = null, $posted_after = null, $posted_before = null) - { - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $request = $this->listFinancialEventsByGroupIdRequest($event_group_id, $max_results_per_page, $next_token, $posted_after, $posted_before); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listFinancialEventsByGroupId' - * - * @param string $event_group_id The identifier of the financial event group to which the events belong. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * @param string $posted_after A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. (optional) - * @param string $posted_before A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listFinancialEventsByGroupIdRequest($event_group_id, $max_results_per_page = 100, $next_token = null, $posted_after = null, $posted_before = null) - { - // verify the required parameter 'event_group_id' is set - if ($event_group_id === null || (is_array($event_group_id) && count($event_group_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $event_group_id when calling listFinancialEventsByGroupId' - ); - } - if ($max_results_per_page !== null && $max_results_per_page > 100) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventsByGroupId, must be smaller than or equal to 100.'); - } - if ($max_results_per_page !== null && $max_results_per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventsByGroupId, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/finances/v0/financialEventGroups/{eventGroupId}/financialEvents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($max_results_per_page)) { - $max_results_per_page = ObjectSerializer::serializeCollection($max_results_per_page, '', true); - } - if ($max_results_per_page !== null) { - $queryParams['MaxResultsPerPage'] = $max_results_per_page; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // query params - if (is_array($posted_after)) { - $posted_after = ObjectSerializer::serializeCollection($posted_after, '', true); - } - if ($posted_after !== null) { - $queryParams['PostedAfter'] = $posted_after; - } - - // query params - if (is_array($posted_before)) { - $posted_before = ObjectSerializer::serializeCollection($posted_before, '', true); - } - if ($posted_before !== null) { - $queryParams['PostedBefore'] = $posted_before; - } - - // path params - if ($event_group_id !== null) { - $resourcePath = str_replace( - '{' . 'eventGroupId' . '}', - ObjectSerializer::toPathValue($event_group_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listFinancialEventsByOrderId - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse - */ - public function listFinancialEventsByOrderId($order_id, $max_results_per_page = 100, $next_token = null) - { - $response = $this->listFinancialEventsByOrderIdWithHttpInfo($order_id, $max_results_per_page, $next_token); - return $response; - } - - /** - * Operation listFinancialEventsByOrderIdWithHttpInfo - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listFinancialEventsByOrderIdWithHttpInfo($order_id, $max_results_per_page = 100, $next_token = null) - { - $request = $this->listFinancialEventsByOrderIdRequest($order_id, $max_results_per_page, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listFinancialEventsByOrderIdAsync - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsByOrderIdAsync($order_id, $max_results_per_page = 100, $next_token = null) - { - return $this->listFinancialEventsByOrderIdAsyncWithHttpInfo($order_id, $max_results_per_page, $next_token); - } - - /** - * Operation listFinancialEventsByOrderIdAsyncWithHttpInfo - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listFinancialEventsByOrderIdAsyncWithHttpInfo($order_id, $max_results_per_page = 100, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsResponse'; - $request = $this->listFinancialEventsByOrderIdRequest($order_id, $max_results_per_page, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listFinancialEventsByOrderId' - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param int $max_results_per_page The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. (optional, default to 100) - * @param string $next_token A string token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listFinancialEventsByOrderIdRequest($order_id, $max_results_per_page = 100, $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 listFinancialEventsByOrderId' - ); - } - if ($max_results_per_page !== null && $max_results_per_page > 100) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventsByOrderId, must be smaller than or equal to 100.'); - } - if ($max_results_per_page !== null && $max_results_per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$max_results_per_page" when calling FinancesV0Api.listFinancialEventsByOrderId, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/finances/v0/orders/{orderId}/financialEvents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($max_results_per_page)) { - $max_results_per_page = ObjectSerializer::serializeCollection($max_results_per_page, '', true); - } - if ($max_results_per_page !== null) { - $queryParams['MaxResultsPerPage'] = $max_results_per_page; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ListingsRestrictionsV20210801Api.php b/lib/Api/ListingsRestrictionsV20210801Api.php deleted file mode 100644 index 173a4cffe..000000000 --- a/lib/Api/ListingsRestrictionsV20210801Api.php +++ /dev/null @@ -1,499 +0,0 @@ -getListingsRestrictionsWithHttpInfo($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale); - return $response; - } - - /** - * Operation getListingsRestrictionsWithHttpInfo - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string $seller_id A selling partner identifier, such as a merchant account. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $condition_type The condition used to filter restrictions. (optional) - * @param string $reason_locale A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList, HTTP status code, HTTP response headers (array of strings) - */ - public function getListingsRestrictionsWithHttpInfo($asin, $seller_id, $marketplace_ids, $condition_type = null, $reason_locale = null) - { - $request = $this->getListingsRestrictionsRequest($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getListingsRestrictionsAsync - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string $seller_id A selling partner identifier, such as a merchant account. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $condition_type The condition used to filter restrictions. (optional) - * @param string $reason_locale A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingsRestrictionsAsync($asin, $seller_id, $marketplace_ids, $condition_type = null, $reason_locale = null) - { - return $this->getListingsRestrictionsAsyncWithHttpInfo($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale); - } - - /** - * Operation getListingsRestrictionsAsyncWithHttpInfo - * - * - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string $seller_id A selling partner identifier, such as a merchant account. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $condition_type The condition used to filter restrictions. (optional) - * @param string $reason_locale A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingsRestrictionsAsyncWithHttpInfo($asin, $seller_id, $marketplace_ids, $condition_type = null, $reason_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\RestrictionList'; - $request = $this->getListingsRestrictionsRequest($asin, $seller_id, $marketplace_ids, $condition_type, $reason_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getListingsRestrictions' - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) - * @param string $seller_id A selling partner identifier, such as a merchant account. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $condition_type The condition used to filter restrictions. (optional) - * @param string $reason_locale A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getListingsRestrictionsRequest($asin, $seller_id, $marketplace_ids, $condition_type = null, $reason_locale = null) - { - // 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 getListingsRestrictions' - ); - } - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling getListingsRestrictions' - ); - } - // 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 getListingsRestrictions' - ); - } - - $resourcePath = '/listings/2021-08-01/restrictions'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['asin'] = $asin; - } - - // query params - if (is_array($condition_type)) { - $condition_type = ObjectSerializer::serializeCollection($condition_type, '', true); - } - if ($condition_type !== null) { - $queryParams['conditionType'] = $condition_type; - } - - // query params - if (is_array($seller_id)) { - $seller_id = ObjectSerializer::serializeCollection($seller_id, '', true); - } - if ($seller_id !== null) { - $queryParams['sellerId'] = $seller_id; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($reason_locale)) { - $reason_locale = ObjectSerializer::serializeCollection($reason_locale, '', true); - } - if ($reason_locale !== null) { - $queryParams['reasonLocale'] = $reason_locale; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ListingsV20200901Api.php b/lib/Api/ListingsV20200901Api.php deleted file mode 100644 index 960950954..000000000 --- a/lib/Api/ListingsV20200901Api.php +++ /dev/null @@ -1,1364 +0,0 @@ -deleteListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale); - return $response; - } - - /** - * Operation deleteListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - $request = $this->deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation deleteListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteListingsItemAsync($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - return $this->deleteListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale); - } - - /** - * Operation deleteListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $request = $this->deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'deleteListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling deleteListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling deleteListingsItem' - ); - } - // 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 deleteListingsItem' - ); - } - - $resourcePath = '/listings/2020-09-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation patchListingsItem - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse - */ - public function patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $response = $this->patchListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - return $response; - } - - /** - * Operation patchListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function patchListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $request = $this->patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation patchListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function patchListingsItemAsync($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - return $this->patchListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - } - - /** - * Operation patchListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function patchListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $request = $this->patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'patchListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling patchListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling patchListingsItem' - ); - } - // 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 patchListingsItem' - ); - } - // 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 patchListingsItem' - ); - } - - $resourcePath = '/listings/2020-09-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PATCH', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation putListingsItem - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse - */ - public function putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $response = $this->putListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - return $response; - } - - /** - * Operation putListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function putListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $request = $this->putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation putListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putListingsItemAsync($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - return $this->putListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - } - - /** - * Operation putListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20200901\ListingsItemSubmissionResponse'; - $request = $this->putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'putListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20200901\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling putListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling putListingsItem' - ); - } - // 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 putListingsItem' - ); - } - // 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 putListingsItem' - ); - } - - $resourcePath = '/listings/2020-09-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ListingsV20210801Api.php b/lib/Api/ListingsV20210801Api.php deleted file mode 100644 index 6095ab57d..000000000 --- a/lib/Api/ListingsV20210801Api.php +++ /dev/null @@ -1,1822 +0,0 @@ -deleteListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale); - return $response; - } - - /** - * Operation deleteListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - $request = $this->deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation deleteListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteListingsItemAsync($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - return $this->deleteListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale); - } - - /** - * Operation deleteListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $request = $this->deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'deleteListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function deleteListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling deleteListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling deleteListingsItem' - ); - } - // 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 deleteListingsItem' - ); - } - - $resourcePath = '/listings/2021-08-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getListingsItem - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ListingsV20210801\Item - */ - public function getListingsItem($seller_id, $sku, $marketplace_ids, $issue_locale = null, $included_data = null) - { - $response = $this->getListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data); - return $response; - } - - /** - * Operation getListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20210801\Item, HTTP status code, HTTP response headers (array of strings) - */ - public function getListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null, $included_data = null) - { - $request = $this->getListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20210801\Item' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\Item', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\Item'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\Item', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingsItemAsync($seller_id, $sku, $marketplace_ids, $issue_locale = null, $included_data = null) - { - return $this->getListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data); - } - - /** - * Operation getListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $issue_locale = null, $included_data = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\Item'; - $request = $this->getListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale, $included_data); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * @param string[] $included_data A comma-delimited list of data sets to include in the response. Default: summaries. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getListingsItemRequest($seller_id, $sku, $marketplace_ids, $issue_locale = null, $included_data = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling getListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling getListingsItem' - ); - } - // 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 getListingsItem' - ); - } - - $resourcePath = '/listings/2021-08-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // query params - if (is_array($included_data)) { - $included_data = ObjectSerializer::serializeCollection($included_data, 'form', true); - } - if ($included_data !== null) { - $queryParams['includedData'] = $included_data; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation patchListingsItem - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse - */ - public function patchListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $response = $this->patchListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - return $response; - } - - /** - * Operation patchListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function patchListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $request = $this->patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation patchListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function patchListingsItemAsync($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - return $this->patchListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - } - - /** - * Operation patchListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function patchListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $request = $this->patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'patchListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPatchRequest $body The request body schema for the patchListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function patchListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling patchListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling patchListingsItem' - ); - } - // 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 patchListingsItem' - ); - } - // 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 patchListingsItem' - ); - } - - $resourcePath = '/listings/2021-08-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PATCH', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation putListingsItem - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse - */ - public function putListingsItem($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $response = $this->putListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - return $response; - } - - /** - * Operation putListingsItemWithHttpInfo - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function putListingsItemWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $request = $this->putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ListingsV20210801\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ListingsV20210801\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation putListingsItemAsync - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putListingsItemAsync($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - return $this->putListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - } - - /** - * Operation putListingsItemAsyncWithHttpInfo - * - * - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putListingsItemAsyncWithHttpInfo($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - $returnType = '\SellingPartnerApi\Model\ListingsV20210801\ListingsItemSubmissionResponse'; - $request = $this->putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'putListingsItem' - * - * @param string $seller_id A selling partner identifier, such as a merchant account or vendor code. (required) - * @param string $sku A selling partner provided identifier for an Amazon listing. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param \SellingPartnerApi\Model\ListingsV20210801\ListingsItemPutRequest $body The request body schema for the putListingsItem operation. (required) - * @param string $issue_locale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function putListingsItemRequest($seller_id, $sku, $marketplace_ids, $body, $issue_locale = null) - { - // verify the required parameter 'seller_id' is set - if ($seller_id === null || (is_array($seller_id) && count($seller_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_id when calling putListingsItem' - ); - } - // verify the required parameter 'sku' is set - if ($sku === null || (is_array($sku) && count($sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sku when calling putListingsItem' - ); - } - // 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 putListingsItem' - ); - } - // 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 putListingsItem' - ); - } - - $resourcePath = '/listings/2021-08-01/items/{sellerId}/{sku}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($issue_locale)) { - $issue_locale = ObjectSerializer::serializeCollection($issue_locale, '', true); - } - if ($issue_locale !== null) { - $queryParams['issueLocale'] = $issue_locale; - } - - // path params - if ($seller_id !== null) { - $resourcePath = str_replace( - '{' . 'sellerId' . '}', - ObjectSerializer::toPathValue($seller_id), - $resourcePath - ); - } - - // path params - if ($sku !== null) { - $resourcePath = str_replace( - '{' . 'sku' . '}', - ObjectSerializer::toPathValue($sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/MerchantFulfillmentV0Api.php b/lib/Api/MerchantFulfillmentV0Api.php deleted file mode 100644 index f870631f7..000000000 --- a/lib/Api/MerchantFulfillmentV0Api.php +++ /dev/null @@ -1,3080 +0,0 @@ -cancelShipmentWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation cancelShipmentWithHttpInfo - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelShipmentWithHttpInfo($shipment_id) - { - $request = $this->cancelShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}", - "cancelShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelShipmentAsync - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsync($shipment_id) - { - return $this->cancelShipmentAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation cancelShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse'; - $request = $this->cancelShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}", - "cancelShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelShipment' - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 (!preg_match("/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/", $shipment_id)) { - throw new \InvalidArgumentException("invalid value for \"shipment_id\" when calling MerchantFulfillmentV0Api.cancelShipment, must conform to the pattern /[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/."); - } - - - $resourcePath = '/mfn/v0/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation cancelShipmentOld - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse - */ - public function cancelShipmentOld($shipment_id) - { - $response = $this->cancelShipmentOldWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation cancelShipmentOldWithHttpInfo - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelShipmentOldWithHttpInfo($shipment_id) - { - $request = $this->cancelShipmentOldRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}/cancel", - "cancelShipmentOld" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelShipmentOldAsync - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentOldAsync($shipment_id) - { - return $this->cancelShipmentOldAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation cancelShipmentOldAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentOldAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CancelShipmentResponse'; - $request = $this->cancelShipmentOldRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}/cancel", - "cancelShipmentOld" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelShipmentOld' - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment to cancel. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelShipmentOldRequest($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 cancelShipmentOld' - ); - } - if (!preg_match("/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/", $shipment_id)) { - throw new \InvalidArgumentException("invalid value for \"shipment_id\" when calling MerchantFulfillmentV0Api.cancelShipmentOld, must conform to the pattern /[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/."); - } - - - $resourcePath = '/mfn/v0/shipments/{shipmentId}/cancel'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createShipment - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse - */ - public function createShipment($body) - { - $response = $this->createShipmentWithHttpInfo($body); - return $response; - } - - /** - * Operation createShipmentWithHttpInfo - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createShipmentWithHttpInfo($body) - { - $request = $this->createShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments", - "createShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createShipmentAsync - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShipmentAsync($body) - { - return $this->createShipmentAsyncWithHttpInfo($body); - } - - /** - * Operation createShipmentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShipmentAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentResponse'; - $request = $this->createShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments", - "createShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createShipment' - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/mfn/v0/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAdditionalSellerInputs - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse - */ - public function getAdditionalSellerInputs($body) - { - $response = $this->getAdditionalSellerInputsWithHttpInfo($body); - return $response; - } - - /** - * Operation getAdditionalSellerInputsWithHttpInfo - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAdditionalSellerInputsWithHttpInfo($body) - { - $request = $this->getAdditionalSellerInputsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAdditionalSellerInputsAsync - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalSellerInputsAsync($body) - { - return $this->getAdditionalSellerInputsAsyncWithHttpInfo($body); - } - - /** - * Operation getAdditionalSellerInputsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalSellerInputsAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse'; - $request = $this->getAdditionalSellerInputsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAdditionalSellerInputs' - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAdditionalSellerInputsRequest($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 getAdditionalSellerInputs' - ); - } - - $resourcePath = '/mfn/v0/additionalSellerInputs'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAdditionalSellerInputsOld - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse - */ - public function getAdditionalSellerInputsOld($body) - { - $response = $this->getAdditionalSellerInputsOldWithHttpInfo($body); - return $response; - } - - /** - * Operation getAdditionalSellerInputsOldWithHttpInfo - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAdditionalSellerInputsOldWithHttpInfo($body) - { - $request = $this->getAdditionalSellerInputsOldRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAdditionalSellerInputsOldAsync - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalSellerInputsOldAsync($body) - { - return $this->getAdditionalSellerInputsOldAsyncWithHttpInfo($body); - } - - /** - * Operation getAdditionalSellerInputsOldAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalSellerInputsOldAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResponse'; - $request = $this->getAdditionalSellerInputsOldRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAdditionalSellerInputsOld' - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAdditionalSellerInputsOldRequest($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 getAdditionalSellerInputsOld' - ); - } - - $resourcePath = '/mfn/v0/sellerInputs'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getEligibleShipmentServices - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse - */ - public function getEligibleShipmentServices($body) - { - $response = $this->getEligibleShipmentServicesWithHttpInfo($body); - return $response; - } - - /** - * Operation getEligibleShipmentServicesWithHttpInfo - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getEligibleShipmentServicesWithHttpInfo($body) - { - $request = $this->getEligibleShipmentServicesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getEligibleShipmentServicesAsync - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getEligibleShipmentServicesAsync($body) - { - return $this->getEligibleShipmentServicesAsyncWithHttpInfo($body); - } - - /** - * Operation getEligibleShipmentServicesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getEligibleShipmentServicesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse'; - $request = $this->getEligibleShipmentServicesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getEligibleShipmentServices' - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getEligibleShipmentServicesRequest($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 getEligibleShipmentServices' - ); - } - - $resourcePath = '/mfn/v0/eligibleShippingServices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getEligibleShipmentServicesOld - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse - */ - public function getEligibleShipmentServicesOld($body) - { - $response = $this->getEligibleShipmentServicesOldWithHttpInfo($body); - return $response; - } - - /** - * Operation getEligibleShipmentServicesOldWithHttpInfo - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getEligibleShipmentServicesOldWithHttpInfo($body) - { - $request = $this->getEligibleShipmentServicesOldRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getEligibleShipmentServicesOldAsync - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getEligibleShipmentServicesOldAsync($body) - { - return $this->getEligibleShipmentServicesOldAsyncWithHttpInfo($body); - } - - /** - * Operation getEligibleShipmentServicesOldAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getEligibleShipmentServicesOldAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResponse'; - $request = $this->getEligibleShipmentServicesOldRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getEligibleShipmentServicesOld' - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getEligibleShipmentServicesOldRequest($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 getEligibleShipmentServicesOld' - ); - } - - $resourcePath = '/mfn/v0/eligibleServices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipment - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse - */ - public function getShipment($shipment_id) - { - $response = $this->getShipmentWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getShipmentWithHttpInfo - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentWithHttpInfo($shipment_id) - { - $request = $this->getShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}", - "getShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentAsync - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentAsync($shipment_id) - { - return $this->getShipmentAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetShipmentResponse'; - $request = $this->getShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/mfn/v0/shipments/{shipmentId}", - "getShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipment' - * - * @param string $shipment_id The Amazon-defined shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 (!preg_match("/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/", $shipment_id)) { - throw new \InvalidArgumentException("invalid value for \"shipment_id\" when calling MerchantFulfillmentV0Api.getShipment, must conform to the pattern /[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/."); - } - - - $resourcePath = '/mfn/v0/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/MessagingV1Api.php b/lib/Api/MessagingV1Api.php deleted file mode 100644 index 554bf0e6c..000000000 --- a/lib/Api/MessagingV1Api.php +++ /dev/null @@ -1,5621 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Api; - -use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; -use GuzzleHttp\Psr7\Request; -use SellingPartnerApi\ApiException; -use SellingPartnerApi\ObjectSerializer; - -/** - * MessagingV1Api Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - */ -class MessagingV1Api extends BaseApi -{ - /** - * Operation confirmCustomizationDetails - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse - */ - public function confirmCustomizationDetails($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->confirmCustomizationDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation confirmCustomizationDetailsWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function confirmCustomizationDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->confirmCustomizationDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation confirmCustomizationDetailsAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmCustomizationDetailsAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->confirmCustomizationDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation confirmCustomizationDetailsAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmCustomizationDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsResponse'; - $request = $this->confirmCustomizationDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'confirmCustomizationDetails' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmCustomizationDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function confirmCustomizationDetailsRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 confirmCustomizationDetails' - ); - } - // 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 confirmCustomizationDetails' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.confirmCustomizationDetails, number of items must be less than or equal to 1.'); - } - - // 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 confirmCustomizationDetails' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/confirmCustomizationDetails'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createAmazonMotors - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse - */ - public function createAmazonMotors($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createAmazonMotorsWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createAmazonMotorsWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createAmazonMotorsWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createAmazonMotorsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createAmazonMotorsAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createAmazonMotorsAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createAmazonMotorsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createAmazonMotorsAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createAmazonMotorsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsResponse'; - $request = $this->createAmazonMotorsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createAmazonMotors' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateAmazonMotorsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createAmazonMotorsRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createAmazonMotors' - ); - } - // 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 createAmazonMotors' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createAmazonMotors, number of items must be less than or equal to 1.'); - } - - // 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 createAmazonMotors' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/amazonMotors'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createConfirmDeliveryDetails - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse - */ - public function createConfirmDeliveryDetails($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createConfirmDeliveryDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createConfirmDeliveryDetailsWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createConfirmDeliveryDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createConfirmDeliveryDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createConfirmDeliveryDetailsAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmDeliveryDetailsAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createConfirmDeliveryDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createConfirmDeliveryDetailsAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmDeliveryDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsResponse'; - $request = $this->createConfirmDeliveryDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createConfirmDeliveryDetails' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmDeliveryDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createConfirmDeliveryDetailsRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createConfirmDeliveryDetails' - ); - } - // 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 createConfirmDeliveryDetails' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createConfirmDeliveryDetails, number of items must be less than or equal to 1.'); - } - - // 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 createConfirmDeliveryDetails' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/confirmDeliveryDetails'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createConfirmOrderDetails - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse - */ - public function createConfirmOrderDetails($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createConfirmOrderDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createConfirmOrderDetailsWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createConfirmOrderDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createConfirmOrderDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createConfirmOrderDetailsAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmOrderDetailsAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createConfirmOrderDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createConfirmOrderDetailsAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmOrderDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsResponse'; - $request = $this->createConfirmOrderDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createConfirmOrderDetails' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmOrderDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createConfirmOrderDetailsRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createConfirmOrderDetails' - ); - } - // 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 createConfirmOrderDetails' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createConfirmOrderDetails, number of items must be less than or equal to 1.'); - } - - // 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 createConfirmOrderDetails' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/confirmOrderDetails'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createConfirmServiceDetails - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse - */ - public function createConfirmServiceDetails($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createConfirmServiceDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createConfirmServiceDetailsWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createConfirmServiceDetailsWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createConfirmServiceDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createConfirmServiceDetailsAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmServiceDetailsAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createConfirmServiceDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createConfirmServiceDetailsAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createConfirmServiceDetailsAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsResponse'; - $request = $this->createConfirmServiceDetailsRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createConfirmServiceDetails' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateConfirmServiceDetailsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createConfirmServiceDetailsRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createConfirmServiceDetails' - ); - } - // 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 createConfirmServiceDetails' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createConfirmServiceDetails, number of items must be less than or equal to 1.'); - } - - // 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 createConfirmServiceDetails' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/confirmServiceDetails'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createDigitalAccessKey - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse - */ - public function createDigitalAccessKey($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createDigitalAccessKeyWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createDigitalAccessKeyWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createDigitalAccessKeyWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createDigitalAccessKeyRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createDigitalAccessKeyAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createDigitalAccessKeyAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createDigitalAccessKeyAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createDigitalAccessKeyAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createDigitalAccessKeyAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyResponse'; - $request = $this->createDigitalAccessKeyRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createDigitalAccessKey' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateDigitalAccessKeyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createDigitalAccessKeyRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createDigitalAccessKey' - ); - } - // 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 createDigitalAccessKey' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createDigitalAccessKey, number of items must be less than or equal to 1.'); - } - - // 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 createDigitalAccessKey' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/digitalAccessKey'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createLegalDisclosure - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse - */ - public function createLegalDisclosure($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createLegalDisclosureWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createLegalDisclosureWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createLegalDisclosureWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createLegalDisclosureRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createLegalDisclosureAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createLegalDisclosureAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createLegalDisclosureAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createLegalDisclosureAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createLegalDisclosureAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureResponse'; - $request = $this->createLegalDisclosureRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createLegalDisclosure' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateLegalDisclosureRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createLegalDisclosureRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createLegalDisclosure' - ); - } - // 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 createLegalDisclosure' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createLegalDisclosure, number of items must be less than or equal to 1.'); - } - - // 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 createLegalDisclosure' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createNegativeFeedbackRemoval - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse - */ - public function createNegativeFeedbackRemoval($amazon_order_id, $marketplace_ids) - { - $response = $this->createNegativeFeedbackRemovalWithHttpInfo($amazon_order_id, $marketplace_ids); - return $response; - } - - /** - * Operation createNegativeFeedbackRemovalWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createNegativeFeedbackRemovalWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $request = $this->createNegativeFeedbackRemovalRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createNegativeFeedbackRemovalAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 createNegativeFeedbackRemovalAsync($amazon_order_id, $marketplace_ids) - { - return $this->createNegativeFeedbackRemovalAsyncWithHttpInfo($amazon_order_id, $marketplace_ids); - } - - /** - * Operation createNegativeFeedbackRemovalAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 createNegativeFeedbackRemovalAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateNegativeFeedbackRemovalResponse'; - $request = $this->createNegativeFeedbackRemovalRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createNegativeFeedbackRemoval' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 - */ - public function createNegativeFeedbackRemovalRequest($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 createNegativeFeedbackRemoval' - ); - } - // 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 createNegativeFeedbackRemoval' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createNegativeFeedbackRemoval, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/negativeFeedbackRemoval'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createUnexpectedProblem - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse - */ - public function createUnexpectedProblem($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createUnexpectedProblemWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createUnexpectedProblemWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createUnexpectedProblemWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createUnexpectedProblemRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createUnexpectedProblemAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createUnexpectedProblemAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createUnexpectedProblemAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createUnexpectedProblemAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createUnexpectedProblemAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemResponse'; - $request = $this->createUnexpectedProblemRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createUnexpectedProblem' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateUnexpectedProblemRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createUnexpectedProblemRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createUnexpectedProblem' - ); - } - // 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 createUnexpectedProblem' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createUnexpectedProblem, number of items must be less than or equal to 1.'); - } - - // 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 createUnexpectedProblem' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/unexpectedProblem'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createWarranty - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse - */ - public function createWarranty($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->createWarrantyWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation createWarrantyWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createWarrantyWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->createWarrantyRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createWarrantyAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createWarrantyAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->createWarrantyAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation createWarrantyAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createWarrantyAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\CreateWarrantyResponse'; - $request = $this->createWarrantyRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createWarranty' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\CreateWarrantyRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createWarrantyRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 createWarranty' - ); - } - // 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 createWarranty' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.createWarranty, number of items must be less than or equal to 1.'); - } - - // 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 createWarranty' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/warranty'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAttributes - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\GetAttributesResponse - */ - public function getAttributes($amazon_order_id, $marketplace_ids) - { - $response = $this->getAttributesWithHttpInfo($amazon_order_id, $marketplace_ids); - return $response; - } - - /** - * Operation getAttributesWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\GetAttributesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAttributesWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $request = $this->getAttributesRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAttributesAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 getAttributesAsync($amazon_order_id, $marketplace_ids) - { - return $this->getAttributesAsyncWithHttpInfo($amazon_order_id, $marketplace_ids); - } - - /** - * Operation getAttributesAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 getAttributesAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponse'; - $request = $this->getAttributesRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAttributes' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 - */ - public function getAttributesRequest($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 getAttributes' - ); - } - // 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 getAttributes' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.getAttributes, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/attributes'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getMessagingActionsForOrder - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse - */ - public function getMessagingActionsForOrder($amazon_order_id, $marketplace_ids) - { - $response = $this->getMessagingActionsForOrderWithHttpInfo($amazon_order_id, $marketplace_ids); - return $response; - } - - /** - * Operation getMessagingActionsForOrderWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getMessagingActionsForOrderWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $request = $this->getMessagingActionsForOrderRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getMessagingActionsForOrderAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message 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 getMessagingActionsForOrderAsync($amazon_order_id, $marketplace_ids) - { - return $this->getMessagingActionsForOrderAsyncWithHttpInfo($amazon_order_id, $marketplace_ids); - } - - /** - * Operation getMessagingActionsForOrderAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message 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 getMessagingActionsForOrderAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponse'; - $request = $this->getMessagingActionsForOrderRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getMessagingActionsForOrder' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available message 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 - */ - public function getMessagingActionsForOrderRequest($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 getMessagingActionsForOrder' - ); - } - // 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 getMessagingActionsForOrder' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.getMessagingActionsForOrder, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation sendInvoice - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\InvoiceRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\MessagingV1\InvoiceResponse - */ - public function sendInvoice($amazon_order_id, $marketplace_ids, $body) - { - $response = $this->sendInvoiceWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation sendInvoiceWithHttpInfo - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\InvoiceRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\MessagingV1\InvoiceResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function sendInvoiceWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $request = $this->sendInvoiceRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\MessagingV1\InvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation sendInvoiceAsync - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\InvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function sendInvoiceAsync($amazon_order_id, $marketplace_ids, $body) - { - return $this->sendInvoiceAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body); - } - - /** - * Operation sendInvoiceAsyncWithHttpInfo - * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\InvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function sendInvoiceAsyncWithHttpInfo($amazon_order_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\MessagingV1\InvoiceResponse'; - $request = $this->sendInvoiceRequest($amazon_order_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'sendInvoice' - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a message 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 \SellingPartnerApi\Model\MessagingV1\InvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function sendInvoiceRequest($amazon_order_id, $marketplace_ids, $body) - { - // 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 sendInvoice' - ); - } - // 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 sendInvoice' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling MessagingV1Api.sendInvoice, number of items must be less than or equal to 1.'); - } - - // 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 sendInvoice' - ); - } - - $resourcePath = '/messaging/v1/orders/{amazonOrderId}/messages/invoice'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/NotificationsV1Api.php b/lib/Api/NotificationsV1Api.php deleted file mode 100644 index a160708f3..000000000 --- a/lib/Api/NotificationsV1Api.php +++ /dev/null @@ -1,3351 +0,0 @@ -createDestinationWithHttpInfo($body); - return $response; - } - - /** - * Operation createDestinationWithHttpInfo - * - * @param \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createDestinationWithHttpInfo($body) - { - $request = $this->createDestinationRequest($body); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createDestinationAsync - * - * - * - * @param \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createDestinationAsync($body) - { - return $this->createDestinationAsyncWithHttpInfo($body); - } - - /** - * Operation createDestinationAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createDestinationAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\CreateDestinationResponse'; - $request = $this->createDestinationRequest($body); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createDestination' - * - * @param \SellingPartnerApi\Model\NotificationsV1\CreateDestinationRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createDestinationRequest($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 createDestination' - ); - } - - $resourcePath = '/notifications/v1/destinations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - ['application/json'], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createSubscription - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * @param \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse - */ - public function createSubscription($notification_type, $body) - { - $response = $this->createSubscriptionWithHttpInfo($notification_type, $body); - return $response; - } - - /** - * Operation createSubscriptionWithHttpInfo - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * @param \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createSubscriptionWithHttpInfo($notification_type, $body) - { - $request = $this->createSubscriptionRequest($notification_type, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createSubscriptionAsync - * - * - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * @param \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createSubscriptionAsync($notification_type, $body) - { - return $this->createSubscriptionAsyncWithHttpInfo($notification_type, $body); - } - - /** - * Operation createSubscriptionAsyncWithHttpInfo - * - * - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * @param \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createSubscriptionAsyncWithHttpInfo($notification_type, $body) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionResponse'; - $request = $this->createSubscriptionRequest($notification_type, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createSubscription' - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * @param \SellingPartnerApi\Model\NotificationsV1\CreateSubscriptionRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createSubscriptionRequest($notification_type, $body) - { - // verify the required parameter 'notification_type' is set - if ($notification_type === null || (is_array($notification_type) && count($notification_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $notification_type when calling createSubscription' - ); - } - // 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 createSubscription' - ); - } - - $resourcePath = '/notifications/v1/subscriptions/{notificationType}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($notification_type !== null) { - $resourcePath = str_replace( - '{' . 'notificationType' . '}', - ObjectSerializer::toPathValue($notification_type), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation deleteDestination - * - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse - */ - public function deleteDestination($destination_id) - { - $response = $this->deleteDestinationWithHttpInfo($destination_id); - return $response; - } - - /** - * Operation deleteDestinationWithHttpInfo - * - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteDestinationWithHttpInfo($destination_id) - { - $request = $this->deleteDestinationRequest($destination_id); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation deleteDestinationAsync - * - * - * - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteDestinationAsync($destination_id) - { - return $this->deleteDestinationAsyncWithHttpInfo($destination_id); - } - - /** - * Operation deleteDestinationAsyncWithHttpInfo - * - * - * - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteDestinationAsyncWithHttpInfo($destination_id) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\DeleteDestinationResponse'; - $request = $this->deleteDestinationRequest($destination_id); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'deleteDestination' - * - * @param string $destination_id The identifier for the destination that you want to delete. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function deleteDestinationRequest($destination_id) - { - // verify the required parameter 'destination_id' is set - if ($destination_id === null || (is_array($destination_id) && count($destination_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $destination_id when calling deleteDestination' - ); - } - - $resourcePath = '/notifications/v1/destinations/{destinationId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($destination_id !== null) { - $resourcePath = str_replace( - '{' . 'destinationId' . '}', - ObjectSerializer::toPathValue($destination_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - [], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation deleteSubscriptionById - * - * @param string $subscription_id The identifier for the subscription that you want to delete. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse - */ - public function deleteSubscriptionById($subscription_id, $notification_type) - { - $response = $this->deleteSubscriptionByIdWithHttpInfo($subscription_id, $notification_type); - return $response; - } - - /** - * Operation deleteSubscriptionByIdWithHttpInfo - * - * @param string $subscription_id The identifier for the subscription that you want to delete. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteSubscriptionByIdWithHttpInfo($subscription_id, $notification_type) - { - $request = $this->deleteSubscriptionByIdRequest($subscription_id, $notification_type); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation deleteSubscriptionByIdAsync - * - * - * - * @param string $subscription_id The identifier for the subscription that you want to delete. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteSubscriptionByIdAsync($subscription_id, $notification_type) - { - return $this->deleteSubscriptionByIdAsyncWithHttpInfo($subscription_id, $notification_type); - } - - /** - * Operation deleteSubscriptionByIdAsyncWithHttpInfo - * - * - * - * @param string $subscription_id The identifier for the subscription that you want to delete. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteSubscriptionByIdAsyncWithHttpInfo($subscription_id, $notification_type) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\DeleteSubscriptionByIdResponse'; - $request = $this->deleteSubscriptionByIdRequest($subscription_id, $notification_type); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'deleteSubscriptionById' - * - * @param string $subscription_id The identifier for the subscription that you want to delete. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function deleteSubscriptionByIdRequest($subscription_id, $notification_type) - { - // verify the required parameter 'subscription_id' is set - if ($subscription_id === null || (is_array($subscription_id) && count($subscription_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $subscription_id when calling deleteSubscriptionById' - ); - } - // verify the required parameter 'notification_type' is set - if ($notification_type === null || (is_array($notification_type) && count($notification_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $notification_type when calling deleteSubscriptionById' - ); - } - - $resourcePath = '/notifications/v1/subscriptions/{notificationType}/{subscriptionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($subscription_id !== null) { - $resourcePath = str_replace( - '{' . 'subscriptionId' . '}', - ObjectSerializer::toPathValue($subscription_id), - $resourcePath - ); - } - - // path params - if ($notification_type !== null) { - $resourcePath = str_replace( - '{' . 'notificationType' . '}', - ObjectSerializer::toPathValue($notification_type), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Operation Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Operation Response'], - [], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getDestination - * - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse - */ - public function getDestination($destination_id) - { - $response = $this->getDestinationWithHttpInfo($destination_id); - return $response; - } - - /** - * Operation getDestinationWithHttpInfo - * - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getDestinationWithHttpInfo($destination_id) - { - $request = $this->getDestinationRequest($destination_id); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getDestinationAsync - * - * - * - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDestinationAsync($destination_id) - { - return $this->getDestinationAsyncWithHttpInfo($destination_id); - } - - /** - * Operation getDestinationAsyncWithHttpInfo - * - * - * - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDestinationAsyncWithHttpInfo($destination_id) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetDestinationResponse'; - $request = $this->getDestinationRequest($destination_id); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getDestination' - * - * @param string $destination_id The identifier generated when you created the destination. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getDestinationRequest($destination_id) - { - // verify the required parameter 'destination_id' is set - if ($destination_id === null || (is_array($destination_id) && count($destination_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $destination_id when calling getDestination' - ); - } - - $resourcePath = '/notifications/v1/destinations/{destinationId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($destination_id !== null) { - $resourcePath = str_replace( - '{' . 'destinationId' . '}', - ObjectSerializer::toPathValue($destination_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - [], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getDestinations - * - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse - */ - public function getDestinations() - { - $response = $this->getDestinationsWithHttpInfo(); - return $response; - } - - /** - * Operation getDestinationsWithHttpInfo - * - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getDestinationsWithHttpInfo() - { - $request = $this->getDestinationsRequest(); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getDestinationsAsync - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDestinationsAsync() - { - return $this->getDestinationsAsyncWithHttpInfo(); - } - - /** - * Operation getDestinationsAsyncWithHttpInfo - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDestinationsAsyncWithHttpInfo() - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetDestinationsResponse'; - $request = $this->getDestinationsRequest(); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getDestinations' - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getDestinationsRequest() - { - - $resourcePath = '/notifications/v1/destinations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - [], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSubscription - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse - */ - public function getSubscription($notification_type) - { - $response = $this->getSubscriptionWithHttpInfo($notification_type); - return $response; - } - - /** - * Operation getSubscriptionWithHttpInfo - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getSubscriptionWithHttpInfo($notification_type) - { - $request = $this->getSubscriptionRequest($notification_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSubscriptionAsync - * - * - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSubscriptionAsync($notification_type) - { - return $this->getSubscriptionAsyncWithHttpInfo($notification_type); - } - - /** - * Operation getSubscriptionAsyncWithHttpInfo - * - * - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSubscriptionAsyncWithHttpInfo($notification_type) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse'; - $request = $this->getSubscriptionRequest($notification_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSubscription' - * - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getSubscriptionRequest($notification_type) - { - // verify the required parameter 'notification_type' is set - if ($notification_type === null || (is_array($notification_type) && count($notification_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $notification_type when calling getSubscription' - ); - } - - $resourcePath = '/notifications/v1/subscriptions/{notificationType}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($notification_type !== null) { - $resourcePath = str_replace( - '{' . 'notificationType' . '}', - ObjectSerializer::toPathValue($notification_type), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSubscriptionById - * - * @param string $subscription_id The identifier for the subscription that you want to get. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse - */ - public function getSubscriptionById($subscription_id, $notification_type) - { - $response = $this->getSubscriptionByIdWithHttpInfo($subscription_id, $notification_type); - return $response; - } - - /** - * Operation getSubscriptionByIdWithHttpInfo - * - * @param string $subscription_id The identifier for the subscription that you want to get. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getSubscriptionByIdWithHttpInfo($subscription_id, $notification_type) - { - $request = $this->getSubscriptionByIdRequest($subscription_id, $notification_type); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSubscriptionByIdAsync - * - * - * - * @param string $subscription_id The identifier for the subscription that you want to get. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSubscriptionByIdAsync($subscription_id, $notification_type) - { - return $this->getSubscriptionByIdAsyncWithHttpInfo($subscription_id, $notification_type); - } - - /** - * Operation getSubscriptionByIdAsyncWithHttpInfo - * - * - * - * @param string $subscription_id The identifier for the subscription that you want to get. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSubscriptionByIdAsyncWithHttpInfo($subscription_id, $notification_type) - { - $returnType = '\SellingPartnerApi\Model\NotificationsV1\GetSubscriptionByIdResponse'; - $request = $this->getSubscriptionByIdRequest($subscription_id, $notification_type); - $signedRequest = $this->config->signRequest( - $request, - "sellingpartnerapi::notifications" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSubscriptionById' - * - * @param string $subscription_id The identifier for the subscription that you want to get. (required) - * @param string $notification_type The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getSubscriptionByIdRequest($subscription_id, $notification_type) - { - // verify the required parameter 'subscription_id' is set - if ($subscription_id === null || (is_array($subscription_id) && count($subscription_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $subscription_id when calling getSubscriptionById' - ); - } - // verify the required parameter 'notification_type' is set - if ($notification_type === null || (is_array($notification_type) && count($notification_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $notification_type when calling getSubscriptionById' - ); - } - - $resourcePath = '/notifications/v1/subscriptions/{notificationType}/{subscriptionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($subscription_id !== null) { - $resourcePath = str_replace( - '{' . 'subscriptionId' . '}', - ObjectSerializer::toPathValue($subscription_id), - $resourcePath - ); - } - - // path params - if ($notification_type !== null) { - $resourcePath = str_replace( - '{' . 'notificationType' . '}', - ObjectSerializer::toPathValue($notification_type), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'Successful Response'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'Successful Response'], - [], - "sellingpartnerapi::notifications" - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/OrdersV0Api.php b/lib/Api/OrdersV0Api.php deleted file mode 100644 index 9ff1a55d0..000000000 --- a/lib/Api/OrdersV0Api.php +++ /dev/null @@ -1,3981 +0,0 @@ -confirmShipmentWithHttpInfo($order_id, $payload); - } - - /** - * Operation confirmShipmentWithHttpInfo - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function confirmShipmentWithHttpInfo($order_id, $payload) - { - $request = $this->confirmShipmentRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation confirmShipmentAsync - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmShipmentAsync($order_id, $payload) - { - return $this->confirmShipmentAsyncWithHttpInfo($order_id, $payload); - } - - /** - * Operation confirmShipmentAsyncWithHttpInfo - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function confirmShipmentAsyncWithHttpInfo($order_id, $payload) - { - $returnType = ''; - $request = $this->confirmShipmentRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'confirmShipment' - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function confirmShipmentRequest($order_id, $payload) - { - // 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 confirmShipment' - ); - } - // verify the required parameter 'payload' is set - if ($payload === null || (is_array($payload) && count($payload) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $payload when calling confirmShipment' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/shipmentConfirmation'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($payload)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($payload)); - } else { - $httpBody = $payload; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrder - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderResponse - */ - public function getOrder($order_id, $data_elements = null) - { - $response = $this->getOrderWithHttpInfo($order_id, $data_elements); - return $response; - } - - /** - * Operation getOrderWithHttpInfo - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderWithHttpInfo($order_id, $data_elements = null) - { - $request = $this->getOrderRequest($order_id, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderAsync - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsync($order_id, $data_elements = null) - { - return $this->getOrderAsyncWithHttpInfo($order_id, $data_elements); - } - - /** - * Operation getOrderAsyncWithHttpInfo - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsyncWithHttpInfo($order_id, $data_elements = null) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderResponse'; - $request = $this->getOrderRequest($order_id, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrder' - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderRequest($order_id, $data_elements = 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 getOrder' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($data_elements)) { - $data_elements = ObjectSerializer::serializeCollection($data_elements, 'form', true); - } - if ($data_elements !== null) { - $queryParams['dataElements'] = $data_elements; - } - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderAddress - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse - */ - public function getOrderAddress($order_id) - { - $response = $this->getOrderAddressWithHttpInfo($order_id); - return $response; - } - - /** - * Operation getOrderAddressWithHttpInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderAddressWithHttpInfo($order_id) - { - $request = $this->getOrderAddressRequest($order_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/address", - "getOrderAddress" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderAddressAsync - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAddressAsync($order_id) - { - return $this->getOrderAddressAsyncWithHttpInfo($order_id); - } - - /** - * Operation getOrderAddressAsyncWithHttpInfo - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAddressAsyncWithHttpInfo($order_id) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderAddressResponse'; - $request = $this->getOrderAddressRequest($order_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/address", - "getOrderAddress" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderAddress' - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/address'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderBuyerInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse - */ - public function getOrderBuyerInfo($order_id) - { - $response = $this->getOrderBuyerInfoWithHttpInfo($order_id); - return $response; - } - - /** - * Operation getOrderBuyerInfoWithHttpInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderBuyerInfoWithHttpInfo($order_id) - { - $request = $this->getOrderBuyerInfoRequest($order_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/buyerInfo", - "getOrderBuyerInfo" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderBuyerInfoAsync - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderBuyerInfoAsync($order_id) - { - return $this->getOrderBuyerInfoAsyncWithHttpInfo($order_id); - } - - /** - * Operation getOrderBuyerInfoAsyncWithHttpInfo - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderBuyerInfoAsyncWithHttpInfo($order_id) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderBuyerInfoResponse'; - $request = $this->getOrderBuyerInfoRequest($order_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/buyerInfo", - "getOrderBuyerInfo" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderBuyerInfo' - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/buyerInfo'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderItems - * - * @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) - * @param string[] $data_elements An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse - */ - public function getOrderItems($order_id, $next_token = null, $data_elements = null) - { - $response = $this->getOrderItemsWithHttpInfo($order_id, $next_token, $data_elements); - return $response; - } - - /** - * Operation getOrderItemsWithHttpInfo - * - * @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) - * @param string[] $data_elements An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderItemsWithHttpInfo($order_id, $next_token = null, $data_elements = null) - { - $request = $this->getOrderItemsRequest($order_id, $next_token, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/orderItems", - "getOrderItems" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderItemsAsync - * - * - * - * @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) - * @param string[] $data_elements An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderItemsAsync($order_id, $next_token = null, $data_elements = null) - { - return $this->getOrderItemsAsyncWithHttpInfo($order_id, $next_token, $data_elements); - } - - /** - * Operation getOrderItemsAsyncWithHttpInfo - * - * - * - * @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) - * @param string[] $data_elements An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderItemsAsyncWithHttpInfo($order_id, $next_token = null, $data_elements = null) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsResponse'; - $request = $this->getOrderItemsRequest($order_id, $next_token, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/orderItems", - "getOrderItems" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderItems' - * - * @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) - * @param string[] $data_elements An array of restricted order data elements to retrieve (the only valid array element is \"buyerInfo\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderItemsRequest($order_id, $next_token = null, $data_elements = 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' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/orderItems'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // query params - if (is_array($data_elements)) { - $data_elements = ObjectSerializer::serializeCollection($data_elements, 'form', true); - } - if ($data_elements !== null) { - $queryParams['dataElements'] = $data_elements; - } - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderItemsBuyerInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse - */ - public function getOrderItemsBuyerInfo($order_id, $next_token = null) - { - $response = $this->getOrderItemsBuyerInfoWithHttpInfo($order_id, $next_token); - return $response; - } - - /** - * Operation getOrderItemsBuyerInfoWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderItemsBuyerInfoWithHttpInfo($order_id, $next_token = null) - { - $request = $this->getOrderItemsBuyerInfoRequest($order_id, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/orderItems/buyerInfo", - "getOrderItemsBuyerInfo" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderItemsBuyerInfoAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderItemsBuyerInfoAsync($order_id, $next_token = null) - { - return $this->getOrderItemsBuyerInfoAsyncWithHttpInfo($order_id, $next_token); - } - - /** - * Operation getOrderItemsBuyerInfoAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderItemsBuyerInfoAsyncWithHttpInfo($order_id, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderItemsBuyerInfoResponse'; - $request = $this->getOrderItemsBuyerInfoRequest($order_id, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders/{orderId}/orderItems/buyerInfo", - "getOrderItemsBuyerInfo" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderItemsBuyerInfo' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/orderItems/buyerInfo'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderRegulatedInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse - */ - public function getOrderRegulatedInfo($order_id) - { - $response = $this->getOrderRegulatedInfoWithHttpInfo($order_id); - return $response; - } - - /** - * Operation getOrderRegulatedInfoWithHttpInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderRegulatedInfoWithHttpInfo($order_id) - { - $request = $this->getOrderRegulatedInfoRequest($order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderRegulatedInfoAsync - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderRegulatedInfoAsync($order_id) - { - return $this->getOrderRegulatedInfoAsyncWithHttpInfo($order_id); - } - - /** - * Operation getOrderRegulatedInfoAsyncWithHttpInfo - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderRegulatedInfoAsyncWithHttpInfo($order_id) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrderRegulatedInfoResponse'; - $request = $this->getOrderRegulatedInfoRequest($order_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderRegulatedInfo' - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderRegulatedInfoRequest($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 getOrderRegulatedInfo' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/regulatedInfo'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'PendingOrder', 'ApprovedOrder', 'RejectedOrder'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'PendingOrder', 'ApprovedOrder', 'RejectedOrder'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrders - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. (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.) - * - `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: AFN (Fulfillment by Amazon); MFN (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:** - * - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - * - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - * - `PendingDropOff` (The seller will deliver the package to the carrier.) - * - `LabelCanceled` (The seller canceled the pickup.) - * - `PickedUp` (Amazon has picked up the package from the seller.) - * - `DroppedOff` (The package is delivered to the carrier by the seller.) - * - `AtOriginFC` (The packaged is at the origin fulfillment center.) - * - `AtDestinationFC` (The package is at the destination fulfillment center.) - * - `Delivered` (The package has been delivered.) - * - `RejectedByBuyer` (The package has been rejected by the buyer.) - * - `Undeliverable` (The package cannot be delivered.) - * - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - * - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - * - `Lost` (The package is lost.) - * - `OutForDelivery` (The package is out for delivery.) - * - `Damaged` (The package was damaged by the carrier.) (optional) - * @param string[] $electronic_invoice_statuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - * **Possible values:** - * - `NotRequired` (Electronic invoice submission is not required for this order.) - * - `NotFound` (The electronic invoice was not submitted for this order.) - * - `Processing` (The electronic invoice is being processed for this order.) - * - `Errored` (The last submitted electronic invoice was rejected for this order.) - * - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) - * @param string $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 $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\OrdersV0\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, $electronic_invoice_statuses = null, $next_token = null, $amazon_order_ids = null, $actual_fulfillment_supply_source_id = null, $is_ispu = null, $store_chain_store_id = null, $data_elements = null) - { - $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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements); - return $response; - } - - /** - * Operation getOrdersWithHttpInfo - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. (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.) - * - `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: AFN (Fulfillment by Amazon); MFN (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:** - * - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - * - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - * - `PendingDropOff` (The seller will deliver the package to the carrier.) - * - `LabelCanceled` (The seller canceled the pickup.) - * - `PickedUp` (Amazon has picked up the package from the seller.) - * - `DroppedOff` (The package is delivered to the carrier by the seller.) - * - `AtOriginFC` (The packaged is at the origin fulfillment center.) - * - `AtDestinationFC` (The package is at the destination fulfillment center.) - * - `Delivered` (The package has been delivered.) - * - `RejectedByBuyer` (The package has been rejected by the buyer.) - * - `Undeliverable` (The package cannot be delivered.) - * - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - * - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - * - `Lost` (The package is lost.) - * - `OutForDelivery` (The package is out for delivery.) - * - `Damaged` (The package was damaged by the carrier.) (optional) - * @param string[] $electronic_invoice_statuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - * **Possible values:** - * - `NotRequired` (Electronic invoice submission is not required for this order.) - * - `NotFound` (The electronic invoice was not submitted for this order.) - * - `Processing` (The electronic invoice is being processed for this order.) - * - `Errored` (The last submitted electronic invoice was rejected for this order.) - * - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) - * @param string $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 $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\OrdersV0\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, $electronic_invoice_statuses = null, $next_token = null, $amazon_order_ids = null, $actual_fulfillment_supply_source_id = null, $is_ispu = null, $store_chain_store_id = null, $data_elements = null) - { - $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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrdersAsync - * - * - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. (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.) - * - `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: AFN (Fulfillment by Amazon); MFN (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:** - * - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - * - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - * - `PendingDropOff` (The seller will deliver the package to the carrier.) - * - `LabelCanceled` (The seller canceled the pickup.) - * - `PickedUp` (Amazon has picked up the package from the seller.) - * - `DroppedOff` (The package is delivered to the carrier by the seller.) - * - `AtOriginFC` (The packaged is at the origin fulfillment center.) - * - `AtDestinationFC` (The package is at the destination fulfillment center.) - * - `Delivered` (The package has been delivered.) - * - `RejectedByBuyer` (The package has been rejected by the buyer.) - * - `Undeliverable` (The package cannot be delivered.) - * - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - * - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - * - `Lost` (The package is lost.) - * - `OutForDelivery` (The package is out for delivery.) - * - `Damaged` (The package was damaged by the carrier.) (optional) - * @param string[] $electronic_invoice_statuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - * **Possible values:** - * - `NotRequired` (Electronic invoice submission is not required for this order.) - * - `NotFound` (The electronic invoice was not submitted for this order.) - * - `Processing` (The electronic invoice is being processed for this order.) - * - `Errored` (The last submitted electronic invoice was rejected for this order.) - * - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) - * @param string $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 $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @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, $electronic_invoice_statuses = null, $next_token = null, $amazon_order_ids = null, $actual_fulfillment_supply_source_id = null, $is_ispu = null, $store_chain_store_id = null, $data_elements = 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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements); - } - - /** - * Operation getOrdersAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. (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.) - * - `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: AFN (Fulfillment by Amazon); MFN (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:** - * - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - * - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - * - `PendingDropOff` (The seller will deliver the package to the carrier.) - * - `LabelCanceled` (The seller canceled the pickup.) - * - `PickedUp` (Amazon has picked up the package from the seller.) - * - `DroppedOff` (The package is delivered to the carrier by the seller.) - * - `AtOriginFC` (The packaged is at the origin fulfillment center.) - * - `AtDestinationFC` (The package is at the destination fulfillment center.) - * - `Delivered` (The package has been delivered.) - * - `RejectedByBuyer` (The package has been rejected by the buyer.) - * - `Undeliverable` (The package cannot be delivered.) - * - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - * - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - * - `Lost` (The package is lost.) - * - `OutForDelivery` (The package is out for delivery.) - * - `Damaged` (The package was damaged by the carrier.) (optional) - * @param string[] $electronic_invoice_statuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - * **Possible values:** - * - `NotRequired` (Electronic invoice submission is not required for this order.) - * - `NotFound` (The electronic invoice was not submitted for this order.) - * - `Processing` (The electronic invoice is being processed for this order.) - * - `Errored` (The last submitted electronic invoice was rejected for this order.) - * - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) - * @param string $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 $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @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, $electronic_invoice_statuses = null, $next_token = null, $amazon_order_ids = null, $actual_fulfillment_supply_source_id = null, $is_ispu = null, $store_chain_store_id = null, $data_elements = null) - { - $returnType = '\SellingPartnerApi\Model\OrdersV0\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, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $data_elements); - $signedRequest = $this->config->signRequest( - $request, - null, - "/orders/v0/orders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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. See the [Selling Partner API Developer Guide](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) for a complete list of marketplaceId values. (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.) - * - `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: AFN (Fulfillment by Amazon); MFN (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:** - * - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - * - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - * - `PendingDropOff` (The seller will deliver the package to the carrier.) - * - `LabelCanceled` (The seller canceled the pickup.) - * - `PickedUp` (Amazon has picked up the package from the seller.) - * - `DroppedOff` (The package is delivered to the carrier by the seller.) - * - `AtOriginFC` (The packaged is at the origin fulfillment center.) - * - `AtDestinationFC` (The package is at the destination fulfillment center.) - * - `Delivered` (The package has been delivered.) - * - `RejectedByBuyer` (The package has been rejected by the buyer.) - * - `Undeliverable` (The package cannot be delivered.) - * - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - * - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - * - `Lost` (The package is lost.) - * - `OutForDelivery` (The package is out for delivery.) - * - `Damaged` (The package was damaged by the carrier.) (optional) - * @param string[] $electronic_invoice_statuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. - * **Possible values:** - * - `NotRequired` (Electronic invoice submission is not required for this order.) - * - `NotFound` (The electronic invoice was not submitted for this order.) - * - `Processing` (The electronic invoice is being processed for this order.) - * - `Errored` (The last submitted electronic invoice was rejected for this order.) - * - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) - * @param string $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 $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) - * @param string[] $data_elements An array of restricted order data elements to retrieve (valid array elements are \"buyerInfo\" and \"shippingAddress\") (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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, $electronic_invoice_statuses = null, $next_token = null, $amazon_order_ids = null, $actual_fulfillment_supply_source_id = null, $is_ispu = null, $store_chain_store_id = null, $data_elements = 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 (count($marketplace_ids) > 50) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling OrdersV0Api.getOrders, number of items must be less than or equal to 50.'); - } - - if ($amazon_order_ids !== null && count($amazon_order_ids) > 50) { - throw new \InvalidArgumentException('invalid value for "$amazon_order_ids" when calling OrdersV0Api.getOrders, number of items must be less than or equal to 50.'); - } - - - $resourcePath = '/orders/v0/orders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['CreatedAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['CreatedBefore'] = $created_before; - } - - // query params - if (is_array($last_updated_after)) { - $last_updated_after = ObjectSerializer::serializeCollection($last_updated_after, '', true); - } - if ($last_updated_after !== null) { - $queryParams['LastUpdatedAfter'] = $last_updated_after; - } - - // query params - if (is_array($last_updated_before)) { - $last_updated_before = ObjectSerializer::serializeCollection($last_updated_before, '', true); - } - if ($last_updated_before !== null) { - $queryParams['LastUpdatedBefore'] = $last_updated_before; - } - - // query params - if (is_array($order_statuses)) { - $order_statuses = ObjectSerializer::serializeCollection($order_statuses, 'form', true); - } - if ($order_statuses !== null) { - $queryParams['OrderStatuses'] = $order_statuses; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['MarketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($fulfillment_channels)) { - $fulfillment_channels = ObjectSerializer::serializeCollection($fulfillment_channels, 'form', true); - } - if ($fulfillment_channels !== null) { - $queryParams['FulfillmentChannels'] = $fulfillment_channels; - } - - // query params - if (is_array($payment_methods)) { - $payment_methods = ObjectSerializer::serializeCollection($payment_methods, 'form', true); - } - if ($payment_methods !== null) { - $queryParams['PaymentMethods'] = $payment_methods; - } - - // query params - if (is_array($buyer_email)) { - $buyer_email = ObjectSerializer::serializeCollection($buyer_email, '', true); - } - if ($buyer_email !== null) { - $queryParams['BuyerEmail'] = $buyer_email; - } - - // query params - if (is_array($seller_order_id)) { - $seller_order_id = ObjectSerializer::serializeCollection($seller_order_id, '', true); - } - if ($seller_order_id !== null) { - $queryParams['SellerOrderId'] = $seller_order_id; - } - - // query params - if (is_array($max_results_per_page)) { - $max_results_per_page = ObjectSerializer::serializeCollection($max_results_per_page, '', true); - } - if ($max_results_per_page !== null) { - $queryParams['MaxResultsPerPage'] = $max_results_per_page; - } - - // query params - if (is_array($easy_ship_shipment_statuses)) { - $easy_ship_shipment_statuses = ObjectSerializer::serializeCollection($easy_ship_shipment_statuses, 'form', true); - } - if ($easy_ship_shipment_statuses !== null) { - $queryParams['EasyShipShipmentStatuses'] = $easy_ship_shipment_statuses; - } - - // query params - if (is_array($electronic_invoice_statuses)) { - $electronic_invoice_statuses = ObjectSerializer::serializeCollection($electronic_invoice_statuses, 'form', true); - } - if ($electronic_invoice_statuses !== null) { - $queryParams['ElectronicInvoiceStatuses'] = $electronic_invoice_statuses; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['NextToken'] = $next_token; - } - - // query params - if (is_array($amazon_order_ids)) { - $amazon_order_ids = ObjectSerializer::serializeCollection($amazon_order_ids, 'form', true); - } - if ($amazon_order_ids !== null) { - $queryParams['AmazonOrderIds'] = $amazon_order_ids; - } - - // query params - if (is_array($actual_fulfillment_supply_source_id)) { - $actual_fulfillment_supply_source_id = ObjectSerializer::serializeCollection($actual_fulfillment_supply_source_id, '', true); - } - if ($actual_fulfillment_supply_source_id !== null) { - $queryParams['ActualFulfillmentSupplySourceId'] = $actual_fulfillment_supply_source_id; - } - - // query params - if (is_array($is_ispu)) { - $is_ispu = ObjectSerializer::serializeCollection($is_ispu, '', true); - } - if ($is_ispu !== null) { - $queryParams['IsISPU'] = $is_ispu; - } - - // query params - if (is_array($store_chain_store_id)) { - $store_chain_store_id = ObjectSerializer::serializeCollection($store_chain_store_id, '', true); - } - if ($store_chain_store_id !== null) { - $queryParams['StoreChainStoreId'] = $store_chain_store_id; - } - - // query params - if (is_array($data_elements)) { - $data_elements = ObjectSerializer::serializeCollection($data_elements, 'form', true); - } - if ($data_elements !== null) { - $queryParams['dataElements'] = $data_elements; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateShipmentStatus - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function updateShipmentStatus($order_id, $payload) - { - $this->updateShipmentStatusWithHttpInfo($order_id, $payload); - } - - /** - * Operation updateShipmentStatusWithHttpInfo - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function updateShipmentStatusWithHttpInfo($order_id, $payload) - { - $request = $this->updateShipmentStatusRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateShipmentStatusAsync - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateShipmentStatusAsync($order_id, $payload) - { - return $this->updateShipmentStatusAsyncWithHttpInfo($order_id, $payload); - } - - /** - * Operation updateShipmentStatusAsyncWithHttpInfo - * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateShipmentStatusAsyncWithHttpInfo($order_id, $payload) - { - $returnType = ''; - $request = $this->updateShipmentStatusRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateShipmentStatus' - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateShipmentStatusRequest $payload The request body for the updateShipmentStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateShipmentStatusRequest($order_id, $payload) - { - // 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 updateShipmentStatus' - ); - } - // verify the required parameter 'payload' is set - if ($payload === null || (is_array($payload) && count($payload) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $payload when calling updateShipmentStatus' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/shipment'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($payload)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($payload)); - } else { - $httpBody = $payload; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateVerificationStatus - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function updateVerificationStatus($order_id, $payload) - { - $this->updateVerificationStatusWithHttpInfo($order_id, $payload); - } - - /** - * Operation updateVerificationStatusWithHttpInfo - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function updateVerificationStatusWithHttpInfo($order_id, $payload) - { - $request = $this->updateVerificationStatusRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusErrorResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateVerificationStatusAsync - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateVerificationStatusAsync($order_id, $payload) - { - return $this->updateVerificationStatusAsyncWithHttpInfo($order_id, $payload); - } - - /** - * Operation updateVerificationStatusAsyncWithHttpInfo - * - * - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateVerificationStatusAsyncWithHttpInfo($order_id, $payload) - { - $returnType = ''; - $request = $this->updateVerificationStatusRequest($order_id, $payload); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateVerificationStatus' - * - * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequest $payload The request body for the updateVerificationStatus operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateVerificationStatusRequest($order_id, $payload) - { - // 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 updateVerificationStatus' - ); - } - // verify the required parameter 'payload' is set - if ($payload === null || (is_array($payload) && count($payload) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $payload when calling updateVerificationStatus' - ); - } - - $resourcePath = '/orders/v0/orders/{orderId}/regulatedInfo'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - '{' . 'orderId' . '}', - ObjectSerializer::toPathValue($order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($payload)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($payload)); - } else { - $httpBody = $payload; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PATCH', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ProductPricingV0Api.php b/lib/Api/ProductPricingV0Api.php deleted file mode 100644 index 33eae7dac..000000000 --- a/lib/Api/ProductPricingV0Api.php +++ /dev/null @@ -1,2544 +0,0 @@ -getCompetitivePricingWithHttpInfo($marketplace_id, $item_type, $asins, $skus, $customer_type); - return $response; - } - - /** - * 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 $customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getCompetitivePricingWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $customer_type = null) - { - $request = $this->getCompetitivePricingRequest($marketplace_id, $item_type, $asins, $skus, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 $customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCompetitivePricingAsync($marketplace_id, $item_type, $asins = null, $skus = null, $customer_type = null) - { - return $this->getCompetitivePricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins, $skus, $customer_type); - } - - /** - * 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 $customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCompetitivePricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $customer_type = null) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse'; - $request = $this->getCompetitivePricingRequest($marketplace_id, $item_type, $asins, $skus, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 $customer_type Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCompetitivePricingRequest($marketplace_id, $item_type, $asins = null, $skus = null, $customer_type = 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' - ); - } - // 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 ($asins !== null && count($asins) > 20) { - throw new \InvalidArgumentException('invalid value for "$asins" when calling ProductPricingV0Api.getCompetitivePricing, number of items must be less than or equal to 20.'); - } - - if ($skus !== null && count($skus) > 20) { - throw new \InvalidArgumentException('invalid value for "$skus" when calling ProductPricingV0Api.getCompetitivePricing, number of items must be less than or equal to 20.'); - } - - - $resourcePath = '/products/pricing/v0/competitivePrice'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($asins)) { - $asins = ObjectSerializer::serializeCollection($asins, 'form', true); - } - if ($asins !== null) { - $queryParams['Asins'] = $asins; - } - - // query params - if (is_array($skus)) { - $skus = ObjectSerializer::serializeCollection($skus, 'form', true); - } - if ($skus !== null) { - $queryParams['Skus'] = $skus; - } - - // query params - if (is_array($item_type)) { - $item_type = ObjectSerializer::serializeCollection($item_type, '', true); - } - if ($item_type !== null) { - $queryParams['ItemType'] = $item_type; - } - - // query params - if (is_array($customer_type)) { - $customer_type = ObjectSerializer::serializeCollection($customer_type, '', true); - } - if ($customer_type !== null) { - $queryParams['CustomerType'] = $customer_type; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse - */ - public function getItemOffers($marketplace_id, $item_condition, $asin, $customer_type = null) - { - $response = $this->getItemOffersWithHttpInfo($marketplace_id, $item_condition, $asin, $customer_type); - return $response; - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getItemOffersWithHttpInfo($marketplace_id, $item_condition, $asin, $customer_type = null) - { - $request = $this->getItemOffersRequest($marketplace_id, $item_condition, $asin, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemOffersAsync($marketplace_id, $item_condition, $asin, $customer_type = null) - { - return $this->getItemOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $asin, $customer_type); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $asin, $customer_type = null) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse'; - $request = $this->getItemOffersRequest($marketplace_id, $item_condition, $asin, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getItemOffersRequest($marketplace_id, $item_condition, $asin, $customer_type = 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 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' - ); - } - // 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' - ); - } - - $resourcePath = '/products/pricing/v0/items/{Asin}/offers'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($item_condition)) { - $item_condition = ObjectSerializer::serializeCollection($item_condition, '', true); - } - if ($item_condition !== null) { - $queryParams['ItemCondition'] = $item_condition; - } - - // query params - if (is_array($customer_type)) { - $customer_type = ObjectSerializer::serializeCollection($customer_type, '', true); - } - if ($customer_type !== null) { - $queryParams['CustomerType'] = $customer_type; - } - - // path params - if ($asin !== null) { - $resourcePath = str_replace( - '{' . 'Asin' . '}', - ObjectSerializer::toPathValue($asin), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getItemOffersBatch - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest $get_item_offers_batch_request_body get_item_offers_batch_request_body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse - */ - public function getItemOffersBatch($get_item_offers_batch_request_body) - { - $response = $this->getItemOffersBatchWithHttpInfo($get_item_offers_batch_request_body); - return $response; - } - - /** - * Operation getItemOffersBatchWithHttpInfo - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getItemOffersBatchWithHttpInfo($get_item_offers_batch_request_body) - { - $request = $this->getItemOffersBatchRequest($get_item_offers_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getItemOffersBatchAsync - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemOffersBatchAsync($get_item_offers_batch_request_body) - { - return $this->getItemOffersBatchAsyncWithHttpInfo($get_item_offers_batch_request_body); - } - - /** - * Operation getItemOffersBatchAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getItemOffersBatchAsyncWithHttpInfo($get_item_offers_batch_request_body) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchResponse'; - $request = $this->getItemOffersBatchRequest($get_item_offers_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getItemOffersBatch' - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetItemOffersBatchRequest $get_item_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getItemOffersBatchRequest($get_item_offers_batch_request_body) - { - // verify the required parameter 'get_item_offers_batch_request_body' is set - if ($get_item_offers_batch_request_body === null || (is_array($get_item_offers_batch_request_body) && count($get_item_offers_batch_request_body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $get_item_offers_batch_request_body when calling getItemOffersBatch' - ); - } - - $resourcePath = '/batches/products/pricing/v0/itemOffers'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($get_item_offers_batch_request_body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($get_item_offers_batch_request_body)); - } else { - $httpBody = $get_item_offers_batch_request_body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse - */ - public function getListingOffers($marketplace_id, $item_condition, $seller_sku, $customer_type = null) - { - $response = $this->getListingOffersWithHttpInfo($marketplace_id, $item_condition, $seller_sku, $customer_type); - return $response; - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getListingOffersWithHttpInfo($marketplace_id, $item_condition, $seller_sku, $customer_type = null) - { - $request = $this->getListingOffersRequest($marketplace_id, $item_condition, $seller_sku, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingOffersAsync($marketplace_id, $item_condition, $seller_sku, $customer_type = null) - { - return $this->getListingOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $seller_sku, $customer_type); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $seller_sku, $customer_type = null) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse'; - $request = $this->getListingOffersRequest($marketplace_id, $item_condition, $seller_sku, $customer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 $customer_type Indicates whether to request Consumer or Business offers. Default is Consumer. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getListingOffersRequest($marketplace_id, $item_condition, $seller_sku, $customer_type = 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 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' - ); - } - // 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' - ); - } - - $resourcePath = '/products/pricing/v0/listings/{SellerSKU}/offers'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($item_condition)) { - $item_condition = ObjectSerializer::serializeCollection($item_condition, '', true); - } - if ($item_condition !== null) { - $queryParams['ItemCondition'] = $item_condition; - } - - // query params - if (is_array($customer_type)) { - $customer_type = ObjectSerializer::serializeCollection($customer_type, '', true); - } - if ($customer_type !== null) { - $queryParams['CustomerType'] = $customer_type; - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'SellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getListingOffersBatch - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest $get_listing_offers_batch_request_body get_listing_offers_batch_request_body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse - */ - public function getListingOffersBatch($get_listing_offers_batch_request_body) - { - $response = $this->getListingOffersBatchWithHttpInfo($get_listing_offers_batch_request_body); - return $response; - } - - /** - * Operation getListingOffersBatchWithHttpInfo - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getListingOffersBatchWithHttpInfo($get_listing_offers_batch_request_body) - { - $request = $this->getListingOffersBatchRequest($get_listing_offers_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\Errors', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getListingOffersBatchAsync - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingOffersBatchAsync($get_listing_offers_batch_request_body) - { - return $this->getListingOffersBatchAsyncWithHttpInfo($get_listing_offers_batch_request_body); - } - - /** - * Operation getListingOffersBatchAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getListingOffersBatchAsyncWithHttpInfo($get_listing_offers_batch_request_body) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchResponse'; - $request = $this->getListingOffersBatchRequest($get_listing_offers_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getListingOffersBatch' - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetListingOffersBatchRequest $get_listing_offers_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getListingOffersBatchRequest($get_listing_offers_batch_request_body) - { - // verify the required parameter 'get_listing_offers_batch_request_body' is set - if ($get_listing_offers_batch_request_body === null || (is_array($get_listing_offers_batch_request_body) && count($get_listing_offers_batch_request_body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $get_listing_offers_batch_request_body when calling getListingOffersBatch' - ); - } - - $resourcePath = '/batches/products/pricing/v0/listingOffers'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($get_listing_offers_batch_request_body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($get_listing_offers_batch_request_body)); - } else { - $httpBody = $get_listing_offers_batch_request_body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse - */ - public function getPricing($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null, $offer_type = null) - { - $response = $this->getPricingWithHttpInfo($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type); - return $response; - } - - /** - * 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 $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPricingWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null, $offer_type = null) - { - $request = $this->getPricingRequest($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPricingAsync($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null, $offer_type = null) - { - return $this->getPricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type); - } - - /** - * 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 $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null, $offer_type = null) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV0\GetPricingResponse'; - $request = $this->getPricingRequest($marketplace_id, $item_type, $asins, $skus, $item_condition, $offer_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 $offer_type Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPricingRequest($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null, $offer_type = 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' - ); - } - // 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 ($asins !== null && count($asins) > 20) { - throw new \InvalidArgumentException('invalid value for "$asins" when calling ProductPricingV0Api.getPricing, number of items must be less than or equal to 20.'); - } - - if ($skus !== null && count($skus) > 20) { - throw new \InvalidArgumentException('invalid value for "$skus" when calling ProductPricingV0Api.getPricing, number of items must be less than or equal to 20.'); - } - - - $resourcePath = '/products/pricing/v0/price'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_id)) { - $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true); - } - if ($marketplace_id !== null) { - $queryParams['MarketplaceId'] = $marketplace_id; - } - - // query params - if (is_array($asins)) { - $asins = ObjectSerializer::serializeCollection($asins, 'form', true); - } - if ($asins !== null) { - $queryParams['Asins'] = $asins; - } - - // query params - if (is_array($skus)) { - $skus = ObjectSerializer::serializeCollection($skus, 'form', true); - } - if ($skus !== null) { - $queryParams['Skus'] = $skus; - } - - // query params - if (is_array($item_type)) { - $item_type = ObjectSerializer::serializeCollection($item_type, '', true); - } - if ($item_type !== null) { - $queryParams['ItemType'] = $item_type; - } - - // query params - if (is_array($item_condition)) { - $item_condition = ObjectSerializer::serializeCollection($item_condition, '', true); - } - if ($item_condition !== null) { - $queryParams['ItemCondition'] = $item_condition; - } - - // query params - if (is_array($offer_type)) { - $offer_type = ObjectSerializer::serializeCollection($offer_type, '', true); - } - if ($offer_type !== null) { - $queryParams['OfferType'] = $offer_type; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ProductPricingV20220501Api.php b/lib/Api/ProductPricingV20220501Api.php deleted file mode 100644 index b338f88cc..000000000 --- a/lib/Api/ProductPricingV20220501Api.php +++ /dev/null @@ -1,417 +0,0 @@ -getFeaturedOfferExpectedPriceBatchWithHttpInfo($get_featured_offer_expected_price_batch_request_body); - return $response; - } - - /** - * Operation getFeaturedOfferExpectedPriceBatchWithHttpInfo - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest $get_featured_offer_expected_price_batch_request_body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getFeaturedOfferExpectedPriceBatchWithHttpInfo($get_featured_offer_expected_price_batch_request_body) - { - $request = $this->getFeaturedOfferExpectedPriceBatchRequest($get_featured_offer_expected_price_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductPricingV20220501\Errors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductPricingV20220501\Errors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFeaturedOfferExpectedPriceBatchAsync - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest $get_featured_offer_expected_price_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeaturedOfferExpectedPriceBatchAsync($get_featured_offer_expected_price_batch_request_body) - { - return $this->getFeaturedOfferExpectedPriceBatchAsyncWithHttpInfo($get_featured_offer_expected_price_batch_request_body); - } - - /** - * Operation getFeaturedOfferExpectedPriceBatchAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest $get_featured_offer_expected_price_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFeaturedOfferExpectedPriceBatchAsyncWithHttpInfo($get_featured_offer_expected_price_batch_request_body) - { - $returnType = '\SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchResponse'; - $request = $this->getFeaturedOfferExpectedPriceBatchRequest($get_featured_offer_expected_price_batch_request_body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFeaturedOfferExpectedPriceBatch' - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\GetFeaturedOfferExpectedPriceBatchRequest $get_featured_offer_expected_price_batch_request_body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getFeaturedOfferExpectedPriceBatchRequest($get_featured_offer_expected_price_batch_request_body) - { - // verify the required parameter 'get_featured_offer_expected_price_batch_request_body' is set - if ($get_featured_offer_expected_price_batch_request_body === null || (is_array($get_featured_offer_expected_price_batch_request_body) && count($get_featured_offer_expected_price_batch_request_body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $get_featured_offer_expected_price_batch_request_body when calling getFeaturedOfferExpectedPriceBatch' - ); - } - - $resourcePath = '/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($get_featured_offer_expected_price_batch_request_body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($get_featured_offer_expected_price_batch_request_body)); - } else { - $httpBody = $get_featured_offer_expected_price_batch_request_body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ProductTypeDefinitionsV20200901Api.php b/lib/Api/ProductTypeDefinitionsV20200901Api.php deleted file mode 100644 index d698835fe..000000000 --- a/lib/Api/ProductTypeDefinitionsV20200901Api.php +++ /dev/null @@ -1,930 +0,0 @@ -getDefinitionsProductTypeWithHttpInfo($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale); - return $response; - } - - /** - * Operation getDefinitionsProductTypeWithHttpInfo - * - * @param string $product_type The Amazon product type name. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. - * Note: This parameter is limited to one marketplaceId at this time. (required) - * @param string $seller_id A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. (optional) - * @param string $product_type_version The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. (optional, default to 'LATEST') - * @param string $requirements The name of the requirements set to retrieve requirements for. (optional, default to 'LISTING') - * @param string $requirements_enforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). (optional, default to 'ENFORCED') - * @param string $locale Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. (optional, default to 'DEFAULT') - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition, HTTP status code, HTTP response headers (array of strings) - */ - public function getDefinitionsProductTypeWithHttpInfo($product_type, $marketplace_ids, $seller_id = null, $product_type_version = 'LATEST', $requirements = 'LISTING', $requirements_enforced = 'ENFORCED', $locale = 'DEFAULT') - { - $request = $this->getDefinitionsProductTypeRequest($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getDefinitionsProductTypeAsync - * - * - * - * @param string $product_type The Amazon product type name. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. - * Note: This parameter is limited to one marketplaceId at this time. (required) - * @param string $seller_id A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. (optional) - * @param string $product_type_version The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. (optional, default to 'LATEST') - * @param string $requirements The name of the requirements set to retrieve requirements for. (optional, default to 'LISTING') - * @param string $requirements_enforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). (optional, default to 'ENFORCED') - * @param string $locale Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. (optional, default to 'DEFAULT') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDefinitionsProductTypeAsync($product_type, $marketplace_ids, $seller_id = null, $product_type_version = 'LATEST', $requirements = 'LISTING', $requirements_enforced = 'ENFORCED', $locale = 'DEFAULT') - { - return $this->getDefinitionsProductTypeAsyncWithHttpInfo($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale); - } - - /** - * Operation getDefinitionsProductTypeAsyncWithHttpInfo - * - * - * - * @param string $product_type The Amazon product type name. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. - * Note: This parameter is limited to one marketplaceId at this time. (required) - * @param string $seller_id A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. (optional) - * @param string $product_type_version The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. (optional, default to 'LATEST') - * @param string $requirements The name of the requirements set to retrieve requirements for. (optional, default to 'LISTING') - * @param string $requirements_enforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). (optional, default to 'ENFORCED') - * @param string $locale Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. (optional, default to 'DEFAULT') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getDefinitionsProductTypeAsyncWithHttpInfo($product_type, $marketplace_ids, $seller_id = null, $product_type_version = 'LATEST', $requirements = 'LISTING', $requirements_enforced = 'ENFORCED', $locale = 'DEFAULT') - { - $returnType = '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeDefinition'; - $request = $this->getDefinitionsProductTypeRequest($product_type, $marketplace_ids, $seller_id, $product_type_version, $requirements, $requirements_enforced, $locale); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getDefinitionsProductType' - * - * @param string $product_type The Amazon product type name. (required) - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. - * Note: This parameter is limited to one marketplaceId at this time. (required) - * @param string $seller_id A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. (optional) - * @param string $product_type_version The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided. (optional, default to 'LATEST') - * @param string $requirements The name of the requirements set to retrieve requirements for. (optional, default to 'LISTING') - * @param string $requirements_enforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). (optional, default to 'ENFORCED') - * @param string $locale Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. (optional, default to 'DEFAULT') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getDefinitionsProductTypeRequest($product_type, $marketplace_ids, $seller_id = null, $product_type_version = 'LATEST', $requirements = 'LISTING', $requirements_enforced = 'ENFORCED', $locale = 'DEFAULT') - { - // verify the required parameter 'product_type' is set - if ($product_type === null || (is_array($product_type) && count($product_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $product_type when calling getDefinitionsProductType' - ); - } - // 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 getDefinitionsProductType' - ); - } - - $resourcePath = '/definitions/2020-09-01/productTypes/{productType}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($seller_id)) { - $seller_id = ObjectSerializer::serializeCollection($seller_id, '', true); - } - if ($seller_id !== null) { - $queryParams['sellerId'] = $seller_id; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($product_type_version)) { - $product_type_version = ObjectSerializer::serializeCollection($product_type_version, '', true); - } - if ($product_type_version !== null) { - $queryParams['productTypeVersion'] = $product_type_version; - } - - // query params - if (is_array($requirements)) { - $requirements = ObjectSerializer::serializeCollection($requirements, '', true); - } - if ($requirements !== null) { - $queryParams['requirements'] = $requirements; - } - - // query params - if (is_array($requirements_enforced)) { - $requirements_enforced = ObjectSerializer::serializeCollection($requirements_enforced, '', true); - } - if ($requirements_enforced !== null) { - $queryParams['requirementsEnforced'] = $requirements_enforced; - } - - // query params - if (is_array($locale)) { - $locale = ObjectSerializer::serializeCollection($locale, '', true); - } - if ($locale !== null) { - $queryParams['locale'] = $locale; - } - - // path params - if ($product_type !== null) { - $resourcePath = str_replace( - '{' . 'productType' . '}', - ObjectSerializer::toPathValue($product_type), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation searchDefinitionsProductTypes - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList - */ - public function searchDefinitionsProductTypes($marketplace_ids, $keywords = null) - { - $response = $this->searchDefinitionsProductTypesWithHttpInfo($marketplace_ids, $keywords); - return $response; - } - - /** - * Operation searchDefinitionsProductTypesWithHttpInfo - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList, HTTP status code, HTTP response headers (array of strings) - */ - public function searchDefinitionsProductTypesWithHttpInfo($marketplace_ids, $keywords = null) - { - $request = $this->searchDefinitionsProductTypesRequest($marketplace_ids, $keywords); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation searchDefinitionsProductTypesAsync - * - * - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchDefinitionsProductTypesAsync($marketplace_ids, $keywords = null) - { - return $this->searchDefinitionsProductTypesAsyncWithHttpInfo($marketplace_ids, $keywords); - } - - /** - * Operation searchDefinitionsProductTypesAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function searchDefinitionsProductTypesAsyncWithHttpInfo($marketplace_ids, $keywords = null) - { - $returnType = '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeList'; - $request = $this->searchDefinitionsProductTypesRequest($marketplace_ids, $keywords); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'searchDefinitionsProductTypes' - * - * @param string[] $marketplace_ids A comma-delimited list of Amazon marketplace identifiers for the request. (required) - * @param string[] $keywords A comma-delimited list of keywords to search product types by. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function searchDefinitionsProductTypesRequest($marketplace_ids, $keywords = 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 searchDefinitionsProductTypes' - ); - } - - $resourcePath = '/definitions/2020-09-01/productTypes'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($keywords)) { - $keywords = ObjectSerializer::serializeCollection($keywords, 'form', true); - } - if ($keywords !== null) { - $queryParams['keywords'] = $keywords; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ReplenishmentV20221107Api.php b/lib/Api/ReplenishmentV20221107Api.php deleted file mode 100644 index 9b2aeab10..000000000 --- a/lib/Api/ReplenishmentV20221107Api.php +++ /dev/null @@ -1,1195 +0,0 @@ -getSellingPartnerMetricsWithHttpInfo($body); - return $response; - } - - /** - * Operation getSellingPartnerMetricsWithHttpInfo - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest $body (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getSellingPartnerMetricsWithHttpInfo($body = null) - { - $request = $this->getSellingPartnerMetricsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSellingPartnerMetricsAsync - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSellingPartnerMetricsAsync($body = null) - { - return $this->getSellingPartnerMetricsAsyncWithHttpInfo($body); - } - - /** - * Operation getSellingPartnerMetricsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSellingPartnerMetricsAsyncWithHttpInfo($body = null) - { - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponse'; - $request = $this->getSellingPartnerMetricsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSellingPartnerMetrics' - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getSellingPartnerMetricsRequest($body = null) - { - - $resourcePath = '/replenishment/2022-11-07/sellingPartners/metrics/search'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listOfferMetrics - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest $body The request body for the `listOfferMetrics` operation. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse - */ - public function listOfferMetrics($body = null) - { - $response = $this->listOfferMetricsWithHttpInfo($body); - return $response; - } - - /** - * Operation listOfferMetricsWithHttpInfo - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest $body The request body for the `listOfferMetrics` operation. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listOfferMetricsWithHttpInfo($body = null) - { - $request = $this->listOfferMetricsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listOfferMetricsAsync - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest $body The request body for the `listOfferMetrics` operation. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listOfferMetricsAsync($body = null) - { - return $this->listOfferMetricsAsyncWithHttpInfo($body); - } - - /** - * Operation listOfferMetricsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest $body The request body for the `listOfferMetrics` operation. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listOfferMetricsAsyncWithHttpInfo($body = null) - { - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponse'; - $request = $this->listOfferMetricsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listOfferMetrics' - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequest $body The request body for the `listOfferMetrics` operation. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listOfferMetricsRequest($body = null) - { - - $resourcePath = '/replenishment/2022-11-07/offers/metrics/search'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation listOffers - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest $body body (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse - */ - public function listOffers($body = null) - { - $response = $this->listOffersWithHttpInfo($body); - return $response; - } - - /** - * Operation listOffersWithHttpInfo - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest $body (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function listOffersWithHttpInfo($body = null) - { - $request = $this->listOffersRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReplenishmentV20221107\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation listOffersAsync - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listOffersAsync($body = null) - { - return $this->listOffersAsyncWithHttpInfo($body); - } - - /** - * Operation listOffersAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function listOffersAsyncWithHttpInfo($body = null) - { - $returnType = '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponse'; - $request = $this->listOffersRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'listOffers' - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequest $body (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listOffersRequest($body = null) - { - - $resourcePath = '/replenishment/2022-11-07/offers/search'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ReportsV20210630Api.php b/lib/Api/ReportsV20210630Api.php deleted file mode 100644 index 4d3043f7a..000000000 --- a/lib/Api/ReportsV20210630Api.php +++ /dev/null @@ -1,3495 +0,0 @@ -cancelReportWithHttpInfo($report_id); - } - - /** - * Operation cancelReportWithHttpInfo - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelReportWithHttpInfo($report_id) - { - $request = $this->cancelReportRequest($report_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelReportAsync - * - * - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReportAsync($report_id) - { - return $this->cancelReportAsyncWithHttpInfo($report_id); - } - - /** - * Operation cancelReportAsyncWithHttpInfo - * - * - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReportAsyncWithHttpInfo($report_id) - { - $returnType = ''; - $request = $this->cancelReportRequest($report_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelReport' - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelReportRequest($report_id) - { - // verify the required parameter 'report_id' is set - if ($report_id === null || (is_array($report_id) && count($report_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_id when calling cancelReport' - ); - } - - $resourcePath = '/reports/2021-06-30/reports/{reportId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($report_id !== null) { - $resourcePath = str_replace( - '{' . 'reportId' . '}', - ObjectSerializer::toPathValue($report_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation cancelReportSchedule - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function cancelReportSchedule($report_schedule_id) - { - $this->cancelReportScheduleWithHttpInfo($report_schedule_id); - } - - /** - * Operation cancelReportScheduleWithHttpInfo - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelReportScheduleWithHttpInfo($report_schedule_id) - { - $request = $this->cancelReportScheduleRequest($report_schedule_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelReportScheduleAsync - * - * - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReportScheduleAsync($report_schedule_id) - { - return $this->cancelReportScheduleAsyncWithHttpInfo($report_schedule_id); - } - - /** - * Operation cancelReportScheduleAsyncWithHttpInfo - * - * - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReportScheduleAsyncWithHttpInfo($report_schedule_id) - { - $returnType = ''; - $request = $this->cancelReportScheduleRequest($report_schedule_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelReportSchedule' - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelReportScheduleRequest($report_schedule_id) - { - // verify the required parameter 'report_schedule_id' is set - if ($report_schedule_id === null || (is_array($report_schedule_id) && count($report_schedule_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_schedule_id when calling cancelReportSchedule' - ); - } - - $resourcePath = '/reports/2021-06-30/schedules/{reportScheduleId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($report_schedule_id !== null) { - $resourcePath = str_replace( - '{' . 'reportScheduleId' . '}', - ObjectSerializer::toPathValue($report_schedule_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createReport - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse - */ - public function createReport($body) - { - $response = $this->createReportWithHttpInfo($body); - return $response; - } - - /** - * Operation createReportWithHttpInfo - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createReportWithHttpInfo($body) - { - $request = $this->createReportRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createReportAsync - * - * - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReportAsync($body) - { - return $this->createReportAsyncWithHttpInfo($body); - } - - /** - * Operation createReportAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReportAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\CreateReportResponse'; - $request = $this->createReportRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createReport' - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createReportRequest($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 createReport' - ); - } - - $resourcePath = '/reports/2021-06-30/reports'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createReportSchedule - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse - */ - public function createReportSchedule($body) - { - $response = $this->createReportScheduleWithHttpInfo($body); - return $response; - } - - /** - * Operation createReportScheduleWithHttpInfo - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createReportScheduleWithHttpInfo($body) - { - $request = $this->createReportScheduleRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createReportScheduleAsync - * - * - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReportScheduleAsync($body) - { - return $this->createReportScheduleAsyncWithHttpInfo($body); - } - - /** - * Operation createReportScheduleAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReportScheduleAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleResponse'; - $request = $this->createReportScheduleRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createReportSchedule' - * - * @param \SellingPartnerApi\Model\ReportsV20210630\CreateReportScheduleSpecification $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createReportScheduleRequest($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 createReportSchedule' - ); - } - - $resourcePath = '/reports/2021-06-30/schedules'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getReport - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\Report - */ - public function getReport($report_id) - { - $response = $this->getReportWithHttpInfo($report_id); - return $response; - } - - /** - * Operation getReportWithHttpInfo - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\Report, HTTP status code, HTTP response headers (array of strings) - */ - public function getReportWithHttpInfo($report_id) - { - $request = $this->getReportRequest($report_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReportsV20210630\Report' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\Report', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\Report'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\Report', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getReportAsync - * - * - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportAsync($report_id) - { - return $this->getReportAsyncWithHttpInfo($report_id); - } - - /** - * Operation getReportAsyncWithHttpInfo - * - * - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportAsyncWithHttpInfo($report_id) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\Report'; - $request = $this->getReportRequest($report_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getReport' - * - * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getReportRequest($report_id) - { - // verify the required parameter 'report_id' is set - if ($report_id === null || (is_array($report_id) && count($report_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_id when calling getReport' - ); - } - - $resourcePath = '/reports/2021-06-30/reports/{reportId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($report_id !== null) { - $resourcePath = str_replace( - '{' . 'reportId' . '}', - ObjectSerializer::toPathValue($report_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getReportDocument - * - * @param string $report_document_id The identifier for the report document. (required) - * @param string $report_type The name of the document's report type. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\ReportDocument - */ - public function getReportDocument($report_document_id, $report_type = null) - { - $response = $this->getReportDocumentWithHttpInfo($report_document_id, $report_type); - return $response; - } - - /** - * Operation getReportDocumentWithHttpInfo - * - * @param string $report_document_id The identifier for the report document. (required) - * @param string $report_type The name of the document's report type. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\ReportDocument, HTTP status code, HTTP response headers (array of strings) - */ - public function getReportDocumentWithHttpInfo($report_document_id, $report_type = null) - { - $request = $this->getReportDocumentRequest($report_document_id, $report_type); - $signedRequest = $this->config->signRequest( - $request, - null, - $request->getUri()->getPath(), - "getReportDocument" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReportsV20210630\ReportDocument' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ReportDocument', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportDocument'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ReportDocument', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getReportDocumentAsync - * - * - * - * @param string $report_document_id The identifier for the report document. (required) - * @param string $report_type The name of the document's report type. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportDocumentAsync($report_document_id, $report_type = null) - { - return $this->getReportDocumentAsyncWithHttpInfo($report_document_id, $report_type); - } - - /** - * Operation getReportDocumentAsyncWithHttpInfo - * - * - * - * @param string $report_document_id The identifier for the report document. (required) - * @param string $report_type The name of the document's report type. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportDocumentAsyncWithHttpInfo($report_document_id, $report_type = null) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportDocument'; - $request = $this->getReportDocumentRequest($report_document_id, $report_type); - $signedRequest = $this->config->signRequest( - $request, - null, - $request->getUri()->getPath(), - "getReportDocument" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getReportDocument' - * - * @param string $report_document_id The identifier for the report document. (required) - * @param string $report_type The name of the document's report type. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getReportDocumentRequest($report_document_id, $report_type = null) - { - // verify the required parameter 'report_document_id' is set - if ($report_document_id === null || (is_array($report_document_id) && count($report_document_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_document_id when calling getReportDocument' - ); - } - - $resourcePath = '/reports/2021-06-30/documents/{reportDocumentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($report_type)) { - $report_type = ObjectSerializer::serializeCollection($report_type, '', true); - } - if ($report_type !== null) { - $queryParams['reportType'] = $report_type; - } - - // path params - if ($report_document_id !== null) { - $resourcePath = str_replace( - '{' . 'reportDocumentId' . '}', - ObjectSerializer::toPathValue($report_document_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getReportSchedule - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\ReportSchedule - */ - public function getReportSchedule($report_schedule_id) - { - $response = $this->getReportScheduleWithHttpInfo($report_schedule_id); - return $response; - } - - /** - * Operation getReportScheduleWithHttpInfo - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\ReportSchedule, HTTP status code, HTTP response headers (array of strings) - */ - public function getReportScheduleWithHttpInfo($report_schedule_id) - { - $request = $this->getReportScheduleRequest($report_schedule_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getReportScheduleAsync - * - * - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportScheduleAsync($report_schedule_id) - { - return $this->getReportScheduleAsyncWithHttpInfo($report_schedule_id); - } - - /** - * Operation getReportScheduleAsyncWithHttpInfo - * - * - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportScheduleAsyncWithHttpInfo($report_schedule_id) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule'; - $request = $this->getReportScheduleRequest($report_schedule_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getReportSchedule' - * - * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getReportScheduleRequest($report_schedule_id) - { - // verify the required parameter 'report_schedule_id' is set - if ($report_schedule_id === null || (is_array($report_schedule_id) && count($report_schedule_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_schedule_id when calling getReportSchedule' - ); - } - - $resourcePath = '/reports/2021-06-30/schedules/{reportScheduleId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($report_schedule_id !== null) { - $resourcePath = str_replace( - '{' . 'reportScheduleId' . '}', - ObjectSerializer::toPathValue($report_schedule_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getReportSchedules - * - * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList - */ - public function getReportSchedules($report_types) - { - $response = $this->getReportSchedulesWithHttpInfo($report_types); - return $response; - } - - /** - * Operation getReportSchedulesWithHttpInfo - * - * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList, HTTP status code, HTTP response headers (array of strings) - */ - public function getReportSchedulesWithHttpInfo($report_types) - { - $request = $this->getReportSchedulesRequest($report_types); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getReportSchedulesAsync - * - * - * - * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportSchedulesAsync($report_types) - { - return $this->getReportSchedulesAsyncWithHttpInfo($report_types); - } - - /** - * Operation getReportSchedulesAsyncWithHttpInfo - * - * - * - * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportSchedulesAsyncWithHttpInfo($report_types) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\ReportScheduleList'; - $request = $this->getReportSchedulesRequest($report_types); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getReportSchedules' - * - * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getReportSchedulesRequest($report_types) - { - // verify the required parameter 'report_types' is set - if ($report_types === null || (is_array($report_types) && count($report_types) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $report_types when calling getReportSchedules' - ); - } - if (count($report_types) > 10) { - throw new \InvalidArgumentException('invalid value for "$report_types" when calling ReportsV20210630Api.getReportSchedules, number of items must be less than or equal to 10.'); - } - if (count($report_types) < 1) { - throw new \InvalidArgumentException('invalid value for "$report_types" when calling ReportsV20210630Api.getReportSchedules, number of items must be greater than or equal to 1.'); - } - - - $resourcePath = '/reports/2021-06-30/schedules'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($report_types)) { - $report_types = ObjectSerializer::serializeCollection($report_types, 'form', true); - } - if ($report_types !== null) { - $queryParams['reportTypes'] = $report_types; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getReports - * - * @param string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) - * @param string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) - * @param string $created_since The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. (optional) - * @param string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse - */ - public function getReports($report_types = null, $processing_statuses = null, $marketplace_ids = null, $page_size = 10, $created_since = null, $created_until = null, $next_token = null) - { - $response = $this->getReportsWithHttpInfo($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token); - return $response; - } - - /** - * Operation getReportsWithHttpInfo - * - * @param string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) - * @param string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) - * @param string $created_since The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. (optional) - * @param string $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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getReportsWithHttpInfo($report_types = null, $processing_statuses = null, $marketplace_ids = null, $page_size = 10, $created_since = null, $created_until = null, $next_token = null) - { - $request = $this->getReportsRequest($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ReportsV20210630\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ReportsV20210630\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getReportsAsync - * - * - * - * @param string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) - * @param string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) - * @param string $created_since The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. (optional) - * @param string $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 \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportsAsync($report_types = null, $processing_statuses = null, $marketplace_ids = null, $page_size = 10, $created_since = null, $created_until = null, $next_token = null) - { - return $this->getReportsAsyncWithHttpInfo($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token); - } - - /** - * Operation getReportsAsyncWithHttpInfo - * - * - * - * @param string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) - * @param string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) - * @param string $created_since The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. (optional) - * @param string $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 \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getReportsAsyncWithHttpInfo($report_types = null, $processing_statuses = null, $marketplace_ids = null, $page_size = 10, $created_since = null, $created_until = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\ReportsV20210630\GetReportsResponse'; - $request = $this->getReportsRequest($report_types, $processing_statuses, $marketplace_ids, $page_size, $created_since, $created_until, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getReports' - * - * @param string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) - * @param string[] $processing_statuses A list of processing statuses used to filter reports. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) - * @param string $created_since The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days. (optional) - * @param string $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 \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getReportsRequest($report_types = null, $processing_statuses = null, $marketplace_ids = null, $page_size = 10, $created_since = null, $created_until = null, $next_token = null) - { - if ($report_types !== null && count($report_types) > 10) { - throw new \InvalidArgumentException('invalid value for "$report_types" when calling ReportsV20210630Api.getReports, number of items must be less than or equal to 10.'); - } - if ($report_types !== null && count($report_types) < 1) { - throw new \InvalidArgumentException('invalid value for "$report_types" when calling ReportsV20210630Api.getReports, number of items must be greater than or equal to 1.'); - } - - if ($processing_statuses !== null && count($processing_statuses) < 1) { - throw new \InvalidArgumentException('invalid value for "$processing_statuses" when calling ReportsV20210630Api.getReports, number of items must be greater than or equal to 1.'); - } - - if ($marketplace_ids !== null && count($marketplace_ids) > 10) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ReportsV20210630Api.getReports, number of items must be less than or equal to 10.'); - } - if ($marketplace_ids !== null && count($marketplace_ids) < 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ReportsV20210630Api.getReports, number of items must be greater than or equal to 1.'); - } - - if ($page_size !== null && $page_size > 100) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling ReportsV20210630Api.getReports, must be smaller than or equal to 100.'); - } - if ($page_size !== null && $page_size < 1) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling ReportsV20210630Api.getReports, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/reports/2021-06-30/reports'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($report_types)) { - $report_types = ObjectSerializer::serializeCollection($report_types, 'form', true); - } - if ($report_types !== null) { - $queryParams['reportTypes'] = $report_types; - } - - // query params - if (is_array($processing_statuses)) { - $processing_statuses = ObjectSerializer::serializeCollection($processing_statuses, 'form', true); - } - if ($processing_statuses !== null) { - $queryParams['processingStatuses'] = $processing_statuses; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['pageSize'] = $page_size; - } - - // query params - if (is_array($created_since)) { - $created_since = ObjectSerializer::serializeCollection($created_since, '', true); - } - if ($created_since !== null) { - $queryParams['createdSince'] = $created_since; - } - - // query params - if (is_array($created_until)) { - $created_until = ObjectSerializer::serializeCollection($created_until, '', true); - } - if ($created_until !== null) { - $queryParams['createdUntil'] = $created_until; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/SalesV1Api.php b/lib/Api/SalesV1Api.php deleted file mode 100644 index 28cb8440a..000000000 --- a/lib/Api/SalesV1Api.php +++ /dev/null @@ -1,556 +0,0 @@ -getOrderMetricsWithHttpInfo($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); - return $response; - } - - /** - * Operation getOrderMetricsWithHttpInfo - * - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - * For 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 (all lowercase). 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 \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SalesV1\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); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderMetricsAsync - * - * - * - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - * For 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 (all lowercase). 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) - { - return $this->getOrderMetricsAsyncWithHttpInfo($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); - } - - /** - * Operation getOrderMetricsAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - * For 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 (all lowercase). 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 = '\SellingPartnerApi\Model\SalesV1\GetOrderMetricsResponse'; - $request = $this->getOrderMetricsRequest($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderMetrics' - * - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. - * For 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 (all lowercase). 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 - */ - public 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' - ); - } - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/sales/v1/orderMetrics'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($interval)) { - $interval = ObjectSerializer::serializeCollection($interval, '', true); - } - if ($interval !== null) { - $queryParams['interval'] = $interval; - } - - // query params - if (is_array($granularity_time_zone)) { - $granularity_time_zone = ObjectSerializer::serializeCollection($granularity_time_zone, '', true); - } - if ($granularity_time_zone !== null) { - $queryParams['granularityTimeZone'] = $granularity_time_zone; - } - - // query params - if (is_array($granularity)) { - $granularity = ObjectSerializer::serializeCollection($granularity, '', true); - } - if ($granularity !== null) { - $queryParams['granularity'] = $granularity; - } - - // query params - if (is_array($buyer_type)) { - $buyer_type = ObjectSerializer::serializeCollection($buyer_type, '', true); - } - if ($buyer_type !== null) { - $queryParams['buyerType'] = $buyer_type; - } - - // query params - if (is_array($fulfillment_network)) { - $fulfillment_network = ObjectSerializer::serializeCollection($fulfillment_network, '', true); - } - if ($fulfillment_network !== null) { - $queryParams['fulfillmentNetwork'] = $fulfillment_network; - } - - // query params - if (is_array($first_day_of_week)) { - $first_day_of_week = ObjectSerializer::serializeCollection($first_day_of_week, '', true); - } - if ($first_day_of_week !== null) { - $queryParams['firstDayOfWeek'] = $first_day_of_week; - } - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['asin'] = $asin; - } - - // query params - if (is_array($sku)) { - $sku = ObjectSerializer::serializeCollection($sku, '', true); - } - if ($sku !== null) { - $queryParams['sku'] = $sku; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/SellersV1Api.php b/lib/Api/SellersV1Api.php deleted file mode 100644 index 5e5f418d9..000000000 --- a/lib/Api/SellersV1Api.php +++ /dev/null @@ -1,416 +0,0 @@ -getMarketplaceParticipationsWithHttpInfo(); - return $response; - } - - /** - * Operation getMarketplaceParticipationsWithHttpInfo - * - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getMarketplaceParticipationsWithHttpInfo() - { - $request = $this->getMarketplaceParticipationsRequest(); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getMarketplaceParticipationsAsync - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMarketplaceParticipationsAsync() - { - return $this->getMarketplaceParticipationsAsyncWithHttpInfo(); - } - - /** - * Operation getMarketplaceParticipationsAsyncWithHttpInfo - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getMarketplaceParticipationsAsyncWithHttpInfo() - { - $returnType = '\SellingPartnerApi\Model\SellersV1\GetMarketplaceParticipationsResponse'; - $request = $this->getMarketplaceParticipationsRequest(); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getMarketplaceParticipations' - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getMarketplaceParticipationsRequest() - { - - $resourcePath = '/sellers/v1/marketplaceParticipations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ServiceV1Api.php b/lib/Api/ServiceV1Api.php deleted file mode 100644 index 7bbb62447..000000000 --- a/lib/Api/ServiceV1Api.php +++ /dev/null @@ -1,7735 +0,0 @@ -addAppointmentForServiceJobByServiceJobIdWithHttpInfo($service_job_id, $body); - return $response; - } - - /** - * Operation addAppointmentForServiceJobByServiceJobIdWithHttpInfo - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest $body Add appointment operation input details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function addAppointmentForServiceJobByServiceJobIdWithHttpInfo($service_job_id, $body) - { - $request = $this->addAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation addAppointmentForServiceJobByServiceJobIdAsync - * - * - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest $body Add appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function addAppointmentForServiceJobByServiceJobIdAsync($service_job_id, $body) - { - return $this->addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $body); - } - - /** - * Operation addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo - * - * - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest $body Add appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse'; - $request = $this->addAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'addAppointmentForServiceJobByServiceJobId' - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AddAppointmentRequest $body Add appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function addAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $body) - { - // 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 (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.addAppointmentForServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.addAppointmentForServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - // 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' - ); - } - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation assignAppointmentResources - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse - */ - public function assignAppointmentResources($service_job_id, $appointment_id, $body) - { - $response = $this->assignAppointmentResourcesWithHttpInfo($service_job_id, $appointment_id, $body); - return $response; - } - - /** - * Operation assignAppointmentResourcesWithHttpInfo - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function assignAppointmentResourcesWithHttpInfo($service_job_id, $appointment_id, $body) - { - $request = $this->assignAppointmentResourcesRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation assignAppointmentResourcesAsync - * - * - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function assignAppointmentResourcesAsync($service_job_id, $appointment_id, $body) - { - return $this->assignAppointmentResourcesAsyncWithHttpInfo($service_job_id, $appointment_id, $body); - } - - /** - * Operation assignAppointmentResourcesAsyncWithHttpInfo - * - * - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function assignAppointmentResourcesAsyncWithHttpInfo($service_job_id, $appointment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponse'; - $request = $this->assignAppointmentResourcesRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'assignAppointmentResources' - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function assignAppointmentResourcesRequest($service_job_id, $appointment_id, $body) - { - // 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 assignAppointmentResources' - ); - } - if (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.assignAppointmentResources, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.assignAppointmentResources, must be bigger than or equal to 1.'); - } - - // 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 assignAppointmentResources' - ); - } - if (strlen($appointment_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.assignAppointmentResources, must be smaller than or equal to 100.'); - } - if (strlen($appointment_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.assignAppointmentResources, must be bigger than or equal to 1.'); - } - - // 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 assignAppointmentResources' - ); - } - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/resources'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - // path params - if ($appointment_id !== null) { - $resourcePath = str_replace( - '{' . 'appointmentId' . '}', - ObjectSerializer::toPathValue($appointment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation cancelReservation - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\CancelReservationResponse - */ - public function cancelReservation($reservation_id, $marketplace_ids) - { - $response = $this->cancelReservationWithHttpInfo($reservation_id, $marketplace_ids); - return $response; - } - - /** - * Operation cancelReservationWithHttpInfo - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\CancelReservationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelReservationWithHttpInfo($reservation_id, $marketplace_ids) - { - $request = $this->cancelReservationRequest($reservation_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 204: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 204: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelReservationAsync - * - * - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReservationAsync($reservation_id, $marketplace_ids) - { - return $this->cancelReservationAsyncWithHttpInfo($reservation_id, $marketplace_ids); - } - - /** - * Operation cancelReservationAsyncWithHttpInfo - * - * - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelReservationAsyncWithHttpInfo($reservation_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\CancelReservationResponse'; - $request = $this->cancelReservationRequest($reservation_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelReservation' - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelReservationRequest($reservation_id, $marketplace_ids) - { - // verify the required parameter 'reservation_id' is set - if ($reservation_id === null || (is_array($reservation_id) && count($reservation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $reservation_id when calling cancelReservation' - ); - } - if (strlen($reservation_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$reservation_id" when calling ServiceV1Api.cancelReservation, must be smaller than or equal to 100.'); - } - if (strlen($reservation_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$reservation_id" when calling ServiceV1Api.cancelReservation, must be bigger than or equal to 1.'); - } - - // 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 cancelReservation' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.cancelReservation, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/service/v1/reservation/{reservationId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($reservation_id !== null) { - $resourcePath = str_replace( - '{' . 'reservationId' . '}', - ObjectSerializer::toPathValue($reservation_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse - */ - public function cancelServiceJobByServiceJobId($service_job_id, $cancellation_reason_code) - { - $response = $this->cancelServiceJobByServiceJobIdWithHttpInfo($service_job_id, $cancellation_reason_code); - return $response; - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\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); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelServiceJobByServiceJobIdAsync($service_job_id, $cancellation_reason_code) - { - return $this->cancelServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $cancellation_reason_code); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $cancellation_reason_code) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\CancelServiceJobByServiceJobIdResponse'; - $request = $this->cancelServiceJobByServiceJobIdRequest($service_job_id, $cancellation_reason_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.cancelServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.cancelServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - // 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 (strlen($cancellation_reason_code) > 100) { - throw new \InvalidArgumentException('invalid length for "$cancellation_reason_code" when calling ServiceV1Api.cancelServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($cancellation_reason_code) < 1) { - throw new \InvalidArgumentException('invalid length for "$cancellation_reason_code" when calling ServiceV1Api.cancelServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - if (!preg_match("/^[A-Z0-9_]*$/", $cancellation_reason_code)) { - throw new \InvalidArgumentException("invalid value for \"cancellation_reason_code\" when calling ServiceV1Api.cancelServiceJobByServiceJobId, must conform to the pattern /^[A-Z0-9_]*$/."); - } - - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/cancellations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($cancellation_reason_code)) { - $cancellation_reason_code = ObjectSerializer::serializeCollection($cancellation_reason_code, '', true); - } - if ($cancellation_reason_code !== null) { - $queryParams['cancellationReasonCode'] = $cancellation_reason_code; - } - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation completeServiceJobByServiceJobId - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse - */ - public function completeServiceJobByServiceJobId($service_job_id) - { - $response = $this->completeServiceJobByServiceJobIdWithHttpInfo($service_job_id); - return $response; - } - - /** - * Operation completeServiceJobByServiceJobIdWithHttpInfo - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function completeServiceJobByServiceJobIdWithHttpInfo($service_job_id) - { - $request = $this->completeServiceJobByServiceJobIdRequest($service_job_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation completeServiceJobByServiceJobIdAsync - * - * - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function completeServiceJobByServiceJobIdAsync($service_job_id) - { - return $this->completeServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id); - } - - /** - * Operation completeServiceJobByServiceJobIdAsyncWithHttpInfo - * - * - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function completeServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\CompleteServiceJobByServiceJobIdResponse'; - $request = $this->completeServiceJobByServiceJobIdRequest($service_job_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'completeServiceJobByServiceJobId' - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.completeServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.completeServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/completions'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createReservation - * - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest $body Reservation details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\CreateReservationResponse - */ - public function createReservation($marketplace_ids, $body) - { - $response = $this->createReservationWithHttpInfo($marketplace_ids, $body); - return $response; - } - - /** - * Operation createReservationWithHttpInfo - * - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest $body Reservation details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\CreateReservationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createReservationWithHttpInfo($marketplace_ids, $body) - { - $request = $this->createReservationRequest($marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createReservationAsync - * - * - * - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReservationAsync($marketplace_ids, $body) - { - return $this->createReservationAsyncWithHttpInfo($marketplace_ids, $body); - } - - /** - * Operation createReservationAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createReservationAsyncWithHttpInfo($marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\CreateReservationResponse'; - $request = $this->createReservationRequest($marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createReservation' - * - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createReservationRequest($marketplace_ids, $body) - { - // 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 createReservation' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.createReservation, number of items must be less than or equal to 1.'); - } - - // 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 createReservation' - ); - } - - $resourcePath = '/service/v1/reservation'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createServiceDocumentUploadDestination - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination - */ - public function createServiceDocumentUploadDestination($body) - { - $response = $this->createServiceDocumentUploadDestinationWithHttpInfo($body); - return $response; - } - - /** - * Operation createServiceDocumentUploadDestinationWithHttpInfo - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination, HTTP status code, HTTP response headers (array of strings) - */ - public function createServiceDocumentUploadDestinationWithHttpInfo($body) - { - $request = $this->createServiceDocumentUploadDestinationRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createServiceDocumentUploadDestinationAsync - * - * - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createServiceDocumentUploadDestinationAsync($body) - { - return $this->createServiceDocumentUploadDestinationAsyncWithHttpInfo($body); - } - - /** - * Operation createServiceDocumentUploadDestinationAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createServiceDocumentUploadDestinationAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\CreateServiceDocumentUploadDestination'; - $request = $this->createServiceDocumentUploadDestinationRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createServiceDocumentUploadDestination' - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceUploadDocument $body Upload document operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createServiceDocumentUploadDestinationRequest($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 createServiceDocumentUploadDestination' - ); - } - - $resourcePath = '/service/v1/documents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAppointmentSlots - * - * @param string $asin ASIN associated with the service. (required) - * @param string $store_id Store identifier defining the region scope to retrive appointment slots. (required) - * @param string[] $marketplace_ids An identifier for the marketplace for which appointment slots are queried (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse - */ - public function getAppointmentSlots($asin, $store_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $response = $this->getAppointmentSlotsWithHttpInfo($asin, $store_id, $marketplace_ids, $start_time, $end_time); - return $response; - } - - /** - * Operation getAppointmentSlotsWithHttpInfo - * - * @param string $asin ASIN associated with the service. (required) - * @param string $store_id Store identifier defining the region scope to retrive appointment slots. (required) - * @param string[] $marketplace_ids An identifier for the marketplace for which appointment slots are queried (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAppointmentSlotsWithHttpInfo($asin, $store_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $request = $this->getAppointmentSlotsRequest($asin, $store_id, $marketplace_ids, $start_time, $end_time); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAppointmentSlotsAsync - * - * - * - * @param string $asin ASIN associated with the service. (required) - * @param string $store_id Store identifier defining the region scope to retrive appointment slots. (required) - * @param string[] $marketplace_ids An identifier for the marketplace for which appointment slots are queried (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAppointmentSlotsAsync($asin, $store_id, $marketplace_ids, $start_time = null, $end_time = null) - { - return $this->getAppointmentSlotsAsyncWithHttpInfo($asin, $store_id, $marketplace_ids, $start_time, $end_time); - } - - /** - * Operation getAppointmentSlotsAsyncWithHttpInfo - * - * - * - * @param string $asin ASIN associated with the service. (required) - * @param string $store_id Store identifier defining the region scope to retrive appointment slots. (required) - * @param string[] $marketplace_ids An identifier for the marketplace for which appointment slots are queried (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAppointmentSlotsAsyncWithHttpInfo($asin, $store_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse'; - $request = $this->getAppointmentSlotsRequest($asin, $store_id, $marketplace_ids, $start_time, $end_time); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAppointmentSlots' - * - * @param string $asin ASIN associated with the service. (required) - * @param string $store_id Store identifier defining the region scope to retrive appointment slots. (required) - * @param string[] $marketplace_ids An identifier for the marketplace for which appointment slots are queried (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAppointmentSlotsRequest($asin, $store_id, $marketplace_ids, $start_time = null, $end_time = null) - { - // 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 getAppointmentSlots' - ); - } - // verify the required parameter 'store_id' is set - if ($store_id === null || (is_array($store_id) && count($store_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $store_id when calling getAppointmentSlots' - ); - } - if (strlen($store_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$store_id" when calling ServiceV1Api.getAppointmentSlots, must be smaller than or equal to 100.'); - } - if (strlen($store_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$store_id" when calling ServiceV1Api.getAppointmentSlots, must be bigger than or equal to 1.'); - } - - // 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 getAppointmentSlots' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.getAppointmentSlots, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/service/v1/appointmentSlots'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($asin)) { - $asin = ObjectSerializer::serializeCollection($asin, '', true); - } - if ($asin !== null) { - $queryParams['asin'] = $asin; - } - - // query params - if (is_array($store_id)) { - $store_id = ObjectSerializer::serializeCollection($store_id, '', true); - } - if ($store_id !== null) { - $queryParams['storeId'] = $store_id; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($start_time)) { - $start_time = ObjectSerializer::serializeCollection($start_time, '', true); - } - if ($start_time !== null) { - $queryParams['startTime'] = $start_time; - } - - // query params - if (is_array($end_time)) { - $end_time = ObjectSerializer::serializeCollection($end_time, '', true); - } - if ($end_time !== null) { - $queryParams['endTime'] = $end_time; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAppointmmentSlotsByJobId - * - * @param string $service_job_id A service job identifier to retrive appointment slots for associated service. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse - */ - public function getAppointmmentSlotsByJobId($service_job_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $response = $this->getAppointmmentSlotsByJobIdWithHttpInfo($service_job_id, $marketplace_ids, $start_time, $end_time); - return $response; - } - - /** - * Operation getAppointmmentSlotsByJobIdWithHttpInfo - * - * @param string $service_job_id A service job identifier to retrive appointment slots for associated service. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAppointmmentSlotsByJobIdWithHttpInfo($service_job_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $request = $this->getAppointmmentSlotsByJobIdRequest($service_job_id, $marketplace_ids, $start_time, $end_time); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAppointmmentSlotsByJobIdAsync - * - * - * - * @param string $service_job_id A service job identifier to retrive appointment slots for associated service. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAppointmmentSlotsByJobIdAsync($service_job_id, $marketplace_ids, $start_time = null, $end_time = null) - { - return $this->getAppointmmentSlotsByJobIdAsyncWithHttpInfo($service_job_id, $marketplace_ids, $start_time, $end_time); - } - - /** - * Operation getAppointmmentSlotsByJobIdAsyncWithHttpInfo - * - * - * - * @param string $service_job_id A service job identifier to retrive appointment slots for associated service. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAppointmmentSlotsByJobIdAsyncWithHttpInfo($service_job_id, $marketplace_ids, $start_time = null, $end_time = null) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetAppointmentSlotsResponse'; - $request = $this->getAppointmmentSlotsByJobIdRequest($service_job_id, $marketplace_ids, $start_time, $end_time); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAppointmmentSlotsByJobId' - * - * @param string $service_job_id A service job identifier to retrive appointment slots for associated service. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param string $start_time A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. (optional) - * @param string $end_time A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAppointmmentSlotsByJobIdRequest($service_job_id, $marketplace_ids, $start_time = null, $end_time = null) - { - // 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 getAppointmmentSlotsByJobId' - ); - } - if (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.getAppointmmentSlotsByJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.getAppointmmentSlotsByJobId, must be bigger than or equal to 1.'); - } - - // 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 getAppointmmentSlotsByJobId' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.getAppointmmentSlotsByJobId, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointmentSlots'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($start_time)) { - $start_time = ObjectSerializer::serializeCollection($start_time, '', true); - } - if ($start_time !== null) { - $queryParams['startTime'] = $start_time; - } - - // query params - if (is_array($end_time)) { - $end_time = ObjectSerializer::serializeCollection($end_time, '', true); - } - if ($end_time !== null) { - $queryParams['endTime'] = $end_time; - } - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getFixedSlotCapacity - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity - */ - public function getFixedSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $response = $this->getFixedSlotCapacityWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token); - return $response; - } - - /** - * Operation getFixedSlotCapacityWithHttpInfo - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity, HTTP status code, HTTP response headers (array of strings) - */ - public function getFixedSlotCapacityWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $request = $this->getFixedSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getFixedSlotCapacityAsync - * - * - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFixedSlotCapacityAsync($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - return $this->getFixedSlotCapacityAsyncWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token); - } - - /** - * Operation getFixedSlotCapacityAsyncWithHttpInfo - * - * - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getFixedSlotCapacityAsyncWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\FixedSlotCapacity'; - $request = $this->getFixedSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getFixedSlotCapacity' - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getFixedSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - // verify the required parameter 'resource_id' is set - if ($resource_id === null || (is_array($resource_id) && count($resource_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $resource_id when calling getFixedSlotCapacity' - ); - } - if (strlen($resource_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.getFixedSlotCapacity, must be smaller than or equal to 100.'); - } - if (strlen($resource_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.getFixedSlotCapacity, must be bigger than or equal to 1.'); - } - - // 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 getFixedSlotCapacity' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.getFixedSlotCapacity, number of items must be less than or equal to 1.'); - } - - // 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 getFixedSlotCapacity' - ); - } - - $resourcePath = '/service/v1/serviceResources/{resourceId}/capacity/fixed'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($next_page_token)) { - $next_page_token = ObjectSerializer::serializeCollection($next_page_token, '', true); - } - if ($next_page_token !== null) { - $queryParams['nextPageToken'] = $next_page_token; - } - - // path params - if ($resource_id !== null) { - $resourcePath = str_replace( - '{' . 'resourceId' . '}', - ObjectSerializer::toPathValue($resource_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getRangeSlotCapacity - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity - */ - public function getRangeSlotCapacity($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $response = $this->getRangeSlotCapacityWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token); - return $response; - } - - /** - * Operation getRangeSlotCapacityWithHttpInfo - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity, HTTP status code, HTTP response headers (array of strings) - */ - public function getRangeSlotCapacityWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $request = $this->getRangeSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityErrors', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getRangeSlotCapacityAsync - * - * - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRangeSlotCapacityAsync($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - return $this->getRangeSlotCapacityAsyncWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token); - } - - /** - * Operation getRangeSlotCapacityAsyncWithHttpInfo - * - * - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRangeSlotCapacityAsyncWithHttpInfo($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\RangeSlotCapacity'; - $request = $this->getRangeSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getRangeSlotCapacity' - * - * @param string $resource_id Resource Identifier. (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlotCapacityQuery $body Request body. (required) - * @param string $next_page_token Next page token returned in the response of your previous request. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getRangeSlotCapacityRequest($resource_id, $marketplace_ids, $body, $next_page_token = null) - { - // verify the required parameter 'resource_id' is set - if ($resource_id === null || (is_array($resource_id) && count($resource_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $resource_id when calling getRangeSlotCapacity' - ); - } - if (strlen($resource_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.getRangeSlotCapacity, must be smaller than or equal to 100.'); - } - if (strlen($resource_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.getRangeSlotCapacity, must be bigger than or equal to 1.'); - } - - // 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 getRangeSlotCapacity' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.getRangeSlotCapacity, number of items must be less than or equal to 1.'); - } - - // 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 getRangeSlotCapacity' - ); - } - - $resourcePath = '/service/v1/serviceResources/{resourceId}/capacity/range'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($next_page_token)) { - $next_page_token = ObjectSerializer::serializeCollection($next_page_token, '', true); - } - if ($next_page_token !== null) { - $queryParams['nextPageToken'] = $next_page_token; - } - - // path params - if ($resource_id !== null) { - $resourcePath = str_replace( - '{' . 'resourceId' . '}', - ObjectSerializer::toPathValue($resource_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getServiceJobByServiceJobId - * - * @param string $service_job_id A service job identifier. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse - */ - public function getServiceJobByServiceJobId($service_job_id) - { - $response = $this->getServiceJobByServiceJobIdWithHttpInfo($service_job_id); - return $response; - } - - /** - * Operation getServiceJobByServiceJobIdWithHttpInfo - * - * @param string $service_job_id A service job identifier. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getServiceJobByServiceJobIdWithHttpInfo($service_job_id) - { - $request = $this->getServiceJobByServiceJobIdRequest($service_job_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getServiceJobByServiceJobIdAsync - * - * - * - * @param string $service_job_id A service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getServiceJobByServiceJobIdAsync($service_job_id) - { - return $this->getServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id); - } - - /** - * Operation getServiceJobByServiceJobIdAsyncWithHttpInfo - * - * - * - * @param string $service_job_id A service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetServiceJobByServiceJobIdResponse'; - $request = $this->getServiceJobByServiceJobIdRequest($service_job_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getServiceJobByServiceJobId' - * - * @param string $service_job_id A service job identifier. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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 (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.getServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.getServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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 at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedules at or after 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 schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. (optional) - * @param string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param string[] $required_skills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. (optional) - * @param string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\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, $asins = null, $required_skills = null, $store_ids = null) - { - $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, $asins, $required_skills, $store_ids); - return $response; - } - - /** - * 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 at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedules at or after 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 schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. (optional) - * @param string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param string[] $required_skills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. (optional) - * @param string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\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, $asins = null, $required_skills = null, $store_ids = 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, $asins, $required_skills, $store_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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 at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedules at or after 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 schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. (optional) - * @param string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param string[] $required_skills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. (optional) - * @param string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (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, $asins = null, $required_skills = null, $store_ids = null) - { - return $this->getServiceJobsAsyncWithHttpInfo($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, $asins, $required_skills, $store_ids); - } - - /** - * 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 at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedules at or after 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 schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. (optional) - * @param string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param string[] $required_skills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. (optional) - * @param string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (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, $asins = null, $required_skills = null, $store_ids = null) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\GetServiceJobsResponse'; - $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, $asins, $required_skills, $store_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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 at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated at or after 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 at or before a specified time. Must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedules at or after 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 schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. (optional) - * @param string[] $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. (optional) - * @param string[] $required_skills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. (optional) - * @param string[] $store_ids List of Amazon-defined identifiers for the region scope. Max values supported is 50. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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, $asins = null, $required_skills = null, $store_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 getServiceJobs' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.getServiceJobs, number of items must be less than or equal to 1.'); - } - - if ($service_order_ids !== null && count($service_order_ids) > 20) { - throw new \InvalidArgumentException('invalid value for "$service_order_ids" when calling ServiceV1Api.getServiceJobs, number of items must be less than or equal to 20.'); - } - if ($service_order_ids !== null && count($service_order_ids) < 1) { - throw new \InvalidArgumentException('invalid value for "$service_order_ids" when calling ServiceV1Api.getServiceJobs, number of items must be greater than or equal to 1.'); - } - - if ($page_size !== null && $page_size > 20) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling ServiceV1Api.getServiceJobs, must be smaller than or equal to 20.'); - } - if ($page_size !== null && $page_size < 1) { - throw new \InvalidArgumentException('invalid value for "$page_size" when calling ServiceV1Api.getServiceJobs, must be bigger than or equal to 1.'); - } - - if ($asins !== null && count($asins) > 20) { - throw new \InvalidArgumentException('invalid value for "$asins" when calling ServiceV1Api.getServiceJobs, number of items must be less than or equal to 20.'); - } - if ($asins !== null && count($asins) < 1) { - throw new \InvalidArgumentException('invalid value for "$asins" when calling ServiceV1Api.getServiceJobs, number of items must be greater than or equal to 1.'); - } - - if ($required_skills !== null && count($required_skills) > 20) { - throw new \InvalidArgumentException('invalid value for "$required_skills" when calling ServiceV1Api.getServiceJobs, number of items must be less than or equal to 20.'); - } - if ($required_skills !== null && count($required_skills) < 1) { - throw new \InvalidArgumentException('invalid value for "$required_skills" when calling ServiceV1Api.getServiceJobs, number of items must be greater than or equal to 1.'); - } - - if ($store_ids !== null && count($store_ids) > 50) { - throw new \InvalidArgumentException('invalid value for "$store_ids" when calling ServiceV1Api.getServiceJobs, number of items must be less than or equal to 50.'); - } - if ($store_ids !== null && count($store_ids) < 1) { - throw new \InvalidArgumentException('invalid value for "$store_ids" when calling ServiceV1Api.getServiceJobs, number of items must be greater than or equal to 1.'); - } - - - $resourcePath = '/service/v1/serviceJobs'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($service_order_ids)) { - $service_order_ids = ObjectSerializer::serializeCollection($service_order_ids, 'form', true); - } - if ($service_order_ids !== null) { - $queryParams['serviceOrderIds'] = $service_order_ids; - } - - // query params - if (is_array($service_job_status)) { - $service_job_status = ObjectSerializer::serializeCollection($service_job_status, 'form', true); - } - if ($service_job_status !== null) { - $queryParams['serviceJobStatus'] = $service_job_status; - } - - // query params - if (is_array($page_token)) { - $page_token = ObjectSerializer::serializeCollection($page_token, '', true); - } - if ($page_token !== null) { - $queryParams['pageToken'] = $page_token; - } - - // query params - if (is_array($page_size)) { - $page_size = ObjectSerializer::serializeCollection($page_size, '', true); - } - if ($page_size !== null) { - $queryParams['pageSize'] = $page_size; - } - - // query params - if (is_array($sort_field)) { - $sort_field = ObjectSerializer::serializeCollection($sort_field, '', true); - } - if ($sort_field !== null) { - $queryParams['sortField'] = $sort_field; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($last_updated_after)) { - $last_updated_after = ObjectSerializer::serializeCollection($last_updated_after, '', true); - } - if ($last_updated_after !== null) { - $queryParams['lastUpdatedAfter'] = $last_updated_after; - } - - // query params - if (is_array($last_updated_before)) { - $last_updated_before = ObjectSerializer::serializeCollection($last_updated_before, '', true); - } - if ($last_updated_before !== null) { - $queryParams['lastUpdatedBefore'] = $last_updated_before; - } - - // query params - if (is_array($schedule_start_date)) { - $schedule_start_date = ObjectSerializer::serializeCollection($schedule_start_date, '', true); - } - if ($schedule_start_date !== null) { - $queryParams['scheduleStartDate'] = $schedule_start_date; - } - - // query params - if (is_array($schedule_end_date)) { - $schedule_end_date = ObjectSerializer::serializeCollection($schedule_end_date, '', true); - } - if ($schedule_end_date !== null) { - $queryParams['scheduleEndDate'] = $schedule_end_date; - } - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($asins)) { - $asins = ObjectSerializer::serializeCollection($asins, 'form', true); - } - if ($asins !== null) { - $queryParams['asins'] = $asins; - } - - // query params - if (is_array($required_skills)) { - $required_skills = ObjectSerializer::serializeCollection($required_skills, 'form', true); - } - if ($required_skills !== null) { - $queryParams['requiredSkills'] = $required_skills; - } - - // query params - if (is_array($store_ids)) { - $store_ids = ObjectSerializer::serializeCollection($store_ids, 'form', true); - } - if ($store_ids !== null) { - $queryParams['storeIds'] = $store_ids; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation rescheduleAppointmentForServiceJobByServiceJobId - * - * @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 \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse - */ - public function rescheduleAppointmentForServiceJobByServiceJobId($service_job_id, $appointment_id, $body) - { - $response = $this->rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo($service_job_id, $appointment_id, $body); - return $response; - } - - /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo - * - * @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 \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo($service_job_id, $appointment_id, $body) - { - $request = $this->rescheduleAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsync - * - * - * - * @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 \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function rescheduleAppointmentForServiceJobByServiceJobIdAsync($service_job_id, $appointment_id, $body) - { - return $this->rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $appointment_id, $body); - } - - /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo - * - * - * - * @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 \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $appointment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\SetAppointmentResponse'; - $request = $this->rescheduleAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'rescheduleAppointmentForServiceJobByServiceJobId' - * - * @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 \SellingPartnerApi\Model\ServiceV1\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function rescheduleAppointmentForServiceJobByServiceJobIdRequest($service_job_id, $appointment_id, $body) - { - // 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 (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.rescheduleAppointmentForServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.rescheduleAppointmentForServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - // 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 (strlen($appointment_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.rescheduleAppointmentForServiceJobByServiceJobId, must be smaller than or equal to 100.'); - } - if (strlen($appointment_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.rescheduleAppointmentForServiceJobByServiceJobId, must be bigger than or equal to 1.'); - } - - // 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' - ); - } - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - // path params - if ($appointment_id !== null) { - $resourcePath = str_replace( - '{' . 'appointmentId' . '}', - ObjectSerializer::toPathValue($appointment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation setAppointmentFulfillmentData - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return string - */ - public function setAppointmentFulfillmentData($service_job_id, $appointment_id, $body) - { - $response = $this->setAppointmentFulfillmentDataWithHttpInfo($service_job_id, $appointment_id, $body); - return $response; - } - - /** - * Operation setAppointmentFulfillmentDataWithHttpInfo - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) - */ - public function setAppointmentFulfillmentDataWithHttpInfo($service_job_id, $appointment_id, $body) - { - $request = $this->setAppointmentFulfillmentDataRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 204: - if ('string' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, 'string', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 422: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\Error[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\Error[]', $response->getHeaders()); - } - - $returnType = 'string'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 204: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - 'string', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 422: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\Error[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation setAppointmentFulfillmentDataAsync - * - * - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function setAppointmentFulfillmentDataAsync($service_job_id, $appointment_id, $body) - { - return $this->setAppointmentFulfillmentDataAsyncWithHttpInfo($service_job_id, $appointment_id, $body); - } - - /** - * Operation setAppointmentFulfillmentDataAsyncWithHttpInfo - * - * - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function setAppointmentFulfillmentDataAsyncWithHttpInfo($service_job_id, $appointment_id, $body) - { - $returnType = 'string'; - $request = $this->setAppointmentFulfillmentDataRequest($service_job_id, $appointment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'setAppointmentFulfillmentData' - * - * @param string $service_job_id An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. (required) - * @param string $appointment_id An Amazon-defined identifier of active service job appointment. (required) - * @param \SellingPartnerApi\Model\ServiceV1\SetAppointmentFulfillmentDataRequest $body Appointment fulfillment data collection details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function setAppointmentFulfillmentDataRequest($service_job_id, $appointment_id, $body) - { - // 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 setAppointmentFulfillmentData' - ); - } - if (strlen($service_job_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.setAppointmentFulfillmentData, must be smaller than or equal to 100.'); - } - if (strlen($service_job_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$service_job_id" when calling ServiceV1Api.setAppointmentFulfillmentData, must be bigger than or equal to 1.'); - } - - // 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 setAppointmentFulfillmentData' - ); - } - if (strlen($appointment_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.setAppointmentFulfillmentData, must be smaller than or equal to 100.'); - } - if (strlen($appointment_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$appointment_id" when calling ServiceV1Api.setAppointmentFulfillmentData, must be bigger than or equal to 1.'); - } - - // 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 setAppointmentFulfillmentData' - ); - } - - $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}/fulfillment'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($service_job_id !== null) { - $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', - ObjectSerializer::toPathValue($service_job_id), - $resourcePath - ); - } - - // path params - if ($appointment_id !== null) { - $resourcePath = str_replace( - '{' . 'appointmentId' . '}', - ObjectSerializer::toPathValue($appointment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateReservation - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest $body Reservation details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse - */ - public function updateReservation($reservation_id, $marketplace_ids, $body) - { - $response = $this->updateReservationWithHttpInfo($reservation_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation updateReservationWithHttpInfo - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest $body Reservation details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function updateReservationWithHttpInfo($reservation_id, $marketplace_ids, $body) - { - $request = $this->updateReservationRequest($reservation_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateReservationAsync - * - * - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateReservationAsync($reservation_id, $marketplace_ids, $body) - { - return $this->updateReservationAsyncWithHttpInfo($reservation_id, $marketplace_ids, $body); - } - - /** - * Operation updateReservationAsyncWithHttpInfo - * - * - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateReservationAsyncWithHttpInfo($reservation_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\UpdateReservationResponse'; - $request = $this->updateReservationRequest($reservation_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateReservation' - * - * @param string $reservation_id Reservation Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRequest $body Reservation details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateReservationRequest($reservation_id, $marketplace_ids, $body) - { - // verify the required parameter 'reservation_id' is set - if ($reservation_id === null || (is_array($reservation_id) && count($reservation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $reservation_id when calling updateReservation' - ); - } - if (strlen($reservation_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$reservation_id" when calling ServiceV1Api.updateReservation, must be smaller than or equal to 100.'); - } - if (strlen($reservation_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$reservation_id" when calling ServiceV1Api.updateReservation, must be bigger than or equal to 1.'); - } - - // 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 updateReservation' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.updateReservation, number of items must be less than or equal to 1.'); - } - - // 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 updateReservation' - ); - } - - $resourcePath = '/service/v1/reservation/{reservationId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($reservation_id !== null) { - $resourcePath = str_replace( - '{' . 'reservationId' . '}', - ObjectSerializer::toPathValue($reservation_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateSchedule - * - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest $body Schedule details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse - */ - public function updateSchedule($resource_id, $marketplace_ids, $body) - { - $response = $this->updateScheduleWithHttpInfo($resource_id, $marketplace_ids, $body); - return $response; - } - - /** - * Operation updateScheduleWithHttpInfo - * - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest $body Schedule details (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function updateScheduleWithHttpInfo($resource_id, $marketplace_ids, $body) - { - $request = $this->updateScheduleRequest($resource_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation updateScheduleAsync - * - * - * - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest $body Schedule details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateScheduleAsync($resource_id, $marketplace_ids, $body) - { - return $this->updateScheduleAsyncWithHttpInfo($resource_id, $marketplace_ids, $body); - } - - /** - * Operation updateScheduleAsyncWithHttpInfo - * - * - * - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest $body Schedule details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateScheduleAsyncWithHttpInfo($resource_id, $marketplace_ids, $body) - { - $returnType = '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleResponse'; - $request = $this->updateScheduleRequest($resource_id, $marketplace_ids, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'updateSchedule' - * - * @param string $resource_id Resource (store) Identifier (required) - * @param string[] $marketplace_ids An identifier for the marketplace in which the resource operates. (required) - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRequest $body Schedule details (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function updateScheduleRequest($resource_id, $marketplace_ids, $body) - { - // verify the required parameter 'resource_id' is set - if ($resource_id === null || (is_array($resource_id) && count($resource_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $resource_id when calling updateSchedule' - ); - } - if (strlen($resource_id) > 100) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.updateSchedule, must be smaller than or equal to 100.'); - } - if (strlen($resource_id) < 1) { - throw new \InvalidArgumentException('invalid length for "$resource_id" when calling ServiceV1Api.updateSchedule, must be bigger than or equal to 1.'); - } - - // 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 updateSchedule' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling ServiceV1Api.updateSchedule, number of items must be less than or equal to 1.'); - } - - // 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 updateSchedule' - ); - } - - $resourcePath = '/service/v1/serviceResources/{resourceId}/schedules'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($resource_id !== null) { - $resourcePath = str_replace( - '{' . 'resourceId' . '}', - ObjectSerializer::toPathValue($resource_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ShipmentInvoicingV0Api.php b/lib/Api/ShipmentInvoicingV0Api.php deleted file mode 100644 index e77756fb0..000000000 --- a/lib/Api/ShipmentInvoicingV0Api.php +++ /dev/null @@ -1,1245 +0,0 @@ -getInvoiceStatusWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getInvoiceStatusWithHttpInfo - * - * @param string $shipment_id The shipment identifier for the shipment. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getInvoiceStatusWithHttpInfo($shipment_id) - { - $request = $this->getInvoiceStatusRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getInvoiceStatusAsync - * - * - * - * @param string $shipment_id The shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getInvoiceStatusAsync($shipment_id) - { - return $this->getInvoiceStatusAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getInvoiceStatusAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getInvoiceStatusAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetInvoiceStatusResponse'; - $request = $this->getInvoiceStatusRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getInvoiceStatus' - * - * @param string $shipment_id The shipment identifier for the shipment. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getInvoiceStatusRequest($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 getInvoiceStatus' - ); - } - - $resourcePath = '/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice/status'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipmentDetails - * - * @param string $shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse - */ - public function getShipmentDetails($shipment_id) - { - $response = $this->getShipmentDetailsWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getShipmentDetailsWithHttpInfo - * - * @param string $shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentDetailsWithHttpInfo($shipment_id) - { - $request = $this->getShipmentDetailsRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/fba/outbound/brazil/v0/shipments/{shipmentId}", - "getShipmentDetails" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentDetailsAsync - * - * - * - * @param string $shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDetailsAsync($shipment_id) - { - return $this->getShipmentDetailsAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getShipmentDetailsAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDetailsAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\GetShipmentDetailsResponse'; - $request = $this->getShipmentDetailsRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/fba/outbound/brazil/v0/shipments/{shipmentId}", - "getShipmentDetails" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipmentDetails' - * - * @param string $shipment_id The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide). (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShipmentDetailsRequest($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 getShipmentDetails' - ); - } - - $resourcePath = '/fba/outbound/brazil/v0/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitInvoice - * - * @param string $shipment_id The identifier for the shipment. (required) - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse - */ - public function submitInvoice($shipment_id, $body) - { - $response = $this->submitInvoiceWithHttpInfo($shipment_id, $body); - return $response; - } - - /** - * Operation submitInvoiceWithHttpInfo - * - * @param string $shipment_id The identifier for the shipment. (required) - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitInvoiceWithHttpInfo($shipment_id, $body) - { - $request = $this->submitInvoiceRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitInvoiceAsync - * - * - * - * @param string $shipment_id The identifier for the shipment. (required) - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoiceAsync($shipment_id, $body) - { - return $this->submitInvoiceAsyncWithHttpInfo($shipment_id, $body); - } - - /** - * Operation submitInvoiceAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The identifier for the shipment. (required) - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoiceAsyncWithHttpInfo($shipment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceResponse'; - $request = $this->submitInvoiceRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitInvoice' - * - * @param string $shipment_id The identifier for the shipment. (required) - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitInvoiceRequest($shipment_id, $body) - { - // 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 submitInvoice' - ); - } - // 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 submitInvoice' - ); - } - - $resourcePath = '/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ShippingV1Api.php b/lib/Api/ShippingV1Api.php deleted file mode 100644 index dd4d187da..000000000 --- a/lib/Api/ShippingV1Api.php +++ /dev/null @@ -1,3467 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Api; - -use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; -use GuzzleHttp\Psr7\Request; -use SellingPartnerApi\ApiException; -use SellingPartnerApi\ObjectSerializer; - -/** - * ShippingV1Api Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - */ -class ShippingV1Api extends BaseApi -{ - /** - * Operation cancelShipment - * - * @param string $shipment_id shipment_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse - */ - public function cancelShipment($shipment_id) - { - $response = $this->cancelShipmentWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation cancelShipmentWithHttpInfo - * - * @param string $shipment_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelShipmentWithHttpInfo($shipment_id) - { - $request = $this->cancelShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelShipmentAsync - * - * - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsync($shipment_id) - { - return $this->cancelShipmentAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation cancelShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\CancelShipmentResponse'; - $request = $this->cancelShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelShipment' - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/shipments/{shipmentId}/cancel'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createShipment - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse - */ - public function createShipment($body) - { - $response = $this->createShipmentWithHttpInfo($body); - return $response; - } - - /** - * Operation createShipmentWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createShipmentWithHttpInfo($body) - { - $request = $this->createShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createShipmentAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShipmentAsync($body) - { - return $this->createShipmentAsyncWithHttpInfo($body); - } - - /** - * Operation createShipmentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShipmentAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResponse'; - $request = $this->createShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createShipment' - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAccount - * - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\GetAccountResponse - */ - public function getAccount() - { - $response = $this->getAccountWithHttpInfo(); - return $response; - } - - /** - * Operation getAccountWithHttpInfo - * - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\GetAccountResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAccountWithHttpInfo() - { - $request = $this->getAccountRequest(); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\GetAccountResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAccountAsync - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAccountAsync() - { - return $this->getAccountAsyncWithHttpInfo(); - } - - /** - * Operation getAccountAsyncWithHttpInfo - * - * - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAccountAsyncWithHttpInfo() - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetAccountResponse'; - $request = $this->getAccountRequest(); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAccount' - * - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAccountRequest() - { - - $resourcePath = '/shipping/v1/account'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getRates - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\GetRatesResponse - */ - public function getRates($body) - { - $response = $this->getRatesWithHttpInfo($body); - return $response; - } - - /** - * Operation getRatesWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\GetRatesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getRatesWithHttpInfo($body) - { - $request = $this->getRatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getRatesAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRatesAsync($body) - { - return $this->getRatesAsyncWithHttpInfo($body); - } - - /** - * Operation getRatesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRatesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetRatesResponse'; - $request = $this->getRatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getRates' - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/rates'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipment - * - * @param string $shipment_id shipment_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\GetShipmentResponse - */ - public function getShipment($shipment_id) - { - $response = $this->getShipmentWithHttpInfo($shipment_id); - return $response; - } - - /** - * Operation getShipmentWithHttpInfo - * - * @param string $shipment_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\GetShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentWithHttpInfo($shipment_id) - { - $request = $this->getShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/shipping/v1/shipments/{shipmentId}", - "getShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentAsync - * - * - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentAsync($shipment_id) - { - return $this->getShipmentAsyncWithHttpInfo($shipment_id); - } - - /** - * Operation getShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentAsyncWithHttpInfo($shipment_id) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetShipmentResponse'; - $request = $this->getShipmentRequest($shipment_id); - $signedRequest = $this->config->signRequest( - $request, - null, - "/shipping/v1/shipments/{shipmentId}", - "getShipment" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipment' - * - * @param string $shipment_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/shipments/{shipmentId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getTrackingInformation - * - * @param string $tracking_id tracking_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse - */ - public function getTrackingInformation($tracking_id) - { - $response = $this->getTrackingInformationWithHttpInfo($tracking_id); - return $response; - } - - /** - * Operation getTrackingInformationWithHttpInfo - * - * @param string $tracking_id (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getTrackingInformationWithHttpInfo($tracking_id) - { - $request = $this->getTrackingInformationRequest($tracking_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTrackingInformationAsync - * - * - * - * @param string $tracking_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTrackingInformationAsync($tracking_id) - { - return $this->getTrackingInformationAsyncWithHttpInfo($tracking_id); - } - - /** - * Operation getTrackingInformationAsyncWithHttpInfo - * - * - * - * @param string $tracking_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTrackingInformationAsyncWithHttpInfo($tracking_id) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\GetTrackingInformationResponse'; - $request = $this->getTrackingInformationRequest($tracking_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTrackingInformation' - * - * @param string $tracking_id (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/tracking/{trackingId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($tracking_id !== null) { - $resourcePath = str_replace( - '{' . 'trackingId' . '}', - ObjectSerializer::toPathValue($tracking_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation purchaseLabels - * - * @param string $shipment_id shipment_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse - */ - public function purchaseLabels($shipment_id, $body) - { - $response = $this->purchaseLabelsWithHttpInfo($shipment_id, $body); - return $response; - } - - /** - * Operation purchaseLabelsWithHttpInfo - * - * @param string $shipment_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function purchaseLabelsWithHttpInfo($shipment_id, $body) - { - $request = $this->purchaseLabelsRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation purchaseLabelsAsync - * - * - * - * @param string $shipment_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseLabelsAsync($shipment_id, $body) - { - return $this->purchaseLabelsAsyncWithHttpInfo($shipment_id, $body); - } - - /** - * Operation purchaseLabelsAsyncWithHttpInfo - * - * - * - * @param string $shipment_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseLabelsAsyncWithHttpInfo($shipment_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResponse'; - $request = $this->purchaseLabelsRequest($shipment_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'purchaseLabels' - * - * @param string $shipment_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function purchaseLabelsRequest($shipment_id, $body) - { - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/shipping/v1/shipments/{shipmentId}/purchaseLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation purchaseShipment - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse - */ - public function purchaseShipment($body) - { - $response = $this->purchaseShipmentWithHttpInfo($body); - return $response; - } - - /** - * Operation purchaseShipmentWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function purchaseShipmentWithHttpInfo($body) - { - $request = $this->purchaseShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation purchaseShipmentAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseShipmentAsync($body) - { - return $this->purchaseShipmentAsyncWithHttpInfo($body); - } - - /** - * Operation purchaseShipmentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseShipmentAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResponse'; - $request = $this->purchaseShipmentRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'purchaseShipment' - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/shipping/v1/purchaseShipment'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation retrieveShippingLabel - * - * @param string $shipment_id shipment_id (required) - * @param string $tracking_id tracking_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse - */ - public function retrieveShippingLabel($shipment_id, $tracking_id, $body) - { - $response = $this->retrieveShippingLabelWithHttpInfo($shipment_id, $tracking_id, $body); - return $response; - } - - /** - * Operation retrieveShippingLabelWithHttpInfo - * - * @param string $shipment_id (required) - * @param string $tracking_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function retrieveShippingLabelWithHttpInfo($shipment_id, $tracking_id, $body) - { - $request = $this->retrieveShippingLabelRequest($shipment_id, $tracking_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation retrieveShippingLabelAsync - * - * - * - * @param string $shipment_id (required) - * @param string $tracking_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function retrieveShippingLabelAsync($shipment_id, $tracking_id, $body) - { - return $this->retrieveShippingLabelAsyncWithHttpInfo($shipment_id, $tracking_id, $body); - } - - /** - * Operation retrieveShippingLabelAsyncWithHttpInfo - * - * - * - * @param string $shipment_id (required) - * @param string $tracking_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function retrieveShippingLabelAsyncWithHttpInfo($shipment_id, $tracking_id, $body) - { - $returnType = '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResponse'; - $request = $this->retrieveShippingLabelRequest($shipment_id, $tracking_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'retrieveShippingLabel' - * - * @param string $shipment_id (required) - * @param string $tracking_id (required) - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function retrieveShippingLabelRequest($shipment_id, $tracking_id, $body) - { - // 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' - ); - } - // 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' - ); - } - // 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' - ); - } - - $resourcePath = '/shipping/v1/shipments/{shipmentId}/containers/{trackingId}/label'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - // path params - if ($tracking_id !== null) { - $resourcePath = str_replace( - '{' . 'trackingId' . '}', - ObjectSerializer::toPathValue($tracking_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/ShippingV2Api.php b/lib/Api/ShippingV2Api.php deleted file mode 100644 index cb69a9cee..000000000 --- a/lib/Api/ShippingV2Api.php +++ /dev/null @@ -1,3093 +0,0 @@ -cancelShipmentWithHttpInfo($shipment_id, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation cancelShipmentWithHttpInfo - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function cancelShipmentWithHttpInfo($shipment_id, $x_amzn_shipping_business_id = null) - { - $request = $this->cancelShipmentRequest($shipment_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation cancelShipmentAsync - * - * - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsync($shipment_id, $x_amzn_shipping_business_id = null) - { - return $this->cancelShipmentAsyncWithHttpInfo($shipment_id, $x_amzn_shipping_business_id); - } - - /** - * Operation cancelShipmentAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function cancelShipmentAsyncWithHttpInfo($shipment_id, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\CancelShipmentResponse'; - $request = $this->cancelShipmentRequest($shipment_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'cancelShipment' - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function cancelShipmentRequest($shipment_id, $x_amzn_shipping_business_id = 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 cancelShipment' - ); - } - - $resourcePath = '/shipping/v2/shipments/{shipmentId}/cancel'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation directPurchaseShipment - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest $body body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $locale The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - * The secondary language subtag is almost always a regional designation. - * This does not support additional subtags beyond the primary and secondary language subtags. - * (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse - */ - public function directPurchaseShipment($body, $x_amzn_idempotency_key = null, $locale = null, $x_amzn_shipping_business_id = null) - { - $response = $this->directPurchaseShipmentWithHttpInfo($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation directPurchaseShipmentWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $locale The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - * The secondary language subtag is almost always a regional designation. - * This does not support additional subtags beyond the primary and secondary language subtags. - * (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function directPurchaseShipmentWithHttpInfo($body, $x_amzn_idempotency_key = null, $locale = null, $x_amzn_shipping_business_id = null) - { - $request = $this->directPurchaseShipmentRequest($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation directPurchaseShipmentAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $locale The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - * The secondary language subtag is almost always a regional designation. - * This does not support additional subtags beyond the primary and secondary language subtags. - * (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function directPurchaseShipmentAsync($body, $x_amzn_idempotency_key = null, $locale = null, $x_amzn_shipping_business_id = null) - { - return $this->directPurchaseShipmentAsyncWithHttpInfo($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id); - } - - /** - * Operation directPurchaseShipmentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $locale The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - * The secondary language subtag is almost always a regional designation. - * This does not support additional subtags beyond the primary and secondary language subtags. - * (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function directPurchaseShipmentAsyncWithHttpInfo($body, $x_amzn_idempotency_key = null, $locale = null, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResponse'; - $request = $this->directPurchaseShipmentRequest($body, $x_amzn_idempotency_key, $locale, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'directPurchaseShipment' - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $locale The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA). - * The secondary language subtag is almost always a regional designation. - * This does not support additional subtags beyond the primary and secondary language subtags. - * (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function directPurchaseShipmentRequest($body, $x_amzn_idempotency_key = null, $locale = null, $x_amzn_shipping_business_id = null) - { - // 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 directPurchaseShipment' - ); - } - - $resourcePath = '/shipping/v2/shipments/directPurchase'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // header params - if ($x_amzn_idempotency_key !== null) { - $headerParams['x-amzn-IdempotencyKey'] = ObjectSerializer::toHeaderValue($x_amzn_idempotency_key); - } - - // header params - if ($locale !== null) { - $headerParams['locale'] = ObjectSerializer::toHeaderValue($locale); - } - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getAdditionalInputs - * - * @param string $request_token The request token returned in the response to the getRates operation. (required) - * @param string $rate_id The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse - */ - public function getAdditionalInputs($request_token, $rate_id, $x_amzn_shipping_business_id = null) - { - $response = $this->getAdditionalInputsWithHttpInfo($request_token, $rate_id, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation getAdditionalInputsWithHttpInfo - * - * @param string $request_token The request token returned in the response to the getRates operation. (required) - * @param string $rate_id The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getAdditionalInputsWithHttpInfo($request_token, $rate_id, $x_amzn_shipping_business_id = null) - { - $request = $this->getAdditionalInputsRequest($request_token, $rate_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getAdditionalInputsAsync - * - * - * - * @param string $request_token The request token returned in the response to the getRates operation. (required) - * @param string $rate_id The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalInputsAsync($request_token, $rate_id, $x_amzn_shipping_business_id = null) - { - return $this->getAdditionalInputsAsyncWithHttpInfo($request_token, $rate_id, $x_amzn_shipping_business_id); - } - - /** - * Operation getAdditionalInputsAsyncWithHttpInfo - * - * - * - * @param string $request_token The request token returned in the response to the getRates operation. (required) - * @param string $rate_id The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getAdditionalInputsAsyncWithHttpInfo($request_token, $rate_id, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetAdditionalInputsResponse'; - $request = $this->getAdditionalInputsRequest($request_token, $rate_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getAdditionalInputs' - * - * @param string $request_token The request token returned in the response to the getRates operation. (required) - * @param string $rate_id The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getAdditionalInputsRequest($request_token, $rate_id, $x_amzn_shipping_business_id = null) - { - // verify the required parameter 'request_token' is set - if ($request_token === null || (is_array($request_token) && count($request_token) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $request_token when calling getAdditionalInputs' - ); - } - // verify the required parameter 'rate_id' is set - if ($rate_id === null || (is_array($rate_id) && count($rate_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $rate_id when calling getAdditionalInputs' - ); - } - - $resourcePath = '/shipping/v2/shipments/additionalInputs/schema'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($request_token)) { - $request_token = ObjectSerializer::serializeCollection($request_token, '', true); - } - if ($request_token !== null) { - $queryParams['requestToken'] = $request_token; - } - - // query params - if (is_array($rate_id)) { - $rate_id = ObjectSerializer::serializeCollection($rate_id, '', true); - } - if ($rate_id !== null) { - $queryParams['rateId'] = $rate_id; - } - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getRates - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesRequest $body body (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\GetRatesResponse - */ - public function getRates($body, $x_amzn_shipping_business_id = null) - { - $response = $this->getRatesWithHttpInfo($body, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation getRatesWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesRequest $body (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\GetRatesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getRatesWithHttpInfo($body, $x_amzn_shipping_business_id = null) - { - $request = $this->getRatesRequest($body, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\GetRatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\GetRatesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetRatesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\GetRatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getRatesAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesRequest $body (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRatesAsync($body, $x_amzn_shipping_business_id = null) - { - return $this->getRatesAsyncWithHttpInfo($body, $x_amzn_shipping_business_id); - } - - /** - * Operation getRatesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesRequest $body (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getRatesAsyncWithHttpInfo($body, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetRatesResponse'; - $request = $this->getRatesRequest($body, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getRates' - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesRequest $body (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getRatesRequest($body, $x_amzn_shipping_business_id = null) - { - // 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' - ); - } - - $resourcePath = '/shipping/v2/shipments/rates'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipmentDocuments - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $package_client_reference_id The package client reference identifier originally provided in the request body parameter for the getRates operation. (required) - * @param string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. (optional) - * @param float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse - */ - public function getShipmentDocuments($shipment_id, $package_client_reference_id, $format = null, $dpi = null, $x_amzn_shipping_business_id = null) - { - $response = $this->getShipmentDocumentsWithHttpInfo($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation getShipmentDocumentsWithHttpInfo - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $package_client_reference_id The package client reference identifier originally provided in the request body parameter for the getRates operation. (required) - * @param string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. (optional) - * @param float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentDocumentsWithHttpInfo($shipment_id, $package_client_reference_id, $format = null, $dpi = null, $x_amzn_shipping_business_id = null) - { - $request = $this->getShipmentDocumentsRequest($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentDocumentsAsync - * - * - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $package_client_reference_id The package client reference identifier originally provided in the request body parameter for the getRates operation. (required) - * @param string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. (optional) - * @param float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDocumentsAsync($shipment_id, $package_client_reference_id, $format = null, $dpi = null, $x_amzn_shipping_business_id = null) - { - return $this->getShipmentDocumentsAsyncWithHttpInfo($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id); - } - - /** - * Operation getShipmentDocumentsAsyncWithHttpInfo - * - * - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $package_client_reference_id The package client reference identifier originally provided in the request body parameter for the getRates operation. (required) - * @param string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. (optional) - * @param float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDocumentsAsyncWithHttpInfo($shipment_id, $package_client_reference_id, $format = null, $dpi = null, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResponse'; - $request = $this->getShipmentDocumentsRequest($shipment_id, $package_client_reference_id, $format, $dpi, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipmentDocuments' - * - * @param string $shipment_id The shipment identifier originally returned by the purchaseShipment operation. (required) - * @param string $package_client_reference_id The package client reference identifier originally provided in the request body parameter for the getRates operation. (required) - * @param string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. (optional) - * @param float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShipmentDocumentsRequest($shipment_id, $package_client_reference_id, $format = null, $dpi = null, $x_amzn_shipping_business_id = 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 getShipmentDocuments' - ); - } - // verify the required parameter 'package_client_reference_id' is set - if ($package_client_reference_id === null || (is_array($package_client_reference_id) && count($package_client_reference_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $package_client_reference_id when calling getShipmentDocuments' - ); - } - - $resourcePath = '/shipping/v2/shipments/{shipmentId}/documents'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($package_client_reference_id)) { - $package_client_reference_id = ObjectSerializer::serializeCollection($package_client_reference_id, '', true); - } - if ($package_client_reference_id !== null) { - $queryParams['packageClientReferenceId'] = $package_client_reference_id; - } - - // query params - if (is_array($format)) { - $format = ObjectSerializer::serializeCollection($format, '', true); - } - if ($format !== null) { - $queryParams['format'] = $format; - } - - // query params - if (is_array($dpi)) { - $dpi = ObjectSerializer::serializeCollection($dpi, '', true); - } - if ($dpi !== null) { - $queryParams['dpi'] = $dpi; - } - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - // path params - if ($shipment_id !== null) { - $resourcePath = str_replace( - '{' . 'shipmentId' . '}', - ObjectSerializer::toPathValue($shipment_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getTracking - * - * @param string $tracking_id A carrier-generated tracking identifier originally returned by the purchaseShipment operation. (required) - * @param string $carrier_id A carrier identifier originally returned by the getRates operation for the selected rate. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\GetTrackingResponse - */ - public function getTracking($tracking_id, $carrier_id, $x_amzn_shipping_business_id = null) - { - $response = $this->getTrackingWithHttpInfo($tracking_id, $carrier_id, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation getTrackingWithHttpInfo - * - * @param string $tracking_id A carrier-generated tracking identifier originally returned by the purchaseShipment operation. (required) - * @param string $carrier_id A carrier identifier originally returned by the getRates operation for the selected rate. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\GetTrackingResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getTrackingWithHttpInfo($tracking_id, $carrier_id, $x_amzn_shipping_business_id = null) - { - $request = $this->getTrackingRequest($tracking_id, $carrier_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTrackingAsync - * - * - * - * @param string $tracking_id A carrier-generated tracking identifier originally returned by the purchaseShipment operation. (required) - * @param string $carrier_id A carrier identifier originally returned by the getRates operation for the selected rate. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTrackingAsync($tracking_id, $carrier_id, $x_amzn_shipping_business_id = null) - { - return $this->getTrackingAsyncWithHttpInfo($tracking_id, $carrier_id, $x_amzn_shipping_business_id); - } - - /** - * Operation getTrackingAsyncWithHttpInfo - * - * - * - * @param string $tracking_id A carrier-generated tracking identifier originally returned by the purchaseShipment operation. (required) - * @param string $carrier_id A carrier identifier originally returned by the getRates operation for the selected rate. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTrackingAsyncWithHttpInfo($tracking_id, $carrier_id, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\GetTrackingResponse'; - $request = $this->getTrackingRequest($tracking_id, $carrier_id, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTracking' - * - * @param string $tracking_id A carrier-generated tracking identifier originally returned by the purchaseShipment operation. (required) - * @param string $carrier_id A carrier identifier originally returned by the getRates operation for the selected rate. (required) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getTrackingRequest($tracking_id, $carrier_id, $x_amzn_shipping_business_id = null) - { - // 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 getTracking' - ); - } - // verify the required parameter 'carrier_id' is set - if ($carrier_id === null || (is_array($carrier_id) && count($carrier_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $carrier_id when calling getTracking' - ); - } - - $resourcePath = '/shipping/v2/tracking'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($tracking_id)) { - $tracking_id = ObjectSerializer::serializeCollection($tracking_id, '', true); - } - if ($tracking_id !== null) { - $queryParams['trackingId'] = $tracking_id; - } - - // query params - if (is_array($carrier_id)) { - $carrier_id = ObjectSerializer::serializeCollection($carrier_id, '', true); - } - if ($carrier_id !== null) { - $queryParams['carrierId'] = $carrier_id; - } - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation purchaseShipment - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest $body body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse - */ - public function purchaseShipment($body, $x_amzn_idempotency_key = null, $x_amzn_shipping_business_id = null) - { - $response = $this->purchaseShipmentWithHttpInfo($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id); - return $response; - } - - /** - * Operation purchaseShipmentWithHttpInfo - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function purchaseShipmentWithHttpInfo($body, $x_amzn_idempotency_key = null, $x_amzn_shipping_business_id = null) - { - $request = $this->purchaseShipmentRequest($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\ShippingV2\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\ShippingV2\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\ShippingV2\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation purchaseShipmentAsync - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseShipmentAsync($body, $x_amzn_idempotency_key = null, $x_amzn_shipping_business_id = null) - { - return $this->purchaseShipmentAsyncWithHttpInfo($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id); - } - - /** - * Operation purchaseShipmentAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function purchaseShipmentAsyncWithHttpInfo($body, $x_amzn_idempotency_key = null, $x_amzn_shipping_business_id = null) - { - $returnType = '\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResponse'; - $request = $this->purchaseShipmentRequest($body, $x_amzn_idempotency_key, $x_amzn_shipping_business_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'purchaseShipment' - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentRequest $body (required) - * @param string $x_amzn_idempotency_key A unique value which the server uses to recognize subsequent retries of the same request. (optional) - * @param string $x_amzn_shipping_business_id Amazon shipping business to assume for this request. The default is AmazonShipping_UK. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function purchaseShipmentRequest($body, $x_amzn_idempotency_key = null, $x_amzn_shipping_business_id = null) - { - // 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' - ); - } - - $resourcePath = '/shipping/v2/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // header params - if ($x_amzn_idempotency_key !== null) { - $headerParams['x-amzn-IdempotencyKey'] = ObjectSerializer::toHeaderValue($x_amzn_idempotency_key); - } - - // header params - if ($x_amzn_shipping_business_id !== null) { - $headerParams['x-amzn-shipping-business-id'] = ObjectSerializer::toHeaderValue($x_amzn_shipping_business_id); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/SmallAndLightV1Api.php b/lib/Api/SmallAndLightV1Api.php deleted file mode 100644 index bb36a84d4..000000000 --- a/lib/Api/SmallAndLightV1Api.php +++ /dev/null @@ -1,1981 +0,0 @@ -deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); - } - - /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) - { - $request = $this->deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) - { - return $this->deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids); - } - - /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) - { - $returnType = ''; - $request = $this->deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - return null; - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'deleteSmallAndLightEnrollmentBySellerSKU' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SmallAndLightV1Api.deleteSmallAndLightEnrollmentBySellerSKU, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSmallAndLightEligibilityBySellerSKU - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility - */ - public function getSmallAndLightEligibilityBySellerSKU($seller_sku, $marketplace_ids) - { - $response = $this->getSmallAndLightEligibilityBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); - return $response; - } - - /** - * Operation getSmallAndLightEligibilityBySellerSKUWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility, HTTP status code, HTTP response headers (array of strings) - */ - public function getSmallAndLightEligibilityBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) - { - $request = $this->getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSmallAndLightEligibilityBySellerSKUAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightEligibilityBySellerSKUAsync($seller_sku, $marketplace_ids) - { - return $this->getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids); - } - - /** - * Operation getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibility'; - $request = $this->getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSmallAndLightEligibilityBySellerSKU' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SmallAndLightV1Api.getSmallAndLightEligibilityBySellerSKU, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/fba/smallAndLight/v1/eligibilities/{sellerSKU}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSmallAndLightEnrollmentBySellerSKU - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment - */ - public function getSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) - { - $response = $this->getSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); - return $response; - } - - /** - * Operation getSmallAndLightEnrollmentBySellerSKUWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) - */ - public function getSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) - { - $request = $this->getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSmallAndLightEnrollmentBySellerSKUAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) - { - return $this->getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids); - } - - /** - * Operation getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment'; - $request = $this->getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSmallAndLightEnrollmentBySellerSKU' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SmallAndLightV1Api.getSmallAndLightEnrollmentBySellerSKU, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSmallAndLightFeePreview - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews - */ - public function getSmallAndLightFeePreview($body) - { - $response = $this->getSmallAndLightFeePreviewWithHttpInfo($body); - return $response; - } - - /** - * Operation getSmallAndLightFeePreviewWithHttpInfo - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews, HTTP status code, HTTP response headers (array of strings) - */ - public function getSmallAndLightFeePreviewWithHttpInfo($body) - { - $request = $this->getSmallAndLightFeePreviewRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getSmallAndLightFeePreviewAsync - * - * - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightFeePreviewAsync($body) - { - return $this->getSmallAndLightFeePreviewAsyncWithHttpInfo($body); - } - - /** - * Operation getSmallAndLightFeePreviewAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSmallAndLightFeePreviewAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviews'; - $request = $this->getSmallAndLightFeePreviewRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getSmallAndLightFeePreview' - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightFeePreviewRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - - $resourcePath = '/fba/smallAndLight/v1/feePreviews'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation putSmallAndLightEnrollmentBySellerSKU - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment - */ - public function putSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) - { - $response = $this->putSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); - return $response; - } - - /** - * Operation putSmallAndLightEnrollmentBySellerSKUWithHttpInfo - * - * @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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) - */ - public function putSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) - { - $request = $this->putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SmallAndLightV1\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SmallAndLightV1\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation putSmallAndLightEnrollmentBySellerSKUAsync - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) - { - return $this->putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids); - } - - /** - * Operation putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo - * - * - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollment'; - $request = $this->putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'putSmallAndLightEnrollmentBySellerSKU' - * - * @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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SmallAndLightV1Api.putSmallAndLightEnrollmentBySellerSKU, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($seller_sku !== null) { - $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', - ObjectSerializer::toPathValue($seller_sku), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/SolicitationsV1Api.php b/lib/Api/SolicitationsV1Api.php deleted file mode 100644 index 459e59ccf..000000000 --- a/lib/Api/SolicitationsV1Api.php +++ /dev/null @@ -1,875 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Api; - -use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; -use GuzzleHttp\Psr7\Request; -use SellingPartnerApi\ApiException; -use SellingPartnerApi\ObjectSerializer; - -/** - * SolicitationsV1Api Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - */ -class SolicitationsV1Api extends BaseApi -{ - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse - */ - public function createProductReviewAndSellerFeedbackSolicitation($amazon_order_id, $marketplace_ids) - { - $response = $this->createProductReviewAndSellerFeedbackSolicitationWithHttpInfo($amazon_order_id, $marketplace_ids); - return $response; - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SolicitationsV1\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); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createProductReviewAndSellerFeedbackSolicitationAsync($amazon_order_id, $marketplace_ids) - { - return $this->createProductReviewAndSellerFeedbackSolicitationAsyncWithHttpInfo($amazon_order_id, $marketplace_ids); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createProductReviewAndSellerFeedbackSolicitationAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\SolicitationsV1\CreateProductReviewAndSellerFeedbackSolicitationResponse'; - $request = $this->createProductReviewAndSellerFeedbackSolicitationRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SolicitationsV1Api.createProductReviewAndSellerFeedbackSolicitation, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/solicitations/v1/orders/{amazonOrderId}/solicitations/productReviewAndSellerFeedback'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse - */ - public function getSolicitationActionsForOrder($amazon_order_id, $marketplace_ids) - { - $response = $this->getSolicitationActionsForOrderWithHttpInfo($amazon_order_id, $marketplace_ids); - return $response; - } - - /** - * 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) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\SolicitationsV1\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); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSolicitationActionsForOrderAsync($amazon_order_id, $marketplace_ids) - { - return $this->getSolicitationActionsForOrderAsyncWithHttpInfo($amazon_order_id, $marketplace_ids); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSolicitationActionsForOrderAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) - { - $returnType = '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponse'; - $request = $this->getSolicitationActionsForOrderRequest($amazon_order_id, $marketplace_ids); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * 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) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public 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' - ); - } - // 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 (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling SolicitationsV1Api.getSolicitationActionsForOrder, number of items must be less than or equal to 1.'); - } - - - $resourcePath = '/solicitations/v1/orders/{amazonOrderId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // path params - if ($amazon_order_id !== null) { - $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', - ObjectSerializer::toPathValue($amazon_order_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/hal+json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/hal+json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/TokensV20210301Api.php b/lib/Api/TokensV20210301Api.php deleted file mode 100644 index d07dfac6c..000000000 --- a/lib/Api/TokensV20210301Api.php +++ /dev/null @@ -1,433 +0,0 @@ -createRestrictedDataTokenWithHttpInfo($body); - return $response; - } - - /** - * Operation createRestrictedDataTokenWithHttpInfo - * - * @param \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createRestrictedDataTokenWithHttpInfo($body) - { - $request = $this->createRestrictedDataTokenRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\TokensV20210301\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\TokensV20210301\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\TokensV20210301\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createRestrictedDataTokenAsync - * - * - * - * @param \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createRestrictedDataTokenAsync($body) - { - return $this->createRestrictedDataTokenAsyncWithHttpInfo($body); - } - - /** - * Operation createRestrictedDataTokenAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createRestrictedDataTokenAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenResponse'; - $request = $this->createRestrictedDataTokenRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createRestrictedDataToken' - * - * @param \SellingPartnerApi\Model\TokensV20210301\CreateRestrictedDataTokenRequest $body The restricted data token request details. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createRestrictedDataTokenRequest($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 createRestrictedDataToken' - ); - } - - $resourcePath = '/tokens/2021-03-01/restrictedDataToken'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/UploadsV20201101Api.php b/lib/Api/UploadsV20201101Api.php deleted file mode 100644 index 637d6df56..000000000 --- a/lib/Api/UploadsV20201101Api.php +++ /dev/null @@ -1,491 +0,0 @@ -createUploadDestinationForResourceWithHttpInfo($marketplace_ids, $content_md5, $resource, $content_type); - return $response; - } - - /** - * Operation createUploadDestinationForResourceWithHttpInfo - * - * @param string[] $marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. (required) - * @param string $content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. (required) - * @param string $resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. (required) - * @param string $content_type The content type of the file to be uploaded. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function createUploadDestinationForResourceWithHttpInfo($marketplace_ids, $content_md5, $resource, $content_type = null) - { - $request = $this->createUploadDestinationForResourceRequest($marketplace_ids, $content_md5, $resource, $content_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 201: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createUploadDestinationForResourceAsync - * - * - * - * @param string[] $marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. (required) - * @param string $content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. (required) - * @param string $resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. (required) - * @param string $content_type The content type of the file to be uploaded. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createUploadDestinationForResourceAsync($marketplace_ids, $content_md5, $resource, $content_type = null) - { - return $this->createUploadDestinationForResourceAsyncWithHttpInfo($marketplace_ids, $content_md5, $resource, $content_type); - } - - /** - * Operation createUploadDestinationForResourceAsyncWithHttpInfo - * - * - * - * @param string[] $marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. (required) - * @param string $content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. (required) - * @param string $resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. (required) - * @param string $content_type The content type of the file to be uploaded. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createUploadDestinationForResourceAsyncWithHttpInfo($marketplace_ids, $content_md5, $resource, $content_type = null) - { - $returnType = '\SellingPartnerApi\Model\UploadsV20201101\CreateUploadDestinationResponse'; - $request = $this->createUploadDestinationForResourceRequest($marketplace_ids, $content_md5, $resource, $content_type); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createUploadDestinationForResource' - * - * @param string[] $marketplace_ids A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. (required) - * @param string $content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. (required) - * @param string $resource The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. (required) - * @param string $content_type The content type of the file to be uploaded. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createUploadDestinationForResourceRequest($marketplace_ids, $content_md5, $resource, $content_type = 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 createUploadDestinationForResource' - ); - } - if (count($marketplace_ids) > 1) { - throw new \InvalidArgumentException('invalid value for "$marketplace_ids" when calling UploadsV20201101Api.createUploadDestinationForResource, number of items must be less than or equal to 1.'); - } - - // verify the required parameter 'content_md5' is set - if ($content_md5 === null || (is_array($content_md5) && count($content_md5) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $content_md5 when calling createUploadDestinationForResource' - ); - } - // verify the required parameter 'resource' is set - if ($resource === null || (is_array($resource) && count($resource) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $resource when calling createUploadDestinationForResource' - ); - } - - $resourcePath = '/uploads/2020-11-01/uploadDestinations/{resource}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($marketplace_ids)) { - $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'form', true); - } - if ($marketplace_ids !== null) { - $queryParams['marketplaceIds'] = $marketplace_ids; - } - - // query params - if (is_array($content_md5)) { - $content_md5 = ObjectSerializer::serializeCollection($content_md5, '', true); - } - if ($content_md5 !== null) { - $queryParams['contentMD5'] = $content_md5; - } - - // query params - if (is_array($content_type)) { - $content_type = ObjectSerializer::serializeCollection($content_type, '', true); - } - if ($content_type !== null) { - $queryParams['contentType'] = $content_type; - } - - // path params - if ($resource !== null) { - $resourcePath = str_replace( - '{' . 'resource' . '}', - ObjectSerializer::toPathValue($resource, true), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentInventoryV1Api.php b/lib/Api/VendorDirectFulfillmentInventoryV1Api.php deleted file mode 100644 index 5ea541cb4..000000000 --- a/lib/Api/VendorDirectFulfillmentInventoryV1Api.php +++ /dev/null @@ -1,453 +0,0 @@ -submitInventoryUpdateWithHttpInfo($warehouse_id, $body); - return $response; - } - - /** - * Operation submitInventoryUpdateWithHttpInfo - * - * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitInventoryUpdateWithHttpInfo($warehouse_id, $body) - { - $request = $this->submitInventoryUpdateRequest($warehouse_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitInventoryUpdateAsync - * - * - * - * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInventoryUpdateAsync($warehouse_id, $body) - { - return $this->submitInventoryUpdateAsyncWithHttpInfo($warehouse_id, $body); - } - - /** - * Operation submitInventoryUpdateAsyncWithHttpInfo - * - * - * - * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInventoryUpdateAsyncWithHttpInfo($warehouse_id, $body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateResponse'; - $request = $this->submitInventoryUpdateRequest($warehouse_id, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitInventoryUpdate' - * - * @param string $warehouse_id Identifier for the warehouse for which to update inventory. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\SubmitInventoryUpdateRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitInventoryUpdateRequest($warehouse_id, $body) - { - // verify the required parameter 'warehouse_id' is set - if ($warehouse_id === null || (is_array($warehouse_id) && count($warehouse_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $warehouse_id when calling submitInventoryUpdate' - ); - } - // 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 submitInventoryUpdate' - ); - } - - $resourcePath = '/vendor/directFulfillment/inventory/v1/warehouses/{warehouseId}/items'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($warehouse_id !== null) { - $resourcePath = str_replace( - '{' . 'warehouseId' . '}', - ObjectSerializer::toPathValue($warehouse_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentOrdersV1Api.php b/lib/Api/VendorDirectFulfillmentOrdersV1Api.php deleted file mode 100644 index f1e4ca9f8..000000000 --- a/lib/Api/VendorDirectFulfillmentOrdersV1Api.php +++ /dev/null @@ -1,1318 +0,0 @@ -getOrderWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getOrderWithHttpInfo - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderWithHttpInfo($purchase_order_number) - { - $request = $this->getOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderAsync - * - * - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsync($purchase_order_number) - { - return $this->getOrderAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getOrderAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrderResponse'; - $request = $this->getOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrder' - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getOrder' - ); - } - - $resourcePath = '/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrders - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse - */ - public function getOrders($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $response = $this->getOrdersWithHttpInfo($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - return $response; - } - - /** - * Operation getOrdersWithHttpInfo - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrdersWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $request = $this->getOrdersRequest($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/v1/purchaseOrders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrdersAsync - * - * - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrdersAsync($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - return $this->getOrdersAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - } - - /** - * Operation getOrdersAsyncWithHttpInfo - * - * - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrdersAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GetOrdersResponse'; - $request = $this->getOrdersRequest($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/v1/purchaseOrders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrders' - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrdersRequest($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getOrders' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getOrders' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentOrdersV1Api.getOrders, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentOrdersV1Api.getOrders, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/orders/v1/purchaseOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($status)) { - $status = ObjectSerializer::serializeCollection($status, '', true); - } - if ($status !== null) { - $queryParams['status'] = $status; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($include_details)) { - $include_details = ObjectSerializer::serializeCollection($include_details, '', true); - } - if ($include_details !== null) { - $queryParams['includeDetails'] = $include_details; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitAcknowledgement - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse - */ - public function submitAcknowledgement($body) - { - $response = $this->submitAcknowledgementWithHttpInfo($body); - return $response; - } - - /** - * Operation submitAcknowledgementWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitAcknowledgementWithHttpInfo($body) - { - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitAcknowledgementAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsync($body) - { - return $this->submitAcknowledgementAsyncWithHttpInfo($body); - } - - /** - * Operation submitAcknowledgementAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementResponse'; - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitAcknowledgement' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitAcknowledgementRequest($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 submitAcknowledgement' - ); - } - - $resourcePath = '/vendor/directFulfillment/orders/v1/acknowledgements'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentOrdersV20211228Api.php b/lib/Api/VendorDirectFulfillmentOrdersV20211228Api.php deleted file mode 100644 index 78c183fa5..000000000 --- a/lib/Api/VendorDirectFulfillmentOrdersV20211228Api.php +++ /dev/null @@ -1,1318 +0,0 @@ -getOrderWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getOrderWithHttpInfo - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderWithHttpInfo($purchase_order_number) - { - $request = $this->getOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderAsync - * - * - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsync($purchase_order_number) - { - return $this->getOrderAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getOrderAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order'; - $request = $this->getOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber}", - "getOrder" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrder' - * - * @param string $purchase_order_number The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getOrder' - ); - } - - $resourcePath = '/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrders - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList - */ - public function getOrders($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $response = $this->getOrdersWithHttpInfo($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - return $response; - } - - /** - * Operation getOrdersWithHttpInfo - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrdersWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $request = $this->getOrdersRequest($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrdersAsync - * - * - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrdersAsync($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - return $this->getOrdersAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - } - - /** - * Operation getOrdersAsyncWithHttpInfo - * - * - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrdersAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderList'; - $request = $this->getOrdersRequest($created_after, $created_before, $ship_from_party_id, $status, $limit, $sort_order, $next_token, $include_details); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders", - "getOrders" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrders' - * - * @param string $created_after Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses. (optional) - * @param string $status Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status. (optional) - * @param int $limit The limit to the number of purchase orders returned. (optional) - * @param string $sort_order Sort the list in ascending or descending order by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * @param bool $include_details When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned. (optional, default to 'true') - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrdersRequest($created_after, $created_before, $ship_from_party_id = null, $status = null, $limit = null, $sort_order = null, $next_token = null, $include_details = 'true') - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getOrders' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getOrders' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentOrdersV20211228Api.getOrders, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentOrdersV20211228Api.getOrders, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/orders/2021-12-28/purchaseOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($status)) { - $status = ObjectSerializer::serializeCollection($status, '', true); - } - if ($status !== null) { - $queryParams['status'] = $status; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($include_details)) { - $include_details = ObjectSerializer::serializeCollection($include_details, '', true); - } - if ($include_details !== null) { - $queryParams['includeDetails'] = $include_details; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'pagination', 'orders'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'pagination', 'orders'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitAcknowledgement - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId - */ - public function submitAcknowledgement($body) - { - $response = $this->submitAcknowledgementWithHttpInfo($body); - return $response; - } - - /** - * Operation submitAcknowledgementWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId, HTTP status code, HTTP response headers (array of strings) - */ - public function submitAcknowledgementWithHttpInfo($body) - { - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitAcknowledgementAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsync($body) - { - return $this->submitAcknowledgementAsyncWithHttpInfo($body); - } - - /** - * Operation submitAcknowledgementAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId'; - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitAcknowledgement' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitAcknowledgementRequest($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 submitAcknowledgement' - ); - } - - $resourcePath = '/vendor/directFulfillment/orders/2021-12-28/acknowledgements'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentPaymentsV1Api.php b/lib/Api/VendorDirectFulfillmentPaymentsV1Api.php deleted file mode 100644 index 56b04d145..000000000 --- a/lib/Api/VendorDirectFulfillmentPaymentsV1Api.php +++ /dev/null @@ -1,433 +0,0 @@ -submitInvoiceWithHttpInfo($body); - return $response; - } - - /** - * Operation submitInvoiceWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitInvoiceWithHttpInfo($body) - { - $request = $this->submitInvoiceRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitInvoiceAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoiceAsync($body) - { - return $this->submitInvoiceAsyncWithHttpInfo($body); - } - - /** - * Operation submitInvoiceAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoiceAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceResponse'; - $request = $this->submitInvoiceRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitInvoice' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\SubmitInvoiceRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitInvoiceRequest($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 submitInvoice' - ); - } - - $resourcePath = '/vendor/directFulfillment/payments/v1/invoices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentSandboxV20211028Api.php b/lib/Api/VendorDirectFulfillmentSandboxV20211028Api.php deleted file mode 100644 index c13101040..000000000 --- a/lib/Api/VendorDirectFulfillmentSandboxV20211028Api.php +++ /dev/null @@ -1,826 +0,0 @@ -generateOrderScenariosWithHttpInfo($body); - return $response; - } - - /** - * Operation generateOrderScenariosWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference, HTTP status code, HTTP response headers (array of strings) - */ - public function generateOrderScenariosWithHttpInfo($body) - { - $request = $this->generateOrderScenariosRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation generateOrderScenariosAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function generateOrderScenariosAsync($body) - { - return $this->generateOrderScenariosAsyncWithHttpInfo($body); - } - - /** - * Operation generateOrderScenariosAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function generateOrderScenariosAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionReference'; - $request = $this->generateOrderScenariosRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'generateOrderScenarios' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\GenerateOrderScenarioRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function generateOrderScenariosRequest($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 generateOrderScenarios' - ); - } - - $resourcePath = '/vendor/directFulfillment/sandbox/2021-10-28/orders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getOrderScenarios - * - * @param string $transaction_id The transaction identifier returned in the response to the generateOrderScenarios operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus - */ - public function getOrderScenarios($transaction_id) - { - $response = $this->getOrderScenariosWithHttpInfo($transaction_id); - return $response; - } - - /** - * Operation getOrderScenariosWithHttpInfo - * - * @param string $transaction_id The transaction identifier returned in the response to the generateOrderScenarios operation. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus, HTTP status code, HTTP response headers (array of strings) - */ - public function getOrderScenariosWithHttpInfo($transaction_id) - { - $request = $this->getOrderScenariosRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getOrderScenariosAsync - * - * - * - * @param string $transaction_id The transaction identifier returned in the response to the generateOrderScenarios operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderScenariosAsync($transaction_id) - { - return $this->getOrderScenariosAsyncWithHttpInfo($transaction_id); - } - - /** - * Operation getOrderScenariosAsyncWithHttpInfo - * - * - * - * @param string $transaction_id The transaction identifier returned in the response to the generateOrderScenarios operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getOrderScenariosAsyncWithHttpInfo($transaction_id) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TransactionStatus'; - $request = $this->getOrderScenariosRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getOrderScenarios' - * - * @param string $transaction_id The transaction identifier returned in the response to the generateOrderScenarios operation. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getOrderScenariosRequest($transaction_id) - { - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null || (is_array($transaction_id) && count($transaction_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $transaction_id when calling getOrderScenarios' - ); - } - - $resourcePath = '/vendor/directFulfillment/sandbox/2021-10-28/transactions/{transactionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - '{' . 'transactionId' . '}', - ObjectSerializer::toPathValue($transaction_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentShippingV1Api.php b/lib/Api/VendorDirectFulfillmentShippingV1Api.php deleted file mode 100644 index 7399ccf58..000000000 --- a/lib/Api/VendorDirectFulfillmentShippingV1Api.php +++ /dev/null @@ -1,3800 +0,0 @@ -getCustomerInvoiceWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getCustomerInvoiceWithHttpInfo - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getCustomerInvoiceWithHttpInfo($purchase_order_number) - { - $request = $this->getCustomerInvoiceRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCustomerInvoiceAsync - * - * - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoiceAsync($purchase_order_number) - { - return $this->getCustomerInvoiceAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getCustomerInvoiceAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoiceAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse'; - $request = $this->getCustomerInvoiceRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCustomerInvoice' - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCustomerInvoiceRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getCustomerInvoice' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV1Api.getCustomerInvoice, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getCustomerInvoices - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse - */ - public function getCustomerInvoices($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $response = $this->getCustomerInvoicesWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getCustomerInvoicesWithHttpInfo - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getCustomerInvoicesWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $request = $this->getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/customerInvoices", - "getCustomerInvoices" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoiceResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCustomerInvoicesAsync - * - * - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoicesAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - return $this->getCustomerInvoicesAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getCustomerInvoicesAsyncWithHttpInfo - * - * - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoicesAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetCustomerInvoicesResponse'; - $request = $this->getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/customerInvoices", - "getCustomerInvoices" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCustomerInvoices' - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getCustomerInvoices' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getCustomerInvoices' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getCustomerInvoices, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getCustomerInvoices, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/customerInvoices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPackingSlip - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse - */ - public function getPackingSlip($purchase_order_number) - { - $response = $this->getPackingSlipWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getPackingSlipWithHttpInfo - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPackingSlipWithHttpInfo($purchase_order_number) - { - $request = $this->getPackingSlipRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPackingSlipAsync - * - * - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipAsync($purchase_order_number) - { - return $this->getPackingSlipAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getPackingSlipAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipResponse'; - $request = $this->getPackingSlipRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPackingSlip' - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPackingSlipRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getPackingSlip' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV1Api.getPackingSlip, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPackingSlips - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse - */ - public function getPackingSlips($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $response = $this->getPackingSlipsWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getPackingSlipsWithHttpInfo - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPackingSlipsWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $request = $this->getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/packingSlips", - "getPackingSlips" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPackingSlipsAsync - * - * - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipsAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - return $this->getPackingSlipsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getPackingSlipsAsyncWithHttpInfo - * - * - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetPackingSlipListResponse'; - $request = $this->getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/packingSlips", - "getPackingSlips" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPackingSlips' - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getPackingSlips' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getPackingSlips' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getPackingSlips, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getPackingSlips, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/packingSlips'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShippingLabel - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse - */ - public function getShippingLabel($purchase_order_number) - { - $response = $this->getShippingLabelWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getShippingLabelWithHttpInfo - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShippingLabelWithHttpInfo($purchase_order_number) - { - $request = $this->getShippingLabelRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShippingLabelAsync - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelAsync($purchase_order_number) - { - return $this->getShippingLabelAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getShippingLabelAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelResponse'; - $request = $this->getShippingLabelRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShippingLabel' - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShippingLabelRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getShippingLabel' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV1Api.getShippingLabel, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShippingLabels - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse - */ - public function getShippingLabels($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $response = $this->getShippingLabelsWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getShippingLabelsWithHttpInfo - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShippingLabelsWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $request = $this->getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/shippingLabels", - "getShippingLabels" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShippingLabelsAsync - * - * - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelsAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - return $this->getShippingLabelsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getShippingLabelsAsyncWithHttpInfo - * - * - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\GetShippingLabelListResponse'; - $request = $this->getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request, - null, - "/vendor/directFulfillment/shipping/v1/shippingLabels", - "getShippingLabels" - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShippingLabels' - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getShippingLabels' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getShippingLabels' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getShippingLabels, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV1Api.getShippingLabels, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/v1/shippingLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipmentConfirmations - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse - */ - public function submitShipmentConfirmations($body) - { - $response = $this->submitShipmentConfirmationsWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentConfirmationsWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentConfirmationsWithHttpInfo($body) - { - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentConfirmationsAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsync($body) - { - return $this->submitShipmentConfirmationsAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentConfirmationsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsResponse'; - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipmentConfirmations' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentConfirmationsRequest($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 submitShipmentConfirmations' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/v1/shipmentConfirmations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipmentStatusUpdates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse - */ - public function submitShipmentStatusUpdates($body) - { - $response = $this->submitShipmentStatusUpdatesWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentStatusUpdatesWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentStatusUpdatesWithHttpInfo($body) - { - $request = $this->submitShipmentStatusUpdatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentStatusUpdatesAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentStatusUpdatesAsync($body) - { - return $this->submitShipmentStatusUpdatesAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentStatusUpdatesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentStatusUpdatesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesResponse'; - $request = $this->submitShipmentStatusUpdatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipmentStatusUpdates' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentStatusUpdatesRequest($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 submitShipmentStatusUpdates' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShippingLabelRequest - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse - */ - public function submitShippingLabelRequest($body) - { - $response = $this->submitShippingLabelRequestWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShippingLabelRequestWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShippingLabelRequestWithHttpInfo($body) - { - $request = $this->submitShippingLabelRequestRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShippingLabelRequestAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShippingLabelRequestAsync($body) - { - return $this->submitShippingLabelRequestAsyncWithHttpInfo($body); - } - - /** - * Operation submitShippingLabelRequestAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShippingLabelRequestAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsResponse'; - $request = $this->submitShippingLabelRequestRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShippingLabelRequest' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShippingLabelRequestRequest($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 submitShippingLabelRequest' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/v1/shippingLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentShippingV20211228Api.php b/lib/Api/VendorDirectFulfillmentShippingV20211228Api.php deleted file mode 100644 index 55354259b..000000000 --- a/lib/Api/VendorDirectFulfillmentShippingV20211228Api.php +++ /dev/null @@ -1,4212 +0,0 @@ -createShippingLabelsWithHttpInfo($purchase_order_number, $body); - return $response; - } - - /** - * Operation createShippingLabelsWithHttpInfo - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel, HTTP status code, HTTP response headers (array of strings) - */ - public function createShippingLabelsWithHttpInfo($purchase_order_number, $body) - { - $request = $this->createShippingLabelsRequest($purchase_order_number, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 409: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation createShippingLabelsAsync - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShippingLabelsAsync($purchase_order_number, $body) - { - return $this->createShippingLabelsAsyncWithHttpInfo($purchase_order_number, $body); - } - - /** - * Operation createShippingLabelsAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createShippingLabelsAsyncWithHttpInfo($purchase_order_number, $body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel'; - $request = $this->createShippingLabelsRequest($purchase_order_number, $body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'createShippingLabels' - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. (required) - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CreateShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function createShippingLabelsRequest($purchase_order_number, $body) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling createShippingLabels' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV20211228Api.createShippingLabels, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - // 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 createShippingLabels' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getCustomerInvoice - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice - */ - public function getCustomerInvoice($purchase_order_number) - { - $response = $this->getCustomerInvoiceWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getCustomerInvoiceWithHttpInfo - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice, HTTP status code, HTTP response headers (array of strings) - */ - public function getCustomerInvoiceWithHttpInfo($purchase_order_number) - { - $request = $this->getCustomerInvoiceRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCustomerInvoiceAsync - * - * - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoiceAsync($purchase_order_number) - { - return $this->getCustomerInvoiceAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getCustomerInvoiceAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoiceAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice'; - $request = $this->getCustomerInvoiceRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCustomerInvoice' - * - * @param string $purchase_order_number Purchase order number of the shipment for which to return the invoice. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCustomerInvoiceRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getCustomerInvoice' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV20211228Api.getCustomerInvoice, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/customerInvoices/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getCustomerInvoices - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList - */ - public function getCustomerInvoices($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $response = $this->getCustomerInvoicesWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getCustomerInvoicesWithHttpInfo - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList, HTTP status code, HTTP response headers (array of strings) - */ - public function getCustomerInvoicesWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $request = $this->getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getCustomerInvoicesAsync - * - * - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoicesAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - return $this->getCustomerInvoicesAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getCustomerInvoicesAsyncWithHttpInfo - * - * - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getCustomerInvoicesAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoiceList'; - $request = $this->getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getCustomerInvoices' - * - * @param string $created_after Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional) - * @param string $next_token Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getCustomerInvoicesRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = null, $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getCustomerInvoices' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getCustomerInvoices' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getCustomerInvoices, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getCustomerInvoices, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/customerInvoices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPackingSlip - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip - */ - public function getPackingSlip($purchase_order_number) - { - $response = $this->getPackingSlipWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getPackingSlipWithHttpInfo - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip, HTTP status code, HTTP response headers (array of strings) - */ - public function getPackingSlipWithHttpInfo($purchase_order_number) - { - $request = $this->getPackingSlipRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPackingSlipAsync - * - * - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipAsync($purchase_order_number) - { - return $this->getPackingSlipAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getPackingSlipAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip'; - $request = $this->getPackingSlipRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPackingSlip' - * - * @param string $purchase_order_number The purchaseOrderNumber for the packing slip you want. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPackingSlipRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getPackingSlip' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV20211228Api.getPackingSlip, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/packingSlips/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPackingSlips - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList - */ - public function getPackingSlips($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $response = $this->getPackingSlipsWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getPackingSlipsWithHttpInfo - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList, HTTP status code, HTTP response headers (array of strings) - */ - public function getPackingSlipsWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $request = $this->getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPackingSlipsAsync - * - * - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipsAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - return $this->getPackingSlipsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getPackingSlipsAsyncWithHttpInfo - * - * - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPackingSlipsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlipList'; - $request = $this->getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPackingSlips' - * - * @param string $created_after Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned (optional) - * @param string $sort_order Sort ASC or DESC by packing slip creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPackingSlipsRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getPackingSlips' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getPackingSlips' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getPackingSlips, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getPackingSlips, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/packingSlips'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShippingLabel - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel - */ - public function getShippingLabel($purchase_order_number) - { - $response = $this->getShippingLabelWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getShippingLabelWithHttpInfo - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel, HTTP status code, HTTP response headers (array of strings) - */ - public function getShippingLabelWithHttpInfo($purchase_order_number) - { - $request = $this->getShippingLabelRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShippingLabelAsync - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelAsync($purchase_order_number) - { - return $this->getShippingLabelAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getShippingLabelAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel'; - $request = $this->getShippingLabelRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShippingLabel' - * - * @param string $purchase_order_number The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShippingLabelRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getShippingLabel' - ); - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number)) { - throw new \InvalidArgumentException("invalid value for \"purchase_order_number\" when calling VendorDirectFulfillmentShippingV20211228Api.getShippingLabel, must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShippingLabels - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList - */ - public function getShippingLabels($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $response = $this->getShippingLabelsWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - return $response; - } - - /** - * Operation getShippingLabelsWithHttpInfo - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList, HTTP status code, HTTP response headers (array of strings) - */ - public function getShippingLabelsWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $request = $this->getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShippingLabelsAsync - * - * - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelsAsync($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - return $this->getShippingLabelsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - } - - /** - * Operation getShippingLabelsAsyncWithHttpInfo - * - * - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShippingLabelsAsyncWithHttpInfo($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelList'; - $request = $this->getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id, $limit, $sort_order, $next_token); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShippingLabels' - * - * @param string $created_after Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $created_before Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. (required) - * @param string $ship_from_party_id The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. (optional) - * @param int $limit The limit to the number of records returned. (optional) - * @param string $sort_order Sort ASC or DESC by order creation date. (optional, default to 'ASC') - * @param string $next_token Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShippingLabelsRequest($created_after, $created_before, $ship_from_party_id = null, $limit = null, $sort_order = 'ASC', $next_token = null) - { - // verify the required parameter 'created_after' is set - if ($created_after === null || (is_array($created_after) && count($created_after) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_after when calling getShippingLabels' - ); - } - // verify the required parameter 'created_before' is set - if ($created_before === null || (is_array($created_before) && count($created_before) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $created_before when calling getShippingLabels' - ); - } - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getShippingLabels, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorDirectFulfillmentShippingV20211228Api.getShippingLabels, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($ship_from_party_id)) { - $ship_from_party_id = ObjectSerializer::serializeCollection($ship_from_party_id, '', true); - } - if ($ship_from_party_id !== null) { - $queryParams['shipFromPartyId'] = $ship_from_party_id; - } - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'pagination', 'shippingLabels'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'pagination', 'shippingLabels'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipmentConfirmations - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference - */ - public function submitShipmentConfirmations($body) - { - $response = $this->submitShipmentConfirmationsWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentConfirmationsWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentConfirmationsWithHttpInfo($body) - { - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentConfirmationsAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsync($body) - { - return $this->submitShipmentConfirmationsAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentConfirmationsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipmentConfirmations' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentConfirmationsRequest($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 submitShipmentConfirmations' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shipmentConfirmations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipmentStatusUpdates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference - */ - public function submitShipmentStatusUpdates($body) - { - $response = $this->submitShipmentStatusUpdatesWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentStatusUpdatesWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentStatusUpdatesWithHttpInfo($body) - { - $request = $this->submitShipmentStatusUpdatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentStatusUpdatesAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentStatusUpdatesAsync($body) - { - return $this->submitShipmentStatusUpdatesAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentStatusUpdatesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentStatusUpdatesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $request = $this->submitShipmentStatusUpdatesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipmentStatusUpdates' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShipmentStatusUpdatesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentStatusUpdatesRequest($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 submitShipmentStatusUpdates' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shipmentStatusUpdates'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShippingLabelRequest - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference - */ - public function submitShippingLabelRequest($body) - { - $response = $this->submitShippingLabelRequestWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShippingLabelRequestWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShippingLabelRequestWithHttpInfo($body) - { - $request = $this->submitShippingLabelRequestRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShippingLabelRequestAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShippingLabelRequestAsync($body) - { - return $this->submitShippingLabelRequestAsyncWithHttpInfo($body); - } - - /** - * Operation submitShippingLabelRequestAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShippingLabelRequestAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TransactionReference'; - $request = $this->submitShippingLabelRequestRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShippingLabelRequest' - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\SubmitShippingLabelsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShippingLabelRequestRequest($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 submitShippingLabelRequest' - ); - } - - $resourcePath = '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentTransactionsV1Api.php b/lib/Api/VendorDirectFulfillmentTransactionsV1Api.php deleted file mode 100644 index 6dafbbde9..000000000 --- a/lib/Api/VendorDirectFulfillmentTransactionsV1Api.php +++ /dev/null @@ -1,436 +0,0 @@ -getTransactionStatusWithHttpInfo($transaction_id); - return $response; - } - - /** - * Operation getTransactionStatusWithHttpInfo - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getTransactionStatusWithHttpInfo($transaction_id) - { - $request = $this->getTransactionStatusRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTransactionStatusAsync - * - * - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionStatusAsync($transaction_id) - { - return $this->getTransactionStatusAsyncWithHttpInfo($transaction_id); - } - - /** - * Operation getTransactionStatusAsyncWithHttpInfo - * - * - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionStatusAsyncWithHttpInfo($transaction_id) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\GetTransactionResponse'; - $request = $this->getTransactionStatusRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTransactionStatus' - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getTransactionStatusRequest($transaction_id) - { - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null || (is_array($transaction_id) && count($transaction_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $transaction_id when calling getTransactionStatus' - ); - } - - $resourcePath = '/vendor/directFulfillment/transactions/v1/transactions/{transactionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - '{' . 'transactionId' . '}', - ObjectSerializer::toPathValue($transaction_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorDirectFulfillmentTransactionsV20211228Api.php b/lib/Api/VendorDirectFulfillmentTransactionsV20211228Api.php deleted file mode 100644 index 019d2170e..000000000 --- a/lib/Api/VendorDirectFulfillmentTransactionsV20211228Api.php +++ /dev/null @@ -1,436 +0,0 @@ -getTransactionStatusWithHttpInfo($transaction_id); - return $response; - } - - /** - * Operation getTransactionStatusWithHttpInfo - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus, HTTP status code, HTTP response headers (array of strings) - */ - public function getTransactionStatusWithHttpInfo($transaction_id) - { - $request = $this->getTransactionStatusRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTransactionStatusAsync - * - * - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionStatusAsync($transaction_id) - { - return $this->getTransactionStatusAsyncWithHttpInfo($transaction_id); - } - - /** - * Operation getTransactionStatusAsyncWithHttpInfo - * - * - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionStatusAsyncWithHttpInfo($transaction_id) - { - $returnType = '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\TransactionStatus'; - $request = $this->getTransactionStatusRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTransactionStatus' - * - * @param string $transaction_id Previously returned in the response to the POST request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getTransactionStatusRequest($transaction_id) - { - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null || (is_array($transaction_id) && count($transaction_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $transaction_id when calling getTransactionStatus' - ); - } - - $resourcePath = '/vendor/directFulfillment/transactions/2021-12-28/transactions/{transactionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - '{' . 'transactionId' . '}', - ObjectSerializer::toPathValue($transaction_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorInvoicesV1Api.php b/lib/Api/VendorInvoicesV1Api.php deleted file mode 100644 index 7bbda5c79..000000000 --- a/lib/Api/VendorInvoicesV1Api.php +++ /dev/null @@ -1,433 +0,0 @@ -submitInvoicesWithHttpInfo($body); - return $response; - } - - /** - * Operation submitInvoicesWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitInvoicesWithHttpInfo($body) - { - $request = $this->submitInvoicesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitInvoicesAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoicesAsync($body) - { - return $this->submitInvoicesAsyncWithHttpInfo($body); - } - - /** - * Operation submitInvoicesAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitInvoicesAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesResponse'; - $request = $this->submitInvoicesRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitInvoices' - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\SubmitInvoicesRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitInvoicesRequest($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 submitInvoices' - ); - } - - $resourcePath = '/vendor/payments/v1/invoices'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorOrdersV1Api.php b/lib/Api/VendorOrdersV1Api.php deleted file mode 100644 index 3a9abaeb0..000000000 --- a/lib/Api/VendorOrdersV1Api.php +++ /dev/null @@ -1,1879 +0,0 @@ -getPurchaseOrderWithHttpInfo($purchase_order_number); - return $response; - } - - /** - * Operation getPurchaseOrderWithHttpInfo - * - * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPurchaseOrderWithHttpInfo($purchase_order_number) - { - $request = $this->getPurchaseOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPurchaseOrderAsync - * - * - * - * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrderAsync($purchase_order_number) - { - return $this->getPurchaseOrderAsyncWithHttpInfo($purchase_order_number); - } - - /** - * Operation getPurchaseOrderAsyncWithHttpInfo - * - * - * - * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrderAsyncWithHttpInfo($purchase_order_number) - { - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrderResponse'; - $request = $this->getPurchaseOrderRequest($purchase_order_number); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPurchaseOrder' - * - * @param string $purchase_order_number The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPurchaseOrderRequest($purchase_order_number) - { - // verify the required parameter 'purchase_order_number' is set - if ($purchase_order_number === null || (is_array($purchase_order_number) && count($purchase_order_number) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $purchase_order_number when calling getPurchaseOrder' - ); - } - - $resourcePath = '/vendor/orders/v1/purchaseOrders/{purchaseOrderNumber}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($purchase_order_number !== null) { - $resourcePath = str_replace( - '{' . 'purchaseOrderNumber' . '}', - ObjectSerializer::toPathValue($purchase_order_number), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPurchaseOrders - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $created_after Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call (optional) - * @param bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param string $changed_after Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $changed_before Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $po_item_state Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. (optional) - * @param bool $is_po_changed When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. (optional) - * @param string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse - */ - public function getPurchaseOrders($limit = null, $created_after = null, $created_before = null, $sort_order = null, $next_token = null, $include_details = null, $changed_after = null, $changed_before = null, $po_item_state = null, $is_po_changed = null, $purchase_order_state = null, $ordering_vendor_code = null) - { - $response = $this->getPurchaseOrdersWithHttpInfo($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code); - return $response; - } - - /** - * Operation getPurchaseOrdersWithHttpInfo - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $created_after Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call (optional) - * @param bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param string $changed_after Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $changed_before Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $po_item_state Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. (optional) - * @param bool $is_po_changed When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. (optional) - * @param string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPurchaseOrdersWithHttpInfo($limit = null, $created_after = null, $created_before = null, $sort_order = null, $next_token = null, $include_details = null, $changed_after = null, $changed_before = null, $po_item_state = null, $is_po_changed = null, $purchase_order_state = null, $ordering_vendor_code = null) - { - $request = $this->getPurchaseOrdersRequest($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPurchaseOrdersAsync - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $created_after Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call (optional) - * @param bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param string $changed_after Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $changed_before Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $po_item_state Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. (optional) - * @param bool $is_po_changed When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. (optional) - * @param string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrdersAsync($limit = null, $created_after = null, $created_before = null, $sort_order = null, $next_token = null, $include_details = null, $changed_after = null, $changed_before = null, $po_item_state = null, $is_po_changed = null, $purchase_order_state = null, $ordering_vendor_code = null) - { - return $this->getPurchaseOrdersAsyncWithHttpInfo($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code); - } - - /** - * Operation getPurchaseOrdersAsyncWithHttpInfo - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $created_after Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call (optional) - * @param bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param string $changed_after Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $changed_before Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $po_item_state Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. (optional) - * @param bool $is_po_changed When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. (optional) - * @param string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrdersAsyncWithHttpInfo($limit = null, $created_after = null, $created_before = null, $sort_order = null, $next_token = null, $include_details = null, $changed_after = null, $changed_before = null, $po_item_state = null, $is_po_changed = null, $purchase_order_state = null, $ordering_vendor_code = null) - { - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersResponse'; - $request = $this->getPurchaseOrdersRequest($limit, $created_after, $created_before, $sort_order, $next_token, $include_details, $changed_after, $changed_before, $po_item_state, $is_po_changed, $purchase_order_state, $ordering_vendor_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPurchaseOrders' - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $created_after Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call (optional) - * @param bool $include_details When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true. (optional) - * @param string $changed_after Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $changed_before Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $po_item_state Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero. (optional) - * @param bool $is_po_changed When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false. (optional) - * @param string $purchase_order_state Filters purchase orders based on the purchase order state. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPurchaseOrdersRequest($limit = null, $created_after = null, $created_before = null, $sort_order = null, $next_token = null, $include_details = null, $changed_after = null, $changed_before = null, $po_item_state = null, $is_po_changed = null, $purchase_order_state = null, $ordering_vendor_code = null) - { - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorOrdersV1Api.getPurchaseOrders, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorOrdersV1Api.getPurchaseOrders, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/orders/v1/purchaseOrders'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($include_details)) { - $include_details = ObjectSerializer::serializeCollection($include_details, '', true); - } - if ($include_details !== null) { - $queryParams['includeDetails'] = $include_details; - } - - // query params - if (is_array($changed_after)) { - $changed_after = ObjectSerializer::serializeCollection($changed_after, '', true); - } - if ($changed_after !== null) { - $queryParams['changedAfter'] = $changed_after; - } - - // query params - if (is_array($changed_before)) { - $changed_before = ObjectSerializer::serializeCollection($changed_before, '', true); - } - if ($changed_before !== null) { - $queryParams['changedBefore'] = $changed_before; - } - - // query params - if (is_array($po_item_state)) { - $po_item_state = ObjectSerializer::serializeCollection($po_item_state, '', true); - } - if ($po_item_state !== null) { - $queryParams['poItemState'] = $po_item_state; - } - - // query params - if (is_array($is_po_changed)) { - $is_po_changed = ObjectSerializer::serializeCollection($is_po_changed, '', true); - } - if ($is_po_changed !== null) { - $queryParams['isPOChanged'] = $is_po_changed; - } - - // query params - if (is_array($purchase_order_state)) { - $purchase_order_state = ObjectSerializer::serializeCollection($purchase_order_state, '', true); - } - if ($purchase_order_state !== null) { - $queryParams['purchaseOrderState'] = $purchase_order_state; - } - - // query params - if (is_array($ordering_vendor_code)) { - $ordering_vendor_code = ObjectSerializer::serializeCollection($ordering_vendor_code, '', true); - } - if ($ordering_vendor_code !== null) { - $queryParams['orderingVendorCode'] = $ordering_vendor_code; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', 'payload'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json', 'payload'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getPurchaseOrdersStatus - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param string $created_after Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_after Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_before Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param string $purchase_order_status Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. (optional) - * @param string $item_confirmation_status Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. (optional) - * @param string $item_receive_status Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. (optional) - * @param string $ship_to_party_id Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse - */ - public function getPurchaseOrdersStatus($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $updated_after = null, $updated_before = null, $purchase_order_number = null, $purchase_order_status = null, $item_confirmation_status = null, $item_receive_status = null, $ordering_vendor_code = null, $ship_to_party_id = null) - { - $response = $this->getPurchaseOrdersStatusWithHttpInfo($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id); - return $response; - } - - /** - * Operation getPurchaseOrdersStatusWithHttpInfo - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param string $created_after Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_after Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_before Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param string $purchase_order_status Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. (optional) - * @param string $item_confirmation_status Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. (optional) - * @param string $item_receive_status Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. (optional) - * @param string $ship_to_party_id Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getPurchaseOrdersStatusWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $updated_after = null, $updated_before = null, $purchase_order_number = null, $purchase_order_status = null, $item_confirmation_status = null, $item_receive_status = null, $ordering_vendor_code = null, $ship_to_party_id = null) - { - $request = $this->getPurchaseOrdersStatusRequest($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getPurchaseOrdersStatusAsync - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param string $created_after Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_after Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_before Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param string $purchase_order_status Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. (optional) - * @param string $item_confirmation_status Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. (optional) - * @param string $item_receive_status Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. (optional) - * @param string $ship_to_party_id Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrdersStatusAsync($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $updated_after = null, $updated_before = null, $purchase_order_number = null, $purchase_order_status = null, $item_confirmation_status = null, $item_receive_status = null, $ordering_vendor_code = null, $ship_to_party_id = null) - { - return $this->getPurchaseOrdersStatusAsyncWithHttpInfo($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id); - } - - /** - * Operation getPurchaseOrdersStatusAsyncWithHttpInfo - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param string $created_after Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_after Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_before Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param string $purchase_order_status Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. (optional) - * @param string $item_confirmation_status Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. (optional) - * @param string $item_receive_status Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. (optional) - * @param string $ship_to_party_id Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getPurchaseOrdersStatusAsyncWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $updated_after = null, $updated_before = null, $purchase_order_number = null, $purchase_order_status = null, $item_confirmation_status = null, $item_receive_status = null, $ordering_vendor_code = null, $ship_to_party_id = null) - { - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\GetPurchaseOrdersStatusResponse'; - $request = $this->getPurchaseOrdersStatusRequest($limit, $sort_order, $next_token, $created_after, $created_before, $updated_after, $updated_before, $purchase_order_number, $purchase_order_status, $item_confirmation_status, $item_receive_status, $ordering_vendor_code, $ship_to_party_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getPurchaseOrdersStatus' - * - * @param int $limit The limit to the number of records returned. Default value is 100 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more purchase orders than the specified result size limit. (optional) - * @param string $created_after Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_after Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $updated_before Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $purchase_order_number Provides purchase order status for the specified purchase order number. (optional) - * @param string $purchase_order_status Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. (optional) - * @param string $item_confirmation_status Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. (optional) - * @param string $item_receive_status Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. (optional) - * @param string $ordering_vendor_code Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. (optional) - * @param string $ship_to_party_id Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getPurchaseOrdersStatusRequest($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $updated_after = null, $updated_before = null, $purchase_order_number = null, $purchase_order_status = null, $item_confirmation_status = null, $item_receive_status = null, $ordering_vendor_code = null, $ship_to_party_id = null) - { - if ($limit !== null && $limit > 100) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorOrdersV1Api.getPurchaseOrdersStatus, must be smaller than or equal to 100.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorOrdersV1Api.getPurchaseOrdersStatus, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/orders/v1/purchaseOrdersStatus'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($updated_after)) { - $updated_after = ObjectSerializer::serializeCollection($updated_after, '', true); - } - if ($updated_after !== null) { - $queryParams['updatedAfter'] = $updated_after; - } - - // query params - if (is_array($updated_before)) { - $updated_before = ObjectSerializer::serializeCollection($updated_before, '', true); - } - if ($updated_before !== null) { - $queryParams['updatedBefore'] = $updated_before; - } - - // query params - if (is_array($purchase_order_number)) { - $purchase_order_number = ObjectSerializer::serializeCollection($purchase_order_number, '', true); - } - if ($purchase_order_number !== null) { - $queryParams['purchaseOrderNumber'] = $purchase_order_number; - } - - // query params - if (is_array($purchase_order_status)) { - $purchase_order_status = ObjectSerializer::serializeCollection($purchase_order_status, '', true); - } - if ($purchase_order_status !== null) { - $queryParams['purchaseOrderStatus'] = $purchase_order_status; - } - - // query params - if (is_array($item_confirmation_status)) { - $item_confirmation_status = ObjectSerializer::serializeCollection($item_confirmation_status, '', true); - } - if ($item_confirmation_status !== null) { - $queryParams['itemConfirmationStatus'] = $item_confirmation_status; - } - - // query params - if (is_array($item_receive_status)) { - $item_receive_status = ObjectSerializer::serializeCollection($item_receive_status, '', true); - } - if ($item_receive_status !== null) { - $queryParams['itemReceiveStatus'] = $item_receive_status; - } - - // query params - if (is_array($ordering_vendor_code)) { - $ordering_vendor_code = ObjectSerializer::serializeCollection($ordering_vendor_code, '', true); - } - if ($ordering_vendor_code !== null) { - $queryParams['orderingVendorCode'] = $ordering_vendor_code; - } - - // query params - if (is_array($ship_to_party_id)) { - $ship_to_party_id = ObjectSerializer::serializeCollection($ship_to_party_id, '', true); - } - if ($ship_to_party_id !== null) { - $queryParams['shipToPartyId'] = $ship_to_party_id; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitAcknowledgement - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse - */ - public function submitAcknowledgement($body) - { - $response = $this->submitAcknowledgementWithHttpInfo($body); - return $response; - } - - /** - * Operation submitAcknowledgementWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitAcknowledgementWithHttpInfo($body) - { - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitAcknowledgementAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsync($body) - { - return $this->submitAcknowledgementAsyncWithHttpInfo($body); - } - - /** - * Operation submitAcknowledgementAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitAcknowledgementAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementResponse'; - $request = $this->submitAcknowledgementRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitAcknowledgement' - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\SubmitAcknowledgementRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitAcknowledgementRequest($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 submitAcknowledgement' - ); - } - - $resourcePath = '/vendor/orders/v1/acknowledgements'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorShippingV1Api.php b/lib/Api/VendorShippingV1Api.php deleted file mode 100644 index e04eb56a1..000000000 --- a/lib/Api/VendorShippingV1Api.php +++ /dev/null @@ -1,1999 +0,0 @@ -getShipmentDetailsWithHttpInfo($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); - return $response; - } - - /** - * Operation getShipmentDetailsWithHttpInfo - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) - * @param string $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) - * @param string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) - * @param string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) - * @param string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) - * @param string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentDetailsWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $shipment_confirmed_before = null, $shipment_confirmed_after = null, $package_label_created_before = null, $package_label_created_after = null, $shipped_before = null, $shipped_after = null, $estimated_delivery_before = null, $estimated_delivery_after = null, $shipment_delivery_before = null, $shipment_delivery_after = null, $requested_pick_up_before = null, $requested_pick_up_after = null, $scheduled_pick_up_before = null, $scheduled_pick_up_after = null, $current_shipment_status = null, $vendor_shipment_identifier = null, $buyer_reference_number = null, $buyer_warehouse_code = null, $seller_warehouse_code = null) - { - $request = $this->getShipmentDetailsRequest($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentDetailsAsync - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) - * @param string $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) - * @param string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) - * @param string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) - * @param string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) - * @param string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDetailsAsync($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $shipment_confirmed_before = null, $shipment_confirmed_after = null, $package_label_created_before = null, $package_label_created_after = null, $shipped_before = null, $shipped_after = null, $estimated_delivery_before = null, $estimated_delivery_after = null, $shipment_delivery_before = null, $shipment_delivery_after = null, $requested_pick_up_before = null, $requested_pick_up_after = null, $scheduled_pick_up_before = null, $scheduled_pick_up_after = null, $current_shipment_status = null, $vendor_shipment_identifier = null, $buyer_reference_number = null, $buyer_warehouse_code = null, $seller_warehouse_code = null) - { - return $this->getShipmentDetailsAsyncWithHttpInfo($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); - } - - /** - * Operation getShipmentDetailsAsyncWithHttpInfo - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) - * @param string $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) - * @param string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) - * @param string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) - * @param string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) - * @param string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentDetailsAsyncWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $shipment_confirmed_before = null, $shipment_confirmed_after = null, $package_label_created_before = null, $package_label_created_after = null, $shipped_before = null, $shipped_after = null, $estimated_delivery_before = null, $estimated_delivery_after = null, $shipment_delivery_before = null, $shipment_delivery_after = null, $requested_pick_up_before = null, $requested_pick_up_after = null, $scheduled_pick_up_before = null, $scheduled_pick_up_after = null, $current_shipment_status = null, $vendor_shipment_identifier = null, $buyer_reference_number = null, $buyer_warehouse_code = null, $seller_warehouse_code = null) - { - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentDetailsResponse'; - $request = $this->getShipmentDetailsRequest($limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipmentDetails' - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) - * @param string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) - * @param string $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) - * @param string $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) - * @param string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) - * @param string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) - * @param string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) - * @param string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) - * @param string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShipmentDetailsRequest($limit = null, $sort_order = null, $next_token = null, $created_after = null, $created_before = null, $shipment_confirmed_before = null, $shipment_confirmed_after = null, $package_label_created_before = null, $package_label_created_after = null, $shipped_before = null, $shipped_after = null, $estimated_delivery_before = null, $estimated_delivery_after = null, $shipment_delivery_before = null, $shipment_delivery_after = null, $requested_pick_up_before = null, $requested_pick_up_after = null, $scheduled_pick_up_before = null, $scheduled_pick_up_after = null, $current_shipment_status = null, $vendor_shipment_identifier = null, $buyer_reference_number = null, $buyer_warehouse_code = null, $seller_warehouse_code = null) - { - if ($limit !== null && $limit > 50) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorShippingV1Api.getShipmentDetails, must be smaller than or equal to 50.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorShippingV1Api.getShipmentDetails, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/shipping/v1/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($created_after)) { - $created_after = ObjectSerializer::serializeCollection($created_after, '', true); - } - if ($created_after !== null) { - $queryParams['createdAfter'] = $created_after; - } - - // query params - if (is_array($created_before)) { - $created_before = ObjectSerializer::serializeCollection($created_before, '', true); - } - if ($created_before !== null) { - $queryParams['createdBefore'] = $created_before; - } - - // query params - if (is_array($shipment_confirmed_before)) { - $shipment_confirmed_before = ObjectSerializer::serializeCollection($shipment_confirmed_before, '', true); - } - if ($shipment_confirmed_before !== null) { - $queryParams['shipmentConfirmedBefore'] = $shipment_confirmed_before; - } - - // query params - if (is_array($shipment_confirmed_after)) { - $shipment_confirmed_after = ObjectSerializer::serializeCollection($shipment_confirmed_after, '', true); - } - if ($shipment_confirmed_after !== null) { - $queryParams['shipmentConfirmedAfter'] = $shipment_confirmed_after; - } - - // query params - if (is_array($package_label_created_before)) { - $package_label_created_before = ObjectSerializer::serializeCollection($package_label_created_before, '', true); - } - if ($package_label_created_before !== null) { - $queryParams['packageLabelCreatedBefore'] = $package_label_created_before; - } - - // query params - if (is_array($package_label_created_after)) { - $package_label_created_after = ObjectSerializer::serializeCollection($package_label_created_after, '', true); - } - if ($package_label_created_after !== null) { - $queryParams['packageLabelCreatedAfter'] = $package_label_created_after; - } - - // query params - if (is_array($shipped_before)) { - $shipped_before = ObjectSerializer::serializeCollection($shipped_before, '', true); - } - if ($shipped_before !== null) { - $queryParams['shippedBefore'] = $shipped_before; - } - - // query params - if (is_array($shipped_after)) { - $shipped_after = ObjectSerializer::serializeCollection($shipped_after, '', true); - } - if ($shipped_after !== null) { - $queryParams['shippedAfter'] = $shipped_after; - } - - // query params - if (is_array($estimated_delivery_before)) { - $estimated_delivery_before = ObjectSerializer::serializeCollection($estimated_delivery_before, '', true); - } - if ($estimated_delivery_before !== null) { - $queryParams['estimatedDeliveryBefore'] = $estimated_delivery_before; - } - - // query params - if (is_array($estimated_delivery_after)) { - $estimated_delivery_after = ObjectSerializer::serializeCollection($estimated_delivery_after, '', true); - } - if ($estimated_delivery_after !== null) { - $queryParams['estimatedDeliveryAfter'] = $estimated_delivery_after; - } - - // query params - if (is_array($shipment_delivery_before)) { - $shipment_delivery_before = ObjectSerializer::serializeCollection($shipment_delivery_before, '', true); - } - if ($shipment_delivery_before !== null) { - $queryParams['shipmentDeliveryBefore'] = $shipment_delivery_before; - } - - // query params - if (is_array($shipment_delivery_after)) { - $shipment_delivery_after = ObjectSerializer::serializeCollection($shipment_delivery_after, '', true); - } - if ($shipment_delivery_after !== null) { - $queryParams['shipmentDeliveryAfter'] = $shipment_delivery_after; - } - - // query params - if (is_array($requested_pick_up_before)) { - $requested_pick_up_before = ObjectSerializer::serializeCollection($requested_pick_up_before, '', true); - } - if ($requested_pick_up_before !== null) { - $queryParams['requestedPickUpBefore'] = $requested_pick_up_before; - } - - // query params - if (is_array($requested_pick_up_after)) { - $requested_pick_up_after = ObjectSerializer::serializeCollection($requested_pick_up_after, '', true); - } - if ($requested_pick_up_after !== null) { - $queryParams['requestedPickUpAfter'] = $requested_pick_up_after; - } - - // query params - if (is_array($scheduled_pick_up_before)) { - $scheduled_pick_up_before = ObjectSerializer::serializeCollection($scheduled_pick_up_before, '', true); - } - if ($scheduled_pick_up_before !== null) { - $queryParams['scheduledPickUpBefore'] = $scheduled_pick_up_before; - } - - // query params - if (is_array($scheduled_pick_up_after)) { - $scheduled_pick_up_after = ObjectSerializer::serializeCollection($scheduled_pick_up_after, '', true); - } - if ($scheduled_pick_up_after !== null) { - $queryParams['scheduledPickUpAfter'] = $scheduled_pick_up_after; - } - - // query params - if (is_array($current_shipment_status)) { - $current_shipment_status = ObjectSerializer::serializeCollection($current_shipment_status, '', true); - } - if ($current_shipment_status !== null) { - $queryParams['currentShipmentStatus'] = $current_shipment_status; - } - - // query params - if (is_array($vendor_shipment_identifier)) { - $vendor_shipment_identifier = ObjectSerializer::serializeCollection($vendor_shipment_identifier, '', true); - } - if ($vendor_shipment_identifier !== null) { - $queryParams['vendorShipmentIdentifier'] = $vendor_shipment_identifier; - } - - // query params - if (is_array($buyer_reference_number)) { - $buyer_reference_number = ObjectSerializer::serializeCollection($buyer_reference_number, '', true); - } - if ($buyer_reference_number !== null) { - $queryParams['buyerReferenceNumber'] = $buyer_reference_number; - } - - // query params - if (is_array($buyer_warehouse_code)) { - $buyer_warehouse_code = ObjectSerializer::serializeCollection($buyer_warehouse_code, '', true); - } - if ($buyer_warehouse_code !== null) { - $queryParams['buyerWarehouseCode'] = $buyer_warehouse_code; - } - - // query params - if (is_array($seller_warehouse_code)) { - $seller_warehouse_code = ObjectSerializer::serializeCollection($seller_warehouse_code, '', true); - } - if ($seller_warehouse_code !== null) { - $queryParams['sellerWarehouseCode'] = $seller_warehouse_code; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getShipmentLabels - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by transport label creation date. (optional) - * @param string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) - * @param string $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) - * @param string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) - * @param string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels - */ - public function getShipmentLabels($limit = null, $sort_order = null, $next_token = null, $label_created_after = null, $labelcreated_before = null, $buyer_reference_number = null, $vendor_shipment_identifier = null, $seller_warehouse_code = null) - { - $response = $this->getShipmentLabelsWithHttpInfo($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); - return $response; - } - - /** - * Operation getShipmentLabelsWithHttpInfo - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by transport label creation date. (optional) - * @param string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) - * @param string $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) - * @param string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) - * @param string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels, HTTP status code, HTTP response headers (array of strings) - */ - public function getShipmentLabelsWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $label_created_after = null, $labelcreated_before = null, $buyer_reference_number = null, $vendor_shipment_identifier = null, $seller_warehouse_code = null) - { - $request = $this->getShipmentLabelsRequest($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getShipmentLabelsAsync - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by transport label creation date. (optional) - * @param string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) - * @param string $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) - * @param string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) - * @param string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentLabelsAsync($limit = null, $sort_order = null, $next_token = null, $label_created_after = null, $labelcreated_before = null, $buyer_reference_number = null, $vendor_shipment_identifier = null, $seller_warehouse_code = null) - { - return $this->getShipmentLabelsAsyncWithHttpInfo($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); - } - - /** - * Operation getShipmentLabelsAsyncWithHttpInfo - * - * - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by transport label creation date. (optional) - * @param string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) - * @param string $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) - * @param string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) - * @param string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getShipmentLabelsAsyncWithHttpInfo($limit = null, $sort_order = null, $next_token = null, $label_created_after = null, $labelcreated_before = null, $buyer_reference_number = null, $vendor_shipment_identifier = null, $seller_warehouse_code = null) - { - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\GetShipmentLabels'; - $request = $this->getShipmentLabelsRequest($limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getShipmentLabels' - * - * @param int $limit The limit to the number of records returned. Default value is 50 records. (optional) - * @param string $sort_order Sort in ascending or descending order by transport label creation date. (optional) - * @param string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) - * @param string $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) - * @param string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) - * @param string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) - * @param string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getShipmentLabelsRequest($limit = null, $sort_order = null, $next_token = null, $label_created_after = null, $labelcreated_before = null, $buyer_reference_number = null, $vendor_shipment_identifier = null, $seller_warehouse_code = null) - { - if ($limit !== null && $limit > 50) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorShippingV1Api.getShipmentLabels, must be smaller than or equal to 50.'); - } - if ($limit !== null && $limit < 1) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling VendorShippingV1Api.getShipmentLabels, must be bigger than or equal to 1.'); - } - - - $resourcePath = '/vendor/shipping/v1/transportLabels'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if (is_array($limit)) { - $limit = ObjectSerializer::serializeCollection($limit, '', true); - } - if ($limit !== null) { - $queryParams['limit'] = $limit; - } - - // query params - if (is_array($sort_order)) { - $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); - } - if ($sort_order !== null) { - $queryParams['sortOrder'] = $sort_order; - } - - // query params - if (is_array($next_token)) { - $next_token = ObjectSerializer::serializeCollection($next_token, '', true); - } - if ($next_token !== null) { - $queryParams['nextToken'] = $next_token; - } - - // query params - if (is_array($label_created_after)) { - $label_created_after = ObjectSerializer::serializeCollection($label_created_after, '', true); - } - if ($label_created_after !== null) { - $queryParams['labelCreatedAfter'] = $label_created_after; - } - - // query params - if (is_array($labelcreated_before)) { - $labelcreated_before = ObjectSerializer::serializeCollection($labelcreated_before, '', true); - } - if ($labelcreated_before !== null) { - $queryParams['labelcreatedBefore'] = $labelcreated_before; - } - - // query params - if (is_array($buyer_reference_number)) { - $buyer_reference_number = ObjectSerializer::serializeCollection($buyer_reference_number, '', true); - } - if ($buyer_reference_number !== null) { - $queryParams['buyerReferenceNumber'] = $buyer_reference_number; - } - - // query params - if (is_array($vendor_shipment_identifier)) { - $vendor_shipment_identifier = ObjectSerializer::serializeCollection($vendor_shipment_identifier, '', true); - } - if ($vendor_shipment_identifier !== null) { - $queryParams['vendorShipmentIdentifier'] = $vendor_shipment_identifier; - } - - // query params - if (is_array($seller_warehouse_code)) { - $seller_warehouse_code = ObjectSerializer::serializeCollection($seller_warehouse_code, '', true); - } - if ($seller_warehouse_code !== null) { - $queryParams['sellerWarehouseCode'] = $seller_warehouse_code; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipmentConfirmations - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse - */ - public function submitShipmentConfirmations($body) - { - $response = $this->submitShipmentConfirmationsWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentConfirmationsWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentConfirmationsWithHttpInfo($body) - { - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentConfirmationsAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsync($body) - { - return $this->submitShipmentConfirmationsAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentConfirmationsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentConfirmationsAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse'; - $request = $this->submitShipmentConfirmationsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipmentConfirmations' - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsRequest $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentConfirmationsRequest($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 submitShipmentConfirmations' - ); - } - - $resourcePath = '/vendor/shipping/v1/shipmentConfirmations'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation submitShipments - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments $body body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse - */ - public function submitShipments($body) - { - $response = $this->submitShipmentsWithHttpInfo($body); - return $response; - } - - /** - * Operation submitShipmentsWithHttpInfo - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments $body (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function submitShipmentsWithHttpInfo($body) - { - $request = $this->submitShipmentsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 202: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 413: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 413: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation submitShipmentsAsync - * - * - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentsAsync($body) - { - return $this->submitShipmentsAsyncWithHttpInfo($body); - } - - /** - * Operation submitShipmentsAsyncWithHttpInfo - * - * - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function submitShipmentsAsyncWithHttpInfo($body) - { - $returnType = '\SellingPartnerApi\Model\VendorShippingV1\SubmitShipmentConfirmationsResponse'; - $request = $this->submitShipmentsRequest($body); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'submitShipments' - * - * @param \SellingPartnerApi\Model\VendorShippingV1\SubmitShipments $body (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function submitShipmentsRequest($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 submitShipments' - ); - } - - $resourcePath = '/vendor/shipping/v1/shipments'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($body)) { - if ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($body)); - } else { - $httpBody = $body; - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/Api/VendorTransactionStatusV1Api.php b/lib/Api/VendorTransactionStatusV1Api.php deleted file mode 100644 index cd14fbd76..000000000 --- a/lib/Api/VendorTransactionStatusV1Api.php +++ /dev/null @@ -1,436 +0,0 @@ -getTransactionWithHttpInfo($transaction_id); - return $response; - } - - /** - * Operation getTransactionWithHttpInfo - * - * @param string $transaction_id The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. (required) - * - * @throws \SellingPartnerApi\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse, HTTP status code, HTTP response headers (array of strings) - */ - public function getTransactionWithHttpInfo($transaction_id) - { - $request = $this->getTransactionRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($signedRequest, $options); - $this->writeDebug($response); - $this->writeDebug((string) $response->getBody()); - } catch (RequestException $e) { - $hasResponse = !empty($e->hasResponse()); - $body = (string) ($hasResponse ? $e->getResponse()->getBody() : '[NULL response]'); - $this->writeDebug($e->getResponse()); - $this->writeDebug($body); - throw new ApiException( - "[{$e->getCode()}] {$body}", - $e->getCode(), - $hasResponse ? $e->getResponse()->getHeaders() : [], - $body - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $signedRequest->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody()->getContents() - ); - } - - $responseBody = $response->getBody(); - switch($statusCode) { - case 200: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 400: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 401: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 403: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 404: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 415: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 429: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 500: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - case 503: - if ('\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', $response->getHeaders()); - } - - $returnType = '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse'; - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 415: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 429: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 500: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 503: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - $this->writeDebug($e); - throw $e; - } - } - - /** - * Operation getTransactionAsync - * - * - * - * @param string $transaction_id The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionAsync($transaction_id) - { - return $this->getTransactionAsyncWithHttpInfo($transaction_id); - } - - /** - * Operation getTransactionAsyncWithHttpInfo - * - * - * - * @param string $transaction_id The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getTransactionAsyncWithHttpInfo($transaction_id) - { - $returnType = '\SellingPartnerApi\Model\VendorTransactionStatusV1\GetTransactionResponse'; - $request = $this->getTransactionRequest($transaction_id); - $signedRequest = $this->config->signRequest( - $request - ); - - $this->writeDebug($signedRequest); - $this->writeDebug((string) $signedRequest->getBody()); - - return $this->client - ->sendAsync($signedRequest, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $this->writeDebug($response); - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = (string) $responseBody; - } - - return ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()); - }, - function ($exception) { - $response = $exception->getResponse(); - $hasResponse = !empty($response); - $body = (string) ($hasResponse ? $response->getBody() : '[NULL response]'); - $this->writeDebug($response); - $statusCode = $hasResponse ? $response->getStatusCode() : $exception->getCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $hasResponse ? $response->getHeaders() : [], - $body - ); - } - ); - } - - /** - * Create request for operation 'getTransaction' - * - * @param string $transaction_id The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getTransactionRequest($transaction_id) - { - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null || (is_array($transaction_id) && count($transaction_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $transaction_id when calling getTransaction' - ); - } - - $resourcePath = '/vendor/transactions/v1/transactions/{transactionId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - '{' . 'transactionId' . '}', - ObjectSerializer::toPathValue($transaction_id), - $resourcePath - ); - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/lib/ApiException.php b/lib/ApiException.php deleted file mode 100644 index 7c8c3c26b..000000000 --- a/lib/ApiException.php +++ /dev/null @@ -1,106 +0,0 @@ -responseHeaders = $responseHeaders; - $this->responseBody = $responseBody; - } - - /** - * Gets the HTTP response header - * - * @return string[]|null HTTP response header - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * Gets the HTTP body of the server response either as Json or string - * - * @return \stdClass|string|null HTTP body of the server response either as \stdClass or string - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Sets the deseralized response object (during deserialization) - * - * @param mixed $obj Deserialized response object - * - * @return void - */ - public function setResponseObject($obj) - { - $this->responseObject = $obj; - } - - /** - * Gets the deseralized response object (during deserialization) - * - * @return mixed the deserialized response object - */ - public function getResponseObject() - { - return $this->responseObject; - } -} diff --git a/lib/Authentication.php b/lib/Authentication.php deleted file mode 100644 index 798b842fc..000000000 --- a/lib/Authentication.php +++ /dev/null @@ -1,516 +0,0 @@ -client = $configurationOptions['authenticationClient'] ?? new Client(); - - $this->lwaAuthUrl = $configurationOptions['lwaAuthUrl'] ?? "https://api.amazon.com/auth/o2/token"; - $this->lwaRefreshToken = $configurationOptions['lwaRefreshToken'] ?? null; - $this->onUpdateCreds = $configurationOptions['onUpdateCredentials'] ?? null; - $this->lwaClientId = $configurationOptions['lwaClientId']; - $this->lwaClientSecret = $configurationOptions['lwaClientSecret']; - $this->endpoint = $configurationOptions['endpoint']; - - $accessToken = $configurationOptions['accessToken'] ?? null; - $accessTokenExpiration = $configurationOptions['accessTokenExpiration'] ?? null; - - $this->awsAccessKeyId = $configurationOptions['awsAccessKeyId']; - $this->awsSecretAccessKey = $configurationOptions['awsSecretAccessKey']; - - $this->roleArn = $configurationOptions['roleArn'] ?? null; - - if ($accessToken !== null && $accessTokenExpiration !== null) { - $this->populateCredentials($this->awsAccessKeyId, $this->awsSecretAccessKey, $accessToken, $accessTokenExpiration); - } - - $this->tokensApi = $configurationOptions['tokensApi'] ?? null; - - $this->authorizationSigner = $configurationOptions['authorizationSigner'] ?? new AuthorizationSigner($this->endpoint); - } - - public function getAuthorizationSigner(): AuthorizationSignerContract - { - return $this->authorizationSigner; - } - - /** - * @throws \GuzzleHttp\Exception\GuzzleException|\RuntimeException - * @return array - */ - public function requestLWAToken(): array - { - $jsonData = [ - "grant_type" => $this->signingScope ? "client_credentials" : "refresh_token", - "client_id" => $this->lwaClientId, - "client_secret" => $this->lwaClientSecret, - ]; - - // Only pass one of `scope` and `refresh_token` - // https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#step-1-request-a-login-with-amazon-access-token - if ($this->signingScope) { - $jsonData["scope"] = $this->signingScope; - } else { - if ($this->lwaRefreshToken === null) { - throw new RuntimeException('lwaRefreshToken must be specified when calling non-grantless API operations'); - } - $jsonData["refresh_token"] = $this->lwaRefreshToken; - } - - $lwaTokenRequestHeaders = [ - 'Content-Type' => 'application/json', - ]; - $lwaTokenRequestBody = \GuzzleHttp\json_encode($jsonData); - $lwaTokenRequest = new Psr7\Request('POST', $this->lwaAuthUrl, $lwaTokenRequestHeaders, $lwaTokenRequestBody); - $res = $this->client->send($lwaTokenRequest); - - $body = json_decode($res->getBody(), true); - $accessToken = $body["access_token"]; - $expirationDate = new DateTime("now", new DateTimeZone("UTC")); - $expirationDate->add(new DateInterval("PT" . strval($body["expires_in"]) . "S")); - return [$accessToken, $expirationDate->getTimestamp()]; - } - - public function populateCredentials($key, $secret, ?string $token = null, ?int $expires = null): void - { - $creds = null; - if ($token !== null && $expires !== null) { - $creds = new Credentials($key, $secret, $token, $expires); - } else { - $creds = new Credentials($key, $secret); - } - - if ($this->signingScope) { - $this->grantlessAwsCredentials = $creds; - } else { - $this->awsCredentials = $creds; - } - } - - /** - * Signs the given request using Amazon Signature V4. - * - * @param \Psr\Http\Message\RequestInterface $request The request to sign - * @param ?string $scope If the request is to a grantless operation endpoint, the scope for the grantless token - * @param ?string $restrictedPath The absolute (generic) path for the endpoint that the request is using if it's an endpoint that requires - * a restricted data token - * @return \Psr\Http\Message\RequestInterface The signed request - */ - public function signRequest( - RequestInterface $request, - ?string $scope = null, - ?string $restrictedPath = null, - ?string $operation = null - ): RequestInterface { - // This allows us to know if we're signing a grantless operation without passing $scope all over the place - $this->signingScope = $scope; - - // Check if the relevant AWS creds haven't been fetched or are expiring soon - $relevantCreds = null; - $params = []; - - parse_str($request->getUri()->getQuery(), $params); - $dataElements = []; - if (isset($params['dataElements'])) { - $dataElements = explode(',', $params['dataElements']); - } - - $hasDataElements = ['getOrders', 'getOrder', 'getOrderItems']; - if ( - !$this->signingScope && ( - // This makes it possible to call restricted operations that take dataElements *without* - // generating an RDT as long as no dataElements are passed. - $restrictedPath === null || ($dataElements === [] && in_array($operation, $hasDataElements, true)) - ) - || Endpoint::isSandbox("{$request->getUri()->getScheme()}://{$request->getUri()->getHost()}") - ) { - $relevantCreds = $this->getAwsCredentials(); - } else if ($this->signingScope) { // There is no overlap between grantless and restricted operations - $relevantCreds = $this->getGrantlessAwsCredentials($scope); - } else if ($restrictedPath !== null) { - $needRdt = true; - - // Not all getReportDocument calls need an RDT - if ($operation === 'getReportDocument') { - // We added a reportType query parameter that isn't in the official models, so that we can - // determine if the getReportDocument call requires an RDT - $constantPath = isset($params['reportType']) ? 'SellingPartnerApi\ReportType::' . $params['reportType'] : null; - - if ($constantPath === null || !defined($constantPath) || !constant($constantPath)['restricted']) { - $needRdt = false; - $relevantCreds = $this->getAwsCredentials(); - } - - // Remove the extra 'reportType' query parameter - $newUri = Psr7\Uri::withoutQueryValue($request->getUri(), 'reportType'); - $request = $request->withUri($newUri); - } else if (isset($params['dataElements'])) { - // Remove the extra 'dataElements' query parameter - $newUri = Psr7\Uri::withoutQueryValue($request->getUri(), 'dataElements'); - $request = $request->withUri($newUri); - } - - // Sandbox requests don't require RDTs - if ($needRdt) { - $relevantCreds = $this->getRestrictedDataToken($restrictedPath, $request->getMethod(), $dataElements); - } - } - - $accessToken = $relevantCreds->getSecurityToken(); - $isStsRequest = stripos($request->getUri()->getHost(), 'sts.') !== false; - - // Don't try to get role credentials if we're using this method to sign an STS request, because - // that will cause an infinite loop - if ($this->roleArn !== null && !$isStsRequest) { - $relevantCreds = $this->getRoleCredentials(); - } - - $this->authorizationSigner->setRequestTime(); - $signedRequest = $this->authorizationSigner->sign($request, $relevantCreds) - ->withHeader('x-amz-access-token', $accessToken); - - if ($this->roleArn && !$isStsRequest) { - $signedRequest = $signedRequest->withHeader("x-amz-security-token", $relevantCreds->getSecurityToken()); - } - - $this->signingScope = null; - return $signedRequest; - } - - /** - * Get credentials for standard API operations. - * - * @return \SellingPartnerApi\Credentials A set of access credentials for making calls to the SP API - */ - public function getAwsCredentials(): Credentials - { - if ($this->needNewCredentials($this->awsCredentials)) { - $this->newToken(); - } - return $this->awsCredentials; - } - - /** - * Get credentials for grantless operations with the given scope. - * - * @return \SellingPartnerApi\Credentials The grantless credentials - */ - public function getGrantlessAwsCredentials(): Credentials - { - if ($this->needNewCredentials($this->grantlessAwsCredentials) || $this->signingScope !== $this->grantlessCredentialsScope) { - $this->newToken(); - $this->grantlessCredentialsScope = $this->signingScope; - } - return $this->grantlessAwsCredentials; - } - - /** - * Get a security token using a role ARN. - * - * @return \SellingPartnerApi\Credentials A set of STS credentials - */ - public function getRoleCredentials(): Credentials - { - if ($this->needNewCredentials($this->roleCredentials)) { - $assumeTime = time(); - $client = new Client(); - $query = Psr7\Query::build([ - 'Action' => 'AssumeRole', - 'RoleArn' => $this->roleArn, - 'RoleSessionName' => "spapi-assumerole-{$assumeTime}", - 'Version' => '2011-06-15', - ]); - $request = new Request( - 'POST', - "https://sts.{$this->endpoint['region']}.amazonaws.com?{$query}", - ['Accept' => 'application/json'] - ); - $signedRequest = $this->signRequest($request); - - $assumed = $client->send($signedRequest); - $assumedJson = json_decode($assumed->getBody(), true); - $credentials = $assumedJson['AssumeRoleResponse']['AssumeRoleResult']['Credentials']; - - $this->roleCredentials = new Credentials( - $credentials['AccessKeyId'], - $credentials['SecretAccessKey'], - $credentials['SessionToken'], - $credentials['Expiration'], - ); - } - - return $this->roleCredentials; - } - - /** - * Get a restricted data token for the operation corresponding to $path and $method. - * - * @param string $path The generic or specific path for the restricted operation - * @param string $method The HTTP method of the restricted operation - * @param ?array $dataElements The restricted data elements to request access to, if any. - * Only applies to getOrder, getOrders, and getOrderItems. Default empty array. - * @return \SellingPartnerApi\Credentials A Credentials object holding the RDT - */ - public function getRestrictedDataToken(string $path, string $method, ?array $dataElements = []): Credentials - { - $standardCredentials = $this->getAwsCredentials(); - $tokensApi = $this->tokensApi; - if (is_null($tokensApi)) { - $config = new Configuration([ - "lwaClientId" => $this->lwaClientId, - "lwaClientSecret" => $this->lwaClientSecret, - "lwaRefreshToken" => $this->lwaRefreshToken, - "lwaAuthUrl" => $this->lwaAuthUrl, - "awsAccessKeyId" => $this->awsAccessKeyId, - "awsSecretAccessKey" => $this->awsSecretAccessKey, - "accessToken" => $standardCredentials->getSecurityToken(), - "accessTokenExpiration" => $standardCredentials->getExpiration(), - "roleArn" => $this->roleArn, - "endpoint" => $this->endpoint, - ]); - $tokensApi = new TokensApi($config); - } - - $restrictedResource = new Tokens\RestrictedResource([ - "method" => $method, - "path" => $path, - ]); - if ($dataElements !== []) { - $restrictedResource->setDataElements($dataElements); - } - - $body = new Tokens\CreateRestrictedDataTokenRequest([ - "restricted_resources" => [$restrictedResource], - ]); - - try { - $rdtData = $tokensApi->createRestrictedDataToken($body); - } catch (ApiException $e) { - throw new RuntimeException("Failed to create restricted data token: {$e->getMessage()}", $e->getCode()); - } - - $rdtCreds = new Credentials( - $this->awsAccessKeyId, - $this->awsSecretAccessKey, - $rdtData->getRestrictedDataToken(), - time() + intval($rdtData->getExpiresIn()) - ); - - return $rdtCreds; - } - - /** - * Get LWA client ID. - * - * @return string - */ - public function getLwaClientId(): ?string - { - return $this->lwaClientId; - } - - /** - * Set LWA client ID. - * - * @param string $lwaClientId - * @return void - */ - public function setLwaClientId(string $lwaClientId): void - { - $this->lwaClientId = $lwaClientId; - } - - /** - * Get LWA client secret. - * - * @return string - */ - public function getLwaClientSecret(): ?string - { - return $this->lwaClientSecret; - } - - /** - * Set LWA client secret. - * - * @param string $lwaClientSecret - * @return void - */ - public function setLwaClientSecret(string $lwaClientSecret): void - { - $this->lwaClientSecret = $lwaClientSecret; - } - - /** - * Get LWA refresh token. - * - * @return string|null - */ - public function getLwaRefreshToken(): ?string - { - return $this->lwaRefreshToken; - } - - /** - * Set LWA refresh token. - * - * @param string|null $lwaRefreshToken - * @return void - */ - public function setLwaRefreshToken(?string $lwaRefreshToken = null): void - { - $this->lwaRefreshToken = $lwaRefreshToken; - } - - /** - * Get AWS access key ID. - * - * @return string - */ - public function getAwsAccessKeyId(): ?string - { - return $this->awsAccessKeyId; - } - - /** - * Set AWS access key ID. - * - * @param string $awsAccessKeyId - * @return void - */ - public function setAwsAccessKeyId(string $awsAccessKeyId): void - { - $this->awsAccessKeyId = $awsAccessKeyId; - } - - /** - * Get AWS secret access key. - * - * @return string|null - */ - public function getAwsSecretAccessKey(): ?string - { - return $this->awsSecretAccessKey; - } - - /** - * Set AWS secret access key. - * - * @param string $awsSecretAccessKey - * @return void - */ - public function setAwsSecretAccessKey(string $awsSecretAccessKey): void - { - $this->awsSecretAccessKey = $awsSecretAccessKey; - } - - /** - * Get current SP API endpoint. - * - * @return array - */ - public function getEndpoint(): array - { - return $this->endpoint; - } - - /** - * Set SP API endpoint. $endpoint should be one of the constants from Endpoint.php. - * - * @param array $endpoint - * @throws RuntimeException - * @return void - */ - public function setEndpoint(array $endpoint): void - { - if (!array_key_exists('url', $endpoint) || !array_key_exists('region', $endpoint)) { - throw new RuntimeException('$endpoint must contain `url` and `region` keys'); - } - - $this->endpoint = $endpoint; - } - - /** - * Check if the given credentials need to be created/renewed. - * - * @param ?\SellingPartnerApi\Credentials $creds The credentials to check - * @return bool True if the credentials need to be updated, false otherwise - */ - private function needNewCredentials(?Credentials $creds = null): bool - { - return $creds === null || $creds->getSecurityToken() === null || $creds->expiresSoon(); - } - - private function newToken(): void - { - [$accessToken, $expirationTimestamp] = $this->requestLWAToken(); - $this->populateCredentials($this->awsAccessKeyId, $this->awsSecretAccessKey, $accessToken, $expirationTimestamp); - if (!$this->signingScope && $this->onUpdateCreds !== null) { - call_user_func($this->onUpdateCreds, $this->awsCredentials); - } - } - - /** - * @param bool|null $withTime - * @return string|null - */ - public function formattedRequestTime(?bool $withTime = true): ?string - { - return $this->authorizationSigner->formattedRequestTime($withTime); - } -} diff --git a/lib/AuthorizationSigner.php b/lib/AuthorizationSigner.php deleted file mode 100644 index 6b563edf0..000000000 --- a/lib/AuthorizationSigner.php +++ /dev/null @@ -1,218 +0,0 @@ -endpoint = $endpoint; - } - - public function sign(RequestInterface $request, Credentials $credentials): RequestInterface - { - $this->request = $request; - - $canonicalRequest = $this->createCanonicalRequest(); - $signingString = $this->createSigningString($canonicalRequest); - $signature = $this->createSignature($signingString, $credentials->getSecretKey()); - - [, $signedHeaders] = $this->createCanonicalizedHeaders($this->request->getHeaders()); - $credentialScope = $this->createCredentialScope(); - $credsForHeader = "Credential={$credentials->getAccessKeyId()}/{$credentialScope}"; - $headersForHeader = "SignedHeaders={$signedHeaders}"; - $sigForHeader = "Signature={$signature}"; - $authHeaderVal = static::SIGNING_ALGO . ' ' . implode(', ', [$credsForHeader, $headersForHeader, $sigForHeader]); - - return $this->request - ->withHeader('Authorization', $authHeaderVal) - ->withHeader('x-amz-date', $this->formattedRequestTime()); - } - - private function createCanonicalizedHeaders(): array - { - $headers = $this->request->getHeaders(); - // Convert all header names to lowercase - foreach ($headers as $key => $values) { - $headers[strtolower($key)] = $values; - unset($headers[$key]); - } - - // Sort headers by name, ascending - ksort($headers, SORT_STRING); - - $canonicalizedHeaders = ''; - $canonicalizedHeaderNames = ''; - foreach ($headers as $key => $values) { - $parsedValues = array_map(function ($val) { - $trimmed = trim($val); - $reduced = preg_replace('/(\s+)/', ' ', $trimmed); - - return $reduced; - }, $values); - - $valuesStr = implode(',', $parsedValues); - $canonicalizedHeaders .= "{$key}:{$valuesStr}\n"; - $canonicalizedHeaderNames .= "{$key};"; - } - - return [ - $canonicalizedHeaders, - substr($canonicalizedHeaderNames, 0, -1) // Remove trailing ";" - ]; - } - - private function createCanonicalizedPath(): string - { - $path = $this->request->getUri()->getPath(); - // Remove leading slash - $trimmed = ltrim($path, '/'); - // URL encode an already URL-encoded path - $doubleEncoded = rawurlencode($trimmed); - - // Add a leading slash, and convert all encoded slashes back to normal slashes - return '/' . str_replace('%2F', '/', $doubleEncoded); - } - - private function createCanonicalizedQuery(): string - { - $query = $this->request->getUri()->getQuery(); - if (strlen($query) === 0) { - return ''; - } - - // Parse query string - $params = explode('&', $query); - $paramsMap = []; - foreach ($params as $param) { - [$key, $value] = explode('=', $param); - - if ($value === null) { - $paramsMap[$key] = ''; - } else { - if (array_key_exists($key, $paramsMap)) { - // If there are multiple values for a parameter, make its value an array - if (is_array($paramsMap[$key])) { - $paramsMap[$key] = [$paramsMap[$key]]; - } - $paramsMap[$key][] = $value; - } else { - $paramsMap[$key] = $value; - } - } - } - - // Sort param map by key name, ascending - ksort($paramsMap, SORT_STRING); - // Sort params with multiple values by value, ascending - foreach ($paramsMap as $param) { - if (is_array($param)) { - sort($param, SORT_STRING); - } - } - - // Generate list of query params - $sorted = []; - foreach ($paramsMap as $key => $value) { - if (is_array($value)) { - foreach ($value as $paramVal) { - $sorted[] = "{$key}={$paramVal}"; - } - } else { - $sorted[] = "{$key}={$value}"; - } - } - - $canonicalized = implode('&', $sorted); - - return $canonicalized; - } - - private function createCanonicalRequest(): string - { - $method = $this->request->getMethod(); - $path = $this->createCanonicalizedPath(); - $query = $this->createCanonicalizedQuery(); - [$headers, $headerNames] = $this->createCanonicalizedHeaders(); - $hashedPayload = hash('sha256', $this->request->getBody()); - - $canonicalRequest = "{$method}\n{$path}\n{$query}\n{$headers}\n{$headerNames}\n{$hashedPayload}"; - - return $canonicalRequest; - } - - private function createSigningString(string $canonicalRequest): string - { - $credentialScope = $this->createCredentialScope(); - $canonHashed = hash('sha256', $canonicalRequest); - - return static::SIGNING_ALGO . "\n{$this->formattedRequestTime()}\n{$credentialScope}\n{$canonHashed}"; - } - - private function createCredentialScope(): string - { - $terminator = static::TERMINATION_STR; - - return "{$this->formattedRequestTime(false)}/{$this->endpoint['region']}/" . $this->getServiceName() . "/{$terminator}"; - } - - private function createSignature(string $signingString, string $secretKey): string - { - $kDate = hash_hmac('sha256', $this->formattedRequestTime(false), "AWS4{$secretKey}", true); - $kRegion = hash_hmac('sha256', $this->endpoint['region'], $kDate, true); - $kService = hash_hmac('sha256', $this->getServiceName(), $kRegion, true); - $kSigning = hash_hmac('sha256', static::TERMINATION_STR, $kService, true); - - return hash_hmac('sha256', $signingString, $kSigning); - } - - private function getServiceName(): string - { - return stripos($this->request->getUri()->getHost(), 'sts.') !== false ? 'sts' : static::SERVICE_NAME; - } - - public function setRequestTime(?DateTime $datetime = null): void - { - $this->requestTime = $datetime ?? new DateTime('now', new DateTimeZone('UTC')); - } - - /** - * @param bool|null $withTime - * - * @return string|null - */ - public function formattedRequestTime(?bool $withTime = true): ?string - { - $fmt = $withTime ? static::DATETIME_FMT : static::DATE_FMT; - - return $this->requestTime->format($fmt); - } -} \ No newline at end of file diff --git a/lib/Configuration.php b/lib/Configuration.php deleted file mode 100644 index 7102f71f9..000000000 --- a/lib/Configuration.php +++ /dev/null @@ -1,492 +0,0 @@ - 0) { - throw new RuntimeException("Required configuration values were missing: " . implode(", ", $missingKeys)); - } - - if ( - (isset($configurationOptions["accessToken"]) && !isset($configurationOptions["accessTokenExpiration"])) || - (!isset($configurationOptions["accessToken"]) && isset($configurationOptions["accessTokenExpiration"])) - ) { - throw new RuntimeException('If one of the `accessToken` or `accessTokenExpiration` configuration options is provided, the other must be provided as well'); - } - - $options = array_merge( - $configurationOptions, - [ - "accessToken" => $configurationOptions["accessToken"] ?? null, - "accessTokenExpiration" => $configurationOptions["accessTokenExpiration"] ?? null, - "onUpdateCredentials" => $configurationOptions["onUpdateCredentials"] ?? null, - "roleArn" => $configurationOptions["roleArn"] ?? null, - ] - ); - - $this->endpoint = $options["endpoint"]; - $this->auth = new Authentication($options); - - $this->setRequestSigner($options["requestSigner"] ?? $this->auth); - } - - public function getRequestSigner(): RequestSignerContract - { - return $this->requestSigner; - } - - public function setRequestSigner(RequestSignerContract $requestSigner): void - { - $this->requestSigner = $requestSigner; - } - - /** - * Gets the host - * - * @return string Host - */ - public function getHost() - { - return $this->endpoint["url"]; - } - - /** - * Gets the stripped-down host (no protocol or trailing slash) - * - * @return string Host - */ - public function getBareHost() - { - $host = $this->getHost(); - $noProtocol = preg_replace("/.+\:\/\//", " ", $host); - return trim($noProtocol, "/"); - } - - /** - * Sets the user agent of the api client - * - * @param string $userAgent the user agent of the api client - * - * @throws InvalidArgumentException - * @return $this - */ - public function setUserAgent($userAgent) - { - if (!is_string($userAgent)) { - throw new InvalidArgumentException("User-agent must be a string."); - } - - $this->userAgent = $userAgent; - return $this; - } - - /** - * Gets the user agent of the api client - * - * @return string user agent - */ - public function getUserAgent() - { - return $this->userAgent; - } - - /** - * Sets debug flag - * - * @param bool $debug Debug flag - * - * @return $this - */ - public function setDebug($debug) - { - $this->debug = $debug; - return $this; - } - - /** - * Gets the debug flag - * - * @return bool - */ - public function getDebug() - { - return $this->debug; - } - - /** - * Sets the debug file - * - * @param string $debugFile Debug file - * - * @return $this - */ - public function setDebugFile($debugFile) - { - $this->debugFile = $debugFile; - return $this; - } - - /** - * Gets the debug file - * - * @return string - */ - public function getDebugFile() - { - return $this->debugFile; - } - - /** - * Sets the temp folder path - * - * @param ?string $tempFolderPath Temp folder path - * @return void - */ - public static function setTempFolderPath(?string $tempFolderPath = null): void - { - if ($tempFolderPath === null) { - static::$tempFolderPath = sys_get_temp_dir(); - } else { - static::$tempFolderPath = $tempFolderPath; - } - } - - /** - * Gets the temp folder path - * - * @return string Temp folder path - */ - public static function getTempFolderPath() - { - if (isset(static::$tempFolderPath) || static::$tempFolderPath === null) { - static::setTempFolderPath(); - } - return static::$tempFolderPath; - } - - /** - * Get the datetime string that was used to sign the most recently signed Selling Partner API request - * - * @return \DateTime The current time - */ - public function getRequestDatetime() - { - return $this->auth->formattedRequestTime(); - } - - /** - * Get LWA client ID. - * - * @return string - */ - public function getLwaClientId(): ?string - { - return $this->auth->getLwaClientId(); - } - - /** - * Set LWA client ID. - * - * @param string $lwaClientId - * @return void - */ - public function setLwaClientId(string $lwaClientId): void - { - $this->auth->setLwaClientId($lwaClientId); - } - - /** - * Get LWA client secret. - * - * @return string - */ - public function getLwaClientSecret(): ?string - { - return $this->auth->getLwaClientSecret(); - } - - /** - * Set LWA client secret. - * - * @param string $lwaClientSecret - * @return void - */ - public function setLwaClientSecret(string $lwaClientSecret): void - { - $this->auth->setLwaClientSecret($lwaClientSecret); - } - - /** - * Get LWA refresh token. - * - * @return string - */ - public function getLwaRefreshToken(): ?string - { - return $this->auth->getLwaRefreshToken(); - } - - /** - * Set LWA refresh token. - * - * @param string|null $lwaRefreshToken - * @return void - */ - public function setLwaRefreshToken(?string $lwaRefreshToken = null): void - { - $this->auth->setLwaRefreshToken($lwaRefreshToken); - } - - /** - * Get AWS access key ID. - * - * @return string - */ - public function getAwsAccessKeyId(): ?string - { - return $this->auth->getAwsAccessKeyId(); - } - - /** - * Set AWS access key ID. - * - * @param string $awsAccessKeyId - * @return void - */ - public function setAwsAccessKeyId(string $awsAccessKeyId): void - { - $this->auth->setAwsAccessKeyId($awsAccessKeyId); - } - - /** - * Get AWS secret access key. - * - * @return string|null - */ - public function getAwsSecretAccessKey(): ?string - { - return $this->auth->getAwsSecretAccessKey(); - } - - /** - * Set AWS secret access key. - * - * @param string $awsSecretAccessKey - * @return void - */ - public function setAwsSecretAccessKey(string $awsSecretAccessKey): void - { - $this->auth->setAwsSecretAccessKey($awsSecretAccessKey); - } - - /** - * Get current SP API endpoint. - * - * @return array - */ - public function getEndpoint(): array - { - return $this->endpoint; - } - - /** - * Set SP API endpoint. $endpoint should be one of the constants from Endpoint.php. - * - * @param array $endpoint - * @throws RuntimeException - * @return void - */ - public function setEndpoint(array $endpoint): void - { - if (!array_key_exists('url', $endpoint) || !array_key_exists('region', $endpoint)) { - throw new RuntimeException('$endpoint must contain `url` and `region` keys'); - } - - $this->endpoint = $endpoint; - $this->auth->setEndpoint($endpoint); - } - - /** - * Sign a request to the Selling Partner API using the AWS Signature V4 protocol. - * - * @param Request $request The request to sign - * @param string $scope The scope of the request, if it's grantless - * - * @return Request The signed request - */ - public function signRequest($request, $scope = null, $restrictedPath = null, $operation = null) - { - return $this->requestSigner->signRequest($request, $scope, $restrictedPath, $operation); - } - - /** - * Gets the essential information for debugging - * - * @param string|null $tempFolderPath The path to the temp folder. - * @return string The report for debugging - */ - public static function toDebugReport(?string $tempFolderPath = null) - { - if ($tempFolderPath === null) { - $tempFolderPath = static::getTempFolderPath(); - } - $report = 'PHP SDK (SellingPartnerApi) Debug Report:' . PHP_EOL; - $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 2020-11-01' . PHP_EOL; - $report .= ' SDK Package Version: 5.10.2' . PHP_EOL; - $report .= ' Temp Folder Path: ' . $tempFolderPath . PHP_EOL; - - return $report; - } - - /** - * Returns an array of host settings - * - * @return array an array of host settings - */ - public function getHostSettings() - { - return [ - [ - "url" => "https://sellingpartnerapi-na.amazon.com", - "description" => "No description provided", - ] - ]; - } - - /** - * Returns URL based on the index and variables - * - * @param int $index index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ - public function getHostFromSettings($index, $variables = null) - { - if (null === $variables) { - $variables = []; - } - - $hosts = $this->getHostSettings(); - - // check array index out of bound - if ($index < 0 || $index >= count($hosts)) { - throw new InvalidArgumentException("Invalid index $index when selecting the host. Must be less than ".count($hosts)); - } - - $host = $hosts[$index]; - $url = $host["url"]; - - // go through variable and assign a value - foreach ($host["variables"] ?? [] as $name => $variable) { - if (array_key_exists($name, $variables)) { // check to see if it's in the variables provided by the user - if (in_array($variables[$name], $variable["enum_values"], true)) { // check to see if the value is in the enum - $url = str_replace("{".$name."}", $variables[$name], $url); - } else { - throw new InvalidArgumentException("The variable `$name` in the host URL has invalid value ".$variables[$name].". Must be ".implode(',', $variable["enum_values"])."."); - } - } else { - // use default value - $url = str_replace("{".$name."}", $variable["default_value"], $url); - } - } - - return $url; - } -} diff --git a/lib/ContentType.php b/lib/ContentType.php deleted file mode 100644 index 9038dd6c2..000000000 --- a/lib/ContentType.php +++ /dev/null @@ -1,26 +0,0 @@ -getConstants(); - } -} diff --git a/lib/Contract/AuthorizationSignerContract.php b/lib/Contract/AuthorizationSignerContract.php deleted file mode 100644 index 9a102ecdb..000000000 --- a/lib/Contract/AuthorizationSignerContract.php +++ /dev/null @@ -1,16 +0,0 @@ -key = trim($key); - $this->secret = trim($secret); - $this->token = $token; - $this->expires = $expires; - } - - public static function __set_state(array $state) - { - return new self( - $state['key'], - $state['secret'], - $state['token'], - $state['expires'] - ); - } - - public function getAccessKeyId() - { - return $this->key; - } - - public function getSecretKey() - { - return $this->secret; - } - - public function getSecurityToken() - { - return $this->token; - } - - public function getExpiration() - { - return $this->expires; - } - - public function isExpired() - { - return $this->expires !== null && time() >= $this->expires; - } - - public function expiresSoon() - { - return $this->expires !== null && time() >= $this->expires - static::REFRESH_OFFSET_SECS; - } - - public function toArray() - { - return [ - 'key' => $this->key, - 'secret' => $this->secret, - 'token' => $this->token, - 'expires' => $this->expires - ]; - } - - public function serialize() - { - return json_encode($this->toArray()); - } - - public function unserialize($serialized) - { - $data = json_decode($serialized, true); - - $this->key = $data['key']; - $this->secret = $data['secret']; - $this->token = $data['token']; - $this->expires = $data['expires']; - } -} diff --git a/lib/Document.php b/lib/Document.php deleted file mode 100644 index 5d8857f15..000000000 --- a/lib/Document.php +++ /dev/null @@ -1,298 +0,0 @@ - string, 'name' => string] $documentType - * Must be one of the constants defined in the ReportType or FeedType classes. When downloading a feed - * result document, pass the FeedType constant corresponding to the feed type that produced the result document.. - * @param ?\GuzzleHttp\Client $client The Guzzle client to use. If not provided, a new one will be created. - */ - public function __construct( - object $documentInfo, - array $documentType, - ?Client $client = null - ) { - // Make sure $documentInfo is a valid type - if (!( - $documentInfo instanceof ReportDocument || - $documentInfo instanceof FeedDocument || - $documentInfo instanceof CreateFeedDocumentResponse - )) { - $msg = "documentInfo must be one of the following types: Model\Feeds\CreateFeedDocumentResponse, Model\Feeds\FeedDocument, Model\Reports\ReportDocument"; - throw new RuntimeException($msg); - } - - if ($documentType === null) { - throw new RuntimeException('$documentType cannot be null'); - } - - $this->contentType = $documentType['contentType']; - $this->reportName = $documentType['name']; - - $validContentTypes = ContentType::getContentTypes(); - if (!in_array($this->contentType, array_values($validContentTypes), true)) { - $readableContentTypes = []; - foreach ($validContentTypes as $name => $value) { - $readableContentTypes[] = "SellingPartnerApi\ContentType::{$name} ($value)"; - } - throw new \InvalidArgumentException("Valid content types are: " . implode(", ", $readableContentTypes)); - } - - $this->url = $documentInfo->getUrl(); - - if (method_exists($documentInfo, "getCompressionAlgorithm")) { - $this->compressionAlgo = $documentInfo->getCompressionAlgorithm() ?? null; - } - - $this->client = $client ?? new Client(); - } - - /** - * Downloads the document data, and optionally parses it into a different format based on its content type. - * - * @param ?bool $postProcess If true, parse document contents based on the document's content type. - * CSV or TAB: a 2D array of (associative) report rows - * JSON: a nested array of data (result of json_decode) - * PDF or PLAIN: the raw, unmodified document contents - * XLSX: a PhpOffice\PhpSpreadsheet\Spreadsheet object - * XML: a SimpleXML object - * @param ?string $encoding Pass specific $from_encoding to mb_convert_encoding funtion. If not provided, - * try to automatically detect and use the encoding from the http response, otherwise internal mbstring encoding is used - * - * @return string The raw (unencrypted) document contents. - */ - public function download(?bool $postProcess = true, ?string $encoding = null): string - { - try { - $response = $this->client->request('GET', $this->url, ['stream' => true]); - } catch (\GuzzleHttp\Exception\ClientException $e) { - $response = $e->getResponse(); - if ($response->getStatusCode() === 404) { - throw new RuntimeException("Report document not found ({$response->getStatusCode()}): {$response->getBody()}"); - } else { - throw $e; - } - } - - $rawContents = $response->getBody()->getContents(); - - $contents = null; - if ($this->compressionAlgo !== null && $this->compressionAlgo === "GZIP") { - $contents = gzdecode($rawContents); - } else { - $contents = $rawContents; - } - - // Don't try to parse report data. Useful for very large reports, or if someone - // wants to do custom parsing - if (!$postProcess) { - $this->data = $contents; - return $contents; - } - - // Document encodings depend on the target marketplace. English-language reports are - // typically ISO-8859-1 encoded, which messes up the data when we read it directly via - // SimpleXML or as a plain TAB/CSV, but the original encoding is required to parse XLSX - // and PDF reports. - // If encoding is not provided try to automatically detect the encoding from the http response; default is UTF-8 - if (!($this->contentType === ContentType::XLSX || $this->contentType === ContentType::PDF)) { - if (!is_null($encoding) && !in_array(strtoupper($encoding), mb_list_encodings(), true)) { - $encoding = null; - } else if (is_null($encoding)) { - $encodings = ['UTF-8']; - if ($response->hasHeader('content-type')) { - $httpContentType = $response->getHeader('content-type'); - $parsedHeader = \GuzzleHttp\Psr7\Header::parse($httpContentType); - if (isset($parsedHeader[0]['charset'])) { - // Some EU reports are reporting Cp1252 charset in the download headers and not being correctly - // parsed by PHP. In those cases, replacing the encoding value with ISO-8859-1 allows PHP to - // correctly detect and convert the document to UTF-8 - array_unshift($encodings, str_replace("Cp1252", "ISO-8859-1", $parsedHeader[0]['charset'])); - } - } - $encoding = mb_detect_encoding($contents, $encodings, true); - } - $contents = mb_convert_encoding($contents, "UTF-8", $encoding ?: mb_internal_encoding()); - } - - $this->tmpFilename = tempnam(sys_get_temp_dir(), "tempdoc_spapi"); - - if (in_array($this->contentType, [ContentType::TAB, ContentType::CSV, ContentType::XLSX], true)) { - $tempFile = fopen($this->tmpFilename, "r+"); - fwrite($tempFile, $contents); - fclose($tempFile); - $fileType = IOFactory::identify($this->tmpFilename); - $reader = IOFactory::createReader($fileType); - } - - switch ($this->contentType) { - case ContentType::TAB: - // Amazon doesn't use enclosure characters, and passing an empty string to setEnclosure - // results in the default enclosure being used (a double quote character), so we use a - // bizarre character to avoid recognizing double quotes as enclosures. - // Thanks @gregordonsky (https://github.com/gregordonsky) for the idea! - // Keep default enclosure for GET_LEDGER_DETAIL_VIEW_DATA and GET_LEDGER_SUMMARY_VIEW_DATA as Amazon is sending with quotes - if($this->reportName !== "GET_LEDGER_DETAIL_VIEW_DATA" && $this->reportName !== "GET_LEDGER_SUMMARY_VIEW_DATA") { - $reader->setEnclosure(chr(8)); - } - // no break - case ContentType::CSV: - case ContentType::XLSX: - $spreadsheet = $reader->load($this->tmpFilename); - if ($this->contentType !== ContentType::XLSX) { - // Avoid spreadsheet formula processing when loading CSV or TAB files - $sheet = $spreadsheet->getSheet(0)->toArray(null, false); - // Turn each row of data into an associative array with the headers as keys - array_walk($sheet, function (&$row) use ($sheet) { - $row = array_combine($sheet[0], $row); - }); - // Remove headers line - array_shift($sheet); - $this->data = $sheet; - } else { - $this->data = $spreadsheet; - } - unlink($this->tmpFilename); - break; - case ContentType::JSON: - $this->data = json_decode($contents, true); - break; - case ContentType::PDF: - case ContentType::PLAIN: - $this->data = $contents; - break; - case ContentType::XML: - $this->data = simplexml_load_string($contents); - break; - } - - return $contents; - } - - /** - * Downloads the document data as a stream. - * - * @param resource|string|StreamInterface|null $output Optionally copy data stream to the given output. - * - * @return StreamInterface The raw (unencrypted) document stream.. - */ - public function downloadStream($output = null): StreamInterface - { - try { - $response = $this->client->request('GET', $this->url, ['stream' => true]); - } catch (\GuzzleHttp\Exception\ClientException $e) { - $response = $e->getResponse(); - if ($response->getStatusCode() === 404) { - throw new RuntimeException("Report document not found ({$response->getStatusCode()}): {$response->getBody()}"); - } - throw $e; - } - - // trying to detect the document charset/encoding - $this->encoding = null; - $parsed = Header::parse($response->getHeader('content-type')); - foreach ($parsed as $header) { - if (isset($header['charset'])) { - $this->encoding = $header['charset']; - break; - } - } - $stream = $response->getBody(); - if (strtolower((string) $this->compressionAlgo) === 'gzip') { - $stream = new InflateStream($stream); - } - - if ($output) { - $output = Utils::streamFor($output); - Utils::copyToStream($stream, $output); - return $output; - } - - return $stream; - } - - /** - * Uploads data to the document specified in the constructor. - * - * @param string|resource|StreamInterface|callable|\Iterator $feedData The contents of the feed to be uploaded - * @param string|null $charset An optional charset for the document to upload - * - * @return void - */ - public function upload($feedData, string $charset = null): void - { - $response = $this->client->put($this->url, [ - RequestOptions::HEADERS => [ - "content-type" => self::withContentType($this->contentType, $charset), - "host" => parse_url($this->url, PHP_URL_HOST), - ], - RequestOptions::BODY => $feedData, - ]); - - if ($response->getStatusCode() >= 300) { - throw new RuntimeException("Upload failed ({$response->getStatusCode()}): {$response->getBody()}"); - } - } - - public function getData() - { - return isset($this->data) ? $this->data : false; - } - - public function getEncoding(): ?string - { - return $this->encoding; - } - - public function __destruct() - { - if (isset($this->tempFilename)) { - unlink($this->tempFilename); - } - } - - /** - * Create a normalized content-type header. - * When uploading a document you must use the exact same content-type/charset in createFeedDocument() and upload(). - * - * @param string $contentType - * @param string|null $charset - * @return string - */ - public static function withContentType(string $contentType, string $charset = null): string - { - return $charset ? "{$contentType}; charset={$charset}" : $contentType; - } -} diff --git a/lib/Endpoint.php b/lib/Endpoint.php deleted file mode 100644 index a85542a45..000000000 --- a/lib/Endpoint.php +++ /dev/null @@ -1,143 +0,0 @@ - 'https://sellingpartnerapi-na.amazon.com', - 'region' => 'us-east-1', - ]; - public const NA_SANDBOX = [ - 'url' => 'https://sandbox.sellingpartnerapi-na.amazon.com', - 'region' => 'us-east-1', - ]; - - // Europe - public const EU = [ - 'url' => 'https://sellingpartnerapi-eu.amazon.com', - 'region' => 'eu-west-1', - ]; - public const EU_SANDBOX = [ - 'url' => 'https://sandbox.sellingpartnerapi-eu.amazon.com', - 'region' => 'eu-west-1', - ]; - - // Far East - public const FE = [ - 'url' => 'https://sellingpartnerapi-fe.amazon.com', - 'region' => 'us-west-2', - ]; - public const FE_SANDBOX = [ - 'url' => 'https://sandbox.sellingpartnerapi-fe.amazon.com', - 'region' => 'us-west-2', - ]; - - /** - * Returns the endpoint for the marketplace with the given ID. - * - * @param string $marketplace_id The identifier for the marketplace. (required) - * @param bool $sandbox Whether to return the sandbox endpoint for the region. (optional, default to false) - * - * @throws InvalidArgumentException - * @return array of the endpoint details - * - * - * @link https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html - */ - public static function getByMarketplaceId(string $marketplace_id, bool $sandbox = false) - { - $map = [ - // North America. - // Brazil. - 'A2Q3Y263D00KWC' => 'NA', - // Canada - 'A2EUQ1WTGCTBG2' => 'NA', - // Mexico. - 'A1AM78C64UM0Y8' => 'NA', - // US. - 'ATVPDKIKX0DER' => 'NA', - // Europe. - // United Arab Emirates (U.A.E.). - 'A2VIGQ35RCS4UG' => 'EU', - // Belgium. - 'AMEN7PMS3EDWL' => 'EU', - // Germany. - 'A1PA6795UKMFR9' => 'EU', - // Egypt. - 'ARBP9OOSHTCHU' => 'EU', - // Spain. - 'A1RKKUPIHCS9HS' => 'EU', - // France. - 'A13V1IB3VIYZZH' => 'EU', - // UK. - 'A1F83G8C2ARO7P' => 'EU', - // India. - 'A21TJRUUN4KGV' => 'EU', - // Italy. - 'APJ6JRA9NG5V4' => 'EU', - // Netherlands. - 'A1805IZSGTT6HS' => 'EU', - // Poland. - 'A1C3SOZRARQ6R3' => 'EU', - // Saudi Arabia. - 'A17E79C6D8DWNP' => 'EU', - // Sweden. - 'A2NODRKZP88ZB9' => 'EU', - // Turkey. - 'A33AVAJ2PDY3EV' => 'EU', - // Far East. - // Singapore. - 'A19VAU5U5O7RUS' => 'FE', - // Australia. - 'A39IBJ37TRP1C6' => 'FE', - // Japan. - 'A1VC38T7YXB528' => 'FE', - ]; - if (!isset($map[$marketplace_id])) { - throw new InvalidArgumentException(sprintf( - 'Unknown marketplace ID "%s".', - $marketplace_id - )); - } - - $region = $map[$marketplace_id]; - if ($sandbox) { - $region .= '_SANDBOX'; - } - - return constant("\SellingPartnerApi\Endpoint::$region"); - } - - /** - * Checks if the given endpoint is valid. If the given endpoint is an array, checks - * the value of the `url` key. If it's a string, checks if it's a sandbox URL. - * - * @param array|string $endpoint The endpoint to check - * @return bool - */ - public static function isSandbox($endpoint) - { - $sandboxHosts = [ - self::NA_SANDBOX['url'], - self::EU_SANDBOX['url'], - self::FE_SANDBOX['url'], - ]; - if (is_array($endpoint)) { - return in_array($endpoint['url'], $sandboxHosts, true); - } else if (is_string($endpoint)) { - return in_array($endpoint, $sandboxHosts, true); - } else { - throw new InvalidArgumentException( - 'Invalid endpoint type ' . gettype($endpoint) . '. Must be array or string.' - ); - } - } -} diff --git a/lib/FeedType.php b/lib/FeedType.php deleted file mode 100644 index e45b07040..000000000 --- a/lib/FeedType.php +++ /dev/null @@ -1,165 +0,0 @@ - ContentType::JSON, - 'name' => 'JSON_LISTINGS_FEED' - ]; - public const POST_PRODUCT_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PRODUCT_DATA' - ]; - public const POST_INVENTORY_AVAILABILITY_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_INVENTORY_AVAILABILITY_DATA' - ]; - public const POST_PRODUCT_OVERRIDES_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PRODUCT_OVERRIDES_DATA' - ]; - public const POST_PRODUCT_PRICING_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PRODUCT_PRICING_DATA' - ]; - public const POST_PRODUCT_IMAGE_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PRODUCT_IMAGE_DATA' - ]; - public const POST_PRODUCT_RELATIONSHIP_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PRODUCT_RELATIONSHIP_DATA' - ]; - public const POST_FLAT_FILE_INVLOADER_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_INVLOADER_DATA' - ]; - public const POST_FLAT_FILE_LISTINGS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_LISTINGS_DATA' - ]; - public const POST_FLAT_FILE_BOOKLOADER_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_BOOKLOADER_DATA' - ]; - public const POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA' - ]; - public const POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA' - ]; - public const POST_UIEE_BOOKLOADER_DATA = [ - 'contentType' => ContentType::PLAIN, - 'name' => 'POST_UIEE_BOOKLOADER_DATA' - ]; - public const POST_STD_ACES_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_STD_ACES_DATA' - ]; - - - // Order feeds - public const POST_ORDER_ACKNOWLEDGEMENT_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_ORDER_ACKNOWLEDGEMENT_DATA' - ]; - public const POST_PAYMENT_ADJUSTMENT_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_PAYMENT_ADJUSTMENT_DATA' - ]; - public const POST_ORDER_FULFILLMENT_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_ORDER_FULFILLMENT_DATA' - ]; - public const POST_INVOICE_CONFIRMATION_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_INVOICE_CONFIRMATION_DATA' - ]; - // Japan only - public const POST_EXPECTED_SHIP_DATE_SOD = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_EXPECTED_SHIP_DATE_SOD' - ]; - public const POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA' - ]; - public const POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA' - ]; - public const POST_FLAT_FILE_FULFILLMENT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FULFILLMENT_DATA' - ]; - // Japan only - public const POST_EXPECTED_SHIP_DATE_SOD_FLAT_FILE = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_EXPECTED_SHIP_DATE_SOD_FLAT_FILE' - ]; - - - // FBA feeds - public const POST_FULFILLMENT_ORDER_REQUEST_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_FULFILLMENT_ORDER_REQUEST_DATA' - ]; - public const POST_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA' - ]; - public const POST_FBA_INBOUND_CARTON_CONTENTS = [ - 'contentType' => ContentType::XML, - 'name' => 'POST_FBA_INBOUND_CARTON_CONTENTS' - ]; - public const POST_FLAT_FILE_FULFILLMENT_ORDER_REQUEST_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FULFILLMENT_ORDER_REQUEST_DATA' - ]; - public const POST_FLAT_FILE_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA' - ]; - public const POST_FLAT_FILE_FBA_CREATE_INBOUND_PLAN = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FBA_CREATE_INBOUND_PLAN' - ]; - public const POST_FLAT_FILE_FBA_UPDATE_INBOUND_PLAN = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FBA_UPDATE_INBOUND_PLAN' - ]; - public const POST_FLAT_FILE_FBA_CREATE_REMOVAL = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_FLAT_FILE_FBA_CREATE_REMOVAL' - ]; - - - // Business feed - public const RFQ_UPLOAD_FEED = [ - 'contentType' => ContentType::TAB, - 'name' => 'RFQ_UPLOAD_FEED' - ]; - - - // Easy ship feed - public const POST_EASYSHIP_DOCUMENTS = [ - 'contentType' => ContentType::TAB, - 'name' => 'POST_EASYSHIP_DOCUMENTS' - ]; - - // VAT Invoice Upload feed - public const UPLOAD_VAT_INVOICE = [ - 'contentType' => ContentType::PDF, - 'name' => 'UPLOAD_VAT_INVOICE' - ]; - -} diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php deleted file mode 100644 index ea1b34922..000000000 --- a/lib/HeaderSelector.php +++ /dev/null @@ -1,103 +0,0 @@ -configuration = $config; - } - - /** - * @param string[] $accept - * @param string[] $contentTypes - * @return array - */ - public function selectHeaders($accept, $contentTypes, $scope = null) - { - $headers = []; - - $accept = $this->selectAcceptHeader($accept); - if ($accept !== null) { - $headers['Accept'] = $accept; - } - - $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); - $headers['Host'] = $this->configuration->getBareHost(); - return $headers; - } - - /** - * @param string[] $accept - * @return array - */ - public function selectHeadersForMultipart($accept) - { - $headers = $this->selectHeaders($accept, []); - - unset($headers['Content-Type']); - return $headers; - } - - /** - * Return the header 'Accept' based on an array of Accept provided - * - * @param string[] $accept Array of header - * - * @return null|string Accept (e.g. application/json) - */ - private function selectAcceptHeader($accept) - { - if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { - return null; - } elseif ($jsonAccept = preg_grep('~(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$~', $accept)) { - return implode(',', $jsonAccept); - } else { - return implode(',', $accept); - } - } - - /** - * Return the content type based on an array of content-type provided - * - * @param string[] $contentType Array fo content-type - * - * @return string Content-Type (e.g. application/json) - */ - private function selectContentTypeHeader($contentType) - { - if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { - return 'application/json'; - } elseif (preg_grep("/application\/json/i", $contentType)) { - return 'application/json'; - } else { - return implode(',', $contentType); - } - } -} - diff --git a/lib/Model/AplusContentV20201101/AplusPaginatedResponse.php b/lib/Model/AplusContentV20201101/AplusPaginatedResponse.php deleted file mode 100644 index 9ca0a4851..000000000 --- a/lib/Model/AplusContentV20201101/AplusPaginatedResponse.php +++ /dev/null @@ -1,202 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AplusPaginatedResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AplusPaginatedResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'next_page_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'next_page_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'warnings' => 'warnings', - 'next_page_token' => 'nextPageToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'warnings' => 'setWarnings', - 'next_page_token' => 'setNextPageToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'warnings' => 'getWarnings', - 'next_page_token' => 'getNextPageToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['next_page_token']) && (mb_strlen($this->container['next_page_token']) < 1)) { - $invalidProperties[] = "invalid value for 'next_page_token', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - - if (!is_null($next_page_token) && (mb_strlen($next_page_token) < 1)) { - throw new \InvalidArgumentException('invalid length for $next_page_token when calling AplusPaginatedResponse., must be bigger than or equal to 1.'); - } - - $this->container['next_page_token'] = $next_page_token; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.php b/lib/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.php deleted file mode 100644 index a638fe146..000000000 --- a/lib/Model/AplusContentV20201101/AplusPaginatedResponseAllOf.php +++ /dev/null @@ -1,170 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AplusPaginatedResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AplusPaginatedResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_page_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_page_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_page_token' => 'nextPageToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_page_token' => 'setNextPageToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_page_token' => 'getNextPageToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['next_page_token']) && (mb_strlen($this->container['next_page_token']) < 1)) { - $invalidProperties[] = "invalid value for 'next_page_token', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - - if (!is_null($next_page_token) && (mb_strlen($next_page_token) < 1)) { - throw new \InvalidArgumentException('invalid length for $next_page_token when calling AplusPaginatedResponseAllOf., must be bigger than or equal to 1.'); - } - - $this->container['next_page_token'] = $next_page_token; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/AplusResponse.php b/lib/Model/AplusContentV20201101/AplusResponse.php deleted file mode 100644 index adb1dd4bc..000000000 --- a/lib/Model/AplusContentV20201101/AplusResponse.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AplusResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AplusResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'warnings' => 'warnings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'warnings' => 'setWarnings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'warnings' => 'getWarnings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/AsinBadge.php b/lib/Model/AplusContentV20201101/AsinBadge.php deleted file mode 100644 index e42b675a2..000000000 --- a/lib/Model/AplusContentV20201101/AsinBadge.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/AsinMetadata.php b/lib/Model/AplusContentV20201101/AsinMetadata.php deleted file mode 100644 index 8b981485a..000000000 --- a/lib/Model/AplusContentV20201101/AsinMetadata.php +++ /dev/null @@ -1,332 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AsinMetadata extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AsinMetadata'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'badge_set' => '\SellingPartnerApi\Model\AplusContentV20201101\AsinBadge[]', - 'parent' => 'string', - 'title' => 'string', - 'image_url' => 'string', - 'content_reference_key_set' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'badge_set' => null, - 'parent' => null, - 'title' => null, - 'image_url' => null, - 'content_reference_key_set' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'badge_set' => 'badgeSet', - 'parent' => 'parent', - 'title' => 'title', - 'image_url' => 'imageUrl', - 'content_reference_key_set' => 'contentReferenceKeySet' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'badge_set' => 'setBadgeSet', - 'parent' => 'setParent', - 'title' => 'setTitle', - 'image_url' => 'setImageUrl', - 'content_reference_key_set' => 'setContentReferenceKeySet' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'badge_set' => 'getBadgeSet', - 'parent' => 'getParent', - 'title' => 'getTitle', - 'image_url' => 'getImageUrl', - 'content_reference_key_set' => 'getContentReferenceKeySet' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['badge_set'] = $data['badge_set'] ?? null; - $this->container['parent'] = $data['parent'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['image_url'] = $data['image_url'] ?? null; - $this->container['content_reference_key_set'] = $data['content_reference_key_set'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if (!is_null($this->container['title']) && (mb_strlen($this->container['title']) < 1)) { - $invalidProperties[] = "invalid value for 'title', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['image_url']) && (mb_strlen($this->container['image_url']) < 1)) { - $invalidProperties[] = "invalid value for 'image_url', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets badge_set - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\AsinBadge[]|null - */ - public function getBadgeSet() - { - return $this->container['badge_set']; - } - - /** - * Sets badge_set - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\AsinBadge[]|null $badge_set The set of ASIN badges. - * - * @return self - */ - public function setBadgeSet($badge_set) - { - - - $this->container['badge_set'] = $badge_set; - - return $this; - } - /** - * Gets parent - * - * @return string|null - */ - public function getParent() - { - return $this->container['parent']; - } - - /** - * Sets parent - * - * @param string|null $parent The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setParent($parent) - { - $this->container['parent'] = $parent; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The title for the ASIN in the Amazon catalog. - * - * @return self - */ - public function setTitle($title) - { - - if (!is_null($title) && (mb_strlen($title) < 1)) { - throw new \InvalidArgumentException('invalid length for $title when calling AsinMetadata., must be bigger than or equal to 1.'); - } - - $this->container['title'] = $title; - - return $this; - } - /** - * Gets image_url - * - * @return string|null - */ - public function getImageUrl() - { - return $this->container['image_url']; - } - - /** - * Sets image_url - * - * @param string|null $image_url The default image for the ASIN in the Amazon catalog. - * - * @return self - */ - public function setImageUrl($image_url) - { - - if (!is_null($image_url) && (mb_strlen($image_url) < 1)) { - throw new \InvalidArgumentException('invalid length for $image_url when calling AsinMetadata., must be bigger than or equal to 1.'); - } - - $this->container['image_url'] = $image_url; - - return $this; - } - /** - * Gets content_reference_key_set - * - * @return string[]|null - */ - public function getContentReferenceKeySet() - { - return $this->container['content_reference_key_set']; - } - - /** - * Sets content_reference_key_set - * - * @param string[]|null $content_reference_key_set A set of content reference keys. - * - * @return self - */ - public function setContentReferenceKeySet($content_reference_key_set) - { - - - $this->container['content_reference_key_set'] = $content_reference_key_set; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ColorType.php b/lib/Model/AplusContentV20201101/ColorType.php deleted file mode 100644 index d7e7989a5..000000000 --- a/lib/Model/AplusContentV20201101/ColorType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentBadge.php b/lib/Model/AplusContentV20201101/ContentBadge.php deleted file mode 100644 index eb16401cb..000000000 --- a/lib/Model/AplusContentV20201101/ContentBadge.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentDocument.php b/lib/Model/AplusContentV20201101/ContentDocument.php deleted file mode 100644 index 7341f3844..000000000 --- a/lib/Model/AplusContentV20201101/ContentDocument.php +++ /dev/null @@ -1,329 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContentDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContentDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'content_type' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentType', - 'content_sub_type' => 'string', - 'locale' => 'string', - 'content_module_list' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentModule[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'content_type' => null, - 'content_sub_type' => null, - 'locale' => null, - 'content_module_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'content_type' => 'contentType', - 'content_sub_type' => 'contentSubType', - 'locale' => 'locale', - 'content_module_list' => 'contentModuleList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'content_type' => 'setContentType', - 'content_sub_type' => 'setContentSubType', - 'locale' => 'setLocale', - 'content_module_list' => 'setContentModuleList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'content_type' => 'getContentType', - 'content_sub_type' => 'getContentSubType', - 'locale' => 'getLocale', - 'content_module_list' => 'getContentModuleList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['content_type'] = $data['content_type'] ?? null; - $this->container['content_sub_type'] = $data['content_sub_type'] ?? null; - $this->container['locale'] = $data['locale'] ?? null; - $this->container['content_module_list'] = $data['content_module_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 200)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; - } - - if ((mb_strlen($this->container['name']) < 1)) { - $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; - } - - if ($this->container['content_type'] === null) { - $invalidProperties[] = "'content_type' can't be null"; - } - if ($this->container['locale'] === null) { - $invalidProperties[] = "'locale' can't be null"; - } - if ((mb_strlen($this->container['locale']) < 5)) { - $invalidProperties[] = "invalid value for 'locale', the character length must be bigger than or equal to 5."; - } - - if ($this->container['content_module_list'] === null) { - $invalidProperties[] = "'content_module_list' can't be null"; - } - if ((count($this->container['content_module_list']) > 100)) { - $invalidProperties[] = "invalid value for 'content_module_list', number of items must be less than or equal to 100."; - } - - if ((count($this->container['content_module_list']) < 1)) { - $invalidProperties[] = "invalid value for 'content_module_list', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The A+ Content document name. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 200)) { - throw new \InvalidArgumentException('invalid length for $name when calling ContentDocument., must be smaller than or equal to 200.'); - } - if ((mb_strlen($name) < 1)) { - throw new \InvalidArgumentException('invalid length for $name when calling ContentDocument., must be bigger than or equal to 1.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets content_type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentType - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentType $content_type content_type - * - * @return self - */ - public function setContentType($content_type) - { - $this->container['content_type'] = $content_type; - - return $this; - } - /** - * Gets content_sub_type - * - * @return string|null - */ - public function getContentSubType() - { - return $this->container['content_sub_type']; - } - - /** - * Sets content_sub_type - * - * @param string|null $content_sub_type The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. - * - * @return self - */ - public function setContentSubType($content_sub_type) - { - $this->container['content_sub_type'] = $content_sub_type; - - return $this; - } - /** - * Gets locale - * - * @return string - */ - public function getLocale() - { - return $this->container['locale']; - } - - /** - * Sets locale - * - * @param string $locale The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ - * - * @return self - */ - public function setLocale($locale) - { - - if ((mb_strlen($locale) < 5)) { - throw new \InvalidArgumentException('invalid length for $locale when calling ContentDocument., must be bigger than or equal to 5.'); - } - - $this->container['locale'] = $locale; - - return $this; - } - /** - * Gets content_module_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentModule[] - */ - public function getContentModuleList() - { - return $this->container['content_module_list']; - } - - /** - * Sets content_module_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentModule[] $content_module_list A list of A+ Content modules. - * - * @return self - */ - public function setContentModuleList($content_module_list) - { - - if ((count($content_module_list) > 100)) { - throw new \InvalidArgumentException('invalid value for $content_module_list when calling ContentDocument., number of items must be less than or equal to 100.'); - } - if ((count($content_module_list) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_module_list when calling ContentDocument., number of items must be greater than or equal to 1.'); - } - $this->container['content_module_list'] = $content_module_list; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentMetadata.php b/lib/Model/AplusContentV20201101/ContentMetadata.php deleted file mode 100644 index 70c8c0672..000000000 --- a/lib/Model/AplusContentV20201101/ContentMetadata.php +++ /dev/null @@ -1,319 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContentMetadata extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContentMetadata'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'marketplace_id' => 'string', - 'status' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentStatus', - 'badge_set' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentBadge[]', - 'update_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'marketplace_id' => null, - 'status' => null, - 'badge_set' => null, - 'update_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'marketplace_id' => 'marketplaceId', - 'status' => 'status', - 'badge_set' => 'badgeSet', - 'update_time' => 'updateTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'marketplace_id' => 'setMarketplaceId', - 'status' => 'setStatus', - 'badge_set' => 'setBadgeSet', - 'update_time' => 'setUpdateTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'marketplace_id' => 'getMarketplaceId', - 'status' => 'getStatus', - 'badge_set' => 'getBadgeSet', - 'update_time' => 'getUpdateTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['badge_set'] = $data['badge_set'] ?? null; - $this->container['update_time'] = $data['update_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 200)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; - } - - if ((mb_strlen($this->container['name']) < 1)) { - $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; - } - - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['badge_set'] === null) { - $invalidProperties[] = "'badge_set' can't be null"; - } - if ($this->container['update_time'] === null) { - $invalidProperties[] = "'update_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The A+ Content document name. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 200)) { - throw new \InvalidArgumentException('invalid length for $name when calling ContentMetadata., must be smaller than or equal to 200.'); - } - if ((mb_strlen($name) < 1)) { - throw new \InvalidArgumentException('invalid length for $name when calling ContentMetadata., must be bigger than or equal to 1.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling ContentMetadata., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets badge_set - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentBadge[] - */ - public function getBadgeSet() - { - return $this->container['badge_set']; - } - - /** - * Sets badge_set - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentBadge[] $badge_set The set of content badges. - * - * @return self - */ - public function setBadgeSet($badge_set) - { - - - $this->container['badge_set'] = $badge_set; - - return $this; - } - /** - * Gets update_time - * - * @return string - */ - public function getUpdateTime() - { - return $this->container['update_time']; - } - - /** - * Sets update_time - * - * @param string $update_time The approximate age of the A+ Content document and metadata in ISO 8601 format. - * - * @return self - */ - public function setUpdateTime($update_time) - { - $this->container['update_time'] = $update_time; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentMetadataRecord.php b/lib/Model/AplusContentV20201101/ContentMetadataRecord.php deleted file mode 100644 index 0dce89b6c..000000000 --- a/lib/Model/AplusContentV20201101/ContentMetadataRecord.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContentMetadataRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContentMetadataRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_reference_key' => 'string', - 'content_metadata' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_reference_key' => null, - 'content_metadata' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_reference_key' => 'contentReferenceKey', - 'content_metadata' => 'contentMetadata' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_reference_key' => 'setContentReferenceKey', - 'content_metadata' => 'setContentMetadata' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_reference_key' => 'getContentReferenceKey', - 'content_metadata' => 'getContentMetadata' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_reference_key'] = $data['content_reference_key'] ?? null; - $this->container['content_metadata'] = $data['content_metadata'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_reference_key'] === null) { - $invalidProperties[] = "'content_reference_key' can't be null"; - } - if ((mb_strlen($this->container['content_reference_key']) < 1)) { - $invalidProperties[] = "invalid value for 'content_reference_key', the character length must be bigger than or equal to 1."; - } - - if ($this->container['content_metadata'] === null) { - $invalidProperties[] = "'content_metadata' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_reference_key - * - * @return string - */ - public function getContentReferenceKey() - { - return $this->container['content_reference_key']; - } - - /** - * Sets content_reference_key - * - * @param string $content_reference_key A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. - * - * @return self - */ - public function setContentReferenceKey($content_reference_key) - { - - if ((mb_strlen($content_reference_key) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_reference_key when calling ContentMetadataRecord., must be bigger than or equal to 1.'); - } - - $this->container['content_reference_key'] = $content_reference_key; - - return $this; - } - /** - * Gets content_metadata - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata - */ - public function getContentMetadata() - { - return $this->container['content_metadata']; - } - - /** - * Sets content_metadata - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata $content_metadata content_metadata - * - * @return self - */ - public function setContentMetadata($content_metadata) - { - $this->container['content_metadata'] = $content_metadata; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentModule.php b/lib/Model/AplusContentV20201101/ContentModule.php deleted file mode 100644 index 68824970c..000000000 --- a/lib/Model/AplusContentV20201101/ContentModule.php +++ /dev/null @@ -1,600 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContentModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContentModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_module_type' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentModuleType', - 'standard_company_logo' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardCompanyLogoModule', - 'standard_comparison_table' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonTableModule', - 'standard_four_image_text' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextModule', - 'standard_four_image_text_quadrant' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextQuadrantModule', - 'standard_header_image_text' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderImageTextModule', - 'standard_image_sidebar' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageSidebarModule', - 'standard_image_text_overlay' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextOverlayModule', - 'standard_multiple_image_text' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardMultipleImageTextModule', - 'standard_product_description' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardProductDescriptionModule', - 'standard_single_image_highlights' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageHighlightsModule', - 'standard_single_image_specs_detail' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageSpecsDetailModule', - 'standard_single_side_image' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardSingleSideImageModule', - 'standard_tech_specs' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTechSpecsModule', - 'standard_text' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextModule', - 'standard_three_image_text' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardThreeImageTextModule' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_module_type' => null, - 'standard_company_logo' => null, - 'standard_comparison_table' => null, - 'standard_four_image_text' => null, - 'standard_four_image_text_quadrant' => null, - 'standard_header_image_text' => null, - 'standard_image_sidebar' => null, - 'standard_image_text_overlay' => null, - 'standard_multiple_image_text' => null, - 'standard_product_description' => null, - 'standard_single_image_highlights' => null, - 'standard_single_image_specs_detail' => null, - 'standard_single_side_image' => null, - 'standard_tech_specs' => null, - 'standard_text' => null, - 'standard_three_image_text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_module_type' => 'contentModuleType', - 'standard_company_logo' => 'standardCompanyLogo', - 'standard_comparison_table' => 'standardComparisonTable', - 'standard_four_image_text' => 'standardFourImageText', - 'standard_four_image_text_quadrant' => 'standardFourImageTextQuadrant', - 'standard_header_image_text' => 'standardHeaderImageText', - 'standard_image_sidebar' => 'standardImageSidebar', - 'standard_image_text_overlay' => 'standardImageTextOverlay', - 'standard_multiple_image_text' => 'standardMultipleImageText', - 'standard_product_description' => 'standardProductDescription', - 'standard_single_image_highlights' => 'standardSingleImageHighlights', - 'standard_single_image_specs_detail' => 'standardSingleImageSpecsDetail', - 'standard_single_side_image' => 'standardSingleSideImage', - 'standard_tech_specs' => 'standardTechSpecs', - 'standard_text' => 'standardText', - 'standard_three_image_text' => 'standardThreeImageText' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_module_type' => 'setContentModuleType', - 'standard_company_logo' => 'setStandardCompanyLogo', - 'standard_comparison_table' => 'setStandardComparisonTable', - 'standard_four_image_text' => 'setStandardFourImageText', - 'standard_four_image_text_quadrant' => 'setStandardFourImageTextQuadrant', - 'standard_header_image_text' => 'setStandardHeaderImageText', - 'standard_image_sidebar' => 'setStandardImageSidebar', - 'standard_image_text_overlay' => 'setStandardImageTextOverlay', - 'standard_multiple_image_text' => 'setStandardMultipleImageText', - 'standard_product_description' => 'setStandardProductDescription', - 'standard_single_image_highlights' => 'setStandardSingleImageHighlights', - 'standard_single_image_specs_detail' => 'setStandardSingleImageSpecsDetail', - 'standard_single_side_image' => 'setStandardSingleSideImage', - 'standard_tech_specs' => 'setStandardTechSpecs', - 'standard_text' => 'setStandardText', - 'standard_three_image_text' => 'setStandardThreeImageText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_module_type' => 'getContentModuleType', - 'standard_company_logo' => 'getStandardCompanyLogo', - 'standard_comparison_table' => 'getStandardComparisonTable', - 'standard_four_image_text' => 'getStandardFourImageText', - 'standard_four_image_text_quadrant' => 'getStandardFourImageTextQuadrant', - 'standard_header_image_text' => 'getStandardHeaderImageText', - 'standard_image_sidebar' => 'getStandardImageSidebar', - 'standard_image_text_overlay' => 'getStandardImageTextOverlay', - 'standard_multiple_image_text' => 'getStandardMultipleImageText', - 'standard_product_description' => 'getStandardProductDescription', - 'standard_single_image_highlights' => 'getStandardSingleImageHighlights', - 'standard_single_image_specs_detail' => 'getStandardSingleImageSpecsDetail', - 'standard_single_side_image' => 'getStandardSingleSideImage', - 'standard_tech_specs' => 'getStandardTechSpecs', - 'standard_text' => 'getStandardText', - 'standard_three_image_text' => 'getStandardThreeImageText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_module_type'] = $data['content_module_type'] ?? null; - $this->container['standard_company_logo'] = $data['standard_company_logo'] ?? null; - $this->container['standard_comparison_table'] = $data['standard_comparison_table'] ?? null; - $this->container['standard_four_image_text'] = $data['standard_four_image_text'] ?? null; - $this->container['standard_four_image_text_quadrant'] = $data['standard_four_image_text_quadrant'] ?? null; - $this->container['standard_header_image_text'] = $data['standard_header_image_text'] ?? null; - $this->container['standard_image_sidebar'] = $data['standard_image_sidebar'] ?? null; - $this->container['standard_image_text_overlay'] = $data['standard_image_text_overlay'] ?? null; - $this->container['standard_multiple_image_text'] = $data['standard_multiple_image_text'] ?? null; - $this->container['standard_product_description'] = $data['standard_product_description'] ?? null; - $this->container['standard_single_image_highlights'] = $data['standard_single_image_highlights'] ?? null; - $this->container['standard_single_image_specs_detail'] = $data['standard_single_image_specs_detail'] ?? null; - $this->container['standard_single_side_image'] = $data['standard_single_side_image'] ?? null; - $this->container['standard_tech_specs'] = $data['standard_tech_specs'] ?? null; - $this->container['standard_text'] = $data['standard_text'] ?? null; - $this->container['standard_three_image_text'] = $data['standard_three_image_text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_module_type'] === null) { - $invalidProperties[] = "'content_module_type' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_module_type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentModuleType - */ - public function getContentModuleType() - { - return $this->container['content_module_type']; - } - - /** - * Sets content_module_type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentModuleType $content_module_type content_module_type - * - * @return self - */ - public function setContentModuleType($content_module_type) - { - $this->container['content_module_type'] = $content_module_type; - - return $this; - } - /** - * Gets standard_company_logo - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardCompanyLogoModule|null - */ - public function getStandardCompanyLogo() - { - return $this->container['standard_company_logo']; - } - - /** - * Sets standard_company_logo - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardCompanyLogoModule|null $standard_company_logo standard_company_logo - * - * @return self - */ - public function setStandardCompanyLogo($standard_company_logo) - { - $this->container['standard_company_logo'] = $standard_company_logo; - - return $this; - } - /** - * Gets standard_comparison_table - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonTableModule|null - */ - public function getStandardComparisonTable() - { - return $this->container['standard_comparison_table']; - } - - /** - * Sets standard_comparison_table - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonTableModule|null $standard_comparison_table standard_comparison_table - * - * @return self - */ - public function setStandardComparisonTable($standard_comparison_table) - { - $this->container['standard_comparison_table'] = $standard_comparison_table; - - return $this; - } - /** - * Gets standard_four_image_text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextModule|null - */ - public function getStandardFourImageText() - { - return $this->container['standard_four_image_text']; - } - - /** - * Sets standard_four_image_text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextModule|null $standard_four_image_text standard_four_image_text - * - * @return self - */ - public function setStandardFourImageText($standard_four_image_text) - { - $this->container['standard_four_image_text'] = $standard_four_image_text; - - return $this; - } - /** - * Gets standard_four_image_text_quadrant - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextQuadrantModule|null - */ - public function getStandardFourImageTextQuadrant() - { - return $this->container['standard_four_image_text_quadrant']; - } - - /** - * Sets standard_four_image_text_quadrant - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardFourImageTextQuadrantModule|null $standard_four_image_text_quadrant standard_four_image_text_quadrant - * - * @return self - */ - public function setStandardFourImageTextQuadrant($standard_four_image_text_quadrant) - { - $this->container['standard_four_image_text_quadrant'] = $standard_four_image_text_quadrant; - - return $this; - } - /** - * Gets standard_header_image_text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderImageTextModule|null - */ - public function getStandardHeaderImageText() - { - return $this->container['standard_header_image_text']; - } - - /** - * Sets standard_header_image_text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderImageTextModule|null $standard_header_image_text standard_header_image_text - * - * @return self - */ - public function setStandardHeaderImageText($standard_header_image_text) - { - $this->container['standard_header_image_text'] = $standard_header_image_text; - - return $this; - } - /** - * Gets standard_image_sidebar - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageSidebarModule|null - */ - public function getStandardImageSidebar() - { - return $this->container['standard_image_sidebar']; - } - - /** - * Sets standard_image_sidebar - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageSidebarModule|null $standard_image_sidebar standard_image_sidebar - * - * @return self - */ - public function setStandardImageSidebar($standard_image_sidebar) - { - $this->container['standard_image_sidebar'] = $standard_image_sidebar; - - return $this; - } - /** - * Gets standard_image_text_overlay - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextOverlayModule|null - */ - public function getStandardImageTextOverlay() - { - return $this->container['standard_image_text_overlay']; - } - - /** - * Sets standard_image_text_overlay - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextOverlayModule|null $standard_image_text_overlay standard_image_text_overlay - * - * @return self - */ - public function setStandardImageTextOverlay($standard_image_text_overlay) - { - $this->container['standard_image_text_overlay'] = $standard_image_text_overlay; - - return $this; - } - /** - * Gets standard_multiple_image_text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardMultipleImageTextModule|null - */ - public function getStandardMultipleImageText() - { - return $this->container['standard_multiple_image_text']; - } - - /** - * Sets standard_multiple_image_text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardMultipleImageTextModule|null $standard_multiple_image_text standard_multiple_image_text - * - * @return self - */ - public function setStandardMultipleImageText($standard_multiple_image_text) - { - $this->container['standard_multiple_image_text'] = $standard_multiple_image_text; - - return $this; - } - /** - * Gets standard_product_description - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardProductDescriptionModule|null - */ - public function getStandardProductDescription() - { - return $this->container['standard_product_description']; - } - - /** - * Sets standard_product_description - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardProductDescriptionModule|null $standard_product_description standard_product_description - * - * @return self - */ - public function setStandardProductDescription($standard_product_description) - { - $this->container['standard_product_description'] = $standard_product_description; - - return $this; - } - /** - * Gets standard_single_image_highlights - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageHighlightsModule|null - */ - public function getStandardSingleImageHighlights() - { - return $this->container['standard_single_image_highlights']; - } - - /** - * Sets standard_single_image_highlights - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageHighlightsModule|null $standard_single_image_highlights standard_single_image_highlights - * - * @return self - */ - public function setStandardSingleImageHighlights($standard_single_image_highlights) - { - $this->container['standard_single_image_highlights'] = $standard_single_image_highlights; - - return $this; - } - /** - * Gets standard_single_image_specs_detail - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageSpecsDetailModule|null - */ - public function getStandardSingleImageSpecsDetail() - { - return $this->container['standard_single_image_specs_detail']; - } - - /** - * Sets standard_single_image_specs_detail - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleImageSpecsDetailModule|null $standard_single_image_specs_detail standard_single_image_specs_detail - * - * @return self - */ - public function setStandardSingleImageSpecsDetail($standard_single_image_specs_detail) - { - $this->container['standard_single_image_specs_detail'] = $standard_single_image_specs_detail; - - return $this; - } - /** - * Gets standard_single_side_image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleSideImageModule|null - */ - public function getStandardSingleSideImage() - { - return $this->container['standard_single_side_image']; - } - - /** - * Sets standard_single_side_image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardSingleSideImageModule|null $standard_single_side_image standard_single_side_image - * - * @return self - */ - public function setStandardSingleSideImage($standard_single_side_image) - { - $this->container['standard_single_side_image'] = $standard_single_side_image; - - return $this; - } - /** - * Gets standard_tech_specs - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTechSpecsModule|null - */ - public function getStandardTechSpecs() - { - return $this->container['standard_tech_specs']; - } - - /** - * Sets standard_tech_specs - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTechSpecsModule|null $standard_tech_specs standard_tech_specs - * - * @return self - */ - public function setStandardTechSpecs($standard_tech_specs) - { - $this->container['standard_tech_specs'] = $standard_tech_specs; - - return $this; - } - /** - * Gets standard_text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextModule|null - */ - public function getStandardText() - { - return $this->container['standard_text']; - } - - /** - * Sets standard_text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextModule|null $standard_text standard_text - * - * @return self - */ - public function setStandardText($standard_text) - { - $this->container['standard_text'] = $standard_text; - - return $this; - } - /** - * Gets standard_three_image_text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardThreeImageTextModule|null - */ - public function getStandardThreeImageText() - { - return $this->container['standard_three_image_text']; - } - - /** - * Sets standard_three_image_text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardThreeImageTextModule|null $standard_three_image_text standard_three_image_text - * - * @return self - */ - public function setStandardThreeImageText($standard_three_image_text) - { - $this->container['standard_three_image_text'] = $standard_three_image_text; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentModuleType.php b/lib/Model/AplusContentV20201101/ContentModuleType.php deleted file mode 100644 index a1e077ede..000000000 --- a/lib/Model/AplusContentV20201101/ContentModuleType.php +++ /dev/null @@ -1,113 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentRecord.php b/lib/Model/AplusContentV20201101/ContentRecord.php deleted file mode 100644 index c20553e06..000000000 --- a/lib/Model/AplusContentV20201101/ContentRecord.php +++ /dev/null @@ -1,232 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContentRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContentRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_reference_key' => 'string', - 'content_metadata' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata', - 'content_document' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentDocument' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_reference_key' => null, - 'content_metadata' => null, - 'content_document' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_reference_key' => 'contentReferenceKey', - 'content_metadata' => 'contentMetadata', - 'content_document' => 'contentDocument' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_reference_key' => 'setContentReferenceKey', - 'content_metadata' => 'setContentMetadata', - 'content_document' => 'setContentDocument' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_reference_key' => 'getContentReferenceKey', - 'content_metadata' => 'getContentMetadata', - 'content_document' => 'getContentDocument' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_reference_key'] = $data['content_reference_key'] ?? null; - $this->container['content_metadata'] = $data['content_metadata'] ?? null; - $this->container['content_document'] = $data['content_document'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_reference_key'] === null) { - $invalidProperties[] = "'content_reference_key' can't be null"; - } - if ((mb_strlen($this->container['content_reference_key']) < 1)) { - $invalidProperties[] = "invalid value for 'content_reference_key', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets content_reference_key - * - * @return string - */ - public function getContentReferenceKey() - { - return $this->container['content_reference_key']; - } - - /** - * Sets content_reference_key - * - * @param string $content_reference_key A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. - * - * @return self - */ - public function setContentReferenceKey($content_reference_key) - { - - if ((mb_strlen($content_reference_key) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_reference_key when calling ContentRecord., must be bigger than or equal to 1.'); - } - - $this->container['content_reference_key'] = $content_reference_key; - - return $this; - } - /** - * Gets content_metadata - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata|null - */ - public function getContentMetadata() - { - return $this->container['content_metadata']; - } - - /** - * Sets content_metadata - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadata|null $content_metadata content_metadata - * - * @return self - */ - public function setContentMetadata($content_metadata) - { - $this->container['content_metadata'] = $content_metadata; - - return $this; - } - /** - * Gets content_document - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentDocument|null - */ - public function getContentDocument() - { - return $this->container['content_document']; - } - - /** - * Sets content_document - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentDocument|null $content_document content_document - * - * @return self - */ - public function setContentDocument($content_document) - { - $this->container['content_document'] = $content_document; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentStatus.php b/lib/Model/AplusContentV20201101/ContentStatus.php deleted file mode 100644 index 0d7af63ac..000000000 --- a/lib/Model/AplusContentV20201101/ContentStatus.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ContentType.php b/lib/Model/AplusContentV20201101/ContentType.php deleted file mode 100644 index 954e12557..000000000 --- a/lib/Model/AplusContentV20201101/ContentType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/Decorator.php b/lib/Model/AplusContentV20201101/Decorator.php deleted file mode 100644 index eadd94ab4..000000000 --- a/lib/Model/AplusContentV20201101/Decorator.php +++ /dev/null @@ -1,297 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Decorator extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Decorator'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => '\SellingPartnerApi\Model\AplusContentV20201101\DecoratorType', - 'offset' => 'int', - 'length' => 'int', - 'depth' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'offset' => null, - 'length' => null, - 'depth' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'offset' => 'offset', - 'length' => 'length', - 'depth' => 'depth' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'offset' => 'setOffset', - 'length' => 'setLength', - 'depth' => 'setDepth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'offset' => 'getOffset', - 'length' => 'getLength', - 'depth' => 'getDepth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['offset'] = $data['offset'] ?? null; - $this->container['length'] = $data['length'] ?? null; - $this->container['depth'] = $data['depth'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['offset']) && ($this->container['offset'] > 10000)) { - $invalidProperties[] = "invalid value for 'offset', must be smaller than or equal to 10000."; - } - - if (!is_null($this->container['offset']) && ($this->container['offset'] < 0)) { - $invalidProperties[] = "invalid value for 'offset', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['length']) && ($this->container['length'] > 10000)) { - $invalidProperties[] = "invalid value for 'length', must be smaller than or equal to 10000."; - } - - if (!is_null($this->container['length']) && ($this->container['length'] < 0)) { - $invalidProperties[] = "invalid value for 'length', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['depth']) && ($this->container['depth'] > 100)) { - $invalidProperties[] = "invalid value for 'depth', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['depth']) && ($this->container['depth'] < 0)) { - $invalidProperties[] = "invalid value for 'depth', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\DecoratorType|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\DecoratorType|null $type type - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - /** - * Gets offset - * - * @return int|null - */ - public function getOffset() - { - return $this->container['offset']; - } - - /** - * Sets offset - * - * @param int|null $offset The starting character of this decorator within the content string. Use zero for the first character. - * - * @return self - */ - public function setOffset($offset) - { - - if (!is_null($offset) && ($offset > 10000)) { - throw new \InvalidArgumentException('invalid value for $offset when calling Decorator., must be smaller than or equal to 10000.'); - } - if (!is_null($offset) && ($offset < 0)) { - throw new \InvalidArgumentException('invalid value for $offset when calling Decorator., must be bigger than or equal to 0.'); - } - - $this->container['offset'] = $offset; - - return $this; - } - /** - * Gets length - * - * @return int|null - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param int|null $length The number of content characters to alter with this decorator. Decorators such as line breaks can have zero length and fit between characters. - * - * @return self - */ - public function setLength($length) - { - - if (!is_null($length) && ($length > 10000)) { - throw new \InvalidArgumentException('invalid value for $length when calling Decorator., must be smaller than or equal to 10000.'); - } - if (!is_null($length) && ($length < 0)) { - throw new \InvalidArgumentException('invalid value for $length when calling Decorator., must be bigger than or equal to 0.'); - } - - $this->container['length'] = $length; - - return $this; - } - /** - * Gets depth - * - * @return int|null - */ - public function getDepth() - { - return $this->container['depth']; - } - - /** - * Sets depth - * - * @param int|null $depth The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths. - * - * @return self - */ - public function setDepth($depth) - { - - if (!is_null($depth) && ($depth > 100)) { - throw new \InvalidArgumentException('invalid value for $depth when calling Decorator., must be smaller than or equal to 100.'); - } - if (!is_null($depth) && ($depth < 0)) { - throw new \InvalidArgumentException('invalid value for $depth when calling Decorator., must be bigger than or equal to 0.'); - } - - $this->container['depth'] = $depth; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/DecoratorType.php b/lib/Model/AplusContentV20201101/DecoratorType.php deleted file mode 100644 index f11421834..000000000 --- a/lib/Model/AplusContentV20201101/DecoratorType.php +++ /dev/null @@ -1,99 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/Error.php b/lib/Model/AplusContentV20201101/Error.php deleted file mode 100644 index c9e2202f2..000000000 --- a/lib/Model/AplusContentV20201101/Error.php +++ /dev/null @@ -1,235 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ((mb_strlen($this->container['code']) < 1)) { - $invalidProperties[] = "invalid value for 'code', the character length must be bigger than or equal to 1."; - } - - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code The code that identifies the type of error condition. - * - * @return self - */ - public function setCode($code) - { - - if ((mb_strlen($code) < 1)) { - throw new \InvalidArgumentException('invalid length for $code when calling Error., must be bigger than or equal to 1.'); - } - - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable description of the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information, if available, to clarify the error condition. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ErrorList.php b/lib/Model/AplusContentV20201101/ErrorList.php deleted file mode 100644 index 0edf8d1d0..000000000 --- a/lib/Model/AplusContentV20201101/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[] $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/GetContentDocumentResponse.php b/lib/Model/AplusContentV20201101/GetContentDocumentResponse.php deleted file mode 100644 index ca987a82d..000000000 --- a/lib/Model/AplusContentV20201101/GetContentDocumentResponse.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetContentDocumentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetContentDocumentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'content_record' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentRecord' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'content_record' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'content_record' => 'contentRecord' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'content_record' => 'setContentRecord' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'content_record' => 'getContentRecord' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['content_record'] = $data['content_record'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_record'] === null) { - $invalidProperties[] = "'content_record' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets content_record - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentRecord - */ - public function getContentRecord() - { - return $this->container['content_record']; - } - - /** - * Sets content_record - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentRecord $content_record content_record - * - * @return self - */ - public function setContentRecord($content_record) - { - $this->container['content_record'] = $content_record; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.php b/lib/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.php deleted file mode 100644 index cd2dc0552..000000000 --- a/lib/Model/AplusContentV20201101/GetContentDocumentResponseAllOf.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetContentDocumentResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetContentDocumentResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_record' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentRecord' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_record' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_record' => 'contentRecord' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_record' => 'setContentRecord' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_record' => 'getContentRecord' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_record'] = $data['content_record'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_record'] === null) { - $invalidProperties[] = "'content_record' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_record - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentRecord - */ - public function getContentRecord() - { - return $this->container['content_record']; - } - - /** - * Sets content_record - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentRecord $content_record content_record - * - * @return self - */ - public function setContentRecord($content_record) - { - $this->container['content_record'] = $content_record; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ImageComponent.php b/lib/Model/AplusContentV20201101/ImageComponent.php deleted file mode 100644 index 605867ae4..000000000 --- a/lib/Model/AplusContentV20201101/ImageComponent.php +++ /dev/null @@ -1,246 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImageComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImageComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'upload_destination_id' => 'string', - 'image_crop_specification' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageCropSpecification', - 'alt_text' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'upload_destination_id' => null, - 'image_crop_specification' => null, - 'alt_text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'upload_destination_id' => 'uploadDestinationId', - 'image_crop_specification' => 'imageCropSpecification', - 'alt_text' => 'altText' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'upload_destination_id' => 'setUploadDestinationId', - 'image_crop_specification' => 'setImageCropSpecification', - 'alt_text' => 'setAltText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'upload_destination_id' => 'getUploadDestinationId', - 'image_crop_specification' => 'getImageCropSpecification', - 'alt_text' => 'getAltText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['upload_destination_id'] = $data['upload_destination_id'] ?? null; - $this->container['image_crop_specification'] = $data['image_crop_specification'] ?? null; - $this->container['alt_text'] = $data['alt_text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['upload_destination_id'] === null) { - $invalidProperties[] = "'upload_destination_id' can't be null"; - } - if ((mb_strlen($this->container['upload_destination_id']) < 1)) { - $invalidProperties[] = "invalid value for 'upload_destination_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['image_crop_specification'] === null) { - $invalidProperties[] = "'image_crop_specification' can't be null"; - } - if ($this->container['alt_text'] === null) { - $invalidProperties[] = "'alt_text' can't be null"; - } - if ((mb_strlen($this->container['alt_text']) > 200)) { - $invalidProperties[] = "invalid value for 'alt_text', the character length must be smaller than or equal to 200."; - } - - return $invalidProperties; - } - - - /** - * Gets upload_destination_id - * - * @return string - */ - public function getUploadDestinationId() - { - return $this->container['upload_destination_id']; - } - - /** - * Sets upload_destination_id - * - * @param string $upload_destination_id This identifier is provided by the Selling Partner API for Uploads. - * - * @return self - */ - public function setUploadDestinationId($upload_destination_id) - { - - if ((mb_strlen($upload_destination_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $upload_destination_id when calling ImageComponent., must be bigger than or equal to 1.'); - } - - $this->container['upload_destination_id'] = $upload_destination_id; - - return $this; - } - /** - * Gets image_crop_specification - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageCropSpecification - */ - public function getImageCropSpecification() - { - return $this->container['image_crop_specification']; - } - - /** - * Sets image_crop_specification - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageCropSpecification $image_crop_specification image_crop_specification - * - * @return self - */ - public function setImageCropSpecification($image_crop_specification) - { - $this->container['image_crop_specification'] = $image_crop_specification; - - return $this; - } - /** - * Gets alt_text - * - * @return string - */ - public function getAltText() - { - return $this->container['alt_text']; - } - - /** - * Sets alt_text - * - * @param string $alt_text The alternative text for the image. - * - * @return self - */ - public function setAltText($alt_text) - { - if ((mb_strlen($alt_text) > 200)) { - throw new \InvalidArgumentException('invalid length for $alt_text when calling ImageComponent., must be smaller than or equal to 200.'); - } - - $this->container['alt_text'] = $alt_text; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ImageCropSpecification.php b/lib/Model/AplusContentV20201101/ImageCropSpecification.php deleted file mode 100644 index 1e2818701..000000000 --- a/lib/Model/AplusContentV20201101/ImageCropSpecification.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImageCropSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImageCropSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'size' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageDimensions', - 'offset' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageOffsets' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'size' => null, - 'offset' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'size' => 'size', - 'offset' => 'offset' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'size' => 'setSize', - 'offset' => 'setOffset' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'size' => 'getSize', - 'offset' => 'getOffset' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['size'] = $data['size'] ?? null; - $this->container['offset'] = $data['offset'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['size'] === null) { - $invalidProperties[] = "'size' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets size - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageDimensions - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageDimensions $size size - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets offset - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageOffsets|null - */ - public function getOffset() - { - return $this->container['offset']; - } - - /** - * Sets offset - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageOffsets|null $offset offset - * - * @return self - */ - public function setOffset($offset) - { - $this->container['offset'] = $offset; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ImageDimensions.php b/lib/Model/AplusContentV20201101/ImageDimensions.php deleted file mode 100644 index adc177d5e..000000000 --- a/lib/Model/AplusContentV20201101/ImageDimensions.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImageDimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImageDimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'width' => '\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits', - 'height' => '\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'width' => null, - 'height' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'width' => 'width', - 'height' => 'height' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'width' => 'setWidth', - 'height' => 'setHeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'width' => 'getWidth', - 'height' => 'getHeight' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets width - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ImageOffsets.php b/lib/Model/AplusContentV20201101/ImageOffsets.php deleted file mode 100644 index 8aebc0c21..000000000 --- a/lib/Model/AplusContentV20201101/ImageOffsets.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImageOffsets extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImageOffsets'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'x' => '\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits', - 'y' => '\SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'x' => null, - 'y' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'x' => 'x', - 'y' => 'y' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'x' => 'setX', - 'y' => 'setY' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'x' => 'getX', - 'y' => 'getY' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['x'] = $data['x'] ?? null; - $this->container['y'] = $data['y'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['x'] === null) { - $invalidProperties[] = "'x' can't be null"; - } - if ($this->container['y'] === null) { - $invalidProperties[] = "'y' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets x - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits - */ - public function getX() - { - return $this->container['x']; - } - - /** - * Sets x - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits $x x - * - * @return self - */ - public function setX($x) - { - $this->container['x'] = $x; - - return $this; - } - /** - * Gets y - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits - */ - public function getY() - { - return $this->container['y']; - } - - /** - * Sets y - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\IntegerWithUnits $y y - * - * @return self - */ - public function setY($y) - { - $this->container['y'] = $y; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/IntegerWithUnits.php b/lib/Model/AplusContentV20201101/IntegerWithUnits.php deleted file mode 100644 index f0178d448..000000000 --- a/lib/Model/AplusContentV20201101/IntegerWithUnits.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IntegerWithUnits extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IntegerWithUnits'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'int', - 'units' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'units' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'units' => 'units' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'units' => 'setUnits' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'units' => 'getUnits' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['units'] = $data['units'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['units'] === null) { - $invalidProperties[] = "'units' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets value - * - * @return int - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param int $value The dimension value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets units - * - * @return string - */ - public function getUnits() - { - return $this->container['units']; - } - - /** - * Sets units - * - * @param string $units The unit of measurement. - * - * @return self - */ - public function setUnits($units) - { - $this->container['units'] = $units; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.php b/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.php deleted file mode 100644 index 353edeeca..000000000 --- a/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponse.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListContentDocumentAsinRelationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListContentDocumentAsinRelationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'next_page_token' => 'string', - 'asin_metadata_set' => '\SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'next_page_token' => null, - 'asin_metadata_set' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'next_page_token' => 'nextPageToken', - 'asin_metadata_set' => 'asinMetadataSet' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'next_page_token' => 'setNextPageToken', - 'asin_metadata_set' => 'setAsinMetadataSet' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'next_page_token' => 'getNextPageToken', - 'asin_metadata_set' => 'getAsinMetadataSet' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - $this->container['asin_metadata_set'] = $data['asin_metadata_set'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['next_page_token']) && (mb_strlen($this->container['next_page_token']) < 1)) { - $invalidProperties[] = "invalid value for 'next_page_token', the character length must be bigger than or equal to 1."; - } - - if ($this->container['asin_metadata_set'] === null) { - $invalidProperties[] = "'asin_metadata_set' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - - if (!is_null($next_page_token) && (mb_strlen($next_page_token) < 1)) { - throw new \InvalidArgumentException('invalid length for $next_page_token when calling ListContentDocumentAsinRelationsResponse., must be bigger than or equal to 1.'); - } - - $this->container['next_page_token'] = $next_page_token; - - return $this; - } - /** - * Gets asin_metadata_set - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[] - */ - public function getAsinMetadataSet() - { - return $this->container['asin_metadata_set']; - } - - /** - * Sets asin_metadata_set - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[] $asin_metadata_set The set of ASIN metadata. - * - * @return self - */ - public function setAsinMetadataSet($asin_metadata_set) - { - - - $this->container['asin_metadata_set'] = $asin_metadata_set; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.php b/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.php deleted file mode 100644 index 7feeecaf2..000000000 --- a/lib/Model/AplusContentV20201101/ListContentDocumentAsinRelationsResponseAllOf.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListContentDocumentAsinRelationsResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListContentDocumentAsinRelationsResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin_metadata_set' => '\SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin_metadata_set' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin_metadata_set' => 'asinMetadataSet' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin_metadata_set' => 'setAsinMetadataSet' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin_metadata_set' => 'getAsinMetadataSet' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin_metadata_set'] = $data['asin_metadata_set'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin_metadata_set'] === null) { - $invalidProperties[] = "'asin_metadata_set' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin_metadata_set - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[] - */ - public function getAsinMetadataSet() - { - return $this->container['asin_metadata_set']; - } - - /** - * Sets asin_metadata_set - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\AsinMetadata[] $asin_metadata_set The set of ASIN metadata. - * - * @return self - */ - public function setAsinMetadataSet($asin_metadata_set) - { - - - $this->container['asin_metadata_set'] = $asin_metadata_set; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ParagraphComponent.php b/lib/Model/AplusContentV20201101/ParagraphComponent.php deleted file mode 100644 index 0198dd6d2..000000000 --- a/lib/Model/AplusContentV20201101/ParagraphComponent.php +++ /dev/null @@ -1,180 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ParagraphComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ParagraphComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text_list' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text_list' => 'textList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text_list' => 'setTextList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text_list' => 'getTextList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text_list'] = $data['text_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['text_list'] === null) { - $invalidProperties[] = "'text_list' can't be null"; - } - if ((count($this->container['text_list']) > 100)) { - $invalidProperties[] = "invalid value for 'text_list', number of items must be less than or equal to 100."; - } - - if ((count($this->container['text_list']) < 1)) { - $invalidProperties[] = "invalid value for 'text_list', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent[] - */ - public function getTextList() - { - return $this->container['text_list']; - } - - /** - * Sets text_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent[] $text_list text_list - * - * @return self - */ - public function setTextList($text_list) - { - - if ((count($text_list) > 100)) { - throw new \InvalidArgumentException('invalid value for $text_list when calling ParagraphComponent., number of items must be less than or equal to 100.'); - } - if ((count($text_list) < 1)) { - throw new \InvalidArgumentException('invalid length for $text_list when calling ParagraphComponent., number of items must be greater than or equal to 1.'); - } - $this->container['text_list'] = $text_list; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PlainTextItem.php b/lib/Model/AplusContentV20201101/PlainTextItem.php deleted file mode 100644 index f707f89bf..000000000 --- a/lib/Model/AplusContentV20201101/PlainTextItem.php +++ /dev/null @@ -1,221 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PlainTextItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PlainTextItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'position' => 'int', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'position' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'position' => 'position', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'position' => 'setPosition', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'position' => 'getPosition', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['position'] = $data['position'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['position'] === null) { - $invalidProperties[] = "'position' can't be null"; - } - if (($this->container['position'] > 100)) { - $invalidProperties[] = "invalid value for 'position', must be smaller than or equal to 100."; - } - - if (($this->container['position'] < 1)) { - $invalidProperties[] = "invalid value for 'position', must be bigger than or equal to 1."; - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ((mb_strlen($this->container['value']) > 250)) { - $invalidProperties[] = "invalid value for 'value', the character length must be smaller than or equal to 250."; - } - - return $invalidProperties; - } - - - /** - * Gets position - * - * @return int - */ - public function getPosition() - { - return $this->container['position']; - } - - /** - * Sets position - * - * @param int $position The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. - * - * @return self - */ - public function setPosition($position) - { - - if (($position > 100)) { - throw new \InvalidArgumentException('invalid value for $position when calling PlainTextItem., must be smaller than or equal to 100.'); - } - if (($position < 1)) { - throw new \InvalidArgumentException('invalid value for $position when calling PlainTextItem., must be bigger than or equal to 1.'); - } - - $this->container['position'] = $position; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value The actual plain text. - * - * @return self - */ - public function setValue($value) - { - if ((mb_strlen($value) > 250)) { - throw new \InvalidArgumentException('invalid length for $value when calling PlainTextItem., must be smaller than or equal to 250.'); - } - - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PositionType.php b/lib/Model/AplusContentV20201101/PositionType.php deleted file mode 100644 index 5bfdc4bae..000000000 --- a/lib/Model/AplusContentV20201101/PositionType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.php b/lib/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.php deleted file mode 100644 index e86d800df..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentApprovalSubmissionResponse.php +++ /dev/null @@ -1,188 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentApprovalSubmissionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentApprovalSubmissionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.php b/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.php deleted file mode 100644 index 4a02aa625..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsRequest.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentAsinRelationsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentAsinRelationsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin_set' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin_set' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin_set' => 'asinSet' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin_set' => 'setAsinSet' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin_set' => 'getAsinSet' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin_set'] = $data['asin_set'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin_set'] === null) { - $invalidProperties[] = "'asin_set' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin_set - * - * @return string[] - */ - public function getAsinSet() - { - return $this->container['asin_set']; - } - - /** - * Sets asin_set - * - * @param string[] $asin_set The set of ASINs. - * - * @return self - */ - public function setAsinSet($asin_set) - { - - - $this->container['asin_set'] = $asin_set; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.php b/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.php deleted file mode 100644 index 98927735d..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentAsinRelationsResponse.php +++ /dev/null @@ -1,188 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentAsinRelationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentAsinRelationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentRequest.php b/lib/Model/AplusContentV20201101/PostContentDocumentRequest.php deleted file mode 100644 index 4528fc481..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentRequest.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_document' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentDocument' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_document' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_document' => 'contentDocument' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_document' => 'setContentDocument' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_document' => 'getContentDocument' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_document'] = $data['content_document'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_document'] === null) { - $invalidProperties[] = "'content_document' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_document - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentDocument - */ - public function getContentDocument() - { - return $this->container['content_document']; - } - - /** - * Sets content_document - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentDocument $content_document content_document - * - * @return self - */ - public function setContentDocument($content_document) - { - $this->container['content_document'] = $content_document; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentResponse.php b/lib/Model/AplusContentV20201101/PostContentDocumentResponse.php deleted file mode 100644 index a76c98b31..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentResponse.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'content_reference_key' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'content_reference_key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'content_reference_key' => 'contentReferenceKey' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'content_reference_key' => 'setContentReferenceKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'content_reference_key' => 'getContentReferenceKey' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['content_reference_key'] = $data['content_reference_key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_reference_key'] === null) { - $invalidProperties[] = "'content_reference_key' can't be null"; - } - if ((mb_strlen($this->container['content_reference_key']) < 1)) { - $invalidProperties[] = "invalid value for 'content_reference_key', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets content_reference_key - * - * @return string - */ - public function getContentReferenceKey() - { - return $this->container['content_reference_key']; - } - - /** - * Sets content_reference_key - * - * @param string $content_reference_key A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. - * - * @return self - */ - public function setContentReferenceKey($content_reference_key) - { - - if ((mb_strlen($content_reference_key) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_reference_key when calling PostContentDocumentResponse., must be bigger than or equal to 1.'); - } - - $this->container['content_reference_key'] = $content_reference_key; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.php b/lib/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.php deleted file mode 100644 index 3edb09764..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentResponseAllOf.php +++ /dev/null @@ -1,173 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_reference_key' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_reference_key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_reference_key' => 'contentReferenceKey' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_reference_key' => 'setContentReferenceKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_reference_key' => 'getContentReferenceKey' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_reference_key'] = $data['content_reference_key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_reference_key'] === null) { - $invalidProperties[] = "'content_reference_key' can't be null"; - } - if ((mb_strlen($this->container['content_reference_key']) < 1)) { - $invalidProperties[] = "invalid value for 'content_reference_key', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets content_reference_key - * - * @return string - */ - public function getContentReferenceKey() - { - return $this->container['content_reference_key']; - } - - /** - * Sets content_reference_key - * - * @param string $content_reference_key A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. - * - * @return self - */ - public function setContentReferenceKey($content_reference_key) - { - - if ((mb_strlen($content_reference_key) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_reference_key when calling PostContentDocumentResponseAllOf., must be bigger than or equal to 1.'); - } - - $this->container['content_reference_key'] = $content_reference_key; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.php b/lib/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.php deleted file mode 100644 index dba38b2e3..000000000 --- a/lib/Model/AplusContentV20201101/PostContentDocumentSuspendSubmissionResponse.php +++ /dev/null @@ -1,188 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PostContentDocumentSuspendSubmissionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PostContentDocumentSuspendSubmissionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/PublishRecord.php b/lib/Model/AplusContentV20201101/PublishRecord.php deleted file mode 100644 index eea6c46f5..000000000 --- a/lib/Model/AplusContentV20201101/PublishRecord.php +++ /dev/null @@ -1,349 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PublishRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PublishRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'locale' => 'string', - 'asin' => 'string', - 'content_type' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentType', - 'content_sub_type' => 'string', - 'content_reference_key' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'locale' => null, - 'asin' => null, - 'content_type' => null, - 'content_sub_type' => null, - 'content_reference_key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'locale' => 'locale', - 'asin' => 'asin', - 'content_type' => 'contentType', - 'content_sub_type' => 'contentSubType', - 'content_reference_key' => 'contentReferenceKey' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'locale' => 'setLocale', - 'asin' => 'setAsin', - 'content_type' => 'setContentType', - 'content_sub_type' => 'setContentSubType', - 'content_reference_key' => 'setContentReferenceKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'locale' => 'getLocale', - 'asin' => 'getAsin', - 'content_type' => 'getContentType', - 'content_sub_type' => 'getContentSubType', - 'content_reference_key' => 'getContentReferenceKey' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['locale'] = $data['locale'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['content_type'] = $data['content_type'] ?? null; - $this->container['content_sub_type'] = $data['content_sub_type'] ?? null; - $this->container['content_reference_key'] = $data['content_reference_key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['locale'] === null) { - $invalidProperties[] = "'locale' can't be null"; - } - if ((mb_strlen($this->container['locale']) < 5)) { - $invalidProperties[] = "invalid value for 'locale', the character length must be bigger than or equal to 5."; - } - - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['content_type'] === null) { - $invalidProperties[] = "'content_type' can't be null"; - } - if ($this->container['content_reference_key'] === null) { - $invalidProperties[] = "'content_reference_key' can't be null"; - } - if ((mb_strlen($this->container['content_reference_key']) < 1)) { - $invalidProperties[] = "invalid value for 'content_reference_key', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The identifier for the marketplace where the A+ Content is published. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling PublishRecord., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets locale - * - * @return string - */ - public function getLocale() - { - return $this->container['locale']; - } - - /** - * Sets locale - * - * @param string $locale The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ - * - * @return self - */ - public function setLocale($locale) - { - - if ((mb_strlen($locale) < 5)) { - throw new \InvalidArgumentException('invalid length for $locale when calling PublishRecord., must be bigger than or equal to 5.'); - } - - $this->container['locale'] = $locale; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets content_type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentType - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentType $content_type content_type - * - * @return self - */ - public function setContentType($content_type) - { - $this->container['content_type'] = $content_type; - - return $this; - } - /** - * Gets content_sub_type - * - * @return string|null - */ - public function getContentSubType() - { - return $this->container['content_sub_type']; - } - - /** - * Sets content_sub_type - * - * @param string|null $content_sub_type The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. - * - * @return self - */ - public function setContentSubType($content_sub_type) - { - $this->container['content_sub_type'] = $content_sub_type; - - return $this; - } - /** - * Gets content_reference_key - * - * @return string - */ - public function getContentReferenceKey() - { - return $this->container['content_reference_key']; - } - - /** - * Sets content_reference_key - * - * @param string $content_reference_key A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. - * - * @return self - */ - public function setContentReferenceKey($content_reference_key) - { - - if ((mb_strlen($content_reference_key) < 1)) { - throw new \InvalidArgumentException('invalid length for $content_reference_key when calling PublishRecord., must be bigger than or equal to 1.'); - } - - $this->container['content_reference_key'] = $content_reference_key; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/SearchContentDocumentsResponse.php b/lib/Model/AplusContentV20201101/SearchContentDocumentsResponse.php deleted file mode 100644 index 7aaebcfeb..000000000 --- a/lib/Model/AplusContentV20201101/SearchContentDocumentsResponse.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SearchContentDocumentsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SearchContentDocumentsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'next_page_token' => 'string', - 'content_metadata_records' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'next_page_token' => null, - 'content_metadata_records' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'next_page_token' => 'nextPageToken', - 'content_metadata_records' => 'contentMetadataRecords' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'next_page_token' => 'setNextPageToken', - 'content_metadata_records' => 'setContentMetadataRecords' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'next_page_token' => 'getNextPageToken', - 'content_metadata_records' => 'getContentMetadataRecords' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - $this->container['content_metadata_records'] = $data['content_metadata_records'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['next_page_token']) && (mb_strlen($this->container['next_page_token']) < 1)) { - $invalidProperties[] = "invalid value for 'next_page_token', the character length must be bigger than or equal to 1."; - } - - if ($this->container['content_metadata_records'] === null) { - $invalidProperties[] = "'content_metadata_records' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - - if (!is_null($next_page_token) && (mb_strlen($next_page_token) < 1)) { - throw new \InvalidArgumentException('invalid length for $next_page_token when calling SearchContentDocumentsResponse., must be bigger than or equal to 1.'); - } - - $this->container['next_page_token'] = $next_page_token; - - return $this; - } - /** - * Gets content_metadata_records - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[] - */ - public function getContentMetadataRecords() - { - return $this->container['content_metadata_records']; - } - - /** - * Sets content_metadata_records - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[] $content_metadata_records A list of A+ Content metadata records. - * - * @return self - */ - public function setContentMetadataRecords($content_metadata_records) - { - - - $this->container['content_metadata_records'] = $content_metadata_records; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.php b/lib/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.php deleted file mode 100644 index 96e0c8db6..000000000 --- a/lib/Model/AplusContentV20201101/SearchContentDocumentsResponseAllOf.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SearchContentDocumentsResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SearchContentDocumentsResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_metadata_records' => '\SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_metadata_records' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_metadata_records' => 'contentMetadataRecords' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_metadata_records' => 'setContentMetadataRecords' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_metadata_records' => 'getContentMetadataRecords' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_metadata_records'] = $data['content_metadata_records'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_metadata_records'] === null) { - $invalidProperties[] = "'content_metadata_records' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_metadata_records - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[] - */ - public function getContentMetadataRecords() - { - return $this->container['content_metadata_records']; - } - - /** - * Sets content_metadata_records - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ContentMetadataRecord[] $content_metadata_records A list of A+ Content metadata records. - * - * @return self - */ - public function setContentMetadataRecords($content_metadata_records) - { - - - $this->container['content_metadata_records'] = $content_metadata_records; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.php b/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.php deleted file mode 100644 index d398cd99f..000000000 --- a/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponse.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SearchContentPublishRecordsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SearchContentPublishRecordsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'next_page_token' => 'string', - 'publish_record_list' => '\SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'next_page_token' => null, - 'publish_record_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'next_page_token' => 'nextPageToken', - 'publish_record_list' => 'publishRecordList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'next_page_token' => 'setNextPageToken', - 'publish_record_list' => 'setPublishRecordList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'next_page_token' => 'getNextPageToken', - 'publish_record_list' => 'getPublishRecordList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - $this->container['publish_record_list'] = $data['publish_record_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['next_page_token']) && (mb_strlen($this->container['next_page_token']) < 1)) { - $invalidProperties[] = "invalid value for 'next_page_token', the character length must be bigger than or equal to 1."; - } - - if ($this->container['publish_record_list'] === null) { - $invalidProperties[] = "'publish_record_list' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - - if (!is_null($next_page_token) && (mb_strlen($next_page_token) < 1)) { - throw new \InvalidArgumentException('invalid length for $next_page_token when calling SearchContentPublishRecordsResponse., must be bigger than or equal to 1.'); - } - - $this->container['next_page_token'] = $next_page_token; - - return $this; - } - /** - * Gets publish_record_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[] - */ - public function getPublishRecordList() - { - return $this->container['publish_record_list']; - } - - /** - * Sets publish_record_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[] $publish_record_list A list of A+ Content publishing records. - * - * @return self - */ - public function setPublishRecordList($publish_record_list) - { - - - $this->container['publish_record_list'] = $publish_record_list; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.php b/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.php deleted file mode 100644 index c3a730e0e..000000000 --- a/lib/Model/AplusContentV20201101/SearchContentPublishRecordsResponseAllOf.php +++ /dev/null @@ -1,166 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SearchContentPublishRecordsResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SearchContentPublishRecordsResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'publish_record_list' => '\SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'publish_record_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'publish_record_list' => 'publishRecordList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'publish_record_list' => 'setPublishRecordList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'publish_record_list' => 'getPublishRecordList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['publish_record_list'] = $data['publish_record_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['publish_record_list'] === null) { - $invalidProperties[] = "'publish_record_list' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets publish_record_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[] - */ - public function getPublishRecordList() - { - return $this->container['publish_record_list']; - } - - /** - * Sets publish_record_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\PublishRecord[] $publish_record_list A list of A+ Content publishing records. - * - * @return self - */ - public function setPublishRecordList($publish_record_list) - { - - - $this->container['publish_record_list'] = $publish_record_list; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardCompanyLogoModule.php b/lib/Model/AplusContentV20201101/StandardCompanyLogoModule.php deleted file mode 100644 index ac38360d7..000000000 --- a/lib/Model/AplusContentV20201101/StandardCompanyLogoModule.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardCompanyLogoModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardCompanyLogoModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'company_logo' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'company_logo' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'company_logo' => 'companyLogo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'company_logo' => 'setCompanyLogo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'company_logo' => 'getCompanyLogo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['company_logo'] = $data['company_logo'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['company_logo'] === null) { - $invalidProperties[] = "'company_logo' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets company_logo - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent - */ - public function getCompanyLogo() - { - return $this->container['company_logo']; - } - - /** - * Sets company_logo - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent $company_logo company_logo - * - * @return self - */ - public function setCompanyLogo($company_logo) - { - $this->container['company_logo'] = $company_logo; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardComparisonProductBlock.php b/lib/Model/AplusContentV20201101/StandardComparisonProductBlock.php deleted file mode 100644 index 369228350..000000000 --- a/lib/Model/AplusContentV20201101/StandardComparisonProductBlock.php +++ /dev/null @@ -1,349 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardComparisonProductBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardComparisonProductBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'position' => 'int', - 'image' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent', - 'title' => 'string', - 'asin' => 'string', - 'highlight' => 'bool', - 'metrics' => '\SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'position' => null, - 'image' => null, - 'title' => null, - 'asin' => null, - 'highlight' => null, - 'metrics' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'position' => 'position', - 'image' => 'image', - 'title' => 'title', - 'asin' => 'asin', - 'highlight' => 'highlight', - 'metrics' => 'metrics' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'position' => 'setPosition', - 'image' => 'setImage', - 'title' => 'setTitle', - 'asin' => 'setAsin', - 'highlight' => 'setHighlight', - 'metrics' => 'setMetrics' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'position' => 'getPosition', - 'image' => 'getImage', - 'title' => 'getTitle', - 'asin' => 'getAsin', - 'highlight' => 'getHighlight', - 'metrics' => 'getMetrics' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['position'] = $data['position'] ?? null; - $this->container['image'] = $data['image'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['highlight'] = $data['highlight'] ?? null; - $this->container['metrics'] = $data['metrics'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['position'] === null) { - $invalidProperties[] = "'position' can't be null"; - } - if (($this->container['position'] > 6)) { - $invalidProperties[] = "invalid value for 'position', must be smaller than or equal to 6."; - } - - if (($this->container['position'] < 1)) { - $invalidProperties[] = "invalid value for 'position', must be bigger than or equal to 1."; - } - - if (!is_null($this->container['title']) && (mb_strlen($this->container['title']) > 80)) { - $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 80."; - } - - if (!is_null($this->container['metrics']) && (count($this->container['metrics']) > 10)) { - $invalidProperties[] = "invalid value for 'metrics', number of items must be less than or equal to 10."; - } - - if (!is_null($this->container['metrics']) && (count($this->container['metrics']) < 0)) { - $invalidProperties[] = "invalid value for 'metrics', number of items must be greater than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets position - * - * @return int - */ - public function getPosition() - { - return $this->container['position']; - } - - /** - * Sets position - * - * @param int $position The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module. - * - * @return self - */ - public function setPosition($position) - { - - if (($position > 6)) { - throw new \InvalidArgumentException('invalid value for $position when calling StandardComparisonProductBlock., must be smaller than or equal to 6.'); - } - if (($position < 1)) { - throw new \InvalidArgumentException('invalid value for $position when calling StandardComparisonProductBlock., must be bigger than or equal to 1.'); - } - - $this->container['position'] = $position; - - return $this; - } - /** - * Gets image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null - */ - public function getImage() - { - return $this->container['image']; - } - - /** - * Sets image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null $image image - * - * @return self - */ - public function setImage($image) - { - $this->container['image'] = $image; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The comparison product title. - * - * @return self - */ - public function setTitle($title) - { - if (!is_null($title) && (mb_strlen($title) > 80)) { - throw new \InvalidArgumentException('invalid length for $title when calling StandardComparisonProductBlock., must be smaller than or equal to 80.'); - } - - $this->container['title'] = $title; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets highlight - * - * @return bool|null - */ - public function getHighlight() - { - return $this->container['highlight']; - } - - /** - * Sets highlight - * - * @param bool|null $highlight Determines whether this block of content is visually highlighted. - * - * @return self - */ - public function setHighlight($highlight) - { - $this->container['highlight'] = $highlight; - - return $this; - } - /** - * Gets metrics - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]|null - */ - public function getMetrics() - { - return $this->container['metrics']; - } - - /** - * Sets metrics - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]|null $metrics Comparison metrics for the product. - * - * @return self - */ - public function setMetrics($metrics) - { - - if (!is_null($metrics) && (count($metrics) > 10)) { - throw new \InvalidArgumentException('invalid value for $metrics when calling StandardComparisonProductBlock., number of items must be less than or equal to 10.'); - } - if (!is_null($metrics) && (count($metrics) < 0)) { - throw new \InvalidArgumentException('invalid length for $metrics when calling StandardComparisonProductBlock., number of items must be greater than or equal to 0.'); - } - $this->container['metrics'] = $metrics; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardComparisonTableModule.php b/lib/Model/AplusContentV20201101/StandardComparisonTableModule.php deleted file mode 100644 index ff351f8bd..000000000 --- a/lib/Model/AplusContentV20201101/StandardComparisonTableModule.php +++ /dev/null @@ -1,221 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardComparisonTableModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardComparisonTableModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_columns' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonProductBlock[]', - 'metric_row_labels' => '\SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_columns' => null, - 'metric_row_labels' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_columns' => 'productColumns', - 'metric_row_labels' => 'metricRowLabels' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_columns' => 'setProductColumns', - 'metric_row_labels' => 'setMetricRowLabels' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_columns' => 'getProductColumns', - 'metric_row_labels' => 'getMetricRowLabels' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_columns'] = $data['product_columns'] ?? null; - $this->container['metric_row_labels'] = $data['metric_row_labels'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['product_columns']) && (count($this->container['product_columns']) > 6)) { - $invalidProperties[] = "invalid value for 'product_columns', number of items must be less than or equal to 6."; - } - - if (!is_null($this->container['product_columns']) && (count($this->container['product_columns']) < 0)) { - $invalidProperties[] = "invalid value for 'product_columns', number of items must be greater than or equal to 0."; - } - - if (!is_null($this->container['metric_row_labels']) && (count($this->container['metric_row_labels']) > 10)) { - $invalidProperties[] = "invalid value for 'metric_row_labels', number of items must be less than or equal to 10."; - } - - if (!is_null($this->container['metric_row_labels']) && (count($this->container['metric_row_labels']) < 0)) { - $invalidProperties[] = "invalid value for 'metric_row_labels', number of items must be greater than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets product_columns - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonProductBlock[]|null - */ - public function getProductColumns() - { - return $this->container['product_columns']; - } - - /** - * Sets product_columns - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardComparisonProductBlock[]|null $product_columns product_columns - * - * @return self - */ - public function setProductColumns($product_columns) - { - - if (!is_null($product_columns) && (count($product_columns) > 6)) { - throw new \InvalidArgumentException('invalid value for $product_columns when calling StandardComparisonTableModule., number of items must be less than or equal to 6.'); - } - if (!is_null($product_columns) && (count($product_columns) < 0)) { - throw new \InvalidArgumentException('invalid length for $product_columns when calling StandardComparisonTableModule., number of items must be greater than or equal to 0.'); - } - $this->container['product_columns'] = $product_columns; - - return $this; - } - /** - * Gets metric_row_labels - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]|null - */ - public function getMetricRowLabels() - { - return $this->container['metric_row_labels']; - } - - /** - * Sets metric_row_labels - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\PlainTextItem[]|null $metric_row_labels metric_row_labels - * - * @return self - */ - public function setMetricRowLabels($metric_row_labels) - { - - if (!is_null($metric_row_labels) && (count($metric_row_labels) > 10)) { - throw new \InvalidArgumentException('invalid value for $metric_row_labels when calling StandardComparisonTableModule., number of items must be less than or equal to 10.'); - } - if (!is_null($metric_row_labels) && (count($metric_row_labels) < 0)) { - throw new \InvalidArgumentException('invalid length for $metric_row_labels when calling StandardComparisonTableModule., number of items must be greater than or equal to 0.'); - } - $this->container['metric_row_labels'] = $metric_row_labels; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardFourImageTextModule.php b/lib/Model/AplusContentV20201101/StandardFourImageTextModule.php deleted file mode 100644 index 0212f1e02..000000000 --- a/lib/Model/AplusContentV20201101/StandardFourImageTextModule.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardFourImageTextModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardFourImageTextModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'block1' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block2' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block3' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block4' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'block1' => null, - 'block2' => null, - 'block3' => null, - 'block4' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'block1' => 'block1', - 'block2' => 'block2', - 'block3' => 'block3', - 'block4' => 'block4' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'block1' => 'setBlock1', - 'block2' => 'setBlock2', - 'block3' => 'setBlock3', - 'block4' => 'setBlock4' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'block1' => 'getBlock1', - 'block2' => 'getBlock2', - 'block3' => 'getBlock3', - 'block4' => 'getBlock4' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['block1'] = $data['block1'] ?? null; - $this->container['block2'] = $data['block2'] ?? null; - $this->container['block3'] = $data['block3'] ?? null; - $this->container['block4'] = $data['block4'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets block1 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock1() - { - return $this->container['block1']; - } - - /** - * Sets block1 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block1 block1 - * - * @return self - */ - public function setBlock1($block1) - { - $this->container['block1'] = $block1; - - return $this; - } - /** - * Gets block2 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock2() - { - return $this->container['block2']; - } - - /** - * Sets block2 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block2 block2 - * - * @return self - */ - public function setBlock2($block2) - { - $this->container['block2'] = $block2; - - return $this; - } - /** - * Gets block3 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock3() - { - return $this->container['block3']; - } - - /** - * Sets block3 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block3 block3 - * - * @return self - */ - public function setBlock3($block3) - { - $this->container['block3'] = $block3; - - return $this; - } - /** - * Gets block4 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock4() - { - return $this->container['block4']; - } - - /** - * Sets block4 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block4 block4 - * - * @return self - */ - public function setBlock4($block4) - { - $this->container['block4'] = $block4; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.php b/lib/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.php deleted file mode 100644 index c2c7f807d..000000000 --- a/lib/Model/AplusContentV20201101/StandardFourImageTextQuadrantModule.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardFourImageTextQuadrantModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardFourImageTextQuadrantModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'block1' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block2' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block3' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block4' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'block1' => null, - 'block2' => null, - 'block3' => null, - 'block4' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'block1' => 'block1', - 'block2' => 'block2', - 'block3' => 'block3', - 'block4' => 'block4' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'block1' => 'setBlock1', - 'block2' => 'setBlock2', - 'block3' => 'setBlock3', - 'block4' => 'setBlock4' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'block1' => 'getBlock1', - 'block2' => 'getBlock2', - 'block3' => 'getBlock3', - 'block4' => 'getBlock4' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['block1'] = $data['block1'] ?? null; - $this->container['block2'] = $data['block2'] ?? null; - $this->container['block3'] = $data['block3'] ?? null; - $this->container['block4'] = $data['block4'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['block1'] === null) { - $invalidProperties[] = "'block1' can't be null"; - } - if ($this->container['block2'] === null) { - $invalidProperties[] = "'block2' can't be null"; - } - if ($this->container['block3'] === null) { - $invalidProperties[] = "'block3' can't be null"; - } - if ($this->container['block4'] === null) { - $invalidProperties[] = "'block4' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets block1 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock - */ - public function getBlock1() - { - return $this->container['block1']; - } - - /** - * Sets block1 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock $block1 block1 - * - * @return self - */ - public function setBlock1($block1) - { - $this->container['block1'] = $block1; - - return $this; - } - /** - * Gets block2 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock - */ - public function getBlock2() - { - return $this->container['block2']; - } - - /** - * Sets block2 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock $block2 block2 - * - * @return self - */ - public function setBlock2($block2) - { - $this->container['block2'] = $block2; - - return $this; - } - /** - * Gets block3 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock - */ - public function getBlock3() - { - return $this->container['block3']; - } - - /** - * Sets block3 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock $block3 block3 - * - * @return self - */ - public function setBlock3($block3) - { - $this->container['block3'] = $block3; - - return $this; - } - /** - * Gets block4 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock - */ - public function getBlock4() - { - return $this->container['block4']; - } - - /** - * Sets block4 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock $block4 block4 - * - * @return self - */ - public function setBlock4($block4) - { - $this->container['block4'] = $block4; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardHeaderImageTextModule.php b/lib/Model/AplusContentV20201101/StandardHeaderImageTextModule.php deleted file mode 100644 index a21756982..000000000 --- a/lib/Model/AplusContentV20201101/StandardHeaderImageTextModule.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardHeaderImageTextModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardHeaderImageTextModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'block' => 'block' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'block' => 'setBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'block' => 'getBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['block'] = $data['block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block block - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardHeaderTextListBlock.php b/lib/Model/AplusContentV20201101/StandardHeaderTextListBlock.php deleted file mode 100644 index 304ecb772..000000000 --- a/lib/Model/AplusContentV20201101/StandardHeaderTextListBlock.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardHeaderTextListBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardHeaderTextListBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'block' => 'block' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'block' => 'setBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'block' => 'getBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['block'] = $data['block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null $block block - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardImageCaptionBlock.php b/lib/Model/AplusContentV20201101/StandardImageCaptionBlock.php deleted file mode 100644 index 1632e0ad8..000000000 --- a/lib/Model/AplusContentV20201101/StandardImageCaptionBlock.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardImageCaptionBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardImageCaptionBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'image' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent', - 'caption' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'image' => null, - 'caption' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'image' => 'image', - 'caption' => 'caption' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'image' => 'setImage', - 'caption' => 'setCaption' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'image' => 'getImage', - 'caption' => 'getCaption' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['image'] = $data['image'] ?? null; - $this->container['caption'] = $data['caption'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null - */ - public function getImage() - { - return $this->container['image']; - } - - /** - * Sets image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null $image image - * - * @return self - */ - public function setImage($image) - { - $this->container['image'] = $image; - - return $this; - } - /** - * Gets caption - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getCaption() - { - return $this->container['caption']; - } - - /** - * Sets caption - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $caption caption - * - * @return self - */ - public function setCaption($caption) - { - $this->container['caption'] = $caption; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardImageSidebarModule.php b/lib/Model/AplusContentV20201101/StandardImageSidebarModule.php deleted file mode 100644 index bc7cfd275..000000000 --- a/lib/Model/AplusContentV20201101/StandardImageSidebarModule.php +++ /dev/null @@ -1,307 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardImageSidebarModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardImageSidebarModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'image_caption_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageCaptionBlock', - 'description_text_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'description_list_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock', - 'sidebar_image_text_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'sidebar_list_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'image_caption_block' => null, - 'description_text_block' => null, - 'description_list_block' => null, - 'sidebar_image_text_block' => null, - 'sidebar_list_block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'image_caption_block' => 'imageCaptionBlock', - 'description_text_block' => 'descriptionTextBlock', - 'description_list_block' => 'descriptionListBlock', - 'sidebar_image_text_block' => 'sidebarImageTextBlock', - 'sidebar_list_block' => 'sidebarListBlock' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'image_caption_block' => 'setImageCaptionBlock', - 'description_text_block' => 'setDescriptionTextBlock', - 'description_list_block' => 'setDescriptionListBlock', - 'sidebar_image_text_block' => 'setSidebarImageTextBlock', - 'sidebar_list_block' => 'setSidebarListBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'image_caption_block' => 'getImageCaptionBlock', - 'description_text_block' => 'getDescriptionTextBlock', - 'description_list_block' => 'getDescriptionListBlock', - 'sidebar_image_text_block' => 'getSidebarImageTextBlock', - 'sidebar_list_block' => 'getSidebarListBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['image_caption_block'] = $data['image_caption_block'] ?? null; - $this->container['description_text_block'] = $data['description_text_block'] ?? null; - $this->container['description_list_block'] = $data['description_list_block'] ?? null; - $this->container['sidebar_image_text_block'] = $data['sidebar_image_text_block'] ?? null; - $this->container['sidebar_list_block'] = $data['sidebar_list_block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets image_caption_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageCaptionBlock|null - */ - public function getImageCaptionBlock() - { - return $this->container['image_caption_block']; - } - - /** - * Sets image_caption_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageCaptionBlock|null $image_caption_block image_caption_block - * - * @return self - */ - public function setImageCaptionBlock($image_caption_block) - { - $this->container['image_caption_block'] = $image_caption_block; - - return $this; - } - /** - * Gets description_text_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getDescriptionTextBlock() - { - return $this->container['description_text_block']; - } - - /** - * Sets description_text_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $description_text_block description_text_block - * - * @return self - */ - public function setDescriptionTextBlock($description_text_block) - { - $this->container['description_text_block'] = $description_text_block; - - return $this; - } - /** - * Gets description_list_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null - */ - public function getDescriptionListBlock() - { - return $this->container['description_list_block']; - } - - /** - * Sets description_list_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null $description_list_block description_list_block - * - * @return self - */ - public function setDescriptionListBlock($description_list_block) - { - $this->container['description_list_block'] = $description_list_block; - - return $this; - } - /** - * Gets sidebar_image_text_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getSidebarImageTextBlock() - { - return $this->container['sidebar_image_text_block']; - } - - /** - * Sets sidebar_image_text_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $sidebar_image_text_block sidebar_image_text_block - * - * @return self - */ - public function setSidebarImageTextBlock($sidebar_image_text_block) - { - $this->container['sidebar_image_text_block'] = $sidebar_image_text_block; - - return $this; - } - /** - * Gets sidebar_list_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null - */ - public function getSidebarListBlock() - { - return $this->container['sidebar_list_block']; - } - - /** - * Sets sidebar_list_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextListBlock|null $sidebar_list_block sidebar_list_block - * - * @return self - */ - public function setSidebarListBlock($sidebar_list_block) - { - $this->container['sidebar_list_block'] = $sidebar_list_block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardImageTextBlock.php b/lib/Model/AplusContentV20201101/StandardImageTextBlock.php deleted file mode 100644 index dff16fa68..000000000 --- a/lib/Model/AplusContentV20201101/StandardImageTextBlock.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardImageTextBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardImageTextBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'image' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent', - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'body' => '\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'image' => null, - 'headline' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'image' => 'image', - 'headline' => 'headline', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'image' => 'setImage', - 'headline' => 'setHeadline', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'image' => 'getImage', - 'headline' => 'getHeadline', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['image'] = $data['image'] ?? null; - $this->container['headline'] = $data['headline'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null - */ - public function getImage() - { - return $this->container['image']; - } - - /** - * Sets image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null $image image - * - * @return self - */ - public function setImage($image) - { - $this->container['image'] = $image; - - return $this; - } - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent|null $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardImageTextCaptionBlock.php b/lib/Model/AplusContentV20201101/StandardImageTextCaptionBlock.php deleted file mode 100644 index a80a67165..000000000 --- a/lib/Model/AplusContentV20201101/StandardImageTextCaptionBlock.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardImageTextCaptionBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardImageTextCaptionBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'caption' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'block' => null, - 'caption' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'block' => 'block', - 'caption' => 'caption' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'block' => 'setBlock', - 'caption' => 'setCaption' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'block' => 'getBlock', - 'caption' => 'getCaption' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['block'] = $data['block'] ?? null; - $this->container['caption'] = $data['caption'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block block - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } - /** - * Gets caption - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getCaption() - { - return $this->container['caption']; - } - - /** - * Sets caption - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $caption caption - * - * @return self - */ - public function setCaption($caption) - { - $this->container['caption'] = $caption; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardImageTextOverlayModule.php b/lib/Model/AplusContentV20201101/StandardImageTextOverlayModule.php deleted file mode 100644 index 0b299e4cf..000000000 --- a/lib/Model/AplusContentV20201101/StandardImageTextOverlayModule.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardImageTextOverlayModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardImageTextOverlayModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'overlay_color_type' => '\SellingPartnerApi\Model\AplusContentV20201101\ColorType', - 'block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'overlay_color_type' => null, - 'block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'overlay_color_type' => 'overlayColorType', - 'block' => 'block' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'overlay_color_type' => 'setOverlayColorType', - 'block' => 'setBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'overlay_color_type' => 'getOverlayColorType', - 'block' => 'getBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['overlay_color_type'] = $data['overlay_color_type'] ?? null; - $this->container['block'] = $data['block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['overlay_color_type'] === null) { - $invalidProperties[] = "'overlay_color_type' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets overlay_color_type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ColorType - */ - public function getOverlayColorType() - { - return $this->container['overlay_color_type']; - } - - /** - * Sets overlay_color_type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ColorType $overlay_color_type overlay_color_type - * - * @return self - */ - public function setOverlayColorType($overlay_color_type) - { - $this->container['overlay_color_type'] = $overlay_color_type; - - return $this; - } - /** - * Gets block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block block - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardMultipleImageTextModule.php b/lib/Model/AplusContentV20201101/StandardMultipleImageTextModule.php deleted file mode 100644 index 4359127b0..000000000 --- a/lib/Model/AplusContentV20201101/StandardMultipleImageTextModule.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardMultipleImageTextModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardMultipleImageTextModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'blocks' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextCaptionBlock[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'blocks' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'blocks' => 'blocks' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'blocks' => 'setBlocks' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'blocks' => 'getBlocks' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['blocks'] = $data['blocks'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets blocks - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextCaptionBlock[]|null - */ - public function getBlocks() - { - return $this->container['blocks']; - } - - /** - * Sets blocks - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextCaptionBlock[]|null $blocks blocks - * - * @return self - */ - public function setBlocks($blocks) - { - $this->container['blocks'] = $blocks; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardProductDescriptionModule.php b/lib/Model/AplusContentV20201101/StandardProductDescriptionModule.php deleted file mode 100644 index 75b5659c1..000000000 --- a/lib/Model/AplusContentV20201101/StandardProductDescriptionModule.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardProductDescriptionModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardProductDescriptionModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'body' => '\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['body'] === null) { - $invalidProperties[] = "'body' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets body - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.php b/lib/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.php deleted file mode 100644 index a4bfa05a7..000000000 --- a/lib/Model/AplusContentV20201101/StandardSingleImageHighlightsModule.php +++ /dev/null @@ -1,307 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardSingleImageHighlightsModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardSingleImageHighlightsModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'image' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent', - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'text_block1' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'text_block2' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'text_block3' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'bulleted_list_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'image' => null, - 'headline' => null, - 'text_block1' => null, - 'text_block2' => null, - 'text_block3' => null, - 'bulleted_list_block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'image' => 'image', - 'headline' => 'headline', - 'text_block1' => 'textBlock1', - 'text_block2' => 'textBlock2', - 'text_block3' => 'textBlock3', - 'bulleted_list_block' => 'bulletedListBlock' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'image' => 'setImage', - 'headline' => 'setHeadline', - 'text_block1' => 'setTextBlock1', - 'text_block2' => 'setTextBlock2', - 'text_block3' => 'setTextBlock3', - 'bulleted_list_block' => 'setBulletedListBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'image' => 'getImage', - 'headline' => 'getHeadline', - 'text_block1' => 'getTextBlock1', - 'text_block2' => 'getTextBlock2', - 'text_block3' => 'getTextBlock3', - 'bulleted_list_block' => 'getBulletedListBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['image'] = $data['image'] ?? null; - $this->container['headline'] = $data['headline'] ?? null; - $this->container['text_block1'] = $data['text_block1'] ?? null; - $this->container['text_block2'] = $data['text_block2'] ?? null; - $this->container['text_block3'] = $data['text_block3'] ?? null; - $this->container['bulleted_list_block'] = $data['bulleted_list_block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null - */ - public function getImage() - { - return $this->container['image']; - } - - /** - * Sets image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null $image image - * - * @return self - */ - public function setImage($image) - { - $this->container['image'] = $image; - - return $this; - } - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets text_block1 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getTextBlock1() - { - return $this->container['text_block1']; - } - - /** - * Sets text_block1 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $text_block1 text_block1 - * - * @return self - */ - public function setTextBlock1($text_block1) - { - $this->container['text_block1'] = $text_block1; - - return $this; - } - /** - * Gets text_block2 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getTextBlock2() - { - return $this->container['text_block2']; - } - - /** - * Sets text_block2 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $text_block2 text_block2 - * - * @return self - */ - public function setTextBlock2($text_block2) - { - $this->container['text_block2'] = $text_block2; - - return $this; - } - /** - * Gets text_block3 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getTextBlock3() - { - return $this->container['text_block3']; - } - - /** - * Sets text_block3 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $text_block3 text_block3 - * - * @return self - */ - public function setTextBlock3($text_block3) - { - $this->container['text_block3'] = $text_block3; - - return $this; - } - /** - * Gets bulleted_list_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock|null - */ - public function getBulletedListBlock() - { - return $this->container['bulleted_list_block']; - } - - /** - * Sets bulleted_list_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock|null $bulleted_list_block bulleted_list_block - * - * @return self - */ - public function setBulletedListBlock($bulleted_list_block) - { - $this->container['bulleted_list_block'] = $bulleted_list_block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.php b/lib/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.php deleted file mode 100644 index d731ac932..000000000 --- a/lib/Model/AplusContentV20201101/StandardSingleImageSpecsDetailModule.php +++ /dev/null @@ -1,365 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardSingleImageSpecsDetailModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardSingleImageSpecsDetailModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'image' => '\SellingPartnerApi\Model\AplusContentV20201101\ImageComponent', - 'description_headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'description_block1' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'description_block2' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock', - 'specification_headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'specification_list_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock', - 'specification_text_block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'image' => null, - 'description_headline' => null, - 'description_block1' => null, - 'description_block2' => null, - 'specification_headline' => null, - 'specification_list_block' => null, - 'specification_text_block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'image' => 'image', - 'description_headline' => 'descriptionHeadline', - 'description_block1' => 'descriptionBlock1', - 'description_block2' => 'descriptionBlock2', - 'specification_headline' => 'specificationHeadline', - 'specification_list_block' => 'specificationListBlock', - 'specification_text_block' => 'specificationTextBlock' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'image' => 'setImage', - 'description_headline' => 'setDescriptionHeadline', - 'description_block1' => 'setDescriptionBlock1', - 'description_block2' => 'setDescriptionBlock2', - 'specification_headline' => 'setSpecificationHeadline', - 'specification_list_block' => 'setSpecificationListBlock', - 'specification_text_block' => 'setSpecificationTextBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'image' => 'getImage', - 'description_headline' => 'getDescriptionHeadline', - 'description_block1' => 'getDescriptionBlock1', - 'description_block2' => 'getDescriptionBlock2', - 'specification_headline' => 'getSpecificationHeadline', - 'specification_list_block' => 'getSpecificationListBlock', - 'specification_text_block' => 'getSpecificationTextBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['image'] = $data['image'] ?? null; - $this->container['description_headline'] = $data['description_headline'] ?? null; - $this->container['description_block1'] = $data['description_block1'] ?? null; - $this->container['description_block2'] = $data['description_block2'] ?? null; - $this->container['specification_headline'] = $data['specification_headline'] ?? null; - $this->container['specification_list_block'] = $data['specification_list_block'] ?? null; - $this->container['specification_text_block'] = $data['specification_text_block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets image - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null - */ - public function getImage() - { - return $this->container['image']; - } - - /** - * Sets image - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ImageComponent|null $image image - * - * @return self - */ - public function setImage($image) - { - $this->container['image'] = $image; - - return $this; - } - /** - * Gets description_headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getDescriptionHeadline() - { - return $this->container['description_headline']; - } - - /** - * Sets description_headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $description_headline description_headline - * - * @return self - */ - public function setDescriptionHeadline($description_headline) - { - $this->container['description_headline'] = $description_headline; - - return $this; - } - /** - * Gets description_block1 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getDescriptionBlock1() - { - return $this->container['description_block1']; - } - - /** - * Sets description_block1 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $description_block1 description_block1 - * - * @return self - */ - public function setDescriptionBlock1($description_block1) - { - $this->container['description_block1'] = $description_block1; - - return $this; - } - /** - * Gets description_block2 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getDescriptionBlock2() - { - return $this->container['description_block2']; - } - - /** - * Sets description_block2 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $description_block2 description_block2 - * - * @return self - */ - public function setDescriptionBlock2($description_block2) - { - $this->container['description_block2'] = $description_block2; - - return $this; - } - /** - * Gets specification_headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getSpecificationHeadline() - { - return $this->container['specification_headline']; - } - - /** - * Sets specification_headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $specification_headline specification_headline - * - * @return self - */ - public function setSpecificationHeadline($specification_headline) - { - $this->container['specification_headline'] = $specification_headline; - - return $this; - } - /** - * Gets specification_list_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock|null - */ - public function getSpecificationListBlock() - { - return $this->container['specification_list_block']; - } - - /** - * Sets specification_list_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardHeaderTextListBlock|null $specification_list_block specification_list_block - * - * @return self - */ - public function setSpecificationListBlock($specification_list_block) - { - $this->container['specification_list_block'] = $specification_list_block; - - return $this; - } - /** - * Gets specification_text_block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null - */ - public function getSpecificationTextBlock() - { - return $this->container['specification_text_block']; - } - - /** - * Sets specification_text_block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextBlock|null $specification_text_block specification_text_block - * - * @return self - */ - public function setSpecificationTextBlock($specification_text_block) - { - $this->container['specification_text_block'] = $specification_text_block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardSingleSideImageModule.php b/lib/Model/AplusContentV20201101/StandardSingleSideImageModule.php deleted file mode 100644 index a91f55bca..000000000 --- a/lib/Model/AplusContentV20201101/StandardSingleSideImageModule.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardSingleSideImageModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardSingleSideImageModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'image_position_type' => '\SellingPartnerApi\Model\AplusContentV20201101\PositionType', - 'block' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'image_position_type' => null, - 'block' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'image_position_type' => 'imagePositionType', - 'block' => 'block' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'image_position_type' => 'setImagePositionType', - 'block' => 'setBlock' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'image_position_type' => 'getImagePositionType', - 'block' => 'getBlock' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['image_position_type'] = $data['image_position_type'] ?? null; - $this->container['block'] = $data['block'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['image_position_type'] === null) { - $invalidProperties[] = "'image_position_type' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets image_position_type - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\PositionType - */ - public function getImagePositionType() - { - return $this->container['image_position_type']; - } - - /** - * Sets image_position_type - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\PositionType $image_position_type image_position_type - * - * @return self - */ - public function setImagePositionType($image_position_type) - { - $this->container['image_position_type'] = $image_position_type; - - return $this; - } - /** - * Gets block - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block block - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardTechSpecsModule.php b/lib/Model/AplusContentV20201101/StandardTechSpecsModule.php deleted file mode 100644 index b870f6bbd..000000000 --- a/lib/Model/AplusContentV20201101/StandardTechSpecsModule.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardTechSpecsModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardTechSpecsModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'specification_list' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardTextPairBlock[]', - 'table_count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'specification_list' => null, - 'table_count' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'specification_list' => 'specificationList', - 'table_count' => 'tableCount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'specification_list' => 'setSpecificationList', - 'table_count' => 'setTableCount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'specification_list' => 'getSpecificationList', - 'table_count' => 'getTableCount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['specification_list'] = $data['specification_list'] ?? null; - $this->container['table_count'] = $data['table_count'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['specification_list'] === null) { - $invalidProperties[] = "'specification_list' can't be null"; - } - if ((count($this->container['specification_list']) > 16)) { - $invalidProperties[] = "invalid value for 'specification_list', number of items must be less than or equal to 16."; - } - - if ((count($this->container['specification_list']) < 4)) { - $invalidProperties[] = "invalid value for 'specification_list', number of items must be greater than or equal to 4."; - } - - if (!is_null($this->container['table_count']) && ($this->container['table_count'] > 2)) { - $invalidProperties[] = "invalid value for 'table_count', must be smaller than or equal to 2."; - } - - if (!is_null($this->container['table_count']) && ($this->container['table_count'] < 1)) { - $invalidProperties[] = "invalid value for 'table_count', must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets specification_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardTextPairBlock[] - */ - public function getSpecificationList() - { - return $this->container['specification_list']; - } - - /** - * Sets specification_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardTextPairBlock[] $specification_list The specification list. - * - * @return self - */ - public function setSpecificationList($specification_list) - { - - if ((count($specification_list) > 16)) { - throw new \InvalidArgumentException('invalid value for $specification_list when calling StandardTechSpecsModule., number of items must be less than or equal to 16.'); - } - if ((count($specification_list) < 4)) { - throw new \InvalidArgumentException('invalid length for $specification_list when calling StandardTechSpecsModule., number of items must be greater than or equal to 4.'); - } - $this->container['specification_list'] = $specification_list; - - return $this; - } - /** - * Gets table_count - * - * @return int|null - */ - public function getTableCount() - { - return $this->container['table_count']; - } - - /** - * Sets table_count - * - * @param int|null $table_count The number of tables to present. Features are evenly divided between the tables. - * - * @return self - */ - public function setTableCount($table_count) - { - - if (!is_null($table_count) && ($table_count > 2)) { - throw new \InvalidArgumentException('invalid value for $table_count when calling StandardTechSpecsModule., must be smaller than or equal to 2.'); - } - if (!is_null($table_count) && ($table_count < 1)) { - throw new \InvalidArgumentException('invalid value for $table_count when calling StandardTechSpecsModule., must be bigger than or equal to 1.'); - } - - $this->container['table_count'] = $table_count; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardTextBlock.php b/lib/Model/AplusContentV20201101/StandardTextBlock.php deleted file mode 100644 index 8d38052fb..000000000 --- a/lib/Model/AplusContentV20201101/StandardTextBlock.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardTextBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardTextBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'body' => '\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent|null $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardTextListBlock.php b/lib/Model/AplusContentV20201101/StandardTextListBlock.php deleted file mode 100644 index 19a99f541..000000000 --- a/lib/Model/AplusContentV20201101/StandardTextListBlock.php +++ /dev/null @@ -1,180 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardTextListBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardTextListBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text_list' => '\SellingPartnerApi\Model\AplusContentV20201101\TextItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text_list' => 'textList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text_list' => 'setTextList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text_list' => 'getTextList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text_list'] = $data['text_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['text_list'] === null) { - $invalidProperties[] = "'text_list' can't be null"; - } - if ((count($this->container['text_list']) > 8)) { - $invalidProperties[] = "invalid value for 'text_list', number of items must be less than or equal to 8."; - } - - if ((count($this->container['text_list']) < 0)) { - $invalidProperties[] = "invalid value for 'text_list', number of items must be greater than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets text_list - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextItem[] - */ - public function getTextList() - { - return $this->container['text_list']; - } - - /** - * Sets text_list - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextItem[] $text_list text_list - * - * @return self - */ - public function setTextList($text_list) - { - - if ((count($text_list) > 8)) { - throw new \InvalidArgumentException('invalid value for $text_list when calling StandardTextListBlock., number of items must be less than or equal to 8.'); - } - if ((count($text_list) < 0)) { - throw new \InvalidArgumentException('invalid length for $text_list when calling StandardTextListBlock., number of items must be greater than or equal to 0.'); - } - $this->container['text_list'] = $text_list; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardTextModule.php b/lib/Model/AplusContentV20201101/StandardTextModule.php deleted file mode 100644 index 6f5e48f92..000000000 --- a/lib/Model/AplusContentV20201101/StandardTextModule.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardTextModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardTextModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'body' => '\SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['body'] === null) { - $invalidProperties[] = "'body' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\ParagraphComponent $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardTextPairBlock.php b/lib/Model/AplusContentV20201101/StandardTextPairBlock.php deleted file mode 100644 index 7f30b691c..000000000 --- a/lib/Model/AplusContentV20201101/StandardTextPairBlock.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardTextPairBlock extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardTextPairBlock'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'description' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label' => null, - 'description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label' => 'label', - 'description' => 'description' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label' => 'setLabel', - 'description' => 'setDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label' => 'getLabel', - 'description' => 'getDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label'] = $data['label'] ?? null; - $this->container['description'] = $data['description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets label - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $label label - * - * @return self - */ - public function setLabel($label) - { - $this->container['label'] = $label; - - return $this; - } - /** - * Gets description - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $description description - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/StandardThreeImageTextModule.php b/lib/Model/AplusContentV20201101/StandardThreeImageTextModule.php deleted file mode 100644 index e33b446e7..000000000 --- a/lib/Model/AplusContentV20201101/StandardThreeImageTextModule.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StandardThreeImageTextModule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StandardThreeImageTextModule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headline' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent', - 'block1' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block2' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock', - 'block3' => '\SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headline' => null, - 'block1' => null, - 'block2' => null, - 'block3' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headline' => 'headline', - 'block1' => 'block1', - 'block2' => 'block2', - 'block3' => 'block3' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headline' => 'setHeadline', - 'block1' => 'setBlock1', - 'block2' => 'setBlock2', - 'block3' => 'setBlock3' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headline' => 'getHeadline', - 'block1' => 'getBlock1', - 'block2' => 'getBlock2', - 'block3' => 'getBlock3' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headline'] = $data['headline'] ?? null; - $this->container['block1'] = $data['block1'] ?? null; - $this->container['block2'] = $data['block2'] ?? null; - $this->container['block3'] = $data['block3'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets headline - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null - */ - public function getHeadline() - { - return $this->container['headline']; - } - - /** - * Sets headline - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent|null $headline headline - * - * @return self - */ - public function setHeadline($headline) - { - $this->container['headline'] = $headline; - - return $this; - } - /** - * Gets block1 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock1() - { - return $this->container['block1']; - } - - /** - * Sets block1 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block1 block1 - * - * @return self - */ - public function setBlock1($block1) - { - $this->container['block1'] = $block1; - - return $this; - } - /** - * Gets block2 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock2() - { - return $this->container['block2']; - } - - /** - * Sets block2 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block2 block2 - * - * @return self - */ - public function setBlock2($block2) - { - $this->container['block2'] = $block2; - - return $this; - } - /** - * Gets block3 - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null - */ - public function getBlock3() - { - return $this->container['block3']; - } - - /** - * Sets block3 - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\StandardImageTextBlock|null $block3 block3 - * - * @return self - */ - public function setBlock3($block3) - { - $this->container['block3'] = $block3; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/TextComponent.php b/lib/Model/AplusContentV20201101/TextComponent.php deleted file mode 100644 index 3ae5447b3..000000000 --- a/lib/Model/AplusContentV20201101/TextComponent.php +++ /dev/null @@ -1,204 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TextComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TextComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'string', - 'decorator_set' => '\SellingPartnerApi\Model\AplusContentV20201101\Decorator[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'decorator_set' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'decorator_set' => 'decoratorSet' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'decorator_set' => 'setDecoratorSet' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'decorator_set' => 'getDecoratorSet' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['decorator_set'] = $data['decorator_set'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ((mb_strlen($this->container['value']) > 10000)) { - $invalidProperties[] = "invalid value for 'value', the character length must be smaller than or equal to 10000."; - } - - return $invalidProperties; - } - - - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value The actual plain text. - * - * @return self - */ - public function setValue($value) - { - if ((mb_strlen($value) > 10000)) { - throw new \InvalidArgumentException('invalid length for $value when calling TextComponent., must be smaller than or equal to 10000.'); - } - - $this->container['value'] = $value; - - return $this; - } - /** - * Gets decorator_set - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Decorator[]|null - */ - public function getDecoratorSet() - { - return $this->container['decorator_set']; - } - - /** - * Sets decorator_set - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Decorator[]|null $decorator_set A set of content decorators. - * - * @return self - */ - public function setDecoratorSet($decorator_set) - { - - - $this->container['decorator_set'] = $decorator_set; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/TextItem.php b/lib/Model/AplusContentV20201101/TextItem.php deleted file mode 100644 index 9391c0472..000000000 --- a/lib/Model/AplusContentV20201101/TextItem.php +++ /dev/null @@ -1,213 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TextItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TextItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'position' => 'int', - 'text' => '\SellingPartnerApi\Model\AplusContentV20201101\TextComponent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'position' => null, - 'text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'position' => 'position', - 'text' => 'text' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'position' => 'setPosition', - 'text' => 'setText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'position' => 'getPosition', - 'text' => 'getText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['position'] = $data['position'] ?? null; - $this->container['text'] = $data['text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['position'] === null) { - $invalidProperties[] = "'position' can't be null"; - } - if (($this->container['position'] > 100)) { - $invalidProperties[] = "invalid value for 'position', must be smaller than or equal to 100."; - } - - if (($this->container['position'] < 1)) { - $invalidProperties[] = "invalid value for 'position', must be bigger than or equal to 1."; - } - - if ($this->container['text'] === null) { - $invalidProperties[] = "'text' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets position - * - * @return int - */ - public function getPosition() - { - return $this->container['position']; - } - - /** - * Sets position - * - * @param int $position The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. - * - * @return self - */ - public function setPosition($position) - { - - if (($position > 100)) { - throw new \InvalidArgumentException('invalid value for $position when calling TextItem., must be smaller than or equal to 100.'); - } - if (($position < 1)) { - throw new \InvalidArgumentException('invalid value for $position when calling TextItem., must be bigger than or equal to 1.'); - } - - $this->container['position'] = $position; - - return $this; - } - /** - * Gets text - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\TextComponent - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\TextComponent $text text - * - * @return self - */ - public function setText($text) - { - $this->container['text'] = $text; - - return $this; - } -} - - diff --git a/lib/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.php b/lib/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.php deleted file mode 100644 index bc5cc1a7f..000000000 --- a/lib/Model/AplusContentV20201101/ValidateContentDocumentAsinRelationsResponse.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ValidateContentDocumentAsinRelationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ValidateContentDocumentAsinRelationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]', - 'errors' => '\SellingPartnerApi\Model\AplusContentV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'warnings' => 'warnings', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'warnings' => 'setWarnings', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'warnings' => 'getWarnings', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[]|null $warnings A set of messages to the user, such as warnings or comments. - * - * @return self - */ - public function setWarnings($warnings) - { - - - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\AplusContentV20201101\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\AplusContentV20201101\Error[] $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/AuthorizationV1/AuthorizationCode.php b/lib/Model/AuthorizationV1/AuthorizationCode.php deleted file mode 100644 index e5439accd..000000000 --- a/lib/Model/AuthorizationV1/AuthorizationCode.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AuthorizationCode extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AuthorizationCode'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'authorization_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'authorization_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'authorization_code' => 'authorizationCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'authorization_code' => 'setAuthorizationCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'authorization_code' => 'getAuthorizationCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['authorization_code'] = $data['authorization_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets authorization_code - * - * @return string|null - */ - public function getAuthorizationCode() - { - return $this->container['authorization_code']; - } - - /** - * Sets authorization_code - * - * @param string|null $authorization_code A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API. - * - * @return self - */ - public function setAuthorizationCode($authorization_code) - { - $this->container['authorization_code'] = $authorization_code; - - return $this; - } -} - - diff --git a/lib/Model/AuthorizationV1/Error.php b/lib/Model/AuthorizationV1/Error.php deleted file mode 100644 index 7f5984840..000000000 --- a/lib/Model/AuthorizationV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/AuthorizationV1/GetAuthorizationCodeResponse.php b/lib/Model/AuthorizationV1/GetAuthorizationCodeResponse.php deleted file mode 100644 index 9a0293f38..000000000 --- a/lib/Model/AuthorizationV1/GetAuthorizationCodeResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAuthorizationCodeResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAuthorizationCodeResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\AuthorizationV1\AuthorizationCode', - 'errors' => '\SellingPartnerApi\Model\AuthorizationV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\AuthorizationV1\AuthorizationCode|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\AuthorizationV1\AuthorizationCode|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\AuthorizationV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\AuthorizationV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/BaseModel.php b/lib/Model/BaseModel.php deleted file mode 100644 index 8f5b5f2ed..000000000 --- a/lib/Model/BaseModel.php +++ /dev/null @@ -1,298 +0,0 @@ - - * @psalm-var array - */ - protected static $openAPIFormats = []; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = []; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = []; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return static::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return static::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return static::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return static::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return static::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return static::$openAPIModelName; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - #[\ReturnTypeWillChange] - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - #[\ReturnTypeWillChange] - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - #[\ReturnTypeWillChange] - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } - - /** - * Enable iterating over all of the model's attributes in $key => $value format - * - * @return \Traversable - */ - public function getIterator(): \Traversable - { - return (function () { - foreach ($this->container as $key => $value) { - yield $key => $value; - } - })(); - } - - /** - * Retrieves the property with the given name by converting the property accession - * to a getter call. - * - * @param string $propertyName - * @throws InvalidArgumentException - * @return mixed - */ - public function __get($propertyName) - { - // This doesn't make a syntactical difference since PHP is case-insensitive, but - // makes error messages clearer (e.g. "Call to undefined method getFoo()" rather - // than "Call to undefined method getfoo()"). - $ucProp = ucfirst($propertyName); - $getter = "get$ucProp"; - - if (!method_exists($this, $getter)) { - throw new InvalidArgumentException("Property \"$propertyName\" does not exist on class \"" . static::class . "\""); - } - - return $this->$getter(); - } - - /** - * Sets the property with the given name by converting the property accession - * to a setter call. Returns the model. - * - * @param string $propertyName - * @param mixed $propertyValue - * @throws InvalidArgumentException - * @return static - */ - public function __set($propertyName, $propertyValue) - { - $ucProp = ucfirst($propertyName); - $setter = "set$ucProp"; - - if (!method_exists($this, $setter)) { - throw new InvalidArgumentException("Property \"$propertyName\" does not exist on class \"" . static::class . "\""); - } - - $this->$setter($propertyValue); - return $this; - } -} diff --git a/lib/Model/CatalogItemsV0/ASINIdentifier.php b/lib/Model/CatalogItemsV0/ASINIdentifier.php deleted file mode 100644 index 373f56b0e..000000000 --- a/lib/Model/CatalogItemsV0/ASINIdentifier.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ASINIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ASINIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'asin' => 'ASIN' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/AttributeSetListType.php b/lib/Model/CatalogItemsV0/AttributeSetListType.php deleted file mode 100644 index 34864719f..000000000 --- a/lib/Model/CatalogItemsV0/AttributeSetListType.php +++ /dev/null @@ -1,2917 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AttributeSetListType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AttributeSetListType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'actor' => 'string[]', - 'artist' => 'string[]', - 'aspect_ratio' => 'string', - 'audience_rating' => 'string', - 'author' => 'string[]', - 'back_finding' => 'string', - 'band_material_type' => 'string', - 'binding' => 'string', - 'bluray_region' => 'string', - 'brand' => 'string', - 'cero_age_rating' => 'string', - 'chain_type' => 'string', - 'clasp_type' => 'string', - 'color' => 'string', - 'cpu_manufacturer' => 'string', - 'cpu_speed' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'cpu_type' => 'string', - 'creator' => '\SellingPartnerApi\Model\CatalogItemsV0\CreatorType[]', - 'department' => 'string', - 'director' => 'string[]', - 'display_size' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'edition' => 'string', - 'episode_sequence' => 'string', - 'esrb_age_rating' => 'string', - 'feature' => 'string[]', - 'flavor' => 'string', - 'format' => 'string[]', - 'gem_type' => 'string[]', - 'genre' => 'string', - 'golf_club_flex' => 'string', - 'golf_club_loft' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'hand_orientation' => 'string', - 'hard_disk_interface' => 'string', - 'hard_disk_size' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'hardware_platform' => 'string', - 'hazardous_material_type' => 'string', - 'item_dimensions' => '\SellingPartnerApi\Model\CatalogItemsV0\DimensionType', - 'is_adult_product' => 'bool', - 'is_autographed' => 'bool', - 'is_eligible_for_trade_in' => 'bool', - 'is_memorabilia' => 'bool', - 'issues_per_year' => 'string', - 'item_part_number' => 'string', - 'label' => 'string', - 'languages' => '\SellingPartnerApi\Model\CatalogItemsV0\LanguageType[]', - 'legal_disclaimer' => 'string', - 'list_price' => '\SellingPartnerApi\Model\CatalogItemsV0\Price', - 'manufacturer' => 'string', - 'manufacturer_maximum_age' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'manufacturer_minimum_age' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'manufacturer_parts_warranty_description' => 'string', - 'material_type' => 'string[]', - 'maximum_resolution' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'media_type' => 'string[]', - 'metal_stamp' => 'string', - 'metal_type' => 'string', - 'model' => 'string', - 'number_of_discs' => 'int', - 'number_of_issues' => 'int', - 'number_of_items' => 'int', - 'number_of_pages' => 'int', - 'number_of_tracks' => 'int', - 'operating_system' => 'string[]', - 'optical_zoom' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'package_dimensions' => '\SellingPartnerApi\Model\CatalogItemsV0\DimensionType', - 'package_quantity' => 'int', - 'part_number' => 'string', - 'pegi_rating' => 'string', - 'platform' => 'string[]', - 'processor_count' => 'int', - 'product_group' => 'string', - 'product_type_name' => 'string', - 'product_type_subcategory' => 'string', - 'publication_date' => 'string', - 'publisher' => 'string', - 'region_code' => 'string', - 'release_date' => 'string', - 'ring_size' => 'string', - 'running_time' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'shaft_material' => 'string', - 'scent' => 'string', - 'season_sequence' => 'string', - 'seikodo_product_code' => 'string', - 'size' => 'string', - 'size_per_pearl' => 'string', - 'small_image' => '\SellingPartnerApi\Model\CatalogItemsV0\Image', - 'studio' => 'string', - 'subscription_length' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'system_memory_size' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'system_memory_type' => 'string', - 'theatrical_release_date' => 'string', - 'title' => 'string', - 'total_diamond_weight' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'total_gem_weight' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'warranty' => 'string', - 'weee_tax_value' => '\SellingPartnerApi\Model\CatalogItemsV0\Price' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'actor' => null, - 'artist' => null, - 'aspect_ratio' => null, - 'audience_rating' => null, - 'author' => null, - 'back_finding' => null, - 'band_material_type' => null, - 'binding' => null, - 'bluray_region' => null, - 'brand' => null, - 'cero_age_rating' => null, - 'chain_type' => null, - 'clasp_type' => null, - 'color' => null, - 'cpu_manufacturer' => null, - 'cpu_speed' => null, - 'cpu_type' => null, - 'creator' => null, - 'department' => null, - 'director' => null, - 'display_size' => null, - 'edition' => null, - 'episode_sequence' => null, - 'esrb_age_rating' => null, - 'feature' => null, - 'flavor' => null, - 'format' => null, - 'gem_type' => null, - 'genre' => null, - 'golf_club_flex' => null, - 'golf_club_loft' => null, - 'hand_orientation' => null, - 'hard_disk_interface' => null, - 'hard_disk_size' => null, - 'hardware_platform' => null, - 'hazardous_material_type' => null, - 'item_dimensions' => null, - 'is_adult_product' => null, - 'is_autographed' => null, - 'is_eligible_for_trade_in' => null, - 'is_memorabilia' => null, - 'issues_per_year' => null, - 'item_part_number' => null, - 'label' => null, - 'languages' => null, - 'legal_disclaimer' => null, - 'list_price' => null, - 'manufacturer' => null, - 'manufacturer_maximum_age' => null, - 'manufacturer_minimum_age' => null, - 'manufacturer_parts_warranty_description' => null, - 'material_type' => null, - 'maximum_resolution' => null, - 'media_type' => null, - 'metal_stamp' => null, - 'metal_type' => null, - 'model' => null, - 'number_of_discs' => null, - 'number_of_issues' => null, - 'number_of_items' => null, - 'number_of_pages' => null, - 'number_of_tracks' => null, - 'operating_system' => null, - 'optical_zoom' => null, - 'package_dimensions' => null, - 'package_quantity' => null, - 'part_number' => null, - 'pegi_rating' => null, - 'platform' => null, - 'processor_count' => null, - 'product_group' => null, - 'product_type_name' => null, - 'product_type_subcategory' => null, - 'publication_date' => null, - 'publisher' => null, - 'region_code' => null, - 'release_date' => null, - 'ring_size' => null, - 'running_time' => null, - 'shaft_material' => null, - 'scent' => null, - 'season_sequence' => null, - 'seikodo_product_code' => null, - 'size' => null, - 'size_per_pearl' => null, - 'small_image' => null, - 'studio' => null, - 'subscription_length' => null, - 'system_memory_size' => null, - 'system_memory_type' => null, - 'theatrical_release_date' => null, - 'title' => null, - 'total_diamond_weight' => null, - 'total_gem_weight' => null, - 'warranty' => null, - 'weee_tax_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'actor' => 'Actor', - 'artist' => 'Artist', - 'aspect_ratio' => 'AspectRatio', - 'audience_rating' => 'AudienceRating', - 'author' => 'Author', - 'back_finding' => 'BackFinding', - 'band_material_type' => 'BandMaterialType', - 'binding' => 'Binding', - 'bluray_region' => 'BlurayRegion', - 'brand' => 'Brand', - 'cero_age_rating' => 'CeroAgeRating', - 'chain_type' => 'ChainType', - 'clasp_type' => 'ClaspType', - 'color' => 'Color', - 'cpu_manufacturer' => 'CpuManufacturer', - 'cpu_speed' => 'CpuSpeed', - 'cpu_type' => 'CpuType', - 'creator' => 'Creator', - 'department' => 'Department', - 'director' => 'Director', - 'display_size' => 'DisplaySize', - 'edition' => 'Edition', - 'episode_sequence' => 'EpisodeSequence', - 'esrb_age_rating' => 'EsrbAgeRating', - 'feature' => 'Feature', - 'flavor' => 'Flavor', - 'format' => 'Format', - 'gem_type' => 'GemType', - 'genre' => 'Genre', - 'golf_club_flex' => 'GolfClubFlex', - 'golf_club_loft' => 'GolfClubLoft', - 'hand_orientation' => 'HandOrientation', - 'hard_disk_interface' => 'HardDiskInterface', - 'hard_disk_size' => 'HardDiskSize', - 'hardware_platform' => 'HardwarePlatform', - 'hazardous_material_type' => 'HazardousMaterialType', - 'item_dimensions' => 'ItemDimensions', - 'is_adult_product' => 'IsAdultProduct', - 'is_autographed' => 'IsAutographed', - 'is_eligible_for_trade_in' => 'IsEligibleForTradeIn', - 'is_memorabilia' => 'IsMemorabilia', - 'issues_per_year' => 'IssuesPerYear', - 'item_part_number' => 'ItemPartNumber', - 'label' => 'Label', - 'languages' => 'Languages', - 'legal_disclaimer' => 'LegalDisclaimer', - 'list_price' => 'ListPrice', - 'manufacturer' => 'Manufacturer', - 'manufacturer_maximum_age' => 'ManufacturerMaximumAge', - 'manufacturer_minimum_age' => 'ManufacturerMinimumAge', - 'manufacturer_parts_warranty_description' => 'ManufacturerPartsWarrantyDescription', - 'material_type' => 'MaterialType', - 'maximum_resolution' => 'MaximumResolution', - 'media_type' => 'MediaType', - 'metal_stamp' => 'MetalStamp', - 'metal_type' => 'MetalType', - 'model' => 'Model', - 'number_of_discs' => 'NumberOfDiscs', - 'number_of_issues' => 'NumberOfIssues', - 'number_of_items' => 'NumberOfItems', - 'number_of_pages' => 'NumberOfPages', - 'number_of_tracks' => 'NumberOfTracks', - 'operating_system' => 'OperatingSystem', - 'optical_zoom' => 'OpticalZoom', - 'package_dimensions' => 'PackageDimensions', - 'package_quantity' => 'PackageQuantity', - 'part_number' => 'PartNumber', - 'pegi_rating' => 'PegiRating', - 'platform' => 'Platform', - 'processor_count' => 'ProcessorCount', - 'product_group' => 'ProductGroup', - 'product_type_name' => 'ProductTypeName', - 'product_type_subcategory' => 'ProductTypeSubcategory', - 'publication_date' => 'PublicationDate', - 'publisher' => 'Publisher', - 'region_code' => 'RegionCode', - 'release_date' => 'ReleaseDate', - 'ring_size' => 'RingSize', - 'running_time' => 'RunningTime', - 'shaft_material' => 'ShaftMaterial', - 'scent' => 'Scent', - 'season_sequence' => 'SeasonSequence', - 'seikodo_product_code' => 'SeikodoProductCode', - 'size' => 'Size', - 'size_per_pearl' => 'SizePerPearl', - 'small_image' => 'SmallImage', - 'studio' => 'Studio', - 'subscription_length' => 'SubscriptionLength', - 'system_memory_size' => 'SystemMemorySize', - 'system_memory_type' => 'SystemMemoryType', - 'theatrical_release_date' => 'TheatricalReleaseDate', - 'title' => 'Title', - 'total_diamond_weight' => 'TotalDiamondWeight', - 'total_gem_weight' => 'TotalGemWeight', - 'warranty' => 'Warranty', - 'weee_tax_value' => 'WeeeTaxValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'actor' => 'setActor', - 'artist' => 'setArtist', - 'aspect_ratio' => 'setAspectRatio', - 'audience_rating' => 'setAudienceRating', - 'author' => 'setAuthor', - 'back_finding' => 'setBackFinding', - 'band_material_type' => 'setBandMaterialType', - 'binding' => 'setBinding', - 'bluray_region' => 'setBlurayRegion', - 'brand' => 'setBrand', - 'cero_age_rating' => 'setCeroAgeRating', - 'chain_type' => 'setChainType', - 'clasp_type' => 'setClaspType', - 'color' => 'setColor', - 'cpu_manufacturer' => 'setCpuManufacturer', - 'cpu_speed' => 'setCpuSpeed', - 'cpu_type' => 'setCpuType', - 'creator' => 'setCreator', - 'department' => 'setDepartment', - 'director' => 'setDirector', - 'display_size' => 'setDisplaySize', - 'edition' => 'setEdition', - 'episode_sequence' => 'setEpisodeSequence', - 'esrb_age_rating' => 'setEsrbAgeRating', - 'feature' => 'setFeature', - 'flavor' => 'setFlavor', - 'format' => 'setFormat', - 'gem_type' => 'setGemType', - 'genre' => 'setGenre', - 'golf_club_flex' => 'setGolfClubFlex', - 'golf_club_loft' => 'setGolfClubLoft', - 'hand_orientation' => 'setHandOrientation', - 'hard_disk_interface' => 'setHardDiskInterface', - 'hard_disk_size' => 'setHardDiskSize', - 'hardware_platform' => 'setHardwarePlatform', - 'hazardous_material_type' => 'setHazardousMaterialType', - 'item_dimensions' => 'setItemDimensions', - 'is_adult_product' => 'setIsAdultProduct', - 'is_autographed' => 'setIsAutographed', - 'is_eligible_for_trade_in' => 'setIsEligibleForTradeIn', - 'is_memorabilia' => 'setIsMemorabilia', - 'issues_per_year' => 'setIssuesPerYear', - 'item_part_number' => 'setItemPartNumber', - 'label' => 'setLabel', - 'languages' => 'setLanguages', - 'legal_disclaimer' => 'setLegalDisclaimer', - 'list_price' => 'setListPrice', - 'manufacturer' => 'setManufacturer', - 'manufacturer_maximum_age' => 'setManufacturerMaximumAge', - 'manufacturer_minimum_age' => 'setManufacturerMinimumAge', - 'manufacturer_parts_warranty_description' => 'setManufacturerPartsWarrantyDescription', - 'material_type' => 'setMaterialType', - 'maximum_resolution' => 'setMaximumResolution', - 'media_type' => 'setMediaType', - 'metal_stamp' => 'setMetalStamp', - 'metal_type' => 'setMetalType', - 'model' => 'setModel', - 'number_of_discs' => 'setNumberOfDiscs', - 'number_of_issues' => 'setNumberOfIssues', - 'number_of_items' => 'setNumberOfItems', - 'number_of_pages' => 'setNumberOfPages', - 'number_of_tracks' => 'setNumberOfTracks', - 'operating_system' => 'setOperatingSystem', - 'optical_zoom' => 'setOpticalZoom', - 'package_dimensions' => 'setPackageDimensions', - 'package_quantity' => 'setPackageQuantity', - 'part_number' => 'setPartNumber', - 'pegi_rating' => 'setPegiRating', - 'platform' => 'setPlatform', - 'processor_count' => 'setProcessorCount', - 'product_group' => 'setProductGroup', - 'product_type_name' => 'setProductTypeName', - 'product_type_subcategory' => 'setProductTypeSubcategory', - 'publication_date' => 'setPublicationDate', - 'publisher' => 'setPublisher', - 'region_code' => 'setRegionCode', - 'release_date' => 'setReleaseDate', - 'ring_size' => 'setRingSize', - 'running_time' => 'setRunningTime', - 'shaft_material' => 'setShaftMaterial', - 'scent' => 'setScent', - 'season_sequence' => 'setSeasonSequence', - 'seikodo_product_code' => 'setSeikodoProductCode', - 'size' => 'setSize', - 'size_per_pearl' => 'setSizePerPearl', - 'small_image' => 'setSmallImage', - 'studio' => 'setStudio', - 'subscription_length' => 'setSubscriptionLength', - 'system_memory_size' => 'setSystemMemorySize', - 'system_memory_type' => 'setSystemMemoryType', - 'theatrical_release_date' => 'setTheatricalReleaseDate', - 'title' => 'setTitle', - 'total_diamond_weight' => 'setTotalDiamondWeight', - 'total_gem_weight' => 'setTotalGemWeight', - 'warranty' => 'setWarranty', - 'weee_tax_value' => 'setWeeeTaxValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'actor' => 'getActor', - 'artist' => 'getArtist', - 'aspect_ratio' => 'getAspectRatio', - 'audience_rating' => 'getAudienceRating', - 'author' => 'getAuthor', - 'back_finding' => 'getBackFinding', - 'band_material_type' => 'getBandMaterialType', - 'binding' => 'getBinding', - 'bluray_region' => 'getBlurayRegion', - 'brand' => 'getBrand', - 'cero_age_rating' => 'getCeroAgeRating', - 'chain_type' => 'getChainType', - 'clasp_type' => 'getClaspType', - 'color' => 'getColor', - 'cpu_manufacturer' => 'getCpuManufacturer', - 'cpu_speed' => 'getCpuSpeed', - 'cpu_type' => 'getCpuType', - 'creator' => 'getCreator', - 'department' => 'getDepartment', - 'director' => 'getDirector', - 'display_size' => 'getDisplaySize', - 'edition' => 'getEdition', - 'episode_sequence' => 'getEpisodeSequence', - 'esrb_age_rating' => 'getEsrbAgeRating', - 'feature' => 'getFeature', - 'flavor' => 'getFlavor', - 'format' => 'getFormat', - 'gem_type' => 'getGemType', - 'genre' => 'getGenre', - 'golf_club_flex' => 'getGolfClubFlex', - 'golf_club_loft' => 'getGolfClubLoft', - 'hand_orientation' => 'getHandOrientation', - 'hard_disk_interface' => 'getHardDiskInterface', - 'hard_disk_size' => 'getHardDiskSize', - 'hardware_platform' => 'getHardwarePlatform', - 'hazardous_material_type' => 'getHazardousMaterialType', - 'item_dimensions' => 'getItemDimensions', - 'is_adult_product' => 'getIsAdultProduct', - 'is_autographed' => 'getIsAutographed', - 'is_eligible_for_trade_in' => 'getIsEligibleForTradeIn', - 'is_memorabilia' => 'getIsMemorabilia', - 'issues_per_year' => 'getIssuesPerYear', - 'item_part_number' => 'getItemPartNumber', - 'label' => 'getLabel', - 'languages' => 'getLanguages', - 'legal_disclaimer' => 'getLegalDisclaimer', - 'list_price' => 'getListPrice', - 'manufacturer' => 'getManufacturer', - 'manufacturer_maximum_age' => 'getManufacturerMaximumAge', - 'manufacturer_minimum_age' => 'getManufacturerMinimumAge', - 'manufacturer_parts_warranty_description' => 'getManufacturerPartsWarrantyDescription', - 'material_type' => 'getMaterialType', - 'maximum_resolution' => 'getMaximumResolution', - 'media_type' => 'getMediaType', - 'metal_stamp' => 'getMetalStamp', - 'metal_type' => 'getMetalType', - 'model' => 'getModel', - 'number_of_discs' => 'getNumberOfDiscs', - 'number_of_issues' => 'getNumberOfIssues', - 'number_of_items' => 'getNumberOfItems', - 'number_of_pages' => 'getNumberOfPages', - 'number_of_tracks' => 'getNumberOfTracks', - 'operating_system' => 'getOperatingSystem', - 'optical_zoom' => 'getOpticalZoom', - 'package_dimensions' => 'getPackageDimensions', - 'package_quantity' => 'getPackageQuantity', - 'part_number' => 'getPartNumber', - 'pegi_rating' => 'getPegiRating', - 'platform' => 'getPlatform', - 'processor_count' => 'getProcessorCount', - 'product_group' => 'getProductGroup', - 'product_type_name' => 'getProductTypeName', - 'product_type_subcategory' => 'getProductTypeSubcategory', - 'publication_date' => 'getPublicationDate', - 'publisher' => 'getPublisher', - 'region_code' => 'getRegionCode', - 'release_date' => 'getReleaseDate', - 'ring_size' => 'getRingSize', - 'running_time' => 'getRunningTime', - 'shaft_material' => 'getShaftMaterial', - 'scent' => 'getScent', - 'season_sequence' => 'getSeasonSequence', - 'seikodo_product_code' => 'getSeikodoProductCode', - 'size' => 'getSize', - 'size_per_pearl' => 'getSizePerPearl', - 'small_image' => 'getSmallImage', - 'studio' => 'getStudio', - 'subscription_length' => 'getSubscriptionLength', - 'system_memory_size' => 'getSystemMemorySize', - 'system_memory_type' => 'getSystemMemoryType', - 'theatrical_release_date' => 'getTheatricalReleaseDate', - 'title' => 'getTitle', - 'total_diamond_weight' => 'getTotalDiamondWeight', - 'total_gem_weight' => 'getTotalGemWeight', - 'warranty' => 'getWarranty', - 'weee_tax_value' => 'getWeeeTaxValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['actor'] = $data['actor'] ?? null; - $this->container['artist'] = $data['artist'] ?? null; - $this->container['aspect_ratio'] = $data['aspect_ratio'] ?? null; - $this->container['audience_rating'] = $data['audience_rating'] ?? null; - $this->container['author'] = $data['author'] ?? null; - $this->container['back_finding'] = $data['back_finding'] ?? null; - $this->container['band_material_type'] = $data['band_material_type'] ?? null; - $this->container['binding'] = $data['binding'] ?? null; - $this->container['bluray_region'] = $data['bluray_region'] ?? null; - $this->container['brand'] = $data['brand'] ?? null; - $this->container['cero_age_rating'] = $data['cero_age_rating'] ?? null; - $this->container['chain_type'] = $data['chain_type'] ?? null; - $this->container['clasp_type'] = $data['clasp_type'] ?? null; - $this->container['color'] = $data['color'] ?? null; - $this->container['cpu_manufacturer'] = $data['cpu_manufacturer'] ?? null; - $this->container['cpu_speed'] = $data['cpu_speed'] ?? null; - $this->container['cpu_type'] = $data['cpu_type'] ?? null; - $this->container['creator'] = $data['creator'] ?? null; - $this->container['department'] = $data['department'] ?? null; - $this->container['director'] = $data['director'] ?? null; - $this->container['display_size'] = $data['display_size'] ?? null; - $this->container['edition'] = $data['edition'] ?? null; - $this->container['episode_sequence'] = $data['episode_sequence'] ?? null; - $this->container['esrb_age_rating'] = $data['esrb_age_rating'] ?? null; - $this->container['feature'] = $data['feature'] ?? null; - $this->container['flavor'] = $data['flavor'] ?? null; - $this->container['format'] = $data['format'] ?? null; - $this->container['gem_type'] = $data['gem_type'] ?? null; - $this->container['genre'] = $data['genre'] ?? null; - $this->container['golf_club_flex'] = $data['golf_club_flex'] ?? null; - $this->container['golf_club_loft'] = $data['golf_club_loft'] ?? null; - $this->container['hand_orientation'] = $data['hand_orientation'] ?? null; - $this->container['hard_disk_interface'] = $data['hard_disk_interface'] ?? null; - $this->container['hard_disk_size'] = $data['hard_disk_size'] ?? null; - $this->container['hardware_platform'] = $data['hardware_platform'] ?? null; - $this->container['hazardous_material_type'] = $data['hazardous_material_type'] ?? null; - $this->container['item_dimensions'] = $data['item_dimensions'] ?? null; - $this->container['is_adult_product'] = $data['is_adult_product'] ?? null; - $this->container['is_autographed'] = $data['is_autographed'] ?? null; - $this->container['is_eligible_for_trade_in'] = $data['is_eligible_for_trade_in'] ?? null; - $this->container['is_memorabilia'] = $data['is_memorabilia'] ?? null; - $this->container['issues_per_year'] = $data['issues_per_year'] ?? null; - $this->container['item_part_number'] = $data['item_part_number'] ?? null; - $this->container['label'] = $data['label'] ?? null; - $this->container['languages'] = $data['languages'] ?? null; - $this->container['legal_disclaimer'] = $data['legal_disclaimer'] ?? null; - $this->container['list_price'] = $data['list_price'] ?? null; - $this->container['manufacturer'] = $data['manufacturer'] ?? null; - $this->container['manufacturer_maximum_age'] = $data['manufacturer_maximum_age'] ?? null; - $this->container['manufacturer_minimum_age'] = $data['manufacturer_minimum_age'] ?? null; - $this->container['manufacturer_parts_warranty_description'] = $data['manufacturer_parts_warranty_description'] ?? null; - $this->container['material_type'] = $data['material_type'] ?? null; - $this->container['maximum_resolution'] = $data['maximum_resolution'] ?? null; - $this->container['media_type'] = $data['media_type'] ?? null; - $this->container['metal_stamp'] = $data['metal_stamp'] ?? null; - $this->container['metal_type'] = $data['metal_type'] ?? null; - $this->container['model'] = $data['model'] ?? null; - $this->container['number_of_discs'] = $data['number_of_discs'] ?? null; - $this->container['number_of_issues'] = $data['number_of_issues'] ?? null; - $this->container['number_of_items'] = $data['number_of_items'] ?? null; - $this->container['number_of_pages'] = $data['number_of_pages'] ?? null; - $this->container['number_of_tracks'] = $data['number_of_tracks'] ?? null; - $this->container['operating_system'] = $data['operating_system'] ?? null; - $this->container['optical_zoom'] = $data['optical_zoom'] ?? null; - $this->container['package_dimensions'] = $data['package_dimensions'] ?? null; - $this->container['package_quantity'] = $data['package_quantity'] ?? null; - $this->container['part_number'] = $data['part_number'] ?? null; - $this->container['pegi_rating'] = $data['pegi_rating'] ?? null; - $this->container['platform'] = $data['platform'] ?? null; - $this->container['processor_count'] = $data['processor_count'] ?? null; - $this->container['product_group'] = $data['product_group'] ?? null; - $this->container['product_type_name'] = $data['product_type_name'] ?? null; - $this->container['product_type_subcategory'] = $data['product_type_subcategory'] ?? null; - $this->container['publication_date'] = $data['publication_date'] ?? null; - $this->container['publisher'] = $data['publisher'] ?? null; - $this->container['region_code'] = $data['region_code'] ?? null; - $this->container['release_date'] = $data['release_date'] ?? null; - $this->container['ring_size'] = $data['ring_size'] ?? null; - $this->container['running_time'] = $data['running_time'] ?? null; - $this->container['shaft_material'] = $data['shaft_material'] ?? null; - $this->container['scent'] = $data['scent'] ?? null; - $this->container['season_sequence'] = $data['season_sequence'] ?? null; - $this->container['seikodo_product_code'] = $data['seikodo_product_code'] ?? null; - $this->container['size'] = $data['size'] ?? null; - $this->container['size_per_pearl'] = $data['size_per_pearl'] ?? null; - $this->container['small_image'] = $data['small_image'] ?? null; - $this->container['studio'] = $data['studio'] ?? null; - $this->container['subscription_length'] = $data['subscription_length'] ?? null; - $this->container['system_memory_size'] = $data['system_memory_size'] ?? null; - $this->container['system_memory_type'] = $data['system_memory_type'] ?? null; - $this->container['theatrical_release_date'] = $data['theatrical_release_date'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['total_diamond_weight'] = $data['total_diamond_weight'] ?? null; - $this->container['total_gem_weight'] = $data['total_gem_weight'] ?? null; - $this->container['warranty'] = $data['warranty'] ?? null; - $this->container['weee_tax_value'] = $data['weee_tax_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets actor - * - * @return string[]|null - */ - public function getActor() - { - return $this->container['actor']; - } - - /** - * Sets actor - * - * @param string[]|null $actor The actor attributes of the item. - * - * @return self - */ - public function setActor($actor) - { - $this->container['actor'] = $actor; - - return $this; - } - /** - * Gets artist - * - * @return string[]|null - */ - public function getArtist() - { - return $this->container['artist']; - } - - /** - * Sets artist - * - * @param string[]|null $artist The artist attributes of the item. - * - * @return self - */ - public function setArtist($artist) - { - $this->container['artist'] = $artist; - - return $this; - } - /** - * Gets aspect_ratio - * - * @return string|null - */ - public function getAspectRatio() - { - return $this->container['aspect_ratio']; - } - - /** - * Sets aspect_ratio - * - * @param string|null $aspect_ratio The aspect ratio attribute of the item. - * - * @return self - */ - public function setAspectRatio($aspect_ratio) - { - $this->container['aspect_ratio'] = $aspect_ratio; - - return $this; - } - /** - * Gets audience_rating - * - * @return string|null - */ - public function getAudienceRating() - { - return $this->container['audience_rating']; - } - - /** - * Sets audience_rating - * - * @param string|null $audience_rating The audience rating attribute of the item. - * - * @return self - */ - public function setAudienceRating($audience_rating) - { - $this->container['audience_rating'] = $audience_rating; - - return $this; - } - /** - * Gets author - * - * @return string[]|null - */ - public function getAuthor() - { - return $this->container['author']; - } - - /** - * Sets author - * - * @param string[]|null $author The author attributes of the item. - * - * @return self - */ - public function setAuthor($author) - { - $this->container['author'] = $author; - - return $this; - } - /** - * Gets back_finding - * - * @return string|null - */ - public function getBackFinding() - { - return $this->container['back_finding']; - } - - /** - * Sets back_finding - * - * @param string|null $back_finding The back finding attribute of the item. - * - * @return self - */ - public function setBackFinding($back_finding) - { - $this->container['back_finding'] = $back_finding; - - return $this; - } - /** - * Gets band_material_type - * - * @return string|null - */ - public function getBandMaterialType() - { - return $this->container['band_material_type']; - } - - /** - * Sets band_material_type - * - * @param string|null $band_material_type The band material type attribute of the item. - * - * @return self - */ - public function setBandMaterialType($band_material_type) - { - $this->container['band_material_type'] = $band_material_type; - - return $this; - } - /** - * Gets binding - * - * @return string|null - */ - public function getBinding() - { - return $this->container['binding']; - } - - /** - * Sets binding - * - * @param string|null $binding The binding attribute of the item. - * - * @return self - */ - public function setBinding($binding) - { - $this->container['binding'] = $binding; - - return $this; - } - /** - * Gets bluray_region - * - * @return string|null - */ - public function getBlurayRegion() - { - return $this->container['bluray_region']; - } - - /** - * Sets bluray_region - * - * @param string|null $bluray_region The Bluray region attribute of the item. - * - * @return self - */ - public function setBlurayRegion($bluray_region) - { - $this->container['bluray_region'] = $bluray_region; - - return $this; - } - /** - * Gets brand - * - * @return string|null - */ - public function getBrand() - { - return $this->container['brand']; - } - - /** - * Sets brand - * - * @param string|null $brand The brand attribute of the item. - * - * @return self - */ - public function setBrand($brand) - { - $this->container['brand'] = $brand; - - return $this; - } - /** - * Gets cero_age_rating - * - * @return string|null - */ - public function getCeroAgeRating() - { - return $this->container['cero_age_rating']; - } - - /** - * Sets cero_age_rating - * - * @param string|null $cero_age_rating The CERO age rating attribute of the item. - * - * @return self - */ - public function setCeroAgeRating($cero_age_rating) - { - $this->container['cero_age_rating'] = $cero_age_rating; - - return $this; - } - /** - * Gets chain_type - * - * @return string|null - */ - public function getChainType() - { - return $this->container['chain_type']; - } - - /** - * Sets chain_type - * - * @param string|null $chain_type The chain type attribute of the item. - * - * @return self - */ - public function setChainType($chain_type) - { - $this->container['chain_type'] = $chain_type; - - return $this; - } - /** - * Gets clasp_type - * - * @return string|null - */ - public function getClaspType() - { - return $this->container['clasp_type']; - } - - /** - * Sets clasp_type - * - * @param string|null $clasp_type The clasp type attribute of the item. - * - * @return self - */ - public function setClaspType($clasp_type) - { - $this->container['clasp_type'] = $clasp_type; - - return $this; - } - /** - * Gets color - * - * @return string|null - */ - public function getColor() - { - return $this->container['color']; - } - - /** - * Sets color - * - * @param string|null $color The color attribute of the item. - * - * @return self - */ - public function setColor($color) - { - $this->container['color'] = $color; - - return $this; - } - /** - * Gets cpu_manufacturer - * - * @return string|null - */ - public function getCpuManufacturer() - { - return $this->container['cpu_manufacturer']; - } - - /** - * Sets cpu_manufacturer - * - * @param string|null $cpu_manufacturer The CPU manufacturer attribute of the item. - * - * @return self - */ - public function setCpuManufacturer($cpu_manufacturer) - { - $this->container['cpu_manufacturer'] = $cpu_manufacturer; - - return $this; - } - /** - * Gets cpu_speed - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getCpuSpeed() - { - return $this->container['cpu_speed']; - } - - /** - * Sets cpu_speed - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $cpu_speed cpu_speed - * - * @return self - */ - public function setCpuSpeed($cpu_speed) - { - $this->container['cpu_speed'] = $cpu_speed; - - return $this; - } - /** - * Gets cpu_type - * - * @return string|null - */ - public function getCpuType() - { - return $this->container['cpu_type']; - } - - /** - * Sets cpu_type - * - * @param string|null $cpu_type The CPU type attribute of the item. - * - * @return self - */ - public function setCpuType($cpu_type) - { - $this->container['cpu_type'] = $cpu_type; - - return $this; - } - /** - * Gets creator - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\CreatorType[]|null - */ - public function getCreator() - { - return $this->container['creator']; - } - - /** - * Sets creator - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\CreatorType[]|null $creator The creator attributes of the item. - * - * @return self - */ - public function setCreator($creator) - { - $this->container['creator'] = $creator; - - return $this; - } - /** - * Gets department - * - * @return string|null - */ - public function getDepartment() - { - return $this->container['department']; - } - - /** - * Sets department - * - * @param string|null $department The department attribute of the item. - * - * @return self - */ - public function setDepartment($department) - { - $this->container['department'] = $department; - - return $this; - } - /** - * Gets director - * - * @return string[]|null - */ - public function getDirector() - { - return $this->container['director']; - } - - /** - * Sets director - * - * @param string[]|null $director The director attributes of the item. - * - * @return self - */ - public function setDirector($director) - { - $this->container['director'] = $director; - - return $this; - } - /** - * Gets display_size - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getDisplaySize() - { - return $this->container['display_size']; - } - - /** - * Sets display_size - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $display_size display_size - * - * @return self - */ - public function setDisplaySize($display_size) - { - $this->container['display_size'] = $display_size; - - return $this; - } - /** - * Gets edition - * - * @return string|null - */ - public function getEdition() - { - return $this->container['edition']; - } - - /** - * Sets edition - * - * @param string|null $edition The edition attribute of the item. - * - * @return self - */ - public function setEdition($edition) - { - $this->container['edition'] = $edition; - - return $this; - } - /** - * Gets episode_sequence - * - * @return string|null - */ - public function getEpisodeSequence() - { - return $this->container['episode_sequence']; - } - - /** - * Sets episode_sequence - * - * @param string|null $episode_sequence The episode sequence attribute of the item. - * - * @return self - */ - public function setEpisodeSequence($episode_sequence) - { - $this->container['episode_sequence'] = $episode_sequence; - - return $this; - } - /** - * Gets esrb_age_rating - * - * @return string|null - */ - public function getEsrbAgeRating() - { - return $this->container['esrb_age_rating']; - } - - /** - * Sets esrb_age_rating - * - * @param string|null $esrb_age_rating The ESRB age rating attribute of the item. - * - * @return self - */ - public function setEsrbAgeRating($esrb_age_rating) - { - $this->container['esrb_age_rating'] = $esrb_age_rating; - - return $this; - } - /** - * Gets feature - * - * @return string[]|null - */ - public function getFeature() - { - return $this->container['feature']; - } - - /** - * Sets feature - * - * @param string[]|null $feature The feature attributes of the item - * - * @return self - */ - public function setFeature($feature) - { - $this->container['feature'] = $feature; - - return $this; - } - /** - * Gets flavor - * - * @return string|null - */ - public function getFlavor() - { - return $this->container['flavor']; - } - - /** - * Sets flavor - * - * @param string|null $flavor The flavor attribute of the item. - * - * @return self - */ - public function setFlavor($flavor) - { - $this->container['flavor'] = $flavor; - - return $this; - } - /** - * Gets format - * - * @return string[]|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string[]|null $format The format attributes of the item. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - /** - * Gets gem_type - * - * @return string[]|null - */ - public function getGemType() - { - return $this->container['gem_type']; - } - - /** - * Sets gem_type - * - * @param string[]|null $gem_type The gem type attributes of the item. - * - * @return self - */ - public function setGemType($gem_type) - { - $this->container['gem_type'] = $gem_type; - - return $this; - } - /** - * Gets genre - * - * @return string|null - */ - public function getGenre() - { - return $this->container['genre']; - } - - /** - * Sets genre - * - * @param string|null $genre The genre attribute of the item. - * - * @return self - */ - public function setGenre($genre) - { - $this->container['genre'] = $genre; - - return $this; - } - /** - * Gets golf_club_flex - * - * @return string|null - */ - public function getGolfClubFlex() - { - return $this->container['golf_club_flex']; - } - - /** - * Sets golf_club_flex - * - * @param string|null $golf_club_flex The golf club flex attribute of the item. - * - * @return self - */ - public function setGolfClubFlex($golf_club_flex) - { - $this->container['golf_club_flex'] = $golf_club_flex; - - return $this; - } - /** - * Gets golf_club_loft - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getGolfClubLoft() - { - return $this->container['golf_club_loft']; - } - - /** - * Sets golf_club_loft - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $golf_club_loft golf_club_loft - * - * @return self - */ - public function setGolfClubLoft($golf_club_loft) - { - $this->container['golf_club_loft'] = $golf_club_loft; - - return $this; - } - /** - * Gets hand_orientation - * - * @return string|null - */ - public function getHandOrientation() - { - return $this->container['hand_orientation']; - } - - /** - * Sets hand_orientation - * - * @param string|null $hand_orientation The hand orientation attribute of the item. - * - * @return self - */ - public function setHandOrientation($hand_orientation) - { - $this->container['hand_orientation'] = $hand_orientation; - - return $this; - } - /** - * Gets hard_disk_interface - * - * @return string|null - */ - public function getHardDiskInterface() - { - return $this->container['hard_disk_interface']; - } - - /** - * Sets hard_disk_interface - * - * @param string|null $hard_disk_interface The hard disk interface attribute of the item. - * - * @return self - */ - public function setHardDiskInterface($hard_disk_interface) - { - $this->container['hard_disk_interface'] = $hard_disk_interface; - - return $this; - } - /** - * Gets hard_disk_size - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getHardDiskSize() - { - return $this->container['hard_disk_size']; - } - - /** - * Sets hard_disk_size - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $hard_disk_size hard_disk_size - * - * @return self - */ - public function setHardDiskSize($hard_disk_size) - { - $this->container['hard_disk_size'] = $hard_disk_size; - - return $this; - } - /** - * Gets hardware_platform - * - * @return string|null - */ - public function getHardwarePlatform() - { - return $this->container['hardware_platform']; - } - - /** - * Sets hardware_platform - * - * @param string|null $hardware_platform The hardware platform attribute of the item. - * - * @return self - */ - public function setHardwarePlatform($hardware_platform) - { - $this->container['hardware_platform'] = $hardware_platform; - - return $this; - } - /** - * Gets hazardous_material_type - * - * @return string|null - */ - public function getHazardousMaterialType() - { - return $this->container['hazardous_material_type']; - } - - /** - * Sets hazardous_material_type - * - * @param string|null $hazardous_material_type The hazardous material type attribute of the item. - * - * @return self - */ - public function setHazardousMaterialType($hazardous_material_type) - { - $this->container['hazardous_material_type'] = $hazardous_material_type; - - return $this; - } - /** - * Gets item_dimensions - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null - */ - public function getItemDimensions() - { - return $this->container['item_dimensions']; - } - - /** - * Sets item_dimensions - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null $item_dimensions item_dimensions - * - * @return self - */ - public function setItemDimensions($item_dimensions) - { - $this->container['item_dimensions'] = $item_dimensions; - - return $this; - } - /** - * Gets is_adult_product - * - * @return bool|null - */ - public function getIsAdultProduct() - { - return $this->container['is_adult_product']; - } - - /** - * Sets is_adult_product - * - * @param bool|null $is_adult_product The adult product attribute of the item. - * - * @return self - */ - public function setIsAdultProduct($is_adult_product) - { - $this->container['is_adult_product'] = $is_adult_product; - - return $this; - } - /** - * Gets is_autographed - * - * @return bool|null - */ - public function getIsAutographed() - { - return $this->container['is_autographed']; - } - - /** - * Sets is_autographed - * - * @param bool|null $is_autographed The autographed attribute of the item. - * - * @return self - */ - public function setIsAutographed($is_autographed) - { - $this->container['is_autographed'] = $is_autographed; - - return $this; - } - /** - * Gets is_eligible_for_trade_in - * - * @return bool|null - */ - public function getIsEligibleForTradeIn() - { - return $this->container['is_eligible_for_trade_in']; - } - - /** - * Sets is_eligible_for_trade_in - * - * @param bool|null $is_eligible_for_trade_in The is eligible for trade in attribute of the item. - * - * @return self - */ - public function setIsEligibleForTradeIn($is_eligible_for_trade_in) - { - $this->container['is_eligible_for_trade_in'] = $is_eligible_for_trade_in; - - return $this; - } - /** - * Gets is_memorabilia - * - * @return bool|null - */ - public function getIsMemorabilia() - { - return $this->container['is_memorabilia']; - } - - /** - * Sets is_memorabilia - * - * @param bool|null $is_memorabilia The is memorabilia attribute of the item. - * - * @return self - */ - public function setIsMemorabilia($is_memorabilia) - { - $this->container['is_memorabilia'] = $is_memorabilia; - - return $this; - } - /** - * Gets issues_per_year - * - * @return string|null - */ - public function getIssuesPerYear() - { - return $this->container['issues_per_year']; - } - - /** - * Sets issues_per_year - * - * @param string|null $issues_per_year The issues per year attribute of the item. - * - * @return self - */ - public function setIssuesPerYear($issues_per_year) - { - $this->container['issues_per_year'] = $issues_per_year; - - return $this; - } - /** - * Gets item_part_number - * - * @return string|null - */ - public function getItemPartNumber() - { - return $this->container['item_part_number']; - } - - /** - * Sets item_part_number - * - * @param string|null $item_part_number The item part number attribute of the item. - * - * @return self - */ - public function setItemPartNumber($item_part_number) - { - $this->container['item_part_number'] = $item_part_number; - - return $this; - } - /** - * Gets label - * - * @return string|null - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param string|null $label The label attribute of the item. - * - * @return self - */ - public function setLabel($label) - { - $this->container['label'] = $label; - - return $this; - } - /** - * Gets languages - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\LanguageType[]|null - */ - public function getLanguages() - { - return $this->container['languages']; - } - - /** - * Sets languages - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\LanguageType[]|null $languages The languages attribute of the item. - * - * @return self - */ - public function setLanguages($languages) - { - $this->container['languages'] = $languages; - - return $this; - } - /** - * Gets legal_disclaimer - * - * @return string|null - */ - public function getLegalDisclaimer() - { - return $this->container['legal_disclaimer']; - } - - /** - * Sets legal_disclaimer - * - * @param string|null $legal_disclaimer The legal disclaimer attribute of the item. - * - * @return self - */ - public function setLegalDisclaimer($legal_disclaimer) - { - $this->container['legal_disclaimer'] = $legal_disclaimer; - - return $this; - } - /** - * Gets list_price - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Price|null - */ - public function getListPrice() - { - return $this->container['list_price']; - } - - /** - * Sets list_price - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Price|null $list_price list_price - * - * @return self - */ - public function setListPrice($list_price) - { - $this->container['list_price'] = $list_price; - - return $this; - } - /** - * Gets manufacturer - * - * @return string|null - */ - public function getManufacturer() - { - return $this->container['manufacturer']; - } - - /** - * Sets manufacturer - * - * @param string|null $manufacturer The manufacturer attribute of the item. - * - * @return self - */ - public function setManufacturer($manufacturer) - { - $this->container['manufacturer'] = $manufacturer; - - return $this; - } - /** - * Gets manufacturer_maximum_age - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getManufacturerMaximumAge() - { - return $this->container['manufacturer_maximum_age']; - } - - /** - * Sets manufacturer_maximum_age - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $manufacturer_maximum_age manufacturer_maximum_age - * - * @return self - */ - public function setManufacturerMaximumAge($manufacturer_maximum_age) - { - $this->container['manufacturer_maximum_age'] = $manufacturer_maximum_age; - - return $this; - } - /** - * Gets manufacturer_minimum_age - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getManufacturerMinimumAge() - { - return $this->container['manufacturer_minimum_age']; - } - - /** - * Sets manufacturer_minimum_age - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $manufacturer_minimum_age manufacturer_minimum_age - * - * @return self - */ - public function setManufacturerMinimumAge($manufacturer_minimum_age) - { - $this->container['manufacturer_minimum_age'] = $manufacturer_minimum_age; - - return $this; - } - /** - * Gets manufacturer_parts_warranty_description - * - * @return string|null - */ - public function getManufacturerPartsWarrantyDescription() - { - return $this->container['manufacturer_parts_warranty_description']; - } - - /** - * Sets manufacturer_parts_warranty_description - * - * @param string|null $manufacturer_parts_warranty_description The manufacturer parts warranty description attribute of the item. - * - * @return self - */ - public function setManufacturerPartsWarrantyDescription($manufacturer_parts_warranty_description) - { - $this->container['manufacturer_parts_warranty_description'] = $manufacturer_parts_warranty_description; - - return $this; - } - /** - * Gets material_type - * - * @return string[]|null - */ - public function getMaterialType() - { - return $this->container['material_type']; - } - - /** - * Sets material_type - * - * @param string[]|null $material_type The material type attributes of the item. - * - * @return self - */ - public function setMaterialType($material_type) - { - $this->container['material_type'] = $material_type; - - return $this; - } - /** - * Gets maximum_resolution - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getMaximumResolution() - { - return $this->container['maximum_resolution']; - } - - /** - * Sets maximum_resolution - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $maximum_resolution maximum_resolution - * - * @return self - */ - public function setMaximumResolution($maximum_resolution) - { - $this->container['maximum_resolution'] = $maximum_resolution; - - return $this; - } - /** - * Gets media_type - * - * @return string[]|null - */ - public function getMediaType() - { - return $this->container['media_type']; - } - - /** - * Sets media_type - * - * @param string[]|null $media_type The media type attributes of the item. - * - * @return self - */ - public function setMediaType($media_type) - { - $this->container['media_type'] = $media_type; - - return $this; - } - /** - * Gets metal_stamp - * - * @return string|null - */ - public function getMetalStamp() - { - return $this->container['metal_stamp']; - } - - /** - * Sets metal_stamp - * - * @param string|null $metal_stamp The metal stamp attribute of the item. - * - * @return self - */ - public function setMetalStamp($metal_stamp) - { - $this->container['metal_stamp'] = $metal_stamp; - - return $this; - } - /** - * Gets metal_type - * - * @return string|null - */ - public function getMetalType() - { - return $this->container['metal_type']; - } - - /** - * Sets metal_type - * - * @param string|null $metal_type The metal type attribute of the item. - * - * @return self - */ - public function setMetalType($metal_type) - { - $this->container['metal_type'] = $metal_type; - - return $this; - } - /** - * Gets model - * - * @return string|null - */ - public function getModel() - { - return $this->container['model']; - } - - /** - * Sets model - * - * @param string|null $model The model attribute of the item. - * - * @return self - */ - public function setModel($model) - { - $this->container['model'] = $model; - - return $this; - } - /** - * Gets number_of_discs - * - * @return int|null - */ - public function getNumberOfDiscs() - { - return $this->container['number_of_discs']; - } - - /** - * Sets number_of_discs - * - * @param int|null $number_of_discs The number of discs attribute of the item. - * - * @return self - */ - public function setNumberOfDiscs($number_of_discs) - { - $this->container['number_of_discs'] = $number_of_discs; - - return $this; - } - /** - * Gets number_of_issues - * - * @return int|null - */ - public function getNumberOfIssues() - { - return $this->container['number_of_issues']; - } - - /** - * Sets number_of_issues - * - * @param int|null $number_of_issues The number of issues attribute of the item. - * - * @return self - */ - public function setNumberOfIssues($number_of_issues) - { - $this->container['number_of_issues'] = $number_of_issues; - - return $this; - } - /** - * Gets number_of_items - * - * @return int|null - */ - public function getNumberOfItems() - { - return $this->container['number_of_items']; - } - - /** - * Sets number_of_items - * - * @param int|null $number_of_items The number of items attribute of the item. - * - * @return self - */ - public function setNumberOfItems($number_of_items) - { - $this->container['number_of_items'] = $number_of_items; - - return $this; - } - /** - * Gets number_of_pages - * - * @return int|null - */ - public function getNumberOfPages() - { - return $this->container['number_of_pages']; - } - - /** - * Sets number_of_pages - * - * @param int|null $number_of_pages The number of pages attribute of the item. - * - * @return self - */ - public function setNumberOfPages($number_of_pages) - { - $this->container['number_of_pages'] = $number_of_pages; - - return $this; - } - /** - * Gets number_of_tracks - * - * @return int|null - */ - public function getNumberOfTracks() - { - return $this->container['number_of_tracks']; - } - - /** - * Sets number_of_tracks - * - * @param int|null $number_of_tracks The number of tracks attribute of the item. - * - * @return self - */ - public function setNumberOfTracks($number_of_tracks) - { - $this->container['number_of_tracks'] = $number_of_tracks; - - return $this; - } - /** - * Gets operating_system - * - * @return string[]|null - */ - public function getOperatingSystem() - { - return $this->container['operating_system']; - } - - /** - * Sets operating_system - * - * @param string[]|null $operating_system The operating system attributes of the item. - * - * @return self - */ - public function setOperatingSystem($operating_system) - { - $this->container['operating_system'] = $operating_system; - - return $this; - } - /** - * Gets optical_zoom - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getOpticalZoom() - { - return $this->container['optical_zoom']; - } - - /** - * Sets optical_zoom - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $optical_zoom optical_zoom - * - * @return self - */ - public function setOpticalZoom($optical_zoom) - { - $this->container['optical_zoom'] = $optical_zoom; - - return $this; - } - /** - * Gets package_dimensions - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null - */ - public function getPackageDimensions() - { - return $this->container['package_dimensions']; - } - - /** - * Sets package_dimensions - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null $package_dimensions package_dimensions - * - * @return self - */ - public function setPackageDimensions($package_dimensions) - { - $this->container['package_dimensions'] = $package_dimensions; - - return $this; - } - /** - * Gets package_quantity - * - * @return int|null - */ - public function getPackageQuantity() - { - return $this->container['package_quantity']; - } - - /** - * Sets package_quantity - * - * @param int|null $package_quantity The package quantity attribute of the item. - * - * @return self - */ - public function setPackageQuantity($package_quantity) - { - $this->container['package_quantity'] = $package_quantity; - - return $this; - } - /** - * Gets part_number - * - * @return string|null - */ - public function getPartNumber() - { - return $this->container['part_number']; - } - - /** - * Sets part_number - * - * @param string|null $part_number The part number attribute of the item. - * - * @return self - */ - public function setPartNumber($part_number) - { - $this->container['part_number'] = $part_number; - - return $this; - } - /** - * Gets pegi_rating - * - * @return string|null - */ - public function getPegiRating() - { - return $this->container['pegi_rating']; - } - - /** - * Sets pegi_rating - * - * @param string|null $pegi_rating The PEGI rating attribute of the item. - * - * @return self - */ - public function setPegiRating($pegi_rating) - { - $this->container['pegi_rating'] = $pegi_rating; - - return $this; - } - /** - * Gets platform - * - * @return string[]|null - */ - public function getPlatform() - { - return $this->container['platform']; - } - - /** - * Sets platform - * - * @param string[]|null $platform The platform attributes of the item. - * - * @return self - */ - public function setPlatform($platform) - { - $this->container['platform'] = $platform; - - return $this; - } - /** - * Gets processor_count - * - * @return int|null - */ - public function getProcessorCount() - { - return $this->container['processor_count']; - } - - /** - * Sets processor_count - * - * @param int|null $processor_count The processor count attribute of the item. - * - * @return self - */ - public function setProcessorCount($processor_count) - { - $this->container['processor_count'] = $processor_count; - - return $this; - } - /** - * Gets product_group - * - * @return string|null - */ - public function getProductGroup() - { - return $this->container['product_group']; - } - - /** - * Sets product_group - * - * @param string|null $product_group The product group attribute of the item. - * - * @return self - */ - public function setProductGroup($product_group) - { - $this->container['product_group'] = $product_group; - - return $this; - } - /** - * Gets product_type_name - * - * @return string|null - */ - public function getProductTypeName() - { - return $this->container['product_type_name']; - } - - /** - * Sets product_type_name - * - * @param string|null $product_type_name The product type name attribute of the item. - * - * @return self - */ - public function setProductTypeName($product_type_name) - { - $this->container['product_type_name'] = $product_type_name; - - return $this; - } - /** - * Gets product_type_subcategory - * - * @return string|null - */ - public function getProductTypeSubcategory() - { - return $this->container['product_type_subcategory']; - } - - /** - * Sets product_type_subcategory - * - * @param string|null $product_type_subcategory The product type subcategory attribute of the item. - * - * @return self - */ - public function setProductTypeSubcategory($product_type_subcategory) - { - $this->container['product_type_subcategory'] = $product_type_subcategory; - - return $this; - } - /** - * Gets publication_date - * - * @return string|null - */ - public function getPublicationDate() - { - return $this->container['publication_date']; - } - - /** - * Sets publication_date - * - * @param string|null $publication_date The publication date attribute of the item. - * - * @return self - */ - public function setPublicationDate($publication_date) - { - $this->container['publication_date'] = $publication_date; - - return $this; - } - /** - * Gets publisher - * - * @return string|null - */ - public function getPublisher() - { - return $this->container['publisher']; - } - - /** - * Sets publisher - * - * @param string|null $publisher The publisher attribute of the item. - * - * @return self - */ - public function setPublisher($publisher) - { - $this->container['publisher'] = $publisher; - - return $this; - } - /** - * Gets region_code - * - * @return string|null - */ - public function getRegionCode() - { - return $this->container['region_code']; - } - - /** - * Sets region_code - * - * @param string|null $region_code The region code attribute of the item. - * - * @return self - */ - public function setRegionCode($region_code) - { - $this->container['region_code'] = $region_code; - - return $this; - } - /** - * Gets release_date - * - * @return string|null - */ - public function getReleaseDate() - { - return $this->container['release_date']; - } - - /** - * Sets release_date - * - * @param string|null $release_date The release date attribute of the item. - * - * @return self - */ - public function setReleaseDate($release_date) - { - $this->container['release_date'] = $release_date; - - return $this; - } - /** - * Gets ring_size - * - * @return string|null - */ - public function getRingSize() - { - return $this->container['ring_size']; - } - - /** - * Sets ring_size - * - * @param string|null $ring_size The ring size attribute of the item. - * - * @return self - */ - public function setRingSize($ring_size) - { - $this->container['ring_size'] = $ring_size; - - return $this; - } - /** - * Gets running_time - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getRunningTime() - { - return $this->container['running_time']; - } - - /** - * Sets running_time - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $running_time running_time - * - * @return self - */ - public function setRunningTime($running_time) - { - $this->container['running_time'] = $running_time; - - return $this; - } - /** - * Gets shaft_material - * - * @return string|null - */ - public function getShaftMaterial() - { - return $this->container['shaft_material']; - } - - /** - * Sets shaft_material - * - * @param string|null $shaft_material The shaft material attribute of the item. - * - * @return self - */ - public function setShaftMaterial($shaft_material) - { - $this->container['shaft_material'] = $shaft_material; - - return $this; - } - /** - * Gets scent - * - * @return string|null - */ - public function getScent() - { - return $this->container['scent']; - } - - /** - * Sets scent - * - * @param string|null $scent The scent attribute of the item. - * - * @return self - */ - public function setScent($scent) - { - $this->container['scent'] = $scent; - - return $this; - } - /** - * Gets season_sequence - * - * @return string|null - */ - public function getSeasonSequence() - { - return $this->container['season_sequence']; - } - - /** - * Sets season_sequence - * - * @param string|null $season_sequence The season sequence attribute of the item. - * - * @return self - */ - public function setSeasonSequence($season_sequence) - { - $this->container['season_sequence'] = $season_sequence; - - return $this; - } - /** - * Gets seikodo_product_code - * - * @return string|null - */ - public function getSeikodoProductCode() - { - return $this->container['seikodo_product_code']; - } - - /** - * Sets seikodo_product_code - * - * @param string|null $seikodo_product_code The Seikodo product code attribute of the item. - * - * @return self - */ - public function setSeikodoProductCode($seikodo_product_code) - { - $this->container['seikodo_product_code'] = $seikodo_product_code; - - return $this; - } - /** - * Gets size - * - * @return string|null - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param string|null $size The size attribute of the item. - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets size_per_pearl - * - * @return string|null - */ - public function getSizePerPearl() - { - return $this->container['size_per_pearl']; - } - - /** - * Sets size_per_pearl - * - * @param string|null $size_per_pearl The size per pearl attribute of the item. - * - * @return self - */ - public function setSizePerPearl($size_per_pearl) - { - $this->container['size_per_pearl'] = $size_per_pearl; - - return $this; - } - /** - * Gets small_image - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Image|null - */ - public function getSmallImage() - { - return $this->container['small_image']; - } - - /** - * Sets small_image - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Image|null $small_image small_image - * - * @return self - */ - public function setSmallImage($small_image) - { - $this->container['small_image'] = $small_image; - - return $this; - } - /** - * Gets studio - * - * @return string|null - */ - public function getStudio() - { - return $this->container['studio']; - } - - /** - * Sets studio - * - * @param string|null $studio The studio attribute of the item. - * - * @return self - */ - public function setStudio($studio) - { - $this->container['studio'] = $studio; - - return $this; - } - /** - * Gets subscription_length - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getSubscriptionLength() - { - return $this->container['subscription_length']; - } - - /** - * Sets subscription_length - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $subscription_length subscription_length - * - * @return self - */ - public function setSubscriptionLength($subscription_length) - { - $this->container['subscription_length'] = $subscription_length; - - return $this; - } - /** - * Gets system_memory_size - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getSystemMemorySize() - { - return $this->container['system_memory_size']; - } - - /** - * Sets system_memory_size - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $system_memory_size system_memory_size - * - * @return self - */ - public function setSystemMemorySize($system_memory_size) - { - $this->container['system_memory_size'] = $system_memory_size; - - return $this; - } - /** - * Gets system_memory_type - * - * @return string|null - */ - public function getSystemMemoryType() - { - return $this->container['system_memory_type']; - } - - /** - * Sets system_memory_type - * - * @param string|null $system_memory_type The system memory type attribute of the item. - * - * @return self - */ - public function setSystemMemoryType($system_memory_type) - { - $this->container['system_memory_type'] = $system_memory_type; - - return $this; - } - /** - * Gets theatrical_release_date - * - * @return string|null - */ - public function getTheatricalReleaseDate() - { - return $this->container['theatrical_release_date']; - } - - /** - * Sets theatrical_release_date - * - * @param string|null $theatrical_release_date The theatrical release date attribute of the item. - * - * @return self - */ - public function setTheatricalReleaseDate($theatrical_release_date) - { - $this->container['theatrical_release_date'] = $theatrical_release_date; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The title attribute of the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets total_diamond_weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getTotalDiamondWeight() - { - return $this->container['total_diamond_weight']; - } - - /** - * Sets total_diamond_weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $total_diamond_weight total_diamond_weight - * - * @return self - */ - public function setTotalDiamondWeight($total_diamond_weight) - { - $this->container['total_diamond_weight'] = $total_diamond_weight; - - return $this; - } - /** - * Gets total_gem_weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getTotalGemWeight() - { - return $this->container['total_gem_weight']; - } - - /** - * Sets total_gem_weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $total_gem_weight total_gem_weight - * - * @return self - */ - public function setTotalGemWeight($total_gem_weight) - { - $this->container['total_gem_weight'] = $total_gem_weight; - - return $this; - } - /** - * Gets warranty - * - * @return string|null - */ - public function getWarranty() - { - return $this->container['warranty']; - } - - /** - * Sets warranty - * - * @param string|null $warranty The warranty attribute of the item. - * - * @return self - */ - public function setWarranty($warranty) - { - $this->container['warranty'] = $warranty; - - return $this; - } - /** - * Gets weee_tax_value - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Price|null - */ - public function getWeeeTaxValue() - { - return $this->container['weee_tax_value']; - } - - /** - * Sets weee_tax_value - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Price|null $weee_tax_value weee_tax_value - * - * @return self - */ - public function setWeeeTaxValue($weee_tax_value) - { - $this->container['weee_tax_value'] = $weee_tax_value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/Categories.php b/lib/Model/CatalogItemsV0/Categories.php deleted file mode 100644 index a484574b2..000000000 --- a/lib/Model/CatalogItemsV0/Categories.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Categories extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Categories'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_category_id' => 'string', - 'product_category_name' => 'string', - 'parent' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_category_id' => null, - 'product_category_name' => null, - 'parent' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_category_id' => 'ProductCategoryId', - 'product_category_name' => 'ProductCategoryName', - 'parent' => 'parent' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_category_id' => 'setProductCategoryId', - 'product_category_name' => 'setProductCategoryName', - 'parent' => 'setParent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_category_id' => 'getProductCategoryId', - 'product_category_name' => 'getProductCategoryName', - 'parent' => 'getParent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_category_id'] = $data['product_category_id'] ?? null; - $this->container['product_category_name'] = $data['product_category_name'] ?? null; - $this->container['parent'] = $data['parent'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets product_category_id - * - * @return string|null - */ - public function getProductCategoryId() - { - return $this->container['product_category_id']; - } - - /** - * Sets product_category_id - * - * @param string|null $product_category_id The identifier for the product category (or browse node). - * - * @return self - */ - public function setProductCategoryId($product_category_id) - { - $this->container['product_category_id'] = $product_category_id; - - return $this; - } - /** - * Gets product_category_name - * - * @return string|null - */ - public function getProductCategoryName() - { - return $this->container['product_category_name']; - } - - /** - * Sets product_category_name - * - * @param string|null $product_category_name The name of the product category (or browse node). - * - * @return self - */ - public function setProductCategoryName($product_category_name) - { - $this->container['product_category_name'] = $product_category_name; - - return $this; - } - /** - * Gets parent - * - * @return object|null - */ - public function getParent() - { - return $this->container['parent']; - } - - /** - * Sets parent - * - * @param object|null $parent The parent product category. - * - * @return self - */ - public function setParent($parent) - { - $this->container['parent'] = $parent; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/CreatorType.php b/lib/Model/CatalogItemsV0/CreatorType.php deleted file mode 100644 index 9d44e8e71..000000000 --- a/lib/Model/CatalogItemsV0/CreatorType.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreatorType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreatorType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'string', - 'role' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'role' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'role' => 'Role' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'role' => 'setRole' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'role' => 'getRole' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['role'] = $data['role'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets value - * - * @return string|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string|null $value The value of the attribute. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets role - * - * @return string|null - */ - public function getRole() - { - return $this->container['role']; - } - - /** - * Sets role - * - * @param string|null $role The role of the value. - * - * @return self - */ - public function setRole($role) - { - $this->container['role'] = $role; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/DecimalWithUnits.php b/lib/Model/CatalogItemsV0/DecimalWithUnits.php deleted file mode 100644 index d83a307e3..000000000 --- a/lib/Model/CatalogItemsV0/DecimalWithUnits.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DecimalWithUnits extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DecimalWithUnits'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'float', - 'units' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'units' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'units' => 'Units' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'units' => 'setUnits' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'units' => 'getUnits' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['units'] = $data['units'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets value - * - * @return float|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float|null $value The decimal value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets units - * - * @return string|null - */ - public function getUnits() - { - return $this->container['units']; - } - - /** - * Sets units - * - * @param string|null $units The unit of the decimal value. - * - * @return self - */ - public function setUnits($units) - { - $this->container['units'] = $units; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/DimensionType.php b/lib/Model/CatalogItemsV0/DimensionType.php deleted file mode 100644 index e9f48c954..000000000 --- a/lib/Model/CatalogItemsV0/DimensionType.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DimensionType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DimensionType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'height' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'length' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'width' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'weight' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'height' => null, - 'length' => null, - 'width' => null, - 'weight' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'height' => 'Height', - 'length' => 'Length', - 'width' => 'Width', - 'weight' => 'Weight' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'height' => 'setHeight', - 'length' => 'setLength', - 'width' => 'setWidth', - 'weight' => 'setWeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'height' => 'getHeight', - 'length' => 'getLength', - 'width' => 'getWidth', - 'weight' => 'getWeight' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['height'] = $data['height'] ?? null; - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets height - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets length - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $length length - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/Error.php b/lib/Model/CatalogItemsV0/Error.php deleted file mode 100644 index 0bc608162..000000000 --- a/lib/Model/CatalogItemsV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/GetCatalogItemResponse.php b/lib/Model/CatalogItemsV0/GetCatalogItemResponse.php deleted file mode 100644 index 6e00afb92..000000000 --- a/lib/Model/CatalogItemsV0/GetCatalogItemResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetCatalogItemResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetCatalogItemResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\CatalogItemsV0\Item', - 'errors' => '\SellingPartnerApi\Model\CatalogItemsV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Item|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Item|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/IdentifierType.php b/lib/Model/CatalogItemsV0/IdentifierType.php deleted file mode 100644 index 58ba4ef0c..000000000 --- a/lib/Model/CatalogItemsV0/IdentifierType.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IdentifierType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IdentifierType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_asin' => '\SellingPartnerApi\Model\CatalogItemsV0\ASINIdentifier', - 'sku_identifier' => '\SellingPartnerApi\Model\CatalogItemsV0\SellerSKUIdentifier' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_asin' => null, - 'sku_identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_asin' => 'MarketplaceASIN', - 'sku_identifier' => 'SKUIdentifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_asin' => 'setMarketplaceAsin', - 'sku_identifier' => 'setSkuIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_asin' => 'getMarketplaceAsin', - 'sku_identifier' => 'getSkuIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_asin'] = $data['marketplace_asin'] ?? null; - $this->container['sku_identifier'] = $data['sku_identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets marketplace_asin - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\ASINIdentifier|null - */ - public function getMarketplaceAsin() - { - return $this->container['marketplace_asin']; - } - - /** - * Sets marketplace_asin - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\ASINIdentifier|null $marketplace_asin marketplace_asin - * - * @return self - */ - public function setMarketplaceAsin($marketplace_asin) - { - $this->container['marketplace_asin'] = $marketplace_asin; - - return $this; - } - /** - * Gets sku_identifier - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\SellerSKUIdentifier|null - */ - public function getSkuIdentifier() - { - return $this->container['sku_identifier']; - } - - /** - * Sets sku_identifier - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\SellerSKUIdentifier|null $sku_identifier sku_identifier - * - * @return self - */ - public function setSkuIdentifier($sku_identifier) - { - $this->container['sku_identifier'] = $sku_identifier; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/Image.php b/lib/Model/CatalogItemsV0/Image.php deleted file mode 100644 index 1484018f9..000000000 --- a/lib/Model/CatalogItemsV0/Image.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Image extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Image'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'url' => 'string', - 'height' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'width' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'url' => null, - 'height' => null, - 'width' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'url' => 'URL', - 'height' => 'Height', - 'width' => 'Width' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'url' => 'setUrl', - 'height' => 'setHeight', - 'width' => 'setWidth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'url' => 'getUrl', - 'height' => 'getHeight', - 'width' => 'getWidth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['url'] = $data['url'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['width'] = $data['width'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The image URL attribute of the item. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Gets height - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets width - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/Item.php b/lib/Model/CatalogItemsV0/Item.php deleted file mode 100644 index d62e1c511..000000000 --- a/lib/Model/CatalogItemsV0/Item.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV0\IdentifierType', - 'attribute_sets' => '\SellingPartnerApi\Model\CatalogItemsV0\AttributeSetListType[]', - 'relationships' => '\SellingPartnerApi\Model\CatalogItemsV0\RelationshipType[]', - 'sales_rankings' => '\SellingPartnerApi\Model\CatalogItemsV0\SalesRankType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'identifiers' => null, - 'attribute_sets' => null, - 'relationships' => null, - 'sales_rankings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'identifiers' => 'Identifiers', - 'attribute_sets' => 'AttributeSets', - 'relationships' => 'Relationships', - 'sales_rankings' => 'SalesRankings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'identifiers' => 'setIdentifiers', - 'attribute_sets' => 'setAttributeSets', - 'relationships' => 'setRelationships', - 'sales_rankings' => 'setSalesRankings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'identifiers' => 'getIdentifiers', - 'attribute_sets' => 'getAttributeSets', - 'relationships' => 'getRelationships', - 'sales_rankings' => 'getSalesRankings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identifiers'] = $data['identifiers'] ?? null; - $this->container['attribute_sets'] = $data['attribute_sets'] ?? null; - $this->container['relationships'] = $data['relationships'] ?? null; - $this->container['sales_rankings'] = $data['sales_rankings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['identifiers'] === null) { - $invalidProperties[] = "'identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\IdentifierType - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\IdentifierType $identifiers identifiers - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } - /** - * Gets attribute_sets - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\AttributeSetListType[]|null - */ - public function getAttributeSets() - { - return $this->container['attribute_sets']; - } - - /** - * Sets attribute_sets - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\AttributeSetListType[]|null $attribute_sets A list of attributes for the item. - * - * @return self - */ - public function setAttributeSets($attribute_sets) - { - $this->container['attribute_sets'] = $attribute_sets; - - return $this; - } - /** - * Gets relationships - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\RelationshipType[]|null - */ - public function getRelationships() - { - return $this->container['relationships']; - } - - /** - * Sets relationships - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\RelationshipType[]|null $relationships A list of variation relationship information, if applicable for the item. - * - * @return self - */ - public function setRelationships($relationships) - { - $this->container['relationships'] = $relationships; - - return $this; - } - /** - * Gets sales_rankings - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\SalesRankType[]|null - */ - public function getSalesRankings() - { - return $this->container['sales_rankings']; - } - - /** - * Sets sales_rankings - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\SalesRankType[]|null $sales_rankings A list of sales rank information for the item by category. - * - * @return self - */ - public function setSalesRankings($sales_rankings) - { - $this->container['sales_rankings'] = $sales_rankings; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/LanguageType.php b/lib/Model/CatalogItemsV0/LanguageType.php deleted file mode 100644 index c03f3910a..000000000 --- a/lib/Model/CatalogItemsV0/LanguageType.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LanguageType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LanguageType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'type' => 'string', - 'audio_format' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'type' => null, - 'audio_format' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'type' => 'Type', - 'audio_format' => 'AudioFormat' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'type' => 'setType', - 'audio_format' => 'setAudioFormat' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'type' => 'getType', - 'audio_format' => 'getAudioFormat' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['type'] = $data['type'] ?? null; - $this->container['audio_format'] = $data['audio_format'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name attribute of the item. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type The type attribute of the item. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - /** - * Gets audio_format - * - * @return string|null - */ - public function getAudioFormat() - { - return $this->container['audio_format']; - } - - /** - * Sets audio_format - * - * @param string|null $audio_format The audio format attribute of the item. - * - * @return self - */ - public function setAudioFormat($audio_format) - { - $this->container['audio_format'] = $audio_format; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/ListCatalogCategoriesResponse.php b/lib/Model/CatalogItemsV0/ListCatalogCategoriesResponse.php deleted file mode 100644 index 07eba4555..000000000 --- a/lib/Model/CatalogItemsV0/ListCatalogCategoriesResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListCatalogCategoriesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListCatalogCategoriesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\CatalogItemsV0\Categories[]', - 'errors' => '\SellingPartnerApi\Model\CatalogItemsV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Categories[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Categories[]|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/ListCatalogItemsResponse.php b/lib/Model/CatalogItemsV0/ListCatalogItemsResponse.php deleted file mode 100644 index a598e6dbd..000000000 --- a/lib/Model/CatalogItemsV0/ListCatalogItemsResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListCatalogItemsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListCatalogItemsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\CatalogItemsV0\ListMatchingItemsResponse', - 'errors' => '\SellingPartnerApi\Model\CatalogItemsV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\ListMatchingItemsResponse|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\ListMatchingItemsResponse|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/ListMatchingItemsResponse.php b/lib/Model/CatalogItemsV0/ListMatchingItemsResponse.php deleted file mode 100644 index d705bb0aa..000000000 --- a/lib/Model/CatalogItemsV0/ListMatchingItemsResponse.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListMatchingItemsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListMatchingItemsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'items' => '\SellingPartnerApi\Model\CatalogItemsV0\Item[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'items' => 'Items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets items - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\Item[]|null - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\Item[]|null $items A list of items. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/Price.php b/lib/Model/CatalogItemsV0/Price.php deleted file mode 100644 index f5a397414..000000000 --- a/lib/Model/CatalogItemsV0/Price.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Price extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Price'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'float', - 'currency_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'currency_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'Amount', - 'currency_code' => 'CurrencyCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'currency_code' => 'setCurrencyCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'currency_code' => 'getCurrencyCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['currency_code'] = $data['currency_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return float|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param float|null $amount The amount. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code of the amount. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/RelationshipType.php b/lib/Model/CatalogItemsV0/RelationshipType.php deleted file mode 100644 index 96afeed17..000000000 --- a/lib/Model/CatalogItemsV0/RelationshipType.php +++ /dev/null @@ -1,800 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RelationshipType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RelationshipType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV0\IdentifierType', - 'color' => 'string', - 'edition' => 'string', - 'flavor' => 'string', - 'gem_type' => 'string[]', - 'golf_club_flex' => 'string', - 'hand_orientation' => 'string', - 'hardware_platform' => 'string', - 'material_type' => 'string[]', - 'metal_type' => 'string', - 'model' => 'string', - 'operating_system' => 'string[]', - 'product_type_subcategory' => 'string', - 'ring_size' => 'string', - 'shaft_material' => 'string', - 'scent' => 'string', - 'size' => 'string', - 'size_per_pearl' => 'string', - 'golf_club_loft' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'total_diamond_weight' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'total_gem_weight' => '\SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits', - 'package_quantity' => 'int', - 'item_dimensions' => '\SellingPartnerApi\Model\CatalogItemsV0\DimensionType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'identifiers' => null, - 'color' => null, - 'edition' => null, - 'flavor' => null, - 'gem_type' => null, - 'golf_club_flex' => null, - 'hand_orientation' => null, - 'hardware_platform' => null, - 'material_type' => null, - 'metal_type' => null, - 'model' => null, - 'operating_system' => null, - 'product_type_subcategory' => null, - 'ring_size' => null, - 'shaft_material' => null, - 'scent' => null, - 'size' => null, - 'size_per_pearl' => null, - 'golf_club_loft' => null, - 'total_diamond_weight' => null, - 'total_gem_weight' => null, - 'package_quantity' => null, - 'item_dimensions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'identifiers' => 'Identifiers', - 'color' => 'Color', - 'edition' => 'Edition', - 'flavor' => 'Flavor', - 'gem_type' => 'GemType', - 'golf_club_flex' => 'GolfClubFlex', - 'hand_orientation' => 'HandOrientation', - 'hardware_platform' => 'HardwarePlatform', - 'material_type' => 'MaterialType', - 'metal_type' => 'MetalType', - 'model' => 'Model', - 'operating_system' => 'OperatingSystem', - 'product_type_subcategory' => 'ProductTypeSubcategory', - 'ring_size' => 'RingSize', - 'shaft_material' => 'ShaftMaterial', - 'scent' => 'Scent', - 'size' => 'Size', - 'size_per_pearl' => 'SizePerPearl', - 'golf_club_loft' => 'GolfClubLoft', - 'total_diamond_weight' => 'TotalDiamondWeight', - 'total_gem_weight' => 'TotalGemWeight', - 'package_quantity' => 'PackageQuantity', - 'item_dimensions' => 'ItemDimensions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'identifiers' => 'setIdentifiers', - 'color' => 'setColor', - 'edition' => 'setEdition', - 'flavor' => 'setFlavor', - 'gem_type' => 'setGemType', - 'golf_club_flex' => 'setGolfClubFlex', - 'hand_orientation' => 'setHandOrientation', - 'hardware_platform' => 'setHardwarePlatform', - 'material_type' => 'setMaterialType', - 'metal_type' => 'setMetalType', - 'model' => 'setModel', - 'operating_system' => 'setOperatingSystem', - 'product_type_subcategory' => 'setProductTypeSubcategory', - 'ring_size' => 'setRingSize', - 'shaft_material' => 'setShaftMaterial', - 'scent' => 'setScent', - 'size' => 'setSize', - 'size_per_pearl' => 'setSizePerPearl', - 'golf_club_loft' => 'setGolfClubLoft', - 'total_diamond_weight' => 'setTotalDiamondWeight', - 'total_gem_weight' => 'setTotalGemWeight', - 'package_quantity' => 'setPackageQuantity', - 'item_dimensions' => 'setItemDimensions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'identifiers' => 'getIdentifiers', - 'color' => 'getColor', - 'edition' => 'getEdition', - 'flavor' => 'getFlavor', - 'gem_type' => 'getGemType', - 'golf_club_flex' => 'getGolfClubFlex', - 'hand_orientation' => 'getHandOrientation', - 'hardware_platform' => 'getHardwarePlatform', - 'material_type' => 'getMaterialType', - 'metal_type' => 'getMetalType', - 'model' => 'getModel', - 'operating_system' => 'getOperatingSystem', - 'product_type_subcategory' => 'getProductTypeSubcategory', - 'ring_size' => 'getRingSize', - 'shaft_material' => 'getShaftMaterial', - 'scent' => 'getScent', - 'size' => 'getSize', - 'size_per_pearl' => 'getSizePerPearl', - 'golf_club_loft' => 'getGolfClubLoft', - 'total_diamond_weight' => 'getTotalDiamondWeight', - 'total_gem_weight' => 'getTotalGemWeight', - 'package_quantity' => 'getPackageQuantity', - 'item_dimensions' => 'getItemDimensions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identifiers'] = $data['identifiers'] ?? null; - $this->container['color'] = $data['color'] ?? null; - $this->container['edition'] = $data['edition'] ?? null; - $this->container['flavor'] = $data['flavor'] ?? null; - $this->container['gem_type'] = $data['gem_type'] ?? null; - $this->container['golf_club_flex'] = $data['golf_club_flex'] ?? null; - $this->container['hand_orientation'] = $data['hand_orientation'] ?? null; - $this->container['hardware_platform'] = $data['hardware_platform'] ?? null; - $this->container['material_type'] = $data['material_type'] ?? null; - $this->container['metal_type'] = $data['metal_type'] ?? null; - $this->container['model'] = $data['model'] ?? null; - $this->container['operating_system'] = $data['operating_system'] ?? null; - $this->container['product_type_subcategory'] = $data['product_type_subcategory'] ?? null; - $this->container['ring_size'] = $data['ring_size'] ?? null; - $this->container['shaft_material'] = $data['shaft_material'] ?? null; - $this->container['scent'] = $data['scent'] ?? null; - $this->container['size'] = $data['size'] ?? null; - $this->container['size_per_pearl'] = $data['size_per_pearl'] ?? null; - $this->container['golf_club_loft'] = $data['golf_club_loft'] ?? null; - $this->container['total_diamond_weight'] = $data['total_diamond_weight'] ?? null; - $this->container['total_gem_weight'] = $data['total_gem_weight'] ?? null; - $this->container['package_quantity'] = $data['package_quantity'] ?? null; - $this->container['item_dimensions'] = $data['item_dimensions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\IdentifierType|null - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\IdentifierType|null $identifiers identifiers - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } - /** - * Gets color - * - * @return string|null - */ - public function getColor() - { - return $this->container['color']; - } - - /** - * Sets color - * - * @param string|null $color The color variation of the item. - * - * @return self - */ - public function setColor($color) - { - $this->container['color'] = $color; - - return $this; - } - /** - * Gets edition - * - * @return string|null - */ - public function getEdition() - { - return $this->container['edition']; - } - - /** - * Sets edition - * - * @param string|null $edition The edition variation of the item. - * - * @return self - */ - public function setEdition($edition) - { - $this->container['edition'] = $edition; - - return $this; - } - /** - * Gets flavor - * - * @return string|null - */ - public function getFlavor() - { - return $this->container['flavor']; - } - - /** - * Sets flavor - * - * @param string|null $flavor The flavor variation of the item. - * - * @return self - */ - public function setFlavor($flavor) - { - $this->container['flavor'] = $flavor; - - return $this; - } - /** - * Gets gem_type - * - * @return string[]|null - */ - public function getGemType() - { - return $this->container['gem_type']; - } - - /** - * Sets gem_type - * - * @param string[]|null $gem_type The gem type variations of the item. - * - * @return self - */ - public function setGemType($gem_type) - { - $this->container['gem_type'] = $gem_type; - - return $this; - } - /** - * Gets golf_club_flex - * - * @return string|null - */ - public function getGolfClubFlex() - { - return $this->container['golf_club_flex']; - } - - /** - * Sets golf_club_flex - * - * @param string|null $golf_club_flex The golf club flex variation of an item. - * - * @return self - */ - public function setGolfClubFlex($golf_club_flex) - { - $this->container['golf_club_flex'] = $golf_club_flex; - - return $this; - } - /** - * Gets hand_orientation - * - * @return string|null - */ - public function getHandOrientation() - { - return $this->container['hand_orientation']; - } - - /** - * Sets hand_orientation - * - * @param string|null $hand_orientation The hand orientation variation of an item. - * - * @return self - */ - public function setHandOrientation($hand_orientation) - { - $this->container['hand_orientation'] = $hand_orientation; - - return $this; - } - /** - * Gets hardware_platform - * - * @return string|null - */ - public function getHardwarePlatform() - { - return $this->container['hardware_platform']; - } - - /** - * Sets hardware_platform - * - * @param string|null $hardware_platform The hardware platform variation of an item. - * - * @return self - */ - public function setHardwarePlatform($hardware_platform) - { - $this->container['hardware_platform'] = $hardware_platform; - - return $this; - } - /** - * Gets material_type - * - * @return string[]|null - */ - public function getMaterialType() - { - return $this->container['material_type']; - } - - /** - * Sets material_type - * - * @param string[]|null $material_type The material type variations of an item. - * - * @return self - */ - public function setMaterialType($material_type) - { - $this->container['material_type'] = $material_type; - - return $this; - } - /** - * Gets metal_type - * - * @return string|null - */ - public function getMetalType() - { - return $this->container['metal_type']; - } - - /** - * Sets metal_type - * - * @param string|null $metal_type The metal type variation of an item. - * - * @return self - */ - public function setMetalType($metal_type) - { - $this->container['metal_type'] = $metal_type; - - return $this; - } - /** - * Gets model - * - * @return string|null - */ - public function getModel() - { - return $this->container['model']; - } - - /** - * Sets model - * - * @param string|null $model The model variation of an item. - * - * @return self - */ - public function setModel($model) - { - $this->container['model'] = $model; - - return $this; - } - /** - * Gets operating_system - * - * @return string[]|null - */ - public function getOperatingSystem() - { - return $this->container['operating_system']; - } - - /** - * Sets operating_system - * - * @param string[]|null $operating_system The operating system variations of an item. - * - * @return self - */ - public function setOperatingSystem($operating_system) - { - $this->container['operating_system'] = $operating_system; - - return $this; - } - /** - * Gets product_type_subcategory - * - * @return string|null - */ - public function getProductTypeSubcategory() - { - return $this->container['product_type_subcategory']; - } - - /** - * Sets product_type_subcategory - * - * @param string|null $product_type_subcategory The product type subcategory variation of an item. - * - * @return self - */ - public function setProductTypeSubcategory($product_type_subcategory) - { - $this->container['product_type_subcategory'] = $product_type_subcategory; - - return $this; - } - /** - * Gets ring_size - * - * @return string|null - */ - public function getRingSize() - { - return $this->container['ring_size']; - } - - /** - * Sets ring_size - * - * @param string|null $ring_size The ring size variation of an item. - * - * @return self - */ - public function setRingSize($ring_size) - { - $this->container['ring_size'] = $ring_size; - - return $this; - } - /** - * Gets shaft_material - * - * @return string|null - */ - public function getShaftMaterial() - { - return $this->container['shaft_material']; - } - - /** - * Sets shaft_material - * - * @param string|null $shaft_material The shaft material variation of an item. - * - * @return self - */ - public function setShaftMaterial($shaft_material) - { - $this->container['shaft_material'] = $shaft_material; - - return $this; - } - /** - * Gets scent - * - * @return string|null - */ - public function getScent() - { - return $this->container['scent']; - } - - /** - * Sets scent - * - * @param string|null $scent The scent variation of an item. - * - * @return self - */ - public function setScent($scent) - { - $this->container['scent'] = $scent; - - return $this; - } - /** - * Gets size - * - * @return string|null - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param string|null $size The size variation of an item. - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets size_per_pearl - * - * @return string|null - */ - public function getSizePerPearl() - { - return $this->container['size_per_pearl']; - } - - /** - * Sets size_per_pearl - * - * @param string|null $size_per_pearl The size per pearl variation of an item. - * - * @return self - */ - public function setSizePerPearl($size_per_pearl) - { - $this->container['size_per_pearl'] = $size_per_pearl; - - return $this; - } - /** - * Gets golf_club_loft - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getGolfClubLoft() - { - return $this->container['golf_club_loft']; - } - - /** - * Sets golf_club_loft - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $golf_club_loft golf_club_loft - * - * @return self - */ - public function setGolfClubLoft($golf_club_loft) - { - $this->container['golf_club_loft'] = $golf_club_loft; - - return $this; - } - /** - * Gets total_diamond_weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getTotalDiamondWeight() - { - return $this->container['total_diamond_weight']; - } - - /** - * Sets total_diamond_weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $total_diamond_weight total_diamond_weight - * - * @return self - */ - public function setTotalDiamondWeight($total_diamond_weight) - { - $this->container['total_diamond_weight'] = $total_diamond_weight; - - return $this; - } - /** - * Gets total_gem_weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null - */ - public function getTotalGemWeight() - { - return $this->container['total_gem_weight']; - } - - /** - * Sets total_gem_weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DecimalWithUnits|null $total_gem_weight total_gem_weight - * - * @return self - */ - public function setTotalGemWeight($total_gem_weight) - { - $this->container['total_gem_weight'] = $total_gem_weight; - - return $this; - } - /** - * Gets package_quantity - * - * @return int|null - */ - public function getPackageQuantity() - { - return $this->container['package_quantity']; - } - - /** - * Sets package_quantity - * - * @param int|null $package_quantity The package quantity variation of an item. - * - * @return self - */ - public function setPackageQuantity($package_quantity) - { - $this->container['package_quantity'] = $package_quantity; - - return $this; - } - /** - * Gets item_dimensions - * - * @return \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null - */ - public function getItemDimensions() - { - return $this->container['item_dimensions']; - } - - /** - * Sets item_dimensions - * - * @param \SellingPartnerApi\Model\CatalogItemsV0\DimensionType|null $item_dimensions item_dimensions - * - * @return self - */ - public function setItemDimensions($item_dimensions) - { - $this->container['item_dimensions'] = $item_dimensions; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/SalesRankType.php b/lib/Model/CatalogItemsV0/SalesRankType.php deleted file mode 100644 index 25c9c905f..000000000 --- a/lib/Model/CatalogItemsV0/SalesRankType.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SalesRankType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SalesRankType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_category_id' => 'string', - 'rank' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_category_id' => null, - 'rank' => 'int32' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_category_id' => 'ProductCategoryId', - 'rank' => 'Rank' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_category_id' => 'setProductCategoryId', - 'rank' => 'setRank' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_category_id' => 'getProductCategoryId', - 'rank' => 'getRank' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_category_id'] = $data['product_category_id'] ?? null; - $this->container['rank'] = $data['rank'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_category_id'] === null) { - $invalidProperties[] = "'product_category_id' can't be null"; - } - if ($this->container['rank'] === null) { - $invalidProperties[] = "'rank' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets product_category_id - * - * @return string - */ - public function getProductCategoryId() - { - return $this->container['product_category_id']; - } - - /** - * Sets product_category_id - * - * @param string $product_category_id Identifies the item category from which the sales rank is taken. - * - * @return self - */ - public function setProductCategoryId($product_category_id) - { - $this->container['product_category_id'] = $product_category_id; - - return $this; - } - /** - * Gets rank - * - * @return int - */ - public function getRank() - { - return $this->container['rank']; - } - - /** - * Sets rank - * - * @param int $rank The sales rank of the item within the item category. - * - * @return self - */ - public function setRank($rank) - { - $this->container['rank'] = $rank; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV0/SellerSKUIdentifier.php b/lib/Model/CatalogItemsV0/SellerSKUIdentifier.php deleted file mode 100644 index 8cf9d548f..000000000 --- a/lib/Model/CatalogItemsV0/SellerSKUIdentifier.php +++ /dev/null @@ -1,228 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerSKUIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerSKUIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_id' => 'string', - 'seller_sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_id' => null, - 'seller_sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'seller_id' => 'SellerId', - 'seller_sku' => 'SellerSKU' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'seller_id' => 'setSellerId', - 'seller_sku' => 'setSellerSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'seller_id' => 'getSellerId', - 'seller_sku' => 'getSellerSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['seller_id'] === null) { - $invalidProperties[] = "'seller_id' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_id - * - * @return string - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string $seller_id The seller identifier submitted for the operation. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/BrandRefinement.php b/lib/Model/CatalogItemsV20201201/BrandRefinement.php deleted file mode 100644 index f78e4befe..000000000 --- a/lib/Model/CatalogItemsV20201201/BrandRefinement.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BrandRefinement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BrandRefinement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'brand_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'brand_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'number_of_results' => 'numberOfResults', - 'brand_name' => 'brandName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'number_of_results' => 'setNumberOfResults', - 'brand_name' => 'setBrandName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'number_of_results' => 'getNumberOfResults', - 'brand_name' => 'getBrandName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['brand_name'] = $data['brand_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['brand_name'] === null) { - $invalidProperties[] = "'brand_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results The estimated number of results that would still be returned if refinement key applied. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets brand_name - * - * @return string - */ - public function getBrandName() - { - return $this->container['brand_name']; - } - - /** - * Sets brand_name - * - * @param string $brand_name Brand name. For display and can be used as a search refinement. - * - * @return self - */ - public function setBrandName($brand_name) - { - $this->container['brand_name'] = $brand_name; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ClassificationRefinement.php b/lib/Model/CatalogItemsV20201201/ClassificationRefinement.php deleted file mode 100644 index 237abc744..000000000 --- a/lib/Model/CatalogItemsV20201201/ClassificationRefinement.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ClassificationRefinement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ClassificationRefinement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'display_name' => 'string', - 'classification_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'display_name' => null, - 'classification_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'number_of_results' => 'numberOfResults', - 'display_name' => 'displayName', - 'classification_id' => 'classificationId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'number_of_results' => 'setNumberOfResults', - 'display_name' => 'setDisplayName', - 'classification_id' => 'setClassificationId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'number_of_results' => 'getNumberOfResults', - 'display_name' => 'getDisplayName', - 'classification_id' => 'getClassificationId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['classification_id'] = $data['classification_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['display_name'] === null) { - $invalidProperties[] = "'display_name' can't be null"; - } - if ($this->container['classification_id'] === null) { - $invalidProperties[] = "'classification_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results The estimated number of results that would still be returned if refinement key applied. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets display_name - * - * @return string - */ - public function getDisplayName() - { - return $this->container['display_name']; - } - - /** - * Sets display_name - * - * @param string $display_name Display name for the classification. - * - * @return self - */ - public function setDisplayName($display_name) - { - $this->container['display_name'] = $display_name; - - return $this; - } - /** - * Gets classification_id - * - * @return string - */ - public function getClassificationId() - { - return $this->container['classification_id']; - } - - /** - * Sets classification_id - * - * @param string $classification_id Identifier for the classification that can be used for search refinement purposes. - * - * @return self - */ - public function setClassificationId($classification_id) - { - $this->container['classification_id'] = $classification_id; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/Error.php b/lib/Model/CatalogItemsV20201201/Error.php deleted file mode 100644 index a49b94879..000000000 --- a/lib/Model/CatalogItemsV20201201/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ErrorList.php b/lib/Model/CatalogItemsV20201201/ErrorList.php deleted file mode 100644 index 3790d22d3..000000000 --- a/lib/Model/CatalogItemsV20201201/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\CatalogItemsV20201201\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/Item.php b/lib/Model/CatalogItemsV20201201/Item.php deleted file mode 100644 index 2e4be2247..000000000 --- a/lib/Model/CatalogItemsV20201201/Item.php +++ /dev/null @@ -1,422 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'attributes' => 'object', - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifiersByMarketplace[]', - 'images' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemImagesByMarketplace[]', - 'product_types' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemProductTypeByMarketplace[]', - 'ranks' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRanksByMarketplace[]', - 'summaries' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSummaryByMarketplace[]', - 'variations' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemVariationsByMarketplace[]', - 'vendor_details' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemVendorDetailsByMarketplace[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'attributes' => null, - 'identifiers' => null, - 'images' => null, - 'product_types' => null, - 'ranks' => null, - 'summaries' => null, - 'variations' => null, - 'vendor_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'asin' => 'asin', - 'attributes' => 'attributes', - 'identifiers' => 'identifiers', - 'images' => 'images', - 'product_types' => 'productTypes', - 'ranks' => 'ranks', - 'summaries' => 'summaries', - 'variations' => 'variations', - 'vendor_details' => 'vendorDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'asin' => 'setAsin', - 'attributes' => 'setAttributes', - 'identifiers' => 'setIdentifiers', - 'images' => 'setImages', - 'product_types' => 'setProductTypes', - 'ranks' => 'setRanks', - 'summaries' => 'setSummaries', - 'variations' => 'setVariations', - 'vendor_details' => 'setVendorDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'asin' => 'getAsin', - 'attributes' => 'getAttributes', - 'identifiers' => 'getIdentifiers', - 'images' => 'getImages', - 'product_types' => 'getProductTypes', - 'ranks' => 'getRanks', - 'summaries' => 'getSummaries', - 'variations' => 'getVariations', - 'vendor_details' => 'getVendorDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - $this->container['identifiers'] = $data['identifiers'] ?? null; - $this->container['images'] = $data['images'] ?? null; - $this->container['product_types'] = $data['product_types'] ?? null; - $this->container['ranks'] = $data['ranks'] ?? null; - $this->container['summaries'] = $data['summaries'] ?? null; - $this->container['variations'] = $data['variations'] ?? null; - $this->container['vendor_details'] = $data['vendor_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets attributes - * - * @return object|null - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param object|null $attributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifiersByMarketplace[]|null - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifiersByMarketplace[]|null $identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } - /** - * Gets images - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemImagesByMarketplace[]|null - */ - public function getImages() - { - return $this->container['images']; - } - - /** - * Sets images - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemImagesByMarketplace[]|null $images Images for an item in the Amazon catalog. All image variants are provided to brand owners. Otherwise, a thumbnail of the \"MAIN\" image variant is provided. - * - * @return self - */ - public function setImages($images) - { - $this->container['images'] = $images; - - return $this; - } - /** - * Gets product_types - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemProductTypeByMarketplace[]|null - */ - public function getProductTypes() - { - return $this->container['product_types']; - } - - /** - * Sets product_types - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemProductTypeByMarketplace[]|null $product_types Product types associated with the Amazon catalog item. - * - * @return self - */ - public function setProductTypes($product_types) - { - $this->container['product_types'] = $product_types; - - return $this; - } - /** - * Gets ranks - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRanksByMarketplace[]|null - */ - public function getRanks() - { - return $this->container['ranks']; - } - - /** - * Sets ranks - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRanksByMarketplace[]|null $ranks Sales ranks of an Amazon catalog item. - * - * @return self - */ - public function setRanks($ranks) - { - $this->container['ranks'] = $ranks; - - return $this; - } - /** - * Gets summaries - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSummaryByMarketplace[]|null - */ - public function getSummaries() - { - return $this->container['summaries']; - } - - /** - * Sets summaries - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSummaryByMarketplace[]|null $summaries Summary details of an Amazon catalog item. - * - * @return self - */ - public function setSummaries($summaries) - { - $this->container['summaries'] = $summaries; - - return $this; - } - /** - * Gets variations - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemVariationsByMarketplace[]|null - */ - public function getVariations() - { - return $this->container['variations']; - } - - /** - * Sets variations - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemVariationsByMarketplace[]|null $variations Variation details by marketplace for an Amazon catalog item (variation relationships). - * - * @return self - */ - public function setVariations($variations) - { - $this->container['variations'] = $variations; - - return $this; - } - /** - * Gets vendor_details - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemVendorDetailsByMarketplace[]|null - */ - public function getVendorDetails() - { - return $this->container['vendor_details']; - } - - /** - * Sets vendor_details - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemVendorDetailsByMarketplace[]|null $vendor_details Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. - * - * @return self - */ - public function setVendorDetails($vendor_details) - { - $this->container['vendor_details'] = $vendor_details; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemIdentifier.php b/lib/Model/CatalogItemsV20201201/ItemIdentifier.php deleted file mode 100644 index b825f2ac3..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemIdentifier.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'identifier_type' => 'string', - 'identifier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'identifier_type' => null, - 'identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'identifier_type' => 'identifierType', - 'identifier' => 'identifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'identifier_type' => 'setIdentifierType', - 'identifier' => 'setIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'identifier_type' => 'getIdentifierType', - 'identifier' => 'getIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identifier_type'] = $data['identifier_type'] ?? null; - $this->container['identifier'] = $data['identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['identifier_type'] === null) { - $invalidProperties[] = "'identifier_type' can't be null"; - } - if ($this->container['identifier'] === null) { - $invalidProperties[] = "'identifier' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets identifier_type - * - * @return string - */ - public function getIdentifierType() - { - return $this->container['identifier_type']; - } - - /** - * Sets identifier_type - * - * @param string $identifier_type Type of identifier, such as UPC, EAN, or ISBN. - * - * @return self - */ - public function setIdentifierType($identifier_type) - { - $this->container['identifier_type'] = $identifier_type; - - return $this; - } - /** - * Gets identifier - * - * @return string - */ - public function getIdentifier() - { - return $this->container['identifier']; - } - - /** - * Sets identifier - * - * @param string $identifier Identifier. - * - * @return self - */ - public function setIdentifier($identifier) - { - $this->container['identifier'] = $identifier; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.php deleted file mode 100644 index 9850819ba..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemIdentifiersByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemIdentifiersByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemIdentifiersByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifier[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'identifiers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'identifiers' => 'identifiers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'identifiers' => 'setIdentifiers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'identifiers' => 'getIdentifiers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['identifiers'] = $data['identifiers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['identifiers'] === null) { - $invalidProperties[] = "'identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifier[] - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemIdentifier[] $identifiers Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemImage.php b/lib/Model/CatalogItemsV20201201/ItemImage.php deleted file mode 100644 index 733310529..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemImage.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemImage extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemImage'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'variant' => 'string', - 'link' => 'string', - 'height' => 'int', - 'width' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'variant' => null, - 'link' => null, - 'height' => null, - 'width' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'variant' => 'variant', - 'link' => 'link', - 'height' => 'height', - 'width' => 'width' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'variant' => 'setVariant', - 'link' => 'setLink', - 'height' => 'setHeight', - 'width' => 'setWidth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'variant' => 'getVariant', - 'link' => 'getLink', - 'height' => 'getHeight', - 'width' => 'getWidth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['variant'] = $data['variant'] ?? null; - $this->container['link'] = $data['link'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['width'] = $data['width'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['variant'] === null) { - $invalidProperties[] = "'variant' can't be null"; - } - if ($this->container['link'] === null) { - $invalidProperties[] = "'link' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets variant - * - * @return string - */ - public function getVariant() - { - return $this->container['variant']; - } - - /** - * Sets variant - * - * @param string $variant Variant of the image, such as MAIN or PT01. - * - * @return self - */ - public function setVariant($variant) - { - $this->container['variant'] = $variant; - - return $this; - } - /** - * Gets link - * - * @return string - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string $link Link, or URL, for the image. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets height - * - * @return int - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param int $height Height of the image in pixels. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets width - * - * @return int - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param int $width Width of the image in pixels. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemImagesByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemImagesByMarketplace.php deleted file mode 100644 index bef63ab99..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemImagesByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemImagesByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemImagesByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'images' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemImage[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'images' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'images' => 'images' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'images' => 'setImages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'images' => 'getImages' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['images'] = $data['images'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['images'] === null) { - $invalidProperties[] = "'images' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets images - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemImage[] - */ - public function getImages() - { - return $this->container['images']; - } - - /** - * Sets images - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemImage[] $images Images for an item in the Amazon catalog for the indicated Amazon marketplace. - * - * @return self - */ - public function setImages($images) - { - $this->container['images'] = $images; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.php deleted file mode 100644 index d958fc284..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemProductTypeByMarketplace.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemProductTypeByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemProductTypeByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'product_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'product_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'product_type' => 'productType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'product_type' => 'setProductType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'product_type' => 'getProductType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['product_type'] = $data['product_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets product_type - * - * @return string|null - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string|null $product_type Name of the product type associated with the Amazon catalog item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemSalesRank.php b/lib/Model/CatalogItemsV20201201/ItemSalesRank.php deleted file mode 100644 index ffe544b65..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemSalesRank.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSalesRank extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSalesRank'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'title' => 'string', - 'link' => 'string', - 'value' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'title' => null, - 'link' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'title' => 'title', - 'link' => 'link', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'title' => 'setTitle', - 'link' => 'setLink', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'title' => 'getTitle', - 'link' => 'getLink', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['title'] = $data['title'] ?? null; - $this->container['link'] = $data['link'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets title - * - * @return string - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string $title Title, or name, of the sales rank. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets link - * - * @return string|null - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string|null $link Corresponding Amazon retail website link, or URL, for the sales rank. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets value - * - * @return int - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param int $value Sales rank value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.php deleted file mode 100644 index 5d7d68f8e..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemSalesRanksByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSalesRanksByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSalesRanksByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'ranks' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRank[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'ranks' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'ranks' => 'ranks' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'ranks' => 'setRanks' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'ranks' => 'getRanks' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['ranks'] = $data['ranks'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['ranks'] === null) { - $invalidProperties[] = "'ranks' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets ranks - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRank[] - */ - public function getRanks() - { - return $this->container['ranks']; - } - - /** - * Sets ranks - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ItemSalesRank[] $ranks Sales ranks of an Amazon catalog item for an Amazon marketplace. - * - * @return self - */ - public function setRanks($ranks) - { - $this->container['ranks'] = $ranks; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemSearchResults.php b/lib/Model/CatalogItemsV20201201/ItemSearchResults.php deleted file mode 100644 index e78dbb741..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemSearchResults.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSearchResults extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSearchResults'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'pagination' => '\SellingPartnerApi\Model\CatalogItemsV20201201\Pagination', - 'refinements' => '\SellingPartnerApi\Model\CatalogItemsV20201201\Refinements', - 'items' => '\SellingPartnerApi\Model\CatalogItemsV20201201\Item[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'pagination' => null, - 'refinements' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'number_of_results' => 'numberOfResults', - 'pagination' => 'pagination', - 'refinements' => 'refinements', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'number_of_results' => 'setNumberOfResults', - 'pagination' => 'setPagination', - 'refinements' => 'setRefinements', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'number_of_results' => 'getNumberOfResults', - 'pagination' => 'getPagination', - 'refinements' => 'getRefinements', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['refinements'] = $data['refinements'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['pagination'] === null) { - $invalidProperties[] = "'pagination' can't be null"; - } - if ($this->container['refinements'] === null) { - $invalidProperties[] = "'refinements' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results The estimated total number of products matched by the search query (only results up to the page count limit will be returned per request regardless of the number found). - * Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\Pagination - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\Pagination $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets refinements - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\Refinements - */ - public function getRefinements() - { - return $this->container['refinements']; - } - - /** - * Sets refinements - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\Refinements $refinements refinements - * - * @return self - */ - public function setRefinements($refinements) - { - $this->container['refinements'] = $refinements; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\Item[] $items A list of items from the Amazon catalog. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.php deleted file mode 100644 index a1c84432c..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemSummaryByMarketplace.php +++ /dev/null @@ -1,397 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSummaryByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSummaryByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'brand_name' => 'string', - 'browse_node' => 'string', - 'color_name' => 'string', - 'item_name' => 'string', - 'manufacturer' => 'string', - 'model_number' => 'string', - 'size_name' => 'string', - 'style_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'brand_name' => null, - 'browse_node' => null, - 'color_name' => null, - 'item_name' => null, - 'manufacturer' => null, - 'model_number' => null, - 'size_name' => null, - 'style_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'brand_name' => 'brandName', - 'browse_node' => 'browseNode', - 'color_name' => 'colorName', - 'item_name' => 'itemName', - 'manufacturer' => 'manufacturer', - 'model_number' => 'modelNumber', - 'size_name' => 'sizeName', - 'style_name' => 'styleName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'brand_name' => 'setBrandName', - 'browse_node' => 'setBrowseNode', - 'color_name' => 'setColorName', - 'item_name' => 'setItemName', - 'manufacturer' => 'setManufacturer', - 'model_number' => 'setModelNumber', - 'size_name' => 'setSizeName', - 'style_name' => 'setStyleName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'brand_name' => 'getBrandName', - 'browse_node' => 'getBrowseNode', - 'color_name' => 'getColorName', - 'item_name' => 'getItemName', - 'manufacturer' => 'getManufacturer', - 'model_number' => 'getModelNumber', - 'size_name' => 'getSizeName', - 'style_name' => 'getStyleName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['brand_name'] = $data['brand_name'] ?? null; - $this->container['browse_node'] = $data['browse_node'] ?? null; - $this->container['color_name'] = $data['color_name'] ?? null; - $this->container['item_name'] = $data['item_name'] ?? null; - $this->container['manufacturer'] = $data['manufacturer'] ?? null; - $this->container['model_number'] = $data['model_number'] ?? null; - $this->container['size_name'] = $data['size_name'] ?? null; - $this->container['style_name'] = $data['style_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets brand_name - * - * @return string|null - */ - public function getBrandName() - { - return $this->container['brand_name']; - } - - /** - * Sets brand_name - * - * @param string|null $brand_name Name of the brand associated with an Amazon catalog item. - * - * @return self - */ - public function setBrandName($brand_name) - { - $this->container['brand_name'] = $brand_name; - - return $this; - } - /** - * Gets browse_node - * - * @return string|null - */ - public function getBrowseNode() - { - return $this->container['browse_node']; - } - - /** - * Sets browse_node - * - * @param string|null $browse_node Identifier of the browse node associated with an Amazon catalog item. - * - * @return self - */ - public function setBrowseNode($browse_node) - { - $this->container['browse_node'] = $browse_node; - - return $this; - } - /** - * Gets color_name - * - * @return string|null - */ - public function getColorName() - { - return $this->container['color_name']; - } - - /** - * Sets color_name - * - * @param string|null $color_name Name of the color associated with an Amazon catalog item. - * - * @return self - */ - public function setColorName($color_name) - { - $this->container['color_name'] = $color_name; - - return $this; - } - /** - * Gets item_name - * - * @return string|null - */ - public function getItemName() - { - return $this->container['item_name']; - } - - /** - * Sets item_name - * - * @param string|null $item_name Name, or title, associated with an Amazon catalog item. - * - * @return self - */ - public function setItemName($item_name) - { - $this->container['item_name'] = $item_name; - - return $this; - } - /** - * Gets manufacturer - * - * @return string|null - */ - public function getManufacturer() - { - return $this->container['manufacturer']; - } - - /** - * Sets manufacturer - * - * @param string|null $manufacturer Name of the manufacturer associated with an Amazon catalog item. - * - * @return self - */ - public function setManufacturer($manufacturer) - { - $this->container['manufacturer'] = $manufacturer; - - return $this; - } - /** - * Gets model_number - * - * @return string|null - */ - public function getModelNumber() - { - return $this->container['model_number']; - } - - /** - * Sets model_number - * - * @param string|null $model_number Model number associated with an Amazon catalog item. - * - * @return self - */ - public function setModelNumber($model_number) - { - $this->container['model_number'] = $model_number; - - return $this; - } - /** - * Gets size_name - * - * @return string|null - */ - public function getSizeName() - { - return $this->container['size_name']; - } - - /** - * Sets size_name - * - * @param string|null $size_name Name of the size associated with an Amazon catalog item. - * - * @return self - */ - public function setSizeName($size_name) - { - $this->container['size_name'] = $size_name; - - return $this; - } - /** - * Gets style_name - * - * @return string|null - */ - public function getStyleName() - { - return $this->container['style_name']; - } - - /** - * Sets style_name - * - * @param string|null $style_name Name of the style associated with an Amazon catalog item. - * - * @return self - */ - public function setStyleName($style_name) - { - $this->container['style_name'] = $style_name; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.php deleted file mode 100644 index bd5dd2724..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemVariationsByMarketplace.php +++ /dev/null @@ -1,273 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemVariationsByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemVariationsByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asins' => 'string[]', - 'variation_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asins' => null, - 'variation_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'asins' => 'asins', - 'variation_type' => 'variationType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asins' => 'setAsins', - 'variation_type' => 'setVariationType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asins' => 'getAsins', - 'variation_type' => 'getVariationType' - ]; - - - - const VARIATION_TYPE_PARENT = 'PARENT'; - const VARIATION_TYPE_CHILD = 'CHILD'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVariationTypeAllowableValues() - { - $baseVals = [ - self::VARIATION_TYPE_PARENT, - self::VARIATION_TYPE_CHILD, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asins'] = $data['asins'] ?? null; - $this->container['variation_type'] = $data['variation_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['asins'] === null) { - $invalidProperties[] = "'asins' can't be null"; - } - if ($this->container['variation_type'] === null) { - $invalidProperties[] = "'variation_type' can't be null"; - } - $allowedValues = $this->getVariationTypeAllowableValues(); - if ( - !is_null($this->container['variation_type']) && - !in_array(strtoupper($this->container['variation_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'variation_type', must be one of '%s'", - $this->container['variation_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asins - * - * @return string[] - */ - public function getAsins() - { - return $this->container['asins']; - } - - /** - * Sets asins - * - * @param string[] $asins Identifiers (ASINs) of the related items. - * - * @return self - */ - public function setAsins($asins) - { - $this->container['asins'] = $asins; - - return $this; - } - /** - * Gets variation_type - * - * @return string - */ - public function getVariationType() - { - return $this->container['variation_type']; - } - - /** - * Sets variation_type - * - * @param string $variation_type Type of variation relationship of the Amazon catalog item in the request to the related item(s): \"PARENT\" or \"CHILD\". - * - * @return self - */ - public function setVariationType($variation_type) - { - $allowedValues = $this->getVariationTypeAllowableValues(); - if (!in_array(strtoupper($variation_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'variation_type', must be one of '%s'", - $variation_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['variation_type'] = $variation_type; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.php b/lib/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.php deleted file mode 100644 index dc62818ec..000000000 --- a/lib/Model/CatalogItemsV20201201/ItemVendorDetailsByMarketplace.php +++ /dev/null @@ -1,428 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemVendorDetailsByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemVendorDetailsByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'brand_code' => 'string', - 'category_code' => 'string', - 'manufacturer_code' => 'string', - 'manufacturer_code_parent' => 'string', - 'product_group' => 'string', - 'replenishment_category' => 'string', - 'subcategory_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'brand_code' => null, - 'category_code' => null, - 'manufacturer_code' => null, - 'manufacturer_code_parent' => null, - 'product_group' => null, - 'replenishment_category' => null, - 'subcategory_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'brand_code' => 'brandCode', - 'category_code' => 'categoryCode', - 'manufacturer_code' => 'manufacturerCode', - 'manufacturer_code_parent' => 'manufacturerCodeParent', - 'product_group' => 'productGroup', - 'replenishment_category' => 'replenishmentCategory', - 'subcategory_code' => 'subcategoryCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'brand_code' => 'setBrandCode', - 'category_code' => 'setCategoryCode', - 'manufacturer_code' => 'setManufacturerCode', - 'manufacturer_code_parent' => 'setManufacturerCodeParent', - 'product_group' => 'setProductGroup', - 'replenishment_category' => 'setReplenishmentCategory', - 'subcategory_code' => 'setSubcategoryCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'brand_code' => 'getBrandCode', - 'category_code' => 'getCategoryCode', - 'manufacturer_code' => 'getManufacturerCode', - 'manufacturer_code_parent' => 'getManufacturerCodeParent', - 'product_group' => 'getProductGroup', - 'replenishment_category' => 'getReplenishmentCategory', - 'subcategory_code' => 'getSubcategoryCode' - ]; - - - - const REPLENISHMENT_CATEGORY_ALLOCATED = 'ALLOCATED'; - const REPLENISHMENT_CATEGORY_BASIC_REPLENISHMENT = 'BASIC_REPLENISHMENT'; - const REPLENISHMENT_CATEGORY_IN_SEASON = 'IN_SEASON'; - const REPLENISHMENT_CATEGORY_LIMITED_REPLENISHMENT = 'LIMITED_REPLENISHMENT'; - const REPLENISHMENT_CATEGORY_MANUFACTURER_OUT_OF_STOCK = 'MANUFACTURER_OUT_OF_STOCK'; - const REPLENISHMENT_CATEGORY_NEW_PRODUCT = 'NEW_PRODUCT'; - const REPLENISHMENT_CATEGORY_NON_REPLENISHABLE = 'NON_REPLENISHABLE'; - const REPLENISHMENT_CATEGORY_NON_STOCKUPABLE = 'NON_STOCKUPABLE'; - const REPLENISHMENT_CATEGORY_OBSOLETE = 'OBSOLETE'; - const REPLENISHMENT_CATEGORY_PLANNED_REPLENISHMENT = 'PLANNED_REPLENISHMENT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getReplenishmentCategoryAllowableValues() - { - $baseVals = [ - self::REPLENISHMENT_CATEGORY_ALLOCATED, - self::REPLENISHMENT_CATEGORY_BASIC_REPLENISHMENT, - self::REPLENISHMENT_CATEGORY_IN_SEASON, - self::REPLENISHMENT_CATEGORY_LIMITED_REPLENISHMENT, - self::REPLENISHMENT_CATEGORY_MANUFACTURER_OUT_OF_STOCK, - self::REPLENISHMENT_CATEGORY_NEW_PRODUCT, - self::REPLENISHMENT_CATEGORY_NON_REPLENISHABLE, - self::REPLENISHMENT_CATEGORY_NON_STOCKUPABLE, - self::REPLENISHMENT_CATEGORY_OBSOLETE, - self::REPLENISHMENT_CATEGORY_PLANNED_REPLENISHMENT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['brand_code'] = $data['brand_code'] ?? null; - $this->container['category_code'] = $data['category_code'] ?? null; - $this->container['manufacturer_code'] = $data['manufacturer_code'] ?? null; - $this->container['manufacturer_code_parent'] = $data['manufacturer_code_parent'] ?? null; - $this->container['product_group'] = $data['product_group'] ?? null; - $this->container['replenishment_category'] = $data['replenishment_category'] ?? null; - $this->container['subcategory_code'] = $data['subcategory_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - $allowedValues = $this->getReplenishmentCategoryAllowableValues(); - if ( - !is_null($this->container['replenishment_category']) && - !in_array(strtoupper($this->container['replenishment_category']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'replenishment_category', must be one of '%s'", - $this->container['replenishment_category'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets brand_code - * - * @return string|null - */ - public function getBrandCode() - { - return $this->container['brand_code']; - } - - /** - * Sets brand_code - * - * @param string|null $brand_code Brand code associated with an Amazon catalog item. - * - * @return self - */ - public function setBrandCode($brand_code) - { - $this->container['brand_code'] = $brand_code; - - return $this; - } - /** - * Gets category_code - * - * @return string|null - */ - public function getCategoryCode() - { - return $this->container['category_code']; - } - - /** - * Sets category_code - * - * @param string|null $category_code Product category associated with an Amazon catalog item. - * - * @return self - */ - public function setCategoryCode($category_code) - { - $this->container['category_code'] = $category_code; - - return $this; - } - /** - * Gets manufacturer_code - * - * @return string|null - */ - public function getManufacturerCode() - { - return $this->container['manufacturer_code']; - } - - /** - * Sets manufacturer_code - * - * @param string|null $manufacturer_code Manufacturer code associated with an Amazon catalog item. - * - * @return self - */ - public function setManufacturerCode($manufacturer_code) - { - $this->container['manufacturer_code'] = $manufacturer_code; - - return $this; - } - /** - * Gets manufacturer_code_parent - * - * @return string|null - */ - public function getManufacturerCodeParent() - { - return $this->container['manufacturer_code_parent']; - } - - /** - * Sets manufacturer_code_parent - * - * @param string|null $manufacturer_code_parent Parent vendor code of the manufacturer code. - * - * @return self - */ - public function setManufacturerCodeParent($manufacturer_code_parent) - { - $this->container['manufacturer_code_parent'] = $manufacturer_code_parent; - - return $this; - } - /** - * Gets product_group - * - * @return string|null - */ - public function getProductGroup() - { - return $this->container['product_group']; - } - - /** - * Sets product_group - * - * @param string|null $product_group Product group associated with an Amazon catalog item. - * - * @return self - */ - public function setProductGroup($product_group) - { - $this->container['product_group'] = $product_group; - - return $this; - } - /** - * Gets replenishment_category - * - * @return string|null - */ - public function getReplenishmentCategory() - { - return $this->container['replenishment_category']; - } - - /** - * Sets replenishment_category - * - * @param string|null $replenishment_category Replenishment category associated with an Amazon catalog item. - * - * @return self - */ - public function setReplenishmentCategory($replenishment_category) - { - $allowedValues = $this->getReplenishmentCategoryAllowableValues(); - if (!is_null($replenishment_category) &&!in_array(strtoupper($replenishment_category), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'replenishment_category', must be one of '%s'", - $replenishment_category, - implode("', '", $allowedValues) - ) - ); - } - $this->container['replenishment_category'] = $replenishment_category; - - return $this; - } - /** - * Gets subcategory_code - * - * @return string|null - */ - public function getSubcategoryCode() - { - return $this->container['subcategory_code']; - } - - /** - * Sets subcategory_code - * - * @param string|null $subcategory_code Product subcategory associated with an Amazon catalog item. - * - * @return self - */ - public function setSubcategoryCode($subcategory_code) - { - $this->container['subcategory_code'] = $subcategory_code; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/Pagination.php b/lib/Model/CatalogItemsV20201201/Pagination.php deleted file mode 100644 index 7a36624bb..000000000 --- a/lib/Model/CatalogItemsV20201201/Pagination.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string', - 'previous_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null, - 'previous_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken', - 'previous_token' => 'previousToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken', - 'previous_token' => 'setPreviousToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken', - 'previous_token' => 'getPreviousToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['previous_token'] = $data['previous_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A token that can be used to fetch the next page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets previous_token - * - * @return string|null - */ - public function getPreviousToken() - { - return $this->container['previous_token']; - } - - /** - * Sets previous_token - * - * @param string|null $previous_token A token that can be used to fetch the previous page. - * - * @return self - */ - public function setPreviousToken($previous_token) - { - $this->container['previous_token'] = $previous_token; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20201201/Refinements.php b/lib/Model/CatalogItemsV20201201/Refinements.php deleted file mode 100644 index 6dde37686..000000000 --- a/lib/Model/CatalogItemsV20201201/Refinements.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Refinements extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Refinements'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'brands' => '\SellingPartnerApi\Model\CatalogItemsV20201201\BrandRefinement[]', - 'classifications' => '\SellingPartnerApi\Model\CatalogItemsV20201201\ClassificationRefinement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'brands' => null, - 'classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'brands' => 'brands', - 'classifications' => 'classifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'brands' => 'setBrands', - 'classifications' => 'setClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'brands' => 'getBrands', - 'classifications' => 'getClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['brands'] = $data['brands'] ?? null; - $this->container['classifications'] = $data['classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['brands'] === null) { - $invalidProperties[] = "'brands' can't be null"; - } - if ($this->container['classifications'] === null) { - $invalidProperties[] = "'classifications' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets brands - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\BrandRefinement[] - */ - public function getBrands() - { - return $this->container['brands']; - } - - /** - * Sets brands - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\BrandRefinement[] $brands Brand search refinements. - * - * @return self - */ - public function setBrands($brands) - { - $this->container['brands'] = $brands; - - return $this; - } - /** - * Gets classifications - * - * @return \SellingPartnerApi\Model\CatalogItemsV20201201\ClassificationRefinement[] - */ - public function getClassifications() - { - return $this->container['classifications']; - } - - /** - * Sets classifications - * - * @param \SellingPartnerApi\Model\CatalogItemsV20201201\ClassificationRefinement[] $classifications Classification search refinements. - * - * @return self - */ - public function setClassifications($classifications) - { - $this->container['classifications'] = $classifications; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/BrandRefinement.php b/lib/Model/CatalogItemsV20220401/BrandRefinement.php deleted file mode 100644 index 00c5f5812..000000000 --- a/lib/Model/CatalogItemsV20220401/BrandRefinement.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BrandRefinement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BrandRefinement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'brand_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'brand_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'number_of_results' => 'numberOfResults', - 'brand_name' => 'brandName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'number_of_results' => 'setNumberOfResults', - 'brand_name' => 'setBrandName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'number_of_results' => 'getNumberOfResults', - 'brand_name' => 'getBrandName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['brand_name'] = $data['brand_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['brand_name'] === null) { - $invalidProperties[] = "'brand_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results The estimated number of results that would still be returned if refinement key applied. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets brand_name - * - * @return string - */ - public function getBrandName() - { - return $this->container['brand_name']; - } - - /** - * Sets brand_name - * - * @param string $brand_name Brand name. For display and can be used as a search refinement. - * - * @return self - */ - public function setBrandName($brand_name) - { - $this->container['brand_name'] = $brand_name; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ClassificationRefinement.php b/lib/Model/CatalogItemsV20220401/ClassificationRefinement.php deleted file mode 100644 index 42839b572..000000000 --- a/lib/Model/CatalogItemsV20220401/ClassificationRefinement.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ClassificationRefinement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ClassificationRefinement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'display_name' => 'string', - 'classification_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'display_name' => null, - 'classification_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'number_of_results' => 'numberOfResults', - 'display_name' => 'displayName', - 'classification_id' => 'classificationId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'number_of_results' => 'setNumberOfResults', - 'display_name' => 'setDisplayName', - 'classification_id' => 'setClassificationId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'number_of_results' => 'getNumberOfResults', - 'display_name' => 'getDisplayName', - 'classification_id' => 'getClassificationId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['classification_id'] = $data['classification_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['display_name'] === null) { - $invalidProperties[] = "'display_name' can't be null"; - } - if ($this->container['classification_id'] === null) { - $invalidProperties[] = "'classification_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results The estimated number of results that would still be returned if refinement key applied. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets display_name - * - * @return string - */ - public function getDisplayName() - { - return $this->container['display_name']; - } - - /** - * Sets display_name - * - * @param string $display_name Display name for the classification. - * - * @return self - */ - public function setDisplayName($display_name) - { - $this->container['display_name'] = $display_name; - - return $this; - } - /** - * Gets classification_id - * - * @return string - */ - public function getClassificationId() - { - return $this->container['classification_id']; - } - - /** - * Sets classification_id - * - * @param string $classification_id Identifier for the classification that can be used for search refinement purposes. - * - * @return self - */ - public function setClassificationId($classification_id) - { - $this->container['classification_id'] = $classification_id; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Dimension.php b/lib/Model/CatalogItemsV20220401/Dimension.php deleted file mode 100644 index 6aab96ea3..000000000 --- a/lib/Model/CatalogItemsV20220401/Dimension.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimension extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimension'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit' => 'string', - 'value' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit' => 'unit', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit' => 'setUnit', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit' => 'getUnit', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit'] = $data['unit'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets unit - * - * @return string|null - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string|null $unit Measurement unit of the dimension value. - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets value - * - * @return float|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float|null $value Numeric dimension value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Dimensions.php b/lib/Model/CatalogItemsV20220401/Dimensions.php deleted file mode 100644 index d785530f4..000000000 --- a/lib/Model/CatalogItemsV20220401/Dimensions.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'height' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension', - 'length' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension', - 'weight' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension', - 'width' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimension' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'height' => null, - 'length' => null, - 'weight' => null, - 'width' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'height' => 'height', - 'length' => 'length', - 'weight' => 'weight', - 'width' => 'width' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'height' => 'setHeight', - 'length' => 'setLength', - 'weight' => 'setWeight', - 'width' => 'setWidth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'height' => 'getHeight', - 'length' => 'getLength', - 'weight' => 'getWeight', - 'width' => 'getWidth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['height'] = $data['height'] ?? null; - $this->container['length'] = $data['length'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['width'] = $data['width'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets height - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets length - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null $length length - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets width - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimension|null $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Error.php b/lib/Model/CatalogItemsV20220401/Error.php deleted file mode 100644 index d0bf0c678..000000000 --- a/lib/Model/CatalogItemsV20220401/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ErrorList.php b/lib/Model/CatalogItemsV20220401/ErrorList.php deleted file mode 100644 index 3e9198309..000000000 --- a/lib/Model/CatalogItemsV20220401/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Item.php b/lib/Model/CatalogItemsV20220401/Item.php deleted file mode 100644 index 1ef849c9f..000000000 --- a/lib/Model/CatalogItemsV20220401/Item.php +++ /dev/null @@ -1,451 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'attributes' => 'object', - 'dimensions' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemDimensionsByMarketplace[]', - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifiersByMarketplace[]', - 'images' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemImagesByMarketplace[]', - 'product_types' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemProductTypeByMarketplace[]', - 'relationships' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationshipsByMarketplace[]', - 'sales_ranks' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSalesRanksByMarketplace[]', - 'summaries' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemSummaryByMarketplace[]', - 'vendor_details' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsByMarketplace[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'attributes' => null, - 'dimensions' => null, - 'identifiers' => null, - 'images' => null, - 'product_types' => null, - 'relationships' => null, - 'sales_ranks' => null, - 'summaries' => null, - 'vendor_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'asin' => 'asin', - 'attributes' => 'attributes', - 'dimensions' => 'dimensions', - 'identifiers' => 'identifiers', - 'images' => 'images', - 'product_types' => 'productTypes', - 'relationships' => 'relationships', - 'sales_ranks' => 'salesRanks', - 'summaries' => 'summaries', - 'vendor_details' => 'vendorDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'asin' => 'setAsin', - 'attributes' => 'setAttributes', - 'dimensions' => 'setDimensions', - 'identifiers' => 'setIdentifiers', - 'images' => 'setImages', - 'product_types' => 'setProductTypes', - 'relationships' => 'setRelationships', - 'sales_ranks' => 'setSalesRanks', - 'summaries' => 'setSummaries', - 'vendor_details' => 'setVendorDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'asin' => 'getAsin', - 'attributes' => 'getAttributes', - 'dimensions' => 'getDimensions', - 'identifiers' => 'getIdentifiers', - 'images' => 'getImages', - 'product_types' => 'getProductTypes', - 'relationships' => 'getRelationships', - 'sales_ranks' => 'getSalesRanks', - 'summaries' => 'getSummaries', - 'vendor_details' => 'getVendorDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['identifiers'] = $data['identifiers'] ?? null; - $this->container['images'] = $data['images'] ?? null; - $this->container['product_types'] = $data['product_types'] ?? null; - $this->container['relationships'] = $data['relationships'] ?? null; - $this->container['sales_ranks'] = $data['sales_ranks'] ?? null; - $this->container['summaries'] = $data['summaries'] ?? null; - $this->container['vendor_details'] = $data['vendor_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets attributes - * - * @return object|null - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param object|null $attributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemDimensionsByMarketplace[]|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemDimensionsByMarketplace[]|null $dimensions Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace. - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifiersByMarketplace[]|null - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifiersByMarketplace[]|null $identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } - /** - * Gets images - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemImagesByMarketplace[]|null - */ - public function getImages() - { - return $this->container['images']; - } - - /** - * Sets images - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemImagesByMarketplace[]|null $images Images for an item in the Amazon catalog. - * - * @return self - */ - public function setImages($images) - { - $this->container['images'] = $images; - - return $this; - } - /** - * Gets product_types - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemProductTypeByMarketplace[]|null - */ - public function getProductTypes() - { - return $this->container['product_types']; - } - - /** - * Sets product_types - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemProductTypeByMarketplace[]|null $product_types Product types associated with the Amazon catalog item. - * - * @return self - */ - public function setProductTypes($product_types) - { - $this->container['product_types'] = $product_types; - - return $this; - } - /** - * Gets relationships - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationshipsByMarketplace[]|null - */ - public function getRelationships() - { - return $this->container['relationships']; - } - - /** - * Sets relationships - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationshipsByMarketplace[]|null $relationships Relationships by marketplace for an Amazon catalog item (for example, variations). - * - * @return self - */ - public function setRelationships($relationships) - { - $this->container['relationships'] = $relationships; - - return $this; - } - /** - * Gets sales_ranks - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSalesRanksByMarketplace[]|null - */ - public function getSalesRanks() - { - return $this->container['sales_ranks']; - } - - /** - * Sets sales_ranks - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSalesRanksByMarketplace[]|null $sales_ranks Sales ranks of an Amazon catalog item. - * - * @return self - */ - public function setSalesRanks($sales_ranks) - { - $this->container['sales_ranks'] = $sales_ranks; - - return $this; - } - /** - * Gets summaries - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSummaryByMarketplace[]|null - */ - public function getSummaries() - { - return $this->container['summaries']; - } - - /** - * Sets summaries - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemSummaryByMarketplace[]|null $summaries Summary details of an Amazon catalog item. - * - * @return self - */ - public function setSummaries($summaries) - { - $this->container['summaries'] = $summaries; - - return $this; - } - /** - * Gets vendor_details - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsByMarketplace[]|null - */ - public function getVendorDetails() - { - return $this->container['vendor_details']; - } - - /** - * Sets vendor_details - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsByMarketplace[]|null $vendor_details Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. - * - * @return self - */ - public function setVendorDetails($vendor_details) - { - $this->container['vendor_details'] = $vendor_details; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemBrowseClassification.php b/lib/Model/CatalogItemsV20220401/ItemBrowseClassification.php deleted file mode 100644 index ae22e6ddb..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemBrowseClassification.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemBrowseClassification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemBrowseClassification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'display_name' => 'string', - 'classification_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'display_name' => null, - 'classification_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'display_name' => 'displayName', - 'classification_id' => 'classificationId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'display_name' => 'setDisplayName', - 'classification_id' => 'setClassificationId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'display_name' => 'getDisplayName', - 'classification_id' => 'getClassificationId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['classification_id'] = $data['classification_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['display_name'] === null) { - $invalidProperties[] = "'display_name' can't be null"; - } - if ($this->container['classification_id'] === null) { - $invalidProperties[] = "'classification_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets display_name - * - * @return string - */ - public function getDisplayName() - { - return $this->container['display_name']; - } - - /** - * Sets display_name - * - * @param string $display_name Display name for the classification. - * - * @return self - */ - public function setDisplayName($display_name) - { - $this->container['display_name'] = $display_name; - - return $this; - } - /** - * Gets classification_id - * - * @return string - */ - public function getClassificationId() - { - return $this->container['classification_id']; - } - - /** - * Sets classification_id - * - * @param string $classification_id Identifier of the classification (browse node identifier). - * - * @return self - */ - public function setClassificationId($classification_id) - { - $this->container['classification_id'] = $classification_id; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemClassificationSalesRank.php b/lib/Model/CatalogItemsV20220401/ItemClassificationSalesRank.php deleted file mode 100644 index 9d3c71829..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemClassificationSalesRank.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemClassificationSalesRank extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemClassificationSalesRank'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'classification_id' => 'string', - 'title' => 'string', - 'link' => 'string', - 'rank' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'classification_id' => null, - 'title' => null, - 'link' => null, - 'rank' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'classification_id' => 'classificationId', - 'title' => 'title', - 'link' => 'link', - 'rank' => 'rank' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'classification_id' => 'setClassificationId', - 'title' => 'setTitle', - 'link' => 'setLink', - 'rank' => 'setRank' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'classification_id' => 'getClassificationId', - 'title' => 'getTitle', - 'link' => 'getLink', - 'rank' => 'getRank' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['classification_id'] = $data['classification_id'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['link'] = $data['link'] ?? null; - $this->container['rank'] = $data['rank'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['classification_id'] === null) { - $invalidProperties[] = "'classification_id' can't be null"; - } - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } - if ($this->container['rank'] === null) { - $invalidProperties[] = "'rank' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets classification_id - * - * @return string - */ - public function getClassificationId() - { - return $this->container['classification_id']; - } - - /** - * Sets classification_id - * - * @param string $classification_id Identifier of the classification associated with the sales rank. - * - * @return self - */ - public function setClassificationId($classification_id) - { - $this->container['classification_id'] = $classification_id; - - return $this; - } - /** - * Gets title - * - * @return string - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string $title Title, or name, of the sales rank. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets link - * - * @return string|null - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string|null $link Corresponding Amazon retail website link, or URL, for the sales rank. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets rank - * - * @return int - */ - public function getRank() - { - return $this->container['rank']; - } - - /** - * Sets rank - * - * @param int $rank Sales rank value. - * - * @return self - */ - public function setRank($rank) - { - $this->container['rank'] = $rank; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemContributor.php b/lib/Model/CatalogItemsV20220401/ItemContributor.php deleted file mode 100644 index 71549c978..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemContributor.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemContributor extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemContributor'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'role' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributorRole', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'role' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'role' => 'role', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'role' => 'setRole', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'role' => 'getRole', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['role'] = $data['role'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['role'] === null) { - $invalidProperties[] = "'role' can't be null"; - } - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets role - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributorRole - */ - public function getRole() - { - return $this->container['role']; - } - - /** - * Sets role - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributorRole $role role - * - * @return self - */ - public function setRole($role) - { - $this->container['role'] = $role; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value Name of the contributor, such as Jane Austen. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemContributorRole.php b/lib/Model/CatalogItemsV20220401/ItemContributorRole.php deleted file mode 100644 index f37b9dc72..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemContributorRole.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemContributorRole extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemContributorRole'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'display_name' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'display_name' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'display_name' => 'displayName', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'display_name' => 'setDisplayName', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'display_name' => 'getDisplayName', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets display_name - * - * @return string|null - */ - public function getDisplayName() - { - return $this->container['display_name']; - } - - /** - * Sets display_name - * - * @param string|null $display_name Display name of the role in the requested locale, such as Author or Actor. - * - * @return self - */ - public function setDisplayName($display_name) - { - $this->container['display_name'] = $display_name; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value Role value for the Amazon catalog item, such as author or actor. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.php deleted file mode 100644 index fd50c2ebb..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemDimensionsByMarketplace.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDimensionsByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDimensionsByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'item' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions', - 'package' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'item' => null, - 'package' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'item' => 'item', - 'package' => 'package' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'item' => 'setItem', - 'package' => 'setPackage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'item' => 'getItem', - 'package' => 'getPackage' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item'] = $data['item'] ?? null; - $this->container['package'] = $data['package'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions|null - */ - public function getItem() - { - return $this->container['item']; - } - - /** - * Sets item - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions|null $item item - * - * @return self - */ - public function setItem($item) - { - $this->container['item'] = $item; - - return $this; - } - /** - * Gets package - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions|null - */ - public function getPackage() - { - return $this->container['package']; - } - - /** - * Sets package - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Dimensions|null $package package - * - * @return self - */ - public function setPackage($package) - { - $this->container['package'] = $package; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.php b/lib/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.php deleted file mode 100644 index c0a294a55..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemDisplayGroupSalesRank.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDisplayGroupSalesRank extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDisplayGroupSalesRank'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'website_display_group' => 'string', - 'title' => 'string', - 'link' => 'string', - 'rank' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'website_display_group' => null, - 'title' => null, - 'link' => null, - 'rank' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'website_display_group' => 'websiteDisplayGroup', - 'title' => 'title', - 'link' => 'link', - 'rank' => 'rank' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'website_display_group' => 'setWebsiteDisplayGroup', - 'title' => 'setTitle', - 'link' => 'setLink', - 'rank' => 'setRank' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'website_display_group' => 'getWebsiteDisplayGroup', - 'title' => 'getTitle', - 'link' => 'getLink', - 'rank' => 'getRank' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['website_display_group'] = $data['website_display_group'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['link'] = $data['link'] ?? null; - $this->container['rank'] = $data['rank'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['website_display_group'] === null) { - $invalidProperties[] = "'website_display_group' can't be null"; - } - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } - if ($this->container['rank'] === null) { - $invalidProperties[] = "'rank' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets website_display_group - * - * @return string - */ - public function getWebsiteDisplayGroup() - { - return $this->container['website_display_group']; - } - - /** - * Sets website_display_group - * - * @param string $website_display_group Name of the website display group associated with the sales rank - * - * @return self - */ - public function setWebsiteDisplayGroup($website_display_group) - { - $this->container['website_display_group'] = $website_display_group; - - return $this; - } - /** - * Gets title - * - * @return string - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string $title Title, or name, of the sales rank. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets link - * - * @return string|null - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string|null $link Corresponding Amazon retail website link, or URL, for the sales rank. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets rank - * - * @return int - */ - public function getRank() - { - return $this->container['rank']; - } - - /** - * Sets rank - * - * @param int $rank Sales rank value. - * - * @return self - */ - public function setRank($rank) - { - $this->container['rank'] = $rank; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemIdentifier.php b/lib/Model/CatalogItemsV20220401/ItemIdentifier.php deleted file mode 100644 index 3118068b8..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemIdentifier.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'identifier_type' => 'string', - 'identifier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'identifier_type' => null, - 'identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'identifier_type' => 'identifierType', - 'identifier' => 'identifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'identifier_type' => 'setIdentifierType', - 'identifier' => 'setIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'identifier_type' => 'getIdentifierType', - 'identifier' => 'getIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identifier_type'] = $data['identifier_type'] ?? null; - $this->container['identifier'] = $data['identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['identifier_type'] === null) { - $invalidProperties[] = "'identifier_type' can't be null"; - } - if ($this->container['identifier'] === null) { - $invalidProperties[] = "'identifier' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets identifier_type - * - * @return string - */ - public function getIdentifierType() - { - return $this->container['identifier_type']; - } - - /** - * Sets identifier_type - * - * @param string $identifier_type Type of identifier, such as UPC, EAN, or ISBN. - * - * @return self - */ - public function setIdentifierType($identifier_type) - { - $this->container['identifier_type'] = $identifier_type; - - return $this; - } - /** - * Gets identifier - * - * @return string - */ - public function getIdentifier() - { - return $this->container['identifier']; - } - - /** - * Sets identifier - * - * @param string $identifier Identifier. - * - * @return self - */ - public function setIdentifier($identifier) - { - $this->container['identifier'] = $identifier; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.php deleted file mode 100644 index 2ebf164f6..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemIdentifiersByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemIdentifiersByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemIdentifiersByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'identifiers' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifier[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'identifiers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'identifiers' => 'identifiers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'identifiers' => 'setIdentifiers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'identifiers' => 'getIdentifiers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['identifiers'] = $data['identifiers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['identifiers'] === null) { - $invalidProperties[] = "'identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifier[] - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemIdentifier[] $identifiers Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemImage.php b/lib/Model/CatalogItemsV20220401/ItemImage.php deleted file mode 100644 index c5e97efb2..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemImage.php +++ /dev/null @@ -1,321 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemImage extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemImage'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'variant' => 'string', - 'link' => 'string', - 'height' => 'int', - 'width' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'variant' => null, - 'link' => null, - 'height' => null, - 'width' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'variant' => 'variant', - 'link' => 'link', - 'height' => 'height', - 'width' => 'width' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'variant' => 'setVariant', - 'link' => 'setLink', - 'height' => 'setHeight', - 'width' => 'setWidth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'variant' => 'getVariant', - 'link' => 'getLink', - 'height' => 'getHeight', - 'width' => 'getWidth' - ]; - - - - const VARIANT_MAIN = 'MAIN'; - const VARIANT_PT01 = 'PT01'; - const VARIANT_PT02 = 'PT02'; - const VARIANT_PT03 = 'PT03'; - const VARIANT_PT04 = 'PT04'; - const VARIANT_PT05 = 'PT05'; - const VARIANT_PT06 = 'PT06'; - const VARIANT_PT07 = 'PT07'; - const VARIANT_PT08 = 'PT08'; - const VARIANT_SWCH = 'SWCH'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVariantAllowableValues() - { - $baseVals = [ - self::VARIANT_MAIN, - self::VARIANT_PT01, - self::VARIANT_PT02, - self::VARIANT_PT03, - self::VARIANT_PT04, - self::VARIANT_PT05, - self::VARIANT_PT06, - self::VARIANT_PT07, - self::VARIANT_PT08, - self::VARIANT_SWCH, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['variant'] = $data['variant'] ?? null; - $this->container['link'] = $data['link'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['width'] = $data['width'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['variant'] === null) { - $invalidProperties[] = "'variant' can't be null"; - } - $allowedValues = $this->getVariantAllowableValues(); - if ( - !is_null($this->container['variant']) && - !in_array(strtoupper($this->container['variant']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'variant', must be one of '%s'", - $this->container['variant'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['link'] === null) { - $invalidProperties[] = "'link' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets variant - * - * @return string - */ - public function getVariant() - { - return $this->container['variant']; - } - - /** - * Sets variant - * - * @param string $variant Variant of the image, such as `MAIN` or `PT01`. - * - * @return self - */ - public function setVariant($variant) - { - $allowedValues = $this->getVariantAllowableValues(); - if (!in_array(strtoupper($variant), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'variant', must be one of '%s'", - $variant, - implode("', '", $allowedValues) - ) - ); - } - $this->container['variant'] = $variant; - - return $this; - } - /** - * Gets link - * - * @return string - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string $link Link, or URL, for the image. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets height - * - * @return int - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param int $height Height of the image in pixels. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets width - * - * @return int - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param int $width Width of the image in pixels. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemImagesByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemImagesByMarketplace.php deleted file mode 100644 index 11a602f40..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemImagesByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemImagesByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemImagesByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'images' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemImage[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'images' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'images' => 'images' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'images' => 'setImages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'images' => 'getImages' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['images'] = $data['images'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['images'] === null) { - $invalidProperties[] = "'images' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets images - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemImage[] - */ - public function getImages() - { - return $this->container['images']; - } - - /** - * Sets images - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemImage[] $images Images for an item in the Amazon catalog for the indicated Amazon marketplace. - * - * @return self - */ - public function setImages($images) - { - $this->container['images'] = $images; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.php deleted file mode 100644 index 7a38c50eb..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemProductTypeByMarketplace.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemProductTypeByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemProductTypeByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'product_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'product_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'product_type' => 'productType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'product_type' => 'setProductType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'product_type' => 'getProductType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['product_type'] = $data['product_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets product_type - * - * @return string|null - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string|null $product_type Name of the product type associated with the Amazon catalog item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemRelationship.php b/lib/Model/CatalogItemsV20220401/ItemRelationship.php deleted file mode 100644 index 7cdd37396..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemRelationship.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemRelationship extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemRelationship'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'child_asins' => 'string[]', - 'parent_asins' => 'string[]', - 'variation_theme' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVariationTheme', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'child_asins' => null, - 'parent_asins' => null, - 'variation_theme' => null, - 'type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'child_asins' => 'childAsins', - 'parent_asins' => 'parentAsins', - 'variation_theme' => 'variationTheme', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'child_asins' => 'setChildAsins', - 'parent_asins' => 'setParentAsins', - 'variation_theme' => 'setVariationTheme', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'child_asins' => 'getChildAsins', - 'parent_asins' => 'getParentAsins', - 'variation_theme' => 'getVariationTheme', - 'type' => 'getType' - ]; - - - - const TYPE_VARIATION = 'VARIATION'; - const TYPE_PACKAGE_HIERARCHY = 'PACKAGE_HIERARCHY'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_VARIATION, - self::TYPE_PACKAGE_HIERARCHY, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['child_asins'] = $data['child_asins'] ?? null; - $this->container['parent_asins'] = $data['parent_asins'] ?? null; - $this->container['variation_theme'] = $data['variation_theme'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets child_asins - * - * @return string[]|null - */ - public function getChildAsins() - { - return $this->container['child_asins']; - } - - /** - * Sets child_asins - * - * @param string[]|null $child_asins Identifiers (ASINs) of the related items that are children of this item. - * - * @return self - */ - public function setChildAsins($child_asins) - { - $this->container['child_asins'] = $child_asins; - - return $this; - } - /** - * Gets parent_asins - * - * @return string[]|null - */ - public function getParentAsins() - { - return $this->container['parent_asins']; - } - - /** - * Sets parent_asins - * - * @param string[]|null $parent_asins Identifiers (ASINs) of the related items that are parents of this item. - * - * @return self - */ - public function setParentAsins($parent_asins) - { - $this->container['parent_asins'] = $parent_asins; - - return $this; - } - /** - * Gets variation_theme - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVariationTheme|null - */ - public function getVariationTheme() - { - return $this->container['variation_theme']; - } - - /** - * Sets variation_theme - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVariationTheme|null $variation_theme variation_theme - * - * @return self - */ - public function setVariationTheme($variation_theme) - { - $this->container['variation_theme'] = $variation_theme; - - return $this; - } - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type Type of relationship. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.php deleted file mode 100644 index d5ae6a7b2..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemRelationshipsByMarketplace.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemRelationshipsByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemRelationshipsByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'relationships' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationship[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'relationships' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'relationships' => 'relationships' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'relationships' => 'setRelationships' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'relationships' => 'getRelationships' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['relationships'] = $data['relationships'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['relationships'] === null) { - $invalidProperties[] = "'relationships' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets relationships - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationship[] - */ - public function getRelationships() - { - return $this->container['relationships']; - } - - /** - * Sets relationships - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemRelationship[] $relationships Relationships for the item. - * - * @return self - */ - public function setRelationships($relationships) - { - $this->container['relationships'] = $relationships; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.php deleted file mode 100644 index cc11f7902..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemSalesRanksByMarketplace.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSalesRanksByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSalesRanksByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'classification_ranks' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemClassificationSalesRank[]', - 'display_group_ranks' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemDisplayGroupSalesRank[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'classification_ranks' => null, - 'display_group_ranks' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'classification_ranks' => 'classificationRanks', - 'display_group_ranks' => 'displayGroupRanks' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'classification_ranks' => 'setClassificationRanks', - 'display_group_ranks' => 'setDisplayGroupRanks' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'classification_ranks' => 'getClassificationRanks', - 'display_group_ranks' => 'getDisplayGroupRanks' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['classification_ranks'] = $data['classification_ranks'] ?? null; - $this->container['display_group_ranks'] = $data['display_group_ranks'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets classification_ranks - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemClassificationSalesRank[]|null - */ - public function getClassificationRanks() - { - return $this->container['classification_ranks']; - } - - /** - * Sets classification_ranks - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemClassificationSalesRank[]|null $classification_ranks Sales ranks of an Amazon catalog item for an Amazon marketplace by classification. - * - * @return self - */ - public function setClassificationRanks($classification_ranks) - { - $this->container['classification_ranks'] = $classification_ranks; - - return $this; - } - /** - * Gets display_group_ranks - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemDisplayGroupSalesRank[]|null - */ - public function getDisplayGroupRanks() - { - return $this->container['display_group_ranks']; - } - - /** - * Sets display_group_ranks - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemDisplayGroupSalesRank[]|null $display_group_ranks Sales ranks of an Amazon catalog item for an Amazon marketplace by website display group. - * - * @return self - */ - public function setDisplayGroupRanks($display_group_ranks) - { - $this->container['display_group_ranks'] = $display_group_ranks; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemSearchResults.php b/lib/Model/CatalogItemsV20220401/ItemSearchResults.php deleted file mode 100644 index e52e75124..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemSearchResults.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSearchResults extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSearchResults'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_results' => 'int', - 'pagination' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Pagination', - 'refinements' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Refinements', - 'items' => '\SellingPartnerApi\Model\CatalogItemsV20220401\Item[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_results' => null, - 'pagination' => null, - 'refinements' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'number_of_results' => 'numberOfResults', - 'pagination' => 'pagination', - 'refinements' => 'refinements', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'number_of_results' => 'setNumberOfResults', - 'pagination' => 'setPagination', - 'refinements' => 'setRefinements', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'number_of_results' => 'getNumberOfResults', - 'pagination' => 'getPagination', - 'refinements' => 'getRefinements', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_results'] = $data['number_of_results'] ?? null; - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['refinements'] = $data['refinements'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['number_of_results'] === null) { - $invalidProperties[] = "'number_of_results' can't be null"; - } - if ($this->container['pagination'] === null) { - $invalidProperties[] = "'pagination' can't be null"; - } - if ($this->container['refinements'] === null) { - $invalidProperties[] = "'refinements' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets number_of_results - * - * @return int - */ - public function getNumberOfResults() - { - return $this->container['number_of_results']; - } - - /** - * Sets number_of_results - * - * @param int $number_of_results For `identifiers`-based searches, the total number of Amazon catalog items found. For `keywords`-based searches, the estimated total number of Amazon catalog items matched by the search query (only results up to the page count limit will be returned per request regardless of the number found). - * Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. - * - * @return self - */ - public function setNumberOfResults($number_of_results) - { - $this->container['number_of_results'] = $number_of_results; - - return $this; - } - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Pagination - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Pagination $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets refinements - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Refinements - */ - public function getRefinements() - { - return $this->container['refinements']; - } - - /** - * Sets refinements - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Refinements $refinements refinements - * - * @return self - */ - public function setRefinements($refinements) - { - $this->container['refinements'] = $refinements; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\Item[] $items A list of items from the Amazon catalog. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.php deleted file mode 100644 index 88d121d0e..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemSummaryByMarketplace.php +++ /dev/null @@ -1,764 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSummaryByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSummaryByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'adult_product' => 'bool', - 'autographed' => 'bool', - 'brand' => 'string', - 'browse_classification' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemBrowseClassification', - 'color' => 'string', - 'contributors' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributor[]', - 'item_classification' => 'string', - 'item_name' => 'string', - 'manufacturer' => 'string', - 'memorabilia' => 'bool', - 'model_number' => 'string', - 'package_quantity' => 'int', - 'part_number' => 'string', - 'release_date' => 'string', - 'size' => 'string', - 'style' => 'string', - 'trade_in_eligible' => 'bool', - 'website_display_group' => 'string', - 'website_display_group_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'adult_product' => null, - 'autographed' => null, - 'brand' => null, - 'browse_classification' => null, - 'color' => null, - 'contributors' => null, - 'item_classification' => null, - 'item_name' => null, - 'manufacturer' => null, - 'memorabilia' => null, - 'model_number' => null, - 'package_quantity' => null, - 'part_number' => null, - 'release_date' => null, - 'size' => null, - 'style' => null, - 'trade_in_eligible' => null, - 'website_display_group' => null, - 'website_display_group_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'adult_product' => 'adultProduct', - 'autographed' => 'autographed', - 'brand' => 'brand', - 'browse_classification' => 'browseClassification', - 'color' => 'color', - 'contributors' => 'contributors', - 'item_classification' => 'itemClassification', - 'item_name' => 'itemName', - 'manufacturer' => 'manufacturer', - 'memorabilia' => 'memorabilia', - 'model_number' => 'modelNumber', - 'package_quantity' => 'packageQuantity', - 'part_number' => 'partNumber', - 'release_date' => 'releaseDate', - 'size' => 'size', - 'style' => 'style', - 'trade_in_eligible' => 'tradeInEligible', - 'website_display_group' => 'websiteDisplayGroup', - 'website_display_group_name' => 'websiteDisplayGroupName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'adult_product' => 'setAdultProduct', - 'autographed' => 'setAutographed', - 'brand' => 'setBrand', - 'browse_classification' => 'setBrowseClassification', - 'color' => 'setColor', - 'contributors' => 'setContributors', - 'item_classification' => 'setItemClassification', - 'item_name' => 'setItemName', - 'manufacturer' => 'setManufacturer', - 'memorabilia' => 'setMemorabilia', - 'model_number' => 'setModelNumber', - 'package_quantity' => 'setPackageQuantity', - 'part_number' => 'setPartNumber', - 'release_date' => 'setReleaseDate', - 'size' => 'setSize', - 'style' => 'setStyle', - 'trade_in_eligible' => 'setTradeInEligible', - 'website_display_group' => 'setWebsiteDisplayGroup', - 'website_display_group_name' => 'setWebsiteDisplayGroupName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'adult_product' => 'getAdultProduct', - 'autographed' => 'getAutographed', - 'brand' => 'getBrand', - 'browse_classification' => 'getBrowseClassification', - 'color' => 'getColor', - 'contributors' => 'getContributors', - 'item_classification' => 'getItemClassification', - 'item_name' => 'getItemName', - 'manufacturer' => 'getManufacturer', - 'memorabilia' => 'getMemorabilia', - 'model_number' => 'getModelNumber', - 'package_quantity' => 'getPackageQuantity', - 'part_number' => 'getPartNumber', - 'release_date' => 'getReleaseDate', - 'size' => 'getSize', - 'style' => 'getStyle', - 'trade_in_eligible' => 'getTradeInEligible', - 'website_display_group' => 'getWebsiteDisplayGroup', - 'website_display_group_name' => 'getWebsiteDisplayGroupName' - ]; - - - - const ITEM_CLASSIFICATION_BASE_PRODUCT = 'BASE_PRODUCT'; - const ITEM_CLASSIFICATION_OTHER = 'OTHER'; - const ITEM_CLASSIFICATION_PRODUCT_BUNDLE = 'PRODUCT_BUNDLE'; - const ITEM_CLASSIFICATION_VARIATION_PARENT = 'VARIATION_PARENT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getItemClassificationAllowableValues() - { - $baseVals = [ - self::ITEM_CLASSIFICATION_BASE_PRODUCT, - self::ITEM_CLASSIFICATION_OTHER, - self::ITEM_CLASSIFICATION_PRODUCT_BUNDLE, - self::ITEM_CLASSIFICATION_VARIATION_PARENT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['adult_product'] = $data['adult_product'] ?? null; - $this->container['autographed'] = $data['autographed'] ?? null; - $this->container['brand'] = $data['brand'] ?? null; - $this->container['browse_classification'] = $data['browse_classification'] ?? null; - $this->container['color'] = $data['color'] ?? null; - $this->container['contributors'] = $data['contributors'] ?? null; - $this->container['item_classification'] = $data['item_classification'] ?? null; - $this->container['item_name'] = $data['item_name'] ?? null; - $this->container['manufacturer'] = $data['manufacturer'] ?? null; - $this->container['memorabilia'] = $data['memorabilia'] ?? null; - $this->container['model_number'] = $data['model_number'] ?? null; - $this->container['package_quantity'] = $data['package_quantity'] ?? null; - $this->container['part_number'] = $data['part_number'] ?? null; - $this->container['release_date'] = $data['release_date'] ?? null; - $this->container['size'] = $data['size'] ?? null; - $this->container['style'] = $data['style'] ?? null; - $this->container['trade_in_eligible'] = $data['trade_in_eligible'] ?? null; - $this->container['website_display_group'] = $data['website_display_group'] ?? null; - $this->container['website_display_group_name'] = $data['website_display_group_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - $allowedValues = $this->getItemClassificationAllowableValues(); - if ( - !is_null($this->container['item_classification']) && - !in_array(strtoupper($this->container['item_classification']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'item_classification', must be one of '%s'", - $this->container['item_classification'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets adult_product - * - * @return bool|null - */ - public function getAdultProduct() - { - return $this->container['adult_product']; - } - - /** - * Sets adult_product - * - * @param bool|null $adult_product Identifies an Amazon catalog item is intended for an adult audience or is sexual in nature. - * - * @return self - */ - public function setAdultProduct($adult_product) - { - $this->container['adult_product'] = $adult_product; - - return $this; - } - /** - * Gets autographed - * - * @return bool|null - */ - public function getAutographed() - { - return $this->container['autographed']; - } - - /** - * Sets autographed - * - * @param bool|null $autographed Identifies an Amazon catalog item is autographed by a player or celebrity. - * - * @return self - */ - public function setAutographed($autographed) - { - $this->container['autographed'] = $autographed; - - return $this; - } - /** - * Gets brand - * - * @return string|null - */ - public function getBrand() - { - return $this->container['brand']; - } - - /** - * Sets brand - * - * @param string|null $brand Name of the brand associated with an Amazon catalog item. - * - * @return self - */ - public function setBrand($brand) - { - $this->container['brand'] = $brand; - - return $this; - } - /** - * Gets browse_classification - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemBrowseClassification|null - */ - public function getBrowseClassification() - { - return $this->container['browse_classification']; - } - - /** - * Sets browse_classification - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemBrowseClassification|null $browse_classification browse_classification - * - * @return self - */ - public function setBrowseClassification($browse_classification) - { - $this->container['browse_classification'] = $browse_classification; - - return $this; - } - /** - * Gets color - * - * @return string|null - */ - public function getColor() - { - return $this->container['color']; - } - - /** - * Sets color - * - * @param string|null $color Name of the color associated with an Amazon catalog item. - * - * @return self - */ - public function setColor($color) - { - $this->container['color'] = $color; - - return $this; - } - /** - * Gets contributors - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributor[]|null - */ - public function getContributors() - { - return $this->container['contributors']; - } - - /** - * Sets contributors - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemContributor[]|null $contributors Individual contributors to the creation of an item, such as the authors or actors. - * - * @return self - */ - public function setContributors($contributors) - { - $this->container['contributors'] = $contributors; - - return $this; - } - /** - * Gets item_classification - * - * @return string|null - */ - public function getItemClassification() - { - return $this->container['item_classification']; - } - - /** - * Sets item_classification - * - * @param string|null $item_classification Classification type associated with the Amazon catalog item. - * - * @return self - */ - public function setItemClassification($item_classification) - { - $allowedValues = $this->getItemClassificationAllowableValues(); - if (!is_null($item_classification) &&!in_array(strtoupper($item_classification), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'item_classification', must be one of '%s'", - $item_classification, - implode("', '", $allowedValues) - ) - ); - } - $this->container['item_classification'] = $item_classification; - - return $this; - } - /** - * Gets item_name - * - * @return string|null - */ - public function getItemName() - { - return $this->container['item_name']; - } - - /** - * Sets item_name - * - * @param string|null $item_name Name, or title, associated with an Amazon catalog item. - * - * @return self - */ - public function setItemName($item_name) - { - $this->container['item_name'] = $item_name; - - return $this; - } - /** - * Gets manufacturer - * - * @return string|null - */ - public function getManufacturer() - { - return $this->container['manufacturer']; - } - - /** - * Sets manufacturer - * - * @param string|null $manufacturer Name of the manufacturer associated with an Amazon catalog item. - * - * @return self - */ - public function setManufacturer($manufacturer) - { - $this->container['manufacturer'] = $manufacturer; - - return $this; - } - /** - * Gets memorabilia - * - * @return bool|null - */ - public function getMemorabilia() - { - return $this->container['memorabilia']; - } - - /** - * Sets memorabilia - * - * @param bool|null $memorabilia Identifies an Amazon catalog item is memorabilia valued for its connection with historical events, culture, or entertainment. - * - * @return self - */ - public function setMemorabilia($memorabilia) - { - $this->container['memorabilia'] = $memorabilia; - - return $this; - } - /** - * Gets model_number - * - * @return string|null - */ - public function getModelNumber() - { - return $this->container['model_number']; - } - - /** - * Sets model_number - * - * @param string|null $model_number Model number associated with an Amazon catalog item. - * - * @return self - */ - public function setModelNumber($model_number) - { - $this->container['model_number'] = $model_number; - - return $this; - } - /** - * Gets package_quantity - * - * @return int|null - */ - public function getPackageQuantity() - { - return $this->container['package_quantity']; - } - - /** - * Sets package_quantity - * - * @param int|null $package_quantity Quantity of an Amazon catalog item in one package. - * - * @return self - */ - public function setPackageQuantity($package_quantity) - { - $this->container['package_quantity'] = $package_quantity; - - return $this; - } - /** - * Gets part_number - * - * @return string|null - */ - public function getPartNumber() - { - return $this->container['part_number']; - } - - /** - * Sets part_number - * - * @param string|null $part_number Part number associated with an Amazon catalog item. - * - * @return self - */ - public function setPartNumber($part_number) - { - $this->container['part_number'] = $part_number; - - return $this; - } - /** - * Gets release_date - * - * @return string|null - */ - public function getReleaseDate() - { - return $this->container['release_date']; - } - - /** - * Sets release_date - * - * @param string|null $release_date First date on which an Amazon catalog item is shippable to customers. - * - * @return self - */ - public function setReleaseDate($release_date) - { - $this->container['release_date'] = $release_date; - - return $this; - } - /** - * Gets size - * - * @return string|null - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param string|null $size Name of the size associated with an Amazon catalog item. - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets style - * - * @return string|null - */ - public function getStyle() - { - return $this->container['style']; - } - - /** - * Sets style - * - * @param string|null $style Name of the style associated with an Amazon catalog item. - * - * @return self - */ - public function setStyle($style) - { - $this->container['style'] = $style; - - return $this; - } - /** - * Gets trade_in_eligible - * - * @return bool|null - */ - public function getTradeInEligible() - { - return $this->container['trade_in_eligible']; - } - - /** - * Sets trade_in_eligible - * - * @param bool|null $trade_in_eligible Identifies an Amazon catalog item is eligible for trade-in. - * - * @return self - */ - public function setTradeInEligible($trade_in_eligible) - { - $this->container['trade_in_eligible'] = $trade_in_eligible; - - return $this; - } - /** - * Gets website_display_group - * - * @return string|null - */ - public function getWebsiteDisplayGroup() - { - return $this->container['website_display_group']; - } - - /** - * Sets website_display_group - * - * @param string|null $website_display_group Identifier of the website display group associated with an Amazon catalog item. - * - * @return self - */ - public function setWebsiteDisplayGroup($website_display_group) - { - $this->container['website_display_group'] = $website_display_group; - - return $this; - } - /** - * Gets website_display_group_name - * - * @return string|null - */ - public function getWebsiteDisplayGroupName() - { - return $this->container['website_display_group_name']; - } - - /** - * Sets website_display_group_name - * - * @param string|null $website_display_group_name Display name of the website display group associated with an Amazon catalog item. - * - * @return self - */ - public function setWebsiteDisplayGroupName($website_display_group_name) - { - $this->container['website_display_group_name'] = $website_display_group_name; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemVariationTheme.php b/lib/Model/CatalogItemsV20220401/ItemVariationTheme.php deleted file mode 100644 index 448a3f436..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemVariationTheme.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemVariationTheme extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemVariationTheme'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'attributes' => 'string[]', - 'theme' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'attributes' => null, - 'theme' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attributes' => 'attributes', - 'theme' => 'theme' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attributes' => 'setAttributes', - 'theme' => 'setTheme' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attributes' => 'getAttributes', - 'theme' => 'getTheme' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attributes'] = $data['attributes'] ?? null; - $this->container['theme'] = $data['theme'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets attributes - * - * @return string[]|null - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param string[]|null $attributes Names of the Amazon catalog item attributes associated with the variation theme. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - /** - * Gets theme - * - * @return string|null - */ - public function getTheme() - { - return $this->container['theme']; - } - - /** - * Sets theme - * - * @param string|null $theme Variation theme indicating the combination of Amazon item catalog attributes that define the variation family. - * - * @return self - */ - public function setTheme($theme) - { - $this->container['theme'] = $theme; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.php b/lib/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.php deleted file mode 100644 index 3fc576685..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemVendorDetailsByMarketplace.php +++ /dev/null @@ -1,428 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemVendorDetailsByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemVendorDetailsByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'brand_code' => 'string', - 'manufacturer_code' => 'string', - 'manufacturer_code_parent' => 'string', - 'product_category' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory', - 'product_group' => 'string', - 'product_subcategory' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory', - 'replenishment_category' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'brand_code' => null, - 'manufacturer_code' => null, - 'manufacturer_code_parent' => null, - 'product_category' => null, - 'product_group' => null, - 'product_subcategory' => null, - 'replenishment_category' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'brand_code' => 'brandCode', - 'manufacturer_code' => 'manufacturerCode', - 'manufacturer_code_parent' => 'manufacturerCodeParent', - 'product_category' => 'productCategory', - 'product_group' => 'productGroup', - 'product_subcategory' => 'productSubcategory', - 'replenishment_category' => 'replenishmentCategory' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'brand_code' => 'setBrandCode', - 'manufacturer_code' => 'setManufacturerCode', - 'manufacturer_code_parent' => 'setManufacturerCodeParent', - 'product_category' => 'setProductCategory', - 'product_group' => 'setProductGroup', - 'product_subcategory' => 'setProductSubcategory', - 'replenishment_category' => 'setReplenishmentCategory' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'brand_code' => 'getBrandCode', - 'manufacturer_code' => 'getManufacturerCode', - 'manufacturer_code_parent' => 'getManufacturerCodeParent', - 'product_category' => 'getProductCategory', - 'product_group' => 'getProductGroup', - 'product_subcategory' => 'getProductSubcategory', - 'replenishment_category' => 'getReplenishmentCategory' - ]; - - - - const REPLENISHMENT_CATEGORY_ALLOCATED = 'ALLOCATED'; - const REPLENISHMENT_CATEGORY_BASIC_REPLENISHMENT = 'BASIC_REPLENISHMENT'; - const REPLENISHMENT_CATEGORY_IN_SEASON = 'IN_SEASON'; - const REPLENISHMENT_CATEGORY_LIMITED_REPLENISHMENT = 'LIMITED_REPLENISHMENT'; - const REPLENISHMENT_CATEGORY_MANUFACTURER_OUT_OF_STOCK = 'MANUFACTURER_OUT_OF_STOCK'; - const REPLENISHMENT_CATEGORY_NEW_PRODUCT = 'NEW_PRODUCT'; - const REPLENISHMENT_CATEGORY_NON_REPLENISHABLE = 'NON_REPLENISHABLE'; - const REPLENISHMENT_CATEGORY_NON_STOCKUPABLE = 'NON_STOCKUPABLE'; - const REPLENISHMENT_CATEGORY_OBSOLETE = 'OBSOLETE'; - const REPLENISHMENT_CATEGORY_PLANNED_REPLENISHMENT = 'PLANNED_REPLENISHMENT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getReplenishmentCategoryAllowableValues() - { - $baseVals = [ - self::REPLENISHMENT_CATEGORY_ALLOCATED, - self::REPLENISHMENT_CATEGORY_BASIC_REPLENISHMENT, - self::REPLENISHMENT_CATEGORY_IN_SEASON, - self::REPLENISHMENT_CATEGORY_LIMITED_REPLENISHMENT, - self::REPLENISHMENT_CATEGORY_MANUFACTURER_OUT_OF_STOCK, - self::REPLENISHMENT_CATEGORY_NEW_PRODUCT, - self::REPLENISHMENT_CATEGORY_NON_REPLENISHABLE, - self::REPLENISHMENT_CATEGORY_NON_STOCKUPABLE, - self::REPLENISHMENT_CATEGORY_OBSOLETE, - self::REPLENISHMENT_CATEGORY_PLANNED_REPLENISHMENT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['brand_code'] = $data['brand_code'] ?? null; - $this->container['manufacturer_code'] = $data['manufacturer_code'] ?? null; - $this->container['manufacturer_code_parent'] = $data['manufacturer_code_parent'] ?? null; - $this->container['product_category'] = $data['product_category'] ?? null; - $this->container['product_group'] = $data['product_group'] ?? null; - $this->container['product_subcategory'] = $data['product_subcategory'] ?? null; - $this->container['replenishment_category'] = $data['replenishment_category'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - $allowedValues = $this->getReplenishmentCategoryAllowableValues(); - if ( - !is_null($this->container['replenishment_category']) && - !in_array(strtoupper($this->container['replenishment_category']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'replenishment_category', must be one of '%s'", - $this->container['replenishment_category'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets brand_code - * - * @return string|null - */ - public function getBrandCode() - { - return $this->container['brand_code']; - } - - /** - * Sets brand_code - * - * @param string|null $brand_code Brand code associated with an Amazon catalog item. - * - * @return self - */ - public function setBrandCode($brand_code) - { - $this->container['brand_code'] = $brand_code; - - return $this; - } - /** - * Gets manufacturer_code - * - * @return string|null - */ - public function getManufacturerCode() - { - return $this->container['manufacturer_code']; - } - - /** - * Sets manufacturer_code - * - * @param string|null $manufacturer_code Manufacturer code associated with an Amazon catalog item. - * - * @return self - */ - public function setManufacturerCode($manufacturer_code) - { - $this->container['manufacturer_code'] = $manufacturer_code; - - return $this; - } - /** - * Gets manufacturer_code_parent - * - * @return string|null - */ - public function getManufacturerCodeParent() - { - return $this->container['manufacturer_code_parent']; - } - - /** - * Sets manufacturer_code_parent - * - * @param string|null $manufacturer_code_parent Parent vendor code of the manufacturer code. - * - * @return self - */ - public function setManufacturerCodeParent($manufacturer_code_parent) - { - $this->container['manufacturer_code_parent'] = $manufacturer_code_parent; - - return $this; - } - /** - * Gets product_category - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory|null - */ - public function getProductCategory() - { - return $this->container['product_category']; - } - - /** - * Sets product_category - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory|null $product_category product_category - * - * @return self - */ - public function setProductCategory($product_category) - { - $this->container['product_category'] = $product_category; - - return $this; - } - /** - * Gets product_group - * - * @return string|null - */ - public function getProductGroup() - { - return $this->container['product_group']; - } - - /** - * Sets product_group - * - * @param string|null $product_group Product group associated with an Amazon catalog item. - * - * @return self - */ - public function setProductGroup($product_group) - { - $this->container['product_group'] = $product_group; - - return $this; - } - /** - * Gets product_subcategory - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory|null - */ - public function getProductSubcategory() - { - return $this->container['product_subcategory']; - } - - /** - * Sets product_subcategory - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ItemVendorDetailsCategory|null $product_subcategory product_subcategory - * - * @return self - */ - public function setProductSubcategory($product_subcategory) - { - $this->container['product_subcategory'] = $product_subcategory; - - return $this; - } - /** - * Gets replenishment_category - * - * @return string|null - */ - public function getReplenishmentCategory() - { - return $this->container['replenishment_category']; - } - - /** - * Sets replenishment_category - * - * @param string|null $replenishment_category Replenishment category associated with an Amazon catalog item. - * - * @return self - */ - public function setReplenishmentCategory($replenishment_category) - { - $allowedValues = $this->getReplenishmentCategoryAllowableValues(); - if (!is_null($replenishment_category) &&!in_array(strtoupper($replenishment_category), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'replenishment_category', must be one of '%s'", - $replenishment_category, - implode("', '", $allowedValues) - ) - ); - } - $this->container['replenishment_category'] = $replenishment_category; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.php b/lib/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.php deleted file mode 100644 index af56c83fa..000000000 --- a/lib/Model/CatalogItemsV20220401/ItemVendorDetailsCategory.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemVendorDetailsCategory extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemVendorDetailsCategory'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'display_name' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'display_name' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'display_name' => 'displayName', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'display_name' => 'setDisplayName', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'display_name' => 'getDisplayName', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets display_name - * - * @return string|null - */ - public function getDisplayName() - { - return $this->container['display_name']; - } - - /** - * Sets display_name - * - * @param string|null $display_name Display name of the product category or subcategory - * - * @return self - */ - public function setDisplayName($display_name) - { - $this->container['display_name'] = $display_name; - - return $this; - } - /** - * Gets value - * - * @return string|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string|null $value Value (code) of the product category or subcategory. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Pagination.php b/lib/Model/CatalogItemsV20220401/Pagination.php deleted file mode 100644 index 271dc9e74..000000000 --- a/lib/Model/CatalogItemsV20220401/Pagination.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string', - 'previous_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null, - 'previous_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken', - 'previous_token' => 'previousToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken', - 'previous_token' => 'setPreviousToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken', - 'previous_token' => 'getPreviousToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['previous_token'] = $data['previous_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A token that can be used to fetch the next page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets previous_token - * - * @return string|null - */ - public function getPreviousToken() - { - return $this->container['previous_token']; - } - - /** - * Sets previous_token - * - * @param string|null $previous_token A token that can be used to fetch the previous page. - * - * @return self - */ - public function setPreviousToken($previous_token) - { - $this->container['previous_token'] = $previous_token; - - return $this; - } -} - - diff --git a/lib/Model/CatalogItemsV20220401/Refinements.php b/lib/Model/CatalogItemsV20220401/Refinements.php deleted file mode 100644 index 16cc219ee..000000000 --- a/lib/Model/CatalogItemsV20220401/Refinements.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Refinements extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Refinements'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'brands' => '\SellingPartnerApi\Model\CatalogItemsV20220401\BrandRefinement[]', - 'classifications' => '\SellingPartnerApi\Model\CatalogItemsV20220401\ClassificationRefinement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'brands' => null, - 'classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'brands' => 'brands', - 'classifications' => 'classifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'brands' => 'setBrands', - 'classifications' => 'setClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'brands' => 'getBrands', - 'classifications' => 'getClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['brands'] = $data['brands'] ?? null; - $this->container['classifications'] = $data['classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['brands'] === null) { - $invalidProperties[] = "'brands' can't be null"; - } - if ($this->container['classifications'] === null) { - $invalidProperties[] = "'classifications' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets brands - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\BrandRefinement[] - */ - public function getBrands() - { - return $this->container['brands']; - } - - /** - * Sets brands - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\BrandRefinement[] $brands Brand search refinements. - * - * @return self - */ - public function setBrands($brands) - { - $this->container['brands'] = $brands; - - return $this; - } - /** - * Gets classifications - * - * @return \SellingPartnerApi\Model\CatalogItemsV20220401\ClassificationRefinement[] - */ - public function getClassifications() - { - return $this->container['classifications']; - } - - /** - * Sets classifications - * - * @param \SellingPartnerApi\Model\CatalogItemsV20220401\ClassificationRefinement[] $classifications Classification search refinements. - * - * @return self - */ - public function setClassifications($classifications) - { - $this->container['classifications'] = $classifications; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Code.php b/lib/Model/EasyShipV20220323/Code.php deleted file mode 100644 index 66db3bb78..000000000 --- a/lib/Model/EasyShipV20220323/Code.php +++ /dev/null @@ -1,105 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/CreateScheduledPackageRequest.php b/lib/Model/EasyShipV20220323/CreateScheduledPackageRequest.php deleted file mode 100644 index a1b176a68..000000000 --- a/lib/Model/EasyShipV20220323/CreateScheduledPackageRequest.php +++ /dev/null @@ -1,244 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateScheduledPackageRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateScheduledPackageRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'marketplace_id' => 'string', - 'package_details' => '\SellingPartnerApi\Model\EasyShipV20220323\PackageDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'marketplace_id' => null, - 'package_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'amazonOrderId', - 'marketplace_id' => 'marketplaceId', - 'package_details' => 'packageDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'marketplace_id' => 'setMarketplaceId', - 'package_details' => 'setPackageDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'marketplace_id' => 'getMarketplaceId', - 'package_details' => 'getPackageDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['package_details'] = $data['package_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) > 255)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['package_details'] === null) { - $invalidProperties[] = "'package_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A string of up to 255 characters. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - if ((mb_strlen($marketplace_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling CreateScheduledPackageRequest., must be smaller than or equal to 255.'); - } - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling CreateScheduledPackageRequest., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets package_details - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\PackageDetails - */ - public function getPackageDetails() - { - return $this->container['package_details']; - } - - /** - * Sets package_details - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\PackageDetails $package_details package_details - * - * @return self - */ - public function setPackageDetails($package_details) - { - $this->container['package_details'] = $package_details; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/CreateScheduledPackagesRequest.php b/lib/Model/EasyShipV20220323/CreateScheduledPackagesRequest.php deleted file mode 100644 index f57a8d9d5..000000000 --- a/lib/Model/EasyShipV20220323/CreateScheduledPackagesRequest.php +++ /dev/null @@ -1,253 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateScheduledPackagesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateScheduledPackagesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'order_schedule_details_list' => '\SellingPartnerApi\Model\EasyShipV20220323\OrderScheduleDetails[]', - 'label_format' => '\SellingPartnerApi\Model\EasyShipV20220323\LabelFormat' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'order_schedule_details_list' => null, - 'label_format' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'order_schedule_details_list' => 'orderScheduleDetailsList', - 'label_format' => 'labelFormat' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'order_schedule_details_list' => 'setOrderScheduleDetailsList', - 'label_format' => 'setLabelFormat' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'order_schedule_details_list' => 'getOrderScheduleDetailsList', - 'label_format' => 'getLabelFormat' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['order_schedule_details_list'] = $data['order_schedule_details_list'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) > 255)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['order_schedule_details_list'] === null) { - $invalidProperties[] = "'order_schedule_details_list' can't be null"; - } - if ((count($this->container['order_schedule_details_list']) < 1)) { - $invalidProperties[] = "invalid value for 'order_schedule_details_list', number of items must be greater than or equal to 1."; - } - - if ($this->container['label_format'] === null) { - $invalidProperties[] = "'label_format' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A string of up to 255 characters. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - if ((mb_strlen($marketplace_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling CreateScheduledPackagesRequest., must be smaller than or equal to 255.'); - } - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling CreateScheduledPackagesRequest., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets order_schedule_details_list - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\OrderScheduleDetails[] - */ - public function getOrderScheduleDetailsList() - { - return $this->container['order_schedule_details_list']; - } - - /** - * Sets order_schedule_details_list - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\OrderScheduleDetails[] $order_schedule_details_list An array allowing users to specify orders to be scheduled. - * - * @return self - */ - public function setOrderScheduleDetailsList($order_schedule_details_list) - { - - - if ((count($order_schedule_details_list) < 1)) { - throw new \InvalidArgumentException('invalid length for $order_schedule_details_list when calling CreateScheduledPackagesRequest., number of items must be greater than or equal to 1.'); - } - $this->container['order_schedule_details_list'] = $order_schedule_details_list; - - return $this; - } - /** - * Gets label_format - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\LabelFormat - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\LabelFormat $label_format label_format - * - * @return self - */ - public function setLabelFormat($label_format) - { - $this->container['label_format'] = $label_format; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/CreateScheduledPackagesResponse.php b/lib/Model/EasyShipV20220323/CreateScheduledPackagesResponse.php deleted file mode 100644 index 8f50c9ad8..000000000 --- a/lib/Model/EasyShipV20220323/CreateScheduledPackagesResponse.php +++ /dev/null @@ -1,253 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateScheduledPackagesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateScheduledPackagesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduled_packages' => '\SellingPartnerApi\Model\EasyShipV20220323\Package[]', - 'rejected_orders' => '\SellingPartnerApi\Model\EasyShipV20220323\RejectedOrder[]', - 'printable_documents_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduled_packages' => null, - 'rejected_orders' => null, - 'printable_documents_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'scheduled_packages' => 'scheduledPackages', - 'rejected_orders' => 'rejectedOrders', - 'printable_documents_url' => 'printableDocumentsUrl' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'scheduled_packages' => 'setScheduledPackages', - 'rejected_orders' => 'setRejectedOrders', - 'printable_documents_url' => 'setPrintableDocumentsUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'scheduled_packages' => 'getScheduledPackages', - 'rejected_orders' => 'getRejectedOrders', - 'printable_documents_url' => 'getPrintableDocumentsUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduled_packages'] = $data['scheduled_packages'] ?? null; - $this->container['rejected_orders'] = $data['rejected_orders'] ?? null; - $this->container['printable_documents_url'] = $data['printable_documents_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['scheduled_packages']) && (count($this->container['scheduled_packages']) > 100)) { - $invalidProperties[] = "invalid value for 'scheduled_packages', number of items must be less than or equal to 100."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets scheduled_packages - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Package[]|null - */ - public function getScheduledPackages() - { - return $this->container['scheduled_packages']; - } - - /** - * Sets scheduled_packages - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Package[]|null $scheduled_packages A list of packages. Refer to the `Package` object. - * - * @return self - */ - public function setScheduledPackages($scheduled_packages) - { - - if (!is_null($scheduled_packages) && (count($scheduled_packages) > 100)) { - throw new \InvalidArgumentException('invalid value for $scheduled_packages when calling CreateScheduledPackagesResponse., number of items must be less than or equal to 100.'); - } - $this->container['scheduled_packages'] = $scheduled_packages; - - return $this; - } - /** - * Gets rejected_orders - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\RejectedOrder[]|null - */ - public function getRejectedOrders() - { - return $this->container['rejected_orders']; - } - - /** - * Sets rejected_orders - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\RejectedOrder[]|null $rejected_orders A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error. - * - * @return self - */ - public function setRejectedOrders($rejected_orders) - { - $this->container['rejected_orders'] = $rejected_orders; - - return $this; - } - /** - * Gets printable_documents_url - * - * @return string|null - */ - public function getPrintableDocumentsUrl() - { - return $this->container['printable_documents_url']; - } - - /** - * Sets printable_documents_url - * - * @param string|null $printable_documents_url A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace. - * - * @return self - */ - public function setPrintableDocumentsUrl($printable_documents_url) - { - $this->container['printable_documents_url'] = $printable_documents_url; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Dimensions.php b/lib/Model/EasyShipV20220323/Dimensions.php deleted file mode 100644 index fb95a890a..000000000 --- a/lib/Model/EasyShipV20220323/Dimensions.php +++ /dev/null @@ -1,320 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'float', - 'width' => 'float', - 'height' => 'float', - 'unit' => '\SellingPartnerApi\Model\EasyShipV20220323\UnitOfLength', - 'identifier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => 'float', - 'width' => 'float', - 'height' => 'float', - 'unit' => null, - 'identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit' => 'unit', - 'identifier' => 'identifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit' => 'setUnit', - 'identifier' => 'setIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit' => 'getUnit', - 'identifier' => 'getIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - $this->container['identifier'] = $data['identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['length']) && ($this->container['length'] < 0.01)) { - $invalidProperties[] = "invalid value for 'length', must be bigger than or equal to 0.01."; - } - - if (!is_null($this->container['width']) && ($this->container['width'] < 0.01)) { - $invalidProperties[] = "invalid value for 'width', must be bigger than or equal to 0.01."; - } - - if (!is_null($this->container['height']) && ($this->container['height'] < 0.01)) { - $invalidProperties[] = "invalid value for 'height', must be bigger than or equal to 0.01."; - } - - if (!is_null($this->container['identifier']) && (mb_strlen($this->container['identifier']) > 255)) { - $invalidProperties[] = "invalid value for 'identifier', the character length must be smaller than or equal to 255."; - } - - if (!is_null($this->container['identifier']) && (mb_strlen($this->container['identifier']) < 1)) { - $invalidProperties[] = "invalid value for 'identifier', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return float|null - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param float|null $length The numerical value of the specified dimension. - * - * @return self - */ - public function setLength($length) - { - - if (!is_null($length) && ($length < 0.01)) { - throw new \InvalidArgumentException('invalid value for $length when calling Dimensions., must be bigger than or equal to 0.01.'); - } - - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return float|null - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param float|null $width The numerical value of the specified dimension. - * - * @return self - */ - public function setWidth($width) - { - - if (!is_null($width) && ($width < 0.01)) { - throw new \InvalidArgumentException('invalid value for $width when calling Dimensions., must be bigger than or equal to 0.01.'); - } - - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return float|null - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param float|null $height The numerical value of the specified dimension. - * - * @return self - */ - public function setHeight($height) - { - - if (!is_null($height) && ($height < 0.01)) { - throw new \InvalidArgumentException('invalid value for $height when calling Dimensions., must be bigger than or equal to 0.01.'); - } - - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\UnitOfLength|null - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UnitOfLength|null $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets identifier - * - * @return string|null - */ - public function getIdentifier() - { - return $this->container['identifier']; - } - - /** - * Sets identifier - * - * @param string|null $identifier A string of up to 255 characters. - * - * @return self - */ - public function setIdentifier($identifier) - { - if (!is_null($identifier) && (mb_strlen($identifier) > 255)) { - throw new \InvalidArgumentException('invalid length for $identifier when calling Dimensions., must be smaller than or equal to 255.'); - } - if (!is_null($identifier) && (mb_strlen($identifier) < 1)) { - throw new \InvalidArgumentException('invalid length for $identifier when calling Dimensions., must be bigger than or equal to 1.'); - } - - $this->container['identifier'] = $identifier; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Error.php b/lib/Model/EasyShipV20220323/Error.php deleted file mode 100644 index e7d1263db..000000000 --- a/lib/Model/EasyShipV20220323/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/ErrorList.php b/lib/Model/EasyShipV20220323/ErrorList.php deleted file mode 100644 index b381a829c..000000000 --- a/lib/Model/EasyShipV20220323/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\EasyShipV20220323\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/HandoverMethod.php b/lib/Model/EasyShipV20220323/HandoverMethod.php deleted file mode 100644 index 9cf79dfb3..000000000 --- a/lib/Model/EasyShipV20220323/HandoverMethod.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/InvoiceData.php b/lib/Model/EasyShipV20220323/InvoiceData.php deleted file mode 100644 index 299b032c7..000000000 --- a/lib/Model/EasyShipV20220323/InvoiceData.php +++ /dev/null @@ -1,209 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceData extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoice_number' => 'string', - 'invoice_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoice_number' => null, - 'invoice_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoice_number' => 'invoiceNumber', - 'invoice_date' => 'invoiceDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoice_number' => 'setInvoiceNumber', - 'invoice_date' => 'setInvoiceDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoice_number' => 'getInvoiceNumber', - 'invoice_date' => 'getInvoiceDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoice_number'] = $data['invoice_number'] ?? null; - $this->container['invoice_date'] = $data['invoice_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['invoice_number'] === null) { - $invalidProperties[] = "'invoice_number' can't be null"; - } - if ((mb_strlen($this->container['invoice_number']) > 255)) { - $invalidProperties[] = "invalid value for 'invoice_number', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['invoice_number']) < 1)) { - $invalidProperties[] = "invalid value for 'invoice_number', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets invoice_number - * - * @return string - */ - public function getInvoiceNumber() - { - return $this->container['invoice_number']; - } - - /** - * Sets invoice_number - * - * @param string $invoice_number A string of up to 255 characters. - * - * @return self - */ - public function setInvoiceNumber($invoice_number) - { - if ((mb_strlen($invoice_number) > 255)) { - throw new \InvalidArgumentException('invalid length for $invoice_number when calling InvoiceData., must be smaller than or equal to 255.'); - } - if ((mb_strlen($invoice_number) < 1)) { - throw new \InvalidArgumentException('invalid length for $invoice_number when calling InvoiceData., must be bigger than or equal to 1.'); - } - - $this->container['invoice_number'] = $invoice_number; - - return $this; - } - /** - * Gets invoice_date - * - * @return string|null - */ - public function getInvoiceDate() - { - return $this->container['invoice_date']; - } - - /** - * Sets invoice_date - * - * @param string|null $invoice_date A datetime value in ISO 8601 format. - * - * @return self - */ - public function setInvoiceDate($invoice_date) - { - $this->container['invoice_date'] = $invoice_date; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Item.php b/lib/Model/EasyShipV20220323/Item.php deleted file mode 100644 index 385c37d4e..000000000 --- a/lib/Model/EasyShipV20220323/Item.php +++ /dev/null @@ -1,207 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_item_id' => 'string', - 'order_item_serial_numbers' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_item_id' => null, - 'order_item_serial_numbers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_item_id' => 'orderItemId', - 'order_item_serial_numbers' => 'orderItemSerialNumbers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_item_id' => 'setOrderItemId', - 'order_item_serial_numbers' => 'setOrderItemSerialNumbers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_item_id' => 'getOrderItemId', - 'order_item_serial_numbers' => 'getOrderItemSerialNumbers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['order_item_serial_numbers'] = $data['order_item_serial_numbers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['order_item_id']) && (mb_strlen($this->container['order_item_id']) > 255)) { - $invalidProperties[] = "invalid value for 'order_item_id', the character length must be smaller than or equal to 255."; - } - - if (!is_null($this->container['order_item_serial_numbers']) && (count($this->container['order_item_serial_numbers']) > 100)) { - $invalidProperties[] = "invalid value for 'order_item_serial_numbers', number of items must be less than or equal to 100."; - } - - return $invalidProperties; - } - - - /** - * Gets order_item_id - * - * @return string|null - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string|null $order_item_id The Amazon-defined order item identifier. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - if (!is_null($order_item_id) && (mb_strlen($order_item_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $order_item_id when calling Item., must be smaller than or equal to 255.'); - } - - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets order_item_serial_numbers - * - * @return string[]|null - */ - public function getOrderItemSerialNumbers() - { - return $this->container['order_item_serial_numbers']; - } - - /** - * Sets order_item_serial_numbers - * - * @param string[]|null $order_item_serial_numbers A list of serial numbers for the items associated with the `OrderItemId` value. - * - * @return self - */ - public function setOrderItemSerialNumbers($order_item_serial_numbers) - { - - if (!is_null($order_item_serial_numbers) && (count($order_item_serial_numbers) > 100)) { - throw new \InvalidArgumentException('invalid value for $order_item_serial_numbers when calling Item., number of items must be less than or equal to 100.'); - } - $this->container['order_item_serial_numbers'] = $order_item_serial_numbers; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/LabelFormat.php b/lib/Model/EasyShipV20220323/LabelFormat.php deleted file mode 100644 index 9eff2e0c3..000000000 --- a/lib/Model/EasyShipV20220323/LabelFormat.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/ListHandoverSlotsRequest.php b/lib/Model/EasyShipV20220323/ListHandoverSlotsRequest.php deleted file mode 100644 index 0b18c9e7f..000000000 --- a/lib/Model/EasyShipV20220323/ListHandoverSlotsRequest.php +++ /dev/null @@ -1,276 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListHandoverSlotsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListHandoverSlotsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'amazon_order_id' => 'string', - 'package_dimensions' => '\SellingPartnerApi\Model\EasyShipV20220323\Dimensions', - 'package_weight' => '\SellingPartnerApi\Model\EasyShipV20220323\Weight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'amazon_order_id' => null, - 'package_dimensions' => null, - 'package_weight' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'amazon_order_id' => 'amazonOrderId', - 'package_dimensions' => 'packageDimensions', - 'package_weight' => 'packageWeight' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'amazon_order_id' => 'setAmazonOrderId', - 'package_dimensions' => 'setPackageDimensions', - 'package_weight' => 'setPackageWeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'amazon_order_id' => 'getAmazonOrderId', - 'package_dimensions' => 'getPackageDimensions', - 'package_weight' => 'getPackageWeight' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['package_dimensions'] = $data['package_dimensions'] ?? null; - $this->container['package_weight'] = $data['package_weight'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) > 255)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if ($this->container['package_dimensions'] === null) { - $invalidProperties[] = "'package_dimensions' can't be null"; - } - if ($this->container['package_weight'] === null) { - $invalidProperties[] = "'package_weight' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A string of up to 255 characters. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - if ((mb_strlen($marketplace_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling ListHandoverSlotsRequest., must be smaller than or equal to 255.'); - } - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling ListHandoverSlotsRequest., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets package_dimensions - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Dimensions - */ - public function getPackageDimensions() - { - return $this->container['package_dimensions']; - } - - /** - * Sets package_dimensions - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Dimensions $package_dimensions package_dimensions - * - * @return self - */ - public function setPackageDimensions($package_dimensions) - { - $this->container['package_dimensions'] = $package_dimensions; - - return $this; - } - /** - * Gets package_weight - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Weight - */ - public function getPackageWeight() - { - return $this->container['package_weight']; - } - - /** - * Sets package_weight - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Weight $package_weight package_weight - * - * @return self - */ - public function setPackageWeight($package_weight) - { - $this->container['package_weight'] = $package_weight; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/ListHandoverSlotsResponse.php b/lib/Model/EasyShipV20220323/ListHandoverSlotsResponse.php deleted file mode 100644 index 143a592af..000000000 --- a/lib/Model/EasyShipV20220323/ListHandoverSlotsResponse.php +++ /dev/null @@ -1,237 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListHandoverSlotsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListHandoverSlotsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'time_slots' => '\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'time_slots' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'amazon_order_id' => 'amazonOrderId', - 'time_slots' => 'timeSlots' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'amazon_order_id' => 'setAmazonOrderId', - 'time_slots' => 'setTimeSlots' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'amazon_order_id' => 'getAmazonOrderId', - 'time_slots' => 'getTimeSlots' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['time_slots'] = $data['time_slots'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if ($this->container['time_slots'] === null) { - $invalidProperties[] = "'time_slots' can't be null"; - } - if ((count($this->container['time_slots']) > 500)) { - $invalidProperties[] = "invalid value for 'time_slots', number of items must be less than or equal to 500."; - } - - if ((count($this->container['time_slots']) < 1)) { - $invalidProperties[] = "invalid value for 'time_slots', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets time_slots - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot[] - */ - public function getTimeSlots() - { - return $this->container['time_slots']; - } - - /** - * Sets time_slots - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot[] $time_slots A list of time slots. - * - * @return self - */ - public function setTimeSlots($time_slots) - { - - if ((count($time_slots) > 500)) { - throw new \InvalidArgumentException('invalid value for $time_slots when calling ListHandoverSlotsResponse., number of items must be less than or equal to 500.'); - } - if ((count($time_slots) < 1)) { - throw new \InvalidArgumentException('invalid length for $time_slots when calling ListHandoverSlotsResponse., number of items must be greater than or equal to 1.'); - } - $this->container['time_slots'] = $time_slots; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/OrderScheduleDetails.php b/lib/Model/EasyShipV20220323/OrderScheduleDetails.php deleted file mode 100644 index f290dc351..000000000 --- a/lib/Model/EasyShipV20220323/OrderScheduleDetails.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderScheduleDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderScheduleDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'package_details' => '\SellingPartnerApi\Model\EasyShipV20220323\PackageDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'package_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'amazonOrderId', - 'package_details' => 'packageDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'package_details' => 'setPackageDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'package_details' => 'getPackageDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['package_details'] = $data['package_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets package_details - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\PackageDetails|null - */ - public function getPackageDetails() - { - return $this->container['package_details']; - } - - /** - * Sets package_details - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\PackageDetails|null $package_details package_details - * - * @return self - */ - public function setPackageDetails($package_details) - { - $this->container['package_details'] = $package_details; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Package.php b/lib/Model/EasyShipV20220323/Package.php deleted file mode 100644 index fecd168d3..000000000 --- a/lib/Model/EasyShipV20220323/Package.php +++ /dev/null @@ -1,439 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Package extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Package'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduled_package_id' => '\SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId', - 'package_dimensions' => '\SellingPartnerApi\Model\EasyShipV20220323\Dimensions', - 'package_weight' => '\SellingPartnerApi\Model\EasyShipV20220323\Weight', - 'package_items' => '\SellingPartnerApi\Model\EasyShipV20220323\Item[]', - 'package_time_slot' => '\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot', - 'package_identifier' => 'string', - 'invoice' => '\SellingPartnerApi\Model\EasyShipV20220323\InvoiceData', - 'package_status' => '\SellingPartnerApi\Model\EasyShipV20220323\PackageStatus', - 'tracking_details' => '\SellingPartnerApi\Model\EasyShipV20220323\TrackingDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduled_package_id' => null, - 'package_dimensions' => null, - 'package_weight' => null, - 'package_items' => null, - 'package_time_slot' => null, - 'package_identifier' => null, - 'invoice' => null, - 'package_status' => null, - 'tracking_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'scheduled_package_id' => 'scheduledPackageId', - 'package_dimensions' => 'packageDimensions', - 'package_weight' => 'packageWeight', - 'package_items' => 'packageItems', - 'package_time_slot' => 'packageTimeSlot', - 'package_identifier' => 'packageIdentifier', - 'invoice' => 'invoice', - 'package_status' => 'packageStatus', - 'tracking_details' => 'trackingDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'scheduled_package_id' => 'setScheduledPackageId', - 'package_dimensions' => 'setPackageDimensions', - 'package_weight' => 'setPackageWeight', - 'package_items' => 'setPackageItems', - 'package_time_slot' => 'setPackageTimeSlot', - 'package_identifier' => 'setPackageIdentifier', - 'invoice' => 'setInvoice', - 'package_status' => 'setPackageStatus', - 'tracking_details' => 'setTrackingDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'scheduled_package_id' => 'getScheduledPackageId', - 'package_dimensions' => 'getPackageDimensions', - 'package_weight' => 'getPackageWeight', - 'package_items' => 'getPackageItems', - 'package_time_slot' => 'getPackageTimeSlot', - 'package_identifier' => 'getPackageIdentifier', - 'invoice' => 'getInvoice', - 'package_status' => 'getPackageStatus', - 'tracking_details' => 'getTrackingDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduled_package_id'] = $data['scheduled_package_id'] ?? null; - $this->container['package_dimensions'] = $data['package_dimensions'] ?? null; - $this->container['package_weight'] = $data['package_weight'] ?? null; - $this->container['package_items'] = $data['package_items'] ?? null; - $this->container['package_time_slot'] = $data['package_time_slot'] ?? null; - $this->container['package_identifier'] = $data['package_identifier'] ?? null; - $this->container['invoice'] = $data['invoice'] ?? null; - $this->container['package_status'] = $data['package_status'] ?? null; - $this->container['tracking_details'] = $data['tracking_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['scheduled_package_id'] === null) { - $invalidProperties[] = "'scheduled_package_id' can't be null"; - } - if ($this->container['package_dimensions'] === null) { - $invalidProperties[] = "'package_dimensions' can't be null"; - } - if ($this->container['package_weight'] === null) { - $invalidProperties[] = "'package_weight' can't be null"; - } - if (!is_null($this->container['package_items']) && (count($this->container['package_items']) > 500)) { - $invalidProperties[] = "invalid value for 'package_items', number of items must be less than or equal to 500."; - } - - if ($this->container['package_time_slot'] === null) { - $invalidProperties[] = "'package_time_slot' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets scheduled_package_id - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId - */ - public function getScheduledPackageId() - { - return $this->container['scheduled_package_id']; - } - - /** - * Sets scheduled_package_id - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId $scheduled_package_id scheduled_package_id - * - * @return self - */ - public function setScheduledPackageId($scheduled_package_id) - { - $this->container['scheduled_package_id'] = $scheduled_package_id; - - return $this; - } - /** - * Gets package_dimensions - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Dimensions - */ - public function getPackageDimensions() - { - return $this->container['package_dimensions']; - } - - /** - * Sets package_dimensions - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Dimensions $package_dimensions package_dimensions - * - * @return self - */ - public function setPackageDimensions($package_dimensions) - { - $this->container['package_dimensions'] = $package_dimensions; - - return $this; - } - /** - * Gets package_weight - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Weight - */ - public function getPackageWeight() - { - return $this->container['package_weight']; - } - - /** - * Sets package_weight - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Weight $package_weight package_weight - * - * @return self - */ - public function setPackageWeight($package_weight) - { - $this->container['package_weight'] = $package_weight; - - return $this; - } - /** - * Gets package_items - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Item[]|null - */ - public function getPackageItems() - { - return $this->container['package_items']; - } - - /** - * Sets package_items - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Item[]|null $package_items A list of items contained in the package. - * - * @return self - */ - public function setPackageItems($package_items) - { - - if (!is_null($package_items) && (count($package_items) > 500)) { - throw new \InvalidArgumentException('invalid value for $package_items when calling Package., number of items must be less than or equal to 500.'); - } - $this->container['package_items'] = $package_items; - - return $this; - } - /** - * Gets package_time_slot - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot - */ - public function getPackageTimeSlot() - { - return $this->container['package_time_slot']; - } - - /** - * Sets package_time_slot - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot $package_time_slot package_time_slot - * - * @return self - */ - public function setPackageTimeSlot($package_time_slot) - { - $this->container['package_time_slot'] = $package_time_slot; - - return $this; - } - /** - * Gets package_identifier - * - * @return string|null - */ - public function getPackageIdentifier() - { - return $this->container['package_identifier']; - } - - /** - * Sets package_identifier - * - * @param string|null $package_identifier Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. - * - * @return self - */ - public function setPackageIdentifier($package_identifier) - { - $this->container['package_identifier'] = $package_identifier; - - return $this; - } - /** - * Gets invoice - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\InvoiceData|null - */ - public function getInvoice() - { - return $this->container['invoice']; - } - - /** - * Sets invoice - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\InvoiceData|null $invoice invoice - * - * @return self - */ - public function setInvoice($invoice) - { - $this->container['invoice'] = $invoice; - - return $this; - } - /** - * Gets package_status - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\PackageStatus|null - */ - public function getPackageStatus() - { - return $this->container['package_status']; - } - - /** - * Sets package_status - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\PackageStatus|null $package_status package_status - * - * @return self - */ - public function setPackageStatus($package_status) - { - $this->container['package_status'] = $package_status; - - return $this; - } - /** - * Gets tracking_details - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\TrackingDetails|null - */ - public function getTrackingDetails() - { - return $this->container['tracking_details']; - } - - /** - * Sets tracking_details - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\TrackingDetails|null $tracking_details tracking_details - * - * @return self - */ - public function setTrackingDetails($tracking_details) - { - $this->container['tracking_details'] = $tracking_details; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/PackageDetails.php b/lib/Model/EasyShipV20220323/PackageDetails.php deleted file mode 100644 index e027c8c6e..000000000 --- a/lib/Model/EasyShipV20220323/PackageDetails.php +++ /dev/null @@ -1,231 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_items' => '\SellingPartnerApi\Model\EasyShipV20220323\Item[]', - 'package_time_slot' => '\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot', - 'package_identifier' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_items' => null, - 'package_time_slot' => null, - 'package_identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_items' => 'packageItems', - 'package_time_slot' => 'packageTimeSlot', - 'package_identifier' => 'packageIdentifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_items' => 'setPackageItems', - 'package_time_slot' => 'setPackageTimeSlot', - 'package_identifier' => 'setPackageIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_items' => 'getPackageItems', - 'package_time_slot' => 'getPackageTimeSlot', - 'package_identifier' => 'getPackageIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_items'] = $data['package_items'] ?? null; - $this->container['package_time_slot'] = $data['package_time_slot'] ?? null; - $this->container['package_identifier'] = $data['package_identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['package_items']) && (count($this->container['package_items']) > 500)) { - $invalidProperties[] = "invalid value for 'package_items', number of items must be less than or equal to 500."; - } - - if ($this->container['package_time_slot'] === null) { - $invalidProperties[] = "'package_time_slot' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_items - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Item[]|null - */ - public function getPackageItems() - { - return $this->container['package_items']; - } - - /** - * Sets package_items - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Item[]|null $package_items A list of items contained in the package. - * - * @return self - */ - public function setPackageItems($package_items) - { - - if (!is_null($package_items) && (count($package_items) > 500)) { - throw new \InvalidArgumentException('invalid value for $package_items when calling PackageDetails., number of items must be less than or equal to 500.'); - } - $this->container['package_items'] = $package_items; - - return $this; - } - /** - * Gets package_time_slot - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot - */ - public function getPackageTimeSlot() - { - return $this->container['package_time_slot']; - } - - /** - * Sets package_time_slot - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot $package_time_slot package_time_slot - * - * @return self - */ - public function setPackageTimeSlot($package_time_slot) - { - $this->container['package_time_slot'] = $package_time_slot; - - return $this; - } - /** - * Gets package_identifier - * - * @return string|null - */ - public function getPackageIdentifier() - { - return $this->container['package_identifier']; - } - - /** - * Sets package_identifier - * - * @param string|null $package_identifier Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. - * - * @return self - */ - public function setPackageIdentifier($package_identifier) - { - $this->container['package_identifier'] = $package_identifier; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/PackageStatus.php b/lib/Model/EasyShipV20220323/PackageStatus.php deleted file mode 100644 index 19422a619..000000000 --- a/lib/Model/EasyShipV20220323/PackageStatus.php +++ /dev/null @@ -1,107 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Packages.php b/lib/Model/EasyShipV20220323/Packages.php deleted file mode 100644 index 8507022d9..000000000 --- a/lib/Model/EasyShipV20220323/Packages.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Packages extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Packages'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'packages' => '\SellingPartnerApi\Model\EasyShipV20220323\Package[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'packages' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'packages' => 'packages' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'packages' => 'setPackages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'packages' => 'getPackages' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['packages'] = $data['packages'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['packages'] === null) { - $invalidProperties[] = "'packages' can't be null"; - } - if ((count($this->container['packages']) > 500)) { - $invalidProperties[] = "invalid value for 'packages', number of items must be less than or equal to 500."; - } - - if ((count($this->container['packages']) < 1)) { - $invalidProperties[] = "invalid value for 'packages', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets packages - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Package[] - */ - public function getPackages() - { - return $this->container['packages']; - } - - /** - * Sets packages - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Package[] $packages packages - * - * @return self - */ - public function setPackages($packages) - { - - if ((count($packages) > 500)) { - throw new \InvalidArgumentException('invalid value for $packages when calling Packages., number of items must be less than or equal to 500.'); - } - if ((count($packages) < 1)) { - throw new \InvalidArgumentException('invalid length for $packages when calling Packages., number of items must be greater than or equal to 1.'); - } - $this->container['packages'] = $packages; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/RejectedOrder.php b/lib/Model/EasyShipV20220323/RejectedOrder.php deleted file mode 100644 index c76dfafcc..000000000 --- a/lib/Model/EasyShipV20220323/RejectedOrder.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RejectedOrder extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RejectedOrder'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'error' => '\SellingPartnerApi\Model\EasyShipV20220323\Error' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'error' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'amazonOrderId', - 'error' => 'error' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'error' => 'setError' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'error' => 'getError' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['error'] = $data['error'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets error - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\Error|null - */ - public function getError() - { - return $this->container['error']; - } - - /** - * Sets error - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\Error|null $error error - * - * @return self - */ - public function setError($error) - { - $this->container['error'] = $error; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/ScheduledPackageId.php b/lib/Model/EasyShipV20220323/ScheduledPackageId.php deleted file mode 100644 index ed47fa8e4..000000000 --- a/lib/Model/EasyShipV20220323/ScheduledPackageId.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ScheduledPackageId extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ScheduledPackageId'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'package_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'package_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'amazonOrderId', - 'package_id' => 'packageId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'package_id' => 'setPackageId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'package_id' => 'getPackageId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['package_id'] = $data['package_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets package_id - * - * @return string|null - */ - public function getPackageId() - { - return $this->container['package_id']; - } - - /** - * Sets package_id - * - * @param string|null $package_id An Amazon-defined identifier for the scheduled package. - * - * @return self - */ - public function setPackageId($package_id) - { - $this->container['package_id'] = $package_id; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/TimeSlot.php b/lib/Model/EasyShipV20220323/TimeSlot.php deleted file mode 100644 index 9e54af50b..000000000 --- a/lib/Model/EasyShipV20220323/TimeSlot.php +++ /dev/null @@ -1,267 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TimeSlot extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TimeSlot'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'slot_id' => 'string', - 'start_time' => 'string', - 'end_time' => 'string', - 'handover_method' => '\SellingPartnerApi\Model\EasyShipV20220323\HandoverMethod' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'slot_id' => null, - 'start_time' => null, - 'end_time' => null, - 'handover_method' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'slot_id' => 'slotId', - 'start_time' => 'startTime', - 'end_time' => 'endTime', - 'handover_method' => 'handoverMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'slot_id' => 'setSlotId', - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime', - 'handover_method' => 'setHandoverMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'slot_id' => 'getSlotId', - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime', - 'handover_method' => 'getHandoverMethod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['slot_id'] = $data['slot_id'] ?? null; - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - $this->container['handover_method'] = $data['handover_method'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['slot_id'] === null) { - $invalidProperties[] = "'slot_id' can't be null"; - } - if ((mb_strlen($this->container['slot_id']) > 255)) { - $invalidProperties[] = "invalid value for 'slot_id', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['slot_id']) < 1)) { - $invalidProperties[] = "invalid value for 'slot_id', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets slot_id - * - * @return string - */ - public function getSlotId() - { - return $this->container['slot_id']; - } - - /** - * Sets slot_id - * - * @param string $slot_id A string of up to 255 characters. - * - * @return self - */ - public function setSlotId($slot_id) - { - if ((mb_strlen($slot_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $slot_id when calling TimeSlot., must be smaller than or equal to 255.'); - } - if ((mb_strlen($slot_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $slot_id when calling TimeSlot., must be bigger than or equal to 1.'); - } - - $this->container['slot_id'] = $slot_id; - - return $this; - } - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time A datetime value in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time A datetime value in ISO 8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } - /** - * Gets handover_method - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\HandoverMethod|null - */ - public function getHandoverMethod() - { - return $this->container['handover_method']; - } - - /** - * Sets handover_method - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\HandoverMethod|null $handover_method handover_method - * - * @return self - */ - public function setHandoverMethod($handover_method) - { - $this->container['handover_method'] = $handover_method; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/TrackingDetails.php b/lib/Model/EasyShipV20220323/TrackingDetails.php deleted file mode 100644 index 7d551e9e0..000000000 --- a/lib/Model/EasyShipV20220323/TrackingDetails.php +++ /dev/null @@ -1,177 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_id' => 'trackingId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_id' => 'setTrackingId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_id' => 'getTrackingId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['tracking_id']) && (mb_strlen($this->container['tracking_id']) > 255)) { - $invalidProperties[] = "invalid value for 'tracking_id', the character length must be smaller than or equal to 255."; - } - - if (!is_null($this->container['tracking_id']) && (mb_strlen($this->container['tracking_id']) < 1)) { - $invalidProperties[] = "invalid value for 'tracking_id', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets tracking_id - * - * @return string|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string|null $tracking_id A string of up to 255 characters. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - if (!is_null($tracking_id) && (mb_strlen($tracking_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $tracking_id when calling TrackingDetails., must be smaller than or equal to 255.'); - } - if (!is_null($tracking_id) && (mb_strlen($tracking_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $tracking_id when calling TrackingDetails., must be bigger than or equal to 1.'); - } - - $this->container['tracking_id'] = $tracking_id; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/UnitOfLength.php b/lib/Model/EasyShipV20220323/UnitOfLength.php deleted file mode 100644 index b5fe97a57..000000000 --- a/lib/Model/EasyShipV20220323/UnitOfLength.php +++ /dev/null @@ -1,85 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/UnitOfWeight.php b/lib/Model/EasyShipV20220323/UnitOfWeight.php deleted file mode 100644 index f98b811a1..000000000 --- a/lib/Model/EasyShipV20220323/UnitOfWeight.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/EasyShipV20220323/UpdatePackageDetails.php b/lib/Model/EasyShipV20220323/UpdatePackageDetails.php deleted file mode 100644 index 86aca6c64..000000000 --- a/lib/Model/EasyShipV20220323/UpdatePackageDetails.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdatePackageDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdatePackageDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduled_package_id' => '\SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId', - 'package_time_slot' => '\SellingPartnerApi\Model\EasyShipV20220323\TimeSlot' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduled_package_id' => null, - 'package_time_slot' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scheduled_package_id' => 'scheduledPackageId', - 'package_time_slot' => 'packageTimeSlot' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scheduled_package_id' => 'setScheduledPackageId', - 'package_time_slot' => 'setPackageTimeSlot' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scheduled_package_id' => 'getScheduledPackageId', - 'package_time_slot' => 'getPackageTimeSlot' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduled_package_id'] = $data['scheduled_package_id'] ?? null; - $this->container['package_time_slot'] = $data['package_time_slot'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['scheduled_package_id'] === null) { - $invalidProperties[] = "'scheduled_package_id' can't be null"; - } - if ($this->container['package_time_slot'] === null) { - $invalidProperties[] = "'package_time_slot' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets scheduled_package_id - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId - */ - public function getScheduledPackageId() - { - return $this->container['scheduled_package_id']; - } - - /** - * Sets scheduled_package_id - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\ScheduledPackageId $scheduled_package_id scheduled_package_id - * - * @return self - */ - public function setScheduledPackageId($scheduled_package_id) - { - $this->container['scheduled_package_id'] = $scheduled_package_id; - - return $this; - } - /** - * Gets package_time_slot - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot - */ - public function getPackageTimeSlot() - { - return $this->container['package_time_slot']; - } - - /** - * Sets package_time_slot - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\TimeSlot $package_time_slot package_time_slot - * - * @return self - */ - public function setPackageTimeSlot($package_time_slot) - { - $this->container['package_time_slot'] = $package_time_slot; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.php b/lib/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.php deleted file mode 100644 index 15496c98b..000000000 --- a/lib/Model/EasyShipV20220323/UpdateScheduledPackagesRequest.php +++ /dev/null @@ -1,227 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateScheduledPackagesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateScheduledPackagesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'update_package_details_list' => '\SellingPartnerApi\Model\EasyShipV20220323\UpdatePackageDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'update_package_details_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'update_package_details_list' => 'updatePackageDetailsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'update_package_details_list' => 'setUpdatePackageDetailsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'update_package_details_list' => 'getUpdatePackageDetailsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['update_package_details_list'] = $data['update_package_details_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ((mb_strlen($this->container['marketplace_id']) > 255)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be smaller than or equal to 255."; - } - - if ((mb_strlen($this->container['marketplace_id']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['update_package_details_list'] === null) { - $invalidProperties[] = "'update_package_details_list' can't be null"; - } - if ((count($this->container['update_package_details_list']) > 500)) { - $invalidProperties[] = "invalid value for 'update_package_details_list', number of items must be less than or equal to 500."; - } - - if ((count($this->container['update_package_details_list']) < 1)) { - $invalidProperties[] = "invalid value for 'update_package_details_list', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A string of up to 255 characters. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - if ((mb_strlen($marketplace_id) > 255)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling UpdateScheduledPackagesRequest., must be smaller than or equal to 255.'); - } - if ((mb_strlen($marketplace_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_id when calling UpdateScheduledPackagesRequest., must be bigger than or equal to 1.'); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets update_package_details_list - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\UpdatePackageDetails[] - */ - public function getUpdatePackageDetailsList() - { - return $this->container['update_package_details_list']; - } - - /** - * Sets update_package_details_list - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UpdatePackageDetails[] $update_package_details_list A list of package update details. - * - * @return self - */ - public function setUpdatePackageDetailsList($update_package_details_list) - { - - if ((count($update_package_details_list) > 500)) { - throw new \InvalidArgumentException('invalid value for $update_package_details_list when calling UpdateScheduledPackagesRequest., number of items must be less than or equal to 500.'); - } - if ((count($update_package_details_list) < 1)) { - throw new \InvalidArgumentException('invalid length for $update_package_details_list when calling UpdateScheduledPackagesRequest., number of items must be greater than or equal to 1.'); - } - $this->container['update_package_details_list'] = $update_package_details_list; - - return $this; - } -} - - diff --git a/lib/Model/EasyShipV20220323/Weight.php b/lib/Model/EasyShipV20220323/Weight.php deleted file mode 100644 index 5ea2e8665..000000000 --- a/lib/Model/EasyShipV20220323/Weight.php +++ /dev/null @@ -1,200 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'float', - 'unit' => '\SellingPartnerApi\Model\EasyShipV20220323\UnitOfWeight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => 'float', - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['value']) && ($this->container['value'] < 11)) { - $invalidProperties[] = "invalid value for 'value', must be bigger than or equal to 11."; - } - - return $invalidProperties; - } - - - /** - * Gets value - * - * @return float|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float|null $value The weight of the package. - * - * @return self - */ - public function setValue($value) - { - - if (!is_null($value) && ($value < 11)) { - throw new \InvalidArgumentException('invalid value for $value when calling Weight., must be bigger than or equal to 11.'); - } - - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\EasyShipV20220323\UnitOfWeight|null - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\EasyShipV20220323\UnitOfWeight|null $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundEligibilityV1/Error.php b/lib/Model/FbaInboundEligibilityV1/Error.php deleted file mode 100644 index f4507a7e1..000000000 --- a/lib/Model/FbaInboundEligibilityV1/Error.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string|null - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string|null $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.php b/lib/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.php deleted file mode 100644 index 29aaf2e48..000000000 --- a/lib/Model/FbaInboundEligibilityV1/GetItemEligibilityPreviewResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetItemEligibilityPreviewResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetItemEligibilityPreviewResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundEligibilityV1\ItemEligibilityPreview', - 'errors' => '\SellingPartnerApi\Model\FbaInboundEligibilityV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundEligibilityV1\ItemEligibilityPreview|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundEligibilityV1\ItemEligibilityPreview|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundEligibilityV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundEligibilityV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.php b/lib/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.php deleted file mode 100644 index e2702e8ad..000000000 --- a/lib/Model/FbaInboundEligibilityV1/ItemEligibilityPreview.php +++ /dev/null @@ -1,436 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemEligibilityPreview extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemEligibilityPreview'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'marketplace_id' => 'string', - 'program' => 'string', - 'is_eligible_for_program' => 'bool', - 'ineligibility_reason_list' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'marketplace_id' => null, - 'program' => null, - 'is_eligible_for_program' => null, - 'ineligibility_reason_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'marketplace_id' => 'marketplaceId', - 'program' => 'program', - 'is_eligible_for_program' => 'isEligibleForProgram', - 'ineligibility_reason_list' => 'ineligibilityReasonList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'marketplace_id' => 'setMarketplaceId', - 'program' => 'setProgram', - 'is_eligible_for_program' => 'setIsEligibleForProgram', - 'ineligibility_reason_list' => 'setIneligibilityReasonList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'marketplace_id' => 'getMarketplaceId', - 'program' => 'getProgram', - 'is_eligible_for_program' => 'getIsEligibleForProgram', - 'ineligibility_reason_list' => 'getIneligibilityReasonList' - ]; - - - - 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_FBA_INB_0197 = 'FBA_INB_0197'; - const INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE = 'UNKNOWN_INB_ERROR_CODE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getProgramAllowableValues() - { - $baseVals = [ - self::PROGRAM_INBOUND, - self::PROGRAM_COMMINGLING, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getIneligibilityReasonListAllowableValues() - { - $baseVals = [ - self::INELIGIBILITY_REASON_LIST_FBA_INB_0004, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0006, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0007, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0008, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0009, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0010, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0011, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0012, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0013, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0014, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0015, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0016, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0017, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0018, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0019, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0034, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0035, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0036, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0037, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0038, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0050, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0051, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0053, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0055, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0056, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0059, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0065, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0066, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0067, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0068, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0095, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0097, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0098, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0099, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0100, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0103, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0104, - self::INELIGIBILITY_REASON_LIST_FBA_INB_0197, - self::INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['program'] = $data['program'] ?? null; - $this->container['is_eligible_for_program'] = $data['is_eligible_for_program'] ?? null; - $this->container['ineligibility_reason_list'] = $data['ineligibility_reason_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['program'] === null) { - $invalidProperties[] = "'program' can't be null"; - } - $allowedValues = $this->getProgramAllowableValues(); - if ( - !is_null($this->container['program']) && - !in_array(strtoupper($this->container['program']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'program', must be one of '%s'", - $this->container['program'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['is_eligible_for_program'] === null) { - $invalidProperties[] = "'is_eligible_for_program' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The ASIN for which eligibility was determined. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace for which eligibility was determined. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets program - * - * @return string - */ - public function getProgram() - { - return $this->container['program']; - } - - /** - * Sets program - * - * @param string $program The program for which eligibility was determined. - * - * @return self - */ - public function setProgram($program) - { - $allowedValues = $this->getProgramAllowableValues(); - if (!in_array(strtoupper($program), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'program', must be one of '%s'", - $program, - implode("', '", $allowedValues) - ) - ); - } - $this->container['program'] = $program; - - return $this; - } - /** - * Gets is_eligible_for_program - * - * @return bool - */ - public function getIsEligibleForProgram() - { - return $this->container['is_eligible_for_program']; - } - - /** - * Sets is_eligible_for_program - * - * @param bool $is_eligible_for_program Indicates if the item is eligible for the program. - * - * @return self - */ - public function setIsEligibleForProgram($is_eligible_for_program) - { - $this->container['is_eligible_for_program'] = $is_eligible_for_program; - - return $this; - } - /** - * Gets ineligibility_reason_list - * - * @return string[]|null - */ - public function getIneligibilityReasonList() - { - return $this->container['ineligibility_reason_list']; - } - - /** - * Sets ineligibility_reason_list - * - * @param string[]|null $ineligibility_reason_list Potential Ineligibility Reason Codes. - * - * @return self - */ - 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) - ) - ); - } - $this->container['ineligibility_reason_list'] = $ineligibility_reason_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ASINInboundGuidance.php b/lib/Model/FbaInboundV0/ASINInboundGuidance.php deleted file mode 100644 index 6c76ddd3c..000000000 --- a/lib/Model/FbaInboundV0/ASINInboundGuidance.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ASINInboundGuidance extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ASINInboundGuidance'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'inbound_guidance' => '\SellingPartnerApi\Model\FbaInboundV0\InboundGuidance', - 'guidance_reason_list' => '\SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'inbound_guidance' => null, - 'guidance_reason_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'ASIN', - 'inbound_guidance' => 'InboundGuidance', - 'guidance_reason_list' => 'GuidanceReasonList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'inbound_guidance' => 'setInboundGuidance', - 'guidance_reason_list' => 'setGuidanceReasonList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'inbound_guidance' => 'getInboundGuidance', - 'guidance_reason_list' => 'getGuidanceReasonList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['inbound_guidance'] = $data['inbound_guidance'] ?? null; - $this->container['guidance_reason_list'] = $data['guidance_reason_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['inbound_guidance'] === null) { - $invalidProperties[] = "'inbound_guidance' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets inbound_guidance - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundGuidance - */ - public function getInboundGuidance() - { - return $this->container['inbound_guidance']; - } - - /** - * Sets inbound_guidance - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundGuidance $inbound_guidance inbound_guidance - * - * @return self - */ - public function setInboundGuidance($inbound_guidance) - { - $this->container['inbound_guidance'] = $inbound_guidance; - - return $this; - } - /** - * Gets guidance_reason_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]|null - */ - public function getGuidanceReasonList() - { - return $this->container['guidance_reason_list']; - } - - /** - * Sets guidance_reason_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]|null $guidance_reason_list A list of inbound guidance reason information. - * - * @return self - */ - public function setGuidanceReasonList($guidance_reason_list) - { - $this->container['guidance_reason_list'] = $guidance_reason_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ASINPrepInstructions.php b/lib/Model/FbaInboundV0/ASINPrepInstructions.php deleted file mode 100644 index bb8c67c75..000000000 --- a/lib/Model/FbaInboundV0/ASINPrepInstructions.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ASINPrepInstructions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ASINPrepInstructions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'barcode_instruction' => '\SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction', - 'prep_guidance' => '\SellingPartnerApi\Model\FbaInboundV0\PrepGuidance', - 'prep_instruction_list' => '\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'barcode_instruction' => null, - 'prep_guidance' => null, - 'prep_instruction_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'ASIN', - 'barcode_instruction' => 'BarcodeInstruction', - 'prep_guidance' => 'PrepGuidance', - 'prep_instruction_list' => 'PrepInstructionList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'barcode_instruction' => 'setBarcodeInstruction', - 'prep_guidance' => 'setPrepGuidance', - 'prep_instruction_list' => 'setPrepInstructionList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'barcode_instruction' => 'getBarcodeInstruction', - 'prep_guidance' => 'getPrepGuidance', - 'prep_instruction_list' => 'getPrepInstructionList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['barcode_instruction'] = $data['barcode_instruction'] ?? null; - $this->container['prep_guidance'] = $data['prep_guidance'] ?? null; - $this->container['prep_instruction_list'] = $data['prep_instruction_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets barcode_instruction - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction|null - */ - public function getBarcodeInstruction() - { - return $this->container['barcode_instruction']; - } - - /** - * Sets barcode_instruction - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction|null $barcode_instruction barcode_instruction - * - * @return self - */ - public function setBarcodeInstruction($barcode_instruction) - { - $this->container['barcode_instruction'] = $barcode_instruction; - - return $this; - } - /** - * Gets prep_guidance - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepGuidance|null - */ - public function getPrepGuidance() - { - return $this->container['prep_guidance']; - } - - /** - * Sets prep_guidance - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepGuidance|null $prep_guidance prep_guidance - * - * @return self - */ - public function setPrepGuidance($prep_guidance) - { - $this->container['prep_guidance'] = $prep_guidance; - - return $this; - } - /** - * Gets prep_instruction_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]|null - */ - public function getPrepInstructionList() - { - return $this->container['prep_instruction_list']; - } - - /** - * Sets prep_instruction_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]|null $prep_instruction_list A list of preparation instructions to help with item sourcing decisions. - * - * @return self - */ - public function setPrepInstructionList($prep_instruction_list) - { - $this->container['prep_instruction_list'] = $prep_instruction_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Address.php b/lib/Model/FbaInboundV0/Address.php deleted file mode 100644 index 891d3ff1d..000000000 --- a/lib/Model/FbaInboundV0/Address.php +++ /dev/null @@ -1,422 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'district_or_county' => 'string', - 'city' => 'string', - 'state_or_province_code' => 'string', - 'country_code' => 'string', - 'postal_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'district_or_county' => null, - 'city' => null, - 'state_or_province_code' => null, - 'country_code' => null, - 'postal_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'address_line1' => 'AddressLine1', - 'address_line2' => 'AddressLine2', - 'district_or_county' => 'DistrictOrCounty', - 'city' => 'City', - 'state_or_province_code' => 'StateOrProvinceCode', - 'country_code' => 'CountryCode', - 'postal_code' => 'PostalCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'district_or_county' => 'setDistrictOrCounty', - 'city' => 'setCity', - 'state_or_province_code' => 'setStateOrProvinceCode', - 'country_code' => 'setCountryCode', - 'postal_code' => 'setPostalCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'district_or_county' => 'getDistrictOrCounty', - 'city' => 'getCity', - 'state_or_province_code' => 'getStateOrProvinceCode', - 'country_code' => 'getCountryCode', - 'postal_code' => 'getPostalCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['district_or_county'] = $data['district_or_county'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['state_or_province_code'] = $data['state_or_province_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 50)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; - } - - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ((mb_strlen($this->container['address_line1']) > 180)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be smaller than or equal to 180."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be smaller than or equal to 60."; - } - - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ((mb_strlen($this->container['city']) > 30)) { - $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 30."; - } - - if ($this->container['state_or_province_code'] === null) { - $invalidProperties[] = "'state_or_province_code' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ((mb_strlen($this->container['postal_code']) > 30)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be smaller than or equal to 30."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name Name of the individual or business. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 50)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 50.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 The street address information. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - if ((mb_strlen($address_line1) > 180)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be smaller than or equal to 180.'); - } - - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - if (!is_null($address_line2) && (mb_strlen($address_line2) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be smaller than or equal to 60.'); - } - - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets district_or_county - * - * @return string|null - */ - public function getDistrictOrCounty() - { - return $this->container['district_or_county']; - } - - /** - * Sets district_or_county - * - * @param string|null $district_or_county The district or county. - * - * @return self - */ - public function setDistrictOrCounty($district_or_county) - { - $this->container['district_or_county'] = $district_or_county; - - return $this; - } - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city. - * - * @return self - */ - public function setCity($city) - { - if ((mb_strlen($city) > 30)) { - throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 30.'); - } - - $this->container['city'] = $city; - - return $this; - } - /** - * Gets state_or_province_code - * - * @return string - */ - public function getStateOrProvinceCode() - { - return $this->container['state_or_province_code']; - } - - /** - * Sets state_or_province_code - * - * @param string $state_or_province_code The state or province code. If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan. - * - * @return self - */ - public function setStateOrProvinceCode($state_or_province_code) - { - $this->container['state_or_province_code'] = $state_or_province_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The country code in two-character ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The postal code. If postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan. - * - * @return self - */ - public function setPostalCode($postal_code) - { - if ((mb_strlen($postal_code) > 30)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Address., must be smaller than or equal to 30.'); - } - - $this->container['postal_code'] = $postal_code; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/AmazonPrepFeesDetails.php b/lib/Model/FbaInboundV0/AmazonPrepFeesDetails.php deleted file mode 100644 index 912b8ec3e..000000000 --- a/lib/Model/FbaInboundV0/AmazonPrepFeesDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AmazonPrepFeesDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AmazonPrepFeesDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'prep_instruction' => '\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction', - 'fee_per_unit' => '\SellingPartnerApi\Model\FbaInboundV0\Amount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'prep_instruction' => null, - 'fee_per_unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'prep_instruction' => 'PrepInstruction', - 'fee_per_unit' => 'FeePerUnit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'prep_instruction' => 'setPrepInstruction', - 'fee_per_unit' => 'setFeePerUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'prep_instruction' => 'getPrepInstruction', - 'fee_per_unit' => 'getFeePerUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['prep_instruction'] = $data['prep_instruction'] ?? null; - $this->container['fee_per_unit'] = $data['fee_per_unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets prep_instruction - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction|null - */ - public function getPrepInstruction() - { - return $this->container['prep_instruction']; - } - - /** - * Sets prep_instruction - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction|null $prep_instruction prep_instruction - * - * @return self - */ - public function setPrepInstruction($prep_instruction) - { - $this->container['prep_instruction'] = $prep_instruction; - - return $this; - } - /** - * Gets fee_per_unit - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getFeePerUnit() - { - return $this->container['fee_per_unit']; - } - - /** - * Sets fee_per_unit - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $fee_per_unit fee_per_unit - * - * @return self - */ - public function setFeePerUnit($fee_per_unit) - { - $this->container['fee_per_unit'] = $fee_per_unit; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Amount.php b/lib/Model/FbaInboundV0/Amount.php deleted file mode 100644 index 02ece44e2..000000000 --- a/lib/Model/FbaInboundV0/Amount.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Amount extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Amount'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => '\SellingPartnerApi\Model\FbaInboundV0\CurrencyCode', - 'value' => 'double' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'value' => 'double' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'value' => 'Value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CurrencyCode - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CurrencyCode $currency_code currency_code - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets value - * - * @return double - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param double $value value - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/BarcodeInstruction.php b/lib/Model/FbaInboundV0/BarcodeInstruction.php deleted file mode 100644 index 2cd5a81ef..000000000 --- a/lib/Model/FbaInboundV0/BarcodeInstruction.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/BillOfLadingDownloadURL.php b/lib/Model/FbaInboundV0/BillOfLadingDownloadURL.php deleted file mode 100644 index cd22effd1..000000000 --- a/lib/Model/FbaInboundV0/BillOfLadingDownloadURL.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BillOfLadingDownloadURL extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BillOfLadingDownloadURL'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'download_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'download_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'download_url' => 'DownloadURL' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'download_url' => 'setDownloadUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'download_url' => 'getDownloadUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['download_url'] = $data['download_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets download_url - * - * @return string|null - */ - public function getDownloadUrl() - { - return $this->container['download_url']; - } - - /** - * Sets download_url - * - * @param string|null $download_url URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds - * - * @return self - */ - public function setDownloadUrl($download_url) - { - $this->container['download_url'] = $download_url; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/BoxContentsFeeDetails.php b/lib/Model/FbaInboundV0/BoxContentsFeeDetails.php deleted file mode 100644 index 4aaf5cb37..000000000 --- a/lib/Model/FbaInboundV0/BoxContentsFeeDetails.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BoxContentsFeeDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BoxContentsFeeDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_units' => 'int', - 'fee_per_unit' => '\SellingPartnerApi\Model\FbaInboundV0\Amount', - 'total_fee' => '\SellingPartnerApi\Model\FbaInboundV0\Amount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_units' => 'int32', - 'fee_per_unit' => null, - 'total_fee' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_units' => 'TotalUnits', - 'fee_per_unit' => 'FeePerUnit', - 'total_fee' => 'TotalFee' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_units' => 'setTotalUnits', - 'fee_per_unit' => 'setFeePerUnit', - 'total_fee' => 'setTotalFee' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_units' => 'getTotalUnits', - 'fee_per_unit' => 'getFeePerUnit', - 'total_fee' => 'getTotalFee' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_units'] = $data['total_units'] ?? null; - $this->container['fee_per_unit'] = $data['fee_per_unit'] ?? null; - $this->container['total_fee'] = $data['total_fee'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_units - * - * @return int|null - */ - public function getTotalUnits() - { - return $this->container['total_units']; - } - - /** - * Sets total_units - * - * @param int|null $total_units The item quantity. - * - * @return self - */ - public function setTotalUnits($total_units) - { - $this->container['total_units'] = $total_units; - - return $this; - } - /** - * Gets fee_per_unit - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getFeePerUnit() - { - return $this->container['fee_per_unit']; - } - - /** - * Sets fee_per_unit - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $fee_per_unit fee_per_unit - * - * @return self - */ - public function setFeePerUnit($fee_per_unit) - { - $this->container['fee_per_unit'] = $fee_per_unit; - - return $this; - } - /** - * Gets total_fee - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getTotalFee() - { - return $this->container['total_fee']; - } - - /** - * Sets total_fee - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $total_fee total_fee - * - * @return self - */ - public function setTotalFee($total_fee) - { - $this->container['total_fee'] = $total_fee; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/BoxContentsSource.php b/lib/Model/FbaInboundV0/BoxContentsSource.php deleted file mode 100644 index c70a3787e..000000000 --- a/lib/Model/FbaInboundV0/BoxContentsSource.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/CommonTransportResult.php b/lib/Model/FbaInboundV0/CommonTransportResult.php deleted file mode 100644 index 2a3a8b433..000000000 --- a/lib/Model/FbaInboundV0/CommonTransportResult.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CommonTransportResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CommonTransportResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transport_result' => '\SellingPartnerApi\Model\FbaInboundV0\TransportResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transport_result' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transport_result' => 'TransportResult' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transport_result' => 'setTransportResult' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transport_result' => 'getTransportResult' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transport_result'] = $data['transport_result'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transport_result - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportResult|null - */ - public function getTransportResult() - { - return $this->container['transport_result']; - } - - /** - * Sets transport_result - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportResult|null $transport_result transport_result - * - * @return self - */ - public function setTransportResult($transport_result) - { - $this->container['transport_result'] = $transport_result; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Condition.php b/lib/Model/FbaInboundV0/Condition.php deleted file mode 100644 index 897daf161..000000000 --- a/lib/Model/FbaInboundV0/Condition.php +++ /dev/null @@ -1,119 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/ConfirmPreorderResponse.php b/lib/Model/FbaInboundV0/ConfirmPreorderResponse.php deleted file mode 100644 index a628252ca..000000000 --- a/lib/Model/FbaInboundV0/ConfirmPreorderResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmPreorderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmPreorderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ConfirmPreorderResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ConfirmPreorderResult.php b/lib/Model/FbaInboundV0/ConfirmPreorderResult.php deleted file mode 100644 index 21424ec89..000000000 --- a/lib/Model/FbaInboundV0/ConfirmPreorderResult.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmPreorderResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmPreorderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'confirmed_need_by_date' => 'string', - 'confirmed_fulfillable_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'confirmed_need_by_date' => null, - 'confirmed_fulfillable_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'confirmed_need_by_date' => 'ConfirmedNeedByDate', - 'confirmed_fulfillable_date' => 'ConfirmedFulfillableDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'confirmed_need_by_date' => 'setConfirmedNeedByDate', - 'confirmed_fulfillable_date' => 'setConfirmedFulfillableDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'confirmed_need_by_date' => 'getConfirmedNeedByDate', - 'confirmed_fulfillable_date' => 'getConfirmedFulfillableDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['confirmed_need_by_date'] = $data['confirmed_need_by_date'] ?? null; - $this->container['confirmed_fulfillable_date'] = $data['confirmed_fulfillable_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets confirmed_need_by_date - * - * @return string|null - */ - public function getConfirmedNeedByDate() - { - return $this->container['confirmed_need_by_date']; - } - - /** - * Sets confirmed_need_by_date - * - * @param string|null $confirmed_need_by_date A date string in ISO 8601 format. - * - * @return self - */ - public function setConfirmedNeedByDate($confirmed_need_by_date) - { - $this->container['confirmed_need_by_date'] = $confirmed_need_by_date; - - return $this; - } - /** - * Gets confirmed_fulfillable_date - * - * @return string|null - */ - public function getConfirmedFulfillableDate() - { - return $this->container['confirmed_fulfillable_date']; - } - - /** - * Sets confirmed_fulfillable_date - * - * @param string|null $confirmed_fulfillable_date A date string in ISO 8601 format. - * - * @return self - */ - public function setConfirmedFulfillableDate($confirmed_fulfillable_date) - { - $this->container['confirmed_fulfillable_date'] = $confirmed_fulfillable_date; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ConfirmTransportResponse.php b/lib/Model/FbaInboundV0/ConfirmTransportResponse.php deleted file mode 100644 index bb48d1c93..000000000 --- a/lib/Model/FbaInboundV0/ConfirmTransportResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmTransportResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmTransportResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Contact.php b/lib/Model/FbaInboundV0/Contact.php deleted file mode 100644 index c505be4a8..000000000 --- a/lib/Model/FbaInboundV0/Contact.php +++ /dev/null @@ -1,290 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Contact extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Contact'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'phone' => 'string', - 'email' => 'string', - 'fax' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'phone' => null, - 'email' => null, - 'fax' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'phone' => 'Phone', - 'email' => 'Email', - 'fax' => 'Fax' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'phone' => 'setPhone', - 'email' => 'setEmail', - 'fax' => 'setFax' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'phone' => 'getPhone', - 'email' => 'getEmail', - 'fax' => 'getFax' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['fax'] = $data['fax'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 50)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; - } - - if ($this->container['phone'] === null) { - $invalidProperties[] = "'phone' can't be null"; - } - if ((mb_strlen($this->container['phone']) > 20)) { - $invalidProperties[] = "invalid value for 'phone', the character length must be smaller than or equal to 20."; - } - - if ($this->container['email'] === null) { - $invalidProperties[] = "'email' can't be null"; - } - if ((mb_strlen($this->container['email']) > 50)) { - $invalidProperties[] = "invalid value for 'email', the character length must be smaller than or equal to 50."; - } - - if (!is_null($this->container['fax']) && (mb_strlen($this->container['fax']) > 20)) { - $invalidProperties[] = "invalid value for 'fax', the character length must be smaller than or equal to 20."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the contact person. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 50)) { - throw new \InvalidArgumentException('invalid length for $name when calling Contact., must be smaller than or equal to 50.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets phone - * - * @return string - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string $phone The phone number of the contact person. - * - * @return self - */ - public function setPhone($phone) - { - if ((mb_strlen($phone) > 20)) { - throw new \InvalidArgumentException('invalid length for $phone when calling Contact., must be smaller than or equal to 20.'); - } - - $this->container['phone'] = $phone; - - return $this; - } - /** - * Gets email - * - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string $email The email address of the contact person. - * - * @return self - */ - public function setEmail($email) - { - if ((mb_strlen($email) > 50)) { - throw new \InvalidArgumentException('invalid length for $email when calling Contact., must be smaller than or equal to 50.'); - } - - $this->container['email'] = $email; - - return $this; - } - /** - * Gets fax - * - * @return string|null - */ - public function getFax() - { - return $this->container['fax']; - } - - /** - * Sets fax - * - * @param string|null $fax The fax number of the contact person. - * - * @return self - */ - public function setFax($fax) - { - if (!is_null($fax) && (mb_strlen($fax) > 20)) { - throw new \InvalidArgumentException('invalid length for $fax when calling Contact., must be smaller than or equal to 20.'); - } - - $this->container['fax'] = $fax; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.php b/lib/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.php deleted file mode 100644 index ef695f474..000000000 --- a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanRequest.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateInboundShipmentPlanRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateInboundShipmentPlanRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ship_from_address' => '\SellingPartnerApi\Model\FbaInboundV0\Address', - 'label_prep_preference' => '\SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference', - 'ship_to_country_code' => 'string', - 'ship_to_country_subdivision_code' => 'string', - 'inbound_shipment_plan_request_items' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanRequestItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ship_from_address' => null, - 'label_prep_preference' => null, - 'ship_to_country_code' => null, - 'ship_to_country_subdivision_code' => null, - 'inbound_shipment_plan_request_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ship_from_address' => 'ShipFromAddress', - 'label_prep_preference' => 'LabelPrepPreference', - 'ship_to_country_code' => 'ShipToCountryCode', - 'ship_to_country_subdivision_code' => 'ShipToCountrySubdivisionCode', - 'inbound_shipment_plan_request_items' => 'InboundShipmentPlanRequestItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ship_from_address' => 'setShipFromAddress', - 'label_prep_preference' => 'setLabelPrepPreference', - 'ship_to_country_code' => 'setShipToCountryCode', - 'ship_to_country_subdivision_code' => 'setShipToCountrySubdivisionCode', - 'inbound_shipment_plan_request_items' => 'setInboundShipmentPlanRequestItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ship_from_address' => 'getShipFromAddress', - 'label_prep_preference' => 'getLabelPrepPreference', - 'ship_to_country_code' => 'getShipToCountryCode', - 'ship_to_country_subdivision_code' => 'getShipToCountrySubdivisionCode', - 'inbound_shipment_plan_request_items' => 'getInboundShipmentPlanRequestItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['label_prep_preference'] = $data['label_prep_preference'] ?? null; - $this->container['ship_to_country_code'] = $data['ship_to_country_code'] ?? null; - $this->container['ship_to_country_subdivision_code'] = $data['ship_to_country_subdivision_code'] ?? null; - $this->container['inbound_shipment_plan_request_items'] = $data['inbound_shipment_plan_request_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['label_prep_preference'] === null) { - $invalidProperties[] = "'label_prep_preference' can't be null"; - } - if ($this->container['inbound_shipment_plan_request_items'] === null) { - $invalidProperties[] = "'inbound_shipment_plan_request_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets label_prep_preference - * - * @return \SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference - */ - public function getLabelPrepPreference() - { - return $this->container['label_prep_preference']; - } - - /** - * Sets label_prep_preference - * - * @param \SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference $label_prep_preference label_prep_preference - * - * @return self - */ - public function setLabelPrepPreference($label_prep_preference) - { - $this->container['label_prep_preference'] = $label_prep_preference; - - return $this; - } - /** - * Gets ship_to_country_code - * - * @return string|null - */ - public function getShipToCountryCode() - { - return $this->container['ship_to_country_code']; - } - - /** - * Sets ship_to_country_code - * - * @param string|null $ship_to_country_code The two-character country code for the country where the inbound shipment is to be sent. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. Values: ShipToCountryCode values for North America: * CA - Canada * MX - Mexico * US - United States ShipToCountryCode values for MCI sellers in Europe: * DE - Germany * ES - Spain * FR - France * GB - United Kingdom * IT - Italy Default: The country code for the seller's home marketplace. - * - * @return self - */ - public function setShipToCountryCode($ship_to_country_code) - { - $this->container['ship_to_country_code'] = $ship_to_country_code; - - return $this; - } - /** - * Gets ship_to_country_subdivision_code - * - * @return string|null - */ - public function getShipToCountrySubdivisionCode() - { - return $this->container['ship_to_country_subdivision_code']; - } - - /** - * Sets ship_to_country_subdivision_code - * - * @param string|null $ship_to_country_subdivision_code The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, \"IN-MH\". In full ISO 3166-2 format. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. - * - * @return self - */ - public function setShipToCountrySubdivisionCode($ship_to_country_subdivision_code) - { - $this->container['ship_to_country_subdivision_code'] = $ship_to_country_subdivision_code; - - return $this; - } - /** - * Gets inbound_shipment_plan_request_items - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanRequestItem[] - */ - public function getInboundShipmentPlanRequestItems() - { - return $this->container['inbound_shipment_plan_request_items']; - } - - /** - * Sets inbound_shipment_plan_request_items - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanRequestItem[] $inbound_shipment_plan_request_items inbound_shipment_plan_request_items - * - * @return self - */ - public function setInboundShipmentPlanRequestItems($inbound_shipment_plan_request_items) - { - $this->container['inbound_shipment_plan_request_items'] = $inbound_shipment_plan_request_items; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.php b/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.php deleted file mode 100644 index f4aa069dd..000000000 --- a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateInboundShipmentPlanResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateInboundShipmentPlanResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CreateInboundShipmentPlanResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResult.php b/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResult.php deleted file mode 100644 index 1cb7641bf..000000000 --- a/lib/Model/FbaInboundV0/CreateInboundShipmentPlanResult.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateInboundShipmentPlanResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateInboundShipmentPlanResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'inbound_shipment_plans' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlan[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'inbound_shipment_plans' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'inbound_shipment_plans' => 'InboundShipmentPlans' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'inbound_shipment_plans' => 'setInboundShipmentPlans' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'inbound_shipment_plans' => 'getInboundShipmentPlans' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['inbound_shipment_plans'] = $data['inbound_shipment_plans'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets inbound_shipment_plans - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlan[]|null - */ - public function getInboundShipmentPlans() - { - return $this->container['inbound_shipment_plans']; - } - - /** - * Sets inbound_shipment_plans - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlan[]|null $inbound_shipment_plans A list of inbound shipment plan information - * - * @return self - */ - public function setInboundShipmentPlans($inbound_shipment_plans) - { - $this->container['inbound_shipment_plans'] = $inbound_shipment_plans; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/CurrencyCode.php b/lib/Model/FbaInboundV0/CurrencyCode.php deleted file mode 100644 index d6da3add8..000000000 --- a/lib/Model/FbaInboundV0/CurrencyCode.php +++ /dev/null @@ -1,95 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/Dimensions.php b/lib/Model/FbaInboundV0/Dimensions.php deleted file mode 100644 index 15a61a167..000000000 --- a/lib/Model/FbaInboundV0/Dimensions.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', - 'unit' => '\SellingPartnerApi\Model\FbaInboundV0\UnitOfMeasurement' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'Length', - 'width' => 'Width', - 'height' => 'Height', - 'unit' => 'Unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets length - * - * @return double - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param double $length length - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return double - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param double $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return double - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param double $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\FbaInboundV0\UnitOfMeasurement - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\FbaInboundV0\UnitOfMeasurement $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Error.php b/lib/Model/FbaInboundV0/Error.php deleted file mode 100644 index 44bcda529..000000000 --- a/lib/Model/FbaInboundV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ErrorReason.php b/lib/Model/FbaInboundV0/ErrorReason.php deleted file mode 100644 index ed559d309..000000000 --- a/lib/Model/FbaInboundV0/ErrorReason.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/EstimateTransportResponse.php b/lib/Model/FbaInboundV0/EstimateTransportResponse.php deleted file mode 100644 index ea75b66c9..000000000 --- a/lib/Model/FbaInboundV0/EstimateTransportResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EstimateTransportResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EstimateTransportResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetBillOfLadingResponse.php b/lib/Model/FbaInboundV0/GetBillOfLadingResponse.php deleted file mode 100644 index be31be038..000000000 --- a/lib/Model/FbaInboundV0/GetBillOfLadingResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetBillOfLadingResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetBillOfLadingResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\BillOfLadingDownloadURL', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BillOfLadingDownloadURL|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BillOfLadingDownloadURL|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetInboundGuidanceResponse.php b/lib/Model/FbaInboundV0/GetInboundGuidanceResponse.php deleted file mode 100644 index defe015e9..000000000 --- a/lib/Model/FbaInboundV0/GetInboundGuidanceResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetInboundGuidanceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetInboundGuidanceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetInboundGuidanceResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetInboundGuidanceResult.php b/lib/Model/FbaInboundV0/GetInboundGuidanceResult.php deleted file mode 100644 index 4bc2f7166..000000000 --- a/lib/Model/FbaInboundV0/GetInboundGuidanceResult.php +++ /dev/null @@ -1,248 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetInboundGuidanceResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetInboundGuidanceResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku_inbound_guidance_list' => '\SellingPartnerApi\Model\FbaInboundV0\SKUInboundGuidance[]', - 'invalid_sku_list' => '\SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]', - 'asin_inbound_guidance_list' => '\SellingPartnerApi\Model\FbaInboundV0\ASINInboundGuidance[]', - 'invalid_asin_list' => '\SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku_inbound_guidance_list' => null, - 'invalid_sku_list' => null, - 'asin_inbound_guidance_list' => null, - 'invalid_asin_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'sku_inbound_guidance_list' => 'SKUInboundGuidanceList', - 'invalid_sku_list' => 'InvalidSKUList', - 'asin_inbound_guidance_list' => 'ASINInboundGuidanceList', - 'invalid_asin_list' => 'InvalidASINList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'sku_inbound_guidance_list' => 'setSkuInboundGuidanceList', - 'invalid_sku_list' => 'setInvalidSkuList', - 'asin_inbound_guidance_list' => 'setAsinInboundGuidanceList', - 'invalid_asin_list' => 'setInvalidAsinList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'sku_inbound_guidance_list' => 'getSkuInboundGuidanceList', - 'invalid_sku_list' => 'getInvalidSkuList', - 'asin_inbound_guidance_list' => 'getAsinInboundGuidanceList', - 'invalid_asin_list' => 'getInvalidAsinList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku_inbound_guidance_list'] = $data['sku_inbound_guidance_list'] ?? null; - $this->container['invalid_sku_list'] = $data['invalid_sku_list'] ?? null; - $this->container['asin_inbound_guidance_list'] = $data['asin_inbound_guidance_list'] ?? null; - $this->container['invalid_asin_list'] = $data['invalid_asin_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets sku_inbound_guidance_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\SKUInboundGuidance[]|null - */ - public function getSkuInboundGuidanceList() - { - return $this->container['sku_inbound_guidance_list']; - } - - /** - * Sets sku_inbound_guidance_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\SKUInboundGuidance[]|null $sku_inbound_guidance_list A list of SKU inbound guidance information. - * - * @return self - */ - public function setSkuInboundGuidanceList($sku_inbound_guidance_list) - { - $this->container['sku_inbound_guidance_list'] = $sku_inbound_guidance_list; - - return $this; - } - /** - * Gets invalid_sku_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]|null - */ - public function getInvalidSkuList() - { - return $this->container['invalid_sku_list']; - } - - /** - * Sets invalid_sku_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]|null $invalid_sku_list A list of invalid SKU values and the reason they are invalid. - * - * @return self - */ - public function setInvalidSkuList($invalid_sku_list) - { - $this->container['invalid_sku_list'] = $invalid_sku_list; - - return $this; - } - /** - * Gets asin_inbound_guidance_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ASINInboundGuidance[]|null - */ - public function getAsinInboundGuidanceList() - { - return $this->container['asin_inbound_guidance_list']; - } - - /** - * Sets asin_inbound_guidance_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ASINInboundGuidance[]|null $asin_inbound_guidance_list A list of ASINs and their associated inbound guidance. - * - * @return self - */ - public function setAsinInboundGuidanceList($asin_inbound_guidance_list) - { - $this->container['asin_inbound_guidance_list'] = $asin_inbound_guidance_list; - - return $this; - } - /** - * Gets invalid_asin_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]|null - */ - public function getInvalidAsinList() - { - return $this->container['invalid_asin_list']; - } - - /** - * Sets invalid_asin_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]|null $invalid_asin_list A list of invalid ASIN values and the reasons they are invalid. - * - * @return self - */ - public function setInvalidAsinList($invalid_asin_list) - { - $this->container['invalid_asin_list'] = $invalid_asin_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetLabelsResponse.php b/lib/Model/FbaInboundV0/GetLabelsResponse.php deleted file mode 100644 index 2a8489205..000000000 --- a/lib/Model/FbaInboundV0/GetLabelsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetLabelsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetLabelsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\LabelDownloadURL', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\LabelDownloadURL|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\LabelDownloadURL|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetPreorderInfoResponse.php b/lib/Model/FbaInboundV0/GetPreorderInfoResponse.php deleted file mode 100644 index 5efa39e49..000000000 --- a/lib/Model/FbaInboundV0/GetPreorderInfoResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPreorderInfoResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPreorderInfoResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetPreorderInfoResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetPreorderInfoResult.php b/lib/Model/FbaInboundV0/GetPreorderInfoResult.php deleted file mode 100644 index 69b8f89c3..000000000 --- a/lib/Model/FbaInboundV0/GetPreorderInfoResult.php +++ /dev/null @@ -1,248 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPreorderInfoResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPreorderInfoResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_contains_preorderable_items' => 'bool', - 'shipment_confirmed_for_preorder' => 'bool', - 'need_by_date' => 'string', - 'confirmed_fulfillable_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_contains_preorderable_items' => null, - 'shipment_confirmed_for_preorder' => null, - 'need_by_date' => null, - 'confirmed_fulfillable_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_contains_preorderable_items' => 'ShipmentContainsPreorderableItems', - 'shipment_confirmed_for_preorder' => 'ShipmentConfirmedForPreorder', - 'need_by_date' => 'NeedByDate', - 'confirmed_fulfillable_date' => 'ConfirmedFulfillableDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_contains_preorderable_items' => 'setShipmentContainsPreorderableItems', - 'shipment_confirmed_for_preorder' => 'setShipmentConfirmedForPreorder', - 'need_by_date' => 'setNeedByDate', - 'confirmed_fulfillable_date' => 'setConfirmedFulfillableDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_contains_preorderable_items' => 'getShipmentContainsPreorderableItems', - 'shipment_confirmed_for_preorder' => 'getShipmentConfirmedForPreorder', - 'need_by_date' => 'getNeedByDate', - 'confirmed_fulfillable_date' => 'getConfirmedFulfillableDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_contains_preorderable_items'] = $data['shipment_contains_preorderable_items'] ?? null; - $this->container['shipment_confirmed_for_preorder'] = $data['shipment_confirmed_for_preorder'] ?? null; - $this->container['need_by_date'] = $data['need_by_date'] ?? null; - $this->container['confirmed_fulfillable_date'] = $data['confirmed_fulfillable_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_contains_preorderable_items - * - * @return bool|null - */ - public function getShipmentContainsPreorderableItems() - { - return $this->container['shipment_contains_preorderable_items']; - } - - /** - * Sets shipment_contains_preorderable_items - * - * @param bool|null $shipment_contains_preorderable_items Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help. - * - * @return self - */ - public function setShipmentContainsPreorderableItems($shipment_contains_preorderable_items) - { - $this->container['shipment_contains_preorderable_items'] = $shipment_contains_preorderable_items; - - return $this; - } - /** - * Gets shipment_confirmed_for_preorder - * - * @return bool|null - */ - public function getShipmentConfirmedForPreorder() - { - return $this->container['shipment_confirmed_for_preorder']; - } - - /** - * Sets shipment_confirmed_for_preorder - * - * @param bool|null $shipment_confirmed_for_preorder Indicates whether this shipment has been confirmed for pre-order. - * - * @return self - */ - public function setShipmentConfirmedForPreorder($shipment_confirmed_for_preorder) - { - $this->container['shipment_confirmed_for_preorder'] = $shipment_confirmed_for_preorder; - - return $this; - } - /** - * Gets need_by_date - * - * @return string|null - */ - public function getNeedByDate() - { - return $this->container['need_by_date']; - } - - /** - * Sets need_by_date - * - * @param string|null $need_by_date A date string in ISO 8601 format. - * - * @return self - */ - public function setNeedByDate($need_by_date) - { - $this->container['need_by_date'] = $need_by_date; - - return $this; - } - /** - * Gets confirmed_fulfillable_date - * - * @return string|null - */ - public function getConfirmedFulfillableDate() - { - return $this->container['confirmed_fulfillable_date']; - } - - /** - * Sets confirmed_fulfillable_date - * - * @param string|null $confirmed_fulfillable_date A date string in ISO 8601 format. - * - * @return self - */ - public function setConfirmedFulfillableDate($confirmed_fulfillable_date) - { - $this->container['confirmed_fulfillable_date'] = $confirmed_fulfillable_date; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetPrepInstructionsResponse.php b/lib/Model/FbaInboundV0/GetPrepInstructionsResponse.php deleted file mode 100644 index 9cd19e539..000000000 --- a/lib/Model/FbaInboundV0/GetPrepInstructionsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPrepInstructionsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPrepInstructionsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetPrepInstructionsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetPrepInstructionsResult.php b/lib/Model/FbaInboundV0/GetPrepInstructionsResult.php deleted file mode 100644 index 62db6c463..000000000 --- a/lib/Model/FbaInboundV0/GetPrepInstructionsResult.php +++ /dev/null @@ -1,248 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPrepInstructionsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPrepInstructionsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku_prep_instructions_list' => '\SellingPartnerApi\Model\FbaInboundV0\SKUPrepInstructions[]', - 'invalid_sku_list' => '\SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]', - 'asin_prep_instructions_list' => '\SellingPartnerApi\Model\FbaInboundV0\ASINPrepInstructions[]', - 'invalid_asin_list' => '\SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku_prep_instructions_list' => null, - 'invalid_sku_list' => null, - 'asin_prep_instructions_list' => null, - 'invalid_asin_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'sku_prep_instructions_list' => 'SKUPrepInstructionsList', - 'invalid_sku_list' => 'InvalidSKUList', - 'asin_prep_instructions_list' => 'ASINPrepInstructionsList', - 'invalid_asin_list' => 'InvalidASINList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'sku_prep_instructions_list' => 'setSkuPrepInstructionsList', - 'invalid_sku_list' => 'setInvalidSkuList', - 'asin_prep_instructions_list' => 'setAsinPrepInstructionsList', - 'invalid_asin_list' => 'setInvalidAsinList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'sku_prep_instructions_list' => 'getSkuPrepInstructionsList', - 'invalid_sku_list' => 'getInvalidSkuList', - 'asin_prep_instructions_list' => 'getAsinPrepInstructionsList', - 'invalid_asin_list' => 'getInvalidAsinList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku_prep_instructions_list'] = $data['sku_prep_instructions_list'] ?? null; - $this->container['invalid_sku_list'] = $data['invalid_sku_list'] ?? null; - $this->container['asin_prep_instructions_list'] = $data['asin_prep_instructions_list'] ?? null; - $this->container['invalid_asin_list'] = $data['invalid_asin_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets sku_prep_instructions_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\SKUPrepInstructions[]|null - */ - public function getSkuPrepInstructionsList() - { - return $this->container['sku_prep_instructions_list']; - } - - /** - * Sets sku_prep_instructions_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\SKUPrepInstructions[]|null $sku_prep_instructions_list A list of SKU labeling requirements and item preparation instructions. - * - * @return self - */ - public function setSkuPrepInstructionsList($sku_prep_instructions_list) - { - $this->container['sku_prep_instructions_list'] = $sku_prep_instructions_list; - - return $this; - } - /** - * Gets invalid_sku_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]|null - */ - public function getInvalidSkuList() - { - return $this->container['invalid_sku_list']; - } - - /** - * Sets invalid_sku_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InvalidSKU[]|null $invalid_sku_list A list of invalid SKU values and the reason they are invalid. - * - * @return self - */ - public function setInvalidSkuList($invalid_sku_list) - { - $this->container['invalid_sku_list'] = $invalid_sku_list; - - return $this; - } - /** - * Gets asin_prep_instructions_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ASINPrepInstructions[]|null - */ - public function getAsinPrepInstructionsList() - { - return $this->container['asin_prep_instructions_list']; - } - - /** - * Sets asin_prep_instructions_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ASINPrepInstructions[]|null $asin_prep_instructions_list A list of item preparation instructions. - * - * @return self - */ - public function setAsinPrepInstructionsList($asin_prep_instructions_list) - { - $this->container['asin_prep_instructions_list'] = $asin_prep_instructions_list; - - return $this; - } - /** - * Gets invalid_asin_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]|null - */ - public function getInvalidAsinList() - { - return $this->container['invalid_asin_list']; - } - - /** - * Sets invalid_asin_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InvalidASIN[]|null $invalid_asin_list A list of invalid ASIN values and the reasons they are invalid. - * - * @return self - */ - public function setInvalidAsinList($invalid_asin_list) - { - $this->container['invalid_asin_list'] = $invalid_asin_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetShipmentItemsResponse.php b/lib/Model/FbaInboundV0/GetShipmentItemsResponse.php deleted file mode 100644 index 921e69db8..000000000 --- a/lib/Model/FbaInboundV0/GetShipmentItemsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentItemsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentItemsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetShipmentItemsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetShipmentItemsResult.php b/lib/Model/FbaInboundV0/GetShipmentItemsResult.php deleted file mode 100644 index c6d913420..000000000 --- a/lib/Model/FbaInboundV0/GetShipmentItemsResult.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentItemsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentItemsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_data' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]', - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_data' => null, - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_data' => 'ItemData', - 'next_token' => 'NextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_data' => 'setItemData', - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_data' => 'getItemData', - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_data'] = $data['item_data'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets item_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]|null - */ - public function getItemData() - { - return $this->container['item_data']; - } - - /** - * Sets item_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]|null $item_data A list of inbound shipment item information. - * - * @return self - */ - public function setItemData($item_data) - { - $this->container['item_data'] = $item_data; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetShipmentsResponse.php b/lib/Model/FbaInboundV0/GetShipmentsResponse.php deleted file mode 100644 index 7353a66b4..000000000 --- a/lib/Model/FbaInboundV0/GetShipmentsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetShipmentsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetShipmentsResult.php b/lib/Model/FbaInboundV0/GetShipmentsResult.php deleted file mode 100644 index dac8a3bda..000000000 --- a/lib/Model/FbaInboundV0/GetShipmentsResult.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_data' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentInfo[]', - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_data' => null, - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_data' => 'ShipmentData', - 'next_token' => 'NextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_data' => 'setShipmentData', - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_data' => 'getShipmentData', - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_data'] = $data['shipment_data'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentInfo[]|null - */ - public function getShipmentData() - { - return $this->container['shipment_data']; - } - - /** - * Sets shipment_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentInfo[]|null $shipment_data A list of inbound shipment information. - * - * @return self - */ - public function setShipmentData($shipment_data) - { - $this->container['shipment_data'] = $shipment_data; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetTransportDetailsResponse.php b/lib/Model/FbaInboundV0/GetTransportDetailsResponse.php deleted file mode 100644 index de5a1880e..000000000 --- a/lib/Model/FbaInboundV0/GetTransportDetailsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTransportDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTransportDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GetTransportDetailsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GetTransportDetailsResult.php b/lib/Model/FbaInboundV0/GetTransportDetailsResult.php deleted file mode 100644 index 389dc4236..000000000 --- a/lib/Model/FbaInboundV0/GetTransportDetailsResult.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTransportDetailsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTransportDetailsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transport_content' => '\SellingPartnerApi\Model\FbaInboundV0\TransportContent' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transport_content' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transport_content' => 'TransportContent' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transport_content' => 'setTransportContent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transport_content' => 'getTransportContent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transport_content'] = $data['transport_content'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transport_content - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportContent|null - */ - public function getTransportContent() - { - return $this->container['transport_content']; - } - - /** - * Sets transport_content - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportContent|null $transport_content transport_content - * - * @return self - */ - public function setTransportContent($transport_content) - { - $this->container['transport_content'] = $transport_content; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/GuidanceReason.php b/lib/Model/FbaInboundV0/GuidanceReason.php deleted file mode 100644 index ded9993f9..000000000 --- a/lib/Model/FbaInboundV0/GuidanceReason.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundGuidance.php b/lib/Model/FbaInboundV0/InboundGuidance.php deleted file mode 100644 index ce3e0b448..000000000 --- a/lib/Model/FbaInboundV0/InboundGuidance.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentHeader.php b/lib/Model/FbaInboundV0/InboundShipmentHeader.php deleted file mode 100644 index 60676966f..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentHeader.php +++ /dev/null @@ -1,351 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentHeader extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentHeader'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_name' => 'string', - 'ship_from_address' => '\SellingPartnerApi\Model\FbaInboundV0\Address', - 'destination_fulfillment_center_id' => 'string', - 'are_cases_required' => 'bool', - 'shipment_status' => '\SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus', - 'label_prep_preference' => '\SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference', - 'intended_box_contents_source' => '\SellingPartnerApi\Model\FbaInboundV0\IntendedBoxContentsSource' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_name' => null, - 'ship_from_address' => null, - 'destination_fulfillment_center_id' => null, - 'are_cases_required' => null, - 'shipment_status' => null, - 'label_prep_preference' => null, - 'intended_box_contents_source' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_name' => 'ShipmentName', - 'ship_from_address' => 'ShipFromAddress', - 'destination_fulfillment_center_id' => 'DestinationFulfillmentCenterId', - 'are_cases_required' => 'AreCasesRequired', - 'shipment_status' => 'ShipmentStatus', - 'label_prep_preference' => 'LabelPrepPreference', - 'intended_box_contents_source' => 'IntendedBoxContentsSource' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_name' => 'setShipmentName', - 'ship_from_address' => 'setShipFromAddress', - 'destination_fulfillment_center_id' => 'setDestinationFulfillmentCenterId', - 'are_cases_required' => 'setAreCasesRequired', - 'shipment_status' => 'setShipmentStatus', - 'label_prep_preference' => 'setLabelPrepPreference', - 'intended_box_contents_source' => 'setIntendedBoxContentsSource' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_name' => 'getShipmentName', - 'ship_from_address' => 'getShipFromAddress', - 'destination_fulfillment_center_id' => 'getDestinationFulfillmentCenterId', - 'are_cases_required' => 'getAreCasesRequired', - 'shipment_status' => 'getShipmentStatus', - 'label_prep_preference' => 'getLabelPrepPreference', - 'intended_box_contents_source' => 'getIntendedBoxContentsSource' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_name'] = $data['shipment_name'] ?? null; - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['destination_fulfillment_center_id'] = $data['destination_fulfillment_center_id'] ?? null; - $this->container['are_cases_required'] = $data['are_cases_required'] ?? null; - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['label_prep_preference'] = $data['label_prep_preference'] ?? null; - $this->container['intended_box_contents_source'] = $data['intended_box_contents_source'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_name'] === null) { - $invalidProperties[] = "'shipment_name' can't be null"; - } - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['destination_fulfillment_center_id'] === null) { - $invalidProperties[] = "'destination_fulfillment_center_id' can't be null"; - } - if ($this->container['shipment_status'] === null) { - $invalidProperties[] = "'shipment_status' can't be null"; - } - if ($this->container['label_prep_preference'] === null) { - $invalidProperties[] = "'label_prep_preference' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_name - * - * @return string - */ - public function getShipmentName() - { - return $this->container['shipment_name']; - } - - /** - * Sets shipment_name - * - * @param string $shipment_name The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created. - * - * @return self - */ - public function setShipmentName($shipment_name) - { - $this->container['shipment_name'] = $shipment_name; - - return $this; - } - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets destination_fulfillment_center_id - * - * @return string - */ - public function getDestinationFulfillmentCenterId() - { - return $this->container['destination_fulfillment_center_id']; - } - - /** - * Sets destination_fulfillment_center_id - * - * @param string $destination_fulfillment_center_id The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation. - * - * @return self - */ - public function setDestinationFulfillmentCenterId($destination_fulfillment_center_id) - { - $this->container['destination_fulfillment_center_id'] = $destination_fulfillment_center_id; - - return $this; - } - /** - * Gets are_cases_required - * - * @return bool|null - */ - public function getAreCasesRequired() - { - return $this->container['are_cases_required']; - } - - /** - * Sets are_cases_required - * - * @param bool|null $are_cases_required Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes. Possible values: true - All boxes in the shipment must be case packed. false - All boxes in the shipment must be individually packed. Note: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error. - * - * @return self - */ - public function setAreCasesRequired($are_cases_required) - { - $this->container['are_cases_required'] = $are_cases_required; - - return $this; - } - /** - * Gets shipment_status - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus $shipment_status shipment_status - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets label_prep_preference - * - * @return \SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference - */ - public function getLabelPrepPreference() - { - return $this->container['label_prep_preference']; - } - - /** - * Sets label_prep_preference - * - * @param \SellingPartnerApi\Model\FbaInboundV0\LabelPrepPreference $label_prep_preference label_prep_preference - * - * @return self - */ - public function setLabelPrepPreference($label_prep_preference) - { - $this->container['label_prep_preference'] = $label_prep_preference; - - return $this; - } - /** - * Gets intended_box_contents_source - * - * @return \SellingPartnerApi\Model\FbaInboundV0\IntendedBoxContentsSource|null - */ - public function getIntendedBoxContentsSource() - { - return $this->container['intended_box_contents_source']; - } - - /** - * Sets intended_box_contents_source - * - * @param \SellingPartnerApi\Model\FbaInboundV0\IntendedBoxContentsSource|null $intended_box_contents_source intended_box_contents_source - * - * @return self - */ - public function setIntendedBoxContentsSource($intended_box_contents_source) - { - $this->container['intended_box_contents_source'] = $intended_box_contents_source; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentInfo.php b/lib/Model/FbaInboundV0/InboundShipmentInfo.php deleted file mode 100644 index c3e3a7b2e..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentInfo.php +++ /dev/null @@ -1,429 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'shipment_name' => 'string', - 'ship_from_address' => '\SellingPartnerApi\Model\FbaInboundV0\Address', - 'destination_fulfillment_center_id' => 'string', - 'shipment_status' => '\SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus', - 'label_prep_type' => '\SellingPartnerApi\Model\FbaInboundV0\LabelPrepType', - 'are_cases_required' => 'bool', - 'confirmed_need_by_date' => 'string', - 'box_contents_source' => '\SellingPartnerApi\Model\FbaInboundV0\BoxContentsSource', - 'estimated_box_contents_fee' => '\SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'shipment_name' => null, - 'ship_from_address' => null, - 'destination_fulfillment_center_id' => null, - 'shipment_status' => null, - 'label_prep_type' => null, - 'are_cases_required' => null, - 'confirmed_need_by_date' => null, - 'box_contents_source' => null, - 'estimated_box_contents_fee' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'ShipmentId', - 'shipment_name' => 'ShipmentName', - 'ship_from_address' => 'ShipFromAddress', - 'destination_fulfillment_center_id' => 'DestinationFulfillmentCenterId', - 'shipment_status' => 'ShipmentStatus', - 'label_prep_type' => 'LabelPrepType', - 'are_cases_required' => 'AreCasesRequired', - 'confirmed_need_by_date' => 'ConfirmedNeedByDate', - 'box_contents_source' => 'BoxContentsSource', - 'estimated_box_contents_fee' => 'EstimatedBoxContentsFee' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'shipment_name' => 'setShipmentName', - 'ship_from_address' => 'setShipFromAddress', - 'destination_fulfillment_center_id' => 'setDestinationFulfillmentCenterId', - 'shipment_status' => 'setShipmentStatus', - 'label_prep_type' => 'setLabelPrepType', - 'are_cases_required' => 'setAreCasesRequired', - 'confirmed_need_by_date' => 'setConfirmedNeedByDate', - 'box_contents_source' => 'setBoxContentsSource', - 'estimated_box_contents_fee' => 'setEstimatedBoxContentsFee' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'shipment_name' => 'getShipmentName', - 'ship_from_address' => 'getShipFromAddress', - 'destination_fulfillment_center_id' => 'getDestinationFulfillmentCenterId', - 'shipment_status' => 'getShipmentStatus', - 'label_prep_type' => 'getLabelPrepType', - 'are_cases_required' => 'getAreCasesRequired', - 'confirmed_need_by_date' => 'getConfirmedNeedByDate', - 'box_contents_source' => 'getBoxContentsSource', - 'estimated_box_contents_fee' => 'getEstimatedBoxContentsFee' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['shipment_name'] = $data['shipment_name'] ?? null; - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['destination_fulfillment_center_id'] = $data['destination_fulfillment_center_id'] ?? null; - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['label_prep_type'] = $data['label_prep_type'] ?? null; - $this->container['are_cases_required'] = $data['are_cases_required'] ?? null; - $this->container['confirmed_need_by_date'] = $data['confirmed_need_by_date'] ?? null; - $this->container['box_contents_source'] = $data['box_contents_source'] ?? null; - $this->container['estimated_box_contents_fee'] = $data['estimated_box_contents_fee'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['are_cases_required'] === null) { - $invalidProperties[] = "'are_cases_required' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string|null - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string|null $shipment_id The shipment identifier submitted in the request. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets shipment_name - * - * @return string|null - */ - public function getShipmentName() - { - return $this->container['shipment_name']; - } - - /** - * Sets shipment_name - * - * @param string|null $shipment_name The name for the inbound shipment. - * - * @return self - */ - public function setShipmentName($shipment_name) - { - $this->container['shipment_name'] = $shipment_name; - - return $this; - } - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets destination_fulfillment_center_id - * - * @return string|null - */ - public function getDestinationFulfillmentCenterId() - { - return $this->container['destination_fulfillment_center_id']; - } - - /** - * Sets destination_fulfillment_center_id - * - * @param string|null $destination_fulfillment_center_id An Amazon fulfillment center identifier created by Amazon. - * - * @return self - */ - public function setDestinationFulfillmentCenterId($destination_fulfillment_center_id) - { - $this->container['destination_fulfillment_center_id'] = $destination_fulfillment_center_id; - - return $this; - } - /** - * Gets shipment_status - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus|null - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ShipmentStatus|null $shipment_status shipment_status - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets label_prep_type - * - * @return \SellingPartnerApi\Model\FbaInboundV0\LabelPrepType|null - */ - public function getLabelPrepType() - { - return $this->container['label_prep_type']; - } - - /** - * Sets label_prep_type - * - * @param \SellingPartnerApi\Model\FbaInboundV0\LabelPrepType|null $label_prep_type label_prep_type - * - * @return self - */ - public function setLabelPrepType($label_prep_type) - { - $this->container['label_prep_type'] = $label_prep_type; - - return $this; - } - /** - * Gets are_cases_required - * - * @return bool - */ - public function getAreCasesRequired() - { - return $this->container['are_cases_required']; - } - - /** - * Sets are_cases_required - * - * @param bool $are_cases_required Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed. - * - * @return self - */ - public function setAreCasesRequired($are_cases_required) - { - $this->container['are_cases_required'] = $are_cases_required; - - return $this; - } - /** - * Gets confirmed_need_by_date - * - * @return string|null - */ - public function getConfirmedNeedByDate() - { - return $this->container['confirmed_need_by_date']; - } - - /** - * Sets confirmed_need_by_date - * - * @param string|null $confirmed_need_by_date A date string in ISO 8601 format. - * - * @return self - */ - public function setConfirmedNeedByDate($confirmed_need_by_date) - { - $this->container['confirmed_need_by_date'] = $confirmed_need_by_date; - - return $this; - } - /** - * Gets box_contents_source - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BoxContentsSource|null - */ - public function getBoxContentsSource() - { - return $this->container['box_contents_source']; - } - - /** - * Sets box_contents_source - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BoxContentsSource|null $box_contents_source box_contents_source - * - * @return self - */ - public function setBoxContentsSource($box_contents_source) - { - $this->container['box_contents_source'] = $box_contents_source; - - return $this; - } - /** - * Gets estimated_box_contents_fee - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails|null - */ - public function getEstimatedBoxContentsFee() - { - return $this->container['estimated_box_contents_fee']; - } - - /** - * Sets estimated_box_contents_fee - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails|null $estimated_box_contents_fee estimated_box_contents_fee - * - * @return self - */ - public function setEstimatedBoxContentsFee($estimated_box_contents_fee) - { - $this->container['estimated_box_contents_fee'] = $estimated_box_contents_fee; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentItem.php b/lib/Model/FbaInboundV0/InboundShipmentItem.php deleted file mode 100644 index cbe55ea2e..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentItem.php +++ /dev/null @@ -1,371 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'seller_sku' => 'string', - 'fulfillment_network_sku' => 'string', - 'quantity_shipped' => 'int', - 'quantity_received' => 'int', - 'quantity_in_case' => 'int', - 'release_date' => 'string', - 'prep_details_list' => '\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'seller_sku' => null, - 'fulfillment_network_sku' => null, - 'quantity_shipped' => 'int32', - 'quantity_received' => 'int32', - 'quantity_in_case' => 'int32', - 'release_date' => null, - 'prep_details_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'ShipmentId', - 'seller_sku' => 'SellerSKU', - 'fulfillment_network_sku' => 'FulfillmentNetworkSKU', - 'quantity_shipped' => 'QuantityShipped', - 'quantity_received' => 'QuantityReceived', - 'quantity_in_case' => 'QuantityInCase', - 'release_date' => 'ReleaseDate', - 'prep_details_list' => 'PrepDetailsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'seller_sku' => 'setSellerSku', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'quantity_shipped' => 'setQuantityShipped', - 'quantity_received' => 'setQuantityReceived', - 'quantity_in_case' => 'setQuantityInCase', - 'release_date' => 'setReleaseDate', - 'prep_details_list' => 'setPrepDetailsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'seller_sku' => 'getSellerSku', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'quantity_shipped' => 'getQuantityShipped', - 'quantity_received' => 'getQuantityReceived', - 'quantity_in_case' => 'getQuantityInCase', - 'release_date' => 'getReleaseDate', - 'prep_details_list' => 'getPrepDetailsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['quantity_shipped'] = $data['quantity_shipped'] ?? null; - $this->container['quantity_received'] = $data['quantity_received'] ?? null; - $this->container['quantity_in_case'] = $data['quantity_in_case'] ?? null; - $this->container['release_date'] = $data['release_date'] ?? null; - $this->container['prep_details_list'] = $data['prep_details_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['quantity_shipped'] === null) { - $invalidProperties[] = "'quantity_shipped' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string|null - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string|null $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku Amazon's fulfillment network SKU of the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets quantity_shipped - * - * @return int - */ - public function getQuantityShipped() - { - return $this->container['quantity_shipped']; - } - - /** - * Sets quantity_shipped - * - * @param int $quantity_shipped The item quantity. - * - * @return self - */ - public function setQuantityShipped($quantity_shipped) - { - $this->container['quantity_shipped'] = $quantity_shipped; - - return $this; - } - /** - * Gets quantity_received - * - * @return int|null - */ - public function getQuantityReceived() - { - return $this->container['quantity_received']; - } - - /** - * Sets quantity_received - * - * @param int|null $quantity_received The item quantity. - * - * @return self - */ - public function setQuantityReceived($quantity_received) - { - $this->container['quantity_received'] = $quantity_received; - - return $this; - } - /** - * Gets quantity_in_case - * - * @return int|null - */ - public function getQuantityInCase() - { - return $this->container['quantity_in_case']; - } - - /** - * Sets quantity_in_case - * - * @param int|null $quantity_in_case The item quantity. - * - * @return self - */ - public function setQuantityInCase($quantity_in_case) - { - $this->container['quantity_in_case'] = $quantity_in_case; - - return $this; - } - /** - * Gets release_date - * - * @return string|null - */ - public function getReleaseDate() - { - return $this->container['release_date']; - } - - /** - * Sets release_date - * - * @param string|null $release_date A date string in ISO 8601 format. - * - * @return self - */ - public function setReleaseDate($release_date) - { - $this->container['release_date'] = $release_date; - - return $this; - } - /** - * Gets prep_details_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null - */ - public function getPrepDetailsList() - { - return $this->container['prep_details_list']; - } - - /** - * Sets prep_details_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null $prep_details_list A list of preparation instructions and who is responsible for that preparation. - * - * @return self - */ - public function setPrepDetailsList($prep_details_list) - { - $this->container['prep_details_list'] = $prep_details_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentPlan.php b/lib/Model/FbaInboundV0/InboundShipmentPlan.php deleted file mode 100644 index 8d97754fb..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentPlan.php +++ /dev/null @@ -1,322 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentPlan extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentPlan'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'destination_fulfillment_center_id' => 'string', - 'ship_to_address' => '\SellingPartnerApi\Model\FbaInboundV0\Address', - 'label_prep_type' => '\SellingPartnerApi\Model\FbaInboundV0\LabelPrepType', - 'items' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanItem[]', - 'estimated_box_contents_fee' => '\SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'destination_fulfillment_center_id' => null, - 'ship_to_address' => null, - 'label_prep_type' => null, - 'items' => null, - 'estimated_box_contents_fee' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'ShipmentId', - 'destination_fulfillment_center_id' => 'DestinationFulfillmentCenterId', - 'ship_to_address' => 'ShipToAddress', - 'label_prep_type' => 'LabelPrepType', - 'items' => 'Items', - 'estimated_box_contents_fee' => 'EstimatedBoxContentsFee' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'destination_fulfillment_center_id' => 'setDestinationFulfillmentCenterId', - 'ship_to_address' => 'setShipToAddress', - 'label_prep_type' => 'setLabelPrepType', - 'items' => 'setItems', - 'estimated_box_contents_fee' => 'setEstimatedBoxContentsFee' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'destination_fulfillment_center_id' => 'getDestinationFulfillmentCenterId', - 'ship_to_address' => 'getShipToAddress', - 'label_prep_type' => 'getLabelPrepType', - 'items' => 'getItems', - 'estimated_box_contents_fee' => 'getEstimatedBoxContentsFee' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['destination_fulfillment_center_id'] = $data['destination_fulfillment_center_id'] ?? null; - $this->container['ship_to_address'] = $data['ship_to_address'] ?? null; - $this->container['label_prep_type'] = $data['label_prep_type'] ?? null; - $this->container['items'] = $data['items'] ?? null; - $this->container['estimated_box_contents_fee'] = $data['estimated_box_contents_fee'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['destination_fulfillment_center_id'] === null) { - $invalidProperties[] = "'destination_fulfillment_center_id' can't be null"; - } - if ($this->container['ship_to_address'] === null) { - $invalidProperties[] = "'ship_to_address' can't be null"; - } - if ($this->container['label_prep_type'] === null) { - $invalidProperties[] = "'label_prep_type' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets destination_fulfillment_center_id - * - * @return string - */ - public function getDestinationFulfillmentCenterId() - { - return $this->container['destination_fulfillment_center_id']; - } - - /** - * Sets destination_fulfillment_center_id - * - * @param string $destination_fulfillment_center_id An Amazon fulfillment center identifier created by Amazon. - * - * @return self - */ - public function setDestinationFulfillmentCenterId($destination_fulfillment_center_id) - { - $this->container['destination_fulfillment_center_id'] = $destination_fulfillment_center_id; - - return $this; - } - /** - * Gets ship_to_address - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Address - */ - public function getShipToAddress() - { - return $this->container['ship_to_address']; - } - - /** - * Sets ship_to_address - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Address $ship_to_address ship_to_address - * - * @return self - */ - public function setShipToAddress($ship_to_address) - { - $this->container['ship_to_address'] = $ship_to_address; - - return $this; - } - /** - * Gets label_prep_type - * - * @return \SellingPartnerApi\Model\FbaInboundV0\LabelPrepType - */ - public function getLabelPrepType() - { - return $this->container['label_prep_type']; - } - - /** - * Sets label_prep_type - * - * @param \SellingPartnerApi\Model\FbaInboundV0\LabelPrepType $label_prep_type label_prep_type - * - * @return self - */ - public function setLabelPrepType($label_prep_type) - { - $this->container['label_prep_type'] = $label_prep_type; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentPlanItem[] $items A list of inbound shipment plan item information. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } - /** - * Gets estimated_box_contents_fee - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails|null - */ - public function getEstimatedBoxContentsFee() - { - return $this->container['estimated_box_contents_fee']; - } - - /** - * Sets estimated_box_contents_fee - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BoxContentsFeeDetails|null $estimated_box_contents_fee estimated_box_contents_fee - * - * @return self - */ - public function setEstimatedBoxContentsFee($estimated_box_contents_fee) - { - $this->container['estimated_box_contents_fee'] = $estimated_box_contents_fee; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentPlanItem.php b/lib/Model/FbaInboundV0/InboundShipmentPlanItem.php deleted file mode 100644 index 97a39e91e..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentPlanItem.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentPlanItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentPlanItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'fulfillment_network_sku' => 'string', - 'quantity' => 'int', - 'prep_details_list' => '\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'fulfillment_network_sku' => null, - 'quantity' => 'int32', - 'prep_details_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'fulfillment_network_sku' => 'FulfillmentNetworkSKU', - 'quantity' => 'Quantity', - 'prep_details_list' => 'PrepDetailsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'quantity' => 'setQuantity', - 'prep_details_list' => 'setPrepDetailsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'quantity' => 'getQuantity', - 'prep_details_list' => 'getPrepDetailsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['prep_details_list'] = $data['prep_details_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['fulfillment_network_sku'] === null) { - $invalidProperties[] = "'fulfillment_network_sku' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string $fulfillment_network_sku Amazon's fulfillment network SKU of the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets prep_details_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null - */ - public function getPrepDetailsList() - { - return $this->container['prep_details_list']; - } - - /** - * Sets prep_details_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null $prep_details_list A list of preparation instructions and who is responsible for that preparation. - * - * @return self - */ - public function setPrepDetailsList($prep_details_list) - { - $this->container['prep_details_list'] = $prep_details_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentPlanRequestItem.php b/lib/Model/FbaInboundV0/InboundShipmentPlanRequestItem.php deleted file mode 100644 index 6715cefe7..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentPlanRequestItem.php +++ /dev/null @@ -1,319 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentPlanRequestItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentPlanRequestItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'asin' => 'string', - 'condition' => '\SellingPartnerApi\Model\FbaInboundV0\Condition', - 'quantity' => 'int', - 'quantity_in_case' => 'int', - 'prep_details_list' => '\SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'asin' => null, - 'condition' => null, - 'quantity' => 'int32', - 'quantity_in_case' => 'int32', - 'prep_details_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'asin' => 'ASIN', - 'condition' => 'Condition', - 'quantity' => 'Quantity', - 'quantity_in_case' => 'QuantityInCase', - 'prep_details_list' => 'PrepDetailsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'asin' => 'setAsin', - 'condition' => 'setCondition', - 'quantity' => 'setQuantity', - 'quantity_in_case' => 'setQuantityInCase', - 'prep_details_list' => 'setPrepDetailsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'asin' => 'getAsin', - 'condition' => 'getCondition', - 'quantity' => 'getQuantity', - 'quantity_in_case' => 'getQuantityInCase', - 'prep_details_list' => 'getPrepDetailsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['condition'] = $data['condition'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['quantity_in_case'] = $data['quantity_in_case'] ?? null; - $this->container['prep_details_list'] = $data['prep_details_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['condition'] === null) { - $invalidProperties[] = "'condition' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets condition - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Condition - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Condition $condition condition - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets quantity_in_case - * - * @return int|null - */ - public function getQuantityInCase() - { - return $this->container['quantity_in_case']; - } - - /** - * Sets quantity_in_case - * - * @param int|null $quantity_in_case The item quantity. - * - * @return self - */ - public function setQuantityInCase($quantity_in_case) - { - $this->container['quantity_in_case'] = $quantity_in_case; - - return $this; - } - /** - * Gets prep_details_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null - */ - public function getPrepDetailsList() - { - return $this->container['prep_details_list']; - } - - /** - * Sets prep_details_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepDetails[]|null $prep_details_list A list of preparation instructions and who is responsible for that preparation. - * - * @return self - */ - public function setPrepDetailsList($prep_details_list) - { - $this->container['prep_details_list'] = $prep_details_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentRequest.php b/lib/Model/FbaInboundV0/InboundShipmentRequest.php deleted file mode 100644 index 363535481..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentRequest.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'inbound_shipment_header' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentHeader', - 'inbound_shipment_items' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[]', - 'marketplace_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'inbound_shipment_header' => null, - 'inbound_shipment_items' => null, - 'marketplace_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'inbound_shipment_header' => 'InboundShipmentHeader', - 'inbound_shipment_items' => 'InboundShipmentItems', - 'marketplace_id' => 'MarketplaceId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'inbound_shipment_header' => 'setInboundShipmentHeader', - 'inbound_shipment_items' => 'setInboundShipmentItems', - 'marketplace_id' => 'setMarketplaceId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'inbound_shipment_header' => 'getInboundShipmentHeader', - 'inbound_shipment_items' => 'getInboundShipmentItems', - 'marketplace_id' => 'getMarketplaceId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['inbound_shipment_header'] = $data['inbound_shipment_header'] ?? null; - $this->container['inbound_shipment_items'] = $data['inbound_shipment_items'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['inbound_shipment_header'] === null) { - $invalidProperties[] = "'inbound_shipment_header' can't be null"; - } - if ($this->container['inbound_shipment_items'] === null) { - $invalidProperties[] = "'inbound_shipment_items' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets inbound_shipment_header - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentHeader - */ - public function getInboundShipmentHeader() - { - return $this->container['inbound_shipment_header']; - } - - /** - * Sets inbound_shipment_header - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentHeader $inbound_shipment_header inbound_shipment_header - * - * @return self - */ - public function setInboundShipmentHeader($inbound_shipment_header) - { - $this->container['inbound_shipment_header'] = $inbound_shipment_header; - - return $this; - } - /** - * Gets inbound_shipment_items - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[] - */ - public function getInboundShipmentItems() - { - return $this->container['inbound_shipment_items']; - } - - /** - * Sets inbound_shipment_items - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentItem[] $inbound_shipment_items A list of inbound shipment item information. - * - * @return self - */ - public function setInboundShipmentItems($inbound_shipment_items) - { - $this->container['inbound_shipment_items'] = $inbound_shipment_items; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentResponse.php b/lib/Model/FbaInboundV0/InboundShipmentResponse.php deleted file mode 100644 index 6fc40a06e..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundShipmentResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InboundShipmentResult.php b/lib/Model/FbaInboundV0/InboundShipmentResult.php deleted file mode 100644 index 2fe6ed4ff..000000000 --- a/lib/Model/FbaInboundV0/InboundShipmentResult.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InboundShipmentResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InboundShipmentResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'ShipmentId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The shipment identifier submitted in the request. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/IntendedBoxContentsSource.php b/lib/Model/FbaInboundV0/IntendedBoxContentsSource.php deleted file mode 100644 index 0658e6ffc..000000000 --- a/lib/Model/FbaInboundV0/IntendedBoxContentsSource.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/InvalidASIN.php b/lib/Model/FbaInboundV0/InvalidASIN.php deleted file mode 100644 index 1b52526ed..000000000 --- a/lib/Model/FbaInboundV0/InvalidASIN.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvalidASIN extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvalidASIN'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'error_reason' => '\SellingPartnerApi\Model\FbaInboundV0\ErrorReason' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'error_reason' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'ASIN', - 'error_reason' => 'ErrorReason' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'error_reason' => 'setErrorReason' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'error_reason' => 'getErrorReason' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['error_reason'] = $data['error_reason'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets error_reason - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ErrorReason|null - */ - public function getErrorReason() - { - return $this->container['error_reason']; - } - - /** - * Sets error_reason - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ErrorReason|null $error_reason error_reason - * - * @return self - */ - public function setErrorReason($error_reason) - { - $this->container['error_reason'] = $error_reason; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/InvalidSKU.php b/lib/Model/FbaInboundV0/InvalidSKU.php deleted file mode 100644 index 38fb4080e..000000000 --- a/lib/Model/FbaInboundV0/InvalidSKU.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvalidSKU extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvalidSKU'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'error_reason' => '\SellingPartnerApi\Model\FbaInboundV0\ErrorReason' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'error_reason' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'error_reason' => 'ErrorReason' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'error_reason' => 'setErrorReason' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'error_reason' => 'getErrorReason' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['error_reason'] = $data['error_reason'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets error_reason - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ErrorReason|null - */ - public function getErrorReason() - { - return $this->container['error_reason']; - } - - /** - * Sets error_reason - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ErrorReason|null $error_reason error_reason - * - * @return self - */ - public function setErrorReason($error_reason) - { - $this->container['error_reason'] = $error_reason; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/LabelDownloadURL.php b/lib/Model/FbaInboundV0/LabelDownloadURL.php deleted file mode 100644 index d60550f02..000000000 --- a/lib/Model/FbaInboundV0/LabelDownloadURL.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelDownloadURL extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelDownloadURL'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'download_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'download_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'download_url' => 'DownloadURL' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'download_url' => 'setDownloadUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'download_url' => 'getDownloadUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['download_url'] = $data['download_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets download_url - * - * @return string|null - */ - public function getDownloadUrl() - { - return $this->container['download_url']; - } - - /** - * Sets download_url - * - * @param string|null $download_url URL to download the label for the package. Note: The URL will only be valid for 15 seconds - * - * @return self - */ - public function setDownloadUrl($download_url) - { - $this->container['download_url'] = $download_url; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/LabelPrepPreference.php b/lib/Model/FbaInboundV0/LabelPrepPreference.php deleted file mode 100644 index 93326e885..000000000 --- a/lib/Model/FbaInboundV0/LabelPrepPreference.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/LabelPrepType.php b/lib/Model/FbaInboundV0/LabelPrepType.php deleted file mode 100644 index 836db681f..000000000 --- a/lib/Model/FbaInboundV0/LabelPrepType.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredLtlDataInput.php b/lib/Model/FbaInboundV0/NonPartneredLtlDataInput.php deleted file mode 100644 index 97b13d514..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredLtlDataInput.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredLtlDataInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredLtlDataInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string', - 'pro_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null, - 'pro_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName', - 'pro_number' => 'ProNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName', - 'pro_number' => 'setProNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName', - 'pro_number' => 'getProNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['pro_number'] = $data['pro_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['pro_number'] === null) { - $invalidProperties[] = "'pro_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier that you are using for the inbound shipment. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets pro_number - * - * @return string - */ - public function getProNumber() - { - return $this->container['pro_number']; - } - - /** - * Sets pro_number - * - * @param string $pro_number The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier. - * - * @return self - */ - public function setProNumber($pro_number) - { - $this->container['pro_number'] = $pro_number; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredLtlDataOutput.php b/lib/Model/FbaInboundV0/NonPartneredLtlDataOutput.php deleted file mode 100644 index 28c88d351..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredLtlDataOutput.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredLtlDataOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredLtlDataOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string', - 'pro_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null, - 'pro_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName', - 'pro_number' => 'ProNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName', - 'pro_number' => 'setProNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName', - 'pro_number' => 'getProNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['pro_number'] = $data['pro_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['pro_number'] === null) { - $invalidProperties[] = "'pro_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier that you are using for the inbound shipment. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets pro_number - * - * @return string - */ - public function getProNumber() - { - return $this->container['pro_number']; - } - - /** - * Sets pro_number - * - * @param string $pro_number The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier. - * - * @return self - */ - public function setProNumber($pro_number) - { - $this->container['pro_number'] = $pro_number; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.php b/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.php deleted file mode 100644 index e9f6030f2..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataInput.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredSmallParcelDataInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredSmallParcelDataInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string', - 'package_list' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageInput[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null, - 'package_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName', - 'package_list' => 'PackageList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName', - 'package_list' => 'setPackageList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName', - 'package_list' => 'getPackageList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['package_list'] = $data['package_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['package_list'] === null) { - $invalidProperties[] = "'package_list' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier that you are using for the inbound shipment. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets package_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageInput[] - */ - public function getPackageList() - { - return $this->container['package_list']; - } - - /** - * Sets package_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageInput[] $package_list A list of package tracking information. - * - * @return self - */ - public function setPackageList($package_list) - { - $this->container['package_list'] = $package_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.php b/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.php deleted file mode 100644 index 2af5a7cd8..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredSmallParcelDataOutput.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredSmallParcelDataOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredSmallParcelDataOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_list' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageOutput[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_list' => 'PackageList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_list' => 'setPackageList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_list' => 'getPackageList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_list'] = $data['package_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_list'] === null) { - $invalidProperties[] = "'package_list' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageOutput[] - */ - public function getPackageList() - { - return $this->container['package_list']; - } - - /** - * Sets package_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelPackageOutput[] $package_list A list of packages, including carrier, tracking number, and status information for each package. - * - * @return self - */ - public function setPackageList($package_list) - { - $this->container['package_list'] = $package_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.php b/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.php deleted file mode 100644 index 684a740a2..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageInput.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredSmallParcelPackageInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredSmallParcelPackageInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_id' => 'TrackingId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_id' => 'setTrackingId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_id' => 'getTrackingId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tracking_id'] === null) { - $invalidProperties[] = "'tracking_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tracking_id - * - * @return string - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string $tracking_id The tracking number of the package, provided by the carrier. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.php b/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.php deleted file mode 100644 index fa92730cd..000000000 --- a/lib/Model/FbaInboundV0/NonPartneredSmallParcelPackageOutput.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NonPartneredSmallParcelPackageOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NonPartneredSmallParcelPackageOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string', - 'tracking_id' => 'string', - 'package_status' => '\SellingPartnerApi\Model\FbaInboundV0\PackageStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null, - 'tracking_id' => null, - 'package_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName', - 'tracking_id' => 'TrackingId', - 'package_status' => 'PackageStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName', - 'tracking_id' => 'setTrackingId', - 'package_status' => 'setPackageStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName', - 'tracking_id' => 'getTrackingId', - 'package_status' => 'getPackageStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['package_status'] = $data['package_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['tracking_id'] === null) { - $invalidProperties[] = "'tracking_id' can't be null"; - } - if ($this->container['package_status'] === null) { - $invalidProperties[] = "'package_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier that you are using for the inbound shipment. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets tracking_id - * - * @return string - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string $tracking_id The tracking number of the package, provided by the carrier. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets package_status - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PackageStatus - */ - public function getPackageStatus() - { - return $this->container['package_status']; - } - - /** - * Sets package_status - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PackageStatus $package_status package_status - * - * @return self - */ - public function setPackageStatus($package_status) - { - $this->container['package_status'] = $package_status; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PackageStatus.php b/lib/Model/FbaInboundV0/PackageStatus.php deleted file mode 100644 index 19518bd42..000000000 --- a/lib/Model/FbaInboundV0/PackageStatus.php +++ /dev/null @@ -1,99 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/Pallet.php b/lib/Model/FbaInboundV0/Pallet.php deleted file mode 100644 index 38a54414e..000000000 --- a/lib/Model/FbaInboundV0/Pallet.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pallet extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pallet'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'dimensions' => '\SellingPartnerApi\Model\FbaInboundV0\Dimensions', - 'weight' => '\SellingPartnerApi\Model\FbaInboundV0\Weight', - 'is_stacked' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'dimensions' => null, - 'weight' => null, - 'is_stacked' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'dimensions' => 'Dimensions', - 'weight' => 'Weight', - 'is_stacked' => 'IsStacked' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'is_stacked' => 'setIsStacked' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'is_stacked' => 'getIsStacked' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['is_stacked'] = $data['is_stacked'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['is_stacked'] === null) { - $invalidProperties[] = "'is_stacked' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets is_stacked - * - * @return bool - */ - public function getIsStacked() - { - return $this->container['is_stacked']; - } - - /** - * Sets is_stacked - * - * @param bool $is_stacked Indicates whether pallets will be stacked when carrier arrives for pick-up. - * - * @return self - */ - public function setIsStacked($is_stacked) - { - $this->container['is_stacked'] = $is_stacked; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredEstimate.php b/lib/Model/FbaInboundV0/PartneredEstimate.php deleted file mode 100644 index d8b0e86ef..000000000 --- a/lib/Model/FbaInboundV0/PartneredEstimate.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredEstimate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredEstimate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => '\SellingPartnerApi\Model\FbaInboundV0\Amount', - 'confirm_deadline' => 'string', - 'void_deadline' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'confirm_deadline' => null, - 'void_deadline' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'Amount', - 'confirm_deadline' => 'ConfirmDeadline', - 'void_deadline' => 'VoidDeadline' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'confirm_deadline' => 'setConfirmDeadline', - 'void_deadline' => 'setVoidDeadline' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'confirm_deadline' => 'getConfirmDeadline', - 'void_deadline' => 'getVoidDeadline' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['confirm_deadline'] = $data['confirm_deadline'] ?? null; - $this->container['void_deadline'] = $data['void_deadline'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount $amount amount - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets confirm_deadline - * - * @return string|null - */ - public function getConfirmDeadline() - { - return $this->container['confirm_deadline']; - } - - /** - * Sets confirm_deadline - * - * @param string|null $confirm_deadline A datetime string in ISO 8601 format - * - * @return self - */ - public function setConfirmDeadline($confirm_deadline) - { - $this->container['confirm_deadline'] = $confirm_deadline; - - return $this; - } - /** - * Gets void_deadline - * - * @return string|null - */ - public function getVoidDeadline() - { - return $this->container['void_deadline']; - } - - /** - * Sets void_deadline - * - * @param string|null $void_deadline A datetime string in ISO 8601 format - * - * @return self - */ - public function setVoidDeadline($void_deadline) - { - $this->container['void_deadline'] = $void_deadline; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredLtlDataInput.php b/lib/Model/FbaInboundV0/PartneredLtlDataInput.php deleted file mode 100644 index b8ce36c5b..000000000 --- a/lib/Model/FbaInboundV0/PartneredLtlDataInput.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredLtlDataInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredLtlDataInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'contact' => '\SellingPartnerApi\Model\FbaInboundV0\Contact', - 'box_count' => 'int', - 'seller_freight_class' => 'string', - 'freight_ready_date' => 'string', - 'pallet_list' => '\SellingPartnerApi\Model\FbaInboundV0\Pallet[]', - 'total_weight' => '\SellingPartnerApi\Model\FbaInboundV0\Weight', - 'seller_declared_value' => '\SellingPartnerApi\Model\FbaInboundV0\Amount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'contact' => null, - 'box_count' => 'int64', - 'seller_freight_class' => null, - 'freight_ready_date' => null, - 'pallet_list' => null, - 'total_weight' => null, - 'seller_declared_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'contact' => 'Contact', - 'box_count' => 'BoxCount', - 'seller_freight_class' => 'SellerFreightClass', - 'freight_ready_date' => 'FreightReadyDate', - 'pallet_list' => 'PalletList', - 'total_weight' => 'TotalWeight', - 'seller_declared_value' => 'SellerDeclaredValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'contact' => 'setContact', - 'box_count' => 'setBoxCount', - 'seller_freight_class' => 'setSellerFreightClass', - 'freight_ready_date' => 'setFreightReadyDate', - 'pallet_list' => 'setPalletList', - 'total_weight' => 'setTotalWeight', - 'seller_declared_value' => 'setSellerDeclaredValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'contact' => 'getContact', - 'box_count' => 'getBoxCount', - 'seller_freight_class' => 'getSellerFreightClass', - 'freight_ready_date' => 'getFreightReadyDate', - 'pallet_list' => 'getPalletList', - 'total_weight' => 'getTotalWeight', - 'seller_declared_value' => 'getSellerDeclaredValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['contact'] = $data['contact'] ?? null; - $this->container['box_count'] = $data['box_count'] ?? null; - $this->container['seller_freight_class'] = $data['seller_freight_class'] ?? null; - $this->container['freight_ready_date'] = $data['freight_ready_date'] ?? null; - $this->container['pallet_list'] = $data['pallet_list'] ?? null; - $this->container['total_weight'] = $data['total_weight'] ?? null; - $this->container['seller_declared_value'] = $data['seller_declared_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets contact - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Contact|null - */ - public function getContact() - { - return $this->container['contact']; - } - - /** - * Sets contact - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Contact|null $contact contact - * - * @return self - */ - public function setContact($contact) - { - $this->container['contact'] = $contact; - - return $this; - } - /** - * Gets box_count - * - * @return int|null - */ - public function getBoxCount() - { - return $this->container['box_count']; - } - - /** - * Sets box_count - * - * @param int|null $box_count box_count - * - * @return self - */ - public function setBoxCount($box_count) - { - $this->container['box_count'] = $box_count; - - return $this; - } - /** - * Gets seller_freight_class - * - * @return string|null - */ - public function getSellerFreightClass() - { - return $this->container['seller_freight_class']; - } - - /** - * Sets seller_freight_class - * - * @param string|null $seller_freight_class The freight class of the shipment. For information about determining the freight class, contact the carrier. - * - * @return self - */ - public function setSellerFreightClass($seller_freight_class) - { - $this->container['seller_freight_class'] = $seller_freight_class; - - return $this; - } - /** - * Gets freight_ready_date - * - * @return string|null - */ - public function getFreightReadyDate() - { - return $this->container['freight_ready_date']; - } - - /** - * Sets freight_ready_date - * - * @param string|null $freight_ready_date A date string in ISO 8601 format. - * - * @return self - */ - public function setFreightReadyDate($freight_ready_date) - { - $this->container['freight_ready_date'] = $freight_ready_date; - - return $this; - } - /** - * Gets pallet_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Pallet[]|null - */ - public function getPalletList() - { - return $this->container['pallet_list']; - } - - /** - * Sets pallet_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Pallet[]|null $pallet_list A list of pallet information. - * - * @return self - */ - public function setPalletList($pallet_list) - { - $this->container['pallet_list'] = $pallet_list; - - return $this; - } - /** - * Gets total_weight - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Weight|null - */ - public function getTotalWeight() - { - return $this->container['total_weight']; - } - - /** - * Sets total_weight - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Weight|null $total_weight total_weight - * - * @return self - */ - public function setTotalWeight($total_weight) - { - $this->container['total_weight'] = $total_weight; - - return $this; - } - /** - * Gets seller_declared_value - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getSellerDeclaredValue() - { - return $this->container['seller_declared_value']; - } - - /** - * Sets seller_declared_value - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $seller_declared_value seller_declared_value - * - * @return self - */ - public function setSellerDeclaredValue($seller_declared_value) - { - $this->container['seller_declared_value'] = $seller_declared_value; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredLtlDataOutput.php b/lib/Model/FbaInboundV0/PartneredLtlDataOutput.php deleted file mode 100644 index 240c0ac39..000000000 --- a/lib/Model/FbaInboundV0/PartneredLtlDataOutput.php +++ /dev/null @@ -1,601 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredLtlDataOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredLtlDataOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'contact' => '\SellingPartnerApi\Model\FbaInboundV0\Contact', - 'box_count' => 'int', - 'seller_freight_class' => 'string', - 'freight_ready_date' => 'string', - 'pallet_list' => '\SellingPartnerApi\Model\FbaInboundV0\Pallet[]', - 'total_weight' => '\SellingPartnerApi\Model\FbaInboundV0\Weight', - 'seller_declared_value' => '\SellingPartnerApi\Model\FbaInboundV0\Amount', - 'amazon_calculated_value' => '\SellingPartnerApi\Model\FbaInboundV0\Amount', - 'preview_pickup_date' => 'string', - 'preview_delivery_date' => 'string', - 'preview_freight_class' => 'string', - 'amazon_reference_id' => 'string', - 'is_bill_of_lading_available' => 'bool', - 'partnered_estimate' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate', - 'carrier_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'contact' => null, - 'box_count' => 'int64', - 'seller_freight_class' => null, - 'freight_ready_date' => null, - 'pallet_list' => null, - 'total_weight' => null, - 'seller_declared_value' => null, - 'amazon_calculated_value' => null, - 'preview_pickup_date' => null, - 'preview_delivery_date' => null, - 'preview_freight_class' => null, - 'amazon_reference_id' => null, - 'is_bill_of_lading_available' => null, - 'partnered_estimate' => null, - 'carrier_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'contact' => 'Contact', - 'box_count' => 'BoxCount', - 'seller_freight_class' => 'SellerFreightClass', - 'freight_ready_date' => 'FreightReadyDate', - 'pallet_list' => 'PalletList', - 'total_weight' => 'TotalWeight', - 'seller_declared_value' => 'SellerDeclaredValue', - 'amazon_calculated_value' => 'AmazonCalculatedValue', - 'preview_pickup_date' => 'PreviewPickupDate', - 'preview_delivery_date' => 'PreviewDeliveryDate', - 'preview_freight_class' => 'PreviewFreightClass', - 'amazon_reference_id' => 'AmazonReferenceId', - 'is_bill_of_lading_available' => 'IsBillOfLadingAvailable', - 'partnered_estimate' => 'PartneredEstimate', - 'carrier_name' => 'CarrierName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'contact' => 'setContact', - 'box_count' => 'setBoxCount', - 'seller_freight_class' => 'setSellerFreightClass', - 'freight_ready_date' => 'setFreightReadyDate', - 'pallet_list' => 'setPalletList', - 'total_weight' => 'setTotalWeight', - 'seller_declared_value' => 'setSellerDeclaredValue', - 'amazon_calculated_value' => 'setAmazonCalculatedValue', - 'preview_pickup_date' => 'setPreviewPickupDate', - 'preview_delivery_date' => 'setPreviewDeliveryDate', - 'preview_freight_class' => 'setPreviewFreightClass', - 'amazon_reference_id' => 'setAmazonReferenceId', - 'is_bill_of_lading_available' => 'setIsBillOfLadingAvailable', - 'partnered_estimate' => 'setPartneredEstimate', - 'carrier_name' => 'setCarrierName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'contact' => 'getContact', - 'box_count' => 'getBoxCount', - 'seller_freight_class' => 'getSellerFreightClass', - 'freight_ready_date' => 'getFreightReadyDate', - 'pallet_list' => 'getPalletList', - 'total_weight' => 'getTotalWeight', - 'seller_declared_value' => 'getSellerDeclaredValue', - 'amazon_calculated_value' => 'getAmazonCalculatedValue', - 'preview_pickup_date' => 'getPreviewPickupDate', - 'preview_delivery_date' => 'getPreviewDeliveryDate', - 'preview_freight_class' => 'getPreviewFreightClass', - 'amazon_reference_id' => 'getAmazonReferenceId', - 'is_bill_of_lading_available' => 'getIsBillOfLadingAvailable', - 'partnered_estimate' => 'getPartneredEstimate', - 'carrier_name' => 'getCarrierName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['contact'] = $data['contact'] ?? null; - $this->container['box_count'] = $data['box_count'] ?? null; - $this->container['seller_freight_class'] = $data['seller_freight_class'] ?? null; - $this->container['freight_ready_date'] = $data['freight_ready_date'] ?? null; - $this->container['pallet_list'] = $data['pallet_list'] ?? null; - $this->container['total_weight'] = $data['total_weight'] ?? null; - $this->container['seller_declared_value'] = $data['seller_declared_value'] ?? null; - $this->container['amazon_calculated_value'] = $data['amazon_calculated_value'] ?? null; - $this->container['preview_pickup_date'] = $data['preview_pickup_date'] ?? null; - $this->container['preview_delivery_date'] = $data['preview_delivery_date'] ?? null; - $this->container['preview_freight_class'] = $data['preview_freight_class'] ?? null; - $this->container['amazon_reference_id'] = $data['amazon_reference_id'] ?? null; - $this->container['is_bill_of_lading_available'] = $data['is_bill_of_lading_available'] ?? null; - $this->container['partnered_estimate'] = $data['partnered_estimate'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['contact'] === null) { - $invalidProperties[] = "'contact' can't be null"; - } - if ($this->container['box_count'] === null) { - $invalidProperties[] = "'box_count' can't be null"; - } - if ($this->container['freight_ready_date'] === null) { - $invalidProperties[] = "'freight_ready_date' can't be null"; - } - if ($this->container['pallet_list'] === null) { - $invalidProperties[] = "'pallet_list' can't be null"; - } - if ($this->container['total_weight'] === null) { - $invalidProperties[] = "'total_weight' can't be null"; - } - if ($this->container['preview_pickup_date'] === null) { - $invalidProperties[] = "'preview_pickup_date' can't be null"; - } - if ($this->container['preview_delivery_date'] === null) { - $invalidProperties[] = "'preview_delivery_date' can't be null"; - } - if ($this->container['preview_freight_class'] === null) { - $invalidProperties[] = "'preview_freight_class' can't be null"; - } - if ($this->container['amazon_reference_id'] === null) { - $invalidProperties[] = "'amazon_reference_id' can't be null"; - } - if ($this->container['is_bill_of_lading_available'] === null) { - $invalidProperties[] = "'is_bill_of_lading_available' can't be null"; - } - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets contact - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Contact - */ - public function getContact() - { - return $this->container['contact']; - } - - /** - * Sets contact - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Contact $contact contact - * - * @return self - */ - public function setContact($contact) - { - $this->container['contact'] = $contact; - - return $this; - } - /** - * Gets box_count - * - * @return int - */ - public function getBoxCount() - { - return $this->container['box_count']; - } - - /** - * Sets box_count - * - * @param int $box_count box_count - * - * @return self - */ - public function setBoxCount($box_count) - { - $this->container['box_count'] = $box_count; - - return $this; - } - /** - * Gets seller_freight_class - * - * @return string|null - */ - public function getSellerFreightClass() - { - return $this->container['seller_freight_class']; - } - - /** - * Sets seller_freight_class - * - * @param string|null $seller_freight_class The freight class of the shipment. For information about determining the freight class, contact the carrier. - * - * @return self - */ - public function setSellerFreightClass($seller_freight_class) - { - $this->container['seller_freight_class'] = $seller_freight_class; - - return $this; - } - /** - * Gets freight_ready_date - * - * @return string - */ - public function getFreightReadyDate() - { - return $this->container['freight_ready_date']; - } - - /** - * Sets freight_ready_date - * - * @param string $freight_ready_date A date string in ISO 8601 format. - * - * @return self - */ - public function setFreightReadyDate($freight_ready_date) - { - $this->container['freight_ready_date'] = $freight_ready_date; - - return $this; - } - /** - * Gets pallet_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Pallet[] - */ - public function getPalletList() - { - return $this->container['pallet_list']; - } - - /** - * Sets pallet_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Pallet[] $pallet_list A list of pallet information. - * - * @return self - */ - public function setPalletList($pallet_list) - { - $this->container['pallet_list'] = $pallet_list; - - return $this; - } - /** - * Gets total_weight - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Weight - */ - public function getTotalWeight() - { - return $this->container['total_weight']; - } - - /** - * Sets total_weight - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Weight $total_weight total_weight - * - * @return self - */ - public function setTotalWeight($total_weight) - { - $this->container['total_weight'] = $total_weight; - - return $this; - } - /** - * Gets seller_declared_value - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getSellerDeclaredValue() - { - return $this->container['seller_declared_value']; - } - - /** - * Sets seller_declared_value - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $seller_declared_value seller_declared_value - * - * @return self - */ - public function setSellerDeclaredValue($seller_declared_value) - { - $this->container['seller_declared_value'] = $seller_declared_value; - - return $this; - } - /** - * Gets amazon_calculated_value - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Amount|null - */ - public function getAmazonCalculatedValue() - { - return $this->container['amazon_calculated_value']; - } - - /** - * Sets amazon_calculated_value - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Amount|null $amazon_calculated_value amazon_calculated_value - * - * @return self - */ - public function setAmazonCalculatedValue($amazon_calculated_value) - { - $this->container['amazon_calculated_value'] = $amazon_calculated_value; - - return $this; - } - /** - * Gets preview_pickup_date - * - * @return string - */ - public function getPreviewPickupDate() - { - return $this->container['preview_pickup_date']; - } - - /** - * Sets preview_pickup_date - * - * @param string $preview_pickup_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPreviewPickupDate($preview_pickup_date) - { - $this->container['preview_pickup_date'] = $preview_pickup_date; - - return $this; - } - /** - * Gets preview_delivery_date - * - * @return string - */ - public function getPreviewDeliveryDate() - { - return $this->container['preview_delivery_date']; - } - - /** - * Sets preview_delivery_date - * - * @param string $preview_delivery_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPreviewDeliveryDate($preview_delivery_date) - { - $this->container['preview_delivery_date'] = $preview_delivery_date; - - return $this; - } - /** - * Gets preview_freight_class - * - * @return string - */ - public function getPreviewFreightClass() - { - return $this->container['preview_freight_class']; - } - - /** - * Sets preview_freight_class - * - * @param string $preview_freight_class The freight class of the shipment. For information about determining the freight class, contact the carrier. - * - * @return self - */ - public function setPreviewFreightClass($preview_freight_class) - { - $this->container['preview_freight_class'] = $preview_freight_class; - - return $this; - } - /** - * Gets amazon_reference_id - * - * @return string - */ - public function getAmazonReferenceId() - { - return $this->container['amazon_reference_id']; - } - - /** - * Sets amazon_reference_id - * - * @param string $amazon_reference_id A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment. - * - * @return self - */ - public function setAmazonReferenceId($amazon_reference_id) - { - $this->container['amazon_reference_id'] = $amazon_reference_id; - - return $this; - } - /** - * Gets is_bill_of_lading_available - * - * @return bool - */ - public function getIsBillOfLadingAvailable() - { - return $this->container['is_bill_of_lading_available']; - } - - /** - * Sets is_bill_of_lading_available - * - * @param bool $is_bill_of_lading_available Indicates whether the bill of lading for the shipment is available. - * - * @return self - */ - public function setIsBillOfLadingAvailable($is_bill_of_lading_available) - { - $this->container['is_bill_of_lading_available'] = $is_bill_of_lading_available; - - return $this; - } - /** - * Gets partnered_estimate - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate|null - */ - public function getPartneredEstimate() - { - return $this->container['partnered_estimate']; - } - - /** - * Sets partnered_estimate - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate|null $partnered_estimate partnered_estimate - * - * @return self - */ - public function setPartneredEstimate($partnered_estimate) - { - $this->container['partnered_estimate'] = $partnered_estimate; - - return $this; - } - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier for the inbound shipment. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredSmallParcelDataInput.php b/lib/Model/FbaInboundV0/PartneredSmallParcelDataInput.php deleted file mode 100644 index 8f7feb3c6..000000000 --- a/lib/Model/FbaInboundV0/PartneredSmallParcelDataInput.php +++ /dev/null @@ -1,193 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredSmallParcelDataInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredSmallParcelDataInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_list' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageInput[]', - 'carrier_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_list' => null, - 'carrier_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_list' => 'PackageList', - 'carrier_name' => 'CarrierName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_list' => 'setPackageList', - 'carrier_name' => 'setCarrierName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_list' => 'getPackageList', - 'carrier_name' => 'getCarrierName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_list'] = $data['package_list'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets package_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageInput[]|null - */ - public function getPackageList() - { - return $this->container['package_list']; - } - - /** - * Sets package_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageInput[]|null $package_list A list of dimensions and weight information for packages. - * - * @return self - */ - public function setPackageList($package_list) - { - $this->container['package_list'] = $package_list; - - return $this; - } - /** - * Gets carrier_name - * - * @return string|null - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string|null $carrier_name The Amazon-partnered carrier to use for the inbound shipment. **`CarrierName`** values in France (FR), Italy (IT), Spain (ES), the United Kingdom (UK), and the United States (US): `UNITED_PARCEL_SERVICE_INC`. - * **`CarrierName`** values in Germany (DE): `DHL_STANDARD`,`UNITED_PARCEL_SERVICE_INC`. - * Default: `UNITED_PARCEL_SERVICE_INC`. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredSmallParcelDataOutput.php b/lib/Model/FbaInboundV0/PartneredSmallParcelDataOutput.php deleted file mode 100644 index 6c00857ad..000000000 --- a/lib/Model/FbaInboundV0/PartneredSmallParcelDataOutput.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredSmallParcelDataOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredSmallParcelDataOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_list' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageOutput[]', - 'partnered_estimate' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_list' => null, - 'partnered_estimate' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_list' => 'PackageList', - 'partnered_estimate' => 'PartneredEstimate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_list' => 'setPackageList', - 'partnered_estimate' => 'setPartneredEstimate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_list' => 'getPackageList', - 'partnered_estimate' => 'getPartneredEstimate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_list'] = $data['package_list'] ?? null; - $this->container['partnered_estimate'] = $data['partnered_estimate'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_list'] === null) { - $invalidProperties[] = "'package_list' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageOutput[] - */ - public function getPackageList() - { - return $this->container['package_list']; - } - - /** - * Sets package_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelPackageOutput[] $package_list A list of packages, including shipping information from the Amazon-partnered carrier. - * - * @return self - */ - public function setPackageList($package_list) - { - $this->container['package_list'] = $package_list; - - return $this; - } - /** - * Gets partnered_estimate - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate|null - */ - public function getPartneredEstimate() - { - return $this->container['partnered_estimate']; - } - - /** - * Sets partnered_estimate - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredEstimate|null $partnered_estimate partnered_estimate - * - * @return self - */ - public function setPartneredEstimate($partnered_estimate) - { - $this->container['partnered_estimate'] = $partnered_estimate; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredSmallParcelPackageInput.php b/lib/Model/FbaInboundV0/PartneredSmallParcelPackageInput.php deleted file mode 100644 index 1a3bc03cc..000000000 --- a/lib/Model/FbaInboundV0/PartneredSmallParcelPackageInput.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredSmallParcelPackageInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredSmallParcelPackageInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'dimensions' => '\SellingPartnerApi\Model\FbaInboundV0\Dimensions', - 'weight' => '\SellingPartnerApi\Model\FbaInboundV0\Weight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'dimensions' => null, - 'weight' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'dimensions' => 'Dimensions', - 'weight' => 'Weight' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.php b/lib/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.php deleted file mode 100644 index 6a20f584e..000000000 --- a/lib/Model/FbaInboundV0/PartneredSmallParcelPackageOutput.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartneredSmallParcelPackageOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartneredSmallParcelPackageOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'dimensions' => '\SellingPartnerApi\Model\FbaInboundV0\Dimensions', - 'weight' => '\SellingPartnerApi\Model\FbaInboundV0\Weight', - 'carrier_name' => 'string', - 'tracking_id' => 'string', - 'package_status' => '\SellingPartnerApi\Model\FbaInboundV0\PackageStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'dimensions' => null, - 'weight' => null, - 'carrier_name' => null, - 'tracking_id' => null, - 'package_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'dimensions' => 'Dimensions', - 'weight' => 'Weight', - 'carrier_name' => 'CarrierName', - 'tracking_id' => 'TrackingId', - 'package_status' => 'PackageStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'carrier_name' => 'setCarrierName', - 'tracking_id' => 'setTrackingId', - 'package_status' => 'setPackageStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'carrier_name' => 'getCarrierName', - 'tracking_id' => 'getTrackingId', - 'package_status' => 'getPackageStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['package_status'] = $data['package_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['tracking_id'] === null) { - $invalidProperties[] = "'tracking_id' can't be null"; - } - if ($this->container['package_status'] === null) { - $invalidProperties[] = "'package_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier specified with a previous call to putTransportDetails. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets tracking_id - * - * @return string - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string $tracking_id The tracking number of the package, provided by the carrier. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets package_status - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PackageStatus - */ - public function getPackageStatus() - { - return $this->container['package_status']; - } - - /** - * Sets package_status - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PackageStatus $package_status package_status - * - * @return self - */ - public function setPackageStatus($package_status) - { - $this->container['package_status'] = $package_status; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PrepDetails.php b/lib/Model/FbaInboundV0/PrepDetails.php deleted file mode 100644 index 42f9348f5..000000000 --- a/lib/Model/FbaInboundV0/PrepDetails.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PrepDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PrepDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'prep_instruction' => '\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction', - 'prep_owner' => '\SellingPartnerApi\Model\FbaInboundV0\PrepOwner' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'prep_instruction' => null, - 'prep_owner' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'prep_instruction' => 'PrepInstruction', - 'prep_owner' => 'PrepOwner' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'prep_instruction' => 'setPrepInstruction', - 'prep_owner' => 'setPrepOwner' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'prep_instruction' => 'getPrepInstruction', - 'prep_owner' => 'getPrepOwner' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['prep_instruction'] = $data['prep_instruction'] ?? null; - $this->container['prep_owner'] = $data['prep_owner'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['prep_instruction'] === null) { - $invalidProperties[] = "'prep_instruction' can't be null"; - } - if ($this->container['prep_owner'] === null) { - $invalidProperties[] = "'prep_owner' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets prep_instruction - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction - */ - public function getPrepInstruction() - { - return $this->container['prep_instruction']; - } - - /** - * Sets prep_instruction - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction $prep_instruction prep_instruction - * - * @return self - */ - public function setPrepInstruction($prep_instruction) - { - $this->container['prep_instruction'] = $prep_instruction; - - return $this; - } - /** - * Gets prep_owner - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepOwner - */ - public function getPrepOwner() - { - return $this->container['prep_owner']; - } - - /** - * Sets prep_owner - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepOwner $prep_owner prep_owner - * - * @return self - */ - public function setPrepOwner($prep_owner) - { - $this->container['prep_owner'] = $prep_owner; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PrepGuidance.php b/lib/Model/FbaInboundV0/PrepGuidance.php deleted file mode 100644 index e9fd127bf..000000000 --- a/lib/Model/FbaInboundV0/PrepGuidance.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/PrepInstruction.php b/lib/Model/FbaInboundV0/PrepInstruction.php deleted file mode 100644 index b6988f283..000000000 --- a/lib/Model/FbaInboundV0/PrepInstruction.php +++ /dev/null @@ -1,115 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/PrepOwner.php b/lib/Model/FbaInboundV0/PrepOwner.php deleted file mode 100644 index 06afce325..000000000 --- a/lib/Model/FbaInboundV0/PrepOwner.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/PutTransportDetailsRequest.php b/lib/Model/FbaInboundV0/PutTransportDetailsRequest.php deleted file mode 100644 index 5e45c1592..000000000 --- a/lib/Model/FbaInboundV0/PutTransportDetailsRequest.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PutTransportDetailsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PutTransportDetailsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_partnered' => 'bool', - 'shipment_type' => '\SellingPartnerApi\Model\FbaInboundV0\ShipmentType', - 'transport_details' => '\SellingPartnerApi\Model\FbaInboundV0\TransportDetailInput' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_partnered' => null, - 'shipment_type' => null, - 'transport_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_partnered' => 'IsPartnered', - 'shipment_type' => 'ShipmentType', - 'transport_details' => 'TransportDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_partnered' => 'setIsPartnered', - 'shipment_type' => 'setShipmentType', - 'transport_details' => 'setTransportDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_partnered' => 'getIsPartnered', - 'shipment_type' => 'getShipmentType', - 'transport_details' => 'getTransportDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_partnered'] = $data['is_partnered'] ?? null; - $this->container['shipment_type'] = $data['shipment_type'] ?? null; - $this->container['transport_details'] = $data['transport_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_partnered'] === null) { - $invalidProperties[] = "'is_partnered' can't be null"; - } - if ($this->container['shipment_type'] === null) { - $invalidProperties[] = "'shipment_type' can't be null"; - } - if ($this->container['transport_details'] === null) { - $invalidProperties[] = "'transport_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_partnered - * - * @return bool - */ - public function getIsPartnered() - { - return $this->container['is_partnered']; - } - - /** - * Sets is_partnered - * - * @param bool $is_partnered Indicates whether a putTransportDetails request is for an Amazon-partnered carrier. - * - * @return self - */ - public function setIsPartnered($is_partnered) - { - $this->container['is_partnered'] = $is_partnered; - - return $this; - } - /** - * Gets shipment_type - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ShipmentType - */ - public function getShipmentType() - { - return $this->container['shipment_type']; - } - - /** - * Sets shipment_type - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ShipmentType $shipment_type shipment_type - * - * @return self - */ - public function setShipmentType($shipment_type) - { - $this->container['shipment_type'] = $shipment_type; - - return $this; - } - /** - * Gets transport_details - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportDetailInput - */ - public function getTransportDetails() - { - return $this->container['transport_details']; - } - - /** - * Sets transport_details - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportDetailInput $transport_details transport_details - * - * @return self - */ - public function setTransportDetails($transport_details) - { - $this->container['transport_details'] = $transport_details; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/PutTransportDetailsResponse.php b/lib/Model/FbaInboundV0/PutTransportDetailsResponse.php deleted file mode 100644 index fbc01c1bb..000000000 --- a/lib/Model/FbaInboundV0/PutTransportDetailsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PutTransportDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PutTransportDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/SKUInboundGuidance.php b/lib/Model/FbaInboundV0/SKUInboundGuidance.php deleted file mode 100644 index 6146a120b..000000000 --- a/lib/Model/FbaInboundV0/SKUInboundGuidance.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SKUInboundGuidance extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SKUInboundGuidance'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'asin' => 'string', - 'inbound_guidance' => '\SellingPartnerApi\Model\FbaInboundV0\InboundGuidance', - 'guidance_reason_list' => '\SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'asin' => null, - 'inbound_guidance' => null, - 'guidance_reason_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'asin' => 'ASIN', - 'inbound_guidance' => 'InboundGuidance', - 'guidance_reason_list' => 'GuidanceReasonList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'asin' => 'setAsin', - 'inbound_guidance' => 'setInboundGuidance', - 'guidance_reason_list' => 'setGuidanceReasonList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'asin' => 'getAsin', - 'inbound_guidance' => 'getInboundGuidance', - 'guidance_reason_list' => 'getGuidanceReasonList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['inbound_guidance'] = $data['inbound_guidance'] ?? null; - $this->container['guidance_reason_list'] = $data['guidance_reason_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['inbound_guidance'] === null) { - $invalidProperties[] = "'inbound_guidance' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets inbound_guidance - * - * @return \SellingPartnerApi\Model\FbaInboundV0\InboundGuidance - */ - public function getInboundGuidance() - { - return $this->container['inbound_guidance']; - } - - /** - * Sets inbound_guidance - * - * @param \SellingPartnerApi\Model\FbaInboundV0\InboundGuidance $inbound_guidance inbound_guidance - * - * @return self - */ - public function setInboundGuidance($inbound_guidance) - { - $this->container['inbound_guidance'] = $inbound_guidance; - - return $this; - } - /** - * Gets guidance_reason_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]|null - */ - public function getGuidanceReasonList() - { - return $this->container['guidance_reason_list']; - } - - /** - * Sets guidance_reason_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\GuidanceReason[]|null $guidance_reason_list A list of inbound guidance reason information. - * - * @return self - */ - public function setGuidanceReasonList($guidance_reason_list) - { - $this->container['guidance_reason_list'] = $guidance_reason_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/SKUPrepInstructions.php b/lib/Model/FbaInboundV0/SKUPrepInstructions.php deleted file mode 100644 index e1ebcfe35..000000000 --- a/lib/Model/FbaInboundV0/SKUPrepInstructions.php +++ /dev/null @@ -1,307 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SKUPrepInstructions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SKUPrepInstructions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'asin' => 'string', - 'barcode_instruction' => '\SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction', - 'prep_guidance' => '\SellingPartnerApi\Model\FbaInboundV0\PrepGuidance', - 'prep_instruction_list' => '\SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]', - 'amazon_prep_fees_details_list' => '\SellingPartnerApi\Model\FbaInboundV0\AmazonPrepFeesDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'asin' => null, - 'barcode_instruction' => null, - 'prep_guidance' => null, - 'prep_instruction_list' => null, - 'amazon_prep_fees_details_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'asin' => 'ASIN', - 'barcode_instruction' => 'BarcodeInstruction', - 'prep_guidance' => 'PrepGuidance', - 'prep_instruction_list' => 'PrepInstructionList', - 'amazon_prep_fees_details_list' => 'AmazonPrepFeesDetailsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'asin' => 'setAsin', - 'barcode_instruction' => 'setBarcodeInstruction', - 'prep_guidance' => 'setPrepGuidance', - 'prep_instruction_list' => 'setPrepInstructionList', - 'amazon_prep_fees_details_list' => 'setAmazonPrepFeesDetailsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'asin' => 'getAsin', - 'barcode_instruction' => 'getBarcodeInstruction', - 'prep_guidance' => 'getPrepGuidance', - 'prep_instruction_list' => 'getPrepInstructionList', - 'amazon_prep_fees_details_list' => 'getAmazonPrepFeesDetailsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['barcode_instruction'] = $data['barcode_instruction'] ?? null; - $this->container['prep_guidance'] = $data['prep_guidance'] ?? null; - $this->container['prep_instruction_list'] = $data['prep_instruction_list'] ?? null; - $this->container['amazon_prep_fees_details_list'] = $data['amazon_prep_fees_details_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets barcode_instruction - * - * @return \SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction|null - */ - public function getBarcodeInstruction() - { - return $this->container['barcode_instruction']; - } - - /** - * Sets barcode_instruction - * - * @param \SellingPartnerApi\Model\FbaInboundV0\BarcodeInstruction|null $barcode_instruction barcode_instruction - * - * @return self - */ - public function setBarcodeInstruction($barcode_instruction) - { - $this->container['barcode_instruction'] = $barcode_instruction; - - return $this; - } - /** - * Gets prep_guidance - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepGuidance|null - */ - public function getPrepGuidance() - { - return $this->container['prep_guidance']; - } - - /** - * Sets prep_guidance - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepGuidance|null $prep_guidance prep_guidance - * - * @return self - */ - public function setPrepGuidance($prep_guidance) - { - $this->container['prep_guidance'] = $prep_guidance; - - return $this; - } - /** - * Gets prep_instruction_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]|null - */ - public function getPrepInstructionList() - { - return $this->container['prep_instruction_list']; - } - - /** - * Sets prep_instruction_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PrepInstruction[]|null $prep_instruction_list A list of preparation instructions to help with item sourcing decisions. - * - * @return self - */ - public function setPrepInstructionList($prep_instruction_list) - { - $this->container['prep_instruction_list'] = $prep_instruction_list; - - return $this; - } - /** - * Gets amazon_prep_fees_details_list - * - * @return \SellingPartnerApi\Model\FbaInboundV0\AmazonPrepFeesDetails[]|null - */ - public function getAmazonPrepFeesDetailsList() - { - return $this->container['amazon_prep_fees_details_list']; - } - - /** - * Sets amazon_prep_fees_details_list - * - * @param \SellingPartnerApi\Model\FbaInboundV0\AmazonPrepFeesDetails[]|null $amazon_prep_fees_details_list A list of preparation instructions and fees for Amazon to prep goods for shipment. - * - * @return self - */ - public function setAmazonPrepFeesDetailsList($amazon_prep_fees_details_list) - { - $this->container['amazon_prep_fees_details_list'] = $amazon_prep_fees_details_list; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/ShipmentStatus.php b/lib/Model/FbaInboundV0/ShipmentStatus.php deleted file mode 100644 index 2215decb4..000000000 --- a/lib/Model/FbaInboundV0/ShipmentStatus.php +++ /dev/null @@ -1,111 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/ShipmentType.php b/lib/Model/FbaInboundV0/ShipmentType.php deleted file mode 100644 index 1b7ad4709..000000000 --- a/lib/Model/FbaInboundV0/ShipmentType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportContent.php b/lib/Model/FbaInboundV0/TransportContent.php deleted file mode 100644 index 1b5c55259..000000000 --- a/lib/Model/FbaInboundV0/TransportContent.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportContent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportContent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transport_header' => '\SellingPartnerApi\Model\FbaInboundV0\TransportHeader', - 'transport_details' => '\SellingPartnerApi\Model\FbaInboundV0\TransportDetailOutput', - 'transport_result' => '\SellingPartnerApi\Model\FbaInboundV0\TransportResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transport_header' => null, - 'transport_details' => null, - 'transport_result' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transport_header' => 'TransportHeader', - 'transport_details' => 'TransportDetails', - 'transport_result' => 'TransportResult' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transport_header' => 'setTransportHeader', - 'transport_details' => 'setTransportDetails', - 'transport_result' => 'setTransportResult' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transport_header' => 'getTransportHeader', - 'transport_details' => 'getTransportDetails', - 'transport_result' => 'getTransportResult' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transport_header'] = $data['transport_header'] ?? null; - $this->container['transport_details'] = $data['transport_details'] ?? null; - $this->container['transport_result'] = $data['transport_result'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transport_header'] === null) { - $invalidProperties[] = "'transport_header' can't be null"; - } - if ($this->container['transport_details'] === null) { - $invalidProperties[] = "'transport_details' can't be null"; - } - if ($this->container['transport_result'] === null) { - $invalidProperties[] = "'transport_result' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets transport_header - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportHeader - */ - public function getTransportHeader() - { - return $this->container['transport_header']; - } - - /** - * Sets transport_header - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportHeader $transport_header transport_header - * - * @return self - */ - public function setTransportHeader($transport_header) - { - $this->container['transport_header'] = $transport_header; - - return $this; - } - /** - * Gets transport_details - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportDetailOutput - */ - public function getTransportDetails() - { - return $this->container['transport_details']; - } - - /** - * Sets transport_details - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportDetailOutput $transport_details transport_details - * - * @return self - */ - public function setTransportDetails($transport_details) - { - $this->container['transport_details'] = $transport_details; - - return $this; - } - /** - * Gets transport_result - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportResult - */ - public function getTransportResult() - { - return $this->container['transport_result']; - } - - /** - * Sets transport_result - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportResult $transport_result transport_result - * - * @return self - */ - public function setTransportResult($transport_result) - { - $this->container['transport_result'] = $transport_result; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportDetailInput.php b/lib/Model/FbaInboundV0/TransportDetailInput.php deleted file mode 100644 index 70e06cbaf..000000000 --- a/lib/Model/FbaInboundV0/TransportDetailInput.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportDetailInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportDetailInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'partnered_small_parcel_data' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataInput', - 'non_partnered_small_parcel_data' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataInput', - 'partnered_ltl_data' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataInput', - 'non_partnered_ltl_data' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataInput' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'partnered_small_parcel_data' => null, - 'non_partnered_small_parcel_data' => null, - 'partnered_ltl_data' => null, - 'non_partnered_ltl_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'partnered_small_parcel_data' => 'PartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'NonPartneredSmallParcelData', - 'partnered_ltl_data' => 'PartneredLtlData', - 'non_partnered_ltl_data' => 'NonPartneredLtlData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'partnered_small_parcel_data' => 'setPartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'setNonPartneredSmallParcelData', - 'partnered_ltl_data' => 'setPartneredLtlData', - 'non_partnered_ltl_data' => 'setNonPartneredLtlData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'partnered_small_parcel_data' => 'getPartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'getNonPartneredSmallParcelData', - 'partnered_ltl_data' => 'getPartneredLtlData', - 'non_partnered_ltl_data' => 'getNonPartneredLtlData' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['partnered_small_parcel_data'] = $data['partnered_small_parcel_data'] ?? null; - $this->container['non_partnered_small_parcel_data'] = $data['non_partnered_small_parcel_data'] ?? null; - $this->container['partnered_ltl_data'] = $data['partnered_ltl_data'] ?? null; - $this->container['non_partnered_ltl_data'] = $data['non_partnered_ltl_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets partnered_small_parcel_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataInput|null - */ - public function getPartneredSmallParcelData() - { - return $this->container['partnered_small_parcel_data']; - } - - /** - * Sets partnered_small_parcel_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataInput|null $partnered_small_parcel_data partnered_small_parcel_data - * - * @return self - */ - public function setPartneredSmallParcelData($partnered_small_parcel_data) - { - $this->container['partnered_small_parcel_data'] = $partnered_small_parcel_data; - - return $this; - } - /** - * Gets non_partnered_small_parcel_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataInput|null - */ - public function getNonPartneredSmallParcelData() - { - return $this->container['non_partnered_small_parcel_data']; - } - - /** - * Sets non_partnered_small_parcel_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataInput|null $non_partnered_small_parcel_data non_partnered_small_parcel_data - * - * @return self - */ - public function setNonPartneredSmallParcelData($non_partnered_small_parcel_data) - { - $this->container['non_partnered_small_parcel_data'] = $non_partnered_small_parcel_data; - - return $this; - } - /** - * Gets partnered_ltl_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataInput|null - */ - public function getPartneredLtlData() - { - return $this->container['partnered_ltl_data']; - } - - /** - * Sets partnered_ltl_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataInput|null $partnered_ltl_data partnered_ltl_data - * - * @return self - */ - public function setPartneredLtlData($partnered_ltl_data) - { - $this->container['partnered_ltl_data'] = $partnered_ltl_data; - - return $this; - } - /** - * Gets non_partnered_ltl_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataInput|null - */ - public function getNonPartneredLtlData() - { - return $this->container['non_partnered_ltl_data']; - } - - /** - * Sets non_partnered_ltl_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataInput|null $non_partnered_ltl_data non_partnered_ltl_data - * - * @return self - */ - public function setNonPartneredLtlData($non_partnered_ltl_data) - { - $this->container['non_partnered_ltl_data'] = $non_partnered_ltl_data; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportDetailOutput.php b/lib/Model/FbaInboundV0/TransportDetailOutput.php deleted file mode 100644 index 6eff0c589..000000000 --- a/lib/Model/FbaInboundV0/TransportDetailOutput.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportDetailOutput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportDetailOutput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'partnered_small_parcel_data' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataOutput', - 'non_partnered_small_parcel_data' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataOutput', - 'partnered_ltl_data' => '\SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataOutput', - 'non_partnered_ltl_data' => '\SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataOutput' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'partnered_small_parcel_data' => null, - 'non_partnered_small_parcel_data' => null, - 'partnered_ltl_data' => null, - 'non_partnered_ltl_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'partnered_small_parcel_data' => 'PartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'NonPartneredSmallParcelData', - 'partnered_ltl_data' => 'PartneredLtlData', - 'non_partnered_ltl_data' => 'NonPartneredLtlData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'partnered_small_parcel_data' => 'setPartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'setNonPartneredSmallParcelData', - 'partnered_ltl_data' => 'setPartneredLtlData', - 'non_partnered_ltl_data' => 'setNonPartneredLtlData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'partnered_small_parcel_data' => 'getPartneredSmallParcelData', - 'non_partnered_small_parcel_data' => 'getNonPartneredSmallParcelData', - 'partnered_ltl_data' => 'getPartneredLtlData', - 'non_partnered_ltl_data' => 'getNonPartneredLtlData' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['partnered_small_parcel_data'] = $data['partnered_small_parcel_data'] ?? null; - $this->container['non_partnered_small_parcel_data'] = $data['non_partnered_small_parcel_data'] ?? null; - $this->container['partnered_ltl_data'] = $data['partnered_ltl_data'] ?? null; - $this->container['non_partnered_ltl_data'] = $data['non_partnered_ltl_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets partnered_small_parcel_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataOutput|null - */ - public function getPartneredSmallParcelData() - { - return $this->container['partnered_small_parcel_data']; - } - - /** - * Sets partnered_small_parcel_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredSmallParcelDataOutput|null $partnered_small_parcel_data partnered_small_parcel_data - * - * @return self - */ - public function setPartneredSmallParcelData($partnered_small_parcel_data) - { - $this->container['partnered_small_parcel_data'] = $partnered_small_parcel_data; - - return $this; - } - /** - * Gets non_partnered_small_parcel_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataOutput|null - */ - public function getNonPartneredSmallParcelData() - { - return $this->container['non_partnered_small_parcel_data']; - } - - /** - * Sets non_partnered_small_parcel_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredSmallParcelDataOutput|null $non_partnered_small_parcel_data non_partnered_small_parcel_data - * - * @return self - */ - public function setNonPartneredSmallParcelData($non_partnered_small_parcel_data) - { - $this->container['non_partnered_small_parcel_data'] = $non_partnered_small_parcel_data; - - return $this; - } - /** - * Gets partnered_ltl_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataOutput|null - */ - public function getPartneredLtlData() - { - return $this->container['partnered_ltl_data']; - } - - /** - * Sets partnered_ltl_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\PartneredLtlDataOutput|null $partnered_ltl_data partnered_ltl_data - * - * @return self - */ - public function setPartneredLtlData($partnered_ltl_data) - { - $this->container['partnered_ltl_data'] = $partnered_ltl_data; - - return $this; - } - /** - * Gets non_partnered_ltl_data - * - * @return \SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataOutput|null - */ - public function getNonPartneredLtlData() - { - return $this->container['non_partnered_ltl_data']; - } - - /** - * Sets non_partnered_ltl_data - * - * @param \SellingPartnerApi\Model\FbaInboundV0\NonPartneredLtlDataOutput|null $non_partnered_ltl_data non_partnered_ltl_data - * - * @return self - */ - public function setNonPartneredLtlData($non_partnered_ltl_data) - { - $this->container['non_partnered_ltl_data'] = $non_partnered_ltl_data; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportHeader.php b/lib/Model/FbaInboundV0/TransportHeader.php deleted file mode 100644 index 8261445c3..000000000 --- a/lib/Model/FbaInboundV0/TransportHeader.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportHeader extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportHeader'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_id' => 'string', - 'shipment_id' => 'string', - 'is_partnered' => 'bool', - 'shipment_type' => '\SellingPartnerApi\Model\FbaInboundV0\ShipmentType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_id' => null, - 'shipment_id' => null, - 'is_partnered' => null, - 'shipment_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_id' => 'SellerId', - 'shipment_id' => 'ShipmentId', - 'is_partnered' => 'IsPartnered', - 'shipment_type' => 'ShipmentType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_id' => 'setSellerId', - 'shipment_id' => 'setShipmentId', - 'is_partnered' => 'setIsPartnered', - 'shipment_type' => 'setShipmentType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_id' => 'getSellerId', - 'shipment_id' => 'getShipmentId', - 'is_partnered' => 'getIsPartnered', - 'shipment_type' => 'getShipmentType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['is_partnered'] = $data['is_partnered'] ?? null; - $this->container['shipment_type'] = $data['shipment_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_id'] === null) { - $invalidProperties[] = "'seller_id' can't be null"; - } - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['is_partnered'] === null) { - $invalidProperties[] = "'is_partnered' can't be null"; - } - if ($this->container['shipment_type'] === null) { - $invalidProperties[] = "'shipment_type' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_id - * - * @return string - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string $seller_id The Amazon seller identifier. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets is_partnered - * - * @return bool - */ - public function getIsPartnered() - { - return $this->container['is_partnered']; - } - - /** - * Sets is_partnered - * - * @param bool $is_partnered Indicates whether a putTransportDetails request is for a partnered carrier. Possible values: * true - Request is for an Amazon-partnered carrier. * false - Request is for a non-Amazon-partnered carrier. - * - * @return self - */ - public function setIsPartnered($is_partnered) - { - $this->container['is_partnered'] = $is_partnered; - - return $this; - } - /** - * Gets shipment_type - * - * @return \SellingPartnerApi\Model\FbaInboundV0\ShipmentType - */ - public function getShipmentType() - { - return $this->container['shipment_type']; - } - - /** - * Sets shipment_type - * - * @param \SellingPartnerApi\Model\FbaInboundV0\ShipmentType $shipment_type shipment_type - * - * @return self - */ - public function setShipmentType($shipment_type) - { - $this->container['shipment_type'] = $shipment_type; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportResult.php b/lib/Model/FbaInboundV0/TransportResult.php deleted file mode 100644 index a34b3d021..000000000 --- a/lib/Model/FbaInboundV0/TransportResult.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transport_status' => '\SellingPartnerApi\Model\FbaInboundV0\TransportStatus', - 'error_code' => 'string', - 'error_description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transport_status' => null, - 'error_code' => null, - 'error_description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transport_status' => 'TransportStatus', - 'error_code' => 'ErrorCode', - 'error_description' => 'ErrorDescription' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transport_status' => 'setTransportStatus', - 'error_code' => 'setErrorCode', - 'error_description' => 'setErrorDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transport_status' => 'getTransportStatus', - 'error_code' => 'getErrorCode', - 'error_description' => 'getErrorDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transport_status'] = $data['transport_status'] ?? null; - $this->container['error_code'] = $data['error_code'] ?? null; - $this->container['error_description'] = $data['error_description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transport_status'] === null) { - $invalidProperties[] = "'transport_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets transport_status - * - * @return \SellingPartnerApi\Model\FbaInboundV0\TransportStatus - */ - public function getTransportStatus() - { - return $this->container['transport_status']; - } - - /** - * Sets transport_status - * - * @param \SellingPartnerApi\Model\FbaInboundV0\TransportStatus $transport_status transport_status - * - * @return self - */ - public function setTransportStatus($transport_status) - { - $this->container['transport_status'] = $transport_status; - - return $this; - } - /** - * Gets error_code - * - * @return string|null - */ - public function getErrorCode() - { - return $this->container['error_code']; - } - - /** - * Sets error_code - * - * @param string|null $error_code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setErrorCode($error_code) - { - $this->container['error_code'] = $error_code; - - return $this; - } - /** - * Gets error_description - * - * @return string|null - */ - public function getErrorDescription() - { - return $this->container['error_description']; - } - - /** - * Sets error_description - * - * @param string|null $error_description A message that describes the error condition. - * - * @return self - */ - public function setErrorDescription($error_description) - { - $this->container['error_description'] = $error_description; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/TransportStatus.php b/lib/Model/FbaInboundV0/TransportStatus.php deleted file mode 100644 index ea2b93c5f..000000000 --- a/lib/Model/FbaInboundV0/TransportStatus.php +++ /dev/null @@ -1,105 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/UnitOfMeasurement.php b/lib/Model/FbaInboundV0/UnitOfMeasurement.php deleted file mode 100644 index e8f36a403..000000000 --- a/lib/Model/FbaInboundV0/UnitOfMeasurement.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/UnitOfWeight.php b/lib/Model/FbaInboundV0/UnitOfWeight.php deleted file mode 100644 index 545162d90..000000000 --- a/lib/Model/FbaInboundV0/UnitOfWeight.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaInboundV0/VoidTransportResponse.php b/lib/Model/FbaInboundV0/VoidTransportResponse.php deleted file mode 100644 index dcc2a3384..000000000 --- a/lib/Model/FbaInboundV0/VoidTransportResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class VoidTransportResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'VoidTransportResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult', - 'errors' => '\SellingPartnerApi\Model\FbaInboundV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInboundV0\CommonTransportResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInboundV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInboundV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInboundV0/Weight.php b/lib/Model/FbaInboundV0/Weight.php deleted file mode 100644 index 169c2fc1c..000000000 --- a/lib/Model/FbaInboundV0/Weight.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'double', - 'unit' => '\SellingPartnerApi\Model\FbaInboundV0\UnitOfWeight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => 'double', - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'Value', - 'unit' => 'Unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets value - * - * @return double - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param double $value value - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\FbaInboundV0\UnitOfWeight - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\FbaInboundV0\UnitOfWeight $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/Error.php b/lib/Model/FbaInventoryV1/Error.php deleted file mode 100644 index 74e0dcb26..000000000 --- a/lib/Model/FbaInventoryV1/Error.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string|null - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string|null $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/GetInventorySummariesResponse.php b/lib/Model/FbaInventoryV1/GetInventorySummariesResponse.php deleted file mode 100644 index 8c5d6101c..000000000 --- a/lib/Model/FbaInventoryV1/GetInventorySummariesResponse.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetInventorySummariesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetInventorySummariesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResult', - 'pagination' => '\SellingPartnerApi\Model\FbaInventoryV1\Pagination', - 'errors' => '\SellingPartnerApi\Model\FbaInventoryV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'pagination' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'pagination' => 'pagination', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'pagination' => 'setPagination', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'pagination' => 'getPagination', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\GetInventorySummariesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/GetInventorySummariesResult.php b/lib/Model/FbaInventoryV1/GetInventorySummariesResult.php deleted file mode 100644 index c15cb9942..000000000 --- a/lib/Model/FbaInventoryV1/GetInventorySummariesResult.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetInventorySummariesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetInventorySummariesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'granularity' => '\SellingPartnerApi\Model\FbaInventoryV1\Granularity', - 'inventory_summaries' => '\SellingPartnerApi\Model\FbaInventoryV1\InventorySummary[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'granularity' => null, - 'inventory_summaries' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'granularity' => 'granularity', - 'inventory_summaries' => 'inventorySummaries' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'granularity' => 'setGranularity', - 'inventory_summaries' => 'setInventorySummaries' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'granularity' => 'getGranularity', - 'inventory_summaries' => 'getInventorySummaries' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['granularity'] = $data['granularity'] ?? null; - $this->container['inventory_summaries'] = $data['inventory_summaries'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['granularity'] === null) { - $invalidProperties[] = "'granularity' can't be null"; - } - if ($this->container['inventory_summaries'] === null) { - $invalidProperties[] = "'inventory_summaries' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets granularity - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\Granularity - */ - public function getGranularity() - { - return $this->container['granularity']; - } - - /** - * Sets granularity - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\Granularity $granularity granularity - * - * @return self - */ - public function setGranularity($granularity) - { - $this->container['granularity'] = $granularity; - - return $this; - } - /** - * Gets inventory_summaries - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\InventorySummary[] - */ - public function getInventorySummaries() - { - return $this->container['inventory_summaries']; - } - - /** - * Sets inventory_summaries - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\InventorySummary[] $inventory_summaries A list of inventory summaries. - * - * @return self - */ - public function setInventorySummaries($inventory_summaries) - { - $this->container['inventory_summaries'] = $inventory_summaries; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/Granularity.php b/lib/Model/FbaInventoryV1/Granularity.php deleted file mode 100644 index cfb098936..000000000 --- a/lib/Model/FbaInventoryV1/Granularity.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Granularity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Granularity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'granularity_type' => 'string', - 'granularity_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'granularity_type' => null, - 'granularity_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'granularity_type' => 'granularityType', - 'granularity_id' => 'granularityId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'granularity_type' => 'setGranularityType', - 'granularity_id' => 'setGranularityId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'granularity_type' => 'getGranularityType', - 'granularity_id' => 'getGranularityId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['granularity_type'] = $data['granularity_type'] ?? null; - $this->container['granularity_id'] = $data['granularity_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets granularity_type - * - * @return string|null - */ - public function getGranularityType() - { - return $this->container['granularity_type']; - } - - /** - * Sets granularity_type - * - * @param string|null $granularity_type The granularity type for the inventory aggregation level. - * - * @return self - */ - public function setGranularityType($granularity_type) - { - $this->container['granularity_type'] = $granularity_type; - - return $this; - } - /** - * Gets granularity_id - * - * @return string|null - */ - public function getGranularityId() - { - return $this->container['granularity_id']; - } - - /** - * Sets granularity_id - * - * @param string|null $granularity_id The granularity ID for the specified granularity type. When granularityType is Marketplace, specify the marketplaceId. - * - * @return self - */ - public function setGranularityId($granularity_id) - { - $this->container['granularity_id'] = $granularity_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/InventoryDetails.php b/lib/Model/FbaInventoryV1/InventoryDetails.php deleted file mode 100644 index 66701b011..000000000 --- a/lib/Model/FbaInventoryV1/InventoryDetails.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InventoryDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InventoryDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillable_quantity' => 'int', - 'inbound_working_quantity' => 'int', - 'inbound_shipped_quantity' => 'int', - 'inbound_receiving_quantity' => 'int', - 'reserved_quantity' => '\SellingPartnerApi\Model\FbaInventoryV1\ReservedQuantity', - 'researching_quantity' => '\SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantity', - 'unfulfillable_quantity' => '\SellingPartnerApi\Model\FbaInventoryV1\UnfulfillableQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillable_quantity' => null, - 'inbound_working_quantity' => null, - 'inbound_shipped_quantity' => null, - 'inbound_receiving_quantity' => null, - 'reserved_quantity' => null, - 'researching_quantity' => null, - 'unfulfillable_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillable_quantity' => 'fulfillableQuantity', - 'inbound_working_quantity' => 'inboundWorkingQuantity', - 'inbound_shipped_quantity' => 'inboundShippedQuantity', - 'inbound_receiving_quantity' => 'inboundReceivingQuantity', - 'reserved_quantity' => 'reservedQuantity', - 'researching_quantity' => 'researchingQuantity', - 'unfulfillable_quantity' => 'unfulfillableQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillable_quantity' => 'setFulfillableQuantity', - 'inbound_working_quantity' => 'setInboundWorkingQuantity', - 'inbound_shipped_quantity' => 'setInboundShippedQuantity', - 'inbound_receiving_quantity' => 'setInboundReceivingQuantity', - 'reserved_quantity' => 'setReservedQuantity', - 'researching_quantity' => 'setResearchingQuantity', - 'unfulfillable_quantity' => 'setUnfulfillableQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillable_quantity' => 'getFulfillableQuantity', - 'inbound_working_quantity' => 'getInboundWorkingQuantity', - 'inbound_shipped_quantity' => 'getInboundShippedQuantity', - 'inbound_receiving_quantity' => 'getInboundReceivingQuantity', - 'reserved_quantity' => 'getReservedQuantity', - 'researching_quantity' => 'getResearchingQuantity', - 'unfulfillable_quantity' => 'getUnfulfillableQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillable_quantity'] = $data['fulfillable_quantity'] ?? null; - $this->container['inbound_working_quantity'] = $data['inbound_working_quantity'] ?? null; - $this->container['inbound_shipped_quantity'] = $data['inbound_shipped_quantity'] ?? null; - $this->container['inbound_receiving_quantity'] = $data['inbound_receiving_quantity'] ?? null; - $this->container['reserved_quantity'] = $data['reserved_quantity'] ?? null; - $this->container['researching_quantity'] = $data['researching_quantity'] ?? null; - $this->container['unfulfillable_quantity'] = $data['unfulfillable_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fulfillable_quantity - * - * @return int|null - */ - public function getFulfillableQuantity() - { - return $this->container['fulfillable_quantity']; - } - - /** - * Sets fulfillable_quantity - * - * @param int|null $fulfillable_quantity The item quantity that can be picked, packed, and shipped. - * - * @return self - */ - public function setFulfillableQuantity($fulfillable_quantity) - { - $this->container['fulfillable_quantity'] = $fulfillable_quantity; - - return $this; - } - /** - * Gets inbound_working_quantity - * - * @return int|null - */ - public function getInboundWorkingQuantity() - { - return $this->container['inbound_working_quantity']; - } - - /** - * Sets inbound_working_quantity - * - * @param int|null $inbound_working_quantity The number of units in an inbound shipment for which you have notified Amazon. - * - * @return self - */ - public function setInboundWorkingQuantity($inbound_working_quantity) - { - $this->container['inbound_working_quantity'] = $inbound_working_quantity; - - return $this; - } - /** - * Gets inbound_shipped_quantity - * - * @return int|null - */ - public function getInboundShippedQuantity() - { - return $this->container['inbound_shipped_quantity']; - } - - /** - * Sets inbound_shipped_quantity - * - * @param int|null $inbound_shipped_quantity The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number. - * - * @return self - */ - public function setInboundShippedQuantity($inbound_shipped_quantity) - { - $this->container['inbound_shipped_quantity'] = $inbound_shipped_quantity; - - return $this; - } - /** - * Gets inbound_receiving_quantity - * - * @return int|null - */ - public function getInboundReceivingQuantity() - { - return $this->container['inbound_receiving_quantity']; - } - - /** - * Sets inbound_receiving_quantity - * - * @param int|null $inbound_receiving_quantity The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed. - * - * @return self - */ - public function setInboundReceivingQuantity($inbound_receiving_quantity) - { - $this->container['inbound_receiving_quantity'] = $inbound_receiving_quantity; - - return $this; - } - /** - * Gets reserved_quantity - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\ReservedQuantity|null - */ - public function getReservedQuantity() - { - return $this->container['reserved_quantity']; - } - - /** - * Sets reserved_quantity - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\ReservedQuantity|null $reserved_quantity reserved_quantity - * - * @return self - */ - public function setReservedQuantity($reserved_quantity) - { - $this->container['reserved_quantity'] = $reserved_quantity; - - return $this; - } - /** - * Gets researching_quantity - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantity|null - */ - public function getResearchingQuantity() - { - return $this->container['researching_quantity']; - } - - /** - * Sets researching_quantity - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantity|null $researching_quantity researching_quantity - * - * @return self - */ - public function setResearchingQuantity($researching_quantity) - { - $this->container['researching_quantity'] = $researching_quantity; - - return $this; - } - /** - * Gets unfulfillable_quantity - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\UnfulfillableQuantity|null - */ - public function getUnfulfillableQuantity() - { - return $this->container['unfulfillable_quantity']; - } - - /** - * Sets unfulfillable_quantity - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\UnfulfillableQuantity|null $unfulfillable_quantity unfulfillable_quantity - * - * @return self - */ - public function setUnfulfillableQuantity($unfulfillable_quantity) - { - $this->container['unfulfillable_quantity'] = $unfulfillable_quantity; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/InventorySummary.php b/lib/Model/FbaInventoryV1/InventorySummary.php deleted file mode 100644 index 049d54265..000000000 --- a/lib/Model/FbaInventoryV1/InventorySummary.php +++ /dev/null @@ -1,365 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InventorySummary extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InventorySummary'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'fn_sku' => 'string', - 'seller_sku' => 'string', - 'condition' => 'string', - 'inventory_details' => '\SellingPartnerApi\Model\FbaInventoryV1\InventoryDetails', - 'last_updated_time' => 'string', - 'product_name' => 'string', - 'total_quantity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'fn_sku' => null, - 'seller_sku' => null, - 'condition' => null, - 'inventory_details' => null, - 'last_updated_time' => null, - 'product_name' => null, - 'total_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'fn_sku' => 'fnSku', - 'seller_sku' => 'sellerSku', - 'condition' => 'condition', - 'inventory_details' => 'inventoryDetails', - 'last_updated_time' => 'lastUpdatedTime', - 'product_name' => 'productName', - 'total_quantity' => 'totalQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'fn_sku' => 'setFnSku', - 'seller_sku' => 'setSellerSku', - 'condition' => 'setCondition', - 'inventory_details' => 'setInventoryDetails', - 'last_updated_time' => 'setLastUpdatedTime', - 'product_name' => 'setProductName', - 'total_quantity' => 'setTotalQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'fn_sku' => 'getFnSku', - 'seller_sku' => 'getSellerSku', - 'condition' => 'getCondition', - 'inventory_details' => 'getInventoryDetails', - 'last_updated_time' => 'getLastUpdatedTime', - 'product_name' => 'getProductName', - 'total_quantity' => 'getTotalQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['fn_sku'] = $data['fn_sku'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['condition'] = $data['condition'] ?? null; - $this->container['inventory_details'] = $data['inventory_details'] ?? null; - $this->container['last_updated_time'] = $data['last_updated_time'] ?? null; - $this->container['product_name'] = $data['product_name'] ?? null; - $this->container['total_quantity'] = $data['total_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets fn_sku - * - * @return string|null - */ - public function getFnSku() - { - return $this->container['fn_sku']; - } - - /** - * Sets fn_sku - * - * @param string|null $fn_sku Amazon's fulfillment network SKU identifier. - * - * @return self - */ - public function setFnSku($fn_sku) - { - $this->container['fn_sku'] = $fn_sku; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets condition - * - * @return string|null - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string|null $condition The condition of the item as described by the seller (for example, New Item). - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets inventory_details - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\InventoryDetails|null - */ - public function getInventoryDetails() - { - return $this->container['inventory_details']; - } - - /** - * Sets inventory_details - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\InventoryDetails|null $inventory_details inventory_details - * - * @return self - */ - public function setInventoryDetails($inventory_details) - { - $this->container['inventory_details'] = $inventory_details; - - return $this; - } - /** - * Gets last_updated_time - * - * @return string|null - */ - public function getLastUpdatedTime() - { - return $this->container['last_updated_time']; - } - - /** - * Sets last_updated_time - * - * @param string|null $last_updated_time The date and time that any quantity was last updated in ISO8601 format. - * - * @return self - */ - public function setLastUpdatedTime($last_updated_time) - { - $this->container['last_updated_time'] = $last_updated_time; - - return $this; - } - /** - * Gets product_name - * - * @return string|null - */ - public function getProductName() - { - return $this->container['product_name']; - } - - /** - * Sets product_name - * - * @param string|null $product_name The localized language product title of the item within the specific marketplace. - * - * @return self - */ - public function setProductName($product_name) - { - $this->container['product_name'] = $product_name; - - return $this; - } - /** - * Gets total_quantity - * - * @return int|null - */ - public function getTotalQuantity() - { - return $this->container['total_quantity']; - } - - /** - * Sets total_quantity - * - * @param int|null $total_quantity The total number of units in an inbound shipment or in Amazon fulfillment centers. - * - * @return self - */ - public function setTotalQuantity($total_quantity) - { - $this->container['total_quantity'] = $total_quantity; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/Pagination.php b/lib/Model/FbaInventoryV1/Pagination.php deleted file mode 100644 index f5fde426b..000000000 --- a/lib/Model/FbaInventoryV1/Pagination.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to retrieve the next page of the result. If nextToken is returned, pass the value of nextToken to the next request. If nextToken is not returned, there are no more items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/ResearchingQuantity.php b/lib/Model/FbaInventoryV1/ResearchingQuantity.php deleted file mode 100644 index c24307309..000000000 --- a/lib/Model/FbaInventoryV1/ResearchingQuantity.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ResearchingQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ResearchingQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_researching_quantity' => 'int', - 'researching_quantity_breakdown' => '\SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantityEntry[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_researching_quantity' => null, - 'researching_quantity_breakdown' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_researching_quantity' => 'totalResearchingQuantity', - 'researching_quantity_breakdown' => 'researchingQuantityBreakdown' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_researching_quantity' => 'setTotalResearchingQuantity', - 'researching_quantity_breakdown' => 'setResearchingQuantityBreakdown' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_researching_quantity' => 'getTotalResearchingQuantity', - 'researching_quantity_breakdown' => 'getResearchingQuantityBreakdown' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_researching_quantity'] = $data['total_researching_quantity'] ?? null; - $this->container['researching_quantity_breakdown'] = $data['researching_quantity_breakdown'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_researching_quantity - * - * @return int|null - */ - public function getTotalResearchingQuantity() - { - return $this->container['total_researching_quantity']; - } - - /** - * Sets total_researching_quantity - * - * @param int|null $total_researching_quantity The total number of units currently being researched in Amazon's fulfillment network. - * - * @return self - */ - public function setTotalResearchingQuantity($total_researching_quantity) - { - $this->container['total_researching_quantity'] = $total_researching_quantity; - - return $this; - } - /** - * Gets researching_quantity_breakdown - * - * @return \SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantityEntry[]|null - */ - public function getResearchingQuantityBreakdown() - { - return $this->container['researching_quantity_breakdown']; - } - - /** - * Sets researching_quantity_breakdown - * - * @param \SellingPartnerApi\Model\FbaInventoryV1\ResearchingQuantityEntry[]|null $researching_quantity_breakdown A list of quantity details for items currently being researched. - * - * @return self - */ - public function setResearchingQuantityBreakdown($researching_quantity_breakdown) - { - $this->container['researching_quantity_breakdown'] = $researching_quantity_breakdown; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/ResearchingQuantityEntry.php b/lib/Model/FbaInventoryV1/ResearchingQuantityEntry.php deleted file mode 100644 index 9407aa7f7..000000000 --- a/lib/Model/FbaInventoryV1/ResearchingQuantityEntry.php +++ /dev/null @@ -1,243 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ResearchingQuantityEntry extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ResearchingQuantityEntry'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'quantity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'quantity' => 'quantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'quantity' => 'setQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'quantity' => 'getQuantity' - ]; - - - - const NAME_RESEARCHING_QUANTITY_IN_SHORT_TERM = 'researchingQuantityInShortTerm'; - const NAME_RESEARCHING_QUANTITY_IN_MID_TERM = 'researchingQuantityInMidTerm'; - const NAME_RESEARCHING_QUANTITY_IN_LONG_TERM = 'researchingQuantityInLongTerm'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getNameAllowableValues() - { - $baseVals = [ - self::NAME_RESEARCHING_QUANTITY_IN_SHORT_TERM, - self::NAME_RESEARCHING_QUANTITY_IN_MID_TERM, - self::NAME_RESEARCHING_QUANTITY_IN_LONG_TERM, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - $allowedValues = $this->getNameAllowableValues(); - if ( - !is_null($this->container['name']) && - !in_array(strtoupper($this->container['name']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'name', must be one of '%s'", - $this->container['name'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The duration of the research. - * - * @return self - */ - public function setName($name) - { - $allowedValues = $this->getNameAllowableValues(); - if (!in_array(strtoupper($name), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'name', must be one of '%s'", - $name, - implode("', '", $allowedValues) - ) - ); - } - $this->container['name'] = $name; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The number of units. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/ReservedQuantity.php b/lib/Model/FbaInventoryV1/ReservedQuantity.php deleted file mode 100644 index a829c412a..000000000 --- a/lib/Model/FbaInventoryV1/ReservedQuantity.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReservedQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReservedQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_reserved_quantity' => 'int', - 'pending_customer_order_quantity' => 'int', - 'pending_transshipment_quantity' => 'int', - 'fc_processing_quantity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_reserved_quantity' => null, - 'pending_customer_order_quantity' => null, - 'pending_transshipment_quantity' => null, - 'fc_processing_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_reserved_quantity' => 'totalReservedQuantity', - 'pending_customer_order_quantity' => 'pendingCustomerOrderQuantity', - 'pending_transshipment_quantity' => 'pendingTransshipmentQuantity', - 'fc_processing_quantity' => 'fcProcessingQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_reserved_quantity' => 'setTotalReservedQuantity', - 'pending_customer_order_quantity' => 'setPendingCustomerOrderQuantity', - 'pending_transshipment_quantity' => 'setPendingTransshipmentQuantity', - 'fc_processing_quantity' => 'setFcProcessingQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_reserved_quantity' => 'getTotalReservedQuantity', - 'pending_customer_order_quantity' => 'getPendingCustomerOrderQuantity', - 'pending_transshipment_quantity' => 'getPendingTransshipmentQuantity', - 'fc_processing_quantity' => 'getFcProcessingQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_reserved_quantity'] = $data['total_reserved_quantity'] ?? null; - $this->container['pending_customer_order_quantity'] = $data['pending_customer_order_quantity'] ?? null; - $this->container['pending_transshipment_quantity'] = $data['pending_transshipment_quantity'] ?? null; - $this->container['fc_processing_quantity'] = $data['fc_processing_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_reserved_quantity - * - * @return int|null - */ - public function getTotalReservedQuantity() - { - return $this->container['total_reserved_quantity']; - } - - /** - * Sets total_reserved_quantity - * - * @param int|null $total_reserved_quantity The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes. - * - * @return self - */ - public function setTotalReservedQuantity($total_reserved_quantity) - { - $this->container['total_reserved_quantity'] = $total_reserved_quantity; - - return $this; - } - /** - * Gets pending_customer_order_quantity - * - * @return int|null - */ - public function getPendingCustomerOrderQuantity() - { - return $this->container['pending_customer_order_quantity']; - } - - /** - * Sets pending_customer_order_quantity - * - * @param int|null $pending_customer_order_quantity The number of units reserved for customer orders. - * - * @return self - */ - public function setPendingCustomerOrderQuantity($pending_customer_order_quantity) - { - $this->container['pending_customer_order_quantity'] = $pending_customer_order_quantity; - - return $this; - } - /** - * Gets pending_transshipment_quantity - * - * @return int|null - */ - public function getPendingTransshipmentQuantity() - { - return $this->container['pending_transshipment_quantity']; - } - - /** - * Sets pending_transshipment_quantity - * - * @param int|null $pending_transshipment_quantity The number of units being transferred from one fulfillment center to another. - * - * @return self - */ - public function setPendingTransshipmentQuantity($pending_transshipment_quantity) - { - $this->container['pending_transshipment_quantity'] = $pending_transshipment_quantity; - - return $this; - } - /** - * Gets fc_processing_quantity - * - * @return int|null - */ - public function getFcProcessingQuantity() - { - return $this->container['fc_processing_quantity']; - } - - /** - * Sets fc_processing_quantity - * - * @param int|null $fc_processing_quantity The number of units that have been sidelined at the fulfillment center for additional processing. - * - * @return self - */ - public function setFcProcessingQuantity($fc_processing_quantity) - { - $this->container['fc_processing_quantity'] = $fc_processing_quantity; - - return $this; - } -} - - diff --git a/lib/Model/FbaInventoryV1/UnfulfillableQuantity.php b/lib/Model/FbaInventoryV1/UnfulfillableQuantity.php deleted file mode 100644 index ece90c477..000000000 --- a/lib/Model/FbaInventoryV1/UnfulfillableQuantity.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UnfulfillableQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UnfulfillableQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_unfulfillable_quantity' => 'int', - 'customer_damaged_quantity' => 'int', - 'warehouse_damaged_quantity' => 'int', - 'distributor_damaged_quantity' => 'int', - 'carrier_damaged_quantity' => 'int', - 'defective_quantity' => 'int', - 'expired_quantity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_unfulfillable_quantity' => null, - 'customer_damaged_quantity' => null, - 'warehouse_damaged_quantity' => null, - 'distributor_damaged_quantity' => null, - 'carrier_damaged_quantity' => null, - 'defective_quantity' => null, - 'expired_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_unfulfillable_quantity' => 'totalUnfulfillableQuantity', - 'customer_damaged_quantity' => 'customerDamagedQuantity', - 'warehouse_damaged_quantity' => 'warehouseDamagedQuantity', - 'distributor_damaged_quantity' => 'distributorDamagedQuantity', - 'carrier_damaged_quantity' => 'carrierDamagedQuantity', - 'defective_quantity' => 'defectiveQuantity', - 'expired_quantity' => 'expiredQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_unfulfillable_quantity' => 'setTotalUnfulfillableQuantity', - 'customer_damaged_quantity' => 'setCustomerDamagedQuantity', - 'warehouse_damaged_quantity' => 'setWarehouseDamagedQuantity', - 'distributor_damaged_quantity' => 'setDistributorDamagedQuantity', - 'carrier_damaged_quantity' => 'setCarrierDamagedQuantity', - 'defective_quantity' => 'setDefectiveQuantity', - 'expired_quantity' => 'setExpiredQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_unfulfillable_quantity' => 'getTotalUnfulfillableQuantity', - 'customer_damaged_quantity' => 'getCustomerDamagedQuantity', - 'warehouse_damaged_quantity' => 'getWarehouseDamagedQuantity', - 'distributor_damaged_quantity' => 'getDistributorDamagedQuantity', - 'carrier_damaged_quantity' => 'getCarrierDamagedQuantity', - 'defective_quantity' => 'getDefectiveQuantity', - 'expired_quantity' => 'getExpiredQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_unfulfillable_quantity'] = $data['total_unfulfillable_quantity'] ?? null; - $this->container['customer_damaged_quantity'] = $data['customer_damaged_quantity'] ?? null; - $this->container['warehouse_damaged_quantity'] = $data['warehouse_damaged_quantity'] ?? null; - $this->container['distributor_damaged_quantity'] = $data['distributor_damaged_quantity'] ?? null; - $this->container['carrier_damaged_quantity'] = $data['carrier_damaged_quantity'] ?? null; - $this->container['defective_quantity'] = $data['defective_quantity'] ?? null; - $this->container['expired_quantity'] = $data['expired_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_unfulfillable_quantity - * - * @return int|null - */ - public function getTotalUnfulfillableQuantity() - { - return $this->container['total_unfulfillable_quantity']; - } - - /** - * Sets total_unfulfillable_quantity - * - * @param int|null $total_unfulfillable_quantity The total number of units in Amazon's fulfillment network in unsellable condition. - * - * @return self - */ - public function setTotalUnfulfillableQuantity($total_unfulfillable_quantity) - { - $this->container['total_unfulfillable_quantity'] = $total_unfulfillable_quantity; - - return $this; - } - /** - * Gets customer_damaged_quantity - * - * @return int|null - */ - public function getCustomerDamagedQuantity() - { - return $this->container['customer_damaged_quantity']; - } - - /** - * Sets customer_damaged_quantity - * - * @param int|null $customer_damaged_quantity The number of units in customer damaged disposition. - * - * @return self - */ - public function setCustomerDamagedQuantity($customer_damaged_quantity) - { - $this->container['customer_damaged_quantity'] = $customer_damaged_quantity; - - return $this; - } - /** - * Gets warehouse_damaged_quantity - * - * @return int|null - */ - public function getWarehouseDamagedQuantity() - { - return $this->container['warehouse_damaged_quantity']; - } - - /** - * Sets warehouse_damaged_quantity - * - * @param int|null $warehouse_damaged_quantity The number of units in warehouse damaged disposition. - * - * @return self - */ - public function setWarehouseDamagedQuantity($warehouse_damaged_quantity) - { - $this->container['warehouse_damaged_quantity'] = $warehouse_damaged_quantity; - - return $this; - } - /** - * Gets distributor_damaged_quantity - * - * @return int|null - */ - public function getDistributorDamagedQuantity() - { - return $this->container['distributor_damaged_quantity']; - } - - /** - * Sets distributor_damaged_quantity - * - * @param int|null $distributor_damaged_quantity The number of units in distributor damaged disposition. - * - * @return self - */ - public function setDistributorDamagedQuantity($distributor_damaged_quantity) - { - $this->container['distributor_damaged_quantity'] = $distributor_damaged_quantity; - - return $this; - } - /** - * Gets carrier_damaged_quantity - * - * @return int|null - */ - public function getCarrierDamagedQuantity() - { - return $this->container['carrier_damaged_quantity']; - } - - /** - * Sets carrier_damaged_quantity - * - * @param int|null $carrier_damaged_quantity The number of units in carrier damaged disposition. - * - * @return self - */ - public function setCarrierDamagedQuantity($carrier_damaged_quantity) - { - $this->container['carrier_damaged_quantity'] = $carrier_damaged_quantity; - - return $this; - } - /** - * Gets defective_quantity - * - * @return int|null - */ - public function getDefectiveQuantity() - { - return $this->container['defective_quantity']; - } - - /** - * Sets defective_quantity - * - * @param int|null $defective_quantity The number of units in defective disposition. - * - * @return self - */ - public function setDefectiveQuantity($defective_quantity) - { - $this->container['defective_quantity'] = $defective_quantity; - - return $this; - } - /** - * Gets expired_quantity - * - * @return int|null - */ - public function getExpiredQuantity() - { - return $this->container['expired_quantity']; - } - - /** - * Sets expired_quantity - * - * @param int|null $expired_quantity The number of units in expired disposition. - * - * @return self - */ - public function setExpiredQuantity($expired_quantity) - { - $this->container['expired_quantity'] = $expired_quantity; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/AdditionalLocationInfo.php b/lib/Model/FbaOutboundV20200701/AdditionalLocationInfo.php deleted file mode 100644 index e0f112c45..000000000 --- a/lib/Model/FbaOutboundV20200701/AdditionalLocationInfo.php +++ /dev/null @@ -1,141 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Address.php b/lib/Model/FbaOutboundV20200701/Address.php deleted file mode 100644 index 96a517fce..000000000 --- a/lib/Model/FbaOutboundV20200701/Address.php +++ /dev/null @@ -1,438 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'district_or_county' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'district_or_county' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'district_or_county' => 'districtOrCounty', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'district_or_county' => 'setDistrictOrCounty', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'district_or_county' => 'getDistrictOrCounty', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['district_or_county'] = $data['district_or_county'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at the address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 The first line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets district_or_county - * - * @return string|null - */ - public function getDistrictOrCounty() - { - return $this->container['district_or_county']; - } - - /** - * Sets district_or_county - * - * @param string|null $district_or_county The district or county where the person, business, or institution is located. - * - * @return self - */ - public function setDistrictOrCounty($district_or_county) - { - $this->container['district_or_county'] = $district_or_county; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state or region where the person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The postal code of the address. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business, or institution located at the address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CODSettings.php b/lib/Model/FbaOutboundV20200701/CODSettings.php deleted file mode 100644 index c020ed5da..000000000 --- a/lib/Model/FbaOutboundV20200701/CODSettings.php +++ /dev/null @@ -1,281 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CODSettings extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CODSettings'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_cod_required' => 'bool', - 'cod_charge' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'cod_charge_tax' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'shipping_charge' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'shipping_charge_tax' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_cod_required' => null, - 'cod_charge' => null, - 'cod_charge_tax' => null, - 'shipping_charge' => null, - 'shipping_charge_tax' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_cod_required' => 'isCodRequired', - 'cod_charge' => 'codCharge', - 'cod_charge_tax' => 'codChargeTax', - 'shipping_charge' => 'shippingCharge', - 'shipping_charge_tax' => 'shippingChargeTax' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_cod_required' => 'setIsCodRequired', - 'cod_charge' => 'setCodCharge', - 'cod_charge_tax' => 'setCodChargeTax', - 'shipping_charge' => 'setShippingCharge', - 'shipping_charge_tax' => 'setShippingChargeTax' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_cod_required' => 'getIsCodRequired', - 'cod_charge' => 'getCodCharge', - 'cod_charge_tax' => 'getCodChargeTax', - 'shipping_charge' => 'getShippingCharge', - 'shipping_charge_tax' => 'getShippingChargeTax' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_cod_required'] = $data['is_cod_required'] ?? null; - $this->container['cod_charge'] = $data['cod_charge'] ?? null; - $this->container['cod_charge_tax'] = $data['cod_charge_tax'] ?? null; - $this->container['shipping_charge'] = $data['shipping_charge'] ?? null; - $this->container['shipping_charge_tax'] = $data['shipping_charge_tax'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_cod_required'] === null) { - $invalidProperties[] = "'is_cod_required' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_cod_required - * - * @return bool - */ - public function getIsCodRequired() - { - return $this->container['is_cod_required']; - } - - /** - * Sets is_cod_required - * - * @param bool $is_cod_required When true, this fulfillment order requires a COD (Cash On Delivery) payment. - * - * @return self - */ - public function setIsCodRequired($is_cod_required) - { - $this->container['is_cod_required'] = $is_cod_required; - - return $this; - } - /** - * Gets cod_charge - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getCodCharge() - { - return $this->container['cod_charge']; - } - - /** - * Sets cod_charge - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $cod_charge cod_charge - * - * @return self - */ - public function setCodCharge($cod_charge) - { - $this->container['cod_charge'] = $cod_charge; - - return $this; - } - /** - * Gets cod_charge_tax - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getCodChargeTax() - { - return $this->container['cod_charge_tax']; - } - - /** - * Sets cod_charge_tax - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $cod_charge_tax cod_charge_tax - * - * @return self - */ - public function setCodChargeTax($cod_charge_tax) - { - $this->container['cod_charge_tax'] = $cod_charge_tax; - - return $this; - } - /** - * Gets shipping_charge - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getShippingCharge() - { - return $this->container['shipping_charge']; - } - - /** - * Sets shipping_charge - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $shipping_charge shipping_charge - * - * @return self - */ - public function setShippingCharge($shipping_charge) - { - $this->container['shipping_charge'] = $shipping_charge; - - return $this; - } - /** - * Gets shipping_charge_tax - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getShippingChargeTax() - { - return $this->container['shipping_charge_tax']; - } - - /** - * Sets shipping_charge_tax - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $shipping_charge_tax shipping_charge_tax - * - * @return self - */ - public function setShippingChargeTax($shipping_charge_tax) - { - $this->container['shipping_charge_tax'] = $shipping_charge_tax; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.php b/lib/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.php deleted file mode 100644 index d905cfa61..000000000 --- a/lib/Model/FbaOutboundV20200701/CancelFulfillmentOrderResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelFulfillmentOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelFulfillmentOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.php deleted file mode 100644 index 8fbbd0705..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderItem.php +++ /dev/null @@ -1,435 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentOrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentOrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'quantity' => 'int', - 'gift_message' => 'string', - 'displayable_comment' => 'string', - 'fulfillment_network_sku' => 'string', - 'per_unit_declared_value' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_price' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_tax' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'seller_fulfillment_order_item_id' => null, - 'quantity' => 'int32', - 'gift_message' => null, - 'displayable_comment' => null, - 'fulfillment_network_sku' => null, - 'per_unit_declared_value' => null, - 'per_unit_price' => null, - 'per_unit_tax' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'quantity' => 'quantity', - 'gift_message' => 'giftMessage', - 'displayable_comment' => 'displayableComment', - 'fulfillment_network_sku' => 'fulfillmentNetworkSku', - 'per_unit_declared_value' => 'perUnitDeclaredValue', - 'per_unit_price' => 'perUnitPrice', - 'per_unit_tax' => 'perUnitTax' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'quantity' => 'setQuantity', - 'gift_message' => 'setGiftMessage', - 'displayable_comment' => 'setDisplayableComment', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'per_unit_declared_value' => 'setPerUnitDeclaredValue', - 'per_unit_price' => 'setPerUnitPrice', - 'per_unit_tax' => 'setPerUnitTax' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'quantity' => 'getQuantity', - 'gift_message' => 'getGiftMessage', - 'displayable_comment' => 'getDisplayableComment', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'per_unit_declared_value' => 'getPerUnitDeclaredValue', - 'per_unit_price' => 'getPerUnitPrice', - 'per_unit_tax' => 'getPerUnitTax' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['gift_message'] = $data['gift_message'] ?? null; - $this->container['displayable_comment'] = $data['displayable_comment'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['per_unit_declared_value'] = $data['per_unit_declared_value'] ?? null; - $this->container['per_unit_price'] = $data['per_unit_price'] ?? null; - $this->container['per_unit_tax'] = $data['per_unit_tax'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ((mb_strlen($this->container['seller_sku']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_sku', the character length must be smaller than or equal to 50."; - } - - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ((mb_strlen($this->container['seller_fulfillment_order_item_id']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_fulfillment_order_item_id', the character length must be smaller than or equal to 50."; - } - - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if (!is_null($this->container['gift_message']) && (mb_strlen($this->container['gift_message']) > 512)) { - $invalidProperties[] = "invalid value for 'gift_message', the character length must be smaller than or equal to 512."; - } - - if (!is_null($this->container['displayable_comment']) && (mb_strlen($this->container['displayable_comment']) > 250)) { - $invalidProperties[] = "invalid value for 'displayable_comment', the character length must be smaller than or equal to 250."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - if ((mb_strlen($seller_sku) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_sku when calling CreateFulfillmentOrderItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same SellerSKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same SellerSKU but have different GiftMessage values. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - if ((mb_strlen($seller_fulfillment_order_item_id) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_fulfillment_order_item_id when calling CreateFulfillmentOrderItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets gift_message - * - * @return string|null - */ - public function getGiftMessage() - { - return $this->container['gift_message']; - } - - /** - * Sets gift_message - * - * @param string|null $gift_message A message to the gift recipient, if applicable. - * - * @return self - */ - public function setGiftMessage($gift_message) - { - if (!is_null($gift_message) && (mb_strlen($gift_message) > 512)) { - throw new \InvalidArgumentException('invalid length for $gift_message when calling CreateFulfillmentOrderItem., must be smaller than or equal to 512.'); - } - - $this->container['gift_message'] = $gift_message; - - return $this; - } - /** - * Gets displayable_comment - * - * @return string|null - */ - public function getDisplayableComment() - { - return $this->container['displayable_comment']; - } - - /** - * Sets displayable_comment - * - * @param string|null $displayable_comment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. - * - * @return self - */ - public function setDisplayableComment($displayable_comment) - { - if (!is_null($displayable_comment) && (mb_strlen($displayable_comment) > 250)) { - throw new \InvalidArgumentException('invalid length for $displayable_comment when calling CreateFulfillmentOrderItem., must be smaller than or equal to 250.'); - } - - $this->container['displayable_comment'] = $displayable_comment; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku Amazon's fulfillment network SKU of the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets per_unit_declared_value - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitDeclaredValue() - { - return $this->container['per_unit_declared_value']; - } - - /** - * Sets per_unit_declared_value - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_declared_value per_unit_declared_value - * - * @return self - */ - public function setPerUnitDeclaredValue($per_unit_declared_value) - { - $this->container['per_unit_declared_value'] = $per_unit_declared_value; - - return $this; - } - /** - * Gets per_unit_price - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitPrice() - { - return $this->container['per_unit_price']; - } - - /** - * Sets per_unit_price - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_price per_unit_price - * - * @return self - */ - public function setPerUnitPrice($per_unit_price) - { - $this->container['per_unit_price'] = $per_unit_price; - - return $this; - } - /** - * Gets per_unit_tax - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitTax() - { - return $this->container['per_unit_tax']; - } - - /** - * Sets per_unit_tax - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_tax per_unit_tax - * - * @return self - */ - public function setPerUnitTax($per_unit_tax) - { - $this->container['per_unit_tax'] = $per_unit_tax; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.php deleted file mode 100644 index ce64ed7d5..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderRequest.php +++ /dev/null @@ -1,613 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentOrderRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentOrderRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_fulfillment_order_id' => 'string', - 'displayable_order_id' => 'string', - 'displayable_order_date' => 'string', - 'displayable_order_comment' => 'string', - 'shipping_speed_category' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory', - 'delivery_window' => '\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow', - 'destination_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Address', - 'fulfillment_action' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction', - 'fulfillment_policy' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy', - 'cod_settings' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings', - 'ship_from_country_code' => 'string', - 'notification_emails' => 'string[]', - 'feature_constraints' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]', - 'items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_fulfillment_order_id' => null, - 'displayable_order_id' => null, - 'displayable_order_date' => null, - 'displayable_order_comment' => null, - 'shipping_speed_category' => null, - 'delivery_window' => null, - 'destination_address' => null, - 'fulfillment_action' => null, - 'fulfillment_policy' => null, - 'cod_settings' => null, - 'ship_from_country_code' => null, - 'notification_emails' => null, - 'feature_constraints' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'seller_fulfillment_order_id' => 'sellerFulfillmentOrderId', - 'displayable_order_id' => 'displayableOrderId', - 'displayable_order_date' => 'displayableOrderDate', - 'displayable_order_comment' => 'displayableOrderComment', - 'shipping_speed_category' => 'shippingSpeedCategory', - 'delivery_window' => 'deliveryWindow', - 'destination_address' => 'destinationAddress', - 'fulfillment_action' => 'fulfillmentAction', - 'fulfillment_policy' => 'fulfillmentPolicy', - 'cod_settings' => 'codSettings', - 'ship_from_country_code' => 'shipFromCountryCode', - 'notification_emails' => 'notificationEmails', - 'feature_constraints' => 'featureConstraints', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'seller_fulfillment_order_id' => 'setSellerFulfillmentOrderId', - 'displayable_order_id' => 'setDisplayableOrderId', - 'displayable_order_date' => 'setDisplayableOrderDate', - 'displayable_order_comment' => 'setDisplayableOrderComment', - 'shipping_speed_category' => 'setShippingSpeedCategory', - 'delivery_window' => 'setDeliveryWindow', - 'destination_address' => 'setDestinationAddress', - 'fulfillment_action' => 'setFulfillmentAction', - 'fulfillment_policy' => 'setFulfillmentPolicy', - 'cod_settings' => 'setCodSettings', - 'ship_from_country_code' => 'setShipFromCountryCode', - 'notification_emails' => 'setNotificationEmails', - 'feature_constraints' => 'setFeatureConstraints', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'seller_fulfillment_order_id' => 'getSellerFulfillmentOrderId', - 'displayable_order_id' => 'getDisplayableOrderId', - 'displayable_order_date' => 'getDisplayableOrderDate', - 'displayable_order_comment' => 'getDisplayableOrderComment', - 'shipping_speed_category' => 'getShippingSpeedCategory', - 'delivery_window' => 'getDeliveryWindow', - 'destination_address' => 'getDestinationAddress', - 'fulfillment_action' => 'getFulfillmentAction', - 'fulfillment_policy' => 'getFulfillmentPolicy', - 'cod_settings' => 'getCodSettings', - 'ship_from_country_code' => 'getShipFromCountryCode', - 'notification_emails' => 'getNotificationEmails', - 'feature_constraints' => 'getFeatureConstraints', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_fulfillment_order_id'] = $data['seller_fulfillment_order_id'] ?? null; - $this->container['displayable_order_id'] = $data['displayable_order_id'] ?? null; - $this->container['displayable_order_date'] = $data['displayable_order_date'] ?? null; - $this->container['displayable_order_comment'] = $data['displayable_order_comment'] ?? null; - $this->container['shipping_speed_category'] = $data['shipping_speed_category'] ?? null; - $this->container['delivery_window'] = $data['delivery_window'] ?? null; - $this->container['destination_address'] = $data['destination_address'] ?? null; - $this->container['fulfillment_action'] = $data['fulfillment_action'] ?? null; - $this->container['fulfillment_policy'] = $data['fulfillment_policy'] ?? null; - $this->container['cod_settings'] = $data['cod_settings'] ?? null; - $this->container['ship_from_country_code'] = $data['ship_from_country_code'] ?? null; - $this->container['notification_emails'] = $data['notification_emails'] ?? null; - $this->container['feature_constraints'] = $data['feature_constraints'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_fulfillment_order_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_id' can't be null"; - } - if ((mb_strlen($this->container['seller_fulfillment_order_id']) > 40)) { - $invalidProperties[] = "invalid value for 'seller_fulfillment_order_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['displayable_order_id'] === null) { - $invalidProperties[] = "'displayable_order_id' can't be null"; - } - if ((mb_strlen($this->container['displayable_order_id']) > 40)) { - $invalidProperties[] = "invalid value for 'displayable_order_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['displayable_order_date'] === null) { - $invalidProperties[] = "'displayable_order_date' can't be null"; - } - if ($this->container['displayable_order_comment'] === null) { - $invalidProperties[] = "'displayable_order_comment' can't be null"; - } - if ((mb_strlen($this->container['displayable_order_comment']) > 1000)) { - $invalidProperties[] = "invalid value for 'displayable_order_comment', the character length must be smaller than or equal to 1000."; - } - - if ($this->container['shipping_speed_category'] === null) { - $invalidProperties[] = "'shipping_speed_category' can't be null"; - } - if ($this->container['destination_address'] === null) { - $invalidProperties[] = "'destination_address' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace the fulfillment order is placed against. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_fulfillment_order_id - * - * @return string - */ - public function getSellerFulfillmentOrderId() - { - return $this->container['seller_fulfillment_order_id']; - } - - /** - * Sets seller_fulfillment_order_id - * - * @param string $seller_fulfillment_order_id A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use. - * - * @return self - */ - public function setSellerFulfillmentOrderId($seller_fulfillment_order_id) - { - if ((mb_strlen($seller_fulfillment_order_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $seller_fulfillment_order_id when calling CreateFulfillmentOrderRequest., must be smaller than or equal to 40.'); - } - - $this->container['seller_fulfillment_order_id'] = $seller_fulfillment_order_id; - - return $this; - } - /** - * Gets displayable_order_id - * - * @return string - */ - public function getDisplayableOrderId() - { - return $this->container['displayable_order_id']; - } - - /** - * Sets displayable_order_id - * - * @param string $displayable_order_id A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed. - * - * @return self - */ - public function setDisplayableOrderId($displayable_order_id) - { - if ((mb_strlen($displayable_order_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $displayable_order_id when calling CreateFulfillmentOrderRequest., must be smaller than or equal to 40.'); - } - - $this->container['displayable_order_id'] = $displayable_order_id; - - return $this; - } - /** - * Gets displayable_order_date - * - * @return string - */ - public function getDisplayableOrderDate() - { - return $this->container['displayable_order_date']; - } - - /** - * Sets displayable_order_date - * - * @param string $displayable_order_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setDisplayableOrderDate($displayable_order_date) - { - $this->container['displayable_order_date'] = $displayable_order_date; - - return $this; - } - /** - * Gets displayable_order_comment - * - * @return string - */ - public function getDisplayableOrderComment() - { - return $this->container['displayable_order_comment']; - } - - /** - * Sets displayable_order_comment - * - * @param string $displayable_order_comment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. - * - * @return self - */ - public function setDisplayableOrderComment($displayable_order_comment) - { - if ((mb_strlen($displayable_order_comment) > 1000)) { - throw new \InvalidArgumentException('invalid length for $displayable_order_comment when calling CreateFulfillmentOrderRequest., must be smaller than or equal to 1000.'); - } - - $this->container['displayable_order_comment'] = $displayable_order_comment; - - return $this; - } - /** - * Gets shipping_speed_category - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory - */ - public function getShippingSpeedCategory() - { - return $this->container['shipping_speed_category']; - } - - /** - * Sets shipping_speed_category - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory $shipping_speed_category shipping_speed_category - * - * @return self - */ - public function setShippingSpeedCategory($shipping_speed_category) - { - $this->container['shipping_speed_category'] = $shipping_speed_category; - - return $this; - } - /** - * Gets delivery_window - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow|null - */ - public function getDeliveryWindow() - { - return $this->container['delivery_window']; - } - - /** - * Sets delivery_window - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow|null $delivery_window delivery_window - * - * @return self - */ - public function setDeliveryWindow($delivery_window) - { - $this->container['delivery_window'] = $delivery_window; - - return $this; - } - /** - * Gets destination_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Address - */ - public function getDestinationAddress() - { - return $this->container['destination_address']; - } - - /** - * Sets destination_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Address $destination_address destination_address - * - * @return self - */ - public function setDestinationAddress($destination_address) - { - $this->container['destination_address'] = $destination_address; - - return $this; - } - /** - * Gets fulfillment_action - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null - */ - public function getFulfillmentAction() - { - return $this->container['fulfillment_action']; - } - - /** - * Sets fulfillment_action - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null $fulfillment_action fulfillment_action - * - * @return self - */ - public function setFulfillmentAction($fulfillment_action) - { - $this->container['fulfillment_action'] = $fulfillment_action; - - return $this; - } - /** - * Gets fulfillment_policy - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null - */ - public function getFulfillmentPolicy() - { - return $this->container['fulfillment_policy']; - } - - /** - * Sets fulfillment_policy - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null $fulfillment_policy fulfillment_policy - * - * @return self - */ - public function setFulfillmentPolicy($fulfillment_policy) - { - $this->container['fulfillment_policy'] = $fulfillment_policy; - - return $this; - } - /** - * Gets cod_settings - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings|null - */ - public function getCodSettings() - { - return $this->container['cod_settings']; - } - - /** - * Sets cod_settings - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings|null $cod_settings cod_settings - * - * @return self - */ - public function setCodSettings($cod_settings) - { - $this->container['cod_settings'] = $cod_settings; - - return $this; - } - /** - * Gets ship_from_country_code - * - * @return string|null - */ - public function getShipFromCountryCode() - { - return $this->container['ship_from_country_code']; - } - - /** - * Sets ship_from_country_code - * - * @param string|null $ship_from_country_code The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setShipFromCountryCode($ship_from_country_code) - { - $this->container['ship_from_country_code'] = $ship_from_country_code; - - return $this; - } - /** - * Gets notification_emails - * - * @return string[]|null - */ - public function getNotificationEmails() - { - return $this->container['notification_emails']; - } - - /** - * Sets notification_emails - * - * @param string[]|null $notification_emails 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. - * - * @return self - */ - public function setNotificationEmails($notification_emails) - { - $this->container['notification_emails'] = $notification_emails; - - return $this; - } - /** - * Gets feature_constraints - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null - */ - public function getFeatureConstraints() - { - return $this->container['feature_constraints']; - } - - /** - * Sets feature_constraints - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null $feature_constraints A list of features and their fulfillment policies to apply to the order. - * - * @return self - */ - public function setFeatureConstraints($feature_constraints) - { - $this->container['feature_constraints'] = $feature_constraints; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentOrderItem[] $items An array of item information for creating a fulfillment order. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.php deleted file mode 100644 index 5eaf52ca1..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentOrderResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.php deleted file mode 100644 index a3dcf86a9..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnRequest.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentReturnRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentReturnRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateReturnItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CreateReturnItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateReturnItem[] $items An array of items to be returned. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.php deleted file mode 100644 index e09f1878f..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentReturnResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentReturnResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CreateFulfillmentReturnResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.php b/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.php deleted file mode 100644 index 37b4b5cc2..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateFulfillmentReturnResult.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFulfillmentReturnResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFulfillmentReturnResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'return_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]', - 'invalid_return_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidReturnItem[]', - 'return_authorizations' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'return_items' => null, - 'invalid_return_items' => null, - 'return_authorizations' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'return_items' => 'returnItems', - 'invalid_return_items' => 'invalidReturnItems', - 'return_authorizations' => 'returnAuthorizations' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'return_items' => 'setReturnItems', - 'invalid_return_items' => 'setInvalidReturnItems', - 'return_authorizations' => 'setReturnAuthorizations' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'return_items' => 'getReturnItems', - 'invalid_return_items' => 'getInvalidReturnItems', - 'return_authorizations' => 'getReturnAuthorizations' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['return_items'] = $data['return_items'] ?? null; - $this->container['invalid_return_items'] = $data['invalid_return_items'] ?? null; - $this->container['return_authorizations'] = $data['return_authorizations'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets return_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]|null - */ - public function getReturnItems() - { - return $this->container['return_items']; - } - - /** - * Sets return_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]|null $return_items An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. - * - * @return self - */ - public function setReturnItems($return_items) - { - $this->container['return_items'] = $return_items; - - return $this; - } - /** - * Gets invalid_return_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidReturnItem[]|null - */ - public function getInvalidReturnItems() - { - return $this->container['invalid_return_items']; - } - - /** - * Sets invalid_return_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidReturnItem[]|null $invalid_return_items An array of invalid return item information. - * - * @return self - */ - public function setInvalidReturnItems($invalid_return_items) - { - $this->container['invalid_return_items'] = $invalid_return_items; - - return $this; - } - /** - * Gets return_authorizations - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]|null - */ - public function getReturnAuthorizations() - { - return $this->container['return_authorizations']; - } - - /** - * Sets return_authorizations - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]|null $return_authorizations An array of return authorization information. - * - * @return self - */ - public function setReturnAuthorizations($return_authorizations) - { - $this->container['return_authorizations'] = $return_authorizations; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CreateReturnItem.php b/lib/Model/FbaOutboundV20200701/CreateReturnItem.php deleted file mode 100644 index 104cee53c..000000000 --- a/lib/Model/FbaOutboundV20200701/CreateReturnItem.php +++ /dev/null @@ -1,306 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReturnItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReturnItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_return_item_id' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'amazon_shipment_id' => 'string', - 'return_reason_code' => 'string', - 'return_comment' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_return_item_id' => null, - 'seller_fulfillment_order_item_id' => null, - 'amazon_shipment_id' => null, - 'return_reason_code' => null, - 'return_comment' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_return_item_id' => 'sellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'amazonShipmentId', - 'return_reason_code' => 'returnReasonCode', - 'return_comment' => 'returnComment' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_return_item_id' => 'setSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'setAmazonShipmentId', - 'return_reason_code' => 'setReturnReasonCode', - 'return_comment' => 'setReturnComment' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_return_item_id' => 'getSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'getAmazonShipmentId', - 'return_reason_code' => 'getReturnReasonCode', - 'return_comment' => 'getReturnComment' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_return_item_id'] = $data['seller_return_item_id'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['amazon_shipment_id'] = $data['amazon_shipment_id'] ?? null; - $this->container['return_reason_code'] = $data['return_reason_code'] ?? null; - $this->container['return_comment'] = $data['return_comment'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_return_item_id'] === null) { - $invalidProperties[] = "'seller_return_item_id' can't be null"; - } - if ((mb_strlen($this->container['seller_return_item_id']) > 80)) { - $invalidProperties[] = "invalid value for 'seller_return_item_id', the character length must be smaller than or equal to 80."; - } - - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ($this->container['amazon_shipment_id'] === null) { - $invalidProperties[] = "'amazon_shipment_id' can't be null"; - } - if ($this->container['return_reason_code'] === null) { - $invalidProperties[] = "'return_reason_code' can't be null"; - } - if (!is_null($this->container['return_comment']) && (mb_strlen($this->container['return_comment']) > 1000)) { - $invalidProperties[] = "invalid value for 'return_comment', the character length must be smaller than or equal to 1000."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_return_item_id - * - * @return string - */ - public function getSellerReturnItemId() - { - return $this->container['seller_return_item_id']; - } - - /** - * Sets seller_return_item_id - * - * @param string $seller_return_item_id An identifier assigned by the seller to the return item. - * - * @return self - */ - public function setSellerReturnItemId($seller_return_item_id) - { - if ((mb_strlen($seller_return_item_id) > 80)) { - throw new \InvalidArgumentException('invalid length for $seller_return_item_id when calling CreateReturnItem., must be smaller than or equal to 80.'); - } - - $this->container['seller_return_item_id'] = $seller_return_item_id; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id The identifier assigned to the item by the seller when the fulfillment order was created. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets amazon_shipment_id - * - * @return string - */ - public function getAmazonShipmentId() - { - return $this->container['amazon_shipment_id']; - } - - /** - * Sets amazon_shipment_id - * - * @param string $amazon_shipment_id The identifier for the shipment that is associated with the return item. - * - * @return self - */ - public function setAmazonShipmentId($amazon_shipment_id) - { - $this->container['amazon_shipment_id'] = $amazon_shipment_id; - - return $this; - } - /** - * Gets return_reason_code - * - * @return string - */ - public function getReturnReasonCode() - { - return $this->container['return_reason_code']; - } - - /** - * Sets return_reason_code - * - * @param string $return_reason_code The return reason code assigned to the return item by the seller. - * - * @return self - */ - public function setReturnReasonCode($return_reason_code) - { - $this->container['return_reason_code'] = $return_reason_code; - - return $this; - } - /** - * Gets return_comment - * - * @return string|null - */ - public function getReturnComment() - { - return $this->container['return_comment']; - } - - /** - * Sets return_comment - * - * @param string|null $return_comment An optional comment about the return item. - * - * @return self - */ - public function setReturnComment($return_comment) - { - if (!is_null($return_comment) && (mb_strlen($return_comment) > 1000)) { - throw new \InvalidArgumentException('invalid length for $return_comment when calling CreateReturnItem., must be smaller than or equal to 1000.'); - } - - $this->container['return_comment'] = $return_comment; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/CurrentStatus.php b/lib/Model/FbaOutboundV20200701/CurrentStatus.php deleted file mode 100644 index 40f13b9c5..000000000 --- a/lib/Model/FbaOutboundV20200701/CurrentStatus.php +++ /dev/null @@ -1,119 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/DeliveryWindow.php b/lib/Model/FbaOutboundV20200701/DeliveryWindow.php deleted file mode 100644 index 474865057..000000000 --- a/lib/Model/FbaOutboundV20200701/DeliveryWindow.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DeliveryWindow extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DeliveryWindow'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_date' => 'string', - 'end_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_date' => null, - 'end_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_date' => 'startDate', - 'end_date' => 'endDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_date'] = $data['start_date'] ?? null; - $this->container['end_date'] = $data['end_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_date'] === null) { - $invalidProperties[] = "'start_date' can't be null"; - } - if ($this->container['end_date'] === null) { - $invalidProperties[] = "'end_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets start_date - * - * @return string - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param string $start_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setStartDate($start_date) - { - $this->container['start_date'] = $start_date; - - return $this; - } - /** - * Gets end_date - * - * @return string - */ - public function getEndDate() - { - return $this->container['end_date']; - } - - /** - * Sets end_date - * - * @param string $end_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEndDate($end_date) - { - $this->container['end_date'] = $end_date; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Error.php b/lib/Model/FbaOutboundV20200701/Error.php deleted file mode 100644 index 718a1f41b..000000000 --- a/lib/Model/FbaOutboundV20200701/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/EventCode.php b/lib/Model/FbaOutboundV20200701/EventCode.php deleted file mode 100644 index 93b056d9f..000000000 --- a/lib/Model/FbaOutboundV20200701/EventCode.php +++ /dev/null @@ -1,157 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Feature.php b/lib/Model/FbaOutboundV20200701/Feature.php deleted file mode 100644 index 5e8cdf8ea..000000000 --- a/lib/Model/FbaOutboundV20200701/Feature.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Feature extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Feature'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feature_name' => 'string', - 'feature_description' => 'string', - 'seller_eligible' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feature_name' => null, - 'feature_description' => null, - 'seller_eligible' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'feature_name' => 'featureName', - 'feature_description' => 'featureDescription', - 'seller_eligible' => 'sellerEligible' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'feature_name' => 'setFeatureName', - 'feature_description' => 'setFeatureDescription', - 'seller_eligible' => 'setSellerEligible' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'feature_name' => 'getFeatureName', - 'feature_description' => 'getFeatureDescription', - 'seller_eligible' => 'getSellerEligible' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feature_name'] = $data['feature_name'] ?? null; - $this->container['feature_description'] = $data['feature_description'] ?? null; - $this->container['seller_eligible'] = $data['seller_eligible'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feature_name'] === null) { - $invalidProperties[] = "'feature_name' can't be null"; - } - if ($this->container['feature_description'] === null) { - $invalidProperties[] = "'feature_description' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets feature_name - * - * @return string - */ - public function getFeatureName() - { - return $this->container['feature_name']; - } - - /** - * Sets feature_name - * - * @param string $feature_name The feature name. - * - * @return self - */ - public function setFeatureName($feature_name) - { - $this->container['feature_name'] = $feature_name; - - return $this; - } - /** - * Gets feature_description - * - * @return string - */ - public function getFeatureDescription() - { - return $this->container['feature_description']; - } - - /** - * Sets feature_description - * - * @param string $feature_description The feature description. - * - * @return self - */ - public function setFeatureDescription($feature_description) - { - $this->container['feature_description'] = $feature_description; - - return $this; - } - /** - * Gets seller_eligible - * - * @return bool|null - */ - public function getSellerEligible() - { - return $this->container['seller_eligible']; - } - - /** - * Sets seller_eligible - * - * @param bool|null $seller_eligible When true, indicates that the seller is eligible to use the feature. - * - * @return self - */ - public function setSellerEligible($seller_eligible) - { - $this->container['seller_eligible'] = $seller_eligible; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FeatureSettings.php b/lib/Model/FbaOutboundV20200701/FeatureSettings.php deleted file mode 100644 index eacb2bab6..000000000 --- a/lib/Model/FbaOutboundV20200701/FeatureSettings.php +++ /dev/null @@ -1,235 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeatureSettings extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeatureSettings'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feature_name' => 'string', - 'feature_fulfillment_policy' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feature_name' => null, - 'feature_fulfillment_policy' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'feature_name' => 'featureName', - 'feature_fulfillment_policy' => 'featureFulfillmentPolicy' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'feature_name' => 'setFeatureName', - 'feature_fulfillment_policy' => 'setFeatureFulfillmentPolicy' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'feature_name' => 'getFeatureName', - 'feature_fulfillment_policy' => 'getFeatureFulfillmentPolicy' - ]; - - - - const FEATURE_FULFILLMENT_POLICY_REQUIRED = 'Required'; - const FEATURE_FULFILLMENT_POLICY_NOT_REQUIRED = 'NotRequired'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFeatureFulfillmentPolicyAllowableValues() - { - $baseVals = [ - self::FEATURE_FULFILLMENT_POLICY_REQUIRED, - self::FEATURE_FULFILLMENT_POLICY_NOT_REQUIRED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feature_name'] = $data['feature_name'] ?? null; - $this->container['feature_fulfillment_policy'] = $data['feature_fulfillment_policy'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getFeatureFulfillmentPolicyAllowableValues(); - if ( - !is_null($this->container['feature_fulfillment_policy']) && - !in_array(strtoupper($this->container['feature_fulfillment_policy']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'feature_fulfillment_policy', must be one of '%s'", - $this->container['feature_fulfillment_policy'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets feature_name - * - * @return string|null - */ - public function getFeatureName() - { - return $this->container['feature_name']; - } - - /** - * Sets feature_name - * - * @param string|null $feature_name The name of the feature. - * - * @return self - */ - public function setFeatureName($feature_name) - { - $this->container['feature_name'] = $feature_name; - - return $this; - } - /** - * Gets feature_fulfillment_policy - * - * @return string|null - */ - public function getFeatureFulfillmentPolicy() - { - return $this->container['feature_fulfillment_policy']; - } - - /** - * Sets feature_fulfillment_policy - * - * @param string|null $feature_fulfillment_policy Specifies the policy to use when fulfilling an order. - * - * @return self - */ - public function setFeatureFulfillmentPolicy($feature_fulfillment_policy) - { - $allowedValues = $this->getFeatureFulfillmentPolicyAllowableValues(); - if (!is_null($feature_fulfillment_policy) &&!in_array(strtoupper($feature_fulfillment_policy), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'feature_fulfillment_policy', must be one of '%s'", - $feature_fulfillment_policy, - implode("', '", $allowedValues) - ) - ); - } - $this->container['feature_fulfillment_policy'] = $feature_fulfillment_policy; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FeatureSku.php b/lib/Model/FbaOutboundV20200701/FeatureSku.php deleted file mode 100644 index 9d1f9bbf1..000000000 --- a/lib/Model/FbaOutboundV20200701/FeatureSku.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeatureSku extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeatureSku'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'fn_sku' => 'string', - 'asin' => 'string', - 'sku_count' => 'float', - 'overlapping_skus' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'fn_sku' => null, - 'asin' => null, - 'sku_count' => null, - 'overlapping_skus' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'fn_sku' => 'fnSku', - 'asin' => 'asin', - 'sku_count' => 'skuCount', - 'overlapping_skus' => 'overlappingSkus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'fn_sku' => 'setFnSku', - 'asin' => 'setAsin', - 'sku_count' => 'setSkuCount', - 'overlapping_skus' => 'setOverlappingSkus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'fn_sku' => 'getFnSku', - 'asin' => 'getAsin', - 'sku_count' => 'getSkuCount', - 'overlapping_skus' => 'getOverlappingSkus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['fn_sku'] = $data['fn_sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['sku_count'] = $data['sku_count'] ?? null; - $this->container['overlapping_skus'] = $data['overlapping_skus'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $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. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets fn_sku - * - * @return string|null - */ - public function getFnSku() - { - return $this->container['fn_sku']; - } - - /** - * Sets fn_sku - * - * @param string|null $fn_sku The unique SKU used by Amazon's fulfillment network. - * - * @return self - */ - public function setFnSku($fn_sku) - { - $this->container['fn_sku'] = $fn_sku; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets sku_count - * - * @return float|null - */ - public function getSkuCount() - { - return $this->container['sku_count']; - } - - /** - * Sets sku_count - * - * @param float|null $sku_count The number of SKUs available for this service. - * - * @return self - */ - public function setSkuCount($sku_count) - { - $this->container['sku_count'] = $sku_count; - - return $this; - } - /** - * Gets overlapping_skus - * - * @return string[]|null - */ - public function getOverlappingSkus() - { - return $this->container['overlapping_skus']; - } - - /** - * Sets overlapping_skus - * - * @param string[]|null $overlapping_skus Other seller SKUs that are shared across the same inventory. - * - * @return self - */ - public function setOverlappingSkus($overlapping_skus) - { - $this->container['overlapping_skus'] = $overlapping_skus; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Fee.php b/lib/Model/FbaOutboundV20200701/Fee.php deleted file mode 100644 index 99b53e82d..000000000 --- a/lib/Model/FbaOutboundV20200701/Fee.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Fee extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Fee'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'amount' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'amount' => 'getAmount' - ]; - - - - const NAME_FBA_PER_UNIT_FULFILLMENT_FEE = 'FBAPerUnitFulfillmentFee'; - const NAME_FBA_PER_ORDER_FULFILLMENT_FEE = 'FBAPerOrderFulfillmentFee'; - const NAME_FBA_TRANSPORTATION_FEE = 'FBATransportationFee'; - const NAME_FBA_FULFILLMENT_COD_FEE = 'FBAFulfillmentCODFee'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getNameAllowableValues() - { - $baseVals = [ - self::NAME_FBA_PER_UNIT_FULFILLMENT_FEE, - self::NAME_FBA_PER_ORDER_FULFILLMENT_FEE, - self::NAME_FBA_TRANSPORTATION_FEE, - self::NAME_FBA_FULFILLMENT_COD_FEE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - $allowedValues = $this->getNameAllowableValues(); - if ( - !is_null($this->container['name']) && - !in_array(strtoupper($this->container['name']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'name', must be one of '%s'", - $this->container['name'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The type of fee. - * - * @return self - */ - public function setName($name) - { - $allowedValues = $this->getNameAllowableValues(); - if (!in_array(strtoupper($name), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'name', must be one of '%s'", - $name, - implode("', '", $allowedValues) - ) - ); - } - $this->container['name'] = $name; - - return $this; - } - /** - * Gets amount - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money $amount amount - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentAction.php b/lib/Model/FbaOutboundV20200701/FulfillmentAction.php deleted file mode 100644 index 2c58622c2..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentAction.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentOrder.php b/lib/Model/FbaOutboundV20200701/FulfillmentOrder.php deleted file mode 100644 index 25c2135b8..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentOrder.php +++ /dev/null @@ -1,627 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentOrder extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentOrder'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_fulfillment_order_id' => 'string', - 'marketplace_id' => 'string', - 'displayable_order_id' => 'string', - 'displayable_order_date' => 'string', - 'displayable_order_comment' => 'string', - 'shipping_speed_category' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory', - 'delivery_window' => '\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow', - 'destination_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Address', - 'fulfillment_action' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction', - 'fulfillment_policy' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy', - 'cod_settings' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings', - 'received_date' => 'string', - 'fulfillment_order_status' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus', - 'status_updated_date' => 'string', - 'notification_emails' => 'string[]', - 'feature_constraints' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_fulfillment_order_id' => null, - 'marketplace_id' => null, - 'displayable_order_id' => null, - 'displayable_order_date' => null, - 'displayable_order_comment' => null, - 'shipping_speed_category' => null, - 'delivery_window' => null, - 'destination_address' => null, - 'fulfillment_action' => null, - 'fulfillment_policy' => null, - 'cod_settings' => null, - 'received_date' => null, - 'fulfillment_order_status' => null, - 'status_updated_date' => null, - 'notification_emails' => null, - 'feature_constraints' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_fulfillment_order_id' => 'sellerFulfillmentOrderId', - 'marketplace_id' => 'marketplaceId', - 'displayable_order_id' => 'displayableOrderId', - 'displayable_order_date' => 'displayableOrderDate', - 'displayable_order_comment' => 'displayableOrderComment', - 'shipping_speed_category' => 'shippingSpeedCategory', - 'delivery_window' => 'deliveryWindow', - 'destination_address' => 'destinationAddress', - 'fulfillment_action' => 'fulfillmentAction', - 'fulfillment_policy' => 'fulfillmentPolicy', - 'cod_settings' => 'codSettings', - 'received_date' => 'receivedDate', - 'fulfillment_order_status' => 'fulfillmentOrderStatus', - 'status_updated_date' => 'statusUpdatedDate', - 'notification_emails' => 'notificationEmails', - 'feature_constraints' => 'featureConstraints' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_fulfillment_order_id' => 'setSellerFulfillmentOrderId', - 'marketplace_id' => 'setMarketplaceId', - 'displayable_order_id' => 'setDisplayableOrderId', - 'displayable_order_date' => 'setDisplayableOrderDate', - 'displayable_order_comment' => 'setDisplayableOrderComment', - 'shipping_speed_category' => 'setShippingSpeedCategory', - 'delivery_window' => 'setDeliveryWindow', - 'destination_address' => 'setDestinationAddress', - 'fulfillment_action' => 'setFulfillmentAction', - 'fulfillment_policy' => 'setFulfillmentPolicy', - 'cod_settings' => 'setCodSettings', - 'received_date' => 'setReceivedDate', - 'fulfillment_order_status' => 'setFulfillmentOrderStatus', - 'status_updated_date' => 'setStatusUpdatedDate', - 'notification_emails' => 'setNotificationEmails', - 'feature_constraints' => 'setFeatureConstraints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_fulfillment_order_id' => 'getSellerFulfillmentOrderId', - 'marketplace_id' => 'getMarketplaceId', - 'displayable_order_id' => 'getDisplayableOrderId', - 'displayable_order_date' => 'getDisplayableOrderDate', - 'displayable_order_comment' => 'getDisplayableOrderComment', - 'shipping_speed_category' => 'getShippingSpeedCategory', - 'delivery_window' => 'getDeliveryWindow', - 'destination_address' => 'getDestinationAddress', - 'fulfillment_action' => 'getFulfillmentAction', - 'fulfillment_policy' => 'getFulfillmentPolicy', - 'cod_settings' => 'getCodSettings', - 'received_date' => 'getReceivedDate', - 'fulfillment_order_status' => 'getFulfillmentOrderStatus', - 'status_updated_date' => 'getStatusUpdatedDate', - 'notification_emails' => 'getNotificationEmails', - 'feature_constraints' => 'getFeatureConstraints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_fulfillment_order_id'] = $data['seller_fulfillment_order_id'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['displayable_order_id'] = $data['displayable_order_id'] ?? null; - $this->container['displayable_order_date'] = $data['displayable_order_date'] ?? null; - $this->container['displayable_order_comment'] = $data['displayable_order_comment'] ?? null; - $this->container['shipping_speed_category'] = $data['shipping_speed_category'] ?? null; - $this->container['delivery_window'] = $data['delivery_window'] ?? null; - $this->container['destination_address'] = $data['destination_address'] ?? null; - $this->container['fulfillment_action'] = $data['fulfillment_action'] ?? null; - $this->container['fulfillment_policy'] = $data['fulfillment_policy'] ?? null; - $this->container['cod_settings'] = $data['cod_settings'] ?? null; - $this->container['received_date'] = $data['received_date'] ?? null; - $this->container['fulfillment_order_status'] = $data['fulfillment_order_status'] ?? null; - $this->container['status_updated_date'] = $data['status_updated_date'] ?? null; - $this->container['notification_emails'] = $data['notification_emails'] ?? null; - $this->container['feature_constraints'] = $data['feature_constraints'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_fulfillment_order_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_id' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['displayable_order_id'] === null) { - $invalidProperties[] = "'displayable_order_id' can't be null"; - } - if ($this->container['displayable_order_date'] === null) { - $invalidProperties[] = "'displayable_order_date' can't be null"; - } - if ($this->container['displayable_order_comment'] === null) { - $invalidProperties[] = "'displayable_order_comment' can't be null"; - } - if ($this->container['shipping_speed_category'] === null) { - $invalidProperties[] = "'shipping_speed_category' can't be null"; - } - if ($this->container['destination_address'] === null) { - $invalidProperties[] = "'destination_address' can't be null"; - } - if ($this->container['received_date'] === null) { - $invalidProperties[] = "'received_date' can't be null"; - } - if ($this->container['fulfillment_order_status'] === null) { - $invalidProperties[] = "'fulfillment_order_status' can't be null"; - } - if ($this->container['status_updated_date'] === null) { - $invalidProperties[] = "'status_updated_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_fulfillment_order_id - * - * @return string - */ - public function getSellerFulfillmentOrderId() - { - return $this->container['seller_fulfillment_order_id']; - } - - /** - * Sets seller_fulfillment_order_id - * - * @param string $seller_fulfillment_order_id The fulfillment order identifier submitted with the createFulfillmentOrder operation. - * - * @return self - */ - public function setSellerFulfillmentOrderId($seller_fulfillment_order_id) - { - $this->container['seller_fulfillment_order_id'] = $seller_fulfillment_order_id; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The identifier for the marketplace the fulfillment order is placed against. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets displayable_order_id - * - * @return string - */ - public function getDisplayableOrderId() - { - return $this->container['displayable_order_id']; - } - - /** - * Sets displayable_order_id - * - * @param string $displayable_order_id A fulfillment order identifier submitted with the createFulfillmentOrder operation. Displays as the order identifier in recipient-facing materials such as the packing slip. - * - * @return self - */ - public function setDisplayableOrderId($displayable_order_id) - { - $this->container['displayable_order_id'] = $displayable_order_id; - - return $this; - } - /** - * Gets displayable_order_date - * - * @return string - */ - public function getDisplayableOrderDate() - { - return $this->container['displayable_order_date']; - } - - /** - * Sets displayable_order_date - * - * @param string $displayable_order_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setDisplayableOrderDate($displayable_order_date) - { - $this->container['displayable_order_date'] = $displayable_order_date; - - return $this; - } - /** - * Gets displayable_order_comment - * - * @return string - */ - public function getDisplayableOrderComment() - { - return $this->container['displayable_order_comment']; - } - - /** - * Sets displayable_order_comment - * - * @param string $displayable_order_comment A text block submitted with the createFulfillmentOrder operation. Displays in recipient-facing materials such as the packing slip. - * - * @return self - */ - public function setDisplayableOrderComment($displayable_order_comment) - { - $this->container['displayable_order_comment'] = $displayable_order_comment; - - return $this; - } - /** - * Gets shipping_speed_category - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory - */ - public function getShippingSpeedCategory() - { - return $this->container['shipping_speed_category']; - } - - /** - * Sets shipping_speed_category - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory $shipping_speed_category shipping_speed_category - * - * @return self - */ - public function setShippingSpeedCategory($shipping_speed_category) - { - $this->container['shipping_speed_category'] = $shipping_speed_category; - - return $this; - } - /** - * Gets delivery_window - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow|null - */ - public function getDeliveryWindow() - { - return $this->container['delivery_window']; - } - - /** - * Sets delivery_window - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow|null $delivery_window delivery_window - * - * @return self - */ - public function setDeliveryWindow($delivery_window) - { - $this->container['delivery_window'] = $delivery_window; - - return $this; - } - /** - * Gets destination_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Address - */ - public function getDestinationAddress() - { - return $this->container['destination_address']; - } - - /** - * Sets destination_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Address $destination_address destination_address - * - * @return self - */ - public function setDestinationAddress($destination_address) - { - $this->container['destination_address'] = $destination_address; - - return $this; - } - /** - * Gets fulfillment_action - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null - */ - public function getFulfillmentAction() - { - return $this->container['fulfillment_action']; - } - - /** - * Sets fulfillment_action - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null $fulfillment_action fulfillment_action - * - * @return self - */ - public function setFulfillmentAction($fulfillment_action) - { - $this->container['fulfillment_action'] = $fulfillment_action; - - return $this; - } - /** - * Gets fulfillment_policy - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null - */ - public function getFulfillmentPolicy() - { - return $this->container['fulfillment_policy']; - } - - /** - * Sets fulfillment_policy - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null $fulfillment_policy fulfillment_policy - * - * @return self - */ - public function setFulfillmentPolicy($fulfillment_policy) - { - $this->container['fulfillment_policy'] = $fulfillment_policy; - - return $this; - } - /** - * Gets cod_settings - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings|null - */ - public function getCodSettings() - { - return $this->container['cod_settings']; - } - - /** - * Sets cod_settings - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CODSettings|null $cod_settings cod_settings - * - * @return self - */ - public function setCodSettings($cod_settings) - { - $this->container['cod_settings'] = $cod_settings; - - return $this; - } - /** - * Gets received_date - * - * @return string - */ - public function getReceivedDate() - { - return $this->container['received_date']; - } - - /** - * Sets received_date - * - * @param string $received_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setReceivedDate($received_date) - { - $this->container['received_date'] = $received_date; - - return $this; - } - /** - * Gets fulfillment_order_status - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus - */ - public function getFulfillmentOrderStatus() - { - return $this->container['fulfillment_order_status']; - } - - /** - * Sets fulfillment_order_status - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus $fulfillment_order_status fulfillment_order_status - * - * @return self - */ - public function setFulfillmentOrderStatus($fulfillment_order_status) - { - $this->container['fulfillment_order_status'] = $fulfillment_order_status; - - return $this; - } - /** - * Gets status_updated_date - * - * @return string - */ - public function getStatusUpdatedDate() - { - return $this->container['status_updated_date']; - } - - /** - * Sets status_updated_date - * - * @param string $status_updated_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setStatusUpdatedDate($status_updated_date) - { - $this->container['status_updated_date'] = $status_updated_date; - - return $this; - } - /** - * Gets notification_emails - * - * @return string[]|null - */ - public function getNotificationEmails() - { - return $this->container['notification_emails']; - } - - /** - * Sets notification_emails - * - * @param string[]|null $notification_emails 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. - * - * @return self - */ - public function setNotificationEmails($notification_emails) - { - $this->container['notification_emails'] = $notification_emails; - - return $this; - } - /** - * Gets feature_constraints - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null - */ - public function getFeatureConstraints() - { - return $this->container['feature_constraints']; - } - - /** - * Sets feature_constraints - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null $feature_constraints A list of features and their fulfillment policies to apply to the order. - * - * @return self - */ - public function setFeatureConstraints($feature_constraints) - { - $this->container['feature_constraints'] = $feature_constraints; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentOrderItem.php b/lib/Model/FbaOutboundV20200701/FulfillmentOrderItem.php deleted file mode 100644 index 50225817d..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentOrderItem.php +++ /dev/null @@ -1,554 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentOrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentOrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'quantity' => 'int', - 'gift_message' => 'string', - 'displayable_comment' => 'string', - 'fulfillment_network_sku' => 'string', - 'order_item_disposition' => 'string', - 'cancelled_quantity' => 'int', - 'unfulfillable_quantity' => 'int', - 'estimated_ship_date' => 'string', - 'estimated_arrival_date' => 'string', - 'per_unit_price' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_tax' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_declared_value' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'seller_fulfillment_order_item_id' => null, - 'quantity' => 'int32', - 'gift_message' => null, - 'displayable_comment' => null, - 'fulfillment_network_sku' => null, - 'order_item_disposition' => null, - 'cancelled_quantity' => 'int32', - 'unfulfillable_quantity' => 'int32', - 'estimated_ship_date' => null, - 'estimated_arrival_date' => null, - 'per_unit_price' => null, - 'per_unit_tax' => null, - 'per_unit_declared_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'quantity' => 'quantity', - 'gift_message' => 'giftMessage', - 'displayable_comment' => 'displayableComment', - 'fulfillment_network_sku' => 'fulfillmentNetworkSku', - 'order_item_disposition' => 'orderItemDisposition', - 'cancelled_quantity' => 'cancelledQuantity', - 'unfulfillable_quantity' => 'unfulfillableQuantity', - 'estimated_ship_date' => 'estimatedShipDate', - 'estimated_arrival_date' => 'estimatedArrivalDate', - 'per_unit_price' => 'perUnitPrice', - 'per_unit_tax' => 'perUnitTax', - 'per_unit_declared_value' => 'perUnitDeclaredValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'quantity' => 'setQuantity', - 'gift_message' => 'setGiftMessage', - 'displayable_comment' => 'setDisplayableComment', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'order_item_disposition' => 'setOrderItemDisposition', - 'cancelled_quantity' => 'setCancelledQuantity', - 'unfulfillable_quantity' => 'setUnfulfillableQuantity', - 'estimated_ship_date' => 'setEstimatedShipDate', - 'estimated_arrival_date' => 'setEstimatedArrivalDate', - 'per_unit_price' => 'setPerUnitPrice', - 'per_unit_tax' => 'setPerUnitTax', - 'per_unit_declared_value' => 'setPerUnitDeclaredValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'quantity' => 'getQuantity', - 'gift_message' => 'getGiftMessage', - 'displayable_comment' => 'getDisplayableComment', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'order_item_disposition' => 'getOrderItemDisposition', - 'cancelled_quantity' => 'getCancelledQuantity', - 'unfulfillable_quantity' => 'getUnfulfillableQuantity', - 'estimated_ship_date' => 'getEstimatedShipDate', - 'estimated_arrival_date' => 'getEstimatedArrivalDate', - 'per_unit_price' => 'getPerUnitPrice', - 'per_unit_tax' => 'getPerUnitTax', - 'per_unit_declared_value' => 'getPerUnitDeclaredValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['gift_message'] = $data['gift_message'] ?? null; - $this->container['displayable_comment'] = $data['displayable_comment'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['order_item_disposition'] = $data['order_item_disposition'] ?? null; - $this->container['cancelled_quantity'] = $data['cancelled_quantity'] ?? null; - $this->container['unfulfillable_quantity'] = $data['unfulfillable_quantity'] ?? null; - $this->container['estimated_ship_date'] = $data['estimated_ship_date'] ?? null; - $this->container['estimated_arrival_date'] = $data['estimated_arrival_date'] ?? null; - $this->container['per_unit_price'] = $data['per_unit_price'] ?? null; - $this->container['per_unit_tax'] = $data['per_unit_tax'] ?? null; - $this->container['per_unit_declared_value'] = $data['per_unit_declared_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['cancelled_quantity'] === null) { - $invalidProperties[] = "'cancelled_quantity' can't be null"; - } - if ($this->container['unfulfillable_quantity'] === null) { - $invalidProperties[] = "'unfulfillable_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier submitted with a call to the createFulfillmentOrder operation. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets gift_message - * - * @return string|null - */ - public function getGiftMessage() - { - return $this->container['gift_message']; - } - - /** - * Sets gift_message - * - * @param string|null $gift_message A message to the gift recipient, if applicable. - * - * @return self - */ - public function setGiftMessage($gift_message) - { - $this->container['gift_message'] = $gift_message; - - return $this; - } - /** - * Gets displayable_comment - * - * @return string|null - */ - public function getDisplayableComment() - { - return $this->container['displayable_comment']; - } - - /** - * Sets displayable_comment - * - * @param string|null $displayable_comment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. - * - * @return self - */ - public function setDisplayableComment($displayable_comment) - { - $this->container['displayable_comment'] = $displayable_comment; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku Amazon's fulfillment network SKU of the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets order_item_disposition - * - * @return string|null - */ - public function getOrderItemDisposition() - { - return $this->container['order_item_disposition']; - } - - /** - * Sets order_item_disposition - * - * @param string|null $order_item_disposition Indicates whether the item is sellable or unsellable. - * - * @return self - */ - public function setOrderItemDisposition($order_item_disposition) - { - $this->container['order_item_disposition'] = $order_item_disposition; - - return $this; - } - /** - * Gets cancelled_quantity - * - * @return int - */ - public function getCancelledQuantity() - { - return $this->container['cancelled_quantity']; - } - - /** - * Sets cancelled_quantity - * - * @param int $cancelled_quantity The item quantity. - * - * @return self - */ - public function setCancelledQuantity($cancelled_quantity) - { - $this->container['cancelled_quantity'] = $cancelled_quantity; - - return $this; - } - /** - * Gets unfulfillable_quantity - * - * @return int - */ - public function getUnfulfillableQuantity() - { - return $this->container['unfulfillable_quantity']; - } - - /** - * Sets unfulfillable_quantity - * - * @param int $unfulfillable_quantity The item quantity. - * - * @return self - */ - public function setUnfulfillableQuantity($unfulfillable_quantity) - { - $this->container['unfulfillable_quantity'] = $unfulfillable_quantity; - - return $this; - } - /** - * Gets estimated_ship_date - * - * @return string|null - */ - public function getEstimatedShipDate() - { - return $this->container['estimated_ship_date']; - } - - /** - * Sets estimated_ship_date - * - * @param string|null $estimated_ship_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEstimatedShipDate($estimated_ship_date) - { - $this->container['estimated_ship_date'] = $estimated_ship_date; - - return $this; - } - /** - * Gets estimated_arrival_date - * - * @return string|null - */ - public function getEstimatedArrivalDate() - { - return $this->container['estimated_arrival_date']; - } - - /** - * Sets estimated_arrival_date - * - * @param string|null $estimated_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEstimatedArrivalDate($estimated_arrival_date) - { - $this->container['estimated_arrival_date'] = $estimated_arrival_date; - - return $this; - } - /** - * Gets per_unit_price - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitPrice() - { - return $this->container['per_unit_price']; - } - - /** - * Sets per_unit_price - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_price per_unit_price - * - * @return self - */ - public function setPerUnitPrice($per_unit_price) - { - $this->container['per_unit_price'] = $per_unit_price; - - return $this; - } - /** - * Gets per_unit_tax - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitTax() - { - return $this->container['per_unit_tax']; - } - - /** - * Sets per_unit_tax - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_tax per_unit_tax - * - * @return self - */ - public function setPerUnitTax($per_unit_tax) - { - $this->container['per_unit_tax'] = $per_unit_tax; - - return $this; - } - /** - * Gets per_unit_declared_value - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitDeclaredValue() - { - return $this->container['per_unit_declared_value']; - } - - /** - * Sets per_unit_declared_value - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_declared_value per_unit_declared_value - * - * @return self - */ - public function setPerUnitDeclaredValue($per_unit_declared_value) - { - $this->container['per_unit_declared_value'] = $per_unit_declared_value; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentOrderStatus.php b/lib/Model/FbaOutboundV20200701/FulfillmentOrderStatus.php deleted file mode 100644 index d91e95360..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentOrderStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentPolicy.php b/lib/Model/FbaOutboundV20200701/FulfillmentPolicy.php deleted file mode 100644 index 2fe2bf2a4..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentPolicy.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentPreview.php b/lib/Model/FbaOutboundV20200701/FulfillmentPreview.php deleted file mode 100644 index 5881574c2..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentPreview.php +++ /dev/null @@ -1,464 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentPreview extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentPreview'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_speed_category' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory', - 'scheduled_delivery_info' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ScheduledDeliveryInfo', - 'is_fulfillable' => 'bool', - 'is_cod_capable' => 'bool', - 'estimated_shipping_weight' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Weight', - 'estimated_fees' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Fee[]', - 'fulfillment_preview_shipments' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewShipment[]', - 'unfulfillable_preview_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\UnfulfillablePreviewItem[]', - 'order_unfulfillable_reasons' => 'string[]', - 'marketplace_id' => 'string', - 'feature_constraints' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_speed_category' => null, - 'scheduled_delivery_info' => null, - 'is_fulfillable' => null, - 'is_cod_capable' => null, - 'estimated_shipping_weight' => null, - 'estimated_fees' => null, - 'fulfillment_preview_shipments' => null, - 'unfulfillable_preview_items' => null, - 'order_unfulfillable_reasons' => null, - 'marketplace_id' => null, - 'feature_constraints' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_speed_category' => 'shippingSpeedCategory', - 'scheduled_delivery_info' => 'scheduledDeliveryInfo', - 'is_fulfillable' => 'isFulfillable', - 'is_cod_capable' => 'isCODCapable', - 'estimated_shipping_weight' => 'estimatedShippingWeight', - 'estimated_fees' => 'estimatedFees', - 'fulfillment_preview_shipments' => 'fulfillmentPreviewShipments', - 'unfulfillable_preview_items' => 'unfulfillablePreviewItems', - 'order_unfulfillable_reasons' => 'orderUnfulfillableReasons', - 'marketplace_id' => 'marketplaceId', - 'feature_constraints' => 'featureConstraints' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipping_speed_category' => 'setShippingSpeedCategory', - 'scheduled_delivery_info' => 'setScheduledDeliveryInfo', - 'is_fulfillable' => 'setIsFulfillable', - 'is_cod_capable' => 'setIsCodCapable', - 'estimated_shipping_weight' => 'setEstimatedShippingWeight', - 'estimated_fees' => 'setEstimatedFees', - 'fulfillment_preview_shipments' => 'setFulfillmentPreviewShipments', - 'unfulfillable_preview_items' => 'setUnfulfillablePreviewItems', - 'order_unfulfillable_reasons' => 'setOrderUnfulfillableReasons', - 'marketplace_id' => 'setMarketplaceId', - 'feature_constraints' => 'setFeatureConstraints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipping_speed_category' => 'getShippingSpeedCategory', - 'scheduled_delivery_info' => 'getScheduledDeliveryInfo', - 'is_fulfillable' => 'getIsFulfillable', - 'is_cod_capable' => 'getIsCodCapable', - 'estimated_shipping_weight' => 'getEstimatedShippingWeight', - 'estimated_fees' => 'getEstimatedFees', - 'fulfillment_preview_shipments' => 'getFulfillmentPreviewShipments', - 'unfulfillable_preview_items' => 'getUnfulfillablePreviewItems', - 'order_unfulfillable_reasons' => 'getOrderUnfulfillableReasons', - 'marketplace_id' => 'getMarketplaceId', - 'feature_constraints' => 'getFeatureConstraints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_speed_category'] = $data['shipping_speed_category'] ?? null; - $this->container['scheduled_delivery_info'] = $data['scheduled_delivery_info'] ?? null; - $this->container['is_fulfillable'] = $data['is_fulfillable'] ?? null; - $this->container['is_cod_capable'] = $data['is_cod_capable'] ?? null; - $this->container['estimated_shipping_weight'] = $data['estimated_shipping_weight'] ?? null; - $this->container['estimated_fees'] = $data['estimated_fees'] ?? null; - $this->container['fulfillment_preview_shipments'] = $data['fulfillment_preview_shipments'] ?? null; - $this->container['unfulfillable_preview_items'] = $data['unfulfillable_preview_items'] ?? null; - $this->container['order_unfulfillable_reasons'] = $data['order_unfulfillable_reasons'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['feature_constraints'] = $data['feature_constraints'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipping_speed_category'] === null) { - $invalidProperties[] = "'shipping_speed_category' can't be null"; - } - if ($this->container['is_fulfillable'] === null) { - $invalidProperties[] = "'is_fulfillable' can't be null"; - } - if ($this->container['is_cod_capable'] === null) { - $invalidProperties[] = "'is_cod_capable' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipping_speed_category - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory - */ - public function getShippingSpeedCategory() - { - return $this->container['shipping_speed_category']; - } - - /** - * Sets shipping_speed_category - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory $shipping_speed_category shipping_speed_category - * - * @return self - */ - public function setShippingSpeedCategory($shipping_speed_category) - { - $this->container['shipping_speed_category'] = $shipping_speed_category; - - return $this; - } - /** - * Gets scheduled_delivery_info - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ScheduledDeliveryInfo|null - */ - public function getScheduledDeliveryInfo() - { - return $this->container['scheduled_delivery_info']; - } - - /** - * Sets scheduled_delivery_info - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ScheduledDeliveryInfo|null $scheduled_delivery_info scheduled_delivery_info - * - * @return self - */ - public function setScheduledDeliveryInfo($scheduled_delivery_info) - { - $this->container['scheduled_delivery_info'] = $scheduled_delivery_info; - - return $this; - } - /** - * Gets is_fulfillable - * - * @return bool - */ - public function getIsFulfillable() - { - return $this->container['is_fulfillable']; - } - - /** - * Sets is_fulfillable - * - * @param bool $is_fulfillable When true, this fulfillment order preview is fulfillable. - * - * @return self - */ - public function setIsFulfillable($is_fulfillable) - { - $this->container['is_fulfillable'] = $is_fulfillable; - - return $this; - } - /** - * Gets is_cod_capable - * - * @return bool - */ - public function getIsCodCapable() - { - return $this->container['is_cod_capable']; - } - - /** - * Sets is_cod_capable - * - * @param bool $is_cod_capable When true, this fulfillment order preview is for COD (Cash On Delivery). - * - * @return self - */ - public function setIsCodCapable($is_cod_capable) - { - $this->container['is_cod_capable'] = $is_cod_capable; - - return $this; - } - /** - * Gets estimated_shipping_weight - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Weight|null - */ - public function getEstimatedShippingWeight() - { - return $this->container['estimated_shipping_weight']; - } - - /** - * Sets estimated_shipping_weight - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Weight|null $estimated_shipping_weight estimated_shipping_weight - * - * @return self - */ - public function setEstimatedShippingWeight($estimated_shipping_weight) - { - $this->container['estimated_shipping_weight'] = $estimated_shipping_weight; - - return $this; - } - /** - * Gets estimated_fees - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Fee[]|null - */ - public function getEstimatedFees() - { - return $this->container['estimated_fees']; - } - - /** - * Sets estimated_fees - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Fee[]|null $estimated_fees An array of fee type and cost pairs. - * - * @return self - */ - public function setEstimatedFees($estimated_fees) - { - $this->container['estimated_fees'] = $estimated_fees; - - return $this; - } - /** - * Gets fulfillment_preview_shipments - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewShipment[]|null - */ - public function getFulfillmentPreviewShipments() - { - return $this->container['fulfillment_preview_shipments']; - } - - /** - * Sets fulfillment_preview_shipments - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewShipment[]|null $fulfillment_preview_shipments An array of fulfillment preview shipment information. - * - * @return self - */ - public function setFulfillmentPreviewShipments($fulfillment_preview_shipments) - { - $this->container['fulfillment_preview_shipments'] = $fulfillment_preview_shipments; - - return $this; - } - /** - * Gets unfulfillable_preview_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\UnfulfillablePreviewItem[]|null - */ - public function getUnfulfillablePreviewItems() - { - return $this->container['unfulfillable_preview_items']; - } - - /** - * Sets unfulfillable_preview_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UnfulfillablePreviewItem[]|null $unfulfillable_preview_items An array of unfulfillable preview item information. - * - * @return self - */ - public function setUnfulfillablePreviewItems($unfulfillable_preview_items) - { - $this->container['unfulfillable_preview_items'] = $unfulfillable_preview_items; - - return $this; - } - /** - * Gets order_unfulfillable_reasons - * - * @return string[]|null - */ - public function getOrderUnfulfillableReasons() - { - return $this->container['order_unfulfillable_reasons']; - } - - /** - * Sets order_unfulfillable_reasons - * - * @param string[]|null $order_unfulfillable_reasons order_unfulfillable_reasons - * - * @return self - */ - public function setOrderUnfulfillableReasons($order_unfulfillable_reasons) - { - $this->container['order_unfulfillable_reasons'] = $order_unfulfillable_reasons; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The marketplace the fulfillment order is placed against. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets feature_constraints - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null - */ - public function getFeatureConstraints() - { - return $this->container['feature_constraints']; - } - - /** - * Sets feature_constraints - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null $feature_constraints A list of features and their fulfillment policies to apply to the order. - * - * @return self - */ - public function setFeatureConstraints($feature_constraints) - { - $this->container['feature_constraints'] = $feature_constraints; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentPreviewItem.php b/lib/Model/FbaOutboundV20200701/FulfillmentPreviewItem.php deleted file mode 100644 index 6f7892ab4..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentPreviewItem.php +++ /dev/null @@ -1,331 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentPreviewItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentPreviewItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'quantity' => 'int', - 'seller_fulfillment_order_item_id' => 'string', - 'estimated_shipping_weight' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Weight', - 'shipping_weight_calculation_method' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'quantity' => 'int32', - 'seller_fulfillment_order_item_id' => null, - 'estimated_shipping_weight' => null, - 'shipping_weight_calculation_method' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'quantity' => 'quantity', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'estimated_shipping_weight' => 'estimatedShippingWeight', - 'shipping_weight_calculation_method' => 'shippingWeightCalculationMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'quantity' => 'setQuantity', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'estimated_shipping_weight' => 'setEstimatedShippingWeight', - 'shipping_weight_calculation_method' => 'setShippingWeightCalculationMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'quantity' => 'getQuantity', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'estimated_shipping_weight' => 'getEstimatedShippingWeight', - 'shipping_weight_calculation_method' => 'getShippingWeightCalculationMethod' - ]; - - - - const SHIPPING_WEIGHT_CALCULATION_METHOD_PACKAGE = 'Package'; - const SHIPPING_WEIGHT_CALCULATION_METHOD_DIMENSIONAL = 'Dimensional'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShippingWeightCalculationMethodAllowableValues() - { - $baseVals = [ - self::SHIPPING_WEIGHT_CALCULATION_METHOD_PACKAGE, - self::SHIPPING_WEIGHT_CALCULATION_METHOD_DIMENSIONAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['estimated_shipping_weight'] = $data['estimated_shipping_weight'] ?? null; - $this->container['shipping_weight_calculation_method'] = $data['shipping_weight_calculation_method'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - $allowedValues = $this->getShippingWeightCalculationMethodAllowableValues(); - if ( - !is_null($this->container['shipping_weight_calculation_method']) && - !in_array(strtoupper($this->container['shipping_weight_calculation_method']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipping_weight_calculation_method', must be one of '%s'", - $this->container['shipping_weight_calculation_method'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier that the seller created with a call to the createFulfillmentOrder operation. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets estimated_shipping_weight - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Weight|null - */ - public function getEstimatedShippingWeight() - { - return $this->container['estimated_shipping_weight']; - } - - /** - * Sets estimated_shipping_weight - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Weight|null $estimated_shipping_weight estimated_shipping_weight - * - * @return self - */ - public function setEstimatedShippingWeight($estimated_shipping_weight) - { - $this->container['estimated_shipping_weight'] = $estimated_shipping_weight; - - return $this; - } - /** - * Gets shipping_weight_calculation_method - * - * @return string|null - */ - public function getShippingWeightCalculationMethod() - { - return $this->container['shipping_weight_calculation_method']; - } - - /** - * Sets shipping_weight_calculation_method - * - * @param string|null $shipping_weight_calculation_method The method used to calculate the estimated shipping weight. - * - * @return self - */ - public function setShippingWeightCalculationMethod($shipping_weight_calculation_method) - { - $allowedValues = $this->getShippingWeightCalculationMethodAllowableValues(); - if (!is_null($shipping_weight_calculation_method) &&!in_array(strtoupper($shipping_weight_calculation_method), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipping_weight_calculation_method', must be one of '%s'", - $shipping_weight_calculation_method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipping_weight_calculation_method'] = $shipping_weight_calculation_method; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.php b/lib/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.php deleted file mode 100644 index ab8a316d7..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentPreviewShipment.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentPreviewShipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentPreviewShipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'earliest_ship_date' => 'string', - 'latest_ship_date' => 'string', - 'earliest_arrival_date' => 'string', - 'latest_arrival_date' => 'string', - 'shipping_notes' => 'string[]', - 'fulfillment_preview_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'earliest_ship_date' => null, - 'latest_ship_date' => null, - 'earliest_arrival_date' => null, - 'latest_arrival_date' => null, - 'shipping_notes' => null, - 'fulfillment_preview_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'earliest_ship_date' => 'earliestShipDate', - 'latest_ship_date' => 'latestShipDate', - 'earliest_arrival_date' => 'earliestArrivalDate', - 'latest_arrival_date' => 'latestArrivalDate', - 'shipping_notes' => 'shippingNotes', - 'fulfillment_preview_items' => 'fulfillmentPreviewItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'earliest_ship_date' => 'setEarliestShipDate', - 'latest_ship_date' => 'setLatestShipDate', - 'earliest_arrival_date' => 'setEarliestArrivalDate', - 'latest_arrival_date' => 'setLatestArrivalDate', - 'shipping_notes' => 'setShippingNotes', - 'fulfillment_preview_items' => 'setFulfillmentPreviewItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'earliest_ship_date' => 'getEarliestShipDate', - 'latest_ship_date' => 'getLatestShipDate', - 'earliest_arrival_date' => 'getEarliestArrivalDate', - 'latest_arrival_date' => 'getLatestArrivalDate', - 'shipping_notes' => 'getShippingNotes', - 'fulfillment_preview_items' => 'getFulfillmentPreviewItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['earliest_ship_date'] = $data['earliest_ship_date'] ?? null; - $this->container['latest_ship_date'] = $data['latest_ship_date'] ?? null; - $this->container['earliest_arrival_date'] = $data['earliest_arrival_date'] ?? null; - $this->container['latest_arrival_date'] = $data['latest_arrival_date'] ?? null; - $this->container['shipping_notes'] = $data['shipping_notes'] ?? null; - $this->container['fulfillment_preview_items'] = $data['fulfillment_preview_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fulfillment_preview_items'] === null) { - $invalidProperties[] = "'fulfillment_preview_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets earliest_ship_date - * - * @return string|null - */ - public function getEarliestShipDate() - { - return $this->container['earliest_ship_date']; - } - - /** - * Sets earliest_ship_date - * - * @param string|null $earliest_ship_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEarliestShipDate($earliest_ship_date) - { - $this->container['earliest_ship_date'] = $earliest_ship_date; - - return $this; - } - /** - * Gets latest_ship_date - * - * @return string|null - */ - public function getLatestShipDate() - { - return $this->container['latest_ship_date']; - } - - /** - * Sets latest_ship_date - * - * @param string|null $latest_ship_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setLatestShipDate($latest_ship_date) - { - $this->container['latest_ship_date'] = $latest_ship_date; - - return $this; - } - /** - * Gets earliest_arrival_date - * - * @return string|null - */ - public function getEarliestArrivalDate() - { - return $this->container['earliest_arrival_date']; - } - - /** - * Sets earliest_arrival_date - * - * @param string|null $earliest_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEarliestArrivalDate($earliest_arrival_date) - { - $this->container['earliest_arrival_date'] = $earliest_arrival_date; - - return $this; - } - /** - * Gets latest_arrival_date - * - * @return string|null - */ - public function getLatestArrivalDate() - { - return $this->container['latest_arrival_date']; - } - - /** - * Sets latest_arrival_date - * - * @param string|null $latest_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setLatestArrivalDate($latest_arrival_date) - { - $this->container['latest_arrival_date'] = $latest_arrival_date; - - return $this; - } - /** - * Gets shipping_notes - * - * @return string[]|null - */ - public function getShippingNotes() - { - return $this->container['shipping_notes']; - } - - /** - * Sets shipping_notes - * - * @param string[]|null $shipping_notes Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed. - * - * @return self - */ - public function setShippingNotes($shipping_notes) - { - $this->container['shipping_notes'] = $shipping_notes; - - return $this; - } - /** - * Gets fulfillment_preview_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewItem[] - */ - public function getFulfillmentPreviewItems() - { - return $this->container['fulfillment_preview_items']; - } - - /** - * Sets fulfillment_preview_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreviewItem[] $fulfillment_preview_items An array of fulfillment preview item information. - * - * @return self - */ - public function setFulfillmentPreviewItems($fulfillment_preview_items) - { - $this->container['fulfillment_preview_items'] = $fulfillment_preview_items; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.php b/lib/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.php deleted file mode 100644 index cf40d85c3..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentReturnItemStatus.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentShipment.php b/lib/Model/FbaOutboundV20200701/FulfillmentShipment.php deleted file mode 100644 index 98a7449e0..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentShipment.php +++ /dev/null @@ -1,425 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentShipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentShipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_shipment_id' => 'string', - 'fulfillment_center_id' => 'string', - 'fulfillment_shipment_status' => 'string', - 'shipping_date' => 'string', - 'estimated_arrival_date' => 'string', - 'shipping_notes' => 'string[]', - 'fulfillment_shipment_item' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentItem[]', - 'fulfillment_shipment_package' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentPackage[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_shipment_id' => null, - 'fulfillment_center_id' => null, - 'fulfillment_shipment_status' => null, - 'shipping_date' => null, - 'estimated_arrival_date' => null, - 'shipping_notes' => null, - 'fulfillment_shipment_item' => null, - 'fulfillment_shipment_package' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_shipment_id' => 'amazonShipmentId', - 'fulfillment_center_id' => 'fulfillmentCenterId', - 'fulfillment_shipment_status' => 'fulfillmentShipmentStatus', - 'shipping_date' => 'shippingDate', - 'estimated_arrival_date' => 'estimatedArrivalDate', - 'shipping_notes' => 'shippingNotes', - 'fulfillment_shipment_item' => 'fulfillmentShipmentItem', - 'fulfillment_shipment_package' => 'fulfillmentShipmentPackage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_shipment_id' => 'setAmazonShipmentId', - 'fulfillment_center_id' => 'setFulfillmentCenterId', - 'fulfillment_shipment_status' => 'setFulfillmentShipmentStatus', - 'shipping_date' => 'setShippingDate', - 'estimated_arrival_date' => 'setEstimatedArrivalDate', - 'shipping_notes' => 'setShippingNotes', - 'fulfillment_shipment_item' => 'setFulfillmentShipmentItem', - 'fulfillment_shipment_package' => 'setFulfillmentShipmentPackage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_shipment_id' => 'getAmazonShipmentId', - 'fulfillment_center_id' => 'getFulfillmentCenterId', - 'fulfillment_shipment_status' => 'getFulfillmentShipmentStatus', - 'shipping_date' => 'getShippingDate', - 'estimated_arrival_date' => 'getEstimatedArrivalDate', - 'shipping_notes' => 'getShippingNotes', - 'fulfillment_shipment_item' => 'getFulfillmentShipmentItem', - 'fulfillment_shipment_package' => 'getFulfillmentShipmentPackage' - ]; - - - - const FULFILLMENT_SHIPMENT_STATUS_PENDING = 'PENDING'; - const FULFILLMENT_SHIPMENT_STATUS_SHIPPED = 'SHIPPED'; - const FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_FULFILLER = 'CANCELLED_BY_FULFILLER'; - const FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_SELLER = 'CANCELLED_BY_SELLER'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFulfillmentShipmentStatusAllowableValues() - { - $baseVals = [ - self::FULFILLMENT_SHIPMENT_STATUS_PENDING, - self::FULFILLMENT_SHIPMENT_STATUS_SHIPPED, - self::FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_FULFILLER, - self::FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_SELLER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_shipment_id'] = $data['amazon_shipment_id'] ?? null; - $this->container['fulfillment_center_id'] = $data['fulfillment_center_id'] ?? null; - $this->container['fulfillment_shipment_status'] = $data['fulfillment_shipment_status'] ?? null; - $this->container['shipping_date'] = $data['shipping_date'] ?? null; - $this->container['estimated_arrival_date'] = $data['estimated_arrival_date'] ?? null; - $this->container['shipping_notes'] = $data['shipping_notes'] ?? null; - $this->container['fulfillment_shipment_item'] = $data['fulfillment_shipment_item'] ?? null; - $this->container['fulfillment_shipment_package'] = $data['fulfillment_shipment_package'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_shipment_id'] === null) { - $invalidProperties[] = "'amazon_shipment_id' can't be null"; - } - if ($this->container['fulfillment_center_id'] === null) { - $invalidProperties[] = "'fulfillment_center_id' can't be null"; - } - if ($this->container['fulfillment_shipment_status'] === null) { - $invalidProperties[] = "'fulfillment_shipment_status' can't be null"; - } - $allowedValues = $this->getFulfillmentShipmentStatusAllowableValues(); - if ( - !is_null($this->container['fulfillment_shipment_status']) && - !in_array(strtoupper($this->container['fulfillment_shipment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'fulfillment_shipment_status', must be one of '%s'", - $this->container['fulfillment_shipment_status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['fulfillment_shipment_item'] === null) { - $invalidProperties[] = "'fulfillment_shipment_item' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_shipment_id - * - * @return string - */ - public function getAmazonShipmentId() - { - return $this->container['amazon_shipment_id']; - } - - /** - * Sets amazon_shipment_id - * - * @param string $amazon_shipment_id A shipment identifier assigned by Amazon. - * - * @return self - */ - public function setAmazonShipmentId($amazon_shipment_id) - { - $this->container['amazon_shipment_id'] = $amazon_shipment_id; - - return $this; - } - /** - * Gets fulfillment_center_id - * - * @return string - */ - public function getFulfillmentCenterId() - { - return $this->container['fulfillment_center_id']; - } - - /** - * Sets fulfillment_center_id - * - * @param string $fulfillment_center_id An identifier for the fulfillment center that the shipment will be sent from. - * - * @return self - */ - public function setFulfillmentCenterId($fulfillment_center_id) - { - $this->container['fulfillment_center_id'] = $fulfillment_center_id; - - return $this; - } - /** - * Gets fulfillment_shipment_status - * - * @return string - */ - public function getFulfillmentShipmentStatus() - { - return $this->container['fulfillment_shipment_status']; - } - - /** - * Sets fulfillment_shipment_status - * - * @param string $fulfillment_shipment_status The current status of the shipment. - * - * @return self - */ - public function setFulfillmentShipmentStatus($fulfillment_shipment_status) - { - $allowedValues = $this->getFulfillmentShipmentStatusAllowableValues(); - if (!in_array(strtoupper($fulfillment_shipment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'fulfillment_shipment_status', must be one of '%s'", - $fulfillment_shipment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['fulfillment_shipment_status'] = $fulfillment_shipment_status; - - return $this; - } - /** - * Gets shipping_date - * - * @return string|null - */ - public function getShippingDate() - { - return $this->container['shipping_date']; - } - - /** - * Sets shipping_date - * - * @param string|null $shipping_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setShippingDate($shipping_date) - { - $this->container['shipping_date'] = $shipping_date; - - return $this; - } - /** - * Gets estimated_arrival_date - * - * @return string|null - */ - public function getEstimatedArrivalDate() - { - return $this->container['estimated_arrival_date']; - } - - /** - * Sets estimated_arrival_date - * - * @param string|null $estimated_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEstimatedArrivalDate($estimated_arrival_date) - { - $this->container['estimated_arrival_date'] = $estimated_arrival_date; - - return $this; - } - /** - * Gets shipping_notes - * - * @return string[]|null - */ - public function getShippingNotes() - { - return $this->container['shipping_notes']; - } - - /** - * Sets shipping_notes - * - * @param string[]|null $shipping_notes Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available. - * - * @return self - */ - public function setShippingNotes($shipping_notes) - { - $this->container['shipping_notes'] = $shipping_notes; - - return $this; - } - /** - * Gets fulfillment_shipment_item - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentItem[] - */ - public function getFulfillmentShipmentItem() - { - return $this->container['fulfillment_shipment_item']; - } - - /** - * Sets fulfillment_shipment_item - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentItem[] $fulfillment_shipment_item An array of fulfillment shipment item information. - * - * @return self - */ - public function setFulfillmentShipmentItem($fulfillment_shipment_item) - { - $this->container['fulfillment_shipment_item'] = $fulfillment_shipment_item; - - return $this; - } - /** - * Gets fulfillment_shipment_package - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentPackage[]|null - */ - public function getFulfillmentShipmentPackage() - { - return $this->container['fulfillment_shipment_package']; - } - - /** - * Sets fulfillment_shipment_package - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipmentPackage[]|null $fulfillment_shipment_package An array of fulfillment shipment package information. - * - * @return self - */ - public function setFulfillmentShipmentPackage($fulfillment_shipment_package) - { - $this->container['fulfillment_shipment_package'] = $fulfillment_shipment_package; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentShipmentItem.php b/lib/Model/FbaOutboundV20200701/FulfillmentShipmentItem.php deleted file mode 100644 index 267f1fd80..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentShipmentItem.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentShipmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentShipmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'quantity' => 'int', - 'package_number' => 'int', - 'serial_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'seller_fulfillment_order_item_id' => null, - 'quantity' => 'int32', - 'package_number' => 'int32', - 'serial_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'quantity' => 'quantity', - 'package_number' => 'packageNumber', - 'serial_number' => 'serialNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'quantity' => 'setQuantity', - 'package_number' => 'setPackageNumber', - 'serial_number' => 'setSerialNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'quantity' => 'getQuantity', - 'package_number' => 'getPackageNumber', - 'serial_number' => 'getSerialNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['package_number'] = $data['package_number'] ?? null; - $this->container['serial_number'] = $data['serial_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id The fulfillment order item identifier that the seller created and submitted with a call to the createFulfillmentOrder operation. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets package_number - * - * @return int|null - */ - public function getPackageNumber() - { - return $this->container['package_number']; - } - - /** - * Sets package_number - * - * @param int|null $package_number An identifier for the package that contains the item quantity. - * - * @return self - */ - public function setPackageNumber($package_number) - { - $this->container['package_number'] = $package_number; - - return $this; - } - /** - * Gets serial_number - * - * @return string|null - */ - public function getSerialNumber() - { - return $this->container['serial_number']; - } - - /** - * Sets serial_number - * - * @param string|null $serial_number The serial number of the shipped item. - * - * @return self - */ - public function setSerialNumber($serial_number) - { - $this->container['serial_number'] = $serial_number; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.php b/lib/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.php deleted file mode 100644 index 5138e3c8e..000000000 --- a/lib/Model/FbaOutboundV20200701/FulfillmentShipmentPackage.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentShipmentPackage extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentShipmentPackage'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_number' => 'int', - 'carrier_code' => 'string', - 'tracking_number' => 'string', - 'estimated_arrival_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_number' => 'int32', - 'carrier_code' => null, - 'tracking_number' => null, - 'estimated_arrival_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_number' => 'packageNumber', - 'carrier_code' => 'carrierCode', - 'tracking_number' => 'trackingNumber', - 'estimated_arrival_date' => 'estimatedArrivalDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_number' => 'setPackageNumber', - 'carrier_code' => 'setCarrierCode', - 'tracking_number' => 'setTrackingNumber', - 'estimated_arrival_date' => 'setEstimatedArrivalDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_number' => 'getPackageNumber', - 'carrier_code' => 'getCarrierCode', - 'tracking_number' => 'getTrackingNumber', - 'estimated_arrival_date' => 'getEstimatedArrivalDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_number'] = $data['package_number'] ?? null; - $this->container['carrier_code'] = $data['carrier_code'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['estimated_arrival_date'] = $data['estimated_arrival_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_number'] === null) { - $invalidProperties[] = "'package_number' can't be null"; - } - if ($this->container['carrier_code'] === null) { - $invalidProperties[] = "'carrier_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_number - * - * @return int - */ - public function getPackageNumber() - { - return $this->container['package_number']; - } - - /** - * Sets package_number - * - * @param int $package_number Identifies a package in a shipment. - * - * @return self - */ - public function setPackageNumber($package_number) - { - $this->container['package_number'] = $package_number; - - return $this; - } - /** - * Gets carrier_code - * - * @return string - */ - public function getCarrierCode() - { - return $this->container['carrier_code']; - } - - /** - * Sets carrier_code - * - * @param string $carrier_code Identifies the carrier who will deliver the shipment to the recipient. - * - * @return self - */ - public function setCarrierCode($carrier_code) - { - $this->container['carrier_code'] = $carrier_code; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number The tracking number, if provided, can be used to obtain tracking and delivery information. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets estimated_arrival_date - * - * @return string|null - */ - public function getEstimatedArrivalDate() - { - return $this->container['estimated_arrival_date']; - } - - /** - * Sets estimated_arrival_date - * - * @param string|null $estimated_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEstimatedArrivalDate($estimated_arrival_date) - { - $this->container['estimated_arrival_date'] = $estimated_arrival_date; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.php b/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.php deleted file mode 100644 index cd5af1cd2..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeatureInventoryResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeatureInventoryResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureInventoryResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResult.php b/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResult.php deleted file mode 100644 index 0864ad2fc..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeatureInventoryResult.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeatureInventoryResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeatureInventoryResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'feature_name' => 'string', - 'next_token' => 'string', - 'feature_skus' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'feature_name' => null, - 'next_token' => null, - 'feature_skus' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'feature_name' => 'featureName', - 'next_token' => 'nextToken', - 'feature_skus' => 'featureSkus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'feature_name' => 'setFeatureName', - 'next_token' => 'setNextToken', - 'feature_skus' => 'setFeatureSkus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'feature_name' => 'getFeatureName', - 'next_token' => 'getNextToken', - 'feature_skus' => 'getFeatureSkus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['feature_name'] = $data['feature_name'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['feature_skus'] = $data['feature_skus'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['feature_name'] === null) { - $invalidProperties[] = "'feature_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The requested marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets feature_name - * - * @return string - */ - public function getFeatureName() - { - return $this->container['feature_name']; - } - - /** - * Sets feature_name - * - * @param string $feature_name The name of the feature. - * - * @return self - */ - public function setFeatureName($feature_name) - { - $this->container['feature_name'] = $feature_name; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets feature_skus - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku[]|null - */ - public function getFeatureSkus() - { - return $this->container['feature_skus']; - } - - /** - * Sets feature_skus - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku[]|null $feature_skus An array of SKUs eligible for this feature and the quantity available. - * - * @return self - */ - public function setFeatureSkus($feature_skus) - { - $this->container['feature_skus'] = $feature_skus; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeatureSkuResponse.php b/lib/Model/FbaOutboundV20200701/GetFeatureSkuResponse.php deleted file mode 100644 index 8a74fddab..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeatureSkuResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeatureSkuResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeatureSkuResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeatureSkuResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeatureSkuResult.php b/lib/Model/FbaOutboundV20200701/GetFeatureSkuResult.php deleted file mode 100644 index b5ea61e38..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeatureSkuResult.php +++ /dev/null @@ -1,291 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeatureSkuResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeatureSkuResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'feature_name' => 'string', - 'is_eligible' => 'bool', - 'ineligible_reasons' => 'string[]', - 'sku_info' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'feature_name' => null, - 'is_eligible' => null, - 'ineligible_reasons' => null, - 'sku_info' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'feature_name' => 'featureName', - 'is_eligible' => 'isEligible', - 'ineligible_reasons' => 'ineligibleReasons', - 'sku_info' => 'skuInfo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'feature_name' => 'setFeatureName', - 'is_eligible' => 'setIsEligible', - 'ineligible_reasons' => 'setIneligibleReasons', - 'sku_info' => 'setSkuInfo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'feature_name' => 'getFeatureName', - 'is_eligible' => 'getIsEligible', - 'ineligible_reasons' => 'getIneligibleReasons', - 'sku_info' => 'getSkuInfo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['feature_name'] = $data['feature_name'] ?? null; - $this->container['is_eligible'] = $data['is_eligible'] ?? null; - $this->container['ineligible_reasons'] = $data['ineligible_reasons'] ?? null; - $this->container['sku_info'] = $data['sku_info'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['feature_name'] === null) { - $invalidProperties[] = "'feature_name' can't be null"; - } - if ($this->container['is_eligible'] === null) { - $invalidProperties[] = "'is_eligible' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The requested marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets feature_name - * - * @return string - */ - public function getFeatureName() - { - return $this->container['feature_name']; - } - - /** - * Sets feature_name - * - * @param string $feature_name The name of the feature. - * - * @return self - */ - public function setFeatureName($feature_name) - { - $this->container['feature_name'] = $feature_name; - - return $this; - } - /** - * Gets is_eligible - * - * @return bool - */ - public function getIsEligible() - { - return $this->container['is_eligible']; - } - - /** - * Sets is_eligible - * - * @param bool $is_eligible When true, the seller SKU is eligible for the requested feature. - * - * @return self - */ - public function setIsEligible($is_eligible) - { - $this->container['is_eligible'] = $is_eligible; - - return $this; - } - /** - * Gets ineligible_reasons - * - * @return string[]|null - */ - public function getIneligibleReasons() - { - return $this->container['ineligible_reasons']; - } - - /** - * Sets ineligible_reasons - * - * @param string[]|null $ineligible_reasons A list of one or more reasons that the seller SKU is ineligibile for the feature. - * Possible values: - * * MERCHANT_NOT_ENROLLED - The merchant isn't enrolled for the feature. - * * SKU_NOT_ELIGIBLE - The SKU doesn't reside in a warehouse that supports the feature. - * * INVALID_SKU - There is an issue with the SKU provided. - * - * @return self - */ - public function setIneligibleReasons($ineligible_reasons) - { - $this->container['ineligible_reasons'] = $ineligible_reasons; - - return $this; - } - /** - * Gets sku_info - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku|null - */ - public function getSkuInfo() - { - return $this->container['sku_info']; - } - - /** - * Sets sku_info - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSku|null $sku_info sku_info - * - * @return self - */ - public function setSkuInfo($sku_info) - { - $this->container['sku_info'] = $sku_info; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeaturesResponse.php b/lib/Model/FbaOutboundV20200701/GetFeaturesResponse.php deleted file mode 100644 index 076a23624..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeaturesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeaturesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeaturesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFeaturesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFeaturesResult.php b/lib/Model/FbaOutboundV20200701/GetFeaturesResult.php deleted file mode 100644 index e14c2fa5b..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFeaturesResult.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeaturesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeaturesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'features' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Feature[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'features' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'features' => 'features' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'features' => 'setFeatures' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'features' => 'getFeatures' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['features'] = $data['features'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['features'] === null) { - $invalidProperties[] = "'features' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets features - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Feature[] - */ - public function getFeatures() - { - return $this->container['features']; - } - - /** - * Sets features - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Feature[] $features An array of features. - * - * @return self - */ - public function setFeatures($features) - { - $this->container['features'] = $features; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.php deleted file mode 100644 index 31da5d1b9..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentOrderResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.php deleted file mode 100644 index d82b3b980..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentOrderResult.php +++ /dev/null @@ -1,289 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentOrderResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentOrderResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_order' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder', - 'fulfillment_order_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderItem[]', - 'fulfillment_shipments' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipment[]', - 'return_items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[]', - 'return_authorizations' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_order' => null, - 'fulfillment_order_items' => null, - 'fulfillment_shipments' => null, - 'return_items' => null, - 'return_authorizations' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_order' => 'fulfillmentOrder', - 'fulfillment_order_items' => 'fulfillmentOrderItems', - 'fulfillment_shipments' => 'fulfillmentShipments', - 'return_items' => 'returnItems', - 'return_authorizations' => 'returnAuthorizations' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_order' => 'setFulfillmentOrder', - 'fulfillment_order_items' => 'setFulfillmentOrderItems', - 'fulfillment_shipments' => 'setFulfillmentShipments', - 'return_items' => 'setReturnItems', - 'return_authorizations' => 'setReturnAuthorizations' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_order' => 'getFulfillmentOrder', - 'fulfillment_order_items' => 'getFulfillmentOrderItems', - 'fulfillment_shipments' => 'getFulfillmentShipments', - 'return_items' => 'getReturnItems', - 'return_authorizations' => 'getReturnAuthorizations' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_order'] = $data['fulfillment_order'] ?? null; - $this->container['fulfillment_order_items'] = $data['fulfillment_order_items'] ?? null; - $this->container['fulfillment_shipments'] = $data['fulfillment_shipments'] ?? null; - $this->container['return_items'] = $data['return_items'] ?? null; - $this->container['return_authorizations'] = $data['return_authorizations'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fulfillment_order'] === null) { - $invalidProperties[] = "'fulfillment_order' can't be null"; - } - if ($this->container['fulfillment_order_items'] === null) { - $invalidProperties[] = "'fulfillment_order_items' can't be null"; - } - if ($this->container['return_items'] === null) { - $invalidProperties[] = "'return_items' can't be null"; - } - if ($this->container['return_authorizations'] === null) { - $invalidProperties[] = "'return_authorizations' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fulfillment_order - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder - */ - public function getFulfillmentOrder() - { - return $this->container['fulfillment_order']; - } - - /** - * Sets fulfillment_order - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder $fulfillment_order fulfillment_order - * - * @return self - */ - public function setFulfillmentOrder($fulfillment_order) - { - $this->container['fulfillment_order'] = $fulfillment_order; - - return $this; - } - /** - * Gets fulfillment_order_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderItem[] - */ - public function getFulfillmentOrderItems() - { - return $this->container['fulfillment_order_items']; - } - - /** - * Sets fulfillment_order_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderItem[] $fulfillment_order_items An array of fulfillment order item information. - * - * @return self - */ - public function setFulfillmentOrderItems($fulfillment_order_items) - { - $this->container['fulfillment_order_items'] = $fulfillment_order_items; - - return $this; - } - /** - * Gets fulfillment_shipments - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipment[]|null - */ - public function getFulfillmentShipments() - { - return $this->container['fulfillment_shipments']; - } - - /** - * Sets fulfillment_shipments - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentShipment[]|null $fulfillment_shipments An array of fulfillment shipment information. - * - * @return self - */ - public function setFulfillmentShipments($fulfillment_shipments) - { - $this->container['fulfillment_shipments'] = $fulfillment_shipments; - - return $this; - } - /** - * Gets return_items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[] - */ - public function getReturnItems() - { - return $this->container['return_items']; - } - - /** - * Sets return_items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItem[] $return_items An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. - * - * @return self - */ - public function setReturnItems($return_items) - { - $this->container['return_items'] = $return_items; - - return $this; - } - /** - * Gets return_authorizations - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[] - */ - public function getReturnAuthorizations() - { - return $this->container['return_authorizations']; - } - - /** - * Sets return_authorizations - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnAuthorization[] $return_authorizations An array of return authorization information. - * - * @return self - */ - public function setReturnAuthorizations($return_authorizations) - { - $this->container['return_authorizations'] = $return_authorizations; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.php deleted file mode 100644 index 23ef8d172..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewItem.php +++ /dev/null @@ -1,274 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentPreviewItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentPreviewItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'quantity' => 'int', - 'per_unit_declared_value' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'seller_fulfillment_order_item_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'quantity' => 'int32', - 'per_unit_declared_value' => null, - 'seller_fulfillment_order_item_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'quantity' => 'quantity', - 'per_unit_declared_value' => 'perUnitDeclaredValue', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'quantity' => 'setQuantity', - 'per_unit_declared_value' => 'setPerUnitDeclaredValue', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'quantity' => 'getQuantity', - 'per_unit_declared_value' => 'getPerUnitDeclaredValue', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['per_unit_declared_value'] = $data['per_unit_declared_value'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ((mb_strlen($this->container['seller_sku']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_sku', the character length must be smaller than or equal to 50."; - } - - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ((mb_strlen($this->container['seller_fulfillment_order_item_id']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_fulfillment_order_item_id', the character length must be smaller than or equal to 50."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - if ((mb_strlen($seller_sku) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_sku when calling GetFulfillmentPreviewItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets per_unit_declared_value - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitDeclaredValue() - { - return $this->container['per_unit_declared_value']; - } - - /** - * Sets per_unit_declared_value - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_declared_value per_unit_declared_value - * - * @return self - */ - public function setPerUnitDeclaredValue($per_unit_declared_value) - { - $this->container['per_unit_declared_value'] = $per_unit_declared_value; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier that the seller creates to track items in the fulfillment preview. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - if ((mb_strlen($seller_fulfillment_order_item_id) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_fulfillment_order_item_id when calling GetFulfillmentPreviewItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.php deleted file mode 100644 index 0f9c496ef..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewRequest.php +++ /dev/null @@ -1,342 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentPreviewRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentPreviewRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Address', - 'items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewItem[]', - 'shipping_speed_categories' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory[]', - 'include_cod_fulfillment_preview' => 'bool', - 'include_delivery_windows' => 'bool', - 'feature_constraints' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'address' => null, - 'items' => null, - 'shipping_speed_categories' => null, - 'include_cod_fulfillment_preview' => null, - 'include_delivery_windows' => null, - 'feature_constraints' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'address' => 'address', - 'items' => 'items', - 'shipping_speed_categories' => 'shippingSpeedCategories', - 'include_cod_fulfillment_preview' => 'includeCODFulfillmentPreview', - 'include_delivery_windows' => 'includeDeliveryWindows', - 'feature_constraints' => 'featureConstraints' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'address' => 'setAddress', - 'items' => 'setItems', - 'shipping_speed_categories' => 'setShippingSpeedCategories', - 'include_cod_fulfillment_preview' => 'setIncludeCodFulfillmentPreview', - 'include_delivery_windows' => 'setIncludeDeliveryWindows', - 'feature_constraints' => 'setFeatureConstraints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'address' => 'getAddress', - 'items' => 'getItems', - 'shipping_speed_categories' => 'getShippingSpeedCategories', - 'include_cod_fulfillment_preview' => 'getIncludeCodFulfillmentPreview', - 'include_delivery_windows' => 'getIncludeDeliveryWindows', - 'feature_constraints' => 'getFeatureConstraints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['items'] = $data['items'] ?? null; - $this->container['shipping_speed_categories'] = $data['shipping_speed_categories'] ?? null; - $this->container['include_cod_fulfillment_preview'] = $data['include_cod_fulfillment_preview'] ?? null; - $this->container['include_delivery_windows'] = $data['include_delivery_windows'] ?? null; - $this->container['feature_constraints'] = $data['feature_constraints'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['address'] === null) { - $invalidProperties[] = "'address' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace the fulfillment order is placed against. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Address - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Address $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewItem[] $items An array of fulfillment preview item information. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } - /** - * Gets shipping_speed_categories - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory[]|null - */ - public function getShippingSpeedCategories() - { - return $this->container['shipping_speed_categories']; - } - - /** - * Sets shipping_speed_categories - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory[]|null $shipping_speed_categories shipping_speed_categories - * - * @return self - */ - public function setShippingSpeedCategories($shipping_speed_categories) - { - $this->container['shipping_speed_categories'] = $shipping_speed_categories; - - return $this; - } - /** - * Gets include_cod_fulfillment_preview - * - * @return bool|null - */ - public function getIncludeCodFulfillmentPreview() - { - return $this->container['include_cod_fulfillment_preview']; - } - - /** - * Sets include_cod_fulfillment_preview - * - * @param bool|null $include_cod_fulfillment_preview When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. - * - * @return self - */ - public function setIncludeCodFulfillmentPreview($include_cod_fulfillment_preview) - { - $this->container['include_cod_fulfillment_preview'] = $include_cod_fulfillment_preview; - - return $this; - } - /** - * Gets include_delivery_windows - * - * @return bool|null - */ - public function getIncludeDeliveryWindows() - { - return $this->container['include_delivery_windows']; - } - - /** - * Sets include_delivery_windows - * - * @param bool|null $include_delivery_windows When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. - * - * @return self - */ - public function setIncludeDeliveryWindows($include_delivery_windows) - { - $this->container['include_delivery_windows'] = $include_delivery_windows; - - return $this; - } - /** - * Gets feature_constraints - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null - */ - public function getFeatureConstraints() - { - return $this->container['feature_constraints']; - } - - /** - * Sets feature_constraints - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null $feature_constraints A list of features and their fulfillment policies to apply to the order. - * - * @return self - */ - public function setFeatureConstraints($feature_constraints) - { - $this->container['feature_constraints'] = $feature_constraints; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.php deleted file mode 100644 index 8201fbf87..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentPreviewResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentPreviewResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\GetFulfillmentPreviewResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.php b/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.php deleted file mode 100644 index b69eb6774..000000000 --- a/lib/Model/FbaOutboundV20200701/GetFulfillmentPreviewResult.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFulfillmentPreviewResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFulfillmentPreviewResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_previews' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreview[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_previews' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_previews' => 'fulfillmentPreviews' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_previews' => 'setFulfillmentPreviews' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_previews' => 'getFulfillmentPreviews' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_previews'] = $data['fulfillment_previews'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fulfillment_previews - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreview[]|null - */ - public function getFulfillmentPreviews() - { - return $this->container['fulfillment_previews']; - } - - /** - * Sets fulfillment_previews - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPreview[]|null $fulfillment_previews An array of fulfillment preview information. - * - * @return self - */ - public function setFulfillmentPreviews($fulfillment_previews) - { - $this->container['fulfillment_previews'] = $fulfillment_previews; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.php b/lib/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.php deleted file mode 100644 index 1a6cd91d5..000000000 --- a/lib/Model/FbaOutboundV20200701/GetPackageTrackingDetailsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPackageTrackingDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPackageTrackingDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\PackageTrackingDetails', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\PackageTrackingDetails|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\PackageTrackingDetails|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/InvalidItemReason.php b/lib/Model/FbaOutboundV20200701/InvalidItemReason.php deleted file mode 100644 index dad62480a..000000000 --- a/lib/Model/FbaOutboundV20200701/InvalidItemReason.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvalidItemReason extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvalidItemReason'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invalid_item_reason_code' => '\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReasonCode', - 'description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invalid_item_reason_code' => null, - 'description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invalid_item_reason_code' => 'invalidItemReasonCode', - 'description' => 'description' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invalid_item_reason_code' => 'setInvalidItemReasonCode', - 'description' => 'setDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invalid_item_reason_code' => 'getInvalidItemReasonCode', - 'description' => 'getDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invalid_item_reason_code'] = $data['invalid_item_reason_code'] ?? null; - $this->container['description'] = $data['description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['invalid_item_reason_code'] === null) { - $invalidProperties[] = "'invalid_item_reason_code' can't be null"; - } - if ($this->container['description'] === null) { - $invalidProperties[] = "'description' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets invalid_item_reason_code - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReasonCode - */ - public function getInvalidItemReasonCode() - { - return $this->container['invalid_item_reason_code']; - } - - /** - * Sets invalid_item_reason_code - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReasonCode $invalid_item_reason_code invalid_item_reason_code - * - * @return self - */ - public function setInvalidItemReasonCode($invalid_item_reason_code) - { - $this->container['invalid_item_reason_code'] = $invalid_item_reason_code; - - return $this; - } - /** - * Gets description - * - * @return string - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string $description A human readable description of the invalid item reason code. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/InvalidItemReasonCode.php b/lib/Model/FbaOutboundV20200701/InvalidItemReasonCode.php deleted file mode 100644 index 431d8d1be..000000000 --- a/lib/Model/FbaOutboundV20200701/InvalidItemReasonCode.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/InvalidReturnItem.php b/lib/Model/FbaOutboundV20200701/InvalidReturnItem.php deleted file mode 100644 index d80060d5f..000000000 --- a/lib/Model/FbaOutboundV20200701/InvalidReturnItem.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvalidReturnItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvalidReturnItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_return_item_id' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'invalid_item_reason' => '\SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReason' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_return_item_id' => null, - 'seller_fulfillment_order_item_id' => null, - 'invalid_item_reason' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_return_item_id' => 'sellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'invalid_item_reason' => 'invalidItemReason' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_return_item_id' => 'setSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'invalid_item_reason' => 'setInvalidItemReason' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_return_item_id' => 'getSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'invalid_item_reason' => 'getInvalidItemReason' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_return_item_id'] = $data['seller_return_item_id'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['invalid_item_reason'] = $data['invalid_item_reason'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_return_item_id'] === null) { - $invalidProperties[] = "'seller_return_item_id' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ($this->container['invalid_item_reason'] === null) { - $invalidProperties[] = "'invalid_item_reason' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_return_item_id - * - * @return string - */ - public function getSellerReturnItemId() - { - return $this->container['seller_return_item_id']; - } - - /** - * Sets seller_return_item_id - * - * @param string $seller_return_item_id An identifier assigned by the seller to the return item. - * - * @return self - */ - public function setSellerReturnItemId($seller_return_item_id) - { - $this->container['seller_return_item_id'] = $seller_return_item_id; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id The identifier assigned to the item by the seller when the fulfillment order was created. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets invalid_item_reason - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReason - */ - public function getInvalidItemReason() - { - return $this->container['invalid_item_reason']; - } - - /** - * Sets invalid_item_reason - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\InvalidItemReason $invalid_item_reason invalid_item_reason - * - * @return self - */ - public function setInvalidItemReason($invalid_item_reason) - { - $this->container['invalid_item_reason'] = $invalid_item_reason; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.php b/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.php deleted file mode 100644 index 36d7e5c68..000000000 --- a/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListAllFulfillmentOrdersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListAllFulfillmentOrdersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ListAllFulfillmentOrdersResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.php b/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.php deleted file mode 100644 index 56b798e49..000000000 --- a/lib/Model/FbaOutboundV20200701/ListAllFulfillmentOrdersResult.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListAllFulfillmentOrdersResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListAllFulfillmentOrdersResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string', - 'fulfillment_orders' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null, - 'fulfillment_orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken', - 'fulfillment_orders' => 'fulfillmentOrders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken', - 'fulfillment_orders' => 'setFulfillmentOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken', - 'fulfillment_orders' => 'getFulfillmentOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['fulfillment_orders'] = $data['fulfillment_orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets fulfillment_orders - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder[]|null - */ - public function getFulfillmentOrders() - { - return $this->container['fulfillment_orders']; - } - - /** - * Sets fulfillment_orders - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrder[]|null $fulfillment_orders An array of fulfillment order information. - * - * @return self - */ - public function setFulfillmentOrders($fulfillment_orders) - { - $this->container['fulfillment_orders'] = $fulfillment_orders; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.php b/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.php deleted file mode 100644 index 2e20a224d..000000000 --- a/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListReturnReasonCodesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListReturnReasonCodesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResult', - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ListReturnReasonCodesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.php b/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.php deleted file mode 100644 index a32996304..000000000 --- a/lib/Model/FbaOutboundV20200701/ListReturnReasonCodesResult.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListReturnReasonCodesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListReturnReasonCodesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reason_code_details' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReasonCodeDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reason_code_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reason_code_details' => 'reasonCodeDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reason_code_details' => 'setReasonCodeDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reason_code_details' => 'getReasonCodeDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reason_code_details'] = $data['reason_code_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets reason_code_details - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReasonCodeDetails[]|null - */ - public function getReasonCodeDetails() - { - return $this->container['reason_code_details']; - } - - /** - * Sets reason_code_details - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReasonCodeDetails[]|null $reason_code_details An array of return reason code details. - * - * @return self - */ - public function setReasonCodeDetails($reason_code_details) - { - $this->container['reason_code_details'] = $reason_code_details; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Money.php b/lib/Model/FbaOutboundV20200701/Money.php deleted file mode 100644 index 8bb2b2053..000000000 --- a/lib/Model/FbaOutboundV20200701/Money.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/PackageTrackingDetails.php b/lib/Model/FbaOutboundV20200701/PackageTrackingDetails.php deleted file mode 100644 index 6acd14a11..000000000 --- a/lib/Model/FbaOutboundV20200701/PackageTrackingDetails.php +++ /dev/null @@ -1,541 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageTrackingDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageTrackingDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_number' => 'int', - 'tracking_number' => 'string', - 'customer_tracking_link' => 'string', - 'carrier_code' => 'string', - 'carrier_phone_number' => 'string', - 'carrier_url' => 'string', - 'ship_date' => 'string', - 'estimated_arrival_date' => 'string', - 'ship_to_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress', - 'current_status' => '\SellingPartnerApi\Model\FbaOutboundV20200701\CurrentStatus', - 'current_status_description' => 'string', - 'signed_for_by' => 'string', - 'additional_location_info' => '\SellingPartnerApi\Model\FbaOutboundV20200701\AdditionalLocationInfo', - 'tracking_events' => '\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingEvent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_number' => 'int32', - 'tracking_number' => null, - 'customer_tracking_link' => null, - 'carrier_code' => null, - 'carrier_phone_number' => null, - 'carrier_url' => null, - 'ship_date' => null, - 'estimated_arrival_date' => null, - 'ship_to_address' => null, - 'current_status' => null, - 'current_status_description' => null, - 'signed_for_by' => null, - 'additional_location_info' => null, - 'tracking_events' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_number' => 'packageNumber', - 'tracking_number' => 'trackingNumber', - 'customer_tracking_link' => 'customerTrackingLink', - 'carrier_code' => 'carrierCode', - 'carrier_phone_number' => 'carrierPhoneNumber', - 'carrier_url' => 'carrierURL', - 'ship_date' => 'shipDate', - 'estimated_arrival_date' => 'estimatedArrivalDate', - 'ship_to_address' => 'shipToAddress', - 'current_status' => 'currentStatus', - 'current_status_description' => 'currentStatusDescription', - 'signed_for_by' => 'signedForBy', - 'additional_location_info' => 'additionalLocationInfo', - 'tracking_events' => 'trackingEvents' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_number' => 'setPackageNumber', - 'tracking_number' => 'setTrackingNumber', - 'customer_tracking_link' => 'setCustomerTrackingLink', - 'carrier_code' => 'setCarrierCode', - 'carrier_phone_number' => 'setCarrierPhoneNumber', - 'carrier_url' => 'setCarrierUrl', - 'ship_date' => 'setShipDate', - 'estimated_arrival_date' => 'setEstimatedArrivalDate', - 'ship_to_address' => 'setShipToAddress', - 'current_status' => 'setCurrentStatus', - 'current_status_description' => 'setCurrentStatusDescription', - 'signed_for_by' => 'setSignedForBy', - 'additional_location_info' => 'setAdditionalLocationInfo', - 'tracking_events' => 'setTrackingEvents' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_number' => 'getPackageNumber', - 'tracking_number' => 'getTrackingNumber', - 'customer_tracking_link' => 'getCustomerTrackingLink', - 'carrier_code' => 'getCarrierCode', - 'carrier_phone_number' => 'getCarrierPhoneNumber', - 'carrier_url' => 'getCarrierUrl', - 'ship_date' => 'getShipDate', - 'estimated_arrival_date' => 'getEstimatedArrivalDate', - 'ship_to_address' => 'getShipToAddress', - 'current_status' => 'getCurrentStatus', - 'current_status_description' => 'getCurrentStatusDescription', - 'signed_for_by' => 'getSignedForBy', - 'additional_location_info' => 'getAdditionalLocationInfo', - 'tracking_events' => 'getTrackingEvents' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_number'] = $data['package_number'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['customer_tracking_link'] = $data['customer_tracking_link'] ?? null; - $this->container['carrier_code'] = $data['carrier_code'] ?? null; - $this->container['carrier_phone_number'] = $data['carrier_phone_number'] ?? null; - $this->container['carrier_url'] = $data['carrier_url'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['estimated_arrival_date'] = $data['estimated_arrival_date'] ?? null; - $this->container['ship_to_address'] = $data['ship_to_address'] ?? null; - $this->container['current_status'] = $data['current_status'] ?? null; - $this->container['current_status_description'] = $data['current_status_description'] ?? null; - $this->container['signed_for_by'] = $data['signed_for_by'] ?? null; - $this->container['additional_location_info'] = $data['additional_location_info'] ?? null; - $this->container['tracking_events'] = $data['tracking_events'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_number'] === null) { - $invalidProperties[] = "'package_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_number - * - * @return int - */ - public function getPackageNumber() - { - return $this->container['package_number']; - } - - /** - * Sets package_number - * - * @param int $package_number The package identifier. - * - * @return self - */ - public function setPackageNumber($package_number) - { - $this->container['package_number'] = $package_number; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number The tracking number for the package. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets customer_tracking_link - * - * @return string|null - */ - public function getCustomerTrackingLink() - { - return $this->container['customer_tracking_link']; - } - - /** - * Sets customer_tracking_link - * - * @param string|null $customer_tracking_link Link on swiship.com that allows customers to track the package. - * - * @return self - */ - public function setCustomerTrackingLink($customer_tracking_link) - { - $this->container['customer_tracking_link'] = $customer_tracking_link; - - return $this; - } - /** - * Gets carrier_code - * - * @return string|null - */ - public function getCarrierCode() - { - return $this->container['carrier_code']; - } - - /** - * Sets carrier_code - * - * @param string|null $carrier_code The name of the carrier. - * - * @return self - */ - public function setCarrierCode($carrier_code) - { - $this->container['carrier_code'] = $carrier_code; - - return $this; - } - /** - * Gets carrier_phone_number - * - * @return string|null - */ - public function getCarrierPhoneNumber() - { - return $this->container['carrier_phone_number']; - } - - /** - * Sets carrier_phone_number - * - * @param string|null $carrier_phone_number The phone number of the carrier. - * - * @return self - */ - public function setCarrierPhoneNumber($carrier_phone_number) - { - $this->container['carrier_phone_number'] = $carrier_phone_number; - - return $this; - } - /** - * Gets carrier_url - * - * @return string|null - */ - public function getCarrierUrl() - { - return $this->container['carrier_url']; - } - - /** - * Sets carrier_url - * - * @param string|null $carrier_url The URL of the carrier's website. - * - * @return self - */ - public function setCarrierUrl($carrier_url) - { - $this->container['carrier_url'] = $carrier_url; - - return $this; - } - /** - * Gets ship_date - * - * @return string|null - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string|null $ship_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets estimated_arrival_date - * - * @return string|null - */ - public function getEstimatedArrivalDate() - { - return $this->container['estimated_arrival_date']; - } - - /** - * Sets estimated_arrival_date - * - * @param string|null $estimated_arrival_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEstimatedArrivalDate($estimated_arrival_date) - { - $this->container['estimated_arrival_date'] = $estimated_arrival_date; - - return $this; - } - /** - * Gets ship_to_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress|null - */ - public function getShipToAddress() - { - return $this->container['ship_to_address']; - } - - /** - * Sets ship_to_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress|null $ship_to_address ship_to_address - * - * @return self - */ - public function setShipToAddress($ship_to_address) - { - $this->container['ship_to_address'] = $ship_to_address; - - return $this; - } - /** - * Gets current_status - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\CurrentStatus|null - */ - public function getCurrentStatus() - { - return $this->container['current_status']; - } - - /** - * Sets current_status - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\CurrentStatus|null $current_status current_status - * - * @return self - */ - public function setCurrentStatus($current_status) - { - $this->container['current_status'] = $current_status; - - return $this; - } - /** - * Gets current_status_description - * - * @return string|null - */ - public function getCurrentStatusDescription() - { - return $this->container['current_status_description']; - } - - /** - * Sets current_status_description - * - * @param string|null $current_status_description Description corresponding to the CurrentStatus value. - * - * @return self - */ - public function setCurrentStatusDescription($current_status_description) - { - $this->container['current_status_description'] = $current_status_description; - - return $this; - } - /** - * Gets signed_for_by - * - * @return string|null - */ - public function getSignedForBy() - { - return $this->container['signed_for_by']; - } - - /** - * Sets signed_for_by - * - * @param string|null $signed_for_by The name of the person who signed for the package. - * - * @return self - */ - public function setSignedForBy($signed_for_by) - { - $this->container['signed_for_by'] = $signed_for_by; - - return $this; - } - /** - * Gets additional_location_info - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\AdditionalLocationInfo|null - */ - public function getAdditionalLocationInfo() - { - return $this->container['additional_location_info']; - } - - /** - * Sets additional_location_info - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\AdditionalLocationInfo|null $additional_location_info additional_location_info - * - * @return self - */ - public function setAdditionalLocationInfo($additional_location_info) - { - $this->container['additional_location_info'] = $additional_location_info; - - return $this; - } - /** - * Gets tracking_events - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingEvent[]|null - */ - public function getTrackingEvents() - { - return $this->container['tracking_events']; - } - - /** - * Sets tracking_events - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingEvent[]|null $tracking_events An array of tracking event information. - * - * @return self - */ - public function setTrackingEvents($tracking_events) - { - $this->container['tracking_events'] = $tracking_events; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ReasonCodeDetails.php b/lib/Model/FbaOutboundV20200701/ReasonCodeDetails.php deleted file mode 100644 index 60234e34a..000000000 --- a/lib/Model/FbaOutboundV20200701/ReasonCodeDetails.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReasonCodeDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReasonCodeDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'return_reason_code' => 'string', - 'description' => 'string', - 'translated_description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'return_reason_code' => null, - 'description' => null, - 'translated_description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'return_reason_code' => 'returnReasonCode', - 'description' => 'description', - 'translated_description' => 'translatedDescription' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'return_reason_code' => 'setReturnReasonCode', - 'description' => 'setDescription', - 'translated_description' => 'setTranslatedDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'return_reason_code' => 'getReturnReasonCode', - 'description' => 'getDescription', - 'translated_description' => 'getTranslatedDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['return_reason_code'] = $data['return_reason_code'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['translated_description'] = $data['translated_description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['return_reason_code'] === null) { - $invalidProperties[] = "'return_reason_code' can't be null"; - } - if ($this->container['description'] === null) { - $invalidProperties[] = "'description' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets return_reason_code - * - * @return string - */ - public function getReturnReasonCode() - { - return $this->container['return_reason_code']; - } - - /** - * Sets return_reason_code - * - * @param string $return_reason_code A code that indicates a valid return reason. - * - * @return self - */ - public function setReturnReasonCode($return_reason_code) - { - $this->container['return_reason_code'] = $return_reason_code; - - return $this; - } - /** - * Gets description - * - * @return string - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string $description A human readable description of the return reason code. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets translated_description - * - * @return string|null - */ - public function getTranslatedDescription() - { - return $this->container['translated_description']; - } - - /** - * Sets translated_description - * - * @param string|null $translated_description A translation of the description. The translation is in the language specified in the Language request parameter. - * - * @return self - */ - public function setTranslatedDescription($translated_description) - { - $this->container['translated_description'] = $translated_description; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ReturnAuthorization.php b/lib/Model/FbaOutboundV20200701/ReturnAuthorization.php deleted file mode 100644 index e853f0aef..000000000 --- a/lib/Model/FbaOutboundV20200701/ReturnAuthorization.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReturnAuthorization extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReturnAuthorization'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'return_authorization_id' => 'string', - 'fulfillment_center_id' => 'string', - 'return_to_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Address', - 'amazon_rma_id' => 'string', - 'rma_page_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'return_authorization_id' => null, - 'fulfillment_center_id' => null, - 'return_to_address' => null, - 'amazon_rma_id' => null, - 'rma_page_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'return_authorization_id' => 'returnAuthorizationId', - 'fulfillment_center_id' => 'fulfillmentCenterId', - 'return_to_address' => 'returnToAddress', - 'amazon_rma_id' => 'amazonRmaId', - 'rma_page_url' => 'rmaPageURL' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'return_authorization_id' => 'setReturnAuthorizationId', - 'fulfillment_center_id' => 'setFulfillmentCenterId', - 'return_to_address' => 'setReturnToAddress', - 'amazon_rma_id' => 'setAmazonRmaId', - 'rma_page_url' => 'setRmaPageUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'return_authorization_id' => 'getReturnAuthorizationId', - 'fulfillment_center_id' => 'getFulfillmentCenterId', - 'return_to_address' => 'getReturnToAddress', - 'amazon_rma_id' => 'getAmazonRmaId', - 'rma_page_url' => 'getRmaPageUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['return_authorization_id'] = $data['return_authorization_id'] ?? null; - $this->container['fulfillment_center_id'] = $data['fulfillment_center_id'] ?? null; - $this->container['return_to_address'] = $data['return_to_address'] ?? null; - $this->container['amazon_rma_id'] = $data['amazon_rma_id'] ?? null; - $this->container['rma_page_url'] = $data['rma_page_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['return_authorization_id'] === null) { - $invalidProperties[] = "'return_authorization_id' can't be null"; - } - if ($this->container['fulfillment_center_id'] === null) { - $invalidProperties[] = "'fulfillment_center_id' can't be null"; - } - if ($this->container['return_to_address'] === null) { - $invalidProperties[] = "'return_to_address' can't be null"; - } - if ($this->container['amazon_rma_id'] === null) { - $invalidProperties[] = "'amazon_rma_id' can't be null"; - } - if ($this->container['rma_page_url'] === null) { - $invalidProperties[] = "'rma_page_url' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets return_authorization_id - * - * @return string - */ - public function getReturnAuthorizationId() - { - return $this->container['return_authorization_id']; - } - - /** - * Sets return_authorization_id - * - * @param string $return_authorization_id An identifier for the return authorization. This identifier associates return items with the return authorization used to return them. - * - * @return self - */ - public function setReturnAuthorizationId($return_authorization_id) - { - $this->container['return_authorization_id'] = $return_authorization_id; - - return $this; - } - /** - * Gets fulfillment_center_id - * - * @return string - */ - public function getFulfillmentCenterId() - { - return $this->container['fulfillment_center_id']; - } - - /** - * Sets fulfillment_center_id - * - * @param string $fulfillment_center_id An identifier for the Amazon fulfillment center that the return items should be sent to. - * - * @return self - */ - public function setFulfillmentCenterId($fulfillment_center_id) - { - $this->container['fulfillment_center_id'] = $fulfillment_center_id; - - return $this; - } - /** - * Gets return_to_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Address - */ - public function getReturnToAddress() - { - return $this->container['return_to_address']; - } - - /** - * Sets return_to_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Address $return_to_address return_to_address - * - * @return self - */ - public function setReturnToAddress($return_to_address) - { - $this->container['return_to_address'] = $return_to_address; - - return $this; - } - /** - * Gets amazon_rma_id - * - * @return string - */ - public function getAmazonRmaId() - { - return $this->container['amazon_rma_id']; - } - - /** - * Sets amazon_rma_id - * - * @param string $amazon_rma_id The return merchandise authorization (RMA) that Amazon needs to process the return. - * - * @return self - */ - public function setAmazonRmaId($amazon_rma_id) - { - $this->container['amazon_rma_id'] = $amazon_rma_id; - - return $this; - } - /** - * Gets rma_page_url - * - * @return string - */ - public function getRmaPageUrl() - { - return $this->container['rma_page_url']; - } - - /** - * Sets rma_page_url - * - * @param string $rma_page_url A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping. - * - * @return self - */ - public function setRmaPageUrl($rma_page_url) - { - $this->container['rma_page_url'] = $rma_page_url; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ReturnItem.php b/lib/Model/FbaOutboundV20200701/ReturnItem.php deleted file mode 100644 index f2b49dec9..000000000 --- a/lib/Model/FbaOutboundV20200701/ReturnItem.php +++ /dev/null @@ -1,470 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReturnItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReturnItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_return_item_id' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'amazon_shipment_id' => 'string', - 'seller_return_reason_code' => 'string', - 'return_comment' => 'string', - 'amazon_return_reason_code' => 'string', - 'status' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentReturnItemStatus', - 'status_changed_date' => 'string', - 'return_authorization_id' => 'string', - 'return_received_condition' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItemDisposition', - 'fulfillment_center_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_return_item_id' => null, - 'seller_fulfillment_order_item_id' => null, - 'amazon_shipment_id' => null, - 'seller_return_reason_code' => null, - 'return_comment' => null, - 'amazon_return_reason_code' => null, - 'status' => null, - 'status_changed_date' => null, - 'return_authorization_id' => null, - 'return_received_condition' => null, - 'fulfillment_center_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_return_item_id' => 'sellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'amazonShipmentId', - 'seller_return_reason_code' => 'sellerReturnReasonCode', - 'return_comment' => 'returnComment', - 'amazon_return_reason_code' => 'amazonReturnReasonCode', - 'status' => 'status', - 'status_changed_date' => 'statusChangedDate', - 'return_authorization_id' => 'returnAuthorizationId', - 'return_received_condition' => 'returnReceivedCondition', - 'fulfillment_center_id' => 'fulfillmentCenterId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_return_item_id' => 'setSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'setAmazonShipmentId', - 'seller_return_reason_code' => 'setSellerReturnReasonCode', - 'return_comment' => 'setReturnComment', - 'amazon_return_reason_code' => 'setAmazonReturnReasonCode', - 'status' => 'setStatus', - 'status_changed_date' => 'setStatusChangedDate', - 'return_authorization_id' => 'setReturnAuthorizationId', - 'return_received_condition' => 'setReturnReceivedCondition', - 'fulfillment_center_id' => 'setFulfillmentCenterId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_return_item_id' => 'getSellerReturnItemId', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'amazon_shipment_id' => 'getAmazonShipmentId', - 'seller_return_reason_code' => 'getSellerReturnReasonCode', - 'return_comment' => 'getReturnComment', - 'amazon_return_reason_code' => 'getAmazonReturnReasonCode', - 'status' => 'getStatus', - 'status_changed_date' => 'getStatusChangedDate', - 'return_authorization_id' => 'getReturnAuthorizationId', - 'return_received_condition' => 'getReturnReceivedCondition', - 'fulfillment_center_id' => 'getFulfillmentCenterId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_return_item_id'] = $data['seller_return_item_id'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['amazon_shipment_id'] = $data['amazon_shipment_id'] ?? null; - $this->container['seller_return_reason_code'] = $data['seller_return_reason_code'] ?? null; - $this->container['return_comment'] = $data['return_comment'] ?? null; - $this->container['amazon_return_reason_code'] = $data['amazon_return_reason_code'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['status_changed_date'] = $data['status_changed_date'] ?? null; - $this->container['return_authorization_id'] = $data['return_authorization_id'] ?? null; - $this->container['return_received_condition'] = $data['return_received_condition'] ?? null; - $this->container['fulfillment_center_id'] = $data['fulfillment_center_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_return_item_id'] === null) { - $invalidProperties[] = "'seller_return_item_id' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ($this->container['amazon_shipment_id'] === null) { - $invalidProperties[] = "'amazon_shipment_id' can't be null"; - } - if ($this->container['seller_return_reason_code'] === null) { - $invalidProperties[] = "'seller_return_reason_code' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['status_changed_date'] === null) { - $invalidProperties[] = "'status_changed_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_return_item_id - * - * @return string - */ - public function getSellerReturnItemId() - { - return $this->container['seller_return_item_id']; - } - - /** - * Sets seller_return_item_id - * - * @param string $seller_return_item_id An identifier assigned by the seller to the return item. - * - * @return self - */ - public function setSellerReturnItemId($seller_return_item_id) - { - $this->container['seller_return_item_id'] = $seller_return_item_id; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id The identifier assigned to the item by the seller when the fulfillment order was created. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets amazon_shipment_id - * - * @return string - */ - public function getAmazonShipmentId() - { - return $this->container['amazon_shipment_id']; - } - - /** - * Sets amazon_shipment_id - * - * @param string $amazon_shipment_id The identifier for the shipment that is associated with the return item. - * - * @return self - */ - public function setAmazonShipmentId($amazon_shipment_id) - { - $this->container['amazon_shipment_id'] = $amazon_shipment_id; - - return $this; - } - /** - * Gets seller_return_reason_code - * - * @return string - */ - public function getSellerReturnReasonCode() - { - return $this->container['seller_return_reason_code']; - } - - /** - * Sets seller_return_reason_code - * - * @param string $seller_return_reason_code The return reason code assigned to the return item by the seller. - * - * @return self - */ - public function setSellerReturnReasonCode($seller_return_reason_code) - { - $this->container['seller_return_reason_code'] = $seller_return_reason_code; - - return $this; - } - /** - * Gets return_comment - * - * @return string|null - */ - public function getReturnComment() - { - return $this->container['return_comment']; - } - - /** - * Sets return_comment - * - * @param string|null $return_comment An optional comment about the return item. - * - * @return self - */ - public function setReturnComment($return_comment) - { - $this->container['return_comment'] = $return_comment; - - return $this; - } - /** - * Gets amazon_return_reason_code - * - * @return string|null - */ - public function getAmazonReturnReasonCode() - { - return $this->container['amazon_return_reason_code']; - } - - /** - * Sets amazon_return_reason_code - * - * @param string|null $amazon_return_reason_code The return reason code that the Amazon fulfillment center assigned to the return item. - * - * @return self - */ - public function setAmazonReturnReasonCode($amazon_return_reason_code) - { - $this->container['amazon_return_reason_code'] = $amazon_return_reason_code; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentReturnItemStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentReturnItemStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets status_changed_date - * - * @return string - */ - public function getStatusChangedDate() - { - return $this->container['status_changed_date']; - } - - /** - * Sets status_changed_date - * - * @param string $status_changed_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setStatusChangedDate($status_changed_date) - { - $this->container['status_changed_date'] = $status_changed_date; - - return $this; - } - /** - * Gets return_authorization_id - * - * @return string|null - */ - public function getReturnAuthorizationId() - { - return $this->container['return_authorization_id']; - } - - /** - * Sets return_authorization_id - * - * @param string|null $return_authorization_id Identifies the return authorization used to return this item. See ReturnAuthorization. - * - * @return self - */ - public function setReturnAuthorizationId($return_authorization_id) - { - $this->container['return_authorization_id'] = $return_authorization_id; - - return $this; - } - /** - * Gets return_received_condition - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItemDisposition|null - */ - public function getReturnReceivedCondition() - { - return $this->container['return_received_condition']; - } - - /** - * Sets return_received_condition - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ReturnItemDisposition|null $return_received_condition return_received_condition - * - * @return self - */ - public function setReturnReceivedCondition($return_received_condition) - { - $this->container['return_received_condition'] = $return_received_condition; - - return $this; - } - /** - * Gets fulfillment_center_id - * - * @return string|null - */ - public function getFulfillmentCenterId() - { - return $this->container['fulfillment_center_id']; - } - - /** - * Sets fulfillment_center_id - * - * @param string|null $fulfillment_center_id The identifier for the Amazon fulfillment center that processed the return item. - * - * @return self - */ - public function setFulfillmentCenterId($fulfillment_center_id) - { - $this->container['fulfillment_center_id'] = $fulfillment_center_id; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ReturnItemDisposition.php b/lib/Model/FbaOutboundV20200701/ReturnItemDisposition.php deleted file mode 100644 index f06bce1e5..000000000 --- a/lib/Model/FbaOutboundV20200701/ReturnItemDisposition.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.php b/lib/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.php deleted file mode 100644 index ca294333b..000000000 --- a/lib/Model/FbaOutboundV20200701/ScheduledDeliveryInfo.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ScheduledDeliveryInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ScheduledDeliveryInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'delivery_time_zone' => 'string', - 'delivery_windows' => '\SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'delivery_time_zone' => null, - 'delivery_windows' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'delivery_time_zone' => 'deliveryTimeZone', - 'delivery_windows' => 'deliveryWindows' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'delivery_time_zone' => 'setDeliveryTimeZone', - 'delivery_windows' => 'setDeliveryWindows' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'delivery_time_zone' => 'getDeliveryTimeZone', - 'delivery_windows' => 'getDeliveryWindows' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['delivery_time_zone'] = $data['delivery_time_zone'] ?? null; - $this->container['delivery_windows'] = $data['delivery_windows'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['delivery_time_zone'] === null) { - $invalidProperties[] = "'delivery_time_zone' can't be null"; - } - if ($this->container['delivery_windows'] === null) { - $invalidProperties[] = "'delivery_windows' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets delivery_time_zone - * - * @return string - */ - public function getDeliveryTimeZone() - { - return $this->container['delivery_time_zone']; - } - - /** - * Sets delivery_time_zone - * - * @param string $delivery_time_zone The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo. - * - * @return self - */ - public function setDeliveryTimeZone($delivery_time_zone) - { - $this->container['delivery_time_zone'] = $delivery_time_zone; - - return $this; - } - /** - * Gets delivery_windows - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow[] - */ - public function getDeliveryWindows() - { - return $this->container['delivery_windows']; - } - - /** - * Sets delivery_windows - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\DeliveryWindow[] $delivery_windows An array of delivery windows. - * - * @return self - */ - public function setDeliveryWindows($delivery_windows) - { - $this->container['delivery_windows'] = $delivery_windows; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/ShippingSpeedCategory.php b/lib/Model/FbaOutboundV20200701/ShippingSpeedCategory.php deleted file mode 100644 index 51a7d2235..000000000 --- a/lib/Model/FbaOutboundV20200701/ShippingSpeedCategory.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.php b/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.php deleted file mode 100644 index 923db8ad8..000000000 --- a/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitFulfillmentOrderStatusUpdateRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitFulfillmentOrderStatusUpdateRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_order_status' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_order_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_order_status' => 'fulfillmentOrderStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_order_status' => 'setFulfillmentOrderStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_order_status' => 'getFulfillmentOrderStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_order_status'] = $data['fulfillment_order_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fulfillment_order_status - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus|null - */ - public function getFulfillmentOrderStatus() - { - return $this->container['fulfillment_order_status']; - } - - /** - * Sets fulfillment_order_status - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentOrderStatus|null $fulfillment_order_status fulfillment_order_status - * - * @return self - */ - public function setFulfillmentOrderStatus($fulfillment_order_status) - { - $this->container['fulfillment_order_status'] = $fulfillment_order_status; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.php b/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.php deleted file mode 100644 index dd623562f..000000000 --- a/lib/Model/FbaOutboundV20200701/SubmitFulfillmentOrderStatusUpdateResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitFulfillmentOrderStatusUpdateResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitFulfillmentOrderStatusUpdateResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/TrackingAddress.php b/lib/Model/FbaOutboundV20200701/TrackingAddress.php deleted file mode 100644 index f2647da31..000000000 --- a/lib/Model/FbaOutboundV20200701/TrackingAddress.php +++ /dev/null @@ -1,253 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingAddress extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingAddress'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'city' => 'string', - 'state' => 'string', - 'country' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'city' => null, - 'state' => null, - 'country' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'city' => 'city', - 'state' => 'state', - 'country' => 'country' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'city' => 'setCity', - 'state' => 'setState', - 'country' => 'setCountry' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'city' => 'getCity', - 'state' => 'getState', - 'country' => 'getCountry' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['city'] = $data['city'] ?? null; - $this->container['state'] = $data['state'] ?? null; - $this->container['country'] = $data['country'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ((mb_strlen($this->container['city']) > 150)) { - $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 150."; - } - - if ($this->container['state'] === null) { - $invalidProperties[] = "'state' can't be null"; - } - if ((mb_strlen($this->container['state']) > 150)) { - $invalidProperties[] = "invalid value for 'state', the character length must be smaller than or equal to 150."; - } - - if ($this->container['country'] === null) { - $invalidProperties[] = "'country' can't be null"; - } - if ((mb_strlen($this->container['country']) > 6)) { - $invalidProperties[] = "invalid value for 'country', the character length must be smaller than or equal to 6."; - } - - return $invalidProperties; - } - - - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city. - * - * @return self - */ - public function setCity($city) - { - if ((mb_strlen($city) > 150)) { - throw new \InvalidArgumentException('invalid length for $city when calling TrackingAddress., must be smaller than or equal to 150.'); - } - - $this->container['city'] = $city; - - return $this; - } - /** - * Gets state - * - * @return string - */ - public function getState() - { - return $this->container['state']; - } - - /** - * Sets state - * - * @param string $state The state. - * - * @return self - */ - public function setState($state) - { - if ((mb_strlen($state) > 150)) { - throw new \InvalidArgumentException('invalid length for $state when calling TrackingAddress., must be smaller than or equal to 150.'); - } - - $this->container['state'] = $state; - - return $this; - } - /** - * Gets country - * - * @return string - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string $country The country. - * - * @return self - */ - public function setCountry($country) - { - if ((mb_strlen($country) > 6)) { - throw new \InvalidArgumentException('invalid length for $country when calling TrackingAddress., must be smaller than or equal to 6.'); - } - - $this->container['country'] = $country; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/TrackingEvent.php b/lib/Model/FbaOutboundV20200701/TrackingEvent.php deleted file mode 100644 index 312f6e28d..000000000 --- a/lib/Model/FbaOutboundV20200701/TrackingEvent.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'event_date' => 'string', - 'event_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress', - 'event_code' => '\SellingPartnerApi\Model\FbaOutboundV20200701\EventCode', - 'event_description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'event_date' => null, - 'event_address' => null, - 'event_code' => null, - 'event_description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'event_date' => 'eventDate', - 'event_address' => 'eventAddress', - 'event_code' => 'eventCode', - 'event_description' => 'eventDescription' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'event_date' => 'setEventDate', - 'event_address' => 'setEventAddress', - 'event_code' => 'setEventCode', - 'event_description' => 'setEventDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'event_date' => 'getEventDate', - 'event_address' => 'getEventAddress', - 'event_code' => 'getEventCode', - 'event_description' => 'getEventDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['event_date'] = $data['event_date'] ?? null; - $this->container['event_address'] = $data['event_address'] ?? null; - $this->container['event_code'] = $data['event_code'] ?? null; - $this->container['event_description'] = $data['event_description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['event_date'] === null) { - $invalidProperties[] = "'event_date' can't be null"; - } - if ($this->container['event_address'] === null) { - $invalidProperties[] = "'event_address' can't be null"; - } - if ($this->container['event_code'] === null) { - $invalidProperties[] = "'event_code' can't be null"; - } - if ($this->container['event_description'] === null) { - $invalidProperties[] = "'event_description' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets event_date - * - * @return string - */ - public function getEventDate() - { - return $this->container['event_date']; - } - - /** - * Sets event_date - * - * @param string $event_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setEventDate($event_date) - { - $this->container['event_date'] = $event_date; - - return $this; - } - /** - * Gets event_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress - */ - public function getEventAddress() - { - return $this->container['event_address']; - } - - /** - * Sets event_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\TrackingAddress $event_address event_address - * - * @return self - */ - public function setEventAddress($event_address) - { - $this->container['event_address'] = $event_address; - - return $this; - } - /** - * Gets event_code - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\EventCode - */ - public function getEventCode() - { - return $this->container['event_code']; - } - - /** - * Sets event_code - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\EventCode $event_code event_code - * - * @return self - */ - public function setEventCode($event_code) - { - $this->container['event_code'] = $event_code; - - return $this; - } - /** - * Gets event_description - * - * @return string - */ - public function getEventDescription() - { - return $this->container['event_description']; - } - - /** - * Sets event_description - * - * @param string $event_description A description for the corresponding event code. - * - * @return self - */ - public function setEventDescription($event_description) - { - $this->container['event_description'] = $event_description; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.php b/lib/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.php deleted file mode 100644 index 11972b2f9..000000000 --- a/lib/Model/FbaOutboundV20200701/UnfulfillablePreviewItem.php +++ /dev/null @@ -1,274 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UnfulfillablePreviewItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UnfulfillablePreviewItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'quantity' => 'int', - 'seller_fulfillment_order_item_id' => 'string', - 'item_unfulfillable_reasons' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'quantity' => 'int32', - 'seller_fulfillment_order_item_id' => null, - 'item_unfulfillable_reasons' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'quantity' => 'quantity', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'item_unfulfillable_reasons' => 'itemUnfulfillableReasons' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'quantity' => 'setQuantity', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'item_unfulfillable_reasons' => 'setItemUnfulfillableReasons' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'quantity' => 'getQuantity', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'item_unfulfillable_reasons' => 'getItemUnfulfillableReasons' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['item_unfulfillable_reasons'] = $data['item_unfulfillable_reasons'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ((mb_strlen($this->container['seller_sku']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_sku', the character length must be smaller than or equal to 50."; - } - - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ((mb_strlen($this->container['seller_fulfillment_order_item_id']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_fulfillment_order_item_id', the character length must be smaller than or equal to 50."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - if ((mb_strlen($seller_sku) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_sku when calling UnfulfillablePreviewItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier created with a call to the getFulfillmentPreview operation. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - if ((mb_strlen($seller_fulfillment_order_item_id) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_fulfillment_order_item_id when calling UnfulfillablePreviewItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets item_unfulfillable_reasons - * - * @return string[]|null - */ - public function getItemUnfulfillableReasons() - { - return $this->container['item_unfulfillable_reasons']; - } - - /** - * Sets item_unfulfillable_reasons - * - * @param string[]|null $item_unfulfillable_reasons item_unfulfillable_reasons - * - * @return self - */ - public function setItemUnfulfillableReasons($item_unfulfillable_reasons) - { - $this->container['item_unfulfillable_reasons'] = $item_unfulfillable_reasons; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.php b/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.php deleted file mode 100644 index 73c04ca13..000000000 --- a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderItem.php +++ /dev/null @@ -1,453 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateFulfillmentOrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateFulfillmentOrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'seller_fulfillment_order_item_id' => 'string', - 'quantity' => 'int', - 'gift_message' => 'string', - 'displayable_comment' => 'string', - 'fulfillment_network_sku' => 'string', - 'order_item_disposition' => 'string', - 'per_unit_declared_value' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_price' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money', - 'per_unit_tax' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'seller_fulfillment_order_item_id' => null, - 'quantity' => 'int32', - 'gift_message' => null, - 'displayable_comment' => null, - 'fulfillment_network_sku' => null, - 'order_item_disposition' => null, - 'per_unit_declared_value' => null, - 'per_unit_price' => null, - 'per_unit_tax' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'sellerSku', - 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', - 'quantity' => 'quantity', - 'gift_message' => 'giftMessage', - 'displayable_comment' => 'displayableComment', - 'fulfillment_network_sku' => 'fulfillmentNetworkSku', - 'order_item_disposition' => 'orderItemDisposition', - 'per_unit_declared_value' => 'perUnitDeclaredValue', - 'per_unit_price' => 'perUnitPrice', - 'per_unit_tax' => 'perUnitTax' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', - 'quantity' => 'setQuantity', - 'gift_message' => 'setGiftMessage', - 'displayable_comment' => 'setDisplayableComment', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'order_item_disposition' => 'setOrderItemDisposition', - 'per_unit_declared_value' => 'setPerUnitDeclaredValue', - 'per_unit_price' => 'setPerUnitPrice', - 'per_unit_tax' => 'setPerUnitTax' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', - 'quantity' => 'getQuantity', - 'gift_message' => 'getGiftMessage', - 'displayable_comment' => 'getDisplayableComment', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'order_item_disposition' => 'getOrderItemDisposition', - 'per_unit_declared_value' => 'getPerUnitDeclaredValue', - 'per_unit_price' => 'getPerUnitPrice', - 'per_unit_tax' => 'getPerUnitTax' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['seller_fulfillment_order_item_id'] = $data['seller_fulfillment_order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['gift_message'] = $data['gift_message'] ?? null; - $this->container['displayable_comment'] = $data['displayable_comment'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['order_item_disposition'] = $data['order_item_disposition'] ?? null; - $this->container['per_unit_declared_value'] = $data['per_unit_declared_value'] ?? null; - $this->container['per_unit_price'] = $data['per_unit_price'] ?? null; - $this->container['per_unit_tax'] = $data['per_unit_tax'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_fulfillment_order_item_id'] === null) { - $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; - } - if ((mb_strlen($this->container['seller_fulfillment_order_item_id']) > 50)) { - $invalidProperties[] = "invalid value for 'seller_fulfillment_order_item_id', the character length must be smaller than or equal to 50."; - } - - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if (!is_null($this->container['gift_message']) && (mb_strlen($this->container['gift_message']) > 512)) { - $invalidProperties[] = "invalid value for 'gift_message', the character length must be smaller than or equal to 512."; - } - - if (!is_null($this->container['displayable_comment']) && (mb_strlen($this->container['displayable_comment']) > 250)) { - $invalidProperties[] = "invalid value for 'displayable_comment', the character length must be smaller than or equal to 250."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets seller_fulfillment_order_item_id - * - * @return string - */ - public function getSellerFulfillmentOrderItemId() - { - return $this->container['seller_fulfillment_order_item_id']; - } - - /** - * Sets seller_fulfillment_order_item_id - * - * @param string $seller_fulfillment_order_item_id Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation. - * - * @return self - */ - public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) - { - if ((mb_strlen($seller_fulfillment_order_item_id) > 50)) { - throw new \InvalidArgumentException('invalid length for $seller_fulfillment_order_item_id when calling UpdateFulfillmentOrderItem., must be smaller than or equal to 50.'); - } - - $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The item quantity. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets gift_message - * - * @return string|null - */ - public function getGiftMessage() - { - return $this->container['gift_message']; - } - - /** - * Sets gift_message - * - * @param string|null $gift_message A message to the gift recipient, if applicable. - * - * @return self - */ - public function setGiftMessage($gift_message) - { - if (!is_null($gift_message) && (mb_strlen($gift_message) > 512)) { - throw new \InvalidArgumentException('invalid length for $gift_message when calling UpdateFulfillmentOrderItem., must be smaller than or equal to 512.'); - } - - $this->container['gift_message'] = $gift_message; - - return $this; - } - /** - * Gets displayable_comment - * - * @return string|null - */ - public function getDisplayableComment() - { - return $this->container['displayable_comment']; - } - - /** - * Sets displayable_comment - * - * @param string|null $displayable_comment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. - * - * @return self - */ - public function setDisplayableComment($displayable_comment) - { - if (!is_null($displayable_comment) && (mb_strlen($displayable_comment) > 250)) { - throw new \InvalidArgumentException('invalid length for $displayable_comment when calling UpdateFulfillmentOrderItem., must be smaller than or equal to 250.'); - } - - $this->container['displayable_comment'] = $displayable_comment; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku Amazon's fulfillment network SKU of the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets order_item_disposition - * - * @return string|null - */ - public function getOrderItemDisposition() - { - return $this->container['order_item_disposition']; - } - - /** - * Sets order_item_disposition - * - * @param string|null $order_item_disposition Indicates whether the item is sellable or unsellable. - * - * @return self - */ - public function setOrderItemDisposition($order_item_disposition) - { - $this->container['order_item_disposition'] = $order_item_disposition; - - return $this; - } - /** - * Gets per_unit_declared_value - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitDeclaredValue() - { - return $this->container['per_unit_declared_value']; - } - - /** - * Sets per_unit_declared_value - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_declared_value per_unit_declared_value - * - * @return self - */ - public function setPerUnitDeclaredValue($per_unit_declared_value) - { - $this->container['per_unit_declared_value'] = $per_unit_declared_value; - - return $this; - } - /** - * Gets per_unit_price - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitPrice() - { - return $this->container['per_unit_price']; - } - - /** - * Sets per_unit_price - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_price per_unit_price - * - * @return self - */ - public function setPerUnitPrice($per_unit_price) - { - $this->container['per_unit_price'] = $per_unit_price; - - return $this; - } - /** - * Gets per_unit_tax - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null - */ - public function getPerUnitTax() - { - return $this->container['per_unit_tax']; - } - - /** - * Sets per_unit_tax - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Money|null $per_unit_tax per_unit_tax - * - * @return self - */ - public function setPerUnitTax($per_unit_tax) - { - $this->container['per_unit_tax'] = $per_unit_tax; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.php b/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.php deleted file mode 100644 index 0cfb5e654..000000000 --- a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderRequest.php +++ /dev/null @@ -1,497 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateFulfillmentOrderRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateFulfillmentOrderRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'displayable_order_id' => 'string', - 'displayable_order_date' => 'string', - 'displayable_order_comment' => 'string', - 'shipping_speed_category' => '\SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory', - 'destination_address' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Address', - 'fulfillment_action' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction', - 'fulfillment_policy' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy', - 'ship_from_country_code' => 'string', - 'notification_emails' => 'string[]', - 'feature_constraints' => '\SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]', - 'items' => '\SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'displayable_order_id' => null, - 'displayable_order_date' => null, - 'displayable_order_comment' => null, - 'shipping_speed_category' => null, - 'destination_address' => null, - 'fulfillment_action' => null, - 'fulfillment_policy' => null, - 'ship_from_country_code' => null, - 'notification_emails' => null, - 'feature_constraints' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'displayable_order_id' => 'displayableOrderId', - 'displayable_order_date' => 'displayableOrderDate', - 'displayable_order_comment' => 'displayableOrderComment', - 'shipping_speed_category' => 'shippingSpeedCategory', - 'destination_address' => 'destinationAddress', - 'fulfillment_action' => 'fulfillmentAction', - 'fulfillment_policy' => 'fulfillmentPolicy', - 'ship_from_country_code' => 'shipFromCountryCode', - 'notification_emails' => 'notificationEmails', - 'feature_constraints' => 'featureConstraints', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'displayable_order_id' => 'setDisplayableOrderId', - 'displayable_order_date' => 'setDisplayableOrderDate', - 'displayable_order_comment' => 'setDisplayableOrderComment', - 'shipping_speed_category' => 'setShippingSpeedCategory', - 'destination_address' => 'setDestinationAddress', - 'fulfillment_action' => 'setFulfillmentAction', - 'fulfillment_policy' => 'setFulfillmentPolicy', - 'ship_from_country_code' => 'setShipFromCountryCode', - 'notification_emails' => 'setNotificationEmails', - 'feature_constraints' => 'setFeatureConstraints', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'displayable_order_id' => 'getDisplayableOrderId', - 'displayable_order_date' => 'getDisplayableOrderDate', - 'displayable_order_comment' => 'getDisplayableOrderComment', - 'shipping_speed_category' => 'getShippingSpeedCategory', - 'destination_address' => 'getDestinationAddress', - 'fulfillment_action' => 'getFulfillmentAction', - 'fulfillment_policy' => 'getFulfillmentPolicy', - 'ship_from_country_code' => 'getShipFromCountryCode', - 'notification_emails' => 'getNotificationEmails', - 'feature_constraints' => 'getFeatureConstraints', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['displayable_order_id'] = $data['displayable_order_id'] ?? null; - $this->container['displayable_order_date'] = $data['displayable_order_date'] ?? null; - $this->container['displayable_order_comment'] = $data['displayable_order_comment'] ?? null; - $this->container['shipping_speed_category'] = $data['shipping_speed_category'] ?? null; - $this->container['destination_address'] = $data['destination_address'] ?? null; - $this->container['fulfillment_action'] = $data['fulfillment_action'] ?? null; - $this->container['fulfillment_policy'] = $data['fulfillment_policy'] ?? null; - $this->container['ship_from_country_code'] = $data['ship_from_country_code'] ?? null; - $this->container['notification_emails'] = $data['notification_emails'] ?? null; - $this->container['feature_constraints'] = $data['feature_constraints'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['displayable_order_id']) && (mb_strlen($this->container['displayable_order_id']) > 40)) { - $invalidProperties[] = "invalid value for 'displayable_order_id', the character length must be smaller than or equal to 40."; - } - - if (!is_null($this->container['displayable_order_comment']) && (mb_strlen($this->container['displayable_order_comment']) > 1000)) { - $invalidProperties[] = "invalid value for 'displayable_order_comment', the character length must be smaller than or equal to 1000."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace the fulfillment order is placed against. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets displayable_order_id - * - * @return string|null - */ - public function getDisplayableOrderId() - { - return $this->container['displayable_order_id']; - } - - /** - * Sets displayable_order_id - * - * @param string|null $displayable_order_id A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. - * - * @return self - */ - public function setDisplayableOrderId($displayable_order_id) - { - if (!is_null($displayable_order_id) && (mb_strlen($displayable_order_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $displayable_order_id when calling UpdateFulfillmentOrderRequest., must be smaller than or equal to 40.'); - } - - $this->container['displayable_order_id'] = $displayable_order_id; - - return $this; - } - /** - * Gets displayable_order_date - * - * @return string|null - */ - public function getDisplayableOrderDate() - { - return $this->container['displayable_order_date']; - } - - /** - * Sets displayable_order_date - * - * @param string|null $displayable_order_date A datetime string in ISO 8601 format. - * - * @return self - */ - public function setDisplayableOrderDate($displayable_order_date) - { - $this->container['displayable_order_date'] = $displayable_order_date; - - return $this; - } - /** - * Gets displayable_order_comment - * - * @return string|null - */ - public function getDisplayableOrderComment() - { - return $this->container['displayable_order_comment']; - } - - /** - * Sets displayable_order_comment - * - * @param string|null $displayable_order_comment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. - * - * @return self - */ - public function setDisplayableOrderComment($displayable_order_comment) - { - if (!is_null($displayable_order_comment) && (mb_strlen($displayable_order_comment) > 1000)) { - throw new \InvalidArgumentException('invalid length for $displayable_order_comment when calling UpdateFulfillmentOrderRequest., must be smaller than or equal to 1000.'); - } - - $this->container['displayable_order_comment'] = $displayable_order_comment; - - return $this; - } - /** - * Gets shipping_speed_category - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory|null - */ - public function getShippingSpeedCategory() - { - return $this->container['shipping_speed_category']; - } - - /** - * Sets shipping_speed_category - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\ShippingSpeedCategory|null $shipping_speed_category shipping_speed_category - * - * @return self - */ - public function setShippingSpeedCategory($shipping_speed_category) - { - $this->container['shipping_speed_category'] = $shipping_speed_category; - - return $this; - } - /** - * Gets destination_address - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Address|null - */ - public function getDestinationAddress() - { - return $this->container['destination_address']; - } - - /** - * Sets destination_address - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Address|null $destination_address destination_address - * - * @return self - */ - public function setDestinationAddress($destination_address) - { - $this->container['destination_address'] = $destination_address; - - return $this; - } - /** - * Gets fulfillment_action - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null - */ - public function getFulfillmentAction() - { - return $this->container['fulfillment_action']; - } - - /** - * Sets fulfillment_action - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentAction|null $fulfillment_action fulfillment_action - * - * @return self - */ - public function setFulfillmentAction($fulfillment_action) - { - $this->container['fulfillment_action'] = $fulfillment_action; - - return $this; - } - /** - * Gets fulfillment_policy - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null - */ - public function getFulfillmentPolicy() - { - return $this->container['fulfillment_policy']; - } - - /** - * Sets fulfillment_policy - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FulfillmentPolicy|null $fulfillment_policy fulfillment_policy - * - * @return self - */ - public function setFulfillmentPolicy($fulfillment_policy) - { - $this->container['fulfillment_policy'] = $fulfillment_policy; - - return $this; - } - /** - * Gets ship_from_country_code - * - * @return string|null - */ - public function getShipFromCountryCode() - { - return $this->container['ship_from_country_code']; - } - - /** - * Sets ship_from_country_code - * - * @param string|null $ship_from_country_code The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setShipFromCountryCode($ship_from_country_code) - { - $this->container['ship_from_country_code'] = $ship_from_country_code; - - return $this; - } - /** - * Gets notification_emails - * - * @return string[]|null - */ - public function getNotificationEmails() - { - return $this->container['notification_emails']; - } - - /** - * Sets notification_emails - * - * @param string[]|null $notification_emails 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. - * - * @return self - */ - public function setNotificationEmails($notification_emails) - { - $this->container['notification_emails'] = $notification_emails; - - return $this; - } - /** - * Gets feature_constraints - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null - */ - public function getFeatureConstraints() - { - return $this->container['feature_constraints']; - } - - /** - * Sets feature_constraints - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\FeatureSettings[]|null $feature_constraints A list of features and their fulfillment policies to apply to the order. - * - * @return self - */ - public function setFeatureConstraints($feature_constraints) - { - $this->container['feature_constraints'] = $feature_constraints; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderItem[]|null - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\UpdateFulfillmentOrderItem[]|null $items An array of fulfillment order item information for updating a fulfillment order. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.php b/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.php deleted file mode 100644 index 90e899270..000000000 --- a/lib/Model/FbaOutboundV20200701/UpdateFulfillmentOrderResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateFulfillmentOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateFulfillmentOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FbaOutboundV20200701\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FbaOutboundV20200701\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FbaOutboundV20200701/Weight.php b/lib/Model/FbaOutboundV20200701/Weight.php deleted file mode 100644 index 234d36cb8..000000000 --- a/lib/Model/FbaOutboundV20200701/Weight.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit' => 'unit', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit' => 'setUnit', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit' => 'getUnit', - 'value' => 'getValue' - ]; - - - - const UNIT_KG = 'KG'; - const UNIT_KILOGRAMS = 'KILOGRAMS'; - const UNIT_LB = 'LB'; - const UNIT_POUNDS = 'POUNDS'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_KG, - self::UNIT_KILOGRAMS, - self::UNIT_LB, - self::UNIT_POUNDS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit'] = $data['unit'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of weight. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value The weight value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/CreateFeedDocumentResponse.php b/lib/Model/FeedsV20210630/CreateFeedDocumentResponse.php deleted file mode 100644 index 3eaabb1f2..000000000 --- a/lib/Model/FeedsV20210630/CreateFeedDocumentResponse.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFeedDocumentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFeedDocumentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feed_document_id' => 'string', - 'url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feed_document_id' => null, - 'url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'feed_document_id' => 'feedDocumentId', - 'url' => 'url' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'feed_document_id' => 'setFeedDocumentId', - 'url' => 'setUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'feed_document_id' => 'getFeedDocumentId', - 'url' => 'getUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feed_document_id'] = $data['feed_document_id'] ?? null; - $this->container['url'] = $data['url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feed_document_id'] === null) { - $invalidProperties[] = "'feed_document_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets feed_document_id - * - * @return string - */ - public function getFeedDocumentId() - { - return $this->container['feed_document_id']; - } - - /** - * Sets feed_document_id - * - * @param string $feed_document_id The identifier of the feed document. - * - * @return self - */ - public function setFeedDocumentId($feed_document_id) - { - $this->container['feed_document_id'] = $feed_document_id; - - return $this; - } - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url The presigned URL for uploading the feed contents. This URL expires after 5 minutes. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/CreateFeedDocumentSpecification.php b/lib/Model/FeedsV20210630/CreateFeedDocumentSpecification.php deleted file mode 100644 index 913153c05..000000000 --- a/lib/Model/FeedsV20210630/CreateFeedDocumentSpecification.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFeedDocumentSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFeedDocumentSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_type' => 'contentType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_type' => 'setContentType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_type' => 'getContentType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_type'] = $data['content_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_type'] === null) { - $invalidProperties[] = "'content_type' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets content_type - * - * @return string - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param string $content_type The content type of the feed. - * - * @return self - */ - public function setContentType($content_type) - { - $this->container['content_type'] = $content_type; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/CreateFeedResponse.php b/lib/Model/FeedsV20210630/CreateFeedResponse.php deleted file mode 100644 index 2b5146f80..000000000 --- a/lib/Model/FeedsV20210630/CreateFeedResponse.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFeedResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFeedResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feed_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feed_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'feed_id' => 'feedId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'feed_id' => 'setFeedId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'feed_id' => 'getFeedId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feed_id'] = $data['feed_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feed_id'] === null) { - $invalidProperties[] = "'feed_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets feed_id - * - * @return string - */ - public function getFeedId() - { - return $this->container['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. - * - * @return self - */ - public function setFeedId($feed_id) - { - $this->container['feed_id'] = $feed_id; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/CreateFeedSpecification.php b/lib/Model/FeedsV20210630/CreateFeedSpecification.php deleted file mode 100644 index 7ca1845c3..000000000 --- a/lib/Model/FeedsV20210630/CreateFeedSpecification.php +++ /dev/null @@ -1,273 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateFeedSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateFeedSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feed_type' => 'string', - 'marketplace_ids' => 'string[]', - 'input_feed_document_id' => 'string', - 'feed_options' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feed_type' => null, - 'marketplace_ids' => null, - 'input_feed_document_id' => null, - 'feed_options' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'feed_type' => 'feedType', - 'marketplace_ids' => 'marketplaceIds', - 'input_feed_document_id' => 'inputFeedDocumentId', - 'feed_options' => 'feedOptions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'feed_type' => 'setFeedType', - 'marketplace_ids' => 'setMarketplaceIds', - 'input_feed_document_id' => 'setInputFeedDocumentId', - 'feed_options' => 'setFeedOptions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'feed_type' => 'getFeedType', - 'marketplace_ids' => 'getMarketplaceIds', - 'input_feed_document_id' => 'getInputFeedDocumentId', - 'feed_options' => 'getFeedOptions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feed_type'] = $data['feed_type'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['input_feed_document_id'] = $data['input_feed_document_id'] ?? null; - $this->container['feed_options'] = $data['feed_options'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feed_type'] === null) { - $invalidProperties[] = "'feed_type' can't be null"; - } - if ($this->container['marketplace_ids'] === null) { - $invalidProperties[] = "'marketplace_ids' can't be null"; - } - if ((count($this->container['marketplace_ids']) > 25)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be less than or equal to 25."; - } - - if ((count($this->container['marketplace_ids']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be greater than or equal to 1."; - } - - if ($this->container['input_feed_document_id'] === null) { - $invalidProperties[] = "'input_feed_document_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets feed_type - * - * @return string - */ - public function getFeedType() - { - return $this->container['feed_type']; - } - - /** - * Sets feed_type - * - * @param string $feed_type The feed type. - * - * @return self - */ - public function setFeedType($feed_type) - { - $this->container['feed_type'] = $feed_type; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[] - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[] $marketplace_ids A list of identifiers for marketplaces that you want the feed to be applied to. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - - if ((count($marketplace_ids) > 25)) { - throw new \InvalidArgumentException('invalid value for $marketplace_ids when calling CreateFeedSpecification., number of items must be less than or equal to 25.'); - } - if ((count($marketplace_ids) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_ids when calling CreateFeedSpecification., number of items must be greater than or equal to 1.'); - } - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets input_feed_document_id - * - * @return string - */ - public function getInputFeedDocumentId() - { - return $this->container['input_feed_document_id']; - } - - /** - * Sets input_feed_document_id - * - * @param string $input_feed_document_id The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation. - * - * @return self - */ - public function setInputFeedDocumentId($input_feed_document_id) - { - $this->container['input_feed_document_id'] = $input_feed_document_id; - - return $this; - } - /** - * Gets feed_options - * - * @return map[string,string]|null - */ - public function getFeedOptions() - { - return $this->container['feed_options']; - } - - /** - * Sets feed_options - * - * @param map[string,string]|null $feed_options Additional options to control the feed. These vary by feed type. - * - * @return self - */ - public function setFeedOptions($feed_options) - { - $this->container['feed_options'] = $feed_options; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/Error.php b/lib/Model/FeedsV20210630/Error.php deleted file mode 100644 index ae033ec7d..000000000 --- a/lib/Model/FeedsV20210630/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/ErrorList.php b/lib/Model/FeedsV20210630/ErrorList.php deleted file mode 100644 index 620877cc5..000000000 --- a/lib/Model/FeedsV20210630/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FeedsV20210630\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FeedsV20210630\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FeedsV20210630\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/Feed.php b/lib/Model/FeedsV20210630/Feed.php deleted file mode 100644 index 85b23b52b..000000000 --- a/lib/Model/FeedsV20210630/Feed.php +++ /dev/null @@ -1,452 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Feed extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Feed'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feed_id' => 'string', - 'feed_type' => 'string', - 'marketplace_ids' => 'string[]', - 'created_time' => 'string', - 'processing_status' => 'string', - 'processing_start_time' => 'string', - 'processing_end_time' => 'string', - 'result_feed_document_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feed_id' => null, - 'feed_type' => null, - 'marketplace_ids' => null, - 'created_time' => null, - 'processing_status' => null, - 'processing_start_time' => null, - 'processing_end_time' => null, - 'result_feed_document_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'feed_id' => 'feedId', - 'feed_type' => 'feedType', - 'marketplace_ids' => 'marketplaceIds', - 'created_time' => 'createdTime', - 'processing_status' => 'processingStatus', - 'processing_start_time' => 'processingStartTime', - 'processing_end_time' => 'processingEndTime', - 'result_feed_document_id' => 'resultFeedDocumentId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'feed_id' => 'setFeedId', - 'feed_type' => 'setFeedType', - 'marketplace_ids' => 'setMarketplaceIds', - 'created_time' => 'setCreatedTime', - 'processing_status' => 'setProcessingStatus', - 'processing_start_time' => 'setProcessingStartTime', - 'processing_end_time' => 'setProcessingEndTime', - 'result_feed_document_id' => 'setResultFeedDocumentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'feed_id' => 'getFeedId', - 'feed_type' => 'getFeedType', - 'marketplace_ids' => 'getMarketplaceIds', - 'created_time' => 'getCreatedTime', - 'processing_status' => 'getProcessingStatus', - 'processing_start_time' => 'getProcessingStartTime', - 'processing_end_time' => 'getProcessingEndTime', - 'result_feed_document_id' => 'getResultFeedDocumentId' - ]; - - - - 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'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getProcessingStatusAllowableValues() - { - $baseVals = [ - self::PROCESSING_STATUS_CANCELLED, - self::PROCESSING_STATUS_DONE, - self::PROCESSING_STATUS_FATAL, - self::PROCESSING_STATUS_IN_PROGRESS, - self::PROCESSING_STATUS_IN_QUEUE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feed_id'] = $data['feed_id'] ?? null; - $this->container['feed_type'] = $data['feed_type'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['created_time'] = $data['created_time'] ?? null; - $this->container['processing_status'] = $data['processing_status'] ?? null; - $this->container['processing_start_time'] = $data['processing_start_time'] ?? null; - $this->container['processing_end_time'] = $data['processing_end_time'] ?? null; - $this->container['result_feed_document_id'] = $data['result_feed_document_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feed_id'] === null) { - $invalidProperties[] = "'feed_id' can't be null"; - } - if ($this->container['feed_type'] === null) { - $invalidProperties[] = "'feed_type' can't be null"; - } - if ($this->container['created_time'] === null) { - $invalidProperties[] = "'created_time' can't be null"; - } - if ($this->container['processing_status'] === null) { - $invalidProperties[] = "'processing_status' can't be null"; - } - $allowedValues = $this->getProcessingStatusAllowableValues(); - if ( - !is_null($this->container['processing_status']) && - !in_array(strtoupper($this->container['processing_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'processing_status', must be one of '%s'", - $this->container['processing_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets feed_id - * - * @return string - */ - public function getFeedId() - { - return $this->container['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. - * - * @return self - */ - public function setFeedId($feed_id) - { - $this->container['feed_id'] = $feed_id; - - return $this; - } - /** - * Gets feed_type - * - * @return string - */ - public function getFeedType() - { - return $this->container['feed_type']; - } - - /** - * Sets feed_type - * - * @param string $feed_type The feed type. - * - * @return self - */ - public function setFeedType($feed_type) - { - $this->container['feed_type'] = $feed_type; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[]|null - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[]|null $marketplace_ids A list of identifiers for the marketplaces that the feed is applied to. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets created_time - * - * @return string - */ - public function getCreatedTime() - { - return $this->container['created_time']; - } - - /** - * Sets created_time - * - * @param string $created_time The date and time when the feed was created, in ISO 8601 date time format. - * - * @return self - */ - public function setCreatedTime($created_time) - { - $this->container['created_time'] = $created_time; - - return $this; - } - /** - * Gets processing_status - * - * @return string - */ - public function getProcessingStatus() - { - return $this->container['processing_status']; - } - - /** - * Sets processing_status - * - * @param string $processing_status The processing status of the feed. - * - * @return self - */ - public function setProcessingStatus($processing_status) - { - $allowedValues = $this->getProcessingStatusAllowableValues(); - if (!in_array(strtoupper($processing_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'processing_status', must be one of '%s'", - $processing_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['processing_status'] = $processing_status; - - return $this; - } - /** - * Gets processing_start_time - * - * @return string|null - */ - public function getProcessingStartTime() - { - return $this->container['processing_start_time']; - } - - /** - * Sets processing_start_time - * - * @param string|null $processing_start_time The date and time when feed processing started, in ISO 8601 date time format. - * - * @return self - */ - public function setProcessingStartTime($processing_start_time) - { - $this->container['processing_start_time'] = $processing_start_time; - - return $this; - } - /** - * Gets processing_end_time - * - * @return string|null - */ - public function getProcessingEndTime() - { - return $this->container['processing_end_time']; - } - - /** - * Sets processing_end_time - * - * @param string|null $processing_end_time The date and time when feed processing completed, in ISO 8601 date time format. - * - * @return self - */ - public function setProcessingEndTime($processing_end_time) - { - $this->container['processing_end_time'] = $processing_end_time; - - return $this; - } - /** - * Gets result_feed_document_id - * - * @return string|null - */ - public function getResultFeedDocumentId() - { - return $this->container['result_feed_document_id']; - } - - /** - * Sets result_feed_document_id - * - * @param string|null $result_feed_document_id The identifier for the feed document. This identifier is unique only in combination with a seller ID. - * - * @return self - */ - public function setResultFeedDocumentId($result_feed_document_id) - { - $this->container['result_feed_document_id'] = $result_feed_document_id; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/FeedDocument.php b/lib/Model/FeedsV20210630/FeedDocument.php deleted file mode 100644 index 2feeab207..000000000 --- a/lib/Model/FeedsV20210630/FeedDocument.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeedDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeedDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feed_document_id' => 'string', - 'url' => 'string', - 'compression_algorithm' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feed_document_id' => null, - 'url' => null, - 'compression_algorithm' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'feed_document_id' => 'feedDocumentId', - 'url' => 'url', - 'compression_algorithm' => 'compressionAlgorithm' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'feed_document_id' => 'setFeedDocumentId', - 'url' => 'setUrl', - 'compression_algorithm' => 'setCompressionAlgorithm' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'feed_document_id' => 'getFeedDocumentId', - 'url' => 'getUrl', - 'compression_algorithm' => 'getCompressionAlgorithm' - ]; - - - - const COMPRESSION_ALGORITHM_GZIP = 'GZIP'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionAlgorithmAllowableValues() - { - $baseVals = [ - self::COMPRESSION_ALGORITHM_GZIP, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feed_document_id'] = $data['feed_document_id'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['compression_algorithm'] = $data['compression_algorithm'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feed_document_id'] === null) { - $invalidProperties[] = "'feed_document_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - $allowedValues = $this->getCompressionAlgorithmAllowableValues(); - if ( - !is_null($this->container['compression_algorithm']) && - !in_array(strtoupper($this->container['compression_algorithm']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_algorithm', must be one of '%s'", - $this->container['compression_algorithm'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets feed_document_id - * - * @return string - */ - public function getFeedDocumentId() - { - return $this->container['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. - * - * @return self - */ - public function setFeedDocumentId($feed_document_id) - { - $this->container['feed_document_id'] = $feed_document_id; - - return $this; - } - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Gets compression_algorithm - * - * @return string|null - */ - public function getCompressionAlgorithm() - { - return $this->container['compression_algorithm']; - } - - /** - * Sets compression_algorithm - * - * @param string|null $compression_algorithm If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 7. Download the feed processing report](https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-use-case-guide#step-7-download-the-feed-processing-report) in the use case guide, where sample code is provided. - * - * @return self - */ - public function setCompressionAlgorithm($compression_algorithm) - { - $allowedValues = $this->getCompressionAlgorithmAllowableValues(); - if (!is_null($compression_algorithm) &&!in_array(strtoupper($compression_algorithm), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_algorithm', must be one of '%s'", - $compression_algorithm, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_algorithm'] = $compression_algorithm; - - return $this; - } -} - - diff --git a/lib/Model/FeedsV20210630/GetFeedsResponse.php b/lib/Model/FeedsV20210630/GetFeedsResponse.php deleted file mode 100644 index a2273d844..000000000 --- a/lib/Model/FeedsV20210630/GetFeedsResponse.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeedsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeedsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'feeds' => '\SellingPartnerApi\Model\FeedsV20210630\Feed[]', - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'feeds' => null, - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'feeds' => 'feeds', - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'feeds' => 'setFeeds', - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'feeds' => 'getFeeds', - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['feeds'] = $data['feeds'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feeds'] === null) { - $invalidProperties[] = "'feeds' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets feeds - * - * @return \SellingPartnerApi\Model\FeedsV20210630\Feed[] - */ - public function getFeeds() - { - return $this->container['feeds']; - } - - /** - * Sets feeds - * - * @param \SellingPartnerApi\Model\FeedsV20210630\Feed[] $feeds A list of feeds. - * - * @return self - */ - public function setFeeds($feeds) - { - $this->container['feeds'] = $feeds; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $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. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/Error.php b/lib/Model/FeesV0/Error.php deleted file mode 100644 index 831170680..000000000 --- a/lib/Model/FeesV0/Error.php +++ /dev/null @@ -1,225 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeeDetail.php b/lib/Model/FeesV0/FeeDetail.php deleted file mode 100644 index 20de468e5..000000000 --- a/lib/Model/FeesV0/FeeDetail.php +++ /dev/null @@ -1,316 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeeDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeeDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fee_type' => 'string', - 'fee_amount' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'fee_promotion' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'tax_amount' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'final_fee' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'included_fee_detail_list' => '\SellingPartnerApi\Model\FeesV0\IncludedFeeDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fee_type' => null, - 'fee_amount' => null, - 'fee_promotion' => null, - 'tax_amount' => null, - 'final_fee' => null, - 'included_fee_detail_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fee_type' => 'FeeType', - 'fee_amount' => 'FeeAmount', - 'fee_promotion' => 'FeePromotion', - 'tax_amount' => 'TaxAmount', - 'final_fee' => 'FinalFee', - 'included_fee_detail_list' => 'IncludedFeeDetailList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fee_type' => 'setFeeType', - 'fee_amount' => 'setFeeAmount', - 'fee_promotion' => 'setFeePromotion', - 'tax_amount' => 'setTaxAmount', - 'final_fee' => 'setFinalFee', - 'included_fee_detail_list' => 'setIncludedFeeDetailList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fee_type' => 'getFeeType', - 'fee_amount' => 'getFeeAmount', - 'fee_promotion' => 'getFeePromotion', - 'tax_amount' => 'getTaxAmount', - 'final_fee' => 'getFinalFee', - 'included_fee_detail_list' => 'getIncludedFeeDetailList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fee_type'] = $data['fee_type'] ?? null; - $this->container['fee_amount'] = $data['fee_amount'] ?? null; - $this->container['fee_promotion'] = $data['fee_promotion'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['final_fee'] = $data['final_fee'] ?? null; - $this->container['included_fee_detail_list'] = $data['included_fee_detail_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fee_type'] === null) { - $invalidProperties[] = "'fee_type' can't be null"; - } - if ($this->container['fee_amount'] === null) { - $invalidProperties[] = "'fee_amount' can't be null"; - } - if ($this->container['final_fee'] === null) { - $invalidProperties[] = "'final_fee' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fee_type - * - * @return string - */ - public function getFeeType() - { - return $this->container['fee_type']; - } - - /** - * Sets fee_type - * - * @param string $fee_type The type of fee charged to a seller. - * - * @return self - */ - public function setFeeType($fee_type) - { - $this->container['fee_type'] = $fee_type; - - return $this; - } - /** - * Gets fee_amount - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType - */ - public function getFeeAmount() - { - return $this->container['fee_amount']; - } - - /** - * Sets fee_amount - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType $fee_amount fee_amount - * - * @return self - */ - public function setFeeAmount($fee_amount) - { - $this->container['fee_amount'] = $fee_amount; - - return $this; - } - /** - * Gets fee_promotion - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getFeePromotion() - { - return $this->container['fee_promotion']; - } - - /** - * Sets fee_promotion - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $fee_promotion fee_promotion - * - * @return self - */ - public function setFeePromotion($fee_promotion) - { - $this->container['fee_promotion'] = $fee_promotion; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets final_fee - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType - */ - public function getFinalFee() - { - return $this->container['final_fee']; - } - - /** - * Sets final_fee - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType $final_fee final_fee - * - * @return self - */ - public function setFinalFee($final_fee) - { - $this->container['final_fee'] = $final_fee; - - return $this; - } - /** - * Gets included_fee_detail_list - * - * @return \SellingPartnerApi\Model\FeesV0\IncludedFeeDetail[]|null - */ - public function getIncludedFeeDetailList() - { - return $this->container['included_fee_detail_list']; - } - - /** - * Sets included_fee_detail_list - * - * @param \SellingPartnerApi\Model\FeesV0\IncludedFeeDetail[]|null $included_fee_detail_list A list of other fees that contribute to a given fee. - * - * @return self - */ - public function setIncludedFeeDetailList($included_fee_detail_list) - { - $this->container['included_fee_detail_list'] = $included_fee_detail_list; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimate.php b/lib/Model/FeesV0/FeesEstimate.php deleted file mode 100644 index 6eb97295a..000000000 --- a/lib/Model/FeesV0/FeesEstimate.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'time_of_fees_estimation' => 'string', - 'total_fees_estimate' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'fee_detail_list' => '\SellingPartnerApi\Model\FeesV0\FeeDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'time_of_fees_estimation' => null, - 'total_fees_estimate' => null, - 'fee_detail_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'time_of_fees_estimation' => 'TimeOfFeesEstimation', - 'total_fees_estimate' => 'TotalFeesEstimate', - 'fee_detail_list' => 'FeeDetailList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'time_of_fees_estimation' => 'setTimeOfFeesEstimation', - 'total_fees_estimate' => 'setTotalFeesEstimate', - 'fee_detail_list' => 'setFeeDetailList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'time_of_fees_estimation' => 'getTimeOfFeesEstimation', - 'total_fees_estimate' => 'getTotalFeesEstimate', - 'fee_detail_list' => 'getFeeDetailList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['time_of_fees_estimation'] = $data['time_of_fees_estimation'] ?? null; - $this->container['total_fees_estimate'] = $data['total_fees_estimate'] ?? null; - $this->container['fee_detail_list'] = $data['fee_detail_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['time_of_fees_estimation'] === null) { - $invalidProperties[] = "'time_of_fees_estimation' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets time_of_fees_estimation - * - * @return string - */ - public function getTimeOfFeesEstimation() - { - return $this->container['time_of_fees_estimation']; - } - - /** - * Sets time_of_fees_estimation - * - * @param string $time_of_fees_estimation The time at which the fees were estimated. This defaults to the time the request is made. Must be in ISO 8601 format. - * - * @return self - */ - public function setTimeOfFeesEstimation($time_of_fees_estimation) - { - $this->container['time_of_fees_estimation'] = $time_of_fees_estimation; - - return $this; - } - /** - * Gets total_fees_estimate - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getTotalFeesEstimate() - { - return $this->container['total_fees_estimate']; - } - - /** - * Sets total_fees_estimate - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $total_fees_estimate total_fees_estimate - * - * @return self - */ - public function setTotalFeesEstimate($total_fees_estimate) - { - $this->container['total_fees_estimate'] = $total_fees_estimate; - - return $this; - } - /** - * Gets fee_detail_list - * - * @return \SellingPartnerApi\Model\FeesV0\FeeDetail[]|null - */ - public function getFeeDetailList() - { - return $this->container['fee_detail_list']; - } - - /** - * Sets fee_detail_list - * - * @param \SellingPartnerApi\Model\FeesV0\FeeDetail[]|null $fee_detail_list A list of other fees that contribute to a given fee. - * - * @return self - */ - public function setFeeDetailList($fee_detail_list) - { - $this->container['fee_detail_list'] = $fee_detail_list; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimateByIdRequest.php b/lib/Model/FeesV0/FeesEstimateByIdRequest.php deleted file mode 100644 index 2a1717b71..000000000 --- a/lib/Model/FeesV0/FeesEstimateByIdRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimateByIdRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimateByIdRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fees_estimate_request' => '\SellingPartnerApi\Model\FeesV0\FeesEstimateRequest', - 'id_type' => '\SellingPartnerApi\Model\FeesV0\IdType', - 'id_value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fees_estimate_request' => null, - 'id_type' => null, - 'id_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fees_estimate_request' => 'FeesEstimateRequest', - 'id_type' => 'IdType', - 'id_value' => 'IdValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fees_estimate_request' => 'setFeesEstimateRequest', - 'id_type' => 'setIdType', - 'id_value' => 'setIdValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fees_estimate_request' => 'getFeesEstimateRequest', - 'id_type' => 'getIdType', - 'id_value' => 'getIdValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fees_estimate_request'] = $data['fees_estimate_request'] ?? null; - $this->container['id_type'] = $data['id_type'] ?? null; - $this->container['id_value'] = $data['id_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['id_type'] === null) { - $invalidProperties[] = "'id_type' can't be null"; - } - if ($this->container['id_value'] === null) { - $invalidProperties[] = "'id_value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fees_estimate_request - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateRequest|null - */ - public function getFeesEstimateRequest() - { - return $this->container['fees_estimate_request']; - } - - /** - * Sets fees_estimate_request - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateRequest|null $fees_estimate_request fees_estimate_request - * - * @return self - */ - public function setFeesEstimateRequest($fees_estimate_request) - { - $this->container['fees_estimate_request'] = $fees_estimate_request; - - return $this; - } - /** - * Gets id_type - * - * @return \SellingPartnerApi\Model\FeesV0\IdType - */ - public function getIdType() - { - return $this->container['id_type']; - } - - /** - * Sets id_type - * - * @param \SellingPartnerApi\Model\FeesV0\IdType $id_type id_type - * - * @return self - */ - public function setIdType($id_type) - { - $this->container['id_type'] = $id_type; - - return $this; - } - /** - * Gets id_value - * - * @return string - */ - public function getIdValue() - { - return $this->container['id_value']; - } - - /** - * Sets id_value - * - * @param string $id_value The item identifier. - * - * @return self - */ - public function setIdValue($id_value) - { - $this->container['id_value'] = $id_value; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimateError.php b/lib/Model/FeesV0/FeesEstimateError.php deleted file mode 100644 index f89a39c37..000000000 --- a/lib/Model/FeesV0/FeesEstimateError.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimateError extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimateError'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'code' => 'string', - 'message' => 'string', - 'detail' => 'object[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'code' => null, - 'message' => null, - 'detail' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'Type', - 'code' => 'Code', - 'message' => 'Message', - 'detail' => 'Detail' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'code' => 'setCode', - 'message' => 'setMessage', - 'detail' => 'setDetail' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'code' => 'getCode', - 'message' => 'getMessage', - 'detail' => 'getDetail' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['detail'] = $data['detail'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - if ($this->container['detail'] === null) { - $invalidProperties[] = "'detail' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type An error type, identifying either the receiver or the sender as the originator of the error. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets detail - * - * @return object[] - */ - public function getDetail() - { - return $this->container['detail']; - } - - /** - * Sets detail - * - * @param object[] $detail Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetail($detail) - { - $this->container['detail'] = $detail; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimateIdentifier.php b/lib/Model/FeesV0/FeesEstimateIdentifier.php deleted file mode 100644 index d7866aef6..000000000 --- a/lib/Model/FeesV0/FeesEstimateIdentifier.php +++ /dev/null @@ -1,365 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimateIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimateIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_id' => 'string', - 'id_type' => '\SellingPartnerApi\Model\FeesV0\IdType', - 'id_value' => 'string', - 'is_amazon_fulfilled' => 'bool', - 'price_to_estimate_fees' => '\SellingPartnerApi\Model\FeesV0\PriceToEstimateFees', - 'seller_input_identifier' => 'string', - 'optional_fulfillment_program' => '\SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_id' => null, - 'id_type' => null, - 'id_value' => null, - 'is_amazon_fulfilled' => null, - 'price_to_estimate_fees' => null, - 'seller_input_identifier' => null, - 'optional_fulfillment_program' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'seller_id' => 'SellerId', - 'id_type' => 'IdType', - 'id_value' => 'IdValue', - 'is_amazon_fulfilled' => 'IsAmazonFulfilled', - 'price_to_estimate_fees' => 'PriceToEstimateFees', - 'seller_input_identifier' => 'SellerInputIdentifier', - 'optional_fulfillment_program' => 'OptionalFulfillmentProgram' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'seller_id' => 'setSellerId', - 'id_type' => 'setIdType', - 'id_value' => 'setIdValue', - 'is_amazon_fulfilled' => 'setIsAmazonFulfilled', - 'price_to_estimate_fees' => 'setPriceToEstimateFees', - 'seller_input_identifier' => 'setSellerInputIdentifier', - 'optional_fulfillment_program' => 'setOptionalFulfillmentProgram' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'seller_id' => 'getSellerId', - 'id_type' => 'getIdType', - 'id_value' => 'getIdValue', - 'is_amazon_fulfilled' => 'getIsAmazonFulfilled', - 'price_to_estimate_fees' => 'getPriceToEstimateFees', - 'seller_input_identifier' => 'getSellerInputIdentifier', - 'optional_fulfillment_program' => 'getOptionalFulfillmentProgram' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['id_type'] = $data['id_type'] ?? null; - $this->container['id_value'] = $data['id_value'] ?? null; - $this->container['is_amazon_fulfilled'] = $data['is_amazon_fulfilled'] ?? null; - $this->container['price_to_estimate_fees'] = $data['price_to_estimate_fees'] ?? null; - $this->container['seller_input_identifier'] = $data['seller_input_identifier'] ?? null; - $this->container['optional_fulfillment_program'] = $data['optional_fulfillment_program'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets id_type - * - * @return \SellingPartnerApi\Model\FeesV0\IdType|null - */ - public function getIdType() - { - return $this->container['id_type']; - } - - /** - * Sets id_type - * - * @param \SellingPartnerApi\Model\FeesV0\IdType|null $id_type id_type - * - * @return self - */ - public function setIdType($id_type) - { - $this->container['id_type'] = $id_type; - - return $this; - } - /** - * Gets id_value - * - * @return string|null - */ - public function getIdValue() - { - return $this->container['id_value']; - } - - /** - * Sets id_value - * - * @param string|null $id_value The item identifier. - * - * @return self - */ - public function setIdValue($id_value) - { - $this->container['id_value'] = $id_value; - - return $this; - } - /** - * Gets is_amazon_fulfilled - * - * @return bool|null - */ - public function getIsAmazonFulfilled() - { - return $this->container['is_amazon_fulfilled']; - } - - /** - * Sets is_amazon_fulfilled - * - * @param bool|null $is_amazon_fulfilled When true, the offer is fulfilled by Amazon. - * - * @return self - */ - public function setIsAmazonFulfilled($is_amazon_fulfilled) - { - $this->container['is_amazon_fulfilled'] = $is_amazon_fulfilled; - - return $this; - } - /** - * Gets price_to_estimate_fees - * - * @return \SellingPartnerApi\Model\FeesV0\PriceToEstimateFees|null - */ - public function getPriceToEstimateFees() - { - return $this->container['price_to_estimate_fees']; - } - - /** - * Sets price_to_estimate_fees - * - * @param \SellingPartnerApi\Model\FeesV0\PriceToEstimateFees|null $price_to_estimate_fees price_to_estimate_fees - * - * @return self - */ - public function setPriceToEstimateFees($price_to_estimate_fees) - { - $this->container['price_to_estimate_fees'] = $price_to_estimate_fees; - - return $this; - } - /** - * Gets seller_input_identifier - * - * @return string|null - */ - public function getSellerInputIdentifier() - { - return $this->container['seller_input_identifier']; - } - - /** - * Sets seller_input_identifier - * - * @param string|null $seller_input_identifier A unique identifier provided by the caller to track this request. - * - * @return self - */ - public function setSellerInputIdentifier($seller_input_identifier) - { - $this->container['seller_input_identifier'] = $seller_input_identifier; - - return $this; - } - /** - * Gets optional_fulfillment_program - * - * @return \SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram|null - */ - public function getOptionalFulfillmentProgram() - { - return $this->container['optional_fulfillment_program']; - } - - /** - * Sets optional_fulfillment_program - * - * @param \SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram|null $optional_fulfillment_program optional_fulfillment_program - * - * @return self - */ - public function setOptionalFulfillmentProgram($optional_fulfillment_program) - { - $this->container['optional_fulfillment_program'] = $optional_fulfillment_program; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimateRequest.php b/lib/Model/FeesV0/FeesEstimateRequest.php deleted file mode 100644 index 33a235f9c..000000000 --- a/lib/Model/FeesV0/FeesEstimateRequest.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimateRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimateRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'is_amazon_fulfilled' => 'bool', - 'price_to_estimate_fees' => '\SellingPartnerApi\Model\FeesV0\PriceToEstimateFees', - 'identifier' => 'string', - 'optional_fulfillment_program' => '\SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'is_amazon_fulfilled' => null, - 'price_to_estimate_fees' => null, - 'identifier' => null, - 'optional_fulfillment_program' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'is_amazon_fulfilled' => 'IsAmazonFulfilled', - 'price_to_estimate_fees' => 'PriceToEstimateFees', - 'identifier' => 'Identifier', - 'optional_fulfillment_program' => 'OptionalFulfillmentProgram' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'is_amazon_fulfilled' => 'setIsAmazonFulfilled', - 'price_to_estimate_fees' => 'setPriceToEstimateFees', - 'identifier' => 'setIdentifier', - 'optional_fulfillment_program' => 'setOptionalFulfillmentProgram' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'is_amazon_fulfilled' => 'getIsAmazonFulfilled', - 'price_to_estimate_fees' => 'getPriceToEstimateFees', - 'identifier' => 'getIdentifier', - 'optional_fulfillment_program' => 'getOptionalFulfillmentProgram' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['is_amazon_fulfilled'] = $data['is_amazon_fulfilled'] ?? null; - $this->container['price_to_estimate_fees'] = $data['price_to_estimate_fees'] ?? null; - $this->container['identifier'] = $data['identifier'] ?? null; - $this->container['optional_fulfillment_program'] = $data['optional_fulfillment_program'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['price_to_estimate_fees'] === null) { - $invalidProperties[] = "'price_to_estimate_fees' can't be null"; - } - if ($this->container['identifier'] === null) { - $invalidProperties[] = "'identifier' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets is_amazon_fulfilled - * - * @return bool|null - */ - public function getIsAmazonFulfilled() - { - return $this->container['is_amazon_fulfilled']; - } - - /** - * Sets is_amazon_fulfilled - * - * @param bool|null $is_amazon_fulfilled When true, the offer is fulfilled by Amazon. - * - * @return self - */ - public function setIsAmazonFulfilled($is_amazon_fulfilled) - { - $this->container['is_amazon_fulfilled'] = $is_amazon_fulfilled; - - return $this; - } - /** - * Gets price_to_estimate_fees - * - * @return \SellingPartnerApi\Model\FeesV0\PriceToEstimateFees - */ - public function getPriceToEstimateFees() - { - return $this->container['price_to_estimate_fees']; - } - - /** - * Sets price_to_estimate_fees - * - * @param \SellingPartnerApi\Model\FeesV0\PriceToEstimateFees $price_to_estimate_fees price_to_estimate_fees - * - * @return self - */ - public function setPriceToEstimateFees($price_to_estimate_fees) - { - $this->container['price_to_estimate_fees'] = $price_to_estimate_fees; - - return $this; - } - /** - * Gets identifier - * - * @return string - */ - public function getIdentifier() - { - return $this->container['identifier']; - } - - /** - * Sets identifier - * - * @param string $identifier A unique identifier provided by the caller to track this request. - * - * @return self - */ - public function setIdentifier($identifier) - { - $this->container['identifier'] = $identifier; - - return $this; - } - /** - * Gets optional_fulfillment_program - * - * @return \SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram|null - */ - public function getOptionalFulfillmentProgram() - { - return $this->container['optional_fulfillment_program']; - } - - /** - * Sets optional_fulfillment_program - * - * @param \SellingPartnerApi\Model\FeesV0\OptionalFulfillmentProgram|null $optional_fulfillment_program optional_fulfillment_program - * - * @return self - */ - public function setOptionalFulfillmentProgram($optional_fulfillment_program) - { - $this->container['optional_fulfillment_program'] = $optional_fulfillment_program; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/FeesEstimateResult.php b/lib/Model/FeesV0/FeesEstimateResult.php deleted file mode 100644 index ed0a4d309..000000000 --- a/lib/Model/FeesV0/FeesEstimateResult.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeesEstimateResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeesEstimateResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => 'string', - 'fees_estimate_identifier' => '\SellingPartnerApi\Model\FeesV0\FeesEstimateIdentifier', - 'fees_estimate' => '\SellingPartnerApi\Model\FeesV0\FeesEstimate', - 'error' => '\SellingPartnerApi\Model\FeesV0\FeesEstimateError' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null, - 'fees_estimate_identifier' => null, - 'fees_estimate' => null, - 'error' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'Status', - 'fees_estimate_identifier' => 'FeesEstimateIdentifier', - 'fees_estimate' => 'FeesEstimate', - 'error' => 'Error' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus', - 'fees_estimate_identifier' => 'setFeesEstimateIdentifier', - 'fees_estimate' => 'setFeesEstimate', - 'error' => 'setError' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus', - 'fees_estimate_identifier' => 'getFeesEstimateIdentifier', - 'fees_estimate' => 'getFeesEstimate', - 'error' => 'getError' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - $this->container['fees_estimate_identifier'] = $data['fees_estimate_identifier'] ?? null; - $this->container['fees_estimate'] = $data['fees_estimate'] ?? null; - $this->container['error'] = $data['error'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status The status of the fee request. Possible values: Success, ClientError, ServiceError. - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets fees_estimate_identifier - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateIdentifier|null - */ - public function getFeesEstimateIdentifier() - { - return $this->container['fees_estimate_identifier']; - } - - /** - * Sets fees_estimate_identifier - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateIdentifier|null $fees_estimate_identifier fees_estimate_identifier - * - * @return self - */ - public function setFeesEstimateIdentifier($fees_estimate_identifier) - { - $this->container['fees_estimate_identifier'] = $fees_estimate_identifier; - - return $this; - } - /** - * Gets fees_estimate - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimate|null - */ - public function getFeesEstimate() - { - return $this->container['fees_estimate']; - } - - /** - * Sets fees_estimate - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimate|null $fees_estimate fees_estimate - * - * @return self - */ - public function setFeesEstimate($fees_estimate) - { - $this->container['fees_estimate'] = $fees_estimate; - - return $this; - } - /** - * Gets error - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateError|null - */ - public function getError() - { - return $this->container['error']; - } - - /** - * Sets error - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateError|null $error error - * - * @return self - */ - public function setError($error) - { - $this->container['error'] = $error; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/GetMyFeesEstimateRequest.php b/lib/Model/FeesV0/GetMyFeesEstimateRequest.php deleted file mode 100644 index 295666ec8..000000000 --- a/lib/Model/FeesV0/GetMyFeesEstimateRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMyFeesEstimateRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMyFeesEstimateRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fees_estimate_request' => '\SellingPartnerApi\Model\FeesV0\FeesEstimateRequest' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fees_estimate_request' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fees_estimate_request' => 'FeesEstimateRequest' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fees_estimate_request' => 'setFeesEstimateRequest' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fees_estimate_request' => 'getFeesEstimateRequest' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fees_estimate_request'] = $data['fees_estimate_request'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fees_estimate_request - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateRequest|null - */ - public function getFeesEstimateRequest() - { - return $this->container['fees_estimate_request']; - } - - /** - * Sets fees_estimate_request - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateRequest|null $fees_estimate_request fees_estimate_request - * - * @return self - */ - public function setFeesEstimateRequest($fees_estimate_request) - { - $this->container['fees_estimate_request'] = $fees_estimate_request; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/GetMyFeesEstimateResponse.php b/lib/Model/FeesV0/GetMyFeesEstimateResponse.php deleted file mode 100644 index 4db5cd4ea..000000000 --- a/lib/Model/FeesV0/GetMyFeesEstimateResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMyFeesEstimateResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMyFeesEstimateResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResult', - 'errors' => '\SellingPartnerApi\Model\FeesV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FeesV0\GetMyFeesEstimateResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FeesV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FeesV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/GetMyFeesEstimateResult.php b/lib/Model/FeesV0/GetMyFeesEstimateResult.php deleted file mode 100644 index 519723bb9..000000000 --- a/lib/Model/FeesV0/GetMyFeesEstimateResult.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMyFeesEstimateResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMyFeesEstimateResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fees_estimate_result' => '\SellingPartnerApi\Model\FeesV0\FeesEstimateResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fees_estimate_result' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fees_estimate_result' => 'FeesEstimateResult' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fees_estimate_result' => 'setFeesEstimateResult' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fees_estimate_result' => 'getFeesEstimateResult' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fees_estimate_result'] = $data['fees_estimate_result'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fees_estimate_result - * - * @return \SellingPartnerApi\Model\FeesV0\FeesEstimateResult|null - */ - public function getFeesEstimateResult() - { - return $this->container['fees_estimate_result']; - } - - /** - * Sets fees_estimate_result - * - * @param \SellingPartnerApi\Model\FeesV0\FeesEstimateResult|null $fees_estimate_result fees_estimate_result - * - * @return self - */ - public function setFeesEstimateResult($fees_estimate_result) - { - $this->container['fees_estimate_result'] = $fees_estimate_result; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/GetMyFeesEstimatesErrorList.php b/lib/Model/FeesV0/GetMyFeesEstimatesErrorList.php deleted file mode 100644 index bf834e3bf..000000000 --- a/lib/Model/FeesV0/GetMyFeesEstimatesErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMyFeesEstimatesErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMyFeesEstimatesErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\FeesV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FeesV0\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FeesV0\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/IdType.php b/lib/Model/FeesV0/IdType.php deleted file mode 100644 index 6ad1451f8..000000000 --- a/lib/Model/FeesV0/IdType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FeesV0/IncludedFeeDetail.php b/lib/Model/FeesV0/IncludedFeeDetail.php deleted file mode 100644 index 3c3a03b23..000000000 --- a/lib/Model/FeesV0/IncludedFeeDetail.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IncludedFeeDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IncludedFeeDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fee_type' => 'string', - 'fee_amount' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'fee_promotion' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'tax_amount' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'final_fee' => '\SellingPartnerApi\Model\FeesV0\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fee_type' => null, - 'fee_amount' => null, - 'fee_promotion' => null, - 'tax_amount' => null, - 'final_fee' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fee_type' => 'FeeType', - 'fee_amount' => 'FeeAmount', - 'fee_promotion' => 'FeePromotion', - 'tax_amount' => 'TaxAmount', - 'final_fee' => 'FinalFee' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fee_type' => 'setFeeType', - 'fee_amount' => 'setFeeAmount', - 'fee_promotion' => 'setFeePromotion', - 'tax_amount' => 'setTaxAmount', - 'final_fee' => 'setFinalFee' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fee_type' => 'getFeeType', - 'fee_amount' => 'getFeeAmount', - 'fee_promotion' => 'getFeePromotion', - 'tax_amount' => 'getTaxAmount', - 'final_fee' => 'getFinalFee' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fee_type'] = $data['fee_type'] ?? null; - $this->container['fee_amount'] = $data['fee_amount'] ?? null; - $this->container['fee_promotion'] = $data['fee_promotion'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['final_fee'] = $data['final_fee'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fee_type'] === null) { - $invalidProperties[] = "'fee_type' can't be null"; - } - if ($this->container['fee_amount'] === null) { - $invalidProperties[] = "'fee_amount' can't be null"; - } - if ($this->container['final_fee'] === null) { - $invalidProperties[] = "'final_fee' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fee_type - * - * @return string - */ - public function getFeeType() - { - return $this->container['fee_type']; - } - - /** - * Sets fee_type - * - * @param string $fee_type The type of fee charged to a seller. - * - * @return self - */ - public function setFeeType($fee_type) - { - $this->container['fee_type'] = $fee_type; - - return $this; - } - /** - * Gets fee_amount - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType - */ - public function getFeeAmount() - { - return $this->container['fee_amount']; - } - - /** - * Sets fee_amount - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType $fee_amount fee_amount - * - * @return self - */ - public function setFeeAmount($fee_amount) - { - $this->container['fee_amount'] = $fee_amount; - - return $this; - } - /** - * Gets fee_promotion - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getFeePromotion() - { - return $this->container['fee_promotion']; - } - - /** - * Sets fee_promotion - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $fee_promotion fee_promotion - * - * @return self - */ - public function setFeePromotion($fee_promotion) - { - $this->container['fee_promotion'] = $fee_promotion; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets final_fee - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType - */ - public function getFinalFee() - { - return $this->container['final_fee']; - } - - /** - * Sets final_fee - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType $final_fee final_fee - * - * @return self - */ - public function setFinalFee($final_fee) - { - $this->container['final_fee'] = $final_fee; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/MoneyType.php b/lib/Model/FeesV0/MoneyType.php deleted file mode 100644 index 21b6e0701..000000000 --- a/lib/Model/FeesV0/MoneyType.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MoneyType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MoneyType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return float|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param float|null $amount The monetary value. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/OptionalFulfillmentProgram.php b/lib/Model/FeesV0/OptionalFulfillmentProgram.php deleted file mode 100644 index bd4c98765..000000000 --- a/lib/Model/FeesV0/OptionalFulfillmentProgram.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/FeesV0/Points.php b/lib/Model/FeesV0/Points.php deleted file mode 100644 index 44419fa7e..000000000 --- a/lib/Model/FeesV0/Points.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Points extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Points'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'points_number' => 'int', - 'points_monetary_value' => '\SellingPartnerApi\Model\FeesV0\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'points_number' => 'int32', - 'points_monetary_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'points_number' => 'PointsNumber', - 'points_monetary_value' => 'PointsMonetaryValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'points_number' => 'setPointsNumber', - 'points_monetary_value' => 'setPointsMonetaryValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'points_number' => 'getPointsNumber', - 'points_monetary_value' => 'getPointsMonetaryValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['points_number'] = $data['points_number'] ?? null; - $this->container['points_monetary_value'] = $data['points_monetary_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets points_number - * - * @return int|null - */ - public function getPointsNumber() - { - return $this->container['points_number']; - } - - /** - * Sets points_number - * - * @param int|null $points_number points_number - * - * @return self - */ - public function setPointsNumber($points_number) - { - $this->container['points_number'] = $points_number; - - return $this; - } - /** - * Gets points_monetary_value - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getPointsMonetaryValue() - { - return $this->container['points_monetary_value']; - } - - /** - * Sets points_monetary_value - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $points_monetary_value points_monetary_value - * - * @return self - */ - public function setPointsMonetaryValue($points_monetary_value) - { - $this->container['points_monetary_value'] = $points_monetary_value; - - return $this; - } -} - - diff --git a/lib/Model/FeesV0/PriceToEstimateFees.php b/lib/Model/FeesV0/PriceToEstimateFees.php deleted file mode 100644 index e4cc73263..000000000 --- a/lib/Model/FeesV0/PriceToEstimateFees.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PriceToEstimateFees extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PriceToEstimateFees'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'listing_price' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'shipping' => '\SellingPartnerApi\Model\FeesV0\MoneyType', - 'points' => '\SellingPartnerApi\Model\FeesV0\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'listing_price' => null, - 'shipping' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'listing_price' => 'ListingPrice', - 'shipping' => 'Shipping', - 'points' => 'Points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'listing_price' => 'setListingPrice', - 'shipping' => 'setShipping', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'listing_price' => 'getListingPrice', - 'shipping' => 'getShipping', - 'points' => 'getPoints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['shipping'] = $data['shipping'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets shipping - * - * @return \SellingPartnerApi\Model\FeesV0\MoneyType|null - */ - public function getShipping() - { - return $this->container['shipping']; - } - - /** - * Sets shipping - * - * @param \SellingPartnerApi\Model\FeesV0\MoneyType|null $shipping shipping - * - * @return self - */ - public function setShipping($shipping) - { - $this->container['shipping'] = $shipping; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\FeesV0\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\FeesV0\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/AdhocDisbursementEvent.php b/lib/Model/FinancesV0/AdhocDisbursementEvent.php deleted file mode 100644 index 7e5fcb871..000000000 --- a/lib/Model/FinancesV0/AdhocDisbursementEvent.php +++ /dev/null @@ -1,250 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdhocDisbursementEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdhocDisbursementEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_type' => 'string', - 'posted_date' => 'string', - 'transaction_id' => 'string', - 'transaction_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_type' => null, - 'posted_date' => null, - 'transaction_id' => null, - 'transaction_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_type' => 'TransactionType', - 'posted_date' => 'PostedDate', - 'transaction_id' => 'TransactionId', - 'transaction_amount' => 'TransactionAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_type' => 'setTransactionType', - 'posted_date' => 'setPostedDate', - 'transaction_id' => 'setTransactionId', - 'transaction_amount' => 'setTransactionAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_type' => 'getTransactionType', - 'posted_date' => 'getPostedDate', - 'transaction_id' => 'getTransactionId', - 'transaction_amount' => 'getTransactionAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - $this->container['transaction_amount'] = $data['transaction_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type Indicates the type of transaction. - * Example: \"Disbursed to Amazon Gift Card balance\" - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id The identifier for the transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } - /** - * Gets transaction_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransactionAmount() - { - return $this->container['transaction_amount']; - } - - /** - * Sets transaction_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transaction_amount transaction_amount - * - * @return self - */ - public function setTransactionAmount($transaction_amount) - { - $this->container['transaction_amount'] = $transaction_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/AdjustmentEvent.php b/lib/Model/FinancesV0/AdjustmentEvent.php deleted file mode 100644 index c1570c712..000000000 --- a/lib/Model/FinancesV0/AdjustmentEvent.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdjustmentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdjustmentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'adjustment_type' => 'string', - 'posted_date' => 'string', - 'adjustment_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'adjustment_item_list' => '\SellingPartnerApi\Model\FinancesV0\AdjustmentItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'adjustment_type' => null, - 'posted_date' => null, - 'adjustment_amount' => null, - 'adjustment_item_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'adjustment_type' => 'AdjustmentType', - 'posted_date' => 'PostedDate', - 'adjustment_amount' => 'AdjustmentAmount', - 'adjustment_item_list' => 'AdjustmentItemList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'adjustment_type' => 'setAdjustmentType', - 'posted_date' => 'setPostedDate', - 'adjustment_amount' => 'setAdjustmentAmount', - 'adjustment_item_list' => 'setAdjustmentItemList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'adjustment_type' => 'getAdjustmentType', - 'posted_date' => 'getPostedDate', - 'adjustment_amount' => 'getAdjustmentAmount', - 'adjustment_item_list' => 'getAdjustmentItemList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['adjustment_type'] = $data['adjustment_type'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['adjustment_amount'] = $data['adjustment_amount'] ?? null; - $this->container['adjustment_item_list'] = $data['adjustment_item_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets adjustment_type - * - * @return string|null - */ - public function getAdjustmentType() - { - return $this->container['adjustment_type']; - } - - /** - * Sets adjustment_type - * - * @param string|null $adjustment_type The type of adjustment. - * Possible values: - * * FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged. - * * ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back. - * * PostageBilling - The amount paid by a seller for shipping labels. - * * PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded. - * * LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged. - * * CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace. - * * ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace. - * * SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace. - * - * @return self - */ - public function setAdjustmentType($adjustment_type) - { - $this->container['adjustment_type'] = $adjustment_type; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets adjustment_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getAdjustmentAmount() - { - return $this->container['adjustment_amount']; - } - - /** - * Sets adjustment_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $adjustment_amount adjustment_amount - * - * @return self - */ - public function setAdjustmentAmount($adjustment_amount) - { - $this->container['adjustment_amount'] = $adjustment_amount; - - return $this; - } - /** - * Gets adjustment_item_list - * - * @return \SellingPartnerApi\Model\FinancesV0\AdjustmentItem[]|null - */ - public function getAdjustmentItemList() - { - return $this->container['adjustment_item_list']; - } - - /** - * Sets adjustment_item_list - * - * @param \SellingPartnerApi\Model\FinancesV0\AdjustmentItem[]|null $adjustment_item_list A list of information about items in an adjustment to the seller's account. - * - * @return self - */ - public function setAdjustmentItemList($adjustment_item_list) - { - $this->container['adjustment_item_list'] = $adjustment_item_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/AdjustmentItem.php b/lib/Model/FinancesV0/AdjustmentItem.php deleted file mode 100644 index 3a0d4af86..000000000 --- a/lib/Model/FinancesV0/AdjustmentItem.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdjustmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdjustmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'quantity' => 'string', - 'per_unit_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'total_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'seller_sku' => 'string', - 'fn_sku' => 'string', - 'product_description' => 'string', - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'quantity' => null, - 'per_unit_amount' => null, - 'total_amount' => null, - 'seller_sku' => null, - 'fn_sku' => null, - 'product_description' => null, - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'quantity' => 'Quantity', - 'per_unit_amount' => 'PerUnitAmount', - 'total_amount' => 'TotalAmount', - 'seller_sku' => 'SellerSKU', - 'fn_sku' => 'FnSKU', - 'product_description' => 'ProductDescription', - 'asin' => 'ASIN' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'quantity' => 'setQuantity', - 'per_unit_amount' => 'setPerUnitAmount', - 'total_amount' => 'setTotalAmount', - 'seller_sku' => 'setSellerSku', - 'fn_sku' => 'setFnSku', - 'product_description' => 'setProductDescription', - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'quantity' => 'getQuantity', - 'per_unit_amount' => 'getPerUnitAmount', - 'total_amount' => 'getTotalAmount', - 'seller_sku' => 'getSellerSku', - 'fn_sku' => 'getFnSku', - 'product_description' => 'getProductDescription', - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['per_unit_amount'] = $data['per_unit_amount'] ?? null; - $this->container['total_amount'] = $data['total_amount'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['fn_sku'] = $data['fn_sku'] ?? null; - $this->container['product_description'] = $data['product_description'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets quantity - * - * @return string|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param string|null $quantity Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets per_unit_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getPerUnitAmount() - { - return $this->container['per_unit_amount']; - } - - /** - * Sets per_unit_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $per_unit_amount per_unit_amount - * - * @return self - */ - public function setPerUnitAmount($per_unit_amount) - { - $this->container['per_unit_amount'] = $per_unit_amount; - - return $this; - } - /** - * Gets total_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - $this->container['total_amount'] = $total_amount; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets fn_sku - * - * @return string|null - */ - public function getFnSku() - { - return $this->container['fn_sku']; - } - - /** - * Sets fn_sku - * - * @param string|null $fn_sku A unique identifier assigned to products stored in and fulfilled from a fulfillment center. - * - * @return self - */ - public function setFnSku($fn_sku) - { - $this->container['fn_sku'] = $fn_sku; - - return $this; - } - /** - * Gets product_description - * - * @return string|null - */ - public function getProductDescription() - { - return $this->container['product_description']; - } - - /** - * Sets product_description - * - * @param string|null $product_description A short description of the item. - * - * @return self - */ - public function setProductDescription($product_description) - { - $this->container['product_description'] = $product_description; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/AffordabilityExpenseEvent.php b/lib/Model/FinancesV0/AffordabilityExpenseEvent.php deleted file mode 100644 index feef2cf0d..000000000 --- a/lib/Model/FinancesV0/AffordabilityExpenseEvent.php +++ /dev/null @@ -1,406 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AffordabilityExpenseEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AffordabilityExpenseEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'posted_date' => 'string', - 'marketplace_id' => 'string', - 'transaction_type' => 'string', - 'base_expense' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_type_cgst' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_type_sgst' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_type_igst' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'total_expense' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'posted_date' => null, - 'marketplace_id' => null, - 'transaction_type' => null, - 'base_expense' => null, - 'tax_type_cgst' => null, - 'tax_type_sgst' => null, - 'tax_type_igst' => null, - 'total_expense' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'posted_date' => 'PostedDate', - 'marketplace_id' => 'MarketplaceId', - 'transaction_type' => 'TransactionType', - 'base_expense' => 'BaseExpense', - 'tax_type_cgst' => 'TaxTypeCGST', - 'tax_type_sgst' => 'TaxTypeSGST', - 'tax_type_igst' => 'TaxTypeIGST', - 'total_expense' => 'TotalExpense' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'posted_date' => 'setPostedDate', - 'marketplace_id' => 'setMarketplaceId', - 'transaction_type' => 'setTransactionType', - 'base_expense' => 'setBaseExpense', - 'tax_type_cgst' => 'setTaxTypeCgst', - 'tax_type_sgst' => 'setTaxTypeSgst', - 'tax_type_igst' => 'setTaxTypeIgst', - 'total_expense' => 'setTotalExpense' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'posted_date' => 'getPostedDate', - 'marketplace_id' => 'getMarketplaceId', - 'transaction_type' => 'getTransactionType', - 'base_expense' => 'getBaseExpense', - 'tax_type_cgst' => 'getTaxTypeCgst', - 'tax_type_sgst' => 'getTaxTypeSgst', - 'tax_type_igst' => 'getTaxTypeIgst', - 'total_expense' => 'getTotalExpense' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['base_expense'] = $data['base_expense'] ?? null; - $this->container['tax_type_cgst'] = $data['tax_type_cgst'] ?? null; - $this->container['tax_type_sgst'] = $data['tax_type_sgst'] ?? null; - $this->container['tax_type_igst'] = $data['tax_type_igst'] ?? null; - $this->container['total_expense'] = $data['total_expense'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_type_cgst'] === null) { - $invalidProperties[] = "'tax_type_cgst' can't be null"; - } - if ($this->container['tax_type_sgst'] === null) { - $invalidProperties[] = "'tax_type_sgst' can't be null"; - } - if ($this->container['tax_type_igst'] === null) { - $invalidProperties[] = "'tax_type_igst' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id An encrypted, Amazon-defined marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type Indicates the type of transaction. - * Possible values: - * * Charge - For an affordability promotion expense. - * * Refund - For an affordability promotion expense reversal. - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets base_expense - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getBaseExpense() - { - return $this->container['base_expense']; - } - - /** - * Sets base_expense - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $base_expense base_expense - * - * @return self - */ - public function setBaseExpense($base_expense) - { - $this->container['base_expense'] = $base_expense; - - return $this; - } - /** - * Gets tax_type_cgst - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency - */ - public function getTaxTypeCgst() - { - return $this->container['tax_type_cgst']; - } - - /** - * Sets tax_type_cgst - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency $tax_type_cgst tax_type_cgst - * - * @return self - */ - public function setTaxTypeCgst($tax_type_cgst) - { - $this->container['tax_type_cgst'] = $tax_type_cgst; - - return $this; - } - /** - * Gets tax_type_sgst - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency - */ - public function getTaxTypeSgst() - { - return $this->container['tax_type_sgst']; - } - - /** - * Sets tax_type_sgst - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency $tax_type_sgst tax_type_sgst - * - * @return self - */ - public function setTaxTypeSgst($tax_type_sgst) - { - $this->container['tax_type_sgst'] = $tax_type_sgst; - - return $this; - } - /** - * Gets tax_type_igst - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency - */ - public function getTaxTypeIgst() - { - return $this->container['tax_type_igst']; - } - - /** - * Sets tax_type_igst - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency $tax_type_igst tax_type_igst - * - * @return self - */ - public function setTaxTypeIgst($tax_type_igst) - { - $this->container['tax_type_igst'] = $tax_type_igst; - - return $this; - } - /** - * Gets total_expense - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTotalExpense() - { - return $this->container['total_expense']; - } - - /** - * Sets total_expense - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $total_expense total_expense - * - * @return self - */ - public function setTotalExpense($total_expense) - { - $this->container['total_expense'] = $total_expense; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/CapacityReservationBillingEvent.php b/lib/Model/FinancesV0/CapacityReservationBillingEvent.php deleted file mode 100644 index 7296fab86..000000000 --- a/lib/Model/FinancesV0/CapacityReservationBillingEvent.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CapacityReservationBillingEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CapacityReservationBillingEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_type' => 'string', - 'posted_date' => 'string', - 'description' => 'string', - 'transaction_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_type' => null, - 'posted_date' => null, - 'description' => null, - 'transaction_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_type' => 'TransactionType', - 'posted_date' => 'PostedDate', - 'description' => 'Description', - 'transaction_amount' => 'TransactionAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_type' => 'setTransactionType', - 'posted_date' => 'setPostedDate', - 'description' => 'setDescription', - 'transaction_amount' => 'setTransactionAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_type' => 'getTransactionType', - 'posted_date' => 'getPostedDate', - 'description' => 'getDescription', - 'transaction_amount' => 'getTransactionAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['transaction_amount'] = $data['transaction_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type Indicates the type of transaction. For example, FBA Inventory Fee - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description A short description of the capacity reservation billing event. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets transaction_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransactionAmount() - { - return $this->container['transaction_amount']; - } - - /** - * Sets transaction_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transaction_amount transaction_amount - * - * @return self - */ - public function setTransactionAmount($transaction_amount) - { - $this->container['transaction_amount'] = $transaction_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ChargeComponent.php b/lib/Model/FinancesV0/ChargeComponent.php deleted file mode 100644 index 783c86da5..000000000 --- a/lib/Model/FinancesV0/ChargeComponent.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'charge_type' => 'string', - 'charge_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'charge_type' => null, - 'charge_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'charge_type' => 'ChargeType', - 'charge_amount' => 'ChargeAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'charge_type' => 'setChargeType', - 'charge_amount' => 'setChargeAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'charge_type' => 'getChargeType', - 'charge_amount' => 'getChargeAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['charge_type'] = $data['charge_type'] ?? null; - $this->container['charge_amount'] = $data['charge_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets charge_type - * - * @return string|null - */ - public function getChargeType() - { - return $this->container['charge_type']; - } - - /** - * Sets charge_type - * - * @param string|null $charge_type The type of charge. - * - * @return self - */ - public function setChargeType($charge_type) - { - $this->container['charge_type'] = $charge_type; - - return $this; - } - /** - * Gets charge_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getChargeAmount() - { - return $this->container['charge_amount']; - } - - /** - * Sets charge_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $charge_amount charge_amount - * - * @return self - */ - public function setChargeAmount($charge_amount) - { - $this->container['charge_amount'] = $charge_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ChargeInstrument.php b/lib/Model/FinancesV0/ChargeInstrument.php deleted file mode 100644 index 8b0792760..000000000 --- a/lib/Model/FinancesV0/ChargeInstrument.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeInstrument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeInstrument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'description' => 'string', - 'tail' => 'string', - 'amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'description' => null, - 'tail' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'description' => 'Description', - 'tail' => 'Tail', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'description' => 'setDescription', - 'tail' => 'setTail', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'description' => 'getDescription', - 'tail' => 'getTail', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['description'] = $data['description'] ?? null; - $this->container['tail'] = $data['tail'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description A short description of the charge instrument. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets tail - * - * @return string|null - */ - public function getTail() - { - return $this->container['tail']; - } - - /** - * Sets tail - * - * @param string|null $tail The account tail (trailing digits) of the charge instrument. - * - * @return self - */ - public function setTail($tail) - { - $this->container['tail'] = $tail; - - return $this; - } - /** - * Gets amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ChargeRefundEvent.php b/lib/Model/FinancesV0/ChargeRefundEvent.php deleted file mode 100644 index 6b4dbaf9e..000000000 --- a/lib/Model/FinancesV0/ChargeRefundEvent.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeRefundEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeRefundEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'reason_code' => 'string', - 'reason_code_description' => 'string', - 'charge_refund_transactions' => '\SellingPartnerApi\Model\FinancesV0\ChargeRefundTransaction' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'reason_code' => null, - 'reason_code_description' => null, - 'charge_refund_transactions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'reason_code' => 'ReasonCode', - 'reason_code_description' => 'ReasonCodeDescription', - 'charge_refund_transactions' => 'ChargeRefundTransactions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'reason_code' => 'setReasonCode', - 'reason_code_description' => 'setReasonCodeDescription', - 'charge_refund_transactions' => 'setChargeRefundTransactions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'reason_code' => 'getReasonCode', - 'reason_code_description' => 'getReasonCodeDescription', - 'charge_refund_transactions' => 'getChargeRefundTransactions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['reason_code'] = $data['reason_code'] ?? null; - $this->container['reason_code_description'] = $data['reason_code_description'] ?? null; - $this->container['charge_refund_transactions'] = $data['charge_refund_transactions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets reason_code - * - * @return string|null - */ - public function getReasonCode() - { - return $this->container['reason_code']; - } - - /** - * Sets reason_code - * - * @param string|null $reason_code The reason given for a charge refund. - * Example: `SubscriptionFeeCorrection` - * - * @return self - */ - public function setReasonCode($reason_code) - { - $this->container['reason_code'] = $reason_code; - - return $this; - } - /** - * Gets reason_code_description - * - * @return string|null - */ - public function getReasonCodeDescription() - { - return $this->container['reason_code_description']; - } - - /** - * Sets reason_code_description - * - * @param string|null $reason_code_description A description of the Reason Code. - * Example: `SubscriptionFeeCorrection` - * - * @return self - */ - public function setReasonCodeDescription($reason_code_description) - { - $this->container['reason_code_description'] = $reason_code_description; - - return $this; - } - /** - * Gets charge_refund_transactions - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeRefundTransaction|null - */ - public function getChargeRefundTransactions() - { - return $this->container['charge_refund_transactions']; - } - - /** - * Sets charge_refund_transactions - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeRefundTransaction|null $charge_refund_transactions charge_refund_transactions - * - * @return self - */ - public function setChargeRefundTransactions($charge_refund_transactions) - { - $this->container['charge_refund_transactions'] = $charge_refund_transactions; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ChargeRefundTransaction.php b/lib/Model/FinancesV0/ChargeRefundTransaction.php deleted file mode 100644 index f6d0a0eee..000000000 --- a/lib/Model/FinancesV0/ChargeRefundTransaction.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeRefundTransaction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeRefundTransaction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'charge_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'charge_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'charge_amount' => null, - 'charge_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'charge_amount' => 'ChargeAmount', - 'charge_type' => 'ChargeType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'charge_amount' => 'setChargeAmount', - 'charge_type' => 'setChargeType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'charge_amount' => 'getChargeAmount', - 'charge_type' => 'getChargeType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['charge_amount'] = $data['charge_amount'] ?? null; - $this->container['charge_type'] = $data['charge_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets charge_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getChargeAmount() - { - return $this->container['charge_amount']; - } - - /** - * Sets charge_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $charge_amount charge_amount - * - * @return self - */ - public function setChargeAmount($charge_amount) - { - $this->container['charge_amount'] = $charge_amount; - - return $this; - } - /** - * Gets charge_type - * - * @return string|null - */ - public function getChargeType() - { - return $this->container['charge_type']; - } - - /** - * Sets charge_type - * - * @param string|null $charge_type The type of charge. - * - * @return self - */ - public function setChargeType($charge_type) - { - $this->container['charge_type'] = $charge_type; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/CouponPaymentEvent.php b/lib/Model/FinancesV0/CouponPaymentEvent.php deleted file mode 100644 index 3219ebcf8..000000000 --- a/lib/Model/FinancesV0/CouponPaymentEvent.php +++ /dev/null @@ -1,365 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CouponPaymentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CouponPaymentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'coupon_id' => 'string', - 'seller_coupon_description' => 'string', - 'clip_or_redemption_count' => 'int', - 'payment_event_id' => 'string', - 'fee_component' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent', - 'charge_component' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent', - 'total_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'coupon_id' => null, - 'seller_coupon_description' => null, - 'clip_or_redemption_count' => 'int64', - 'payment_event_id' => null, - 'fee_component' => null, - 'charge_component' => null, - 'total_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'coupon_id' => 'CouponId', - 'seller_coupon_description' => 'SellerCouponDescription', - 'clip_or_redemption_count' => 'ClipOrRedemptionCount', - 'payment_event_id' => 'PaymentEventId', - 'fee_component' => 'FeeComponent', - 'charge_component' => 'ChargeComponent', - 'total_amount' => 'TotalAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'coupon_id' => 'setCouponId', - 'seller_coupon_description' => 'setSellerCouponDescription', - 'clip_or_redemption_count' => 'setClipOrRedemptionCount', - 'payment_event_id' => 'setPaymentEventId', - 'fee_component' => 'setFeeComponent', - 'charge_component' => 'setChargeComponent', - 'total_amount' => 'setTotalAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'coupon_id' => 'getCouponId', - 'seller_coupon_description' => 'getSellerCouponDescription', - 'clip_or_redemption_count' => 'getClipOrRedemptionCount', - 'payment_event_id' => 'getPaymentEventId', - 'fee_component' => 'getFeeComponent', - 'charge_component' => 'getChargeComponent', - 'total_amount' => 'getTotalAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['coupon_id'] = $data['coupon_id'] ?? null; - $this->container['seller_coupon_description'] = $data['seller_coupon_description'] ?? null; - $this->container['clip_or_redemption_count'] = $data['clip_or_redemption_count'] ?? null; - $this->container['payment_event_id'] = $data['payment_event_id'] ?? null; - $this->container['fee_component'] = $data['fee_component'] ?? null; - $this->container['charge_component'] = $data['charge_component'] ?? null; - $this->container['total_amount'] = $data['total_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets coupon_id - * - * @return string|null - */ - public function getCouponId() - { - return $this->container['coupon_id']; - } - - /** - * Sets coupon_id - * - * @param string|null $coupon_id A coupon identifier. - * - * @return self - */ - public function setCouponId($coupon_id) - { - $this->container['coupon_id'] = $coupon_id; - - return $this; - } - /** - * Gets seller_coupon_description - * - * @return string|null - */ - public function getSellerCouponDescription() - { - return $this->container['seller_coupon_description']; - } - - /** - * Sets seller_coupon_description - * - * @param string|null $seller_coupon_description The description provided by the seller when they created the coupon. - * - * @return self - */ - public function setSellerCouponDescription($seller_coupon_description) - { - $this->container['seller_coupon_description'] = $seller_coupon_description; - - return $this; - } - /** - * Gets clip_or_redemption_count - * - * @return int|null - */ - public function getClipOrRedemptionCount() - { - return $this->container['clip_or_redemption_count']; - } - - /** - * Sets clip_or_redemption_count - * - * @param int|null $clip_or_redemption_count The number of coupon clips or redemptions. - * - * @return self - */ - public function setClipOrRedemptionCount($clip_or_redemption_count) - { - $this->container['clip_or_redemption_count'] = $clip_or_redemption_count; - - return $this; - } - /** - * Gets payment_event_id - * - * @return string|null - */ - public function getPaymentEventId() - { - return $this->container['payment_event_id']; - } - - /** - * Sets payment_event_id - * - * @param string|null $payment_event_id A payment event identifier. - * - * @return self - */ - public function setPaymentEventId($payment_event_id) - { - $this->container['payment_event_id'] = $payment_event_id; - - return $this; - } - /** - * Gets fee_component - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent|null - */ - public function getFeeComponent() - { - return $this->container['fee_component']; - } - - /** - * Sets fee_component - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent|null $fee_component fee_component - * - * @return self - */ - public function setFeeComponent($fee_component) - { - $this->container['fee_component'] = $fee_component; - - return $this; - } - /** - * Gets charge_component - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null - */ - public function getChargeComponent() - { - return $this->container['charge_component']; - } - - /** - * Sets charge_component - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null $charge_component charge_component - * - * @return self - */ - public function setChargeComponent($charge_component) - { - $this->container['charge_component'] = $charge_component; - - return $this; - } - /** - * Gets total_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - $this->container['total_amount'] = $total_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/Currency.php b/lib/Model/FinancesV0/Currency.php deleted file mode 100644 index 59b7b2929..000000000 --- a/lib/Model/FinancesV0/Currency.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Currency extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Currency'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'currency_amount' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'currency_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'currency_amount' => 'CurrencyAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'currency_amount' => 'setCurrencyAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'currency_amount' => 'getCurrencyAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['currency_amount'] = $data['currency_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The three-digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets currency_amount - * - * @return float|null - */ - public function getCurrencyAmount() - { - return $this->container['currency_amount']; - } - - /** - * Sets currency_amount - * - * @param float|null $currency_amount currency_amount - * - * @return self - */ - public function setCurrencyAmount($currency_amount) - { - $this->container['currency_amount'] = $currency_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/DebtRecoveryEvent.php b/lib/Model/FinancesV0/DebtRecoveryEvent.php deleted file mode 100644 index 098f27cc6..000000000 --- a/lib/Model/FinancesV0/DebtRecoveryEvent.php +++ /dev/null @@ -1,282 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DebtRecoveryEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DebtRecoveryEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'debt_recovery_type' => 'string', - 'recovery_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'over_payment_credit' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'debt_recovery_item_list' => '\SellingPartnerApi\Model\FinancesV0\DebtRecoveryItem[]', - 'charge_instrument_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeInstrument[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'debt_recovery_type' => null, - 'recovery_amount' => null, - 'over_payment_credit' => null, - 'debt_recovery_item_list' => null, - 'charge_instrument_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'debt_recovery_type' => 'DebtRecoveryType', - 'recovery_amount' => 'RecoveryAmount', - 'over_payment_credit' => 'OverPaymentCredit', - 'debt_recovery_item_list' => 'DebtRecoveryItemList', - 'charge_instrument_list' => 'ChargeInstrumentList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'debt_recovery_type' => 'setDebtRecoveryType', - 'recovery_amount' => 'setRecoveryAmount', - 'over_payment_credit' => 'setOverPaymentCredit', - 'debt_recovery_item_list' => 'setDebtRecoveryItemList', - 'charge_instrument_list' => 'setChargeInstrumentList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'debt_recovery_type' => 'getDebtRecoveryType', - 'recovery_amount' => 'getRecoveryAmount', - 'over_payment_credit' => 'getOverPaymentCredit', - 'debt_recovery_item_list' => 'getDebtRecoveryItemList', - 'charge_instrument_list' => 'getChargeInstrumentList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['debt_recovery_type'] = $data['debt_recovery_type'] ?? null; - $this->container['recovery_amount'] = $data['recovery_amount'] ?? null; - $this->container['over_payment_credit'] = $data['over_payment_credit'] ?? null; - $this->container['debt_recovery_item_list'] = $data['debt_recovery_item_list'] ?? null; - $this->container['charge_instrument_list'] = $data['charge_instrument_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets debt_recovery_type - * - * @return string|null - */ - public function getDebtRecoveryType() - { - return $this->container['debt_recovery_type']; - } - - /** - * Sets debt_recovery_type - * - * @param string|null $debt_recovery_type The debt recovery type. - * Possible values: - * * DebtPayment - * * DebtPaymentFailure - * *DebtAdjustment - * - * @return self - */ - public function setDebtRecoveryType($debt_recovery_type) - { - $this->container['debt_recovery_type'] = $debt_recovery_type; - - return $this; - } - /** - * Gets recovery_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRecoveryAmount() - { - return $this->container['recovery_amount']; - } - - /** - * Sets recovery_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $recovery_amount recovery_amount - * - * @return self - */ - public function setRecoveryAmount($recovery_amount) - { - $this->container['recovery_amount'] = $recovery_amount; - - return $this; - } - /** - * Gets over_payment_credit - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getOverPaymentCredit() - { - return $this->container['over_payment_credit']; - } - - /** - * Sets over_payment_credit - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $over_payment_credit over_payment_credit - * - * @return self - */ - public function setOverPaymentCredit($over_payment_credit) - { - $this->container['over_payment_credit'] = $over_payment_credit; - - return $this; - } - /** - * Gets debt_recovery_item_list - * - * @return \SellingPartnerApi\Model\FinancesV0\DebtRecoveryItem[]|null - */ - public function getDebtRecoveryItemList() - { - return $this->container['debt_recovery_item_list']; - } - - /** - * Sets debt_recovery_item_list - * - * @param \SellingPartnerApi\Model\FinancesV0\DebtRecoveryItem[]|null $debt_recovery_item_list A list of debt recovery item information. - * - * @return self - */ - public function setDebtRecoveryItemList($debt_recovery_item_list) - { - $this->container['debt_recovery_item_list'] = $debt_recovery_item_list; - - return $this; - } - /** - * Gets charge_instrument_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeInstrument[]|null - */ - public function getChargeInstrumentList() - { - return $this->container['charge_instrument_list']; - } - - /** - * Sets charge_instrument_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeInstrument[]|null $charge_instrument_list A list of payment instruments. - * - * @return self - */ - public function setChargeInstrumentList($charge_instrument_list) - { - $this->container['charge_instrument_list'] = $charge_instrument_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/DebtRecoveryItem.php b/lib/Model/FinancesV0/DebtRecoveryItem.php deleted file mode 100644 index a728a53d2..000000000 --- a/lib/Model/FinancesV0/DebtRecoveryItem.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DebtRecoveryItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DebtRecoveryItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'recovery_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'original_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'group_begin_date' => 'string', - 'group_end_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'recovery_amount' => null, - 'original_amount' => null, - 'group_begin_date' => null, - 'group_end_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'recovery_amount' => 'RecoveryAmount', - 'original_amount' => 'OriginalAmount', - 'group_begin_date' => 'GroupBeginDate', - 'group_end_date' => 'GroupEndDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'recovery_amount' => 'setRecoveryAmount', - 'original_amount' => 'setOriginalAmount', - 'group_begin_date' => 'setGroupBeginDate', - 'group_end_date' => 'setGroupEndDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'recovery_amount' => 'getRecoveryAmount', - 'original_amount' => 'getOriginalAmount', - 'group_begin_date' => 'getGroupBeginDate', - 'group_end_date' => 'getGroupEndDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['recovery_amount'] = $data['recovery_amount'] ?? null; - $this->container['original_amount'] = $data['original_amount'] ?? null; - $this->container['group_begin_date'] = $data['group_begin_date'] ?? null; - $this->container['group_end_date'] = $data['group_end_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets recovery_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRecoveryAmount() - { - return $this->container['recovery_amount']; - } - - /** - * Sets recovery_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $recovery_amount recovery_amount - * - * @return self - */ - public function setRecoveryAmount($recovery_amount) - { - $this->container['recovery_amount'] = $recovery_amount; - - return $this; - } - /** - * Gets original_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getOriginalAmount() - { - return $this->container['original_amount']; - } - - /** - * Sets original_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $original_amount original_amount - * - * @return self - */ - public function setOriginalAmount($original_amount) - { - $this->container['original_amount'] = $original_amount; - - return $this; - } - /** - * Gets group_begin_date - * - * @return string|null - */ - public function getGroupBeginDate() - { - return $this->container['group_begin_date']; - } - - /** - * Sets group_begin_date - * - * @param string|null $group_begin_date A date string in ISO 8601 format. - * - * @return self - */ - public function setGroupBeginDate($group_begin_date) - { - $this->container['group_begin_date'] = $group_begin_date; - - return $this; - } - /** - * Gets group_end_date - * - * @return string|null - */ - public function getGroupEndDate() - { - return $this->container['group_end_date']; - } - - /** - * Sets group_end_date - * - * @param string|null $group_end_date A date string in ISO 8601 format. - * - * @return self - */ - public function setGroupEndDate($group_end_date) - { - $this->container['group_end_date'] = $group_end_date; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/DirectPayment.php b/lib/Model/FinancesV0/DirectPayment.php deleted file mode 100644 index 6af8511d7..000000000 --- a/lib/Model/FinancesV0/DirectPayment.php +++ /dev/null @@ -1,198 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DirectPayment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DirectPayment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'direct_payment_type' => 'string', - 'direct_payment_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'direct_payment_type' => null, - 'direct_payment_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'direct_payment_type' => 'DirectPaymentType', - 'direct_payment_amount' => 'DirectPaymentAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'direct_payment_type' => 'setDirectPaymentType', - 'direct_payment_amount' => 'setDirectPaymentAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'direct_payment_type' => 'getDirectPaymentType', - 'direct_payment_amount' => 'getDirectPaymentAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['direct_payment_type'] = $data['direct_payment_type'] ?? null; - $this->container['direct_payment_amount'] = $data['direct_payment_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets direct_payment_type - * - * @return string|null - */ - public function getDirectPaymentType() - { - return $this->container['direct_payment_type']; - } - - /** - * Sets direct_payment_type - * - * @param string|null $direct_payment_type The type of payment. - * Possible values: - * * StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card. - * * StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded. - * * PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon. - * * PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded. - * * CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer. - * * CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded. - * - * @return self - */ - public function setDirectPaymentType($direct_payment_type) - { - $this->container['direct_payment_type'] = $direct_payment_type; - - return $this; - } - /** - * Gets direct_payment_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getDirectPaymentAmount() - { - return $this->container['direct_payment_amount']; - } - - /** - * Sets direct_payment_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $direct_payment_amount direct_payment_amount - * - * @return self - */ - public function setDirectPaymentAmount($direct_payment_amount) - { - $this->container['direct_payment_amount'] = $direct_payment_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/Error.php b/lib/Model/FinancesV0/Error.php deleted file mode 100644 index 2c840f4f9..000000000 --- a/lib/Model/FinancesV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/FBALiquidationEvent.php b/lib/Model/FinancesV0/FBALiquidationEvent.php deleted file mode 100644 index fe89c04dd..000000000 --- a/lib/Model/FinancesV0/FBALiquidationEvent.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FBALiquidationEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FBALiquidationEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'original_removal_order_id' => 'string', - 'liquidation_proceeds_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'liquidation_fee_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'original_removal_order_id' => null, - 'liquidation_proceeds_amount' => null, - 'liquidation_fee_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'original_removal_order_id' => 'OriginalRemovalOrderId', - 'liquidation_proceeds_amount' => 'LiquidationProceedsAmount', - 'liquidation_fee_amount' => 'LiquidationFeeAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'original_removal_order_id' => 'setOriginalRemovalOrderId', - 'liquidation_proceeds_amount' => 'setLiquidationProceedsAmount', - 'liquidation_fee_amount' => 'setLiquidationFeeAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'original_removal_order_id' => 'getOriginalRemovalOrderId', - 'liquidation_proceeds_amount' => 'getLiquidationProceedsAmount', - 'liquidation_fee_amount' => 'getLiquidationFeeAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['original_removal_order_id'] = $data['original_removal_order_id'] ?? null; - $this->container['liquidation_proceeds_amount'] = $data['liquidation_proceeds_amount'] ?? null; - $this->container['liquidation_fee_amount'] = $data['liquidation_fee_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets original_removal_order_id - * - * @return string|null - */ - public function getOriginalRemovalOrderId() - { - return $this->container['original_removal_order_id']; - } - - /** - * Sets original_removal_order_id - * - * @param string|null $original_removal_order_id The identifier for the original removal order. - * - * @return self - */ - public function setOriginalRemovalOrderId($original_removal_order_id) - { - $this->container['original_removal_order_id'] = $original_removal_order_id; - - return $this; - } - /** - * Gets liquidation_proceeds_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getLiquidationProceedsAmount() - { - return $this->container['liquidation_proceeds_amount']; - } - - /** - * Sets liquidation_proceeds_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $liquidation_proceeds_amount liquidation_proceeds_amount - * - * @return self - */ - public function setLiquidationProceedsAmount($liquidation_proceeds_amount) - { - $this->container['liquidation_proceeds_amount'] = $liquidation_proceeds_amount; - - return $this; - } - /** - * Gets liquidation_fee_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getLiquidationFeeAmount() - { - return $this->container['liquidation_fee_amount']; - } - - /** - * Sets liquidation_fee_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $liquidation_fee_amount liquidation_fee_amount - * - * @return self - */ - public function setLiquidationFeeAmount($liquidation_fee_amount) - { - $this->container['liquidation_fee_amount'] = $liquidation_fee_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/FailedAdhocDisbursementEventList.php b/lib/Model/FinancesV0/FailedAdhocDisbursementEventList.php deleted file mode 100644 index aed52e1ac..000000000 --- a/lib/Model/FinancesV0/FailedAdhocDisbursementEventList.php +++ /dev/null @@ -1,339 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FailedAdhocDisbursementEventList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FailedAdhocDisbursementEventList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'funds_transfers_type' => 'string', - 'transfer_id' => 'string', - 'disbursement_id' => 'string', - 'payment_disbursement_type' => 'string', - 'status' => 'string', - 'transfer_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'posted_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'funds_transfers_type' => null, - 'transfer_id' => null, - 'disbursement_id' => null, - 'payment_disbursement_type' => null, - 'status' => null, - 'transfer_amount' => null, - 'posted_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'funds_transfers_type' => 'FundsTransfersType', - 'transfer_id' => 'TransferId', - 'disbursement_id' => 'DisbursementId', - 'payment_disbursement_type' => 'PaymentDisbursementType', - 'status' => 'Status', - 'transfer_amount' => 'TransferAmount', - 'posted_date' => 'PostedDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'funds_transfers_type' => 'setFundsTransfersType', - 'transfer_id' => 'setTransferId', - 'disbursement_id' => 'setDisbursementId', - 'payment_disbursement_type' => 'setPaymentDisbursementType', - 'status' => 'setStatus', - 'transfer_amount' => 'setTransferAmount', - 'posted_date' => 'setPostedDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'funds_transfers_type' => 'getFundsTransfersType', - 'transfer_id' => 'getTransferId', - 'disbursement_id' => 'getDisbursementId', - 'payment_disbursement_type' => 'getPaymentDisbursementType', - 'status' => 'getStatus', - 'transfer_amount' => 'getTransferAmount', - 'posted_date' => 'getPostedDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['funds_transfers_type'] = $data['funds_transfers_type'] ?? null; - $this->container['transfer_id'] = $data['transfer_id'] ?? null; - $this->container['disbursement_id'] = $data['disbursement_id'] ?? null; - $this->container['payment_disbursement_type'] = $data['payment_disbursement_type'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['transfer_amount'] = $data['transfer_amount'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets funds_transfers_type - * - * @return string|null - */ - public function getFundsTransfersType() - { - return $this->container['funds_transfers_type']; - } - - /** - * Sets funds_transfers_type - * - * @param string|null $funds_transfers_type The type of fund transfer. - * Example \"Refund\" - * - * @return self - */ - public function setFundsTransfersType($funds_transfers_type) - { - $this->container['funds_transfers_type'] = $funds_transfers_type; - - return $this; - } - /** - * Gets transfer_id - * - * @return string|null - */ - public function getTransferId() - { - return $this->container['transfer_id']; - } - - /** - * Sets transfer_id - * - * @param string|null $transfer_id The transfer identifier. - * - * @return self - */ - public function setTransferId($transfer_id) - { - $this->container['transfer_id'] = $transfer_id; - - return $this; - } - /** - * Gets disbursement_id - * - * @return string|null - */ - public function getDisbursementId() - { - return $this->container['disbursement_id']; - } - - /** - * Sets disbursement_id - * - * @param string|null $disbursement_id The disbursement identifier. - * - * @return self - */ - public function setDisbursementId($disbursement_id) - { - $this->container['disbursement_id'] = $disbursement_id; - - return $this; - } - /** - * Gets payment_disbursement_type - * - * @return string|null - */ - public function getPaymentDisbursementType() - { - return $this->container['payment_disbursement_type']; - } - - /** - * Sets payment_disbursement_type - * - * @param string|null $payment_disbursement_type The type of payment for disbursement. - * Example `CREDIT_CARD` - * - * @return self - */ - public function setPaymentDisbursementType($payment_disbursement_type) - { - $this->container['payment_disbursement_type'] = $payment_disbursement_type; - - return $this; - } - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status The status of the failed `AdhocDisbursement`. - * Example `HARD_DECLINED` - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets transfer_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransferAmount() - { - return $this->container['transfer_amount']; - } - - /** - * Sets transfer_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transfer_amount transfer_amount - * - * @return self - */ - public function setTransferAmount($transfer_amount) - { - $this->container['transfer_amount'] = $transfer_amount; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/FeeComponent.php b/lib/Model/FinancesV0/FeeComponent.php deleted file mode 100644 index c1ead3bba..000000000 --- a/lib/Model/FinancesV0/FeeComponent.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeeComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeeComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fee_type' => 'string', - 'fee_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fee_type' => null, - 'fee_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fee_type' => 'FeeType', - 'fee_amount' => 'FeeAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fee_type' => 'setFeeType', - 'fee_amount' => 'setFeeAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fee_type' => 'getFeeType', - 'fee_amount' => 'getFeeAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fee_type'] = $data['fee_type'] ?? null; - $this->container['fee_amount'] = $data['fee_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fee_type - * - * @return string|null - */ - public function getFeeType() - { - return $this->container['fee_type']; - } - - /** - * Sets fee_type - * - * @param string|null $fee_type The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central. - * - * @return self - */ - public function setFeeType($fee_type) - { - $this->container['fee_type'] = $fee_type; - - return $this; - } - /** - * Gets fee_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getFeeAmount() - { - return $this->container['fee_amount']; - } - - /** - * Sets fee_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $fee_amount fee_amount - * - * @return self - */ - public function setFeeAmount($fee_amount) - { - $this->container['fee_amount'] = $fee_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/FinancialEventGroup.php b/lib/Model/FinancesV0/FinancialEventGroup.php deleted file mode 100644 index fa07e3191..000000000 --- a/lib/Model/FinancesV0/FinancialEventGroup.php +++ /dev/null @@ -1,455 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FinancialEventGroup extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FinancialEventGroup'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'financial_event_group_id' => 'string', - 'processing_status' => 'string', - 'fund_transfer_status' => 'string', - 'original_total' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'converted_total' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'fund_transfer_date' => 'string', - 'trace_id' => 'string', - 'account_tail' => 'string', - 'beginning_balance' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'financial_event_group_start' => 'string', - 'financial_event_group_end' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'financial_event_group_id' => null, - 'processing_status' => null, - 'fund_transfer_status' => null, - 'original_total' => null, - 'converted_total' => null, - 'fund_transfer_date' => null, - 'trace_id' => null, - 'account_tail' => null, - 'beginning_balance' => null, - 'financial_event_group_start' => null, - 'financial_event_group_end' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'financial_event_group_id' => 'FinancialEventGroupId', - 'processing_status' => 'ProcessingStatus', - 'fund_transfer_status' => 'FundTransferStatus', - 'original_total' => 'OriginalTotal', - 'converted_total' => 'ConvertedTotal', - 'fund_transfer_date' => 'FundTransferDate', - 'trace_id' => 'TraceId', - 'account_tail' => 'AccountTail', - 'beginning_balance' => 'BeginningBalance', - 'financial_event_group_start' => 'FinancialEventGroupStart', - 'financial_event_group_end' => 'FinancialEventGroupEnd' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'financial_event_group_id' => 'setFinancialEventGroupId', - 'processing_status' => 'setProcessingStatus', - 'fund_transfer_status' => 'setFundTransferStatus', - 'original_total' => 'setOriginalTotal', - 'converted_total' => 'setConvertedTotal', - 'fund_transfer_date' => 'setFundTransferDate', - 'trace_id' => 'setTraceId', - 'account_tail' => 'setAccountTail', - 'beginning_balance' => 'setBeginningBalance', - 'financial_event_group_start' => 'setFinancialEventGroupStart', - 'financial_event_group_end' => 'setFinancialEventGroupEnd' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'financial_event_group_id' => 'getFinancialEventGroupId', - 'processing_status' => 'getProcessingStatus', - 'fund_transfer_status' => 'getFundTransferStatus', - 'original_total' => 'getOriginalTotal', - 'converted_total' => 'getConvertedTotal', - 'fund_transfer_date' => 'getFundTransferDate', - 'trace_id' => 'getTraceId', - 'account_tail' => 'getAccountTail', - 'beginning_balance' => 'getBeginningBalance', - 'financial_event_group_start' => 'getFinancialEventGroupStart', - 'financial_event_group_end' => 'getFinancialEventGroupEnd' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['financial_event_group_id'] = $data['financial_event_group_id'] ?? null; - $this->container['processing_status'] = $data['processing_status'] ?? null; - $this->container['fund_transfer_status'] = $data['fund_transfer_status'] ?? null; - $this->container['original_total'] = $data['original_total'] ?? null; - $this->container['converted_total'] = $data['converted_total'] ?? null; - $this->container['fund_transfer_date'] = $data['fund_transfer_date'] ?? null; - $this->container['trace_id'] = $data['trace_id'] ?? null; - $this->container['account_tail'] = $data['account_tail'] ?? null; - $this->container['beginning_balance'] = $data['beginning_balance'] ?? null; - $this->container['financial_event_group_start'] = $data['financial_event_group_start'] ?? null; - $this->container['financial_event_group_end'] = $data['financial_event_group_end'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets financial_event_group_id - * - * @return string|null - */ - public function getFinancialEventGroupId() - { - return $this->container['financial_event_group_id']; - } - - /** - * Sets financial_event_group_id - * - * @param string|null $financial_event_group_id A unique identifier for the financial event group. - * - * @return self - */ - public function setFinancialEventGroupId($financial_event_group_id) - { - $this->container['financial_event_group_id'] = $financial_event_group_id; - - return $this; - } - /** - * Gets processing_status - * - * @return string|null - */ - public function getProcessingStatus() - { - return $this->container['processing_status']; - } - - /** - * Sets processing_status - * - * @param string|null $processing_status The processing status of the financial event group indicates whether the balance of the financial event group is settled. - * Possible values: - * * Open - * * Closed - * - * @return self - */ - public function setProcessingStatus($processing_status) - { - $this->container['processing_status'] = $processing_status; - - return $this; - } - /** - * Gets fund_transfer_status - * - * @return string|null - */ - public function getFundTransferStatus() - { - return $this->container['fund_transfer_status']; - } - - /** - * Sets fund_transfer_status - * - * @param string|null $fund_transfer_status The status of the fund transfer. - * - * @return self - */ - public function setFundTransferStatus($fund_transfer_status) - { - $this->container['fund_transfer_status'] = $fund_transfer_status; - - return $this; - } - /** - * Gets original_total - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getOriginalTotal() - { - return $this->container['original_total']; - } - - /** - * Sets original_total - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $original_total original_total - * - * @return self - */ - public function setOriginalTotal($original_total) - { - $this->container['original_total'] = $original_total; - - return $this; - } - /** - * Gets converted_total - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getConvertedTotal() - { - return $this->container['converted_total']; - } - - /** - * Sets converted_total - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $converted_total converted_total - * - * @return self - */ - public function setConvertedTotal($converted_total) - { - $this->container['converted_total'] = $converted_total; - - return $this; - } - /** - * Gets fund_transfer_date - * - * @return string|null - */ - public function getFundTransferDate() - { - return $this->container['fund_transfer_date']; - } - - /** - * Sets fund_transfer_date - * - * @param string|null $fund_transfer_date A date string in ISO 8601 format. - * - * @return self - */ - public function setFundTransferDate($fund_transfer_date) - { - $this->container['fund_transfer_date'] = $fund_transfer_date; - - return $this; - } - /** - * Gets trace_id - * - * @return string|null - */ - public function getTraceId() - { - return $this->container['trace_id']; - } - - /** - * Sets trace_id - * - * @param string|null $trace_id The trace identifier used by sellers to look up transactions externally. - * - * @return self - */ - public function setTraceId($trace_id) - { - $this->container['trace_id'] = $trace_id; - - return $this; - } - /** - * Gets account_tail - * - * @return string|null - */ - public function getAccountTail() - { - return $this->container['account_tail']; - } - - /** - * Sets account_tail - * - * @param string|null $account_tail The account tail of the payment instrument. - * - * @return self - */ - public function setAccountTail($account_tail) - { - $this->container['account_tail'] = $account_tail; - - return $this; - } - /** - * Gets beginning_balance - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getBeginningBalance() - { - return $this->container['beginning_balance']; - } - - /** - * Sets beginning_balance - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $beginning_balance beginning_balance - * - * @return self - */ - public function setBeginningBalance($beginning_balance) - { - $this->container['beginning_balance'] = $beginning_balance; - - return $this; - } - /** - * Gets financial_event_group_start - * - * @return string|null - */ - public function getFinancialEventGroupStart() - { - return $this->container['financial_event_group_start']; - } - - /** - * Sets financial_event_group_start - * - * @param string|null $financial_event_group_start A date string in ISO 8601 format. - * - * @return self - */ - public function setFinancialEventGroupStart($financial_event_group_start) - { - $this->container['financial_event_group_start'] = $financial_event_group_start; - - return $this; - } - /** - * Gets financial_event_group_end - * - * @return string|null - */ - public function getFinancialEventGroupEnd() - { - return $this->container['financial_event_group_end']; - } - - /** - * Sets financial_event_group_end - * - * @param string|null $financial_event_group_end A date string in ISO 8601 format. - * - * @return self - */ - public function setFinancialEventGroupEnd($financial_event_group_end) - { - $this->container['financial_event_group_end'] = $financial_event_group_end; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/FinancialEvents.php b/lib/Model/FinancesV0/FinancialEvents.php deleted file mode 100644 index 5882fa019..000000000 --- a/lib/Model/FinancesV0/FinancialEvents.php +++ /dev/null @@ -1,1090 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FinancialEvents extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FinancialEvents'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_event_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]', - 'shipment_settle_event_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]', - 'refund_event_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]', - 'guarantee_claim_event_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]', - 'chargeback_event_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]', - 'pay_with_amazon_event_list' => '\SellingPartnerApi\Model\FinancesV0\PayWithAmazonEvent[]', - 'service_provider_credit_event_list' => '\SellingPartnerApi\Model\FinancesV0\SolutionProviderCreditEvent[]', - 'retrocharge_event_list' => '\SellingPartnerApi\Model\FinancesV0\RetrochargeEvent[]', - 'rental_transaction_event_list' => '\SellingPartnerApi\Model\FinancesV0\RentalTransactionEvent[]', - 'product_ads_payment_event_list' => '\SellingPartnerApi\Model\FinancesV0\ProductAdsPaymentEvent[]', - 'service_fee_event_list' => '\SellingPartnerApi\Model\FinancesV0\ServiceFeeEvent[]', - 'seller_deal_payment_event_list' => '\SellingPartnerApi\Model\FinancesV0\SellerDealPaymentEvent[]', - 'debt_recovery_event_list' => '\SellingPartnerApi\Model\FinancesV0\DebtRecoveryEvent[]', - 'loan_servicing_event_list' => '\SellingPartnerApi\Model\FinancesV0\LoanServicingEvent[]', - 'adjustment_event_list' => '\SellingPartnerApi\Model\FinancesV0\AdjustmentEvent[]', - 'safet_reimbursement_event_list' => '\SellingPartnerApi\Model\FinancesV0\SAFETReimbursementEvent[]', - 'seller_review_enrollment_payment_event_list' => '\SellingPartnerApi\Model\FinancesV0\SellerReviewEnrollmentPaymentEvent[]', - 'fba_liquidation_event_list' => '\SellingPartnerApi\Model\FinancesV0\FBALiquidationEvent[]', - 'coupon_payment_event_list' => '\SellingPartnerApi\Model\FinancesV0\CouponPaymentEvent[]', - 'imaging_services_fee_event_list' => '\SellingPartnerApi\Model\FinancesV0\ImagingServicesFeeEvent[]', - 'network_commingling_transaction_event_list' => '\SellingPartnerApi\Model\FinancesV0\NetworkComminglingTransactionEvent[]', - 'affordability_expense_event_list' => '\SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]', - 'affordability_expense_reversal_event_list' => '\SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]', - 'removal_shipment_event_list' => '\SellingPartnerApi\Model\FinancesV0\RemovalShipmentEvent[]', - 'removal_shipment_adjustment_event_list' => '\SellingPartnerApi\Model\FinancesV0\RemovalShipmentAdjustmentEvent[]', - 'trial_shipment_event_list' => '\SellingPartnerApi\Model\FinancesV0\TrialShipmentEvent[]', - 'tds_reimbursement_event_list' => '\SellingPartnerApi\Model\FinancesV0\TDSReimbursementEvent[]', - 'adhoc_disbursement_event_list' => '\SellingPartnerApi\Model\FinancesV0\AdhocDisbursementEvent[]', - 'tax_withholding_event_list' => '\SellingPartnerApi\Model\FinancesV0\TaxWithholdingEvent[]', - 'charge_refund_event_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeRefundEvent[]', - 'failed_adhoc_disbursement_event_list' => '\SellingPartnerApi\Model\FinancesV0\FailedAdhocDisbursementEventList', - 'value_added_service_charge_event_list' => '\SellingPartnerApi\Model\FinancesV0\ValueAddedServiceChargeEventList', - 'capacity_reservation_billing_event_list' => '\SellingPartnerApi\Model\FinancesV0\CapacityReservationBillingEvent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_event_list' => null, - 'shipment_settle_event_list' => null, - 'refund_event_list' => null, - 'guarantee_claim_event_list' => null, - 'chargeback_event_list' => null, - 'pay_with_amazon_event_list' => null, - 'service_provider_credit_event_list' => null, - 'retrocharge_event_list' => null, - 'rental_transaction_event_list' => null, - 'product_ads_payment_event_list' => null, - 'service_fee_event_list' => null, - 'seller_deal_payment_event_list' => null, - 'debt_recovery_event_list' => null, - 'loan_servicing_event_list' => null, - 'adjustment_event_list' => null, - 'safet_reimbursement_event_list' => null, - 'seller_review_enrollment_payment_event_list' => null, - 'fba_liquidation_event_list' => null, - 'coupon_payment_event_list' => null, - 'imaging_services_fee_event_list' => null, - 'network_commingling_transaction_event_list' => null, - 'affordability_expense_event_list' => null, - 'affordability_expense_reversal_event_list' => null, - 'removal_shipment_event_list' => null, - 'removal_shipment_adjustment_event_list' => null, - 'trial_shipment_event_list' => null, - 'tds_reimbursement_event_list' => null, - 'adhoc_disbursement_event_list' => null, - 'tax_withholding_event_list' => null, - 'charge_refund_event_list' => null, - 'failed_adhoc_disbursement_event_list' => null, - 'value_added_service_charge_event_list' => null, - 'capacity_reservation_billing_event_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_event_list' => 'ShipmentEventList', - 'shipment_settle_event_list' => 'ShipmentSettleEventList', - 'refund_event_list' => 'RefundEventList', - 'guarantee_claim_event_list' => 'GuaranteeClaimEventList', - 'chargeback_event_list' => 'ChargebackEventList', - 'pay_with_amazon_event_list' => 'PayWithAmazonEventList', - 'service_provider_credit_event_list' => 'ServiceProviderCreditEventList', - 'retrocharge_event_list' => 'RetrochargeEventList', - 'rental_transaction_event_list' => 'RentalTransactionEventList', - 'product_ads_payment_event_list' => 'ProductAdsPaymentEventList', - 'service_fee_event_list' => 'ServiceFeeEventList', - 'seller_deal_payment_event_list' => 'SellerDealPaymentEventList', - 'debt_recovery_event_list' => 'DebtRecoveryEventList', - 'loan_servicing_event_list' => 'LoanServicingEventList', - 'adjustment_event_list' => 'AdjustmentEventList', - 'safet_reimbursement_event_list' => 'SAFETReimbursementEventList', - 'seller_review_enrollment_payment_event_list' => 'SellerReviewEnrollmentPaymentEventList', - 'fba_liquidation_event_list' => 'FBALiquidationEventList', - 'coupon_payment_event_list' => 'CouponPaymentEventList', - 'imaging_services_fee_event_list' => 'ImagingServicesFeeEventList', - 'network_commingling_transaction_event_list' => 'NetworkComminglingTransactionEventList', - 'affordability_expense_event_list' => 'AffordabilityExpenseEventList', - 'affordability_expense_reversal_event_list' => 'AffordabilityExpenseReversalEventList', - 'removal_shipment_event_list' => 'RemovalShipmentEventList', - 'removal_shipment_adjustment_event_list' => 'RemovalShipmentAdjustmentEventList', - 'trial_shipment_event_list' => 'TrialShipmentEventList', - 'tds_reimbursement_event_list' => 'TDSReimbursementEventList', - 'adhoc_disbursement_event_list' => 'AdhocDisbursementEventList', - 'tax_withholding_event_list' => 'TaxWithholdingEventList', - 'charge_refund_event_list' => 'ChargeRefundEventList', - 'failed_adhoc_disbursement_event_list' => 'FailedAdhocDisbursementEventList', - 'value_added_service_charge_event_list' => 'ValueAddedServiceChargeEventList', - 'capacity_reservation_billing_event_list' => 'CapacityReservationBillingEventList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_event_list' => 'setShipmentEventList', - 'shipment_settle_event_list' => 'setShipmentSettleEventList', - 'refund_event_list' => 'setRefundEventList', - 'guarantee_claim_event_list' => 'setGuaranteeClaimEventList', - 'chargeback_event_list' => 'setChargebackEventList', - 'pay_with_amazon_event_list' => 'setPayWithAmazonEventList', - 'service_provider_credit_event_list' => 'setServiceProviderCreditEventList', - 'retrocharge_event_list' => 'setRetrochargeEventList', - 'rental_transaction_event_list' => 'setRentalTransactionEventList', - 'product_ads_payment_event_list' => 'setProductAdsPaymentEventList', - 'service_fee_event_list' => 'setServiceFeeEventList', - 'seller_deal_payment_event_list' => 'setSellerDealPaymentEventList', - 'debt_recovery_event_list' => 'setDebtRecoveryEventList', - 'loan_servicing_event_list' => 'setLoanServicingEventList', - 'adjustment_event_list' => 'setAdjustmentEventList', - 'safet_reimbursement_event_list' => 'setSafetReimbursementEventList', - 'seller_review_enrollment_payment_event_list' => 'setSellerReviewEnrollmentPaymentEventList', - 'fba_liquidation_event_list' => 'setFbaLiquidationEventList', - 'coupon_payment_event_list' => 'setCouponPaymentEventList', - 'imaging_services_fee_event_list' => 'setImagingServicesFeeEventList', - 'network_commingling_transaction_event_list' => 'setNetworkComminglingTransactionEventList', - 'affordability_expense_event_list' => 'setAffordabilityExpenseEventList', - 'affordability_expense_reversal_event_list' => 'setAffordabilityExpenseReversalEventList', - 'removal_shipment_event_list' => 'setRemovalShipmentEventList', - 'removal_shipment_adjustment_event_list' => 'setRemovalShipmentAdjustmentEventList', - 'trial_shipment_event_list' => 'setTrialShipmentEventList', - 'tds_reimbursement_event_list' => 'setTdsReimbursementEventList', - 'adhoc_disbursement_event_list' => 'setAdhocDisbursementEventList', - 'tax_withholding_event_list' => 'setTaxWithholdingEventList', - 'charge_refund_event_list' => 'setChargeRefundEventList', - 'failed_adhoc_disbursement_event_list' => 'setFailedAdhocDisbursementEventList', - 'value_added_service_charge_event_list' => 'setValueAddedServiceChargeEventList', - 'capacity_reservation_billing_event_list' => 'setCapacityReservationBillingEventList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_event_list' => 'getShipmentEventList', - 'shipment_settle_event_list' => 'getShipmentSettleEventList', - 'refund_event_list' => 'getRefundEventList', - 'guarantee_claim_event_list' => 'getGuaranteeClaimEventList', - 'chargeback_event_list' => 'getChargebackEventList', - 'pay_with_amazon_event_list' => 'getPayWithAmazonEventList', - 'service_provider_credit_event_list' => 'getServiceProviderCreditEventList', - 'retrocharge_event_list' => 'getRetrochargeEventList', - 'rental_transaction_event_list' => 'getRentalTransactionEventList', - 'product_ads_payment_event_list' => 'getProductAdsPaymentEventList', - 'service_fee_event_list' => 'getServiceFeeEventList', - 'seller_deal_payment_event_list' => 'getSellerDealPaymentEventList', - 'debt_recovery_event_list' => 'getDebtRecoveryEventList', - 'loan_servicing_event_list' => 'getLoanServicingEventList', - 'adjustment_event_list' => 'getAdjustmentEventList', - 'safet_reimbursement_event_list' => 'getSafetReimbursementEventList', - 'seller_review_enrollment_payment_event_list' => 'getSellerReviewEnrollmentPaymentEventList', - 'fba_liquidation_event_list' => 'getFbaLiquidationEventList', - 'coupon_payment_event_list' => 'getCouponPaymentEventList', - 'imaging_services_fee_event_list' => 'getImagingServicesFeeEventList', - 'network_commingling_transaction_event_list' => 'getNetworkComminglingTransactionEventList', - 'affordability_expense_event_list' => 'getAffordabilityExpenseEventList', - 'affordability_expense_reversal_event_list' => 'getAffordabilityExpenseReversalEventList', - 'removal_shipment_event_list' => 'getRemovalShipmentEventList', - 'removal_shipment_adjustment_event_list' => 'getRemovalShipmentAdjustmentEventList', - 'trial_shipment_event_list' => 'getTrialShipmentEventList', - 'tds_reimbursement_event_list' => 'getTdsReimbursementEventList', - 'adhoc_disbursement_event_list' => 'getAdhocDisbursementEventList', - 'tax_withholding_event_list' => 'getTaxWithholdingEventList', - 'charge_refund_event_list' => 'getChargeRefundEventList', - 'failed_adhoc_disbursement_event_list' => 'getFailedAdhocDisbursementEventList', - 'value_added_service_charge_event_list' => 'getValueAddedServiceChargeEventList', - 'capacity_reservation_billing_event_list' => 'getCapacityReservationBillingEventList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_event_list'] = $data['shipment_event_list'] ?? null; - $this->container['shipment_settle_event_list'] = $data['shipment_settle_event_list'] ?? null; - $this->container['refund_event_list'] = $data['refund_event_list'] ?? null; - $this->container['guarantee_claim_event_list'] = $data['guarantee_claim_event_list'] ?? null; - $this->container['chargeback_event_list'] = $data['chargeback_event_list'] ?? null; - $this->container['pay_with_amazon_event_list'] = $data['pay_with_amazon_event_list'] ?? null; - $this->container['service_provider_credit_event_list'] = $data['service_provider_credit_event_list'] ?? null; - $this->container['retrocharge_event_list'] = $data['retrocharge_event_list'] ?? null; - $this->container['rental_transaction_event_list'] = $data['rental_transaction_event_list'] ?? null; - $this->container['product_ads_payment_event_list'] = $data['product_ads_payment_event_list'] ?? null; - $this->container['service_fee_event_list'] = $data['service_fee_event_list'] ?? null; - $this->container['seller_deal_payment_event_list'] = $data['seller_deal_payment_event_list'] ?? null; - $this->container['debt_recovery_event_list'] = $data['debt_recovery_event_list'] ?? null; - $this->container['loan_servicing_event_list'] = $data['loan_servicing_event_list'] ?? null; - $this->container['adjustment_event_list'] = $data['adjustment_event_list'] ?? null; - $this->container['safet_reimbursement_event_list'] = $data['safet_reimbursement_event_list'] ?? null; - $this->container['seller_review_enrollment_payment_event_list'] = $data['seller_review_enrollment_payment_event_list'] ?? null; - $this->container['fba_liquidation_event_list'] = $data['fba_liquidation_event_list'] ?? null; - $this->container['coupon_payment_event_list'] = $data['coupon_payment_event_list'] ?? null; - $this->container['imaging_services_fee_event_list'] = $data['imaging_services_fee_event_list'] ?? null; - $this->container['network_commingling_transaction_event_list'] = $data['network_commingling_transaction_event_list'] ?? null; - $this->container['affordability_expense_event_list'] = $data['affordability_expense_event_list'] ?? null; - $this->container['affordability_expense_reversal_event_list'] = $data['affordability_expense_reversal_event_list'] ?? null; - $this->container['removal_shipment_event_list'] = $data['removal_shipment_event_list'] ?? null; - $this->container['removal_shipment_adjustment_event_list'] = $data['removal_shipment_adjustment_event_list'] ?? null; - $this->container['trial_shipment_event_list'] = $data['trial_shipment_event_list'] ?? null; - $this->container['tds_reimbursement_event_list'] = $data['tds_reimbursement_event_list'] ?? null; - $this->container['adhoc_disbursement_event_list'] = $data['adhoc_disbursement_event_list'] ?? null; - $this->container['tax_withholding_event_list'] = $data['tax_withholding_event_list'] ?? null; - $this->container['charge_refund_event_list'] = $data['charge_refund_event_list'] ?? null; - $this->container['failed_adhoc_disbursement_event_list'] = $data['failed_adhoc_disbursement_event_list'] ?? null; - $this->container['value_added_service_charge_event_list'] = $data['value_added_service_charge_event_list'] ?? null; - $this->container['capacity_reservation_billing_event_list'] = $data['capacity_reservation_billing_event_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null - */ - public function getShipmentEventList() - { - return $this->container['shipment_event_list']; - } - - /** - * Sets shipment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null $shipment_event_list A list of shipment event information. - * - * @return self - */ - public function setShipmentEventList($shipment_event_list) - { - $this->container['shipment_event_list'] = $shipment_event_list; - - return $this; - } - /** - * Gets shipment_settle_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null - */ - public function getShipmentSettleEventList() - { - return $this->container['shipment_settle_event_list']; - } - - /** - * Sets shipment_settle_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null $shipment_settle_event_list A list of `ShipmentEvent` items. - * - * @return self - */ - public function setShipmentSettleEventList($shipment_settle_event_list) - { - $this->container['shipment_settle_event_list'] = $shipment_settle_event_list; - - return $this; - } - /** - * Gets refund_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null - */ - public function getRefundEventList() - { - return $this->container['refund_event_list']; - } - - /** - * Sets refund_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null $refund_event_list A list of shipment event information. - * - * @return self - */ - public function setRefundEventList($refund_event_list) - { - $this->container['refund_event_list'] = $refund_event_list; - - return $this; - } - /** - * Gets guarantee_claim_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null - */ - public function getGuaranteeClaimEventList() - { - return $this->container['guarantee_claim_event_list']; - } - - /** - * Sets guarantee_claim_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null $guarantee_claim_event_list A list of shipment event information. - * - * @return self - */ - public function setGuaranteeClaimEventList($guarantee_claim_event_list) - { - $this->container['guarantee_claim_event_list'] = $guarantee_claim_event_list; - - return $this; - } - /** - * Gets chargeback_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null - */ - public function getChargebackEventList() - { - return $this->container['chargeback_event_list']; - } - - /** - * Sets chargeback_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentEvent[]|null $chargeback_event_list A list of shipment event information. - * - * @return self - */ - public function setChargebackEventList($chargeback_event_list) - { - $this->container['chargeback_event_list'] = $chargeback_event_list; - - return $this; - } - /** - * Gets pay_with_amazon_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\PayWithAmazonEvent[]|null - */ - public function getPayWithAmazonEventList() - { - return $this->container['pay_with_amazon_event_list']; - } - - /** - * Sets pay_with_amazon_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\PayWithAmazonEvent[]|null $pay_with_amazon_event_list A list of events related to the seller's Pay with Amazon account. - * - * @return self - */ - public function setPayWithAmazonEventList($pay_with_amazon_event_list) - { - $this->container['pay_with_amazon_event_list'] = $pay_with_amazon_event_list; - - return $this; - } - /** - * Gets service_provider_credit_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\SolutionProviderCreditEvent[]|null - */ - public function getServiceProviderCreditEventList() - { - return $this->container['service_provider_credit_event_list']; - } - - /** - * Sets service_provider_credit_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\SolutionProviderCreditEvent[]|null $service_provider_credit_event_list A list of information about solution provider credits. - * - * @return self - */ - public function setServiceProviderCreditEventList($service_provider_credit_event_list) - { - $this->container['service_provider_credit_event_list'] = $service_provider_credit_event_list; - - return $this; - } - /** - * Gets retrocharge_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RetrochargeEvent[]|null - */ - public function getRetrochargeEventList() - { - return $this->container['retrocharge_event_list']; - } - - /** - * Sets retrocharge_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RetrochargeEvent[]|null $retrocharge_event_list A list of information about Retrocharge or RetrochargeReversal events. - * - * @return self - */ - public function setRetrochargeEventList($retrocharge_event_list) - { - $this->container['retrocharge_event_list'] = $retrocharge_event_list; - - return $this; - } - /** - * Gets rental_transaction_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RentalTransactionEvent[]|null - */ - public function getRentalTransactionEventList() - { - return $this->container['rental_transaction_event_list']; - } - - /** - * Sets rental_transaction_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RentalTransactionEvent[]|null $rental_transaction_event_list A list of rental transaction event information. - * - * @return self - */ - public function setRentalTransactionEventList($rental_transaction_event_list) - { - $this->container['rental_transaction_event_list'] = $rental_transaction_event_list; - - return $this; - } - /** - * Gets product_ads_payment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ProductAdsPaymentEvent[]|null - */ - public function getProductAdsPaymentEventList() - { - return $this->container['product_ads_payment_event_list']; - } - - /** - * Sets product_ads_payment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ProductAdsPaymentEvent[]|null $product_ads_payment_event_list A list of sponsored products payment events. - * - * @return self - */ - public function setProductAdsPaymentEventList($product_ads_payment_event_list) - { - $this->container['product_ads_payment_event_list'] = $product_ads_payment_event_list; - - return $this; - } - /** - * Gets service_fee_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ServiceFeeEvent[]|null - */ - public function getServiceFeeEventList() - { - return $this->container['service_fee_event_list']; - } - - /** - * Sets service_fee_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ServiceFeeEvent[]|null $service_fee_event_list A list of information about service fee events. - * - * @return self - */ - public function setServiceFeeEventList($service_fee_event_list) - { - $this->container['service_fee_event_list'] = $service_fee_event_list; - - return $this; - } - /** - * Gets seller_deal_payment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\SellerDealPaymentEvent[]|null - */ - public function getSellerDealPaymentEventList() - { - return $this->container['seller_deal_payment_event_list']; - } - - /** - * Sets seller_deal_payment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\SellerDealPaymentEvent[]|null $seller_deal_payment_event_list A list of payment events for deal-related fees. - * - * @return self - */ - public function setSellerDealPaymentEventList($seller_deal_payment_event_list) - { - $this->container['seller_deal_payment_event_list'] = $seller_deal_payment_event_list; - - return $this; - } - /** - * Gets debt_recovery_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\DebtRecoveryEvent[]|null - */ - public function getDebtRecoveryEventList() - { - return $this->container['debt_recovery_event_list']; - } - - /** - * Sets debt_recovery_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\DebtRecoveryEvent[]|null $debt_recovery_event_list A list of debt recovery event information. - * - * @return self - */ - public function setDebtRecoveryEventList($debt_recovery_event_list) - { - $this->container['debt_recovery_event_list'] = $debt_recovery_event_list; - - return $this; - } - /** - * Gets loan_servicing_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\LoanServicingEvent[]|null - */ - public function getLoanServicingEventList() - { - return $this->container['loan_servicing_event_list']; - } - - /** - * Sets loan_servicing_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\LoanServicingEvent[]|null $loan_servicing_event_list A list of loan servicing events. - * - * @return self - */ - public function setLoanServicingEventList($loan_servicing_event_list) - { - $this->container['loan_servicing_event_list'] = $loan_servicing_event_list; - - return $this; - } - /** - * Gets adjustment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\AdjustmentEvent[]|null - */ - public function getAdjustmentEventList() - { - return $this->container['adjustment_event_list']; - } - - /** - * Sets adjustment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\AdjustmentEvent[]|null $adjustment_event_list A list of adjustment event information for the seller's account. - * - * @return self - */ - public function setAdjustmentEventList($adjustment_event_list) - { - $this->container['adjustment_event_list'] = $adjustment_event_list; - - return $this; - } - /** - * Gets safet_reimbursement_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\SAFETReimbursementEvent[]|null - */ - public function getSafetReimbursementEventList() - { - return $this->container['safet_reimbursement_event_list']; - } - - /** - * Sets safet_reimbursement_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\SAFETReimbursementEvent[]|null $safet_reimbursement_event_list A list of SAFETReimbursementEvents. - * - * @return self - */ - public function setSafetReimbursementEventList($safet_reimbursement_event_list) - { - $this->container['safet_reimbursement_event_list'] = $safet_reimbursement_event_list; - - return $this; - } - /** - * Gets seller_review_enrollment_payment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\SellerReviewEnrollmentPaymentEvent[]|null - */ - public function getSellerReviewEnrollmentPaymentEventList() - { - return $this->container['seller_review_enrollment_payment_event_list']; - } - - /** - * Sets seller_review_enrollment_payment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\SellerReviewEnrollmentPaymentEvent[]|null $seller_review_enrollment_payment_event_list A list of information about fee events for the Early Reviewer Program. - * - * @return self - */ - public function setSellerReviewEnrollmentPaymentEventList($seller_review_enrollment_payment_event_list) - { - $this->container['seller_review_enrollment_payment_event_list'] = $seller_review_enrollment_payment_event_list; - - return $this; - } - /** - * Gets fba_liquidation_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FBALiquidationEvent[]|null - */ - public function getFbaLiquidationEventList() - { - return $this->container['fba_liquidation_event_list']; - } - - /** - * Sets fba_liquidation_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FBALiquidationEvent[]|null $fba_liquidation_event_list A list of FBA inventory liquidation payment events. - * - * @return self - */ - public function setFbaLiquidationEventList($fba_liquidation_event_list) - { - $this->container['fba_liquidation_event_list'] = $fba_liquidation_event_list; - - return $this; - } - /** - * Gets coupon_payment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\CouponPaymentEvent[]|null - */ - public function getCouponPaymentEventList() - { - return $this->container['coupon_payment_event_list']; - } - - /** - * Sets coupon_payment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\CouponPaymentEvent[]|null $coupon_payment_event_list A list of coupon payment event information. - * - * @return self - */ - public function setCouponPaymentEventList($coupon_payment_event_list) - { - $this->container['coupon_payment_event_list'] = $coupon_payment_event_list; - - return $this; - } - /** - * Gets imaging_services_fee_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ImagingServicesFeeEvent[]|null - */ - public function getImagingServicesFeeEventList() - { - return $this->container['imaging_services_fee_event_list']; - } - - /** - * Sets imaging_services_fee_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ImagingServicesFeeEvent[]|null $imaging_services_fee_event_list A list of fee events related to Amazon Imaging services. - * - * @return self - */ - public function setImagingServicesFeeEventList($imaging_services_fee_event_list) - { - $this->container['imaging_services_fee_event_list'] = $imaging_services_fee_event_list; - - return $this; - } - /** - * Gets network_commingling_transaction_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\NetworkComminglingTransactionEvent[]|null - */ - public function getNetworkComminglingTransactionEventList() - { - return $this->container['network_commingling_transaction_event_list']; - } - - /** - * Sets network_commingling_transaction_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\NetworkComminglingTransactionEvent[]|null $network_commingling_transaction_event_list A list of network commingling transaction events. - * - * @return self - */ - public function setNetworkComminglingTransactionEventList($network_commingling_transaction_event_list) - { - $this->container['network_commingling_transaction_event_list'] = $network_commingling_transaction_event_list; - - return $this; - } - /** - * Gets affordability_expense_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]|null - */ - public function getAffordabilityExpenseEventList() - { - return $this->container['affordability_expense_event_list']; - } - - /** - * Sets affordability_expense_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]|null $affordability_expense_event_list A list of expense information related to an affordability promotion. - * - * @return self - */ - public function setAffordabilityExpenseEventList($affordability_expense_event_list) - { - $this->container['affordability_expense_event_list'] = $affordability_expense_event_list; - - return $this; - } - /** - * Gets affordability_expense_reversal_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]|null - */ - public function getAffordabilityExpenseReversalEventList() - { - return $this->container['affordability_expense_reversal_event_list']; - } - - /** - * Sets affordability_expense_reversal_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\AffordabilityExpenseEvent[]|null $affordability_expense_reversal_event_list A list of expense information related to an affordability promotion. - * - * @return self - */ - public function setAffordabilityExpenseReversalEventList($affordability_expense_reversal_event_list) - { - $this->container['affordability_expense_reversal_event_list'] = $affordability_expense_reversal_event_list; - - return $this; - } - /** - * Gets removal_shipment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RemovalShipmentEvent[]|null - */ - public function getRemovalShipmentEventList() - { - return $this->container['removal_shipment_event_list']; - } - - /** - * Sets removal_shipment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RemovalShipmentEvent[]|null $removal_shipment_event_list A list of removal shipment event information. - * - * @return self - */ - public function setRemovalShipmentEventList($removal_shipment_event_list) - { - $this->container['removal_shipment_event_list'] = $removal_shipment_event_list; - - return $this; - } - /** - * Gets removal_shipment_adjustment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RemovalShipmentAdjustmentEvent[]|null - */ - public function getRemovalShipmentAdjustmentEventList() - { - return $this->container['removal_shipment_adjustment_event_list']; - } - - /** - * Sets removal_shipment_adjustment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RemovalShipmentAdjustmentEvent[]|null $removal_shipment_adjustment_event_list A comma-delimited list of Removal shipmentAdjustment details for FBA inventory. - * - * @return self - */ - public function setRemovalShipmentAdjustmentEventList($removal_shipment_adjustment_event_list) - { - $this->container['removal_shipment_adjustment_event_list'] = $removal_shipment_adjustment_event_list; - - return $this; - } - /** - * Gets trial_shipment_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TrialShipmentEvent[]|null - */ - public function getTrialShipmentEventList() - { - return $this->container['trial_shipment_event_list']; - } - - /** - * Sets trial_shipment_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TrialShipmentEvent[]|null $trial_shipment_event_list A list of information about trial shipment financial events. - * - * @return self - */ - public function setTrialShipmentEventList($trial_shipment_event_list) - { - $this->container['trial_shipment_event_list'] = $trial_shipment_event_list; - - return $this; - } - /** - * Gets tds_reimbursement_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TDSReimbursementEvent[]|null - */ - public function getTdsReimbursementEventList() - { - return $this->container['tds_reimbursement_event_list']; - } - - /** - * Sets tds_reimbursement_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TDSReimbursementEvent[]|null $tds_reimbursement_event_list A list of `TDSReimbursementEvent` items. - * - * @return self - */ - public function setTdsReimbursementEventList($tds_reimbursement_event_list) - { - $this->container['tds_reimbursement_event_list'] = $tds_reimbursement_event_list; - - return $this; - } - /** - * Gets adhoc_disbursement_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\AdhocDisbursementEvent[]|null - */ - public function getAdhocDisbursementEventList() - { - return $this->container['adhoc_disbursement_event_list']; - } - - /** - * Sets adhoc_disbursement_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\AdhocDisbursementEvent[]|null $adhoc_disbursement_event_list A list of `AdhocDisbursement` events. - * - * @return self - */ - public function setAdhocDisbursementEventList($adhoc_disbursement_event_list) - { - $this->container['adhoc_disbursement_event_list'] = $adhoc_disbursement_event_list; - - return $this; - } - /** - * Gets tax_withholding_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TaxWithholdingEvent[]|null - */ - public function getTaxWithholdingEventList() - { - return $this->container['tax_withholding_event_list']; - } - - /** - * Sets tax_withholding_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TaxWithholdingEvent[]|null $tax_withholding_event_list A list of `TaxWithholding` events. - * - * @return self - */ - public function setTaxWithholdingEventList($tax_withholding_event_list) - { - $this->container['tax_withholding_event_list'] = $tax_withholding_event_list; - - return $this; - } - /** - * Gets charge_refund_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeRefundEvent[]|null - */ - public function getChargeRefundEventList() - { - return $this->container['charge_refund_event_list']; - } - - /** - * Sets charge_refund_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeRefundEvent[]|null $charge_refund_event_list A list of charge refund events. - * - * @return self - */ - public function setChargeRefundEventList($charge_refund_event_list) - { - $this->container['charge_refund_event_list'] = $charge_refund_event_list; - - return $this; - } - /** - * Gets failed_adhoc_disbursement_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FailedAdhocDisbursementEventList|null - */ - public function getFailedAdhocDisbursementEventList() - { - return $this->container['failed_adhoc_disbursement_event_list']; - } - - /** - * Sets failed_adhoc_disbursement_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FailedAdhocDisbursementEventList|null $failed_adhoc_disbursement_event_list failed_adhoc_disbursement_event_list - * - * @return self - */ - public function setFailedAdhocDisbursementEventList($failed_adhoc_disbursement_event_list) - { - $this->container['failed_adhoc_disbursement_event_list'] = $failed_adhoc_disbursement_event_list; - - return $this; - } - /** - * Gets value_added_service_charge_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ValueAddedServiceChargeEventList|null - */ - public function getValueAddedServiceChargeEventList() - { - return $this->container['value_added_service_charge_event_list']; - } - - /** - * Sets value_added_service_charge_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ValueAddedServiceChargeEventList|null $value_added_service_charge_event_list value_added_service_charge_event_list - * - * @return self - */ - public function setValueAddedServiceChargeEventList($value_added_service_charge_event_list) - { - $this->container['value_added_service_charge_event_list'] = $value_added_service_charge_event_list; - - return $this; - } - /** - * Gets capacity_reservation_billing_event_list - * - * @return \SellingPartnerApi\Model\FinancesV0\CapacityReservationBillingEvent[]|null - */ - public function getCapacityReservationBillingEventList() - { - return $this->container['capacity_reservation_billing_event_list']; - } - - /** - * Sets capacity_reservation_billing_event_list - * - * @param \SellingPartnerApi\Model\FinancesV0\CapacityReservationBillingEvent[]|null $capacity_reservation_billing_event_list A list of `CapacityReservationBillingEvent` events. - * - * @return self - */ - public function setCapacityReservationBillingEventList($capacity_reservation_billing_event_list) - { - $this->container['capacity_reservation_billing_event_list'] = $capacity_reservation_billing_event_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ImagingServicesFeeEvent.php b/lib/Model/FinancesV0/ImagingServicesFeeEvent.php deleted file mode 100644 index 24d09f13f..000000000 --- a/lib/Model/FinancesV0/ImagingServicesFeeEvent.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImagingServicesFeeEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImagingServicesFeeEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'imaging_request_billing_item_id' => 'string', - 'asin' => 'string', - 'posted_date' => 'string', - 'fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'imaging_request_billing_item_id' => null, - 'asin' => null, - 'posted_date' => null, - 'fee_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'imaging_request_billing_item_id' => 'ImagingRequestBillingItemID', - 'asin' => 'ASIN', - 'posted_date' => 'PostedDate', - 'fee_list' => 'FeeList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'imaging_request_billing_item_id' => 'setImagingRequestBillingItemId', - 'asin' => 'setAsin', - 'posted_date' => 'setPostedDate', - 'fee_list' => 'setFeeList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'imaging_request_billing_item_id' => 'getImagingRequestBillingItemId', - 'asin' => 'getAsin', - 'posted_date' => 'getPostedDate', - 'fee_list' => 'getFeeList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['imaging_request_billing_item_id'] = $data['imaging_request_billing_item_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['fee_list'] = $data['fee_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets imaging_request_billing_item_id - * - * @return string|null - */ - public function getImagingRequestBillingItemId() - { - return $this->container['imaging_request_billing_item_id']; - } - - /** - * Sets imaging_request_billing_item_id - * - * @param string|null $imaging_request_billing_item_id The identifier for the imaging services request. - * - * @return self - */ - public function setImagingRequestBillingItemId($imaging_request_billing_item_id) - { - $this->container['imaging_request_billing_item_id'] = $imaging_request_billing_item_id; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getFeeList() - { - return $this->container['fee_list']; - } - - /** - * Sets fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $fee_list A list of fee component information. - * - * @return self - */ - public function setFeeList($fee_list) - { - $this->container['fee_list'] = $fee_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ListFinancialEventGroupsPayload.php b/lib/Model/FinancesV0/ListFinancialEventGroupsPayload.php deleted file mode 100644 index 016e18e6e..000000000 --- a/lib/Model/FinancesV0/ListFinancialEventGroupsPayload.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListFinancialEventGroupsPayload extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListFinancialEventGroupsPayload'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string', - 'financial_event_group_list' => '\SellingPartnerApi\Model\FinancesV0\FinancialEventGroup[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null, - 'financial_event_group_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'NextToken', - 'financial_event_group_list' => 'FinancialEventGroupList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken', - 'financial_event_group_list' => 'setFinancialEventGroupList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken', - 'financial_event_group_list' => 'getFinancialEventGroupList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['financial_event_group_list'] = $data['financial_event_group_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets financial_event_group_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FinancialEventGroup[]|null - */ - public function getFinancialEventGroupList() - { - return $this->container['financial_event_group_list']; - } - - /** - * Sets financial_event_group_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FinancialEventGroup[]|null $financial_event_group_list A list of financial event group information. - * - * @return self - */ - public function setFinancialEventGroupList($financial_event_group_list) - { - $this->container['financial_event_group_list'] = $financial_event_group_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ListFinancialEventGroupsResponse.php b/lib/Model/FinancesV0/ListFinancialEventGroupsResponse.php deleted file mode 100644 index 2141112a9..000000000 --- a/lib/Model/FinancesV0/ListFinancialEventGroupsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListFinancialEventGroupsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListFinancialEventGroupsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsPayload', - 'errors' => '\SellingPartnerApi\Model\FinancesV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsPayload|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FinancesV0\ListFinancialEventGroupsPayload|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FinancesV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FinancesV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ListFinancialEventsPayload.php b/lib/Model/FinancesV0/ListFinancialEventsPayload.php deleted file mode 100644 index e46870de9..000000000 --- a/lib/Model/FinancesV0/ListFinancialEventsPayload.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListFinancialEventsPayload extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListFinancialEventsPayload'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string', - 'financial_events' => '\SellingPartnerApi\Model\FinancesV0\FinancialEvents' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null, - 'financial_events' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'NextToken', - 'financial_events' => 'FinancialEvents' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken', - 'financial_events' => 'setFinancialEvents' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken', - 'financial_events' => 'getFinancialEvents' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['financial_events'] = $data['financial_events'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets financial_events - * - * @return \SellingPartnerApi\Model\FinancesV0\FinancialEvents|null - */ - public function getFinancialEvents() - { - return $this->container['financial_events']; - } - - /** - * Sets financial_events - * - * @param \SellingPartnerApi\Model\FinancesV0\FinancialEvents|null $financial_events financial_events - * - * @return self - */ - public function setFinancialEvents($financial_events) - { - $this->container['financial_events'] = $financial_events; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ListFinancialEventsResponse.php b/lib/Model/FinancesV0/ListFinancialEventsResponse.php deleted file mode 100644 index b6c7ad721..000000000 --- a/lib/Model/FinancesV0/ListFinancialEventsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListFinancialEventsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListFinancialEventsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\FinancesV0\ListFinancialEventsPayload', - 'errors' => '\SellingPartnerApi\Model\FinancesV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsPayload|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\FinancesV0\ListFinancialEventsPayload|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\FinancesV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\FinancesV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/LoanServicingEvent.php b/lib/Model/FinancesV0/LoanServicingEvent.php deleted file mode 100644 index aafd7daeb..000000000 --- a/lib/Model/FinancesV0/LoanServicingEvent.php +++ /dev/null @@ -1,195 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoanServicingEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LoanServicingEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'loan_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'source_business_event_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'loan_amount' => null, - 'source_business_event_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'loan_amount' => 'LoanAmount', - 'source_business_event_type' => 'SourceBusinessEventType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'loan_amount' => 'setLoanAmount', - 'source_business_event_type' => 'setSourceBusinessEventType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'loan_amount' => 'getLoanAmount', - 'source_business_event_type' => 'getSourceBusinessEventType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['loan_amount'] = $data['loan_amount'] ?? null; - $this->container['source_business_event_type'] = $data['source_business_event_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets loan_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getLoanAmount() - { - return $this->container['loan_amount']; - } - - /** - * Sets loan_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $loan_amount loan_amount - * - * @return self - */ - public function setLoanAmount($loan_amount) - { - $this->container['loan_amount'] = $loan_amount; - - return $this; - } - /** - * Gets source_business_event_type - * - * @return string|null - */ - public function getSourceBusinessEventType() - { - return $this->container['source_business_event_type']; - } - - /** - * Sets source_business_event_type - * - * @param string|null $source_business_event_type The type of event. - * Possible values: - * * LoanAdvance - * * LoanPayment - * * LoanRefund - * - * @return self - */ - public function setSourceBusinessEventType($source_business_event_type) - { - $this->container['source_business_event_type'] = $source_business_event_type; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/NetworkComminglingTransactionEvent.php b/lib/Model/FinancesV0/NetworkComminglingTransactionEvent.php deleted file mode 100644 index 9f5933359..000000000 --- a/lib/Model/FinancesV0/NetworkComminglingTransactionEvent.php +++ /dev/null @@ -1,368 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class NetworkComminglingTransactionEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'NetworkComminglingTransactionEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_type' => 'string', - 'posted_date' => 'string', - 'net_co_transaction_id' => 'string', - 'swap_reason' => 'string', - 'asin' => 'string', - 'marketplace_id' => 'string', - 'tax_exclusive_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_type' => null, - 'posted_date' => null, - 'net_co_transaction_id' => null, - 'swap_reason' => null, - 'asin' => null, - 'marketplace_id' => null, - 'tax_exclusive_amount' => null, - 'tax_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_type' => 'TransactionType', - 'posted_date' => 'PostedDate', - 'net_co_transaction_id' => 'NetCoTransactionID', - 'swap_reason' => 'SwapReason', - 'asin' => 'ASIN', - 'marketplace_id' => 'MarketplaceId', - 'tax_exclusive_amount' => 'TaxExclusiveAmount', - 'tax_amount' => 'TaxAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_type' => 'setTransactionType', - 'posted_date' => 'setPostedDate', - 'net_co_transaction_id' => 'setNetCoTransactionId', - 'swap_reason' => 'setSwapReason', - 'asin' => 'setAsin', - 'marketplace_id' => 'setMarketplaceId', - 'tax_exclusive_amount' => 'setTaxExclusiveAmount', - 'tax_amount' => 'setTaxAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_type' => 'getTransactionType', - 'posted_date' => 'getPostedDate', - 'net_co_transaction_id' => 'getNetCoTransactionId', - 'swap_reason' => 'getSwapReason', - 'asin' => 'getAsin', - 'marketplace_id' => 'getMarketplaceId', - 'tax_exclusive_amount' => 'getTaxExclusiveAmount', - 'tax_amount' => 'getTaxAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['net_co_transaction_id'] = $data['net_co_transaction_id'] ?? null; - $this->container['swap_reason'] = $data['swap_reason'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['tax_exclusive_amount'] = $data['tax_exclusive_amount'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type The type of network item swap. - * Possible values: - * * NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace. - * * ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces. - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets net_co_transaction_id - * - * @return string|null - */ - public function getNetCoTransactionId() - { - return $this->container['net_co_transaction_id']; - } - - /** - * Sets net_co_transaction_id - * - * @param string|null $net_co_transaction_id The identifier for the network item swap. - * - * @return self - */ - public function setNetCoTransactionId($net_co_transaction_id) - { - $this->container['net_co_transaction_id'] = $net_co_transaction_id; - - return $this; - } - /** - * Gets swap_reason - * - * @return string|null - */ - public function getSwapReason() - { - return $this->container['swap_reason']; - } - - /** - * Sets swap_reason - * - * @param string|null $swap_reason The reason for the network item swap. - * - * @return self - */ - public function setSwapReason($swap_reason) - { - $this->container['swap_reason'] = $swap_reason; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the swapped item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace in which the event took place. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets tax_exclusive_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxExclusiveAmount() - { - return $this->container['tax_exclusive_amount']; - } - - /** - * Sets tax_exclusive_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_exclusive_amount tax_exclusive_amount - * - * @return self - */ - public function setTaxExclusiveAmount($tax_exclusive_amount) - { - $this->container['tax_exclusive_amount'] = $tax_exclusive_amount; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/PayWithAmazonEvent.php b/lib/Model/FinancesV0/PayWithAmazonEvent.php deleted file mode 100644 index 4e82eba42..000000000 --- a/lib/Model/FinancesV0/PayWithAmazonEvent.php +++ /dev/null @@ -1,428 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PayWithAmazonEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PayWithAmazonEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_order_id' => 'string', - 'transaction_posted_date' => 'string', - 'business_object_type' => 'string', - 'sales_channel' => 'string', - 'charge' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent', - 'fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'payment_amount_type' => 'string', - 'amount_description' => 'string', - 'fulfillment_channel' => 'string', - 'store_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_order_id' => null, - 'transaction_posted_date' => null, - 'business_object_type' => null, - 'sales_channel' => null, - 'charge' => null, - 'fee_list' => null, - 'payment_amount_type' => null, - 'amount_description' => null, - 'fulfillment_channel' => null, - 'store_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_order_id' => 'SellerOrderId', - 'transaction_posted_date' => 'TransactionPostedDate', - 'business_object_type' => 'BusinessObjectType', - 'sales_channel' => 'SalesChannel', - 'charge' => 'Charge', - 'fee_list' => 'FeeList', - 'payment_amount_type' => 'PaymentAmountType', - 'amount_description' => 'AmountDescription', - 'fulfillment_channel' => 'FulfillmentChannel', - 'store_name' => 'StoreName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_order_id' => 'setSellerOrderId', - 'transaction_posted_date' => 'setTransactionPostedDate', - 'business_object_type' => 'setBusinessObjectType', - 'sales_channel' => 'setSalesChannel', - 'charge' => 'setCharge', - 'fee_list' => 'setFeeList', - 'payment_amount_type' => 'setPaymentAmountType', - 'amount_description' => 'setAmountDescription', - 'fulfillment_channel' => 'setFulfillmentChannel', - 'store_name' => 'setStoreName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_order_id' => 'getSellerOrderId', - 'transaction_posted_date' => 'getTransactionPostedDate', - 'business_object_type' => 'getBusinessObjectType', - 'sales_channel' => 'getSalesChannel', - 'charge' => 'getCharge', - 'fee_list' => 'getFeeList', - 'payment_amount_type' => 'getPaymentAmountType', - 'amount_description' => 'getAmountDescription', - 'fulfillment_channel' => 'getFulfillmentChannel', - 'store_name' => 'getStoreName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['transaction_posted_date'] = $data['transaction_posted_date'] ?? null; - $this->container['business_object_type'] = $data['business_object_type'] ?? null; - $this->container['sales_channel'] = $data['sales_channel'] ?? null; - $this->container['charge'] = $data['charge'] ?? null; - $this->container['fee_list'] = $data['fee_list'] ?? null; - $this->container['payment_amount_type'] = $data['payment_amount_type'] ?? null; - $this->container['amount_description'] = $data['amount_description'] ?? null; - $this->container['fulfillment_channel'] = $data['fulfillment_channel'] ?? null; - $this->container['store_name'] = $data['store_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id An order identifier that is specified by the seller. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets transaction_posted_date - * - * @return string|null - */ - public function getTransactionPostedDate() - { - return $this->container['transaction_posted_date']; - } - - /** - * Sets transaction_posted_date - * - * @param string|null $transaction_posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setTransactionPostedDate($transaction_posted_date) - { - $this->container['transaction_posted_date'] = $transaction_posted_date; - - return $this; - } - /** - * Gets business_object_type - * - * @return string|null - */ - public function getBusinessObjectType() - { - return $this->container['business_object_type']; - } - - /** - * Sets business_object_type - * - * @param string|null $business_object_type The type of business object. - * - * @return self - */ - public function setBusinessObjectType($business_object_type) - { - $this->container['business_object_type'] = $business_object_type; - - return $this; - } - /** - * Gets sales_channel - * - * @return string|null - */ - public function getSalesChannel() - { - return $this->container['sales_channel']; - } - - /** - * Sets sales_channel - * - * @param string|null $sales_channel The sales channel for the transaction. - * - * @return self - */ - public function setSalesChannel($sales_channel) - { - $this->container['sales_channel'] = $sales_channel; - - return $this; - } - /** - * Gets charge - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null - */ - public function getCharge() - { - return $this->container['charge']; - } - - /** - * Sets charge - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null $charge charge - * - * @return self - */ - public function setCharge($charge) - { - $this->container['charge'] = $charge; - - return $this; - } - /** - * Gets fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getFeeList() - { - return $this->container['fee_list']; - } - - /** - * Sets fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $fee_list A list of fee component information. - * - * @return self - */ - public function setFeeList($fee_list) - { - $this->container['fee_list'] = $fee_list; - - return $this; - } - /** - * Gets payment_amount_type - * - * @return string|null - */ - public function getPaymentAmountType() - { - return $this->container['payment_amount_type']; - } - - /** - * Sets payment_amount_type - * - * @param string|null $payment_amount_type The type of payment. - * Possible values: - * * Sales - * - * @return self - */ - public function setPaymentAmountType($payment_amount_type) - { - $this->container['payment_amount_type'] = $payment_amount_type; - - return $this; - } - /** - * Gets amount_description - * - * @return string|null - */ - public function getAmountDescription() - { - return $this->container['amount_description']; - } - - /** - * Sets amount_description - * - * @param string|null $amount_description A short description of this payment event. - * - * @return self - */ - public function setAmountDescription($amount_description) - { - $this->container['amount_description'] = $amount_description; - - return $this; - } - /** - * Gets fulfillment_channel - * - * @return string|null - */ - public function getFulfillmentChannel() - { - return $this->container['fulfillment_channel']; - } - - /** - * Sets fulfillment_channel - * - * @param string|null $fulfillment_channel The fulfillment channel. - * Possible values: - * * AFN - Amazon Fulfillment Network (Fulfillment by Amazon) - * * MFN - Merchant Fulfillment Network (self-fulfilled) - * - * @return self - */ - public function setFulfillmentChannel($fulfillment_channel) - { - $this->container['fulfillment_channel'] = $fulfillment_channel; - - return $this; - } - /** - * Gets store_name - * - * @return string|null - */ - public function getStoreName() - { - return $this->container['store_name']; - } - - /** - * Sets store_name - * - * @param string|null $store_name The store name where the event occurred. - * - * @return self - */ - public function setStoreName($store_name) - { - $this->container['store_name'] = $store_name; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ProductAdsPaymentEvent.php b/lib/Model/FinancesV0/ProductAdsPaymentEvent.php deleted file mode 100644 index 91a91dfe4..000000000 --- a/lib/Model/FinancesV0/ProductAdsPaymentEvent.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductAdsPaymentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductAdsPaymentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'transaction_type' => 'string', - 'invoice_id' => 'string', - 'base_value' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_value' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'transaction_value' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'transaction_type' => null, - 'invoice_id' => null, - 'base_value' => null, - 'tax_value' => null, - 'transaction_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'postedDate', - 'transaction_type' => 'transactionType', - 'invoice_id' => 'invoiceId', - 'base_value' => 'baseValue', - 'tax_value' => 'taxValue', - 'transaction_value' => 'transactionValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'transaction_type' => 'setTransactionType', - 'invoice_id' => 'setInvoiceId', - 'base_value' => 'setBaseValue', - 'tax_value' => 'setTaxValue', - 'transaction_value' => 'setTransactionValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'transaction_type' => 'getTransactionType', - 'invoice_id' => 'getInvoiceId', - 'base_value' => 'getBaseValue', - 'tax_value' => 'getTaxValue', - 'transaction_value' => 'getTransactionValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['invoice_id'] = $data['invoice_id'] ?? null; - $this->container['base_value'] = $data['base_value'] ?? null; - $this->container['tax_value'] = $data['tax_value'] ?? null; - $this->container['transaction_value'] = $data['transaction_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type Indicates if the transaction is for a charge or a refund. - * Possible values: - * * charge - Charge - * * refund - Refund - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets invoice_id - * - * @return string|null - */ - public function getInvoiceId() - { - return $this->container['invoice_id']; - } - - /** - * Sets invoice_id - * - * @param string|null $invoice_id Identifier for the invoice that the transaction appears in. - * - * @return self - */ - public function setInvoiceId($invoice_id) - { - $this->container['invoice_id'] = $invoice_id; - - return $this; - } - /** - * Gets base_value - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getBaseValue() - { - return $this->container['base_value']; - } - - /** - * Sets base_value - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $base_value base_value - * - * @return self - */ - public function setBaseValue($base_value) - { - $this->container['base_value'] = $base_value; - - return $this; - } - /** - * Gets tax_value - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxValue() - { - return $this->container['tax_value']; - } - - /** - * Sets tax_value - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_value tax_value - * - * @return self - */ - public function setTaxValue($tax_value) - { - $this->container['tax_value'] = $tax_value; - - return $this; - } - /** - * Gets transaction_value - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransactionValue() - { - return $this->container['transaction_value']; - } - - /** - * Sets transaction_value - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transaction_value transaction_value - * - * @return self - */ - public function setTransactionValue($transaction_value) - { - $this->container['transaction_value'] = $transaction_value; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/Promotion.php b/lib/Model/FinancesV0/Promotion.php deleted file mode 100644 index 8091554c1..000000000 --- a/lib/Model/FinancesV0/Promotion.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Promotion extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Promotion'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'promotion_type' => 'string', - 'promotion_id' => 'string', - 'promotion_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'promotion_type' => null, - 'promotion_id' => null, - 'promotion_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'promotion_type' => 'PromotionType', - 'promotion_id' => 'PromotionId', - 'promotion_amount' => 'PromotionAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'promotion_type' => 'setPromotionType', - 'promotion_id' => 'setPromotionId', - 'promotion_amount' => 'setPromotionAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'promotion_type' => 'getPromotionType', - 'promotion_id' => 'getPromotionId', - 'promotion_amount' => 'getPromotionAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['promotion_type'] = $data['promotion_type'] ?? null; - $this->container['promotion_id'] = $data['promotion_id'] ?? null; - $this->container['promotion_amount'] = $data['promotion_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets promotion_type - * - * @return string|null - */ - public function getPromotionType() - { - return $this->container['promotion_type']; - } - - /** - * Sets promotion_type - * - * @param string|null $promotion_type The type of promotion. - * - * @return self - */ - public function setPromotionType($promotion_type) - { - $this->container['promotion_type'] = $promotion_type; - - return $this; - } - /** - * Gets promotion_id - * - * @return string|null - */ - public function getPromotionId() - { - return $this->container['promotion_id']; - } - - /** - * Sets promotion_id - * - * @param string|null $promotion_id The seller-specified identifier for the promotion. - * - * @return self - */ - public function setPromotionId($promotion_id) - { - $this->container['promotion_id'] = $promotion_id; - - return $this; - } - /** - * Gets promotion_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getPromotionAmount() - { - return $this->container['promotion_amount']; - } - - /** - * Sets promotion_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $promotion_amount promotion_amount - * - * @return self - */ - public function setPromotionAmount($promotion_amount) - { - $this->container['promotion_amount'] = $promotion_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RemovalShipmentAdjustmentEvent.php b/lib/Model/FinancesV0/RemovalShipmentAdjustmentEvent.php deleted file mode 100644 index a6cf9d9c3..000000000 --- a/lib/Model/FinancesV0/RemovalShipmentAdjustmentEvent.php +++ /dev/null @@ -1,309 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RemovalShipmentAdjustmentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RemovalShipmentAdjustmentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'adjustment_event_id' => 'string', - 'merchant_order_id' => 'string', - 'order_id' => 'string', - 'transaction_type' => 'string', - 'removal_shipment_item_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\RemovalShipmentItemAdjustment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'adjustment_event_id' => null, - 'merchant_order_id' => null, - 'order_id' => null, - 'transaction_type' => null, - 'removal_shipment_item_adjustment_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'adjustment_event_id' => 'AdjustmentEventId', - 'merchant_order_id' => 'MerchantOrderId', - 'order_id' => 'OrderId', - 'transaction_type' => 'TransactionType', - 'removal_shipment_item_adjustment_list' => 'RemovalShipmentItemAdjustmentList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'adjustment_event_id' => 'setAdjustmentEventId', - 'merchant_order_id' => 'setMerchantOrderId', - 'order_id' => 'setOrderId', - 'transaction_type' => 'setTransactionType', - 'removal_shipment_item_adjustment_list' => 'setRemovalShipmentItemAdjustmentList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'adjustment_event_id' => 'getAdjustmentEventId', - 'merchant_order_id' => 'getMerchantOrderId', - 'order_id' => 'getOrderId', - 'transaction_type' => 'getTransactionType', - 'removal_shipment_item_adjustment_list' => 'getRemovalShipmentItemAdjustmentList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['adjustment_event_id'] = $data['adjustment_event_id'] ?? null; - $this->container['merchant_order_id'] = $data['merchant_order_id'] ?? null; - $this->container['order_id'] = $data['order_id'] ?? null; - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['removal_shipment_item_adjustment_list'] = $data['removal_shipment_item_adjustment_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets adjustment_event_id - * - * @return string|null - */ - public function getAdjustmentEventId() - { - return $this->container['adjustment_event_id']; - } - - /** - * Sets adjustment_event_id - * - * @param string|null $adjustment_event_id The unique identifier for the adjustment event. - * - * @return self - */ - public function setAdjustmentEventId($adjustment_event_id) - { - $this->container['adjustment_event_id'] = $adjustment_event_id; - - return $this; - } - /** - * Gets merchant_order_id - * - * @return string|null - */ - public function getMerchantOrderId() - { - return $this->container['merchant_order_id']; - } - - /** - * Sets merchant_order_id - * - * @param string|null $merchant_order_id The merchant removal orderId. - * - * @return self - */ - public function setMerchantOrderId($merchant_order_id) - { - $this->container['merchant_order_id'] = $merchant_order_id; - - return $this; - } - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id The orderId for shipping inventory. - * - * @return self - */ - public function setOrderId($order_id) - { - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type The type of removal order. - * Possible values: - * * WHOLESALE_LIQUIDATION. - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets removal_shipment_item_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RemovalShipmentItemAdjustment[]|null - */ - public function getRemovalShipmentItemAdjustmentList() - { - return $this->container['removal_shipment_item_adjustment_list']; - } - - /** - * Sets removal_shipment_item_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RemovalShipmentItemAdjustment[]|null $removal_shipment_item_adjustment_list A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory. - * - * @return self - */ - public function setRemovalShipmentItemAdjustmentList($removal_shipment_item_adjustment_list) - { - $this->container['removal_shipment_item_adjustment_list'] = $removal_shipment_item_adjustment_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RemovalShipmentEvent.php b/lib/Model/FinancesV0/RemovalShipmentEvent.php deleted file mode 100644 index 23e6186e6..000000000 --- a/lib/Model/FinancesV0/RemovalShipmentEvent.php +++ /dev/null @@ -1,280 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RemovalShipmentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RemovalShipmentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'merchant_order_id' => 'string', - 'order_id' => 'string', - 'transaction_type' => 'string', - 'removal_shipment_item_list' => '\SellingPartnerApi\Model\FinancesV0\RemovalShipmentItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'merchant_order_id' => null, - 'order_id' => null, - 'transaction_type' => null, - 'removal_shipment_item_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'merchant_order_id' => 'MerchantOrderId', - 'order_id' => 'OrderId', - 'transaction_type' => 'TransactionType', - 'removal_shipment_item_list' => 'RemovalShipmentItemList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'merchant_order_id' => 'setMerchantOrderId', - 'order_id' => 'setOrderId', - 'transaction_type' => 'setTransactionType', - 'removal_shipment_item_list' => 'setRemovalShipmentItemList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'merchant_order_id' => 'getMerchantOrderId', - 'order_id' => 'getOrderId', - 'transaction_type' => 'getTransactionType', - 'removal_shipment_item_list' => 'getRemovalShipmentItemList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['merchant_order_id'] = $data['merchant_order_id'] ?? null; - $this->container['order_id'] = $data['order_id'] ?? null; - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['removal_shipment_item_list'] = $data['removal_shipment_item_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets merchant_order_id - * - * @return string|null - */ - public function getMerchantOrderId() - { - return $this->container['merchant_order_id']; - } - - /** - * Sets merchant_order_id - * - * @param string|null $merchant_order_id The merchant removal orderId. - * - * @return self - */ - public function setMerchantOrderId($merchant_order_id) - { - $this->container['merchant_order_id'] = $merchant_order_id; - - return $this; - } - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id The identifier for the removal shipment order. - * - * @return self - */ - public function setOrderId($order_id) - { - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type The type of removal order. - * Possible values: - * * WHOLESALE_LIQUIDATION - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets removal_shipment_item_list - * - * @return \SellingPartnerApi\Model\FinancesV0\RemovalShipmentItem[]|null - */ - public function getRemovalShipmentItemList() - { - return $this->container['removal_shipment_item_list']; - } - - /** - * Sets removal_shipment_item_list - * - * @param \SellingPartnerApi\Model\FinancesV0\RemovalShipmentItem[]|null $removal_shipment_item_list A list of information about removal shipment items. - * - * @return self - */ - public function setRemovalShipmentItemList($removal_shipment_item_list) - { - $this->container['removal_shipment_item_list'] = $removal_shipment_item_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RemovalShipmentItem.php b/lib/Model/FinancesV0/RemovalShipmentItem.php deleted file mode 100644 index 36e095a67..000000000 --- a/lib/Model/FinancesV0/RemovalShipmentItem.php +++ /dev/null @@ -1,368 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RemovalShipmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RemovalShipmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'removal_shipment_item_id' => 'string', - 'tax_collection_model' => 'string', - 'fulfillment_network_sku' => 'string', - 'quantity' => 'int', - 'revenue' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'fee_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_withheld' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'removal_shipment_item_id' => null, - 'tax_collection_model' => null, - 'fulfillment_network_sku' => null, - 'quantity' => 'int32', - 'revenue' => null, - 'fee_amount' => null, - 'tax_amount' => null, - 'tax_withheld' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'removal_shipment_item_id' => 'RemovalShipmentItemId', - 'tax_collection_model' => 'TaxCollectionModel', - 'fulfillment_network_sku' => 'FulfillmentNetworkSKU', - 'quantity' => 'Quantity', - 'revenue' => 'Revenue', - 'fee_amount' => 'FeeAmount', - 'tax_amount' => 'TaxAmount', - 'tax_withheld' => 'TaxWithheld' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'removal_shipment_item_id' => 'setRemovalShipmentItemId', - 'tax_collection_model' => 'setTaxCollectionModel', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'quantity' => 'setQuantity', - 'revenue' => 'setRevenue', - 'fee_amount' => 'setFeeAmount', - 'tax_amount' => 'setTaxAmount', - 'tax_withheld' => 'setTaxWithheld' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'removal_shipment_item_id' => 'getRemovalShipmentItemId', - 'tax_collection_model' => 'getTaxCollectionModel', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'quantity' => 'getQuantity', - 'revenue' => 'getRevenue', - 'fee_amount' => 'getFeeAmount', - 'tax_amount' => 'getTaxAmount', - 'tax_withheld' => 'getTaxWithheld' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['removal_shipment_item_id'] = $data['removal_shipment_item_id'] ?? null; - $this->container['tax_collection_model'] = $data['tax_collection_model'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['revenue'] = $data['revenue'] ?? null; - $this->container['fee_amount'] = $data['fee_amount'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['tax_withheld'] = $data['tax_withheld'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets removal_shipment_item_id - * - * @return string|null - */ - public function getRemovalShipmentItemId() - { - return $this->container['removal_shipment_item_id']; - } - - /** - * Sets removal_shipment_item_id - * - * @param string|null $removal_shipment_item_id An identifier for an item in a removal shipment. - * - * @return self - */ - public function setRemovalShipmentItemId($removal_shipment_item_id) - { - $this->container['removal_shipment_item_id'] = $removal_shipment_item_id; - - return $this; - } - /** - * Gets tax_collection_model - * - * @return string|null - */ - public function getTaxCollectionModel() - { - return $this->container['tax_collection_model']; - } - - /** - * Sets tax_collection_model - * - * @param string|null $tax_collection_model The tax collection model applied to the item. - * Possible values: - * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. - * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. - * - * @return self - */ - public function setTaxCollectionModel($tax_collection_model) - { - $this->container['tax_collection_model'] = $tax_collection_model; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku The Amazon fulfillment network SKU for the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets quantity - * - * @return int|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int|null $quantity The quantity of the item. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets revenue - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRevenue() - { - return $this->container['revenue']; - } - - /** - * Sets revenue - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $revenue revenue - * - * @return self - */ - public function setRevenue($revenue) - { - $this->container['revenue'] = $revenue; - - return $this; - } - /** - * Gets fee_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getFeeAmount() - { - return $this->container['fee_amount']; - } - - /** - * Sets fee_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $fee_amount fee_amount - * - * @return self - */ - public function setFeeAmount($fee_amount) - { - $this->container['fee_amount'] = $fee_amount; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets tax_withheld - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxWithheld() - { - return $this->container['tax_withheld']; - } - - /** - * Sets tax_withheld - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_withheld tax_withheld - * - * @return self - */ - public function setTaxWithheld($tax_withheld) - { - $this->container['tax_withheld'] = $tax_withheld; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RemovalShipmentItemAdjustment.php b/lib/Model/FinancesV0/RemovalShipmentItemAdjustment.php deleted file mode 100644 index df4151b02..000000000 --- a/lib/Model/FinancesV0/RemovalShipmentItemAdjustment.php +++ /dev/null @@ -1,339 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RemovalShipmentItemAdjustment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RemovalShipmentItemAdjustment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'removal_shipment_item_id' => 'string', - 'tax_collection_model' => 'string', - 'fulfillment_network_sku' => 'string', - 'adjusted_quantity' => 'int', - 'revenue_adjustment' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_amount_adjustment' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_withheld_adjustment' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'removal_shipment_item_id' => null, - 'tax_collection_model' => null, - 'fulfillment_network_sku' => null, - 'adjusted_quantity' => 'int32', - 'revenue_adjustment' => null, - 'tax_amount_adjustment' => null, - 'tax_withheld_adjustment' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'removal_shipment_item_id' => 'RemovalShipmentItemId', - 'tax_collection_model' => 'TaxCollectionModel', - 'fulfillment_network_sku' => 'FulfillmentNetworkSKU', - 'adjusted_quantity' => 'AdjustedQuantity', - 'revenue_adjustment' => 'RevenueAdjustment', - 'tax_amount_adjustment' => 'TaxAmountAdjustment', - 'tax_withheld_adjustment' => 'TaxWithheldAdjustment' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'removal_shipment_item_id' => 'setRemovalShipmentItemId', - 'tax_collection_model' => 'setTaxCollectionModel', - 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', - 'adjusted_quantity' => 'setAdjustedQuantity', - 'revenue_adjustment' => 'setRevenueAdjustment', - 'tax_amount_adjustment' => 'setTaxAmountAdjustment', - 'tax_withheld_adjustment' => 'setTaxWithheldAdjustment' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'removal_shipment_item_id' => 'getRemovalShipmentItemId', - 'tax_collection_model' => 'getTaxCollectionModel', - 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', - 'adjusted_quantity' => 'getAdjustedQuantity', - 'revenue_adjustment' => 'getRevenueAdjustment', - 'tax_amount_adjustment' => 'getTaxAmountAdjustment', - 'tax_withheld_adjustment' => 'getTaxWithheldAdjustment' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['removal_shipment_item_id'] = $data['removal_shipment_item_id'] ?? null; - $this->container['tax_collection_model'] = $data['tax_collection_model'] ?? null; - $this->container['fulfillment_network_sku'] = $data['fulfillment_network_sku'] ?? null; - $this->container['adjusted_quantity'] = $data['adjusted_quantity'] ?? null; - $this->container['revenue_adjustment'] = $data['revenue_adjustment'] ?? null; - $this->container['tax_amount_adjustment'] = $data['tax_amount_adjustment'] ?? null; - $this->container['tax_withheld_adjustment'] = $data['tax_withheld_adjustment'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets removal_shipment_item_id - * - * @return string|null - */ - public function getRemovalShipmentItemId() - { - return $this->container['removal_shipment_item_id']; - } - - /** - * Sets removal_shipment_item_id - * - * @param string|null $removal_shipment_item_id An identifier for an item in a removal shipment. - * - * @return self - */ - public function setRemovalShipmentItemId($removal_shipment_item_id) - { - $this->container['removal_shipment_item_id'] = $removal_shipment_item_id; - - return $this; - } - /** - * Gets tax_collection_model - * - * @return string|null - */ - public function getTaxCollectionModel() - { - return $this->container['tax_collection_model']; - } - - /** - * Sets tax_collection_model - * - * @param string|null $tax_collection_model The tax collection model applied to the item. - * Possible values: - * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. - * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. - * - * @return self - */ - public function setTaxCollectionModel($tax_collection_model) - { - $this->container['tax_collection_model'] = $tax_collection_model; - - return $this; - } - /** - * Gets fulfillment_network_sku - * - * @return string|null - */ - public function getFulfillmentNetworkSku() - { - return $this->container['fulfillment_network_sku']; - } - - /** - * Sets fulfillment_network_sku - * - * @param string|null $fulfillment_network_sku The Amazon fulfillment network SKU for the item. - * - * @return self - */ - public function setFulfillmentNetworkSku($fulfillment_network_sku) - { - $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; - - return $this; - } - /** - * Gets adjusted_quantity - * - * @return int|null - */ - public function getAdjustedQuantity() - { - return $this->container['adjusted_quantity']; - } - - /** - * Sets adjusted_quantity - * - * @param int|null $adjusted_quantity Adjusted quantity of removal shipmentItemAdjustment items. - * - * @return self - */ - public function setAdjustedQuantity($adjusted_quantity) - { - $this->container['adjusted_quantity'] = $adjusted_quantity; - - return $this; - } - /** - * Gets revenue_adjustment - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRevenueAdjustment() - { - return $this->container['revenue_adjustment']; - } - - /** - * Sets revenue_adjustment - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $revenue_adjustment revenue_adjustment - * - * @return self - */ - public function setRevenueAdjustment($revenue_adjustment) - { - $this->container['revenue_adjustment'] = $revenue_adjustment; - - return $this; - } - /** - * Gets tax_amount_adjustment - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxAmountAdjustment() - { - return $this->container['tax_amount_adjustment']; - } - - /** - * Sets tax_amount_adjustment - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_amount_adjustment tax_amount_adjustment - * - * @return self - */ - public function setTaxAmountAdjustment($tax_amount_adjustment) - { - $this->container['tax_amount_adjustment'] = $tax_amount_adjustment; - - return $this; - } - /** - * Gets tax_withheld_adjustment - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxWithheldAdjustment() - { - return $this->container['tax_withheld_adjustment']; - } - - /** - * Sets tax_withheld_adjustment - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_withheld_adjustment tax_withheld_adjustment - * - * @return self - */ - public function setTaxWithheldAdjustment($tax_withheld_adjustment) - { - $this->container['tax_withheld_adjustment'] = $tax_withheld_adjustment; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RentalTransactionEvent.php b/lib/Model/FinancesV0/RentalTransactionEvent.php deleted file mode 100644 index 59c07f371..000000000 --- a/lib/Model/FinancesV0/RentalTransactionEvent.php +++ /dev/null @@ -1,431 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RentalTransactionEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RentalTransactionEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'rental_event_type' => 'string', - 'extension_length' => 'int', - 'posted_date' => 'string', - 'rental_charge_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'rental_fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'marketplace_name' => 'string', - 'rental_initial_value' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'rental_reimbursement' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'rental_tax_withheld_list' => '\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'rental_event_type' => null, - 'extension_length' => 'int32', - 'posted_date' => null, - 'rental_charge_list' => null, - 'rental_fee_list' => null, - 'marketplace_name' => null, - 'rental_initial_value' => null, - 'rental_reimbursement' => null, - 'rental_tax_withheld_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'rental_event_type' => 'RentalEventType', - 'extension_length' => 'ExtensionLength', - 'posted_date' => 'PostedDate', - 'rental_charge_list' => 'RentalChargeList', - 'rental_fee_list' => 'RentalFeeList', - 'marketplace_name' => 'MarketplaceName', - 'rental_initial_value' => 'RentalInitialValue', - 'rental_reimbursement' => 'RentalReimbursement', - 'rental_tax_withheld_list' => 'RentalTaxWithheldList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'rental_event_type' => 'setRentalEventType', - 'extension_length' => 'setExtensionLength', - 'posted_date' => 'setPostedDate', - 'rental_charge_list' => 'setRentalChargeList', - 'rental_fee_list' => 'setRentalFeeList', - 'marketplace_name' => 'setMarketplaceName', - 'rental_initial_value' => 'setRentalInitialValue', - 'rental_reimbursement' => 'setRentalReimbursement', - 'rental_tax_withheld_list' => 'setRentalTaxWithheldList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'rental_event_type' => 'getRentalEventType', - 'extension_length' => 'getExtensionLength', - 'posted_date' => 'getPostedDate', - 'rental_charge_list' => 'getRentalChargeList', - 'rental_fee_list' => 'getRentalFeeList', - 'marketplace_name' => 'getMarketplaceName', - 'rental_initial_value' => 'getRentalInitialValue', - 'rental_reimbursement' => 'getRentalReimbursement', - 'rental_tax_withheld_list' => 'getRentalTaxWithheldList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['rental_event_type'] = $data['rental_event_type'] ?? null; - $this->container['extension_length'] = $data['extension_length'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['rental_charge_list'] = $data['rental_charge_list'] ?? null; - $this->container['rental_fee_list'] = $data['rental_fee_list'] ?? null; - $this->container['marketplace_name'] = $data['marketplace_name'] ?? null; - $this->container['rental_initial_value'] = $data['rental_initial_value'] ?? null; - $this->container['rental_reimbursement'] = $data['rental_reimbursement'] ?? null; - $this->container['rental_tax_withheld_list'] = $data['rental_tax_withheld_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets rental_event_type - * - * @return string|null - */ - public function getRentalEventType() - { - return $this->container['rental_event_type']; - } - - /** - * Sets rental_event_type - * - * @param string|null $rental_event_type The type of rental event. - * Possible values: - * * RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item. - * * RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period. - * * RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item. - * * RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item. - * * RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon. - * * RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge. - * * RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item. - * - * @return self - */ - public function setRentalEventType($rental_event_type) - { - $this->container['rental_event_type'] = $rental_event_type; - - return $this; - } - /** - * Gets extension_length - * - * @return int|null - */ - public function getExtensionLength() - { - return $this->container['extension_length']; - } - - /** - * Sets extension_length - * - * @param int|null $extension_length The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events. - * - * @return self - */ - public function setExtensionLength($extension_length) - { - $this->container['extension_length'] = $extension_length; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets rental_charge_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getRentalChargeList() - { - return $this->container['rental_charge_list']; - } - - /** - * Sets rental_charge_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $rental_charge_list A list of charge information on the seller's account. - * - * @return self - */ - public function setRentalChargeList($rental_charge_list) - { - $this->container['rental_charge_list'] = $rental_charge_list; - - return $this; - } - /** - * Gets rental_fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getRentalFeeList() - { - return $this->container['rental_fee_list']; - } - - /** - * Sets rental_fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $rental_fee_list A list of fee component information. - * - * @return self - */ - public function setRentalFeeList($rental_fee_list) - { - $this->container['rental_fee_list'] = $rental_fee_list; - - return $this; - } - /** - * Gets marketplace_name - * - * @return string|null - */ - public function getMarketplaceName() - { - return $this->container['marketplace_name']; - } - - /** - * Sets marketplace_name - * - * @param string|null $marketplace_name The name of the marketplace. - * - * @return self - */ - public function setMarketplaceName($marketplace_name) - { - $this->container['marketplace_name'] = $marketplace_name; - - return $this; - } - /** - * Gets rental_initial_value - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRentalInitialValue() - { - return $this->container['rental_initial_value']; - } - - /** - * Sets rental_initial_value - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $rental_initial_value rental_initial_value - * - * @return self - */ - public function setRentalInitialValue($rental_initial_value) - { - $this->container['rental_initial_value'] = $rental_initial_value; - - return $this; - } - /** - * Gets rental_reimbursement - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getRentalReimbursement() - { - return $this->container['rental_reimbursement']; - } - - /** - * Sets rental_reimbursement - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $rental_reimbursement rental_reimbursement - * - * @return self - */ - public function setRentalReimbursement($rental_reimbursement) - { - $this->container['rental_reimbursement'] = $rental_reimbursement; - - return $this; - } - /** - * Gets rental_tax_withheld_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null - */ - public function getRentalTaxWithheldList() - { - return $this->container['rental_tax_withheld_list']; - } - - /** - * Sets rental_tax_withheld_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null $rental_tax_withheld_list A list of information about taxes withheld. - * - * @return self - */ - public function setRentalTaxWithheldList($rental_tax_withheld_list) - { - $this->container['rental_tax_withheld_list'] = $rental_tax_withheld_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/RetrochargeEvent.php b/lib/Model/FinancesV0/RetrochargeEvent.php deleted file mode 100644 index d0fe0f335..000000000 --- a/lib/Model/FinancesV0/RetrochargeEvent.php +++ /dev/null @@ -1,339 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RetrochargeEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RetrochargeEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'retrocharge_event_type' => 'string', - 'amazon_order_id' => 'string', - 'posted_date' => 'string', - 'base_tax' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'shipping_tax' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'marketplace_name' => 'string', - 'retrocharge_tax_withheld_list' => '\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'retrocharge_event_type' => null, - 'amazon_order_id' => null, - 'posted_date' => null, - 'base_tax' => null, - 'shipping_tax' => null, - 'marketplace_name' => null, - 'retrocharge_tax_withheld_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'retrocharge_event_type' => 'RetrochargeEventType', - 'amazon_order_id' => 'AmazonOrderId', - 'posted_date' => 'PostedDate', - 'base_tax' => 'BaseTax', - 'shipping_tax' => 'ShippingTax', - 'marketplace_name' => 'MarketplaceName', - 'retrocharge_tax_withheld_list' => 'RetrochargeTaxWithheldList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'retrocharge_event_type' => 'setRetrochargeEventType', - 'amazon_order_id' => 'setAmazonOrderId', - 'posted_date' => 'setPostedDate', - 'base_tax' => 'setBaseTax', - 'shipping_tax' => 'setShippingTax', - 'marketplace_name' => 'setMarketplaceName', - 'retrocharge_tax_withheld_list' => 'setRetrochargeTaxWithheldList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'retrocharge_event_type' => 'getRetrochargeEventType', - 'amazon_order_id' => 'getAmazonOrderId', - 'posted_date' => 'getPostedDate', - 'base_tax' => 'getBaseTax', - 'shipping_tax' => 'getShippingTax', - 'marketplace_name' => 'getMarketplaceName', - 'retrocharge_tax_withheld_list' => 'getRetrochargeTaxWithheldList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['retrocharge_event_type'] = $data['retrocharge_event_type'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['base_tax'] = $data['base_tax'] ?? null; - $this->container['shipping_tax'] = $data['shipping_tax'] ?? null; - $this->container['marketplace_name'] = $data['marketplace_name'] ?? null; - $this->container['retrocharge_tax_withheld_list'] = $data['retrocharge_tax_withheld_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets retrocharge_event_type - * - * @return string|null - */ - public function getRetrochargeEventType() - { - return $this->container['retrocharge_event_type']; - } - - /** - * Sets retrocharge_event_type - * - * @param string|null $retrocharge_event_type The type of event. - * Possible values: - * * Retrocharge - * * RetrochargeReversal - * - * @return self - */ - public function setRetrochargeEventType($retrocharge_event_type) - { - $this->container['retrocharge_event_type'] = $retrocharge_event_type; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets base_tax - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getBaseTax() - { - return $this->container['base_tax']; - } - - /** - * Sets base_tax - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $base_tax base_tax - * - * @return self - */ - public function setBaseTax($base_tax) - { - $this->container['base_tax'] = $base_tax; - - return $this; - } - /** - * Gets shipping_tax - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getShippingTax() - { - return $this->container['shipping_tax']; - } - - /** - * Sets shipping_tax - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $shipping_tax shipping_tax - * - * @return self - */ - public function setShippingTax($shipping_tax) - { - $this->container['shipping_tax'] = $shipping_tax; - - return $this; - } - /** - * Gets marketplace_name - * - * @return string|null - */ - public function getMarketplaceName() - { - return $this->container['marketplace_name']; - } - - /** - * Sets marketplace_name - * - * @param string|null $marketplace_name The name of the marketplace where the retrocharge event occurred. - * - * @return self - */ - public function setMarketplaceName($marketplace_name) - { - $this->container['marketplace_name'] = $marketplace_name; - - return $this; - } - /** - * Gets retrocharge_tax_withheld_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null - */ - public function getRetrochargeTaxWithheldList() - { - return $this->container['retrocharge_tax_withheld_list']; - } - - /** - * Sets retrocharge_tax_withheld_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null $retrocharge_tax_withheld_list A list of information about taxes withheld. - * - * @return self - */ - public function setRetrochargeTaxWithheldList($retrocharge_tax_withheld_list) - { - $this->container['retrocharge_tax_withheld_list'] = $retrocharge_tax_withheld_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/SAFETReimbursementEvent.php b/lib/Model/FinancesV0/SAFETReimbursementEvent.php deleted file mode 100644 index b1f427b82..000000000 --- a/lib/Model/FinancesV0/SAFETReimbursementEvent.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SAFETReimbursementEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SAFETReimbursementEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'safet_claim_id' => 'string', - 'reimbursed_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'reason_code' => 'string', - 'safet_reimbursement_item_list' => '\SellingPartnerApi\Model\FinancesV0\SAFETReimbursementItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'safet_claim_id' => null, - 'reimbursed_amount' => null, - 'reason_code' => null, - 'safet_reimbursement_item_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'safet_claim_id' => 'SAFETClaimId', - 'reimbursed_amount' => 'ReimbursedAmount', - 'reason_code' => 'ReasonCode', - 'safet_reimbursement_item_list' => 'SAFETReimbursementItemList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'safet_claim_id' => 'setSafetClaimId', - 'reimbursed_amount' => 'setReimbursedAmount', - 'reason_code' => 'setReasonCode', - 'safet_reimbursement_item_list' => 'setSafetReimbursementItemList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'safet_claim_id' => 'getSafetClaimId', - 'reimbursed_amount' => 'getReimbursedAmount', - 'reason_code' => 'getReasonCode', - 'safet_reimbursement_item_list' => 'getSafetReimbursementItemList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['safet_claim_id'] = $data['safet_claim_id'] ?? null; - $this->container['reimbursed_amount'] = $data['reimbursed_amount'] ?? null; - $this->container['reason_code'] = $data['reason_code'] ?? null; - $this->container['safet_reimbursement_item_list'] = $data['safet_reimbursement_item_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets safet_claim_id - * - * @return string|null - */ - public function getSafetClaimId() - { - return $this->container['safet_claim_id']; - } - - /** - * Sets safet_claim_id - * - * @param string|null $safet_claim_id A SAFE-T claim identifier. - * - * @return self - */ - public function setSafetClaimId($safet_claim_id) - { - $this->container['safet_claim_id'] = $safet_claim_id; - - return $this; - } - /** - * Gets reimbursed_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getReimbursedAmount() - { - return $this->container['reimbursed_amount']; - } - - /** - * Sets reimbursed_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $reimbursed_amount reimbursed_amount - * - * @return self - */ - public function setReimbursedAmount($reimbursed_amount) - { - $this->container['reimbursed_amount'] = $reimbursed_amount; - - return $this; - } - /** - * Gets reason_code - * - * @return string|null - */ - public function getReasonCode() - { - return $this->container['reason_code']; - } - - /** - * Sets reason_code - * - * @param string|null $reason_code Indicates why the seller was reimbursed. - * - * @return self - */ - public function setReasonCode($reason_code) - { - $this->container['reason_code'] = $reason_code; - - return $this; - } - /** - * Gets safet_reimbursement_item_list - * - * @return \SellingPartnerApi\Model\FinancesV0\SAFETReimbursementItem[]|null - */ - public function getSafetReimbursementItemList() - { - return $this->container['safet_reimbursement_item_list']; - } - - /** - * Sets safet_reimbursement_item_list - * - * @param \SellingPartnerApi\Model\FinancesV0\SAFETReimbursementItem[]|null $safet_reimbursement_item_list A list of SAFETReimbursementItems. - * - * @return self - */ - public function setSafetReimbursementItemList($safet_reimbursement_item_list) - { - $this->container['safet_reimbursement_item_list'] = $safet_reimbursement_item_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/SAFETReimbursementItem.php b/lib/Model/FinancesV0/SAFETReimbursementItem.php deleted file mode 100644 index 6356f7e7f..000000000 --- a/lib/Model/FinancesV0/SAFETReimbursementItem.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SAFETReimbursementItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SAFETReimbursementItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_charge_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'product_description' => 'string', - 'quantity' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_charge_list' => null, - 'product_description' => null, - 'quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_charge_list' => 'itemChargeList', - 'product_description' => 'productDescription', - 'quantity' => 'quantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_charge_list' => 'setItemChargeList', - 'product_description' => 'setProductDescription', - 'quantity' => 'setQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_charge_list' => 'getItemChargeList', - 'product_description' => 'getProductDescription', - 'quantity' => 'getQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_charge_list'] = $data['item_charge_list'] ?? null; - $this->container['product_description'] = $data['product_description'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets item_charge_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getItemChargeList() - { - return $this->container['item_charge_list']; - } - - /** - * Sets item_charge_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $item_charge_list A list of charge information on the seller's account. - * - * @return self - */ - public function setItemChargeList($item_charge_list) - { - $this->container['item_charge_list'] = $item_charge_list; - - return $this; - } - /** - * Gets product_description - * - * @return string|null - */ - public function getProductDescription() - { - return $this->container['product_description']; - } - - /** - * Sets product_description - * - * @param string|null $product_description The description of the item as shown on the product detail page on the retail website. - * - * @return self - */ - public function setProductDescription($product_description) - { - $this->container['product_description'] = $product_description; - - return $this; - } - /** - * Gets quantity - * - * @return string|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param string|null $quantity The number of units of the item being reimbursed. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/SellerDealPaymentEvent.php b/lib/Model/FinancesV0/SellerDealPaymentEvent.php deleted file mode 100644 index 2b06d649c..000000000 --- a/lib/Model/FinancesV0/SellerDealPaymentEvent.php +++ /dev/null @@ -1,365 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerDealPaymentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerDealPaymentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'deal_id' => 'string', - 'deal_description' => 'string', - 'event_type' => 'string', - 'fee_type' => 'string', - 'fee_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'total_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'deal_id' => null, - 'deal_description' => null, - 'event_type' => null, - 'fee_type' => null, - 'fee_amount' => null, - 'tax_amount' => null, - 'total_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'postedDate', - 'deal_id' => 'dealId', - 'deal_description' => 'dealDescription', - 'event_type' => 'eventType', - 'fee_type' => 'feeType', - 'fee_amount' => 'feeAmount', - 'tax_amount' => 'taxAmount', - 'total_amount' => 'totalAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'deal_id' => 'setDealId', - 'deal_description' => 'setDealDescription', - 'event_type' => 'setEventType', - 'fee_type' => 'setFeeType', - 'fee_amount' => 'setFeeAmount', - 'tax_amount' => 'setTaxAmount', - 'total_amount' => 'setTotalAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'deal_id' => 'getDealId', - 'deal_description' => 'getDealDescription', - 'event_type' => 'getEventType', - 'fee_type' => 'getFeeType', - 'fee_amount' => 'getFeeAmount', - 'tax_amount' => 'getTaxAmount', - 'total_amount' => 'getTotalAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['deal_id'] = $data['deal_id'] ?? null; - $this->container['deal_description'] = $data['deal_description'] ?? null; - $this->container['event_type'] = $data['event_type'] ?? null; - $this->container['fee_type'] = $data['fee_type'] ?? null; - $this->container['fee_amount'] = $data['fee_amount'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['total_amount'] = $data['total_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets deal_id - * - * @return string|null - */ - public function getDealId() - { - return $this->container['deal_id']; - } - - /** - * Sets deal_id - * - * @param string|null $deal_id The unique identifier of the deal. - * - * @return self - */ - public function setDealId($deal_id) - { - $this->container['deal_id'] = $deal_id; - - return $this; - } - /** - * Gets deal_description - * - * @return string|null - */ - public function getDealDescription() - { - return $this->container['deal_description']; - } - - /** - * Sets deal_description - * - * @param string|null $deal_description The internal description of the deal. - * - * @return self - */ - public function setDealDescription($deal_description) - { - $this->container['deal_description'] = $deal_description; - - return $this; - } - /** - * Gets event_type - * - * @return string|null - */ - public function getEventType() - { - return $this->container['event_type']; - } - - /** - * Sets event_type - * - * @param string|null $event_type The type of event: SellerDealComplete. - * - * @return self - */ - public function setEventType($event_type) - { - $this->container['event_type'] = $event_type; - - return $this; - } - /** - * Gets fee_type - * - * @return string|null - */ - public function getFeeType() - { - return $this->container['fee_type']; - } - - /** - * Sets fee_type - * - * @param string|null $fee_type The type of fee: RunLightningDealFee. - * - * @return self - */ - public function setFeeType($fee_type) - { - $this->container['fee_type'] = $fee_type; - - return $this; - } - /** - * Gets fee_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getFeeAmount() - { - return $this->container['fee_amount']; - } - - /** - * Sets fee_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $fee_amount fee_amount - * - * @return self - */ - public function setFeeAmount($fee_amount) - { - $this->container['fee_amount'] = $fee_amount; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets total_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - $this->container['total_amount'] = $total_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.php b/lib/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.php deleted file mode 100644 index e2d24797b..000000000 --- a/lib/Model/FinancesV0/SellerReviewEnrollmentPaymentEvent.php +++ /dev/null @@ -1,307 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerReviewEnrollmentPaymentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerReviewEnrollmentPaymentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'enrollment_id' => 'string', - 'parent_asin' => 'string', - 'fee_component' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent', - 'charge_component' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent', - 'total_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'enrollment_id' => null, - 'parent_asin' => null, - 'fee_component' => null, - 'charge_component' => null, - 'total_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'enrollment_id' => 'EnrollmentId', - 'parent_asin' => 'ParentASIN', - 'fee_component' => 'FeeComponent', - 'charge_component' => 'ChargeComponent', - 'total_amount' => 'TotalAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'enrollment_id' => 'setEnrollmentId', - 'parent_asin' => 'setParentAsin', - 'fee_component' => 'setFeeComponent', - 'charge_component' => 'setChargeComponent', - 'total_amount' => 'setTotalAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'enrollment_id' => 'getEnrollmentId', - 'parent_asin' => 'getParentAsin', - 'fee_component' => 'getFeeComponent', - 'charge_component' => 'getChargeComponent', - 'total_amount' => 'getTotalAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['enrollment_id'] = $data['enrollment_id'] ?? null; - $this->container['parent_asin'] = $data['parent_asin'] ?? null; - $this->container['fee_component'] = $data['fee_component'] ?? null; - $this->container['charge_component'] = $data['charge_component'] ?? null; - $this->container['total_amount'] = $data['total_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets enrollment_id - * - * @return string|null - */ - public function getEnrollmentId() - { - return $this->container['enrollment_id']; - } - - /** - * Sets enrollment_id - * - * @param string|null $enrollment_id An enrollment identifier. - * - * @return self - */ - public function setEnrollmentId($enrollment_id) - { - $this->container['enrollment_id'] = $enrollment_id; - - return $this; - } - /** - * Gets parent_asin - * - * @return string|null - */ - public function getParentAsin() - { - return $this->container['parent_asin']; - } - - /** - * Sets parent_asin - * - * @param string|null $parent_asin The Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program. - * - * @return self - */ - public function setParentAsin($parent_asin) - { - $this->container['parent_asin'] = $parent_asin; - - return $this; - } - /** - * Gets fee_component - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent|null - */ - public function getFeeComponent() - { - return $this->container['fee_component']; - } - - /** - * Sets fee_component - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent|null $fee_component fee_component - * - * @return self - */ - public function setFeeComponent($fee_component) - { - $this->container['fee_component'] = $fee_component; - - return $this; - } - /** - * Gets charge_component - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null - */ - public function getChargeComponent() - { - return $this->container['charge_component']; - } - - /** - * Sets charge_component - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent|null $charge_component charge_component - * - * @return self - */ - public function setChargeComponent($charge_component) - { - $this->container['charge_component'] = $charge_component; - - return $this; - } - /** - * Gets total_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTotalAmount() - { - return $this->container['total_amount']; - } - - /** - * Sets total_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $total_amount total_amount - * - * @return self - */ - public function setTotalAmount($total_amount) - { - $this->container['total_amount'] = $total_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ServiceFeeEvent.php b/lib/Model/FinancesV0/ServiceFeeEvent.php deleted file mode 100644 index 659f7e0a6..000000000 --- a/lib/Model/FinancesV0/ServiceFeeEvent.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceFeeEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceFeeEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'fee_reason' => 'string', - 'fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'seller_sku' => 'string', - 'fn_sku' => 'string', - 'fee_description' => 'string', - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'fee_reason' => null, - 'fee_list' => null, - 'seller_sku' => null, - 'fn_sku' => null, - 'fee_description' => null, - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'fee_reason' => 'FeeReason', - 'fee_list' => 'FeeList', - 'seller_sku' => 'SellerSKU', - 'fn_sku' => 'FnSKU', - 'fee_description' => 'FeeDescription', - 'asin' => 'ASIN' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'fee_reason' => 'setFeeReason', - 'fee_list' => 'setFeeList', - 'seller_sku' => 'setSellerSku', - 'fn_sku' => 'setFnSku', - 'fee_description' => 'setFeeDescription', - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'fee_reason' => 'getFeeReason', - 'fee_list' => 'getFeeList', - 'seller_sku' => 'getSellerSku', - 'fn_sku' => 'getFnSku', - 'fee_description' => 'getFeeDescription', - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['fee_reason'] = $data['fee_reason'] ?? null; - $this->container['fee_list'] = $data['fee_list'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['fn_sku'] = $data['fn_sku'] ?? null; - $this->container['fee_description'] = $data['fee_description'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets fee_reason - * - * @return string|null - */ - public function getFeeReason() - { - return $this->container['fee_reason']; - } - - /** - * Sets fee_reason - * - * @param string|null $fee_reason A short description of the service fee reason. - * - * @return self - */ - public function setFeeReason($fee_reason) - { - $this->container['fee_reason'] = $fee_reason; - - return $this; - } - /** - * Gets fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getFeeList() - { - return $this->container['fee_list']; - } - - /** - * Sets fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $fee_list A list of fee component information. - * - * @return self - */ - public function setFeeList($fee_list) - { - $this->container['fee_list'] = $fee_list; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets fn_sku - * - * @return string|null - */ - public function getFnSku() - { - return $this->container['fn_sku']; - } - - /** - * Sets fn_sku - * - * @param string|null $fn_sku A unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center. - * - * @return self - */ - public function setFnSku($fn_sku) - { - $this->container['fn_sku'] = $fn_sku; - - return $this; - } - /** - * Gets fee_description - * - * @return string|null - */ - public function getFeeDescription() - { - return $this->container['fee_description']; - } - - /** - * Sets fee_description - * - * @param string|null $fee_description A short description of the service fee event. - * - * @return self - */ - public function setFeeDescription($fee_description) - { - $this->container['fee_description'] = $fee_description; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ShipmentEvent.php b/lib/Model/FinancesV0/ShipmentEvent.php deleted file mode 100644 index 3c3b4b93d..000000000 --- a/lib/Model/FinancesV0/ShipmentEvent.php +++ /dev/null @@ -1,510 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'seller_order_id' => 'string', - 'marketplace_name' => 'string', - 'order_charge_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'order_charge_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'shipment_fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'shipment_fee_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'order_fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'order_fee_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'direct_payment_list' => '\SellingPartnerApi\Model\FinancesV0\DirectPayment[]', - 'posted_date' => 'string', - 'shipment_item_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentItem[]', - 'shipment_item_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\ShipmentItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'seller_order_id' => null, - 'marketplace_name' => null, - 'order_charge_list' => null, - 'order_charge_adjustment_list' => null, - 'shipment_fee_list' => null, - 'shipment_fee_adjustment_list' => null, - 'order_fee_list' => null, - 'order_fee_adjustment_list' => null, - 'direct_payment_list' => null, - 'posted_date' => null, - 'shipment_item_list' => null, - 'shipment_item_adjustment_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'seller_order_id' => 'SellerOrderId', - 'marketplace_name' => 'MarketplaceName', - 'order_charge_list' => 'OrderChargeList', - 'order_charge_adjustment_list' => 'OrderChargeAdjustmentList', - 'shipment_fee_list' => 'ShipmentFeeList', - 'shipment_fee_adjustment_list' => 'ShipmentFeeAdjustmentList', - 'order_fee_list' => 'OrderFeeList', - 'order_fee_adjustment_list' => 'OrderFeeAdjustmentList', - 'direct_payment_list' => 'DirectPaymentList', - 'posted_date' => 'PostedDate', - 'shipment_item_list' => 'ShipmentItemList', - 'shipment_item_adjustment_list' => 'ShipmentItemAdjustmentList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'seller_order_id' => 'setSellerOrderId', - 'marketplace_name' => 'setMarketplaceName', - 'order_charge_list' => 'setOrderChargeList', - 'order_charge_adjustment_list' => 'setOrderChargeAdjustmentList', - 'shipment_fee_list' => 'setShipmentFeeList', - 'shipment_fee_adjustment_list' => 'setShipmentFeeAdjustmentList', - 'order_fee_list' => 'setOrderFeeList', - 'order_fee_adjustment_list' => 'setOrderFeeAdjustmentList', - 'direct_payment_list' => 'setDirectPaymentList', - 'posted_date' => 'setPostedDate', - 'shipment_item_list' => 'setShipmentItemList', - 'shipment_item_adjustment_list' => 'setShipmentItemAdjustmentList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'seller_order_id' => 'getSellerOrderId', - 'marketplace_name' => 'getMarketplaceName', - 'order_charge_list' => 'getOrderChargeList', - 'order_charge_adjustment_list' => 'getOrderChargeAdjustmentList', - 'shipment_fee_list' => 'getShipmentFeeList', - 'shipment_fee_adjustment_list' => 'getShipmentFeeAdjustmentList', - 'order_fee_list' => 'getOrderFeeList', - 'order_fee_adjustment_list' => 'getOrderFeeAdjustmentList', - 'direct_payment_list' => 'getDirectPaymentList', - 'posted_date' => 'getPostedDate', - 'shipment_item_list' => 'getShipmentItemList', - 'shipment_item_adjustment_list' => 'getShipmentItemAdjustmentList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['marketplace_name'] = $data['marketplace_name'] ?? null; - $this->container['order_charge_list'] = $data['order_charge_list'] ?? null; - $this->container['order_charge_adjustment_list'] = $data['order_charge_adjustment_list'] ?? null; - $this->container['shipment_fee_list'] = $data['shipment_fee_list'] ?? null; - $this->container['shipment_fee_adjustment_list'] = $data['shipment_fee_adjustment_list'] ?? null; - $this->container['order_fee_list'] = $data['order_fee_list'] ?? null; - $this->container['order_fee_adjustment_list'] = $data['order_fee_adjustment_list'] ?? null; - $this->container['direct_payment_list'] = $data['direct_payment_list'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['shipment_item_list'] = $data['shipment_item_list'] ?? null; - $this->container['shipment_item_adjustment_list'] = $data['shipment_item_adjustment_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id A seller-defined identifier for an order. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets marketplace_name - * - * @return string|null - */ - public function getMarketplaceName() - { - return $this->container['marketplace_name']; - } - - /** - * Sets marketplace_name - * - * @param string|null $marketplace_name The name of the marketplace where the event occurred. - * - * @return self - */ - public function setMarketplaceName($marketplace_name) - { - $this->container['marketplace_name'] = $marketplace_name; - - return $this; - } - /** - * Gets order_charge_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getOrderChargeList() - { - return $this->container['order_charge_list']; - } - - /** - * Sets order_charge_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $order_charge_list A list of charge information on the seller's account. - * - * @return self - */ - public function setOrderChargeList($order_charge_list) - { - $this->container['order_charge_list'] = $order_charge_list; - - return $this; - } - /** - * Gets order_charge_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getOrderChargeAdjustmentList() - { - return $this->container['order_charge_adjustment_list']; - } - - /** - * Sets order_charge_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $order_charge_adjustment_list A list of charge information on the seller's account. - * - * @return self - */ - public function setOrderChargeAdjustmentList($order_charge_adjustment_list) - { - $this->container['order_charge_adjustment_list'] = $order_charge_adjustment_list; - - return $this; - } - /** - * Gets shipment_fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getShipmentFeeList() - { - return $this->container['shipment_fee_list']; - } - - /** - * Sets shipment_fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $shipment_fee_list A list of fee component information. - * - * @return self - */ - public function setShipmentFeeList($shipment_fee_list) - { - $this->container['shipment_fee_list'] = $shipment_fee_list; - - return $this; - } - /** - * Gets shipment_fee_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getShipmentFeeAdjustmentList() - { - return $this->container['shipment_fee_adjustment_list']; - } - - /** - * Sets shipment_fee_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $shipment_fee_adjustment_list A list of fee component information. - * - * @return self - */ - public function setShipmentFeeAdjustmentList($shipment_fee_adjustment_list) - { - $this->container['shipment_fee_adjustment_list'] = $shipment_fee_adjustment_list; - - return $this; - } - /** - * Gets order_fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getOrderFeeList() - { - return $this->container['order_fee_list']; - } - - /** - * Sets order_fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $order_fee_list A list of fee component information. - * - * @return self - */ - public function setOrderFeeList($order_fee_list) - { - $this->container['order_fee_list'] = $order_fee_list; - - return $this; - } - /** - * Gets order_fee_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getOrderFeeAdjustmentList() - { - return $this->container['order_fee_adjustment_list']; - } - - /** - * Sets order_fee_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $order_fee_adjustment_list A list of fee component information. - * - * @return self - */ - public function setOrderFeeAdjustmentList($order_fee_adjustment_list) - { - $this->container['order_fee_adjustment_list'] = $order_fee_adjustment_list; - - return $this; - } - /** - * Gets direct_payment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\DirectPayment[]|null - */ - public function getDirectPaymentList() - { - return $this->container['direct_payment_list']; - } - - /** - * Sets direct_payment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\DirectPayment[]|null $direct_payment_list A list of direct payment information. - * - * @return self - */ - public function setDirectPaymentList($direct_payment_list) - { - $this->container['direct_payment_list'] = $direct_payment_list; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets shipment_item_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentItem[]|null - */ - public function getShipmentItemList() - { - return $this->container['shipment_item_list']; - } - - /** - * Sets shipment_item_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentItem[]|null $shipment_item_list A list of shipment items. - * - * @return self - */ - public function setShipmentItemList($shipment_item_list) - { - $this->container['shipment_item_list'] = $shipment_item_list; - - return $this; - } - /** - * Gets shipment_item_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ShipmentItem[]|null - */ - public function getShipmentItemAdjustmentList() - { - return $this->container['shipment_item_adjustment_list']; - } - - /** - * Sets shipment_item_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ShipmentItem[]|null $shipment_item_adjustment_list A list of shipment items. - * - * @return self - */ - public function setShipmentItemAdjustmentList($shipment_item_adjustment_list) - { - $this->container['shipment_item_adjustment_list'] = $shipment_item_adjustment_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ShipmentItem.php b/lib/Model/FinancesV0/ShipmentItem.php deleted file mode 100644 index aadeeec08..000000000 --- a/lib/Model/FinancesV0/ShipmentItem.php +++ /dev/null @@ -1,510 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string', - 'order_item_id' => 'string', - 'order_adjustment_item_id' => 'string', - 'quantity_shipped' => 'int', - 'item_charge_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'item_charge_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]', - 'item_fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'item_fee_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]', - 'item_tax_withheld_list' => '\SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]', - 'promotion_list' => '\SellingPartnerApi\Model\FinancesV0\Promotion[]', - 'promotion_adjustment_list' => '\SellingPartnerApi\Model\FinancesV0\Promotion[]', - 'cost_of_points_granted' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'cost_of_points_returned' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null, - 'order_item_id' => null, - 'order_adjustment_item_id' => null, - 'quantity_shipped' => 'int32', - 'item_charge_list' => null, - 'item_charge_adjustment_list' => null, - 'item_fee_list' => null, - 'item_fee_adjustment_list' => null, - 'item_tax_withheld_list' => null, - 'promotion_list' => null, - 'promotion_adjustment_list' => null, - 'cost_of_points_granted' => null, - 'cost_of_points_returned' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU', - 'order_item_id' => 'OrderItemId', - 'order_adjustment_item_id' => 'OrderAdjustmentItemId', - 'quantity_shipped' => 'QuantityShipped', - 'item_charge_list' => 'ItemChargeList', - 'item_charge_adjustment_list' => 'ItemChargeAdjustmentList', - 'item_fee_list' => 'ItemFeeList', - 'item_fee_adjustment_list' => 'ItemFeeAdjustmentList', - 'item_tax_withheld_list' => 'ItemTaxWithheldList', - 'promotion_list' => 'PromotionList', - 'promotion_adjustment_list' => 'PromotionAdjustmentList', - 'cost_of_points_granted' => 'CostOfPointsGranted', - 'cost_of_points_returned' => 'CostOfPointsReturned' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku', - 'order_item_id' => 'setOrderItemId', - 'order_adjustment_item_id' => 'setOrderAdjustmentItemId', - 'quantity_shipped' => 'setQuantityShipped', - 'item_charge_list' => 'setItemChargeList', - 'item_charge_adjustment_list' => 'setItemChargeAdjustmentList', - 'item_fee_list' => 'setItemFeeList', - 'item_fee_adjustment_list' => 'setItemFeeAdjustmentList', - 'item_tax_withheld_list' => 'setItemTaxWithheldList', - 'promotion_list' => 'setPromotionList', - 'promotion_adjustment_list' => 'setPromotionAdjustmentList', - 'cost_of_points_granted' => 'setCostOfPointsGranted', - 'cost_of_points_returned' => 'setCostOfPointsReturned' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku', - 'order_item_id' => 'getOrderItemId', - 'order_adjustment_item_id' => 'getOrderAdjustmentItemId', - 'quantity_shipped' => 'getQuantityShipped', - 'item_charge_list' => 'getItemChargeList', - 'item_charge_adjustment_list' => 'getItemChargeAdjustmentList', - 'item_fee_list' => 'getItemFeeList', - 'item_fee_adjustment_list' => 'getItemFeeAdjustmentList', - 'item_tax_withheld_list' => 'getItemTaxWithheldList', - 'promotion_list' => 'getPromotionList', - 'promotion_adjustment_list' => 'getPromotionAdjustmentList', - 'cost_of_points_granted' => 'getCostOfPointsGranted', - 'cost_of_points_returned' => 'getCostOfPointsReturned' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['order_adjustment_item_id'] = $data['order_adjustment_item_id'] ?? null; - $this->container['quantity_shipped'] = $data['quantity_shipped'] ?? null; - $this->container['item_charge_list'] = $data['item_charge_list'] ?? null; - $this->container['item_charge_adjustment_list'] = $data['item_charge_adjustment_list'] ?? null; - $this->container['item_fee_list'] = $data['item_fee_list'] ?? null; - $this->container['item_fee_adjustment_list'] = $data['item_fee_adjustment_list'] ?? null; - $this->container['item_tax_withheld_list'] = $data['item_tax_withheld_list'] ?? null; - $this->container['promotion_list'] = $data['promotion_list'] ?? null; - $this->container['promotion_adjustment_list'] = $data['promotion_adjustment_list'] ?? null; - $this->container['cost_of_points_granted'] = $data['cost_of_points_granted'] ?? null; - $this->container['cost_of_points_returned'] = $data['cost_of_points_returned'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets order_item_id - * - * @return string|null - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string|null $order_item_id An Amazon-defined order item identifier. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets order_adjustment_item_id - * - * @return string|null - */ - public function getOrderAdjustmentItemId() - { - return $this->container['order_adjustment_item_id']; - } - - /** - * Sets order_adjustment_item_id - * - * @param string|null $order_adjustment_item_id An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events. - * - * @return self - */ - public function setOrderAdjustmentItemId($order_adjustment_item_id) - { - $this->container['order_adjustment_item_id'] = $order_adjustment_item_id; - - return $this; - } - /** - * Gets quantity_shipped - * - * @return int|null - */ - public function getQuantityShipped() - { - return $this->container['quantity_shipped']; - } - - /** - * Sets quantity_shipped - * - * @param int|null $quantity_shipped The number of items shipped. - * - * @return self - */ - public function setQuantityShipped($quantity_shipped) - { - $this->container['quantity_shipped'] = $quantity_shipped; - - return $this; - } - /** - * Gets item_charge_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getItemChargeList() - { - return $this->container['item_charge_list']; - } - - /** - * Sets item_charge_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $item_charge_list A list of charge information on the seller's account. - * - * @return self - */ - public function setItemChargeList($item_charge_list) - { - $this->container['item_charge_list'] = $item_charge_list; - - return $this; - } - /** - * Gets item_charge_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getItemChargeAdjustmentList() - { - return $this->container['item_charge_adjustment_list']; - } - - /** - * Sets item_charge_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $item_charge_adjustment_list A list of charge information on the seller's account. - * - * @return self - */ - public function setItemChargeAdjustmentList($item_charge_adjustment_list) - { - $this->container['item_charge_adjustment_list'] = $item_charge_adjustment_list; - - return $this; - } - /** - * Gets item_fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getItemFeeList() - { - return $this->container['item_fee_list']; - } - - /** - * Sets item_fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $item_fee_list A list of fee component information. - * - * @return self - */ - public function setItemFeeList($item_fee_list) - { - $this->container['item_fee_list'] = $item_fee_list; - - return $this; - } - /** - * Gets item_fee_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getItemFeeAdjustmentList() - { - return $this->container['item_fee_adjustment_list']; - } - - /** - * Sets item_fee_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $item_fee_adjustment_list A list of fee component information. - * - * @return self - */ - public function setItemFeeAdjustmentList($item_fee_adjustment_list) - { - $this->container['item_fee_adjustment_list'] = $item_fee_adjustment_list; - - return $this; - } - /** - * Gets item_tax_withheld_list - * - * @return \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null - */ - public function getItemTaxWithheldList() - { - return $this->container['item_tax_withheld_list']; - } - - /** - * Sets item_tax_withheld_list - * - * @param \SellingPartnerApi\Model\FinancesV0\TaxWithheldComponent[]|null $item_tax_withheld_list A list of information about taxes withheld. - * - * @return self - */ - public function setItemTaxWithheldList($item_tax_withheld_list) - { - $this->container['item_tax_withheld_list'] = $item_tax_withheld_list; - - return $this; - } - /** - * Gets promotion_list - * - * @return \SellingPartnerApi\Model\FinancesV0\Promotion[]|null - */ - public function getPromotionList() - { - return $this->container['promotion_list']; - } - - /** - * Sets promotion_list - * - * @param \SellingPartnerApi\Model\FinancesV0\Promotion[]|null $promotion_list A list of promotions. - * - * @return self - */ - public function setPromotionList($promotion_list) - { - $this->container['promotion_list'] = $promotion_list; - - return $this; - } - /** - * Gets promotion_adjustment_list - * - * @return \SellingPartnerApi\Model\FinancesV0\Promotion[]|null - */ - public function getPromotionAdjustmentList() - { - return $this->container['promotion_adjustment_list']; - } - - /** - * Sets promotion_adjustment_list - * - * @param \SellingPartnerApi\Model\FinancesV0\Promotion[]|null $promotion_adjustment_list A list of promotions. - * - * @return self - */ - public function setPromotionAdjustmentList($promotion_adjustment_list) - { - $this->container['promotion_adjustment_list'] = $promotion_adjustment_list; - - return $this; - } - /** - * Gets cost_of_points_granted - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getCostOfPointsGranted() - { - return $this->container['cost_of_points_granted']; - } - - /** - * Sets cost_of_points_granted - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $cost_of_points_granted cost_of_points_granted - * - * @return self - */ - public function setCostOfPointsGranted($cost_of_points_granted) - { - $this->container['cost_of_points_granted'] = $cost_of_points_granted; - - return $this; - } - /** - * Gets cost_of_points_returned - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getCostOfPointsReturned() - { - return $this->container['cost_of_points_returned']; - } - - /** - * Sets cost_of_points_returned - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $cost_of_points_returned cost_of_points_returned - * - * @return self - */ - public function setCostOfPointsReturned($cost_of_points_returned) - { - $this->container['cost_of_points_returned'] = $cost_of_points_returned; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/SolutionProviderCreditEvent.php b/lib/Model/FinancesV0/SolutionProviderCreditEvent.php deleted file mode 100644 index 556339fe7..000000000 --- a/lib/Model/FinancesV0/SolutionProviderCreditEvent.php +++ /dev/null @@ -1,423 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SolutionProviderCreditEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SolutionProviderCreditEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'provider_transaction_type' => 'string', - 'seller_order_id' => 'string', - 'marketplace_id' => 'string', - 'marketplace_country_code' => 'string', - 'seller_id' => 'string', - 'seller_store_name' => 'string', - 'provider_id' => 'string', - 'provider_store_name' => 'string', - 'transaction_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'transaction_creation_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'provider_transaction_type' => null, - 'seller_order_id' => null, - 'marketplace_id' => null, - 'marketplace_country_code' => null, - 'seller_id' => null, - 'seller_store_name' => null, - 'provider_id' => null, - 'provider_store_name' => null, - 'transaction_amount' => null, - 'transaction_creation_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'provider_transaction_type' => 'ProviderTransactionType', - 'seller_order_id' => 'SellerOrderId', - 'marketplace_id' => 'MarketplaceId', - 'marketplace_country_code' => 'MarketplaceCountryCode', - 'seller_id' => 'SellerId', - 'seller_store_name' => 'SellerStoreName', - 'provider_id' => 'ProviderId', - 'provider_store_name' => 'ProviderStoreName', - 'transaction_amount' => 'TransactionAmount', - 'transaction_creation_date' => 'TransactionCreationDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'provider_transaction_type' => 'setProviderTransactionType', - 'seller_order_id' => 'setSellerOrderId', - 'marketplace_id' => 'setMarketplaceId', - 'marketplace_country_code' => 'setMarketplaceCountryCode', - 'seller_id' => 'setSellerId', - 'seller_store_name' => 'setSellerStoreName', - 'provider_id' => 'setProviderId', - 'provider_store_name' => 'setProviderStoreName', - 'transaction_amount' => 'setTransactionAmount', - 'transaction_creation_date' => 'setTransactionCreationDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'provider_transaction_type' => 'getProviderTransactionType', - 'seller_order_id' => 'getSellerOrderId', - 'marketplace_id' => 'getMarketplaceId', - 'marketplace_country_code' => 'getMarketplaceCountryCode', - 'seller_id' => 'getSellerId', - 'seller_store_name' => 'getSellerStoreName', - 'provider_id' => 'getProviderId', - 'provider_store_name' => 'getProviderStoreName', - 'transaction_amount' => 'getTransactionAmount', - 'transaction_creation_date' => 'getTransactionCreationDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['provider_transaction_type'] = $data['provider_transaction_type'] ?? null; - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['marketplace_country_code'] = $data['marketplace_country_code'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['seller_store_name'] = $data['seller_store_name'] ?? null; - $this->container['provider_id'] = $data['provider_id'] ?? null; - $this->container['provider_store_name'] = $data['provider_store_name'] ?? null; - $this->container['transaction_amount'] = $data['transaction_amount'] ?? null; - $this->container['transaction_creation_date'] = $data['transaction_creation_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets provider_transaction_type - * - * @return string|null - */ - public function getProviderTransactionType() - { - return $this->container['provider_transaction_type']; - } - - /** - * Sets provider_transaction_type - * - * @param string|null $provider_transaction_type The transaction type. - * - * @return self - */ - public function setProviderTransactionType($provider_transaction_type) - { - $this->container['provider_transaction_type'] = $provider_transaction_type; - - return $this; - } - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id A seller-defined identifier for an order. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The identifier of the marketplace where the order was placed. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets marketplace_country_code - * - * @return string|null - */ - public function getMarketplaceCountryCode() - { - return $this->container['marketplace_country_code']; - } - - /** - * Sets marketplace_country_code - * - * @param string|null $marketplace_country_code The two-letter country code of the country associated with the marketplace where the order was placed. - * - * @return self - */ - public function setMarketplaceCountryCode($marketplace_country_code) - { - $this->container['marketplace_country_code'] = $marketplace_country_code; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The Amazon-defined identifier of the seller. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets seller_store_name - * - * @return string|null - */ - public function getSellerStoreName() - { - return $this->container['seller_store_name']; - } - - /** - * Sets seller_store_name - * - * @param string|null $seller_store_name The store name where the payment event occurred. - * - * @return self - */ - public function setSellerStoreName($seller_store_name) - { - $this->container['seller_store_name'] = $seller_store_name; - - return $this; - } - /** - * Gets provider_id - * - * @return string|null - */ - public function getProviderId() - { - return $this->container['provider_id']; - } - - /** - * Sets provider_id - * - * @param string|null $provider_id The Amazon-defined identifier of the solution provider. - * - * @return self - */ - public function setProviderId($provider_id) - { - $this->container['provider_id'] = $provider_id; - - return $this; - } - /** - * Gets provider_store_name - * - * @return string|null - */ - public function getProviderStoreName() - { - return $this->container['provider_store_name']; - } - - /** - * Sets provider_store_name - * - * @param string|null $provider_store_name The store name where the payment event occurred. - * - * @return self - */ - public function setProviderStoreName($provider_store_name) - { - $this->container['provider_store_name'] = $provider_store_name; - - return $this; - } - /** - * Gets transaction_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransactionAmount() - { - return $this->container['transaction_amount']; - } - - /** - * Sets transaction_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transaction_amount transaction_amount - * - * @return self - */ - public function setTransactionAmount($transaction_amount) - { - $this->container['transaction_amount'] = $transaction_amount; - - return $this; - } - /** - * Gets transaction_creation_date - * - * @return string|null - */ - public function getTransactionCreationDate() - { - return $this->container['transaction_creation_date']; - } - - /** - * Sets transaction_creation_date - * - * @param string|null $transaction_creation_date A date string in ISO 8601 format. - * - * @return self - */ - public function setTransactionCreationDate($transaction_creation_date) - { - $this->container['transaction_creation_date'] = $transaction_creation_date; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/TDSReimbursementEvent.php b/lib/Model/FinancesV0/TDSReimbursementEvent.php deleted file mode 100644 index 2ecde7eea..000000000 --- a/lib/Model/FinancesV0/TDSReimbursementEvent.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TDSReimbursementEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TDSReimbursementEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'tds_order_id' => 'string', - 'reimbursed_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'tds_order_id' => null, - 'reimbursed_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'tds_order_id' => 'TDSOrderId', - 'reimbursed_amount' => 'ReimbursedAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'tds_order_id' => 'setTdsOrderId', - 'reimbursed_amount' => 'setReimbursedAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'tds_order_id' => 'getTdsOrderId', - 'reimbursed_amount' => 'getReimbursedAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['tds_order_id'] = $data['tds_order_id'] ?? null; - $this->container['reimbursed_amount'] = $data['reimbursed_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets tds_order_id - * - * @return string|null - */ - public function getTdsOrderId() - { - return $this->container['tds_order_id']; - } - - /** - * Sets tds_order_id - * - * @param string|null $tds_order_id The Tax-Deducted-at-Source (TDS) identifier. - * - * @return self - */ - public function setTdsOrderId($tds_order_id) - { - $this->container['tds_order_id'] = $tds_order_id; - - return $this; - } - /** - * Gets reimbursed_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getReimbursedAmount() - { - return $this->container['reimbursed_amount']; - } - - /** - * Sets reimbursed_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $reimbursed_amount reimbursed_amount - * - * @return self - */ - public function setReimbursedAmount($reimbursed_amount) - { - $this->container['reimbursed_amount'] = $reimbursed_amount; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/TaxWithheldComponent.php b/lib/Model/FinancesV0/TaxWithheldComponent.php deleted file mode 100644 index 4089995c2..000000000 --- a/lib/Model/FinancesV0/TaxWithheldComponent.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxWithheldComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxWithheldComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_collection_model' => 'string', - 'taxes_withheld' => '\SellingPartnerApi\Model\FinancesV0\ChargeComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_collection_model' => null, - 'taxes_withheld' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_collection_model' => 'TaxCollectionModel', - 'taxes_withheld' => 'TaxesWithheld' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_collection_model' => 'setTaxCollectionModel', - 'taxes_withheld' => 'setTaxesWithheld' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_collection_model' => 'getTaxCollectionModel', - 'taxes_withheld' => 'getTaxesWithheld' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_collection_model'] = $data['tax_collection_model'] ?? null; - $this->container['taxes_withheld'] = $data['taxes_withheld'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets tax_collection_model - * - * @return string|null - */ - public function getTaxCollectionModel() - { - return $this->container['tax_collection_model']; - } - - /** - * Sets tax_collection_model - * - * @param string|null $tax_collection_model The tax collection model applied to the item. - * Possible values: - * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. - * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. - * - * @return self - */ - public function setTaxCollectionModel($tax_collection_model) - { - $this->container['tax_collection_model'] = $tax_collection_model; - - return $this; - } - /** - * Gets taxes_withheld - * - * @return \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null - */ - public function getTaxesWithheld() - { - return $this->container['taxes_withheld']; - } - - /** - * Sets taxes_withheld - * - * @param \SellingPartnerApi\Model\FinancesV0\ChargeComponent[]|null $taxes_withheld A list of charge information on the seller's account. - * - * @return self - */ - public function setTaxesWithheld($taxes_withheld) - { - $this->container['taxes_withheld'] = $taxes_withheld; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/TaxWithholdingEvent.php b/lib/Model/FinancesV0/TaxWithholdingEvent.php deleted file mode 100644 index 978e0b671..000000000 --- a/lib/Model/FinancesV0/TaxWithholdingEvent.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxWithholdingEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxWithholdingEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'posted_date' => 'string', - 'base_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'withheld_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency', - 'tax_withholding_period' => '\SellingPartnerApi\Model\FinancesV0\TaxWithholdingPeriod' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'posted_date' => null, - 'base_amount' => null, - 'withheld_amount' => null, - 'tax_withholding_period' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'posted_date' => 'PostedDate', - 'base_amount' => 'BaseAmount', - 'withheld_amount' => 'WithheldAmount', - 'tax_withholding_period' => 'TaxWithholdingPeriod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'posted_date' => 'setPostedDate', - 'base_amount' => 'setBaseAmount', - 'withheld_amount' => 'setWithheldAmount', - 'tax_withholding_period' => 'setTaxWithholdingPeriod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'posted_date' => 'getPostedDate', - 'base_amount' => 'getBaseAmount', - 'withheld_amount' => 'getWithheldAmount', - 'tax_withholding_period' => 'getTaxWithholdingPeriod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['base_amount'] = $data['base_amount'] ?? null; - $this->container['withheld_amount'] = $data['withheld_amount'] ?? null; - $this->container['tax_withholding_period'] = $data['tax_withholding_period'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets base_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getBaseAmount() - { - return $this->container['base_amount']; - } - - /** - * Sets base_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $base_amount base_amount - * - * @return self - */ - public function setBaseAmount($base_amount) - { - $this->container['base_amount'] = $base_amount; - - return $this; - } - /** - * Gets withheld_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getWithheldAmount() - { - return $this->container['withheld_amount']; - } - - /** - * Sets withheld_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $withheld_amount withheld_amount - * - * @return self - */ - public function setWithheldAmount($withheld_amount) - { - $this->container['withheld_amount'] = $withheld_amount; - - return $this; - } - /** - * Gets tax_withholding_period - * - * @return \SellingPartnerApi\Model\FinancesV0\TaxWithholdingPeriod|null - */ - public function getTaxWithholdingPeriod() - { - return $this->container['tax_withholding_period']; - } - - /** - * Sets tax_withholding_period - * - * @param \SellingPartnerApi\Model\FinancesV0\TaxWithholdingPeriod|null $tax_withholding_period tax_withholding_period - * - * @return self - */ - public function setTaxWithholdingPeriod($tax_withholding_period) - { - $this->container['tax_withholding_period'] = $tax_withholding_period; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/TaxWithholdingPeriod.php b/lib/Model/FinancesV0/TaxWithholdingPeriod.php deleted file mode 100644 index dd9dc804b..000000000 --- a/lib/Model/FinancesV0/TaxWithholdingPeriod.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxWithholdingPeriod extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxWithholdingPeriod'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_date' => 'string', - 'end_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_date' => null, - 'end_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_date' => 'StartDate', - 'end_date' => 'EndDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_date'] = $data['start_date'] ?? null; - $this->container['end_date'] = $data['end_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_date - * - * @return string|null - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param string|null $start_date A date string in ISO 8601 format. - * - * @return self - */ - public function setStartDate($start_date) - { - $this->container['start_date'] = $start_date; - - return $this; - } - /** - * Gets end_date - * - * @return string|null - */ - public function getEndDate() - { - return $this->container['end_date']; - } - - /** - * Sets end_date - * - * @param string|null $end_date A date string in ISO 8601 format. - * - * @return self - */ - public function setEndDate($end_date) - { - $this->container['end_date'] = $end_date; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/TrialShipmentEvent.php b/lib/Model/FinancesV0/TrialShipmentEvent.php deleted file mode 100644 index aaec2f637..000000000 --- a/lib/Model/FinancesV0/TrialShipmentEvent.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TrialShipmentEvent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrialShipmentEvent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'financial_event_group_id' => 'string', - 'posted_date' => 'string', - 'sku' => 'string', - 'fee_list' => '\SellingPartnerApi\Model\FinancesV0\FeeComponent[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'financial_event_group_id' => null, - 'posted_date' => null, - 'sku' => null, - 'fee_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'financial_event_group_id' => 'FinancialEventGroupId', - 'posted_date' => 'PostedDate', - 'sku' => 'SKU', - 'fee_list' => 'FeeList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'financial_event_group_id' => 'setFinancialEventGroupId', - 'posted_date' => 'setPostedDate', - 'sku' => 'setSku', - 'fee_list' => 'setFeeList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'financial_event_group_id' => 'getFinancialEventGroupId', - 'posted_date' => 'getPostedDate', - 'sku' => 'getSku', - 'fee_list' => 'getFeeList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['financial_event_group_id'] = $data['financial_event_group_id'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['sku'] = $data['sku'] ?? null; - $this->container['fee_list'] = $data['fee_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id An Amazon-defined identifier for an order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets financial_event_group_id - * - * @return string|null - */ - public function getFinancialEventGroupId() - { - return $this->container['financial_event_group_id']; - } - - /** - * Sets financial_event_group_id - * - * @param string|null $financial_event_group_id The identifier of the financial event group. - * - * @return self - */ - public function setFinancialEventGroupId($financial_event_group_id) - { - $this->container['financial_event_group_id'] = $financial_event_group_id; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets sku - * - * @return string|null - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string|null $sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets fee_list - * - * @return \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null - */ - public function getFeeList() - { - return $this->container['fee_list']; - } - - /** - * Sets fee_list - * - * @param \SellingPartnerApi\Model\FinancesV0\FeeComponent[]|null $fee_list A list of fee component information. - * - * @return self - */ - public function setFeeList($fee_list) - { - $this->container['fee_list'] = $fee_list; - - return $this; - } -} - - diff --git a/lib/Model/FinancesV0/ValueAddedServiceChargeEventList.php b/lib/Model/FinancesV0/ValueAddedServiceChargeEventList.php deleted file mode 100644 index 1a88973cb..000000000 --- a/lib/Model/FinancesV0/ValueAddedServiceChargeEventList.php +++ /dev/null @@ -1,250 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ValueAddedServiceChargeEventList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ValueAddedServiceChargeEventList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_type' => 'string', - 'posted_date' => 'string', - 'description' => 'string', - 'transaction_amount' => '\SellingPartnerApi\Model\FinancesV0\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_type' => null, - 'posted_date' => null, - 'description' => null, - 'transaction_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_type' => 'TransactionType', - 'posted_date' => 'PostedDate', - 'description' => 'Description', - 'transaction_amount' => 'TransactionAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_type' => 'setTransactionType', - 'posted_date' => 'setPostedDate', - 'description' => 'setDescription', - 'transaction_amount' => 'setTransactionAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_type' => 'getTransactionType', - 'posted_date' => 'getPostedDate', - 'description' => 'getDescription', - 'transaction_amount' => 'getTransactionAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['posted_date'] = $data['posted_date'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['transaction_amount'] = $data['transaction_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_type - * - * @return string|null - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string|null $transaction_type Indicates the type of transaction. - * Example: 'Other Support Service fees' - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets posted_date - * - * @return string|null - */ - public function getPostedDate() - { - return $this->container['posted_date']; - } - - /** - * Sets posted_date - * - * @param string|null $posted_date A date string in ISO 8601 format. - * - * @return self - */ - public function setPostedDate($posted_date) - { - $this->container['posted_date'] = $posted_date; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description A short description of the service charge event. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets transaction_amount - * - * @return \SellingPartnerApi\Model\FinancesV0\Currency|null - */ - public function getTransactionAmount() - { - return $this->container['transaction_amount']; - } - - /** - * Sets transaction_amount - * - * @param \SellingPartnerApi\Model\FinancesV0\Currency|null $transaction_amount transaction_amount - * - * @return self - */ - public function setTransactionAmount($transaction_amount) - { - $this->container['transaction_amount'] = $transaction_amount; - - return $this; - } -} - - diff --git a/lib/Model/ListingsRestrictionsV20210801/Error.php b/lib/Model/ListingsRestrictionsV20210801/Error.php deleted file mode 100644 index 748205213..000000000 --- a/lib/Model/ListingsRestrictionsV20210801/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ListingsRestrictionsV20210801/Link.php b/lib/Model/ListingsRestrictionsV20210801/Link.php deleted file mode 100644 index c016f60db..000000000 --- a/lib/Model/ListingsRestrictionsV20210801/Link.php +++ /dev/null @@ -1,297 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Link extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Link'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource' => 'string', - 'verb' => 'string', - 'title' => 'string', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource' => 'uri', - 'verb' => null, - 'title' => null, - 'type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource' => 'resource', - 'verb' => 'verb', - 'title' => 'title', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource' => 'setResource', - 'verb' => 'setVerb', - 'title' => 'setTitle', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource' => 'getResource', - 'verb' => 'getVerb', - 'title' => 'getTitle', - 'type' => 'getType' - ]; - - - - const VERB_GET = 'GET'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVerbAllowableValues() - { - $baseVals = [ - self::VERB_GET, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource'] = $data['resource'] ?? null; - $this->container['verb'] = $data['verb'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resource'] === null) { - $invalidProperties[] = "'resource' can't be null"; - } - if ($this->container['verb'] === null) { - $invalidProperties[] = "'verb' can't be null"; - } - $allowedValues = $this->getVerbAllowableValues(); - if ( - !is_null($this->container['verb']) && - !in_array(strtoupper($this->container['verb']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'verb', must be one of '%s'", - $this->container['verb'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets resource - * - * @return string - */ - public function getResource() - { - return $this->container['resource']; - } - - /** - * Sets resource - * - * @param string $resource The URI of the related resource. - * - * @return self - */ - public function setResource($resource) - { - $this->container['resource'] = $resource; - - return $this; - } - /** - * Gets verb - * - * @return string - */ - public function getVerb() - { - return $this->container['verb']; - } - - /** - * Sets verb - * - * @param string $verb The HTTP verb used to interact with the related resource. - * - * @return self - */ - public function setVerb($verb) - { - $allowedValues = $this->getVerbAllowableValues(); - if (!in_array(strtoupper($verb), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'verb', must be one of '%s'", - $verb, - implode("', '", $allowedValues) - ) - ); - } - $this->container['verb'] = $verb; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The title of the related resource. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type The media type of the related resource. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } -} - - diff --git a/lib/Model/ListingsRestrictionsV20210801/Reason.php b/lib/Model/ListingsRestrictionsV20210801/Reason.php deleted file mode 100644 index 0ccef9eb8..000000000 --- a/lib/Model/ListingsRestrictionsV20210801/Reason.php +++ /dev/null @@ -1,269 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Reason extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Reason'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'message' => 'string', - 'reason_code' => 'string', - 'links' => '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Link[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'message' => null, - 'reason_code' => null, - 'links' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'message' => 'message', - 'reason_code' => 'reasonCode', - 'links' => 'links' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'message' => 'setMessage', - 'reason_code' => 'setReasonCode', - 'links' => 'setLinks' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'message' => 'getMessage', - 'reason_code' => 'getReasonCode', - 'links' => 'getLinks' - ]; - - - - const REASON_CODE_APPROVAL_REQUIRED = 'APPROVAL_REQUIRED'; - const REASON_CODE_ASIN_NOT_FOUND = 'ASIN_NOT_FOUND'; - const REASON_CODE_NOT_ELIGIBLE = 'NOT_ELIGIBLE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getReasonCodeAllowableValues() - { - $baseVals = [ - self::REASON_CODE_APPROVAL_REQUIRED, - self::REASON_CODE_ASIN_NOT_FOUND, - self::REASON_CODE_NOT_ELIGIBLE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['message'] = $data['message'] ?? null; - $this->container['reason_code'] = $data['reason_code'] ?? null; - $this->container['links'] = $data['links'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - $allowedValues = $this->getReasonCodeAllowableValues(); - if ( - !is_null($this->container['reason_code']) && - !in_array(strtoupper($this->container['reason_code']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'reason_code', must be one of '%s'", - $this->container['reason_code'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message describing the reason for the restriction. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets reason_code - * - * @return string|null - */ - public function getReasonCode() - { - return $this->container['reason_code']; - } - - /** - * Sets reason_code - * - * @param string|null $reason_code A code indicating why the listing is restricted. - * - * @return self - */ - public function setReasonCode($reason_code) - { - $allowedValues = $this->getReasonCodeAllowableValues(); - if (!is_null($reason_code) &&!in_array(strtoupper($reason_code), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'reason_code', must be one of '%s'", - $reason_code, - implode("', '", $allowedValues) - ) - ); - } - $this->container['reason_code'] = $reason_code; - - return $this; - } - /** - * Gets links - * - * @return \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Link[]|null - */ - public function getLinks() - { - return $this->container['links']; - } - - /** - * Sets links - * - * @param \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Link[]|null $links A list of path forward links that may allow Selling Partners to remove the restriction. - * - * @return self - */ - public function setLinks($links) - { - $this->container['links'] = $links; - - return $this; - } -} - - diff --git a/lib/Model/ListingsRestrictionsV20210801/Restriction.php b/lib/Model/ListingsRestrictionsV20210801/Restriction.php deleted file mode 100644 index 4e1351fca..000000000 --- a/lib/Model/ListingsRestrictionsV20210801/Restriction.php +++ /dev/null @@ -1,289 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Restriction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Restriction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'condition_type' => 'string', - 'reasons' => '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Reason[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'condition_type' => null, - 'reasons' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'condition_type' => 'conditionType', - 'reasons' => 'reasons' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'condition_type' => 'setConditionType', - 'reasons' => 'setReasons' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'condition_type' => 'getConditionType', - 'reasons' => 'getReasons' - ]; - - - - const CONDITION_TYPE_NEW_NEW = 'new_new'; - const CONDITION_TYPE_NEW_OPEN_BOX = 'new_open_box'; - const CONDITION_TYPE_NEW_OEM = 'new_oem'; - const CONDITION_TYPE_REFURBISHED_REFURBISHED = 'refurbished_refurbished'; - const CONDITION_TYPE_USED_LIKE_NEW = 'used_like_new'; - const CONDITION_TYPE_USED_VERY_GOOD = 'used_very_good'; - const CONDITION_TYPE_USED_GOOD = 'used_good'; - const CONDITION_TYPE_USED_ACCEPTABLE = 'used_acceptable'; - const CONDITION_TYPE_COLLECTIBLE_LIKE_NEW = 'collectible_like_new'; - const CONDITION_TYPE_COLLECTIBLE_VERY_GOOD = 'collectible_very_good'; - const CONDITION_TYPE_COLLECTIBLE_GOOD = 'collectible_good'; - const CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE = 'collectible_acceptable'; - const CONDITION_TYPE_CLUB_CLUB = 'club_club'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getConditionTypeAllowableValues() - { - $baseVals = [ - self::CONDITION_TYPE_NEW_NEW, - self::CONDITION_TYPE_NEW_OPEN_BOX, - self::CONDITION_TYPE_NEW_OEM, - self::CONDITION_TYPE_REFURBISHED_REFURBISHED, - self::CONDITION_TYPE_USED_LIKE_NEW, - self::CONDITION_TYPE_USED_VERY_GOOD, - self::CONDITION_TYPE_USED_GOOD, - self::CONDITION_TYPE_USED_ACCEPTABLE, - self::CONDITION_TYPE_COLLECTIBLE_LIKE_NEW, - self::CONDITION_TYPE_COLLECTIBLE_VERY_GOOD, - self::CONDITION_TYPE_COLLECTIBLE_GOOD, - self::CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE, - self::CONDITION_TYPE_CLUB_CLUB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['condition_type'] = $data['condition_type'] ?? null; - $this->container['reasons'] = $data['reasons'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - $allowedValues = $this->getConditionTypeAllowableValues(); - if ( - !is_null($this->container['condition_type']) && - !in_array(strtoupper($this->container['condition_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'condition_type', must be one of '%s'", - $this->container['condition_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Identifies the Amazon marketplace where the restriction is enforced. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets condition_type - * - * @return string|null - */ - public function getConditionType() - { - return $this->container['condition_type']; - } - - /** - * Sets condition_type - * - * @param string|null $condition_type The condition that applies to the restriction. - * - * @return self - */ - public function setConditionType($condition_type) - { - $allowedValues = $this->getConditionTypeAllowableValues(); - if (!is_null($condition_type) &&!in_array(strtoupper($condition_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'condition_type', must be one of '%s'", - $condition_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['condition_type'] = $condition_type; - - return $this; - } - /** - * Gets reasons - * - * @return \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Reason[]|null - */ - public function getReasons() - { - return $this->container['reasons']; - } - - /** - * Sets reasons - * - * @param \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Reason[]|null $reasons A list of reasons for the restriction. - * - * @return self - */ - public function setReasons($reasons) - { - $this->container['reasons'] = $reasons; - - return $this; - } -} - - diff --git a/lib/Model/ListingsRestrictionsV20210801/RestrictionList.php b/lib/Model/ListingsRestrictionsV20210801/RestrictionList.php deleted file mode 100644 index f8824c5a3..000000000 --- a/lib/Model/ListingsRestrictionsV20210801/RestrictionList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RestrictionList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RestrictionList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'restrictions' => '\SellingPartnerApi\Model\ListingsRestrictionsV20210801\Restriction[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'restrictions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'restrictions' => 'restrictions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'restrictions' => 'setRestrictions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'restrictions' => 'getRestrictions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['restrictions'] = $data['restrictions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['restrictions'] === null) { - $invalidProperties[] = "'restrictions' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets restrictions - * - * @return \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Restriction[] - */ - public function getRestrictions() - { - return $this->container['restrictions']; - } - - /** - * Sets restrictions - * - * @param \SellingPartnerApi\Model\ListingsRestrictionsV20210801\Restriction[] $restrictions restrictions - * - * @return self - */ - public function setRestrictions($restrictions) - { - $this->container['restrictions'] = $restrictions; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/Error.php b/lib/Model/ListingsV20200901/Error.php deleted file mode 100644 index 66c330bab..000000000 --- a/lib/Model/ListingsV20200901/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/ErrorList.php b/lib/Model/ListingsV20200901/ErrorList.php deleted file mode 100644 index f48ba518a..000000000 --- a/lib/Model/ListingsV20200901/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ListingsV20200901\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ListingsV20200901\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ListingsV20200901\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/Issue.php b/lib/Model/ListingsV20200901/Issue.php deleted file mode 100644 index ac1714319..000000000 --- a/lib/Model/ListingsV20200901/Issue.php +++ /dev/null @@ -1,304 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Issue extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Issue'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'severity' => 'string', - 'attribute_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'severity' => null, - 'attribute_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'severity' => 'severity', - 'attribute_name' => 'attributeName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'severity' => 'setSeverity', - 'attribute_name' => 'setAttributeName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'severity' => 'getSeverity', - 'attribute_name' => 'getAttributeName' - ]; - - - - const SEVERITY_ERROR = 'ERROR'; - const SEVERITY_WARNING = 'WARNING'; - const SEVERITY_INFO = 'INFO'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getSeverityAllowableValues() - { - $baseVals = [ - self::SEVERITY_ERROR, - self::SEVERITY_WARNING, - self::SEVERITY_INFO, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['severity'] = $data['severity'] ?? null; - $this->container['attribute_name'] = $data['attribute_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - if ($this->container['severity'] === null) { - $invalidProperties[] = "'severity' can't be null"; - } - $allowedValues = $this->getSeverityAllowableValues(); - if ( - !is_null($this->container['severity']) && - !in_array(strtoupper($this->container['severity']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'severity', must be one of '%s'", - $this->container['severity'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An issue code that identifies the type of issue. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the issue. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets severity - * - * @return string - */ - public function getSeverity() - { - return $this->container['severity']; - } - - /** - * Sets severity - * - * @param string $severity The severity of the issue. - * - * @return self - */ - public function setSeverity($severity) - { - $allowedValues = $this->getSeverityAllowableValues(); - if (!in_array(strtoupper($severity), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'severity', must be one of '%s'", - $severity, - implode("', '", $allowedValues) - ) - ); - } - $this->container['severity'] = $severity; - - return $this; - } - /** - * Gets attribute_name - * - * @return string|null - */ - public function getAttributeName() - { - return $this->container['attribute_name']; - } - - /** - * Sets attribute_name - * - * @param string|null $attribute_name Name of the attribute associated with the issue, if applicable. - * - * @return self - */ - public function setAttributeName($attribute_name) - { - $this->container['attribute_name'] = $attribute_name; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/ListingsItemPatchRequest.php b/lib/Model/ListingsV20200901/ListingsItemPatchRequest.php deleted file mode 100644 index acf1c14c6..000000000 --- a/lib/Model/ListingsV20200901/ListingsItemPatchRequest.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemPatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemPatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_type' => 'string', - 'patches' => '\SellingPartnerApi\Model\ListingsV20200901\PatchOperation[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_type' => null, - 'patches' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_type' => 'productType', - 'patches' => 'patches' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_type' => 'setProductType', - 'patches' => 'setPatches' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_type' => 'getProductType', - 'patches' => 'getPatches' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['patches'] = $data['patches'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - if ($this->container['patches'] === null) { - $invalidProperties[] = "'patches' can't be null"; - } - if ((count($this->container['patches']) < 1)) { - $invalidProperties[] = "invalid value for 'patches', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The Amazon product type of the listings item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets patches - * - * @return \SellingPartnerApi\Model\ListingsV20200901\PatchOperation[] - */ - public function getPatches() - { - return $this->container['patches']; - } - - /** - * Sets patches - * - * @param \SellingPartnerApi\Model\ListingsV20200901\PatchOperation[] $patches One or more JSON Patch operations to perform on the listings item. - * - * @return self - */ - public function setPatches($patches) - { - - - if ((count($patches) < 1)) { - throw new \InvalidArgumentException('invalid length for $patches when calling ListingsItemPatchRequest., number of items must be greater than or equal to 1.'); - } - $this->container['patches'] = $patches; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/ListingsItemPutRequest.php b/lib/Model/ListingsV20200901/ListingsItemPutRequest.php deleted file mode 100644 index fe53e1728..000000000 --- a/lib/Model/ListingsV20200901/ListingsItemPutRequest.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemPutRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemPutRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_type' => 'string', - 'requirements' => 'string', - 'attributes' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_type' => null, - 'requirements' => null, - 'attributes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_type' => 'productType', - 'requirements' => 'requirements', - 'attributes' => 'attributes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_type' => 'setProductType', - 'requirements' => 'setRequirements', - 'attributes' => 'setAttributes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_type' => 'getProductType', - 'requirements' => 'getRequirements', - 'attributes' => 'getAttributes' - ]; - - - - const REQUIREMENTS_LISTING = 'LISTING'; - const REQUIREMENTS_LISTING_PRODUCT_ONLY = 'LISTING_PRODUCT_ONLY'; - const REQUIREMENTS_LISTING_OFFER_ONLY = 'LISTING_OFFER_ONLY'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRequirementsAllowableValues() - { - $baseVals = [ - self::REQUIREMENTS_LISTING, - self::REQUIREMENTS_LISTING_PRODUCT_ONLY, - self::REQUIREMENTS_LISTING_OFFER_ONLY, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['requirements'] = $data['requirements'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - $allowedValues = $this->getRequirementsAllowableValues(); - if ( - !is_null($this->container['requirements']) && - !in_array(strtoupper($this->container['requirements']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'requirements', must be one of '%s'", - $this->container['requirements'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['attributes'] === null) { - $invalidProperties[] = "'attributes' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The Amazon product type of the listings item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets requirements - * - * @return string|null - */ - public function getRequirements() - { - return $this->container['requirements']; - } - - /** - * Sets requirements - * - * @param string|null $requirements The name of the requirements set for the provided data. - * - * @return self - */ - public function setRequirements($requirements) - { - $allowedValues = $this->getRequirementsAllowableValues(); - if (!is_null($requirements) &&!in_array(strtoupper($requirements), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'requirements', must be one of '%s'", - $requirements, - implode("', '", $allowedValues) - ) - ); - } - $this->container['requirements'] = $requirements; - - return $this; - } - /** - * Gets attributes - * - * @return object - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param object $attributes JSON object containing structured listings item attribute data keyed by attribute name. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/ListingsItemSubmissionResponse.php b/lib/Model/ListingsV20200901/ListingsItemSubmissionResponse.php deleted file mode 100644 index c90dc49a8..000000000 --- a/lib/Model/ListingsV20200901/ListingsItemSubmissionResponse.php +++ /dev/null @@ -1,327 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemSubmissionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemSubmissionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku' => 'string', - 'status' => 'string', - 'submission_id' => 'string', - 'issues' => '\SellingPartnerApi\Model\ListingsV20200901\Issue[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku' => null, - 'status' => null, - 'submission_id' => null, - 'issues' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'sku' => 'sku', - 'status' => 'status', - 'submission_id' => 'submissionId', - 'issues' => 'issues' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'sku' => 'setSku', - 'status' => 'setStatus', - 'submission_id' => 'setSubmissionId', - 'issues' => 'setIssues' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'sku' => 'getSku', - 'status' => 'getStatus', - 'submission_id' => 'getSubmissionId', - 'issues' => 'getIssues' - ]; - - - - const STATUS_ACCEPTED = 'ACCEPTED'; - const STATUS_INVALID = 'INVALID'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_ACCEPTED, - self::STATUS_INVALID, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku'] = $data['sku'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['submission_id'] = $data['submission_id'] ?? null; - $this->container['issues'] = $data['issues'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['sku'] === null) { - $invalidProperties[] = "'sku' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['submission_id'] === null) { - $invalidProperties[] = "'submission_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets sku - * - * @return string - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string $sku A selling partner provided identifier for an Amazon listing. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status The status of the listings item submission. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets submission_id - * - * @return string - */ - public function getSubmissionId() - { - return $this->container['submission_id']; - } - - /** - * Sets submission_id - * - * @param string $submission_id The unique identifier of the listings item submission. - * - * @return self - */ - public function setSubmissionId($submission_id) - { - $this->container['submission_id'] = $submission_id; - - return $this; - } - /** - * Gets issues - * - * @return \SellingPartnerApi\Model\ListingsV20200901\Issue[]|null - */ - public function getIssues() - { - return $this->container['issues']; - } - - /** - * Sets issues - * - * @param \SellingPartnerApi\Model\ListingsV20200901\Issue[]|null $issues Listings item issues related to the listings item submission. - * - * @return self - */ - public function setIssues($issues) - { - $this->container['issues'] = $issues; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20200901/PatchOperation.php b/lib/Model/ListingsV20200901/PatchOperation.php deleted file mode 100644 index 840b53521..000000000 --- a/lib/Model/ListingsV20200901/PatchOperation.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PatchOperation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PatchOperation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'op' => 'string', - 'path' => 'string', - 'value' => 'object[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'op' => null, - 'path' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'op' => 'op', - 'path' => 'path', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'op' => 'setOp', - 'path' => 'setPath', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'op' => 'getOp', - 'path' => 'getPath', - 'value' => 'getValue' - ]; - - - - const OP_ADD = 'add'; - const OP_REPLACE = 'replace'; - const OP_DELETE = 'delete'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOpAllowableValues() - { - $baseVals = [ - self::OP_ADD, - self::OP_REPLACE, - self::OP_DELETE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['op'] = $data['op'] ?? null; - $this->container['path'] = $data['path'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['op'] === null) { - $invalidProperties[] = "'op' can't be null"; - } - $allowedValues = $this->getOpAllowableValues(); - if ( - !is_null($this->container['op']) && - !in_array(strtoupper($this->container['op']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'op', must be one of '%s'", - $this->container['op'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['path'] === null) { - $invalidProperties[] = "'path' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets op - * - * @return string - */ - public function getOp() - { - return $this->container['op']; - } - - /** - * Sets op - * - * @param string $op Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See . - * - * @return self - */ - public function setOp($op) - { - $allowedValues = $this->getOpAllowableValues(); - if (!in_array(strtoupper($op), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'op', must be one of '%s'", - $op, - implode("', '", $allowedValues) - ) - ); - } - $this->container['op'] = $op; - - return $this; - } - /** - * Gets path - * - * @return string - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string $path JSON Pointer path of the element to patch. See . - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - /** - * Gets value - * - * @return object[]|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param object[]|null $value JSON value to add, replace, or delete. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/Error.php b/lib/Model/ListingsV20210801/Error.php deleted file mode 100644 index c79ce4553..000000000 --- a/lib/Model/ListingsV20210801/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ErrorList.php b/lib/Model/ListingsV20210801/ErrorList.php deleted file mode 100644 index ba99b7bae..000000000 --- a/lib/Model/ListingsV20210801/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ListingsV20210801\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/FulfillmentAvailability.php b/lib/Model/ListingsV20210801/FulfillmentAvailability.php deleted file mode 100644 index 8b215f26f..000000000 --- a/lib/Model/ListingsV20210801/FulfillmentAvailability.php +++ /dev/null @@ -1,203 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentAvailability extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentAvailability'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_channel_code' => 'string', - 'quantity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_channel_code' => null, - 'quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_channel_code' => 'fulfillmentChannelCode', - 'quantity' => 'quantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_channel_code' => 'setFulfillmentChannelCode', - 'quantity' => 'setQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_channel_code' => 'getFulfillmentChannelCode', - 'quantity' => 'getQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_channel_code'] = $data['fulfillment_channel_code'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fulfillment_channel_code'] === null) { - $invalidProperties[] = "'fulfillment_channel_code' can't be null"; - } - if (!is_null($this->container['quantity']) && ($this->container['quantity'] < 0)) { - $invalidProperties[] = "invalid value for 'quantity', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets fulfillment_channel_code - * - * @return string - */ - public function getFulfillmentChannelCode() - { - return $this->container['fulfillment_channel_code']; - } - - /** - * Sets fulfillment_channel_code - * - * @param string $fulfillment_channel_code Designates which fulfillment network will be used. - * - * @return self - */ - public function setFulfillmentChannelCode($fulfillment_channel_code) - { - $this->container['fulfillment_channel_code'] = $fulfillment_channel_code; - - return $this; - } - /** - * Gets quantity - * - * @return int|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int|null $quantity The quantity of the item you are making available for sale. - * - * @return self - */ - public function setQuantity($quantity) - { - - if (!is_null($quantity) && ($quantity < 0)) { - throw new \InvalidArgumentException('invalid value for $quantity when calling FulfillmentAvailability., must be bigger than or equal to 0.'); - } - - $this->container['quantity'] = $quantity; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/Issue.php b/lib/Model/ListingsV20210801/Issue.php deleted file mode 100644 index a1c2a30aa..000000000 --- a/lib/Model/ListingsV20210801/Issue.php +++ /dev/null @@ -1,304 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Issue extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Issue'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'severity' => 'string', - 'attribute_names' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'severity' => null, - 'attribute_names' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'severity' => 'severity', - 'attribute_names' => 'attributeNames' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'severity' => 'setSeverity', - 'attribute_names' => 'setAttributeNames' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'severity' => 'getSeverity', - 'attribute_names' => 'getAttributeNames' - ]; - - - - const SEVERITY_ERROR = 'ERROR'; - const SEVERITY_WARNING = 'WARNING'; - const SEVERITY_INFO = 'INFO'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getSeverityAllowableValues() - { - $baseVals = [ - self::SEVERITY_ERROR, - self::SEVERITY_WARNING, - self::SEVERITY_INFO, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['severity'] = $data['severity'] ?? null; - $this->container['attribute_names'] = $data['attribute_names'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - if ($this->container['severity'] === null) { - $invalidProperties[] = "'severity' can't be null"; - } - $allowedValues = $this->getSeverityAllowableValues(); - if ( - !is_null($this->container['severity']) && - !in_array(strtoupper($this->container['severity']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'severity', must be one of '%s'", - $this->container['severity'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An issue code that identifies the type of issue. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the issue. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets severity - * - * @return string - */ - public function getSeverity() - { - return $this->container['severity']; - } - - /** - * Sets severity - * - * @param string $severity The severity of the issue. - * - * @return self - */ - public function setSeverity($severity) - { - $allowedValues = $this->getSeverityAllowableValues(); - if (!in_array(strtoupper($severity), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'severity', must be one of '%s'", - $severity, - implode("', '", $allowedValues) - ) - ); - } - $this->container['severity'] = $severity; - - return $this; - } - /** - * Gets attribute_names - * - * @return string[]|null - */ - public function getAttributeNames() - { - return $this->container['attribute_names']; - } - - /** - * Sets attribute_names - * - * @param string[]|null $attribute_names Names of the attributes associated with the issue, if applicable. - * - * @return self - */ - public function setAttributeNames($attribute_names) - { - $this->container['attribute_names'] = $attribute_names; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/Item.php b/lib/Model/ListingsV20210801/Item.php deleted file mode 100644 index 62bd90176..000000000 --- a/lib/Model/ListingsV20210801/Item.php +++ /dev/null @@ -1,364 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku' => 'string', - 'summaries' => '\SellingPartnerApi\Model\ListingsV20210801\ItemSummaryByMarketplace[]', - 'attributes' => 'object', - 'issues' => '\SellingPartnerApi\Model\ListingsV20210801\Issue[]', - 'offers' => '\SellingPartnerApi\Model\ListingsV20210801\ItemOfferByMarketplace[]', - 'fulfillment_availability' => '\SellingPartnerApi\Model\ListingsV20210801\FulfillmentAvailability[]', - 'procurement' => '\SellingPartnerApi\Model\ListingsV20210801\ItemProcurement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku' => null, - 'summaries' => null, - 'attributes' => null, - 'issues' => null, - 'offers' => null, - 'fulfillment_availability' => null, - 'procurement' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'sku' => 'sku', - 'summaries' => 'summaries', - 'attributes' => 'attributes', - 'issues' => 'issues', - 'offers' => 'offers', - 'fulfillment_availability' => 'fulfillmentAvailability', - 'procurement' => 'procurement' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'sku' => 'setSku', - 'summaries' => 'setSummaries', - 'attributes' => 'setAttributes', - 'issues' => 'setIssues', - 'offers' => 'setOffers', - 'fulfillment_availability' => 'setFulfillmentAvailability', - 'procurement' => 'setProcurement' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'sku' => 'getSku', - 'summaries' => 'getSummaries', - 'attributes' => 'getAttributes', - 'issues' => 'getIssues', - 'offers' => 'getOffers', - 'fulfillment_availability' => 'getFulfillmentAvailability', - 'procurement' => 'getProcurement' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku'] = $data['sku'] ?? null; - $this->container['summaries'] = $data['summaries'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - $this->container['issues'] = $data['issues'] ?? null; - $this->container['offers'] = $data['offers'] ?? null; - $this->container['fulfillment_availability'] = $data['fulfillment_availability'] ?? null; - $this->container['procurement'] = $data['procurement'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['sku'] === null) { - $invalidProperties[] = "'sku' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets sku - * - * @return string - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string $sku A selling partner provided identifier for an Amazon listing. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets summaries - * - * @return \SellingPartnerApi\Model\ListingsV20210801\ItemSummaryByMarketplace[]|null - */ - public function getSummaries() - { - return $this->container['summaries']; - } - - /** - * Sets summaries - * - * @param \SellingPartnerApi\Model\ListingsV20210801\ItemSummaryByMarketplace[]|null $summaries Summary details of a listings item. - * - * @return self - */ - public function setSummaries($summaries) - { - $this->container['summaries'] = $summaries; - - return $this; - } - /** - * Gets attributes - * - * @return object|null - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param object|null $attributes JSON object containing structured listings item attribute data keyed by attribute name. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - /** - * Gets issues - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Issue[]|null - */ - public function getIssues() - { - return $this->container['issues']; - } - - /** - * Sets issues - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Issue[]|null $issues Issues associated with the listings item. - * - * @return self - */ - public function setIssues($issues) - { - $this->container['issues'] = $issues; - - return $this; - } - /** - * Gets offers - * - * @return \SellingPartnerApi\Model\ListingsV20210801\ItemOfferByMarketplace[]|null - */ - public function getOffers() - { - return $this->container['offers']; - } - - /** - * Sets offers - * - * @param \SellingPartnerApi\Model\ListingsV20210801\ItemOfferByMarketplace[]|null $offers Offer details for the listings item. - * - * @return self - */ - public function setOffers($offers) - { - $this->container['offers'] = $offers; - - return $this; - } - /** - * Gets fulfillment_availability - * - * @return \SellingPartnerApi\Model\ListingsV20210801\FulfillmentAvailability[]|null - */ - public function getFulfillmentAvailability() - { - return $this->container['fulfillment_availability']; - } - - /** - * Sets fulfillment_availability - * - * @param \SellingPartnerApi\Model\ListingsV20210801\FulfillmentAvailability[]|null $fulfillment_availability Fulfillment availability for the listings item. - * - * @return self - */ - public function setFulfillmentAvailability($fulfillment_availability) - { - $this->container['fulfillment_availability'] = $fulfillment_availability; - - return $this; - } - /** - * Gets procurement - * - * @return \SellingPartnerApi\Model\ListingsV20210801\ItemProcurement[]|null - */ - public function getProcurement() - { - return $this->container['procurement']; - } - - /** - * Sets procurement - * - * @param \SellingPartnerApi\Model\ListingsV20210801\ItemProcurement[]|null $procurement Procurement details of a listings item. - * - * @return self - */ - public function setProcurement($procurement) - { - $this->container['procurement'] = $procurement; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ItemImage.php b/lib/Model/ListingsV20210801/ItemImage.php deleted file mode 100644 index 1270cff46..000000000 --- a/lib/Model/ListingsV20210801/ItemImage.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemImage extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemImage'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'link' => 'string', - 'height' => 'int', - 'width' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'link' => null, - 'height' => null, - 'width' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'link' => 'link', - 'height' => 'height', - 'width' => 'width' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'link' => 'setLink', - 'height' => 'setHeight', - 'width' => 'setWidth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'link' => 'getLink', - 'height' => 'getHeight', - 'width' => 'getWidth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['link'] = $data['link'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['width'] = $data['width'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['link'] === null) { - $invalidProperties[] = "'link' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets link - * - * @return string - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param string $link Link, or URL, for the image. - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets height - * - * @return int - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param int $height Height of the image in pixels. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets width - * - * @return int - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param int $width Width of the image in pixels. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ItemOfferByMarketplace.php b/lib/Model/ListingsV20210801/ItemOfferByMarketplace.php deleted file mode 100644 index ee9436b1f..000000000 --- a/lib/Model/ListingsV20210801/ItemOfferByMarketplace.php +++ /dev/null @@ -1,302 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOfferByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOfferByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'offer_type' => 'string', - 'price' => '\SellingPartnerApi\Model\ListingsV20210801\Money', - 'points' => '\SellingPartnerApi\Model\ListingsV20210801\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'offer_type' => null, - 'price' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'offer_type' => 'offerType', - 'price' => 'price', - 'points' => 'points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'offer_type' => 'setOfferType', - 'price' => 'setPrice', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'offer_type' => 'getOfferType', - 'price' => 'getPrice', - 'points' => 'getPoints' - ]; - - - - const OFFER_TYPE_B2_C = 'B2C'; - const OFFER_TYPE_B2_B = 'B2B'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOfferTypeAllowableValues() - { - $baseVals = [ - self::OFFER_TYPE_B2_C, - self::OFFER_TYPE_B2_B, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['price'] = $data['price'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['offer_type'] === null) { - $invalidProperties[] = "'offer_type' can't be null"; - } - $allowedValues = $this->getOfferTypeAllowableValues(); - if ( - !is_null($this->container['offer_type']) && - !in_array(strtoupper($this->container['offer_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'offer_type', must be one of '%s'", - $this->container['offer_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['price'] === null) { - $invalidProperties[] = "'price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets offer_type - * - * @return string - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param string $offer_type Type of offer for the listings item. - * - * @return self - */ - public function setOfferType($offer_type) - { - $allowedValues = $this->getOfferTypeAllowableValues(); - if (!in_array(strtoupper($offer_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'offer_type', must be one of '%s'", - $offer_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets price - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Money - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Money $price price - * - * @return self - */ - public function setPrice($price) - { - $this->container['price'] = $price; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ItemProcurement.php b/lib/Model/ListingsV20210801/ItemProcurement.php deleted file mode 100644 index d60db1061..000000000 --- a/lib/Model/ListingsV20210801/ItemProcurement.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemProcurement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemProcurement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'cost_price' => '\SellingPartnerApi\Model\ListingsV20210801\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'cost_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'cost_price' => 'costPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'cost_price' => 'setCostPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'cost_price' => 'getCostPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['cost_price'] = $data['cost_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['cost_price'] === null) { - $invalidProperties[] = "'cost_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets cost_price - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Money - */ - public function getCostPrice() - { - return $this->container['cost_price']; - } - - /** - * Sets cost_price - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Money $cost_price cost_price - * - * @return self - */ - public function setCostPrice($cost_price) - { - $this->container['cost_price'] = $cost_price; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ItemSummaryByMarketplace.php b/lib/Model/ListingsV20210801/ItemSummaryByMarketplace.php deleted file mode 100644 index bff54ab28..000000000 --- a/lib/Model/ListingsV20210801/ItemSummaryByMarketplace.php +++ /dev/null @@ -1,541 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemSummaryByMarketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemSummaryByMarketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asin' => 'string', - 'product_type' => 'string', - 'condition_type' => 'string', - 'status' => 'string[]', - 'fn_sku' => 'string', - 'item_name' => 'string', - 'created_date' => 'string', - 'last_updated_date' => 'string', - 'main_image' => '\SellingPartnerApi\Model\ListingsV20210801\ItemImage' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asin' => null, - 'product_type' => null, - 'condition_type' => null, - 'status' => null, - 'fn_sku' => null, - 'item_name' => null, - 'created_date' => null, - 'last_updated_date' => null, - 'main_image' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'asin' => 'asin', - 'product_type' => 'productType', - 'condition_type' => 'conditionType', - 'status' => 'status', - 'fn_sku' => 'fnSku', - 'item_name' => 'itemName', - 'created_date' => 'createdDate', - 'last_updated_date' => 'lastUpdatedDate', - 'main_image' => 'mainImage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asin' => 'setAsin', - 'product_type' => 'setProductType', - 'condition_type' => 'setConditionType', - 'status' => 'setStatus', - 'fn_sku' => 'setFnSku', - 'item_name' => 'setItemName', - 'created_date' => 'setCreatedDate', - 'last_updated_date' => 'setLastUpdatedDate', - 'main_image' => 'setMainImage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asin' => 'getAsin', - 'product_type' => 'getProductType', - 'condition_type' => 'getConditionType', - 'status' => 'getStatus', - 'fn_sku' => 'getFnSku', - 'item_name' => 'getItemName', - 'created_date' => 'getCreatedDate', - 'last_updated_date' => 'getLastUpdatedDate', - 'main_image' => 'getMainImage' - ]; - - - - const CONDITION_TYPE_NEW_NEW = 'new_new'; - const CONDITION_TYPE_NEW_OPEN_BOX = 'new_open_box'; - const CONDITION_TYPE_NEW_OEM = 'new_oem'; - const CONDITION_TYPE_REFURBISHED_REFURBISHED = 'refurbished_refurbished'; - const CONDITION_TYPE_USED_LIKE_NEW = 'used_like_new'; - const CONDITION_TYPE_USED_VERY_GOOD = 'used_very_good'; - const CONDITION_TYPE_USED_GOOD = 'used_good'; - const CONDITION_TYPE_USED_ACCEPTABLE = 'used_acceptable'; - const CONDITION_TYPE_COLLECTIBLE_LIKE_NEW = 'collectible_like_new'; - const CONDITION_TYPE_COLLECTIBLE_VERY_GOOD = 'collectible_very_good'; - const CONDITION_TYPE_COLLECTIBLE_GOOD = 'collectible_good'; - const CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE = 'collectible_acceptable'; - const CONDITION_TYPE_CLUB_CLUB = 'club_club'; - - - const STATUS_BUYABLE = 'BUYABLE'; - const STATUS_DISCOVERABLE = 'DISCOVERABLE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getConditionTypeAllowableValues() - { - $baseVals = [ - self::CONDITION_TYPE_NEW_NEW, - self::CONDITION_TYPE_NEW_OPEN_BOX, - self::CONDITION_TYPE_NEW_OEM, - self::CONDITION_TYPE_REFURBISHED_REFURBISHED, - self::CONDITION_TYPE_USED_LIKE_NEW, - self::CONDITION_TYPE_USED_VERY_GOOD, - self::CONDITION_TYPE_USED_GOOD, - self::CONDITION_TYPE_USED_ACCEPTABLE, - self::CONDITION_TYPE_COLLECTIBLE_LIKE_NEW, - self::CONDITION_TYPE_COLLECTIBLE_VERY_GOOD, - self::CONDITION_TYPE_COLLECTIBLE_GOOD, - self::CONDITION_TYPE_COLLECTIBLE_ACCEPTABLE, - self::CONDITION_TYPE_CLUB_CLUB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_BUYABLE, - self::STATUS_DISCOVERABLE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['condition_type'] = $data['condition_type'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['fn_sku'] = $data['fn_sku'] ?? null; - $this->container['item_name'] = $data['item_name'] ?? null; - $this->container['created_date'] = $data['created_date'] ?? null; - $this->container['last_updated_date'] = $data['last_updated_date'] ?? null; - $this->container['main_image'] = $data['main_image'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - $allowedValues = $this->getConditionTypeAllowableValues(); - if ( - !is_null($this->container['condition_type']) && - !in_array(strtoupper($this->container['condition_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'condition_type', must be one of '%s'", - $this->container['condition_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['item_name'] === null) { - $invalidProperties[] = "'item_name' can't be null"; - } - if ($this->container['created_date'] === null) { - $invalidProperties[] = "'created_date' can't be null"; - } - if ($this->container['last_updated_date'] === null) { - $invalidProperties[] = "'last_updated_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Identifies the Amazon marketplace for the listings item. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin Amazon Standard Identification Number (ASIN) of the listings item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The Amazon product type of the listings item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets condition_type - * - * @return string|null - */ - public function getConditionType() - { - return $this->container['condition_type']; - } - - /** - * Sets condition_type - * - * @param string|null $condition_type Identifies the condition of the listings item. - * - * @return self - */ - public function setConditionType($condition_type) - { - $allowedValues = $this->getConditionTypeAllowableValues(); - if (!is_null($condition_type) &&!in_array(strtoupper($condition_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'condition_type', must be one of '%s'", - $condition_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['condition_type'] = $condition_type; - - return $this; - } - /** - * Gets status - * - * @return string[] - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string[] $status Statuses that apply to the listings item. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (array_diff($status, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets fn_sku - * - * @return string|null - */ - public function getFnSku() - { - return $this->container['fn_sku']; - } - - /** - * Sets fn_sku - * - * @param string|null $fn_sku Fulfillment network stock keeping unit is an identifier used by Amazon fulfillment centers to identify each unique item. - * - * @return self - */ - public function setFnSku($fn_sku) - { - $this->container['fn_sku'] = $fn_sku; - - return $this; - } - /** - * Gets item_name - * - * @return string - */ - public function getItemName() - { - return $this->container['item_name']; - } - - /** - * Sets item_name - * - * @param string $item_name Name, or title, associated with an Amazon catalog item. - * - * @return self - */ - public function setItemName($item_name) - { - $this->container['item_name'] = $item_name; - - return $this; - } - /** - * Gets created_date - * - * @return string - */ - public function getCreatedDate() - { - return $this->container['created_date']; - } - - /** - * Sets created_date - * - * @param string $created_date Date the listings item was created, in ISO 8601 format. - * - * @return self - */ - public function setCreatedDate($created_date) - { - $this->container['created_date'] = $created_date; - - return $this; - } - /** - * Gets last_updated_date - * - * @return string - */ - public function getLastUpdatedDate() - { - return $this->container['last_updated_date']; - } - - /** - * Sets last_updated_date - * - * @param string $last_updated_date Date the listings item was last updated, in ISO 8601 format. - * - * @return self - */ - public function setLastUpdatedDate($last_updated_date) - { - $this->container['last_updated_date'] = $last_updated_date; - - return $this; - } - /** - * Gets main_image - * - * @return \SellingPartnerApi\Model\ListingsV20210801\ItemImage|null - */ - public function getMainImage() - { - return $this->container['main_image']; - } - - /** - * Sets main_image - * - * @param \SellingPartnerApi\Model\ListingsV20210801\ItemImage|null $main_image main_image - * - * @return self - */ - public function setMainImage($main_image) - { - $this->container['main_image'] = $main_image; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ListingsItemPatchRequest.php b/lib/Model/ListingsV20210801/ListingsItemPatchRequest.php deleted file mode 100644 index a4590f2d5..000000000 --- a/lib/Model/ListingsV20210801/ListingsItemPatchRequest.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemPatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemPatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_type' => 'string', - 'patches' => '\SellingPartnerApi\Model\ListingsV20210801\PatchOperation[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_type' => null, - 'patches' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_type' => 'productType', - 'patches' => 'patches' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_type' => 'setProductType', - 'patches' => 'setPatches' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_type' => 'getProductType', - 'patches' => 'getPatches' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['patches'] = $data['patches'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - if ($this->container['patches'] === null) { - $invalidProperties[] = "'patches' can't be null"; - } - if ((count($this->container['patches']) < 1)) { - $invalidProperties[] = "invalid value for 'patches', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The Amazon product type of the listings item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets patches - * - * @return \SellingPartnerApi\Model\ListingsV20210801\PatchOperation[] - */ - public function getPatches() - { - return $this->container['patches']; - } - - /** - * Sets patches - * - * @param \SellingPartnerApi\Model\ListingsV20210801\PatchOperation[] $patches One or more JSON Patch operations to perform on the listings item. - * - * @return self - */ - public function setPatches($patches) - { - - - if ((count($patches) < 1)) { - throw new \InvalidArgumentException('invalid length for $patches when calling ListingsItemPatchRequest., number of items must be greater than or equal to 1.'); - } - $this->container['patches'] = $patches; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ListingsItemPutRequest.php b/lib/Model/ListingsV20210801/ListingsItemPutRequest.php deleted file mode 100644 index 992fb5e9c..000000000 --- a/lib/Model/ListingsV20210801/ListingsItemPutRequest.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemPutRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemPutRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_type' => 'string', - 'requirements' => 'string', - 'attributes' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_type' => null, - 'requirements' => null, - 'attributes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_type' => 'productType', - 'requirements' => 'requirements', - 'attributes' => 'attributes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_type' => 'setProductType', - 'requirements' => 'setRequirements', - 'attributes' => 'setAttributes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_type' => 'getProductType', - 'requirements' => 'getRequirements', - 'attributes' => 'getAttributes' - ]; - - - - const REQUIREMENTS_LISTING = 'LISTING'; - const REQUIREMENTS_LISTING_PRODUCT_ONLY = 'LISTING_PRODUCT_ONLY'; - const REQUIREMENTS_LISTING_OFFER_ONLY = 'LISTING_OFFER_ONLY'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRequirementsAllowableValues() - { - $baseVals = [ - self::REQUIREMENTS_LISTING, - self::REQUIREMENTS_LISTING_PRODUCT_ONLY, - self::REQUIREMENTS_LISTING_OFFER_ONLY, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['requirements'] = $data['requirements'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - $allowedValues = $this->getRequirementsAllowableValues(); - if ( - !is_null($this->container['requirements']) && - !in_array(strtoupper($this->container['requirements']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'requirements', must be one of '%s'", - $this->container['requirements'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['attributes'] === null) { - $invalidProperties[] = "'attributes' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The Amazon product type of the listings item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets requirements - * - * @return string|null - */ - public function getRequirements() - { - return $this->container['requirements']; - } - - /** - * Sets requirements - * - * @param string|null $requirements The name of the requirements set for the provided data. - * - * @return self - */ - public function setRequirements($requirements) - { - $allowedValues = $this->getRequirementsAllowableValues(); - if (!is_null($requirements) &&!in_array(strtoupper($requirements), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'requirements', must be one of '%s'", - $requirements, - implode("', '", $allowedValues) - ) - ); - } - $this->container['requirements'] = $requirements; - - return $this; - } - /** - * Gets attributes - * - * @return object - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param object $attributes JSON object containing structured listings item attribute data keyed by attribute name. - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/ListingsItemSubmissionResponse.php b/lib/Model/ListingsV20210801/ListingsItemSubmissionResponse.php deleted file mode 100644 index d272eebf4..000000000 --- a/lib/Model/ListingsV20210801/ListingsItemSubmissionResponse.php +++ /dev/null @@ -1,327 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingsItemSubmissionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingsItemSubmissionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku' => 'string', - 'status' => 'string', - 'submission_id' => 'string', - 'issues' => '\SellingPartnerApi\Model\ListingsV20210801\Issue[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku' => null, - 'status' => null, - 'submission_id' => null, - 'issues' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'sku' => 'sku', - 'status' => 'status', - 'submission_id' => 'submissionId', - 'issues' => 'issues' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'sku' => 'setSku', - 'status' => 'setStatus', - 'submission_id' => 'setSubmissionId', - 'issues' => 'setIssues' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'sku' => 'getSku', - 'status' => 'getStatus', - 'submission_id' => 'getSubmissionId', - 'issues' => 'getIssues' - ]; - - - - const STATUS_ACCEPTED = 'ACCEPTED'; - const STATUS_INVALID = 'INVALID'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_ACCEPTED, - self::STATUS_INVALID, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku'] = $data['sku'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['submission_id'] = $data['submission_id'] ?? null; - $this->container['issues'] = $data['issues'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['sku'] === null) { - $invalidProperties[] = "'sku' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['submission_id'] === null) { - $invalidProperties[] = "'submission_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets sku - * - * @return string - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string $sku A selling partner provided identifier for an Amazon listing. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status The status of the listings item submission. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets submission_id - * - * @return string - */ - public function getSubmissionId() - { - return $this->container['submission_id']; - } - - /** - * Sets submission_id - * - * @param string $submission_id The unique identifier of the listings item submission. - * - * @return self - */ - public function setSubmissionId($submission_id) - { - $this->container['submission_id'] = $submission_id; - - return $this; - } - /** - * Gets issues - * - * @return \SellingPartnerApi\Model\ListingsV20210801\Issue[]|null - */ - public function getIssues() - { - return $this->container['issues']; - } - - /** - * Sets issues - * - * @param \SellingPartnerApi\Model\ListingsV20210801\Issue[]|null $issues Listings item issues related to the listings item submission. - * - * @return self - */ - public function setIssues($issues) - { - $this->container['issues'] = $issues; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/Money.php b/lib/Model/ListingsV20210801/Money.php deleted file mode 100644 index 65a8aeae2..000000000 --- a/lib/Model/ListingsV20210801/Money.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three-digit currency code. In ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string $amount A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/PatchOperation.php b/lib/Model/ListingsV20210801/PatchOperation.php deleted file mode 100644 index 0598c3237..000000000 --- a/lib/Model/ListingsV20210801/PatchOperation.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PatchOperation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PatchOperation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'op' => 'string', - 'path' => 'string', - 'value' => 'object[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'op' => null, - 'path' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'op' => 'op', - 'path' => 'path', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'op' => 'setOp', - 'path' => 'setPath', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'op' => 'getOp', - 'path' => 'getPath', - 'value' => 'getValue' - ]; - - - - const OP_ADD = 'add'; - const OP_REPLACE = 'replace'; - const OP_DELETE = 'delete'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOpAllowableValues() - { - $baseVals = [ - self::OP_ADD, - self::OP_REPLACE, - self::OP_DELETE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['op'] = $data['op'] ?? null; - $this->container['path'] = $data['path'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['op'] === null) { - $invalidProperties[] = "'op' can't be null"; - } - $allowedValues = $this->getOpAllowableValues(); - if ( - !is_null($this->container['op']) && - !in_array(strtoupper($this->container['op']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'op', must be one of '%s'", - $this->container['op'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['path'] === null) { - $invalidProperties[] = "'path' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets op - * - * @return string - */ - public function getOp() - { - return $this->container['op']; - } - - /** - * Sets op - * - * @param string $op Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See . - * - * @return self - */ - public function setOp($op) - { - $allowedValues = $this->getOpAllowableValues(); - if (!in_array(strtoupper($op), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'op', must be one of '%s'", - $op, - implode("', '", $allowedValues) - ) - ); - } - $this->container['op'] = $op; - - return $this; - } - /** - * Gets path - * - * @return string - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string $path JSON Pointer path of the element to patch. See . - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - /** - * Gets value - * - * @return object[]|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param object[]|null $value JSON value to add, replace, or delete. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/ListingsV20210801/Points.php b/lib/Model/ListingsV20210801/Points.php deleted file mode 100644 index d9e24f6e4..000000000 --- a/lib/Model/ListingsV20210801/Points.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Points extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Points'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'points_number' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'points_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'points_number' => 'pointsNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'points_number' => 'setPointsNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'points_number' => 'getPointsNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['points_number'] = $data['points_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['points_number'] === null) { - $invalidProperties[] = "'points_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets points_number - * - * @return int - */ - public function getPointsNumber() - { - return $this->container['points_number']; - } - - /** - * Sets points_number - * - * @param int $points_number points_number - * - * @return self - */ - public function setPointsNumber($points_number) - { - $this->container['points_number'] = $points_number; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AdditionalInputs.php b/lib/Model/MerchantFulfillmentV0/AdditionalInputs.php deleted file mode 100644 index 10d8ae8a5..000000000 --- a/lib/Model/MerchantFulfillmentV0/AdditionalInputs.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdditionalInputs extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdditionalInputs'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'additional_input_field_name' => 'string', - 'seller_input_definition' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\SellerInputDefinition' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'additional_input_field_name' => null, - 'seller_input_definition' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'additional_input_field_name' => 'AdditionalInputFieldName', - 'seller_input_definition' => 'SellerInputDefinition' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'additional_input_field_name' => 'setAdditionalInputFieldName', - 'seller_input_definition' => 'setSellerInputDefinition' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'additional_input_field_name' => 'getAdditionalInputFieldName', - 'seller_input_definition' => 'getSellerInputDefinition' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['additional_input_field_name'] = $data['additional_input_field_name'] ?? null; - $this->container['seller_input_definition'] = $data['seller_input_definition'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets additional_input_field_name - * - * @return string|null - */ - public function getAdditionalInputFieldName() - { - return $this->container['additional_input_field_name']; - } - - /** - * Sets additional_input_field_name - * - * @param string|null $additional_input_field_name The field name. - * - * @return self - */ - public function setAdditionalInputFieldName($additional_input_field_name) - { - $this->container['additional_input_field_name'] = $additional_input_field_name; - - return $this; - } - /** - * Gets seller_input_definition - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\SellerInputDefinition|null - */ - public function getSellerInputDefinition() - { - return $this->container['seller_input_definition']; - } - - /** - * Sets seller_input_definition - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\SellerInputDefinition|null $seller_input_definition seller_input_definition - * - * @return self - */ - public function setSellerInputDefinition($seller_input_definition) - { - $this->container['seller_input_definition'] = $seller_input_definition; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AdditionalSellerInput.php b/lib/Model/MerchantFulfillmentV0/AdditionalSellerInput.php deleted file mode 100644 index 1c023d499..000000000 --- a/lib/Model/MerchantFulfillmentV0/AdditionalSellerInput.php +++ /dev/null @@ -1,394 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdditionalSellerInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdditionalSellerInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data_type' => 'string', - 'value_as_string' => 'string', - 'value_as_boolean' => 'bool', - 'value_as_integer' => 'int', - 'value_as_timestamp' => 'string', - 'value_as_address' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Address', - 'value_as_weight' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight', - 'value_as_dimension' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Length', - 'value_as_currency' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data_type' => null, - 'value_as_string' => null, - 'value_as_boolean' => null, - 'value_as_integer' => null, - 'value_as_timestamp' => null, - 'value_as_address' => null, - 'value_as_weight' => null, - 'value_as_dimension' => null, - 'value_as_currency' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'data_type' => 'DataType', - 'value_as_string' => 'ValueAsString', - 'value_as_boolean' => 'ValueAsBoolean', - 'value_as_integer' => 'ValueAsInteger', - 'value_as_timestamp' => 'ValueAsTimestamp', - 'value_as_address' => 'ValueAsAddress', - 'value_as_weight' => 'ValueAsWeight', - 'value_as_dimension' => 'ValueAsDimension', - 'value_as_currency' => 'ValueAsCurrency' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'data_type' => 'setDataType', - 'value_as_string' => 'setValueAsString', - 'value_as_boolean' => 'setValueAsBoolean', - 'value_as_integer' => 'setValueAsInteger', - 'value_as_timestamp' => 'setValueAsTimestamp', - 'value_as_address' => 'setValueAsAddress', - 'value_as_weight' => 'setValueAsWeight', - 'value_as_dimension' => 'setValueAsDimension', - 'value_as_currency' => 'setValueAsCurrency' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'data_type' => 'getDataType', - 'value_as_string' => 'getValueAsString', - 'value_as_boolean' => 'getValueAsBoolean', - 'value_as_integer' => 'getValueAsInteger', - 'value_as_timestamp' => 'getValueAsTimestamp', - 'value_as_address' => 'getValueAsAddress', - 'value_as_weight' => 'getValueAsWeight', - 'value_as_dimension' => 'getValueAsDimension', - 'value_as_currency' => 'getValueAsCurrency' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data_type'] = $data['data_type'] ?? null; - $this->container['value_as_string'] = $data['value_as_string'] ?? null; - $this->container['value_as_boolean'] = $data['value_as_boolean'] ?? null; - $this->container['value_as_integer'] = $data['value_as_integer'] ?? null; - $this->container['value_as_timestamp'] = $data['value_as_timestamp'] ?? null; - $this->container['value_as_address'] = $data['value_as_address'] ?? null; - $this->container['value_as_weight'] = $data['value_as_weight'] ?? null; - $this->container['value_as_dimension'] = $data['value_as_dimension'] ?? null; - $this->container['value_as_currency'] = $data['value_as_currency'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets data_type - * - * @return string|null - */ - public function getDataType() - { - return $this->container['data_type']; - } - - /** - * Sets data_type - * - * @param string|null $data_type The data type of the additional information. - * - * @return self - */ - public function setDataType($data_type) - { - $this->container['data_type'] = $data_type; - - return $this; - } - /** - * Gets value_as_string - * - * @return string|null - */ - public function getValueAsString() - { - return $this->container['value_as_string']; - } - - /** - * Sets value_as_string - * - * @param string|null $value_as_string The value when the data type is string. - * - * @return self - */ - public function setValueAsString($value_as_string) - { - $this->container['value_as_string'] = $value_as_string; - - return $this; - } - /** - * Gets value_as_boolean - * - * @return bool|null - */ - public function getValueAsBoolean() - { - return $this->container['value_as_boolean']; - } - - /** - * Sets value_as_boolean - * - * @param bool|null $value_as_boolean The value when the data type is boolean. - * - * @return self - */ - public function setValueAsBoolean($value_as_boolean) - { - $this->container['value_as_boolean'] = $value_as_boolean; - - return $this; - } - /** - * Gets value_as_integer - * - * @return int|null - */ - public function getValueAsInteger() - { - return $this->container['value_as_integer']; - } - - /** - * Sets value_as_integer - * - * @param int|null $value_as_integer The value when the data type is integer. - * - * @return self - */ - public function setValueAsInteger($value_as_integer) - { - $this->container['value_as_integer'] = $value_as_integer; - - return $this; - } - /** - * Gets value_as_timestamp - * - * @return string|null - */ - public function getValueAsTimestamp() - { - return $this->container['value_as_timestamp']; - } - - /** - * Sets value_as_timestamp - * - * @param string|null $value_as_timestamp A timestamp in ISO 8601 format. - * - * @return self - */ - public function setValueAsTimestamp($value_as_timestamp) - { - $this->container['value_as_timestamp'] = $value_as_timestamp; - - return $this; - } - /** - * Gets value_as_address - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Address|null - */ - public function getValueAsAddress() - { - return $this->container['value_as_address']; - } - - /** - * Sets value_as_address - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Address|null $value_as_address value_as_address - * - * @return self - */ - public function setValueAsAddress($value_as_address) - { - $this->container['value_as_address'] = $value_as_address; - - return $this; - } - /** - * Gets value_as_weight - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight|null - */ - public function getValueAsWeight() - { - return $this->container['value_as_weight']; - } - - /** - * Sets value_as_weight - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight|null $value_as_weight value_as_weight - * - * @return self - */ - public function setValueAsWeight($value_as_weight) - { - $this->container['value_as_weight'] = $value_as_weight; - - return $this; - } - /** - * Gets value_as_dimension - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Length|null - */ - public function getValueAsDimension() - { - return $this->container['value_as_dimension']; - } - - /** - * Sets value_as_dimension - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Length|null $value_as_dimension value_as_dimension - * - * @return self - */ - public function setValueAsDimension($value_as_dimension) - { - $this->container['value_as_dimension'] = $value_as_dimension; - - return $this; - } - /** - * Gets value_as_currency - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount|null - */ - public function getValueAsCurrency() - { - return $this->container['value_as_currency']; - } - - /** - * Sets value_as_currency - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount|null $value_as_currency value_as_currency - * - * @return self - */ - public function setValueAsCurrency($value_as_currency) - { - $this->container['value_as_currency'] = $value_as_currency; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AdditionalSellerInputs.php b/lib/Model/MerchantFulfillmentV0/AdditionalSellerInputs.php deleted file mode 100644 index 9f4a16aac..000000000 --- a/lib/Model/MerchantFulfillmentV0/AdditionalSellerInputs.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdditionalSellerInputs extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdditionalSellerInputs'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'additional_input_field_name' => 'string', - 'additional_seller_input' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'additional_input_field_name' => null, - 'additional_seller_input' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'additional_input_field_name' => 'AdditionalInputFieldName', - 'additional_seller_input' => 'AdditionalSellerInput' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'additional_input_field_name' => 'setAdditionalInputFieldName', - 'additional_seller_input' => 'setAdditionalSellerInput' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'additional_input_field_name' => 'getAdditionalInputFieldName', - 'additional_seller_input' => 'getAdditionalSellerInput' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['additional_input_field_name'] = $data['additional_input_field_name'] ?? null; - $this->container['additional_seller_input'] = $data['additional_seller_input'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['additional_input_field_name'] === null) { - $invalidProperties[] = "'additional_input_field_name' can't be null"; - } - if ($this->container['additional_seller_input'] === null) { - $invalidProperties[] = "'additional_seller_input' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets additional_input_field_name - * - * @return string - */ - public function getAdditionalInputFieldName() - { - return $this->container['additional_input_field_name']; - } - - /** - * Sets additional_input_field_name - * - * @param string $additional_input_field_name The name of the additional input field. - * - * @return self - */ - public function setAdditionalInputFieldName($additional_input_field_name) - { - $this->container['additional_input_field_name'] = $additional_input_field_name; - - return $this; - } - /** - * Gets additional_seller_input - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput - */ - public function getAdditionalSellerInput() - { - return $this->container['additional_seller_input']; - } - - /** - * Sets additional_seller_input - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput $additional_seller_input additional_seller_input - * - * @return self - */ - public function setAdditionalSellerInput($additional_seller_input) - { - $this->container['additional_seller_input'] = $additional_seller_input; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Address.php b/lib/Model/MerchantFulfillmentV0/Address.php deleted file mode 100644 index 98c7f834a..000000000 --- a/lib/Model/MerchantFulfillmentV0/Address.php +++ /dev/null @@ -1,537 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'district_or_county' => 'string', - 'email' => 'string', - 'city' => 'string', - 'state_or_province_code' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'district_or_county' => null, - 'email' => null, - 'city' => null, - 'state_or_province_code' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'address_line1' => 'AddressLine1', - 'address_line2' => 'AddressLine2', - 'address_line3' => 'AddressLine3', - 'district_or_county' => 'DistrictOrCounty', - 'email' => 'Email', - 'city' => 'City', - 'state_or_province_code' => 'StateOrProvinceCode', - 'postal_code' => 'PostalCode', - 'country_code' => 'CountryCode', - 'phone' => 'Phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'district_or_county' => 'setDistrictOrCounty', - 'email' => 'setEmail', - 'city' => 'setCity', - 'state_or_province_code' => 'setStateOrProvinceCode', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'district_or_county' => 'getDistrictOrCounty', - 'email' => 'getEmail', - 'city' => 'getCity', - 'state_or_province_code' => 'getStateOrProvinceCode', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['district_or_county'] = $data['district_or_county'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['state_or_province_code'] = $data['state_or_province_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 60)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 60."; - } - - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ((mb_strlen($this->container['address_line1']) > 180)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be smaller than or equal to 180."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line3', the character length must be smaller than or equal to 60."; - } - - if ($this->container['email'] === null) { - $invalidProperties[] = "'email' can't be null"; - } - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ((mb_strlen($this->container['city']) > 60)) { - $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['state_or_province_code']) && (mb_strlen($this->container['state_or_province_code']) > 30)) { - $invalidProperties[] = "invalid value for 'state_or_province_code', the character length must be smaller than or equal to 30."; - } - - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ((mb_strlen($this->container['postal_code']) > 30)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be smaller than or equal to 30."; - } - - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ($this->container['phone'] === null) { - $invalidProperties[] = "'phone' can't be null"; - } - if ((mb_strlen($this->container['phone']) > 30)) { - $invalidProperties[] = "invalid value for 'phone', the character length must be smaller than or equal to 30."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the addressee, or business name. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 60)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 60.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 The street address information. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - if ((mb_strlen($address_line1) > 180)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be smaller than or equal to 180.'); - } - - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - if (!is_null($address_line2) && (mb_strlen($address_line2) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be smaller than or equal to 60.'); - } - - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - if (!is_null($address_line3) && (mb_strlen($address_line3) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line3 when calling Address., must be smaller than or equal to 60.'); - } - - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets district_or_county - * - * @return string|null - */ - public function getDistrictOrCounty() - { - return $this->container['district_or_county']; - } - - /** - * Sets district_or_county - * - * @param string|null $district_or_county The district or county. - * - * @return self - */ - public function setDistrictOrCounty($district_or_county) - { - $this->container['district_or_county'] = $district_or_county; - - return $this; - } - /** - * Gets email - * - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string $email The email address. - * - * @return self - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city. - * - * @return self - */ - public function setCity($city) - { - if ((mb_strlen($city) > 60)) { - throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 60.'); - } - - $this->container['city'] = $city; - - return $this; - } - /** - * Gets state_or_province_code - * - * @return string|null - */ - public function getStateOrProvinceCode() - { - return $this->container['state_or_province_code']; - } - - /** - * Sets state_or_province_code - * - * @param string|null $state_or_province_code The state or province code. **Note.** Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China. - * - * @return self - */ - public function setStateOrProvinceCode($state_or_province_code) - { - if (!is_null($state_or_province_code) && (mb_strlen($state_or_province_code) > 30)) { - throw new \InvalidArgumentException('invalid length for $state_or_province_code when calling Address., must be smaller than or equal to 30.'); - } - - $this->container['state_or_province_code'] = $state_or_province_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The zip code or postal code. - * - * @return self - */ - public function setPostalCode($postal_code) - { - if ((mb_strlen($postal_code) > 30)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Address., must be smaller than or equal to 30.'); - } - - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The country code. A two-character country code, in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string $phone The phone number. - * - * @return self - */ - public function setPhone($phone) - { - if ((mb_strlen($phone) > 30)) { - throw new \InvalidArgumentException('invalid length for $phone when calling Address., must be smaller than or equal to 30.'); - } - - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.php b/lib/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.php deleted file mode 100644 index 26e4d16f5..000000000 --- a/lib/Model/MerchantFulfillmentV0/AvailableCarrierWillPickUpOption.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AvailableCarrierWillPickUpOption extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AvailableCarrierWillPickUpOption'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_will_pick_up_option' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption', - 'charge' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_will_pick_up_option' => null, - 'charge' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_will_pick_up_option' => 'CarrierWillPickUpOption', - 'charge' => 'Charge' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption', - 'charge' => 'setCharge' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption', - 'charge' => 'getCharge' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_will_pick_up_option'] = $data['carrier_will_pick_up_option'] ?? null; - $this->container['charge'] = $data['charge'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_will_pick_up_option'] === null) { - $invalidProperties[] = "'carrier_will_pick_up_option' can't be null"; - } - if ($this->container['charge'] === null) { - $invalidProperties[] = "'charge' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_will_pick_up_option - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption - */ - public function getCarrierWillPickUpOption() - { - return $this->container['carrier_will_pick_up_option']; - } - - /** - * Sets carrier_will_pick_up_option - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption $carrier_will_pick_up_option carrier_will_pick_up_option - * - * @return self - */ - public function setCarrierWillPickUpOption($carrier_will_pick_up_option) - { - $this->container['carrier_will_pick_up_option'] = $carrier_will_pick_up_option; - - return $this; - } - /** - * Gets charge - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount - */ - public function getCharge() - { - return $this->container['charge']; - } - - /** - * Sets charge - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount $charge charge - * - * @return self - */ - public function setCharge($charge) - { - $this->container['charge'] = $charge; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.php b/lib/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.php deleted file mode 100644 index bb71aa6e0..000000000 --- a/lib/Model/MerchantFulfillmentV0/AvailableDeliveryExperienceOption.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AvailableDeliveryExperienceOption extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AvailableDeliveryExperienceOption'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'delivery_experience_option' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption', - 'charge' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'delivery_experience_option' => null, - 'charge' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'delivery_experience_option' => 'DeliveryExperienceOption', - 'charge' => 'Charge' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'delivery_experience_option' => 'setDeliveryExperienceOption', - 'charge' => 'setCharge' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'delivery_experience_option' => 'getDeliveryExperienceOption', - 'charge' => 'getCharge' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['delivery_experience_option'] = $data['delivery_experience_option'] ?? null; - $this->container['charge'] = $data['charge'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['delivery_experience_option'] === null) { - $invalidProperties[] = "'delivery_experience_option' can't be null"; - } - if ($this->container['charge'] === null) { - $invalidProperties[] = "'charge' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets delivery_experience_option - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption - */ - public function getDeliveryExperienceOption() - { - return $this->container['delivery_experience_option']; - } - - /** - * Sets delivery_experience_option - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption $delivery_experience_option delivery_experience_option - * - * @return self - */ - public function setDeliveryExperienceOption($delivery_experience_option) - { - $this->container['delivery_experience_option'] = $delivery_experience_option; - - return $this; - } - /** - * Gets charge - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount - */ - public function getCharge() - { - return $this->container['charge']; - } - - /** - * Sets charge - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount $charge charge - * - * @return self - */ - public function setCharge($charge) - { - $this->container['charge'] = $charge; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.php b/lib/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.php deleted file mode 100644 index b42c807b2..000000000 --- a/lib/Model/MerchantFulfillmentV0/AvailableShippingServiceOptions.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AvailableShippingServiceOptions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AvailableShippingServiceOptions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'available_carrier_will_pick_up_options' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableCarrierWillPickUpOption[]', - 'available_delivery_experience_options' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableDeliveryExperienceOption[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'available_carrier_will_pick_up_options' => null, - 'available_delivery_experience_options' => null - ]; - - - - /** - * Array of attributes where the key is the local 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' - ]; - - /** - * 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' - ]; - - /** - * 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' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['available_carrier_will_pick_up_options'] = $data['available_carrier_will_pick_up_options'] ?? null; - $this->container['available_delivery_experience_options'] = $data['available_delivery_experience_options'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['available_carrier_will_pick_up_options'] === null) { - $invalidProperties[] = "'available_carrier_will_pick_up_options' can't be null"; - } - if ($this->container['available_delivery_experience_options'] === null) { - $invalidProperties[] = "'available_delivery_experience_options' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets available_carrier_will_pick_up_options - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableCarrierWillPickUpOption[] - */ - public function getAvailableCarrierWillPickUpOptions() - { - return $this->container['available_carrier_will_pick_up_options']; - } - - /** - * Sets available_carrier_will_pick_up_options - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableCarrierWillPickUpOption[] $available_carrier_will_pick_up_options List of available carrier pickup options. - * - * @return self - */ - public function setAvailableCarrierWillPickUpOptions($available_carrier_will_pick_up_options) - { - $this->container['available_carrier_will_pick_up_options'] = $available_carrier_will_pick_up_options; - - return $this; - } - /** - * Gets available_delivery_experience_options - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableDeliveryExperienceOption[] - */ - public function getAvailableDeliveryExperienceOptions() - { - return $this->container['available_delivery_experience_options']; - } - - /** - * Sets available_delivery_experience_options - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableDeliveryExperienceOption[] $available_delivery_experience_options List of available delivery experience options. - * - * @return self - */ - public function setAvailableDeliveryExperienceOptions($available_delivery_experience_options) - { - $this->container['available_delivery_experience_options'] = $available_delivery_experience_options; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/CancelShipmentResponse.php b/lib/Model/MerchantFulfillmentV0/CancelShipmentResponse.php deleted file mode 100644 index 08d074c01..000000000 --- a/lib/Model/MerchantFulfillmentV0/CancelShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment', - 'errors' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.php b/lib/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.php deleted file mode 100644 index b82956846..000000000 --- a/lib/Model/MerchantFulfillmentV0/CarrierWillPickUpOption.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Constraint.php b/lib/Model/MerchantFulfillmentV0/Constraint.php deleted file mode 100644 index 9118a442c..000000000 --- a/lib/Model/MerchantFulfillmentV0/Constraint.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Constraint extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Constraint'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'validation_reg_ex' => 'string', - 'validation_string' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'validation_reg_ex' => null, - 'validation_string' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'validation_reg_ex' => 'ValidationRegEx', - 'validation_string' => 'ValidationString' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'validation_reg_ex' => 'setValidationRegEx', - 'validation_string' => 'setValidationString' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'validation_reg_ex' => 'getValidationRegEx', - 'validation_string' => 'getValidationString' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['validation_reg_ex'] = $data['validation_reg_ex'] ?? null; - $this->container['validation_string'] = $data['validation_string'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['validation_string'] === null) { - $invalidProperties[] = "'validation_string' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets validation_reg_ex - * - * @return string|null - */ - public function getValidationRegEx() - { - return $this->container['validation_reg_ex']; - } - - /** - * Sets validation_reg_ex - * - * @param string|null $validation_reg_ex A regular expression. - * - * @return self - */ - public function setValidationRegEx($validation_reg_ex) - { - $this->container['validation_reg_ex'] = $validation_reg_ex; - - return $this; - } - /** - * Gets validation_string - * - * @return string - */ - public function getValidationString() - { - return $this->container['validation_string']; - } - - /** - * Sets validation_string - * - * @param string $validation_string A validation string. - * - * @return self - */ - public function setValidationString($validation_string) - { - $this->container['validation_string'] = $validation_string; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/CreateShipmentRequest.php b/lib/Model/MerchantFulfillmentV0/CreateShipmentRequest.php deleted file mode 100644 index 0eb1f0412..000000000 --- a/lib/Model/MerchantFulfillmentV0/CreateShipmentRequest.php +++ /dev/null @@ -1,313 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_request_details' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails', - 'shipping_service_id' => 'string', - 'shipping_service_offer_id' => 'string', - 'hazmat_type' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\HazmatType', - 'label_format_option' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOptionRequest', - 'shipment_level_seller_inputs_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '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 - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_request_details' => 'ShipmentRequestDetails', - 'shipping_service_id' => 'ShippingServiceId', - 'shipping_service_offer_id' => 'ShippingServiceOfferId', - 'hazmat_type' => 'HazmatType', - 'label_format_option' => 'LabelFormatOption', - 'shipment_level_seller_inputs_list' => 'ShipmentLevelSellerInputsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_request_details' => 'setShipmentRequestDetails', - 'shipping_service_id' => 'setShippingServiceId', - 'shipping_service_offer_id' => 'setShippingServiceOfferId', - 'hazmat_type' => 'setHazmatType', - 'label_format_option' => 'setLabelFormatOption', - 'shipment_level_seller_inputs_list' => 'setShipmentLevelSellerInputsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_request_details' => 'getShipmentRequestDetails', - 'shipping_service_id' => 'getShippingServiceId', - 'shipping_service_offer_id' => 'getShippingServiceOfferId', - 'hazmat_type' => 'getHazmatType', - 'label_format_option' => 'getLabelFormatOption', - 'shipment_level_seller_inputs_list' => 'getShipmentLevelSellerInputsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_request_details'] = $data['shipment_request_details'] ?? null; - $this->container['shipping_service_id'] = $data['shipping_service_id'] ?? null; - $this->container['shipping_service_offer_id'] = $data['shipping_service_offer_id'] ?? null; - $this->container['hazmat_type'] = $data['hazmat_type'] ?? null; - $this->container['label_format_option'] = $data['label_format_option'] ?? null; - $this->container['shipment_level_seller_inputs_list'] = $data['shipment_level_seller_inputs_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_request_details'] === null) { - $invalidProperties[] = "'shipment_request_details' can't be null"; - } - if ($this->container['shipping_service_id'] === null) { - $invalidProperties[] = "'shipping_service_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_request_details - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails - */ - public function getShipmentRequestDetails() - { - return $this->container['shipment_request_details']; - } - - /** - * Sets shipment_request_details - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails $shipment_request_details shipment_request_details - * - * @return self - */ - public function setShipmentRequestDetails($shipment_request_details) - { - $this->container['shipment_request_details'] = $shipment_request_details; - - return $this; - } - /** - * Gets shipping_service_id - * - * @return string - */ - public function getShippingServiceId() - { - return $this->container['shipping_service_id']; - } - - /** - * Sets shipping_service_id - * - * @param string $shipping_service_id An Amazon-defined shipping service identifier. - * - * @return self - */ - public function setShippingServiceId($shipping_service_id) - { - $this->container['shipping_service_id'] = $shipping_service_id; - - return $this; - } - /** - * Gets shipping_service_offer_id - * - * @return string|null - */ - public function getShippingServiceOfferId() - { - return $this->container['shipping_service_offer_id']; - } - - /** - * Sets shipping_service_offer_id - * - * @param string|null $shipping_service_offer_id Identifies a shipping service order made by a carrier. - * - * @return self - */ - public function setShippingServiceOfferId($shipping_service_offer_id) - { - $this->container['shipping_service_offer_id'] = $shipping_service_offer_id; - - return $this; - } - /** - * Gets hazmat_type - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\HazmatType|null - */ - public function getHazmatType() - { - return $this->container['hazmat_type']; - } - - /** - * Sets hazmat_type - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\HazmatType|null $hazmat_type hazmat_type - * - * @return self - */ - public function setHazmatType($hazmat_type) - { - $this->container['hazmat_type'] = $hazmat_type; - - return $this; - } - /** - * Gets label_format_option - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOptionRequest|null - */ - public function getLabelFormatOption() - { - return $this->container['label_format_option']; - } - - /** - * Sets label_format_option - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOptionRequest|null $label_format_option label_format_option - * - * @return self - */ - public function setLabelFormatOption($label_format_option) - { - $this->container['label_format_option'] = $label_format_option; - - return $this; - } - /** - * Gets shipment_level_seller_inputs_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]|null - */ - public function getShipmentLevelSellerInputsList() - { - return $this->container['shipment_level_seller_inputs_list']; - } - - /** - * Sets shipment_level_seller_inputs_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]|null $shipment_level_seller_inputs_list A list of additional seller input pairs required to purchase shipping. - * - * @return self - */ - public function setShipmentLevelSellerInputsList($shipment_level_seller_inputs_list) - { - $this->container['shipment_level_seller_inputs_list'] = $shipment_level_seller_inputs_list; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/CreateShipmentResponse.php b/lib/Model/MerchantFulfillmentV0/CreateShipmentResponse.php deleted file mode 100644 index 4f7fce782..000000000 --- a/lib/Model/MerchantFulfillmentV0/CreateShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment', - 'errors' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/CurrencyAmount.php b/lib/Model/MerchantFulfillmentV0/CurrencyAmount.php deleted file mode 100644 index 2e8bb955a..000000000 --- a/lib/Model/MerchantFulfillmentV0/CurrencyAmount.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CurrencyAmount extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CurrencyAmount'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'double' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => 'double' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ((mb_strlen($this->container['currency_code']) > 3)) { - $invalidProperties[] = "invalid value for 'currency_code', the character length must be smaller than or equal to 3."; - } - - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three-digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - if ((mb_strlen($currency_code) > 3)) { - throw new \InvalidArgumentException('invalid length for $currency_code when calling CurrencyAmount., must be smaller than or equal to 3.'); - } - - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return double - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param double $amount The currency amount. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/DeliveryExperienceOption.php b/lib/Model/MerchantFulfillmentV0/DeliveryExperienceOption.php deleted file mode 100644 index ee4da4d3a..000000000 --- a/lib/Model/MerchantFulfillmentV0/DeliveryExperienceOption.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/DeliveryExperienceType.php b/lib/Model/MerchantFulfillmentV0/DeliveryExperienceType.php deleted file mode 100644 index 5c18172ba..000000000 --- a/lib/Model/MerchantFulfillmentV0/DeliveryExperienceType.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Error.php b/lib/Model/MerchantFulfillmentV0/Error.php deleted file mode 100644 index 4220e39cb..000000000 --- a/lib/Model/MerchantFulfillmentV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/FBMItem.php b/lib/Model/MerchantFulfillmentV0/FBMItem.php deleted file mode 100644 index 558a1a4f6..000000000 --- a/lib/Model/MerchantFulfillmentV0/FBMItem.php +++ /dev/null @@ -1,313 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FBMItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FBMItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_item_id' => 'string', - 'quantity' => 'int', - 'item_weight' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight', - 'item_description' => 'string', - 'transparency_code_list' => 'string[]', - 'item_level_seller_inputs_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_item_id' => null, - 'quantity' => 'int32', - 'item_weight' => null, - 'item_description' => null, - 'transparency_code_list' => null, - 'item_level_seller_inputs_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_item_id' => 'OrderItemId', - 'quantity' => 'Quantity', - 'item_weight' => 'ItemWeight', - 'item_description' => 'ItemDescription', - 'transparency_code_list' => 'TransparencyCodeList', - 'item_level_seller_inputs_list' => 'ItemLevelSellerInputsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_item_id' => 'setOrderItemId', - 'quantity' => 'setQuantity', - 'item_weight' => 'setItemWeight', - 'item_description' => 'setItemDescription', - 'transparency_code_list' => 'setTransparencyCodeList', - 'item_level_seller_inputs_list' => 'setItemLevelSellerInputsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_item_id' => 'getOrderItemId', - 'quantity' => 'getQuantity', - 'item_weight' => 'getItemWeight', - 'item_description' => 'getItemDescription', - 'transparency_code_list' => 'getTransparencyCodeList', - 'item_level_seller_inputs_list' => 'getItemLevelSellerInputsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['item_weight'] = $data['item_weight'] ?? null; - $this->container['item_description'] = $data['item_description'] ?? null; - $this->container['transparency_code_list'] = $data['transparency_code_list'] ?? null; - $this->container['item_level_seller_inputs_list'] = $data['item_level_seller_inputs_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_item_id'] === null) { - $invalidProperties[] = "'order_item_id' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_item_id - * - * @return string - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string $order_item_id An Amazon-defined identifier for an individual item in an order. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The number of items. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets item_weight - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight|null - */ - public function getItemWeight() - { - return $this->container['item_weight']; - } - - /** - * Sets item_weight - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight|null $item_weight item_weight - * - * @return self - */ - public function setItemWeight($item_weight) - { - $this->container['item_weight'] = $item_weight; - - return $this; - } - /** - * Gets item_description - * - * @return string|null - */ - public function getItemDescription() - { - return $this->container['item_description']; - } - - /** - * Sets item_description - * - * @param string|null $item_description The description of the item. - * - * @return self - */ - public function setItemDescription($item_description) - { - $this->container['item_description'] = $item_description; - - return $this; - } - /** - * Gets transparency_code_list - * - * @return string[]|null - */ - public function getTransparencyCodeList() - { - return $this->container['transparency_code_list']; - } - - /** - * Sets transparency_code_list - * - * @param string[]|null $transparency_code_list A list of transparency codes. - * - * @return self - */ - public function setTransparencyCodeList($transparency_code_list) - { - $this->container['transparency_code_list'] = $transparency_code_list; - - return $this; - } - /** - * Gets item_level_seller_inputs_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]|null - */ - public function getItemLevelSellerInputsList() - { - return $this->container['item_level_seller_inputs_list']; - } - - /** - * Sets item_level_seller_inputs_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInputs[]|null $item_level_seller_inputs_list A list of additional seller input pairs required to purchase shipping. - * - * @return self - */ - public function setItemLevelSellerInputsList($item_level_seller_inputs_list) - { - $this->container['item_level_seller_inputs_list'] = $item_level_seller_inputs_list; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/FileContents.php b/lib/Model/MerchantFulfillmentV0/FileContents.php deleted file mode 100644 index b4d2ed8b5..000000000 --- a/lib/Model/MerchantFulfillmentV0/FileContents.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FileContents extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FileContents'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'contents' => 'string', - 'file_type' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\FileType', - 'checksum' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'contents' => null, - 'file_type' => null, - 'checksum' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'contents' => 'Contents', - 'file_type' => 'FileType', - 'checksum' => 'Checksum' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'contents' => 'setContents', - 'file_type' => 'setFileType', - 'checksum' => 'setChecksum' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'contents' => 'getContents', - 'file_type' => 'getFileType', - 'checksum' => 'getChecksum' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['contents'] = $data['contents'] ?? null; - $this->container['file_type'] = $data['file_type'] ?? null; - $this->container['checksum'] = $data['checksum'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['contents'] === null) { - $invalidProperties[] = "'contents' can't be null"; - } - if ($this->container['file_type'] === null) { - $invalidProperties[] = "'file_type' can't be null"; - } - if ($this->container['checksum'] === null) { - $invalidProperties[] = "'checksum' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets contents - * - * @return string - */ - public function getContents() - { - return $this->container['contents']; - } - - /** - * Sets contents - * - * @param string $contents Data for printing labels, in the form of a Base64-encoded, GZip-compressed string. - * - * @return self - */ - public function setContents($contents) - { - $this->container['contents'] = $contents; - - return $this; - } - /** - * Gets file_type - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\FileType - */ - public function getFileType() - { - return $this->container['file_type']; - } - - /** - * Sets file_type - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\FileType $file_type file_type - * - * @return self - */ - public function setFileType($file_type) - { - $this->container['file_type'] = $file_type; - - return $this; - } - /** - * Gets checksum - * - * @return string - */ - public function getChecksum() - { - return $this->container['checksum']; - } - - /** - * Sets checksum - * - * @param string $checksum An MD5 hash to validate the PDF document data, in the form of a Base64-encoded string. - * - * @return self - */ - public function setChecksum($checksum) - { - $this->container['checksum'] = $checksum; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/FileType.php b/lib/Model/MerchantFulfillmentV0/FileType.php deleted file mode 100644 index 5fbc61db3..000000000 --- a/lib/Model/MerchantFulfillmentV0/FileType.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.php b/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.php deleted file mode 100644 index 24f6465bf..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsRequest.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAdditionalSellerInputsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAdditionalSellerInputsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_service_id' => 'string', - 'ship_from_address' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Address', - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_service_id' => null, - 'ship_from_address' => null, - 'order_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_service_id' => 'ShippingServiceId', - 'ship_from_address' => 'ShipFromAddress', - 'order_id' => 'OrderId' - ]; - - /** - * 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' - ]; - - /** - * 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' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_service_id'] = $data['shipping_service_id'] ?? null; - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['order_id'] = $data['order_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipping_service_id'] === null) { - $invalidProperties[] = "'shipping_service_id' can't be null"; - } - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['order_id'] === null) { - $invalidProperties[] = "'order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipping_service_id - * - * @return string - */ - public function getShippingServiceId() - { - return $this->container['shipping_service_id']; - } - - /** - * Sets shipping_service_id - * - * @param string $shipping_service_id An Amazon-defined shipping service identifier. - * - * @return self - */ - public function setShippingServiceId($shipping_service_id) - { - $this->container['shipping_service_id'] = $shipping_service_id; - - return $this; - } - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets order_id - * - * @return string - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setOrderId($order_id) - { - $this->container['order_id'] = $order_id; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.php b/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.php deleted file mode 100644 index a10bc9818..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAdditionalSellerInputsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAdditionalSellerInputsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResult', - 'errors' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetAdditionalSellerInputsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.php b/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.php deleted file mode 100644 index a0ad7d335..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetAdditionalSellerInputsResult.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAdditionalSellerInputsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAdditionalSellerInputsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_level_fields' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]', - 'item_level_fields_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ItemLevelFields[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_level_fields' => null, - 'item_level_fields_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_level_fields' => 'ShipmentLevelFields', - 'item_level_fields_list' => 'ItemLevelFieldsList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_level_fields' => 'setShipmentLevelFields', - 'item_level_fields_list' => 'setItemLevelFieldsList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_level_fields' => 'getShipmentLevelFields', - 'item_level_fields_list' => 'getItemLevelFieldsList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_level_fields'] = $data['shipment_level_fields'] ?? null; - $this->container['item_level_fields_list'] = $data['item_level_fields_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_level_fields - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]|null - */ - public function getShipmentLevelFields() - { - return $this->container['shipment_level_fields']; - } - - /** - * Sets shipment_level_fields - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]|null $shipment_level_fields A list of additional inputs. - * - * @return self - */ - public function setShipmentLevelFields($shipment_level_fields) - { - $this->container['shipment_level_fields'] = $shipment_level_fields; - - return $this; - } - /** - * Gets item_level_fields_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ItemLevelFields[]|null - */ - public function getItemLevelFieldsList() - { - return $this->container['item_level_fields_list']; - } - - /** - * Sets item_level_fields_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ItemLevelFields[]|null $item_level_fields_list A list of item level fields. - * - * @return self - */ - public function setItemLevelFieldsList($item_level_fields_list) - { - $this->container['item_level_fields_list'] = $item_level_fields_list; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.php b/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.php deleted file mode 100644 index bb054f721..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesRequest.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetEligibleShipmentServicesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetEligibleShipmentServicesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_request_details' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails', - 'shipping_offering_filter' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingOfferingFilter' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_request_details' => null, - 'shipping_offering_filter' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_request_details' => 'ShipmentRequestDetails', - 'shipping_offering_filter' => 'ShippingOfferingFilter' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_request_details' => 'setShipmentRequestDetails', - 'shipping_offering_filter' => 'setShippingOfferingFilter' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_request_details' => 'getShipmentRequestDetails', - 'shipping_offering_filter' => 'getShippingOfferingFilter' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_request_details'] = $data['shipment_request_details'] ?? null; - $this->container['shipping_offering_filter'] = $data['shipping_offering_filter'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_request_details'] === null) { - $invalidProperties[] = "'shipment_request_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_request_details - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails - */ - public function getShipmentRequestDetails() - { - return $this->container['shipment_request_details']; - } - - /** - * Sets shipment_request_details - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentRequestDetails $shipment_request_details shipment_request_details - * - * @return self - */ - public function setShipmentRequestDetails($shipment_request_details) - { - $this->container['shipment_request_details'] = $shipment_request_details; - - return $this; - } - /** - * Gets shipping_offering_filter - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingOfferingFilter|null - */ - public function getShippingOfferingFilter() - { - return $this->container['shipping_offering_filter']; - } - - /** - * Sets shipping_offering_filter - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingOfferingFilter|null $shipping_offering_filter shipping_offering_filter - * - * @return self - */ - public function setShippingOfferingFilter($shipping_offering_filter) - { - $this->container['shipping_offering_filter'] = $shipping_offering_filter; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.php b/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.php deleted file mode 100644 index 6545bfa23..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetEligibleShipmentServicesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetEligibleShipmentServicesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResult', - 'errors' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\GetEligibleShipmentServicesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.php b/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.php deleted file mode 100644 index 1daf09b6c..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetEligibleShipmentServicesResult.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetEligibleShipmentServicesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetEligibleShipmentServicesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_service_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService[]', - 'rejected_shipping_service_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\RejectedShippingService[]', - 'temporarily_unavailable_carrier_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\TemporarilyUnavailableCarrier[]', - 'terms_and_conditions_not_accepted_carrier_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\TermsAndConditionsNotAcceptedCarrier[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_service_list' => null, - 'rejected_shipping_service_list' => null, - 'temporarily_unavailable_carrier_list' => null, - 'terms_and_conditions_not_accepted_carrier_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_service_list' => 'ShippingServiceList', - 'rejected_shipping_service_list' => 'RejectedShippingServiceList', - 'temporarily_unavailable_carrier_list' => 'TemporarilyUnavailableCarrierList', - 'terms_and_conditions_not_accepted_carrier_list' => 'TermsAndConditionsNotAcceptedCarrierList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipping_service_list' => 'setShippingServiceList', - 'rejected_shipping_service_list' => 'setRejectedShippingServiceList', - 'temporarily_unavailable_carrier_list' => 'setTemporarilyUnavailableCarrierList', - 'terms_and_conditions_not_accepted_carrier_list' => 'setTermsAndConditionsNotAcceptedCarrierList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipping_service_list' => 'getShippingServiceList', - 'rejected_shipping_service_list' => 'getRejectedShippingServiceList', - 'temporarily_unavailable_carrier_list' => 'getTemporarilyUnavailableCarrierList', - 'terms_and_conditions_not_accepted_carrier_list' => 'getTermsAndConditionsNotAcceptedCarrierList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_service_list'] = $data['shipping_service_list'] ?? null; - $this->container['rejected_shipping_service_list'] = $data['rejected_shipping_service_list'] ?? null; - $this->container['temporarily_unavailable_carrier_list'] = $data['temporarily_unavailable_carrier_list'] ?? null; - $this->container['terms_and_conditions_not_accepted_carrier_list'] = $data['terms_and_conditions_not_accepted_carrier_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipping_service_list'] === null) { - $invalidProperties[] = "'shipping_service_list' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipping_service_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService[] - */ - public function getShippingServiceList() - { - return $this->container['shipping_service_list']; - } - - /** - * Sets shipping_service_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService[] $shipping_service_list A list of shipping services offers. - * - * @return self - */ - public function setShippingServiceList($shipping_service_list) - { - $this->container['shipping_service_list'] = $shipping_service_list; - - return $this; - } - /** - * Gets rejected_shipping_service_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\RejectedShippingService[]|null - */ - public function getRejectedShippingServiceList() - { - return $this->container['rejected_shipping_service_list']; - } - - /** - * Sets rejected_shipping_service_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\RejectedShippingService[]|null $rejected_shipping_service_list List of services that were for some reason unavailable for this request - * - * @return self - */ - public function setRejectedShippingServiceList($rejected_shipping_service_list) - { - $this->container['rejected_shipping_service_list'] = $rejected_shipping_service_list; - - return $this; - } - /** - * Gets temporarily_unavailable_carrier_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\TemporarilyUnavailableCarrier[]|null - */ - public function getTemporarilyUnavailableCarrierList() - { - return $this->container['temporarily_unavailable_carrier_list']; - } - - /** - * Sets temporarily_unavailable_carrier_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\TemporarilyUnavailableCarrier[]|null $temporarily_unavailable_carrier_list A list of temporarily unavailable carriers. - * - * @return self - */ - public function setTemporarilyUnavailableCarrierList($temporarily_unavailable_carrier_list) - { - $this->container['temporarily_unavailable_carrier_list'] = $temporarily_unavailable_carrier_list; - - return $this; - } - /** - * Gets terms_and_conditions_not_accepted_carrier_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\TermsAndConditionsNotAcceptedCarrier[]|null - */ - public function getTermsAndConditionsNotAcceptedCarrierList() - { - return $this->container['terms_and_conditions_not_accepted_carrier_list']; - } - - /** - * Sets terms_and_conditions_not_accepted_carrier_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\TermsAndConditionsNotAcceptedCarrier[]|null $terms_and_conditions_not_accepted_carrier_list List of carriers whose terms and conditions were not accepted by the seller. - * - * @return self - */ - public function setTermsAndConditionsNotAcceptedCarrierList($terms_and_conditions_not_accepted_carrier_list) - { - $this->container['terms_and_conditions_not_accepted_carrier_list'] = $terms_and_conditions_not_accepted_carrier_list; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/GetShipmentResponse.php b/lib/Model/MerchantFulfillmentV0/GetShipmentResponse.php deleted file mode 100644 index 75302c8e8..000000000 --- a/lib/Model/MerchantFulfillmentV0/GetShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment', - 'errors' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Shipment|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/HazmatType.php b/lib/Model/MerchantFulfillmentV0/HazmatType.php deleted file mode 100644 index 34d3c74f1..000000000 --- a/lib/Model/MerchantFulfillmentV0/HazmatType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/InputTargetType.php b/lib/Model/MerchantFulfillmentV0/InputTargetType.php deleted file mode 100644 index 83c960572..000000000 --- a/lib/Model/MerchantFulfillmentV0/InputTargetType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ItemLevelFields.php b/lib/Model/MerchantFulfillmentV0/ItemLevelFields.php deleted file mode 100644 index c2f8541dd..000000000 --- a/lib/Model/MerchantFulfillmentV0/ItemLevelFields.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemLevelFields extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemLevelFields'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'additional_inputs' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'additional_inputs' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'Asin', - 'additional_inputs' => 'AdditionalInputs' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'additional_inputs' => 'setAdditionalInputs' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'additional_inputs' => 'getAdditionalInputs' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['additional_inputs'] = $data['additional_inputs'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['additional_inputs'] === null) { - $invalidProperties[] = "'additional_inputs' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets additional_inputs - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[] - */ - public function getAdditionalInputs() - { - return $this->container['additional_inputs']; - } - - /** - * Sets additional_inputs - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalInputs[] $additional_inputs A list of additional inputs. - * - * @return self - */ - public function setAdditionalInputs($additional_inputs) - { - $this->container['additional_inputs'] = $additional_inputs; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Label.php b/lib/Model/MerchantFulfillmentV0/Label.php deleted file mode 100644 index e6324f082..000000000 --- a/lib/Model/MerchantFulfillmentV0/Label.php +++ /dev/null @@ -1,284 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Label extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Label'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'custom_text_for_label' => 'string', - 'dimensions' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelDimensions', - 'file_contents' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\FileContents', - 'label_format' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat', - 'standard_id_for_label' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'custom_text_for_label' => null, - 'dimensions' => null, - 'file_contents' => null, - 'label_format' => null, - 'standard_id_for_label' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'custom_text_for_label' => 'CustomTextForLabel', - 'dimensions' => 'Dimensions', - 'file_contents' => 'FileContents', - 'label_format' => 'LabelFormat', - 'standard_id_for_label' => 'StandardIdForLabel' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'custom_text_for_label' => 'setCustomTextForLabel', - 'dimensions' => 'setDimensions', - 'file_contents' => 'setFileContents', - 'label_format' => 'setLabelFormat', - 'standard_id_for_label' => 'setStandardIdForLabel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'custom_text_for_label' => 'getCustomTextForLabel', - 'dimensions' => 'getDimensions', - 'file_contents' => 'getFileContents', - 'label_format' => 'getLabelFormat', - 'standard_id_for_label' => 'getStandardIdForLabel' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['custom_text_for_label'] = $data['custom_text_for_label'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['file_contents'] = $data['file_contents'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - $this->container['standard_id_for_label'] = $data['standard_id_for_label'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['file_contents'] === null) { - $invalidProperties[] = "'file_contents' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets custom_text_for_label - * - * @return string|null - */ - public function getCustomTextForLabel() - { - return $this->container['custom_text_for_label']; - } - - /** - * Sets custom_text_for_label - * - * @param string|null $custom_text_for_label Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. - * - * @return self - */ - public function setCustomTextForLabel($custom_text_for_label) - { - $this->container['custom_text_for_label'] = $custom_text_for_label; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelDimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelDimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets file_contents - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\FileContents - */ - public function getFileContents() - { - return $this->container['file_contents']; - } - - /** - * Sets file_contents - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\FileContents $file_contents file_contents - * - * @return self - */ - public function setFileContents($file_contents) - { - $this->container['file_contents'] = $file_contents; - - return $this; - } - /** - * Gets label_format - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null $label_format label_format - * - * @return self - */ - public function setLabelFormat($label_format) - { - $this->container['label_format'] = $label_format; - - return $this; - } - /** - * Gets standard_id_for_label - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel|null - */ - public function getStandardIdForLabel() - { - return $this->container['standard_id_for_label']; - } - - /** - * Sets standard_id_for_label - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel|null $standard_id_for_label standard_id_for_label - * - * @return self - */ - public function setStandardIdForLabel($standard_id_for_label) - { - $this->container['standard_id_for_label'] = $standard_id_for_label; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/LabelCustomization.php b/lib/Model/MerchantFulfillmentV0/LabelCustomization.php deleted file mode 100644 index bab8042f8..000000000 --- a/lib/Model/MerchantFulfillmentV0/LabelCustomization.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelCustomization extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelCustomization'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'custom_text_for_label' => 'string', - 'standard_id_for_label' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'custom_text_for_label' => null, - 'standard_id_for_label' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'custom_text_for_label' => 'CustomTextForLabel', - 'standard_id_for_label' => 'StandardIdForLabel' - ]; - - /** - * 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' - ]; - - /** - * 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' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['custom_text_for_label'] = $data['custom_text_for_label'] ?? null; - $this->container['standard_id_for_label'] = $data['standard_id_for_label'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets custom_text_for_label - * - * @return string|null - */ - public function getCustomTextForLabel() - { - return $this->container['custom_text_for_label']; - } - - /** - * Sets custom_text_for_label - * - * @param string|null $custom_text_for_label Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. - * - * @return self - */ - public function setCustomTextForLabel($custom_text_for_label) - { - $this->container['custom_text_for_label'] = $custom_text_for_label; - - return $this; - } - /** - * Gets standard_id_for_label - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel|null - */ - public function getStandardIdForLabel() - { - return $this->container['standard_id_for_label']; - } - - /** - * Sets standard_id_for_label - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\StandardIdForLabel|null $standard_id_for_label standard_id_for_label - * - * @return self - */ - public function setStandardIdForLabel($standard_id_for_label) - { - $this->container['standard_id_for_label'] = $standard_id_for_label; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/LabelDimensions.php b/lib/Model/MerchantFulfillmentV0/LabelDimensions.php deleted file mode 100644 index ca310451f..000000000 --- a/lib/Model/MerchantFulfillmentV0/LabelDimensions.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelDimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelDimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'float', - 'width' => 'float', - 'unit' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'Length', - 'width' => 'Width', - 'unit' => 'Unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets length - * - * @return float - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param float $length A label dimension. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return float - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param float $width A label dimension. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/LabelFormat.php b/lib/Model/MerchantFulfillmentV0/LabelFormat.php deleted file mode 100644 index edfb50033..000000000 --- a/lib/Model/MerchantFulfillmentV0/LabelFormat.php +++ /dev/null @@ -1,97 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/LabelFormatOption.php b/lib/Model/MerchantFulfillmentV0/LabelFormatOption.php deleted file mode 100644 index 8a49ec02e..000000000 --- a/lib/Model/MerchantFulfillmentV0/LabelFormatOption.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelFormatOption extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelFormatOption'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'include_packing_slip_with_label' => 'bool', - 'label_format' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'include_packing_slip_with_label' => null, - 'label_format' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', - 'label_format' => 'LabelFormat' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', - 'label_format' => 'setLabelFormat' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', - 'label_format' => 'getLabelFormat' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['include_packing_slip_with_label'] = $data['include_packing_slip_with_label'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets include_packing_slip_with_label - * - * @return bool|null - */ - public function getIncludePackingSlipWithLabel() - { - return $this->container['include_packing_slip_with_label']; - } - - /** - * Sets include_packing_slip_with_label - * - * @param bool|null $include_packing_slip_with_label When true, include a packing slip with the label. - * - * @return self - */ - public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) - { - $this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label; - - return $this; - } - /** - * Gets label_format - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null $label_format label_format - * - * @return self - */ - public function setLabelFormat($label_format) - { - $this->container['label_format'] = $label_format; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.php b/lib/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.php deleted file mode 100644 index b14def259..000000000 --- a/lib/Model/MerchantFulfillmentV0/LabelFormatOptionRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelFormatOptionRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelFormatOptionRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'include_packing_slip_with_label' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'include_packing_slip_with_label' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['include_packing_slip_with_label'] = $data['include_packing_slip_with_label'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets include_packing_slip_with_label - * - * @return bool|null - */ - public function getIncludePackingSlipWithLabel() - { - return $this->container['include_packing_slip_with_label']; - } - - /** - * Sets include_packing_slip_with_label - * - * @param bool|null $include_packing_slip_with_label When true, include a packing slip with the label. - * - * @return self - */ - public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) - { - $this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Length.php b/lib/Model/MerchantFulfillmentV0/Length.php deleted file mode 100644 index 7a2f2a165..000000000 --- a/lib/Model/MerchantFulfillmentV0/Length.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Length extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Length'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'float', - 'unit' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets value - * - * @return float|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float|null $value The value in units. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength|null - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength|null $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/PackageDimensions.php b/lib/Model/MerchantFulfillmentV0/PackageDimensions.php deleted file mode 100644 index b2dadbafc..000000000 --- a/lib/Model/MerchantFulfillmentV0/PackageDimensions.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageDimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageDimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', - 'unit' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength', - 'predefined_package_dimensions' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\PredefinedPackageDimensions' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', - 'unit' => null, - 'predefined_package_dimensions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'Length', - 'width' => 'Width', - 'height' => 'Height', - 'unit' => 'Unit', - 'predefined_package_dimensions' => 'PredefinedPackageDimensions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit' => 'setUnit', - 'predefined_package_dimensions' => 'setPredefinedPackageDimensions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit' => 'getUnit', - 'predefined_package_dimensions' => 'getPredefinedPackageDimensions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - $this->container['predefined_package_dimensions'] = $data['predefined_package_dimensions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets length - * - * @return double|null - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param double|null $length length - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return double|null - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param double|null $width width - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return double|null - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param double|null $height height - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength|null - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfLength|null $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets predefined_package_dimensions - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\PredefinedPackageDimensions|null - */ - public function getPredefinedPackageDimensions() - { - return $this->container['predefined_package_dimensions']; - } - - /** - * Sets predefined_package_dimensions - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\PredefinedPackageDimensions|null $predefined_package_dimensions predefined_package_dimensions - * - * @return self - */ - public function setPredefinedPackageDimensions($predefined_package_dimensions) - { - $this->container['predefined_package_dimensions'] = $predefined_package_dimensions; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.php b/lib/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.php deleted file mode 100644 index 6734faa6e..000000000 --- a/lib/Model/MerchantFulfillmentV0/PredefinedPackageDimensions.php +++ /dev/null @@ -1,183 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/RejectedShippingService.php b/lib/Model/MerchantFulfillmentV0/RejectedShippingService.php deleted file mode 100644 index cb64506bc..000000000 --- a/lib/Model/MerchantFulfillmentV0/RejectedShippingService.php +++ /dev/null @@ -1,290 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RejectedShippingService extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RejectedShippingService'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string', - 'shipping_service_name' => 'string', - 'shipping_service_id' => 'string', - 'rejection_reason_code' => 'string', - 'rejection_reason_message' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null, - 'shipping_service_name' => null, - 'shipping_service_id' => null, - 'rejection_reason_code' => null, - 'rejection_reason_message' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName', - 'shipping_service_name' => 'ShippingServiceName', - 'shipping_service_id' => 'ShippingServiceId', - 'rejection_reason_code' => 'RejectionReasonCode', - 'rejection_reason_message' => 'RejectionReasonMessage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName', - 'shipping_service_name' => 'setShippingServiceName', - 'shipping_service_id' => 'setShippingServiceId', - 'rejection_reason_code' => 'setRejectionReasonCode', - 'rejection_reason_message' => 'setRejectionReasonMessage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName', - 'shipping_service_name' => 'getShippingServiceName', - 'shipping_service_id' => 'getShippingServiceId', - 'rejection_reason_code' => 'getRejectionReasonCode', - 'rejection_reason_message' => 'getRejectionReasonMessage' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['shipping_service_name'] = $data['shipping_service_name'] ?? null; - $this->container['shipping_service_id'] = $data['shipping_service_id'] ?? null; - $this->container['rejection_reason_code'] = $data['rejection_reason_code'] ?? null; - $this->container['rejection_reason_message'] = $data['rejection_reason_message'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['shipping_service_name'] === null) { - $invalidProperties[] = "'shipping_service_name' can't be null"; - } - if ($this->container['shipping_service_id'] === null) { - $invalidProperties[] = "'shipping_service_id' can't be null"; - } - if ($this->container['rejection_reason_code'] === null) { - $invalidProperties[] = "'rejection_reason_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The rejected shipping carrier name. e.g. USPS - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets shipping_service_name - * - * @return string - */ - public function getShippingServiceName() - { - return $this->container['shipping_service_name']; - } - - /** - * Sets shipping_service_name - * - * @param string $shipping_service_name The rejected shipping service localized name. e.g. FedEx Standard Overnight - * - * @return self - */ - public function setShippingServiceName($shipping_service_name) - { - $this->container['shipping_service_name'] = $shipping_service_name; - - return $this; - } - /** - * Gets shipping_service_id - * - * @return string - */ - public function getShippingServiceId() - { - return $this->container['shipping_service_id']; - } - - /** - * Sets shipping_service_id - * - * @param string $shipping_service_id An Amazon-defined shipping service identifier. - * - * @return self - */ - public function setShippingServiceId($shipping_service_id) - { - $this->container['shipping_service_id'] = $shipping_service_id; - - return $this; - } - /** - * Gets rejection_reason_code - * - * @return string - */ - public function getRejectionReasonCode() - { - return $this->container['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 - * - * @return self - */ - public function setRejectionReasonCode($rejection_reason_code) - { - $this->container['rejection_reason_code'] = $rejection_reason_code; - - return $this; - } - /** - * Gets rejection_reason_message - * - * @return string|null - */ - public function getRejectionReasonMessage() - { - return $this->container['rejection_reason_message']; - } - - /** - * Sets rejection_reason_message - * - * @param string|null $rejection_reason_message A localized human readable description of the rejected reason. - * - * @return self - */ - public function setRejectionReasonMessage($rejection_reason_message) - { - $this->container['rejection_reason_message'] = $rejection_reason_message; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/SellerInputDefinition.php b/lib/Model/MerchantFulfillmentV0/SellerInputDefinition.php deleted file mode 100644 index c1236d6c3..000000000 --- a/lib/Model/MerchantFulfillmentV0/SellerInputDefinition.php +++ /dev/null @@ -1,351 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerInputDefinition extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerInputDefinition'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_required' => 'bool', - 'data_type' => 'string', - 'constraints' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Constraint[]', - 'input_display_text' => 'string', - 'input_target' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\InputTargetType', - 'stored_value' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput', - 'restricted_set_values' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_required' => null, - 'data_type' => null, - 'constraints' => null, - 'input_display_text' => null, - 'input_target' => null, - 'stored_value' => null, - 'restricted_set_values' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_required' => 'IsRequired', - 'data_type' => 'DataType', - 'constraints' => 'Constraints', - 'input_display_text' => 'InputDisplayText', - 'input_target' => 'InputTarget', - 'stored_value' => 'StoredValue', - 'restricted_set_values' => 'RestrictedSetValues' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_required' => 'setIsRequired', - 'data_type' => 'setDataType', - 'constraints' => 'setConstraints', - 'input_display_text' => 'setInputDisplayText', - 'input_target' => 'setInputTarget', - 'stored_value' => 'setStoredValue', - 'restricted_set_values' => 'setRestrictedSetValues' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_required' => 'getIsRequired', - 'data_type' => 'getDataType', - 'constraints' => 'getConstraints', - 'input_display_text' => 'getInputDisplayText', - 'input_target' => 'getInputTarget', - 'stored_value' => 'getStoredValue', - 'restricted_set_values' => 'getRestrictedSetValues' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_required'] = $data['is_required'] ?? null; - $this->container['data_type'] = $data['data_type'] ?? null; - $this->container['constraints'] = $data['constraints'] ?? null; - $this->container['input_display_text'] = $data['input_display_text'] ?? null; - $this->container['input_target'] = $data['input_target'] ?? null; - $this->container['stored_value'] = $data['stored_value'] ?? null; - $this->container['restricted_set_values'] = $data['restricted_set_values'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_required'] === null) { - $invalidProperties[] = "'is_required' can't be null"; - } - if ($this->container['data_type'] === null) { - $invalidProperties[] = "'data_type' can't be null"; - } - if ($this->container['constraints'] === null) { - $invalidProperties[] = "'constraints' can't be null"; - } - if ($this->container['input_display_text'] === null) { - $invalidProperties[] = "'input_display_text' can't be null"; - } - if ($this->container['stored_value'] === null) { - $invalidProperties[] = "'stored_value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_required - * - * @return bool - */ - public function getIsRequired() - { - return $this->container['is_required']; - } - - /** - * Sets is_required - * - * @param bool $is_required When true, the additional input field is required. - * - * @return self - */ - public function setIsRequired($is_required) - { - $this->container['is_required'] = $is_required; - - return $this; - } - /** - * Gets data_type - * - * @return string - */ - public function getDataType() - { - return $this->container['data_type']; - } - - /** - * Sets data_type - * - * @param string $data_type The data type of the additional input field. - * - * @return self - */ - public function setDataType($data_type) - { - $this->container['data_type'] = $data_type; - - return $this; - } - /** - * Gets constraints - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Constraint[] - */ - public function getConstraints() - { - return $this->container['constraints']; - } - - /** - * Sets constraints - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Constraint[] $constraints List of constraints. - * - * @return self - */ - public function setConstraints($constraints) - { - $this->container['constraints'] = $constraints; - - return $this; - } - /** - * Gets input_display_text - * - * @return string - */ - public function getInputDisplayText() - { - return $this->container['input_display_text']; - } - - /** - * Sets input_display_text - * - * @param string $input_display_text The display text for the additional input field. - * - * @return self - */ - public function setInputDisplayText($input_display_text) - { - $this->container['input_display_text'] = $input_display_text; - - return $this; - } - /** - * Gets input_target - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\InputTargetType|null - */ - public function getInputTarget() - { - return $this->container['input_target']; - } - - /** - * Sets input_target - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\InputTargetType|null $input_target input_target - * - * @return self - */ - public function setInputTarget($input_target) - { - $this->container['input_target'] = $input_target; - - return $this; - } - /** - * Gets stored_value - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput - */ - public function getStoredValue() - { - return $this->container['stored_value']; - } - - /** - * Sets stored_value - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AdditionalSellerInput $stored_value stored_value - * - * @return self - */ - public function setStoredValue($stored_value) - { - $this->container['stored_value'] = $stored_value; - - return $this; - } - /** - * Gets restricted_set_values - * - * @return string[]|null - */ - public function getRestrictedSetValues() - { - return $this->container['restricted_set_values']; - } - - /** - * Sets restricted_set_values - * - * @param string[]|null $restricted_set_values The set of fixed values in an additional seller input. - * - * @return self - */ - public function setRestrictedSetValues($restricted_set_values) - { - $this->container['restricted_set_values'] = $restricted_set_values; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Shipment.php b/lib/Model/MerchantFulfillmentV0/Shipment.php deleted file mode 100644 index 2bbb824b2..000000000 --- a/lib/Model/MerchantFulfillmentV0/Shipment.php +++ /dev/null @@ -1,612 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Shipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Shipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'amazon_order_id' => 'string', - 'seller_order_id' => 'string', - 'item_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[]', - 'ship_from_address' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Address', - 'ship_to_address' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Address', - 'package_dimensions' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions', - 'weight' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight', - 'insurance' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount', - 'shipping_service' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService', - 'label' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Label', - 'status' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentStatus', - 'tracking_id' => 'string', - 'created_date' => 'string', - 'last_updated_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'amazon_order_id' => null, - 'seller_order_id' => null, - 'item_list' => null, - 'ship_from_address' => null, - 'ship_to_address' => null, - 'package_dimensions' => null, - 'weight' => null, - 'insurance' => null, - 'shipping_service' => null, - 'label' => null, - 'status' => null, - 'tracking_id' => null, - 'created_date' => null, - 'last_updated_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'ShipmentId', - 'amazon_order_id' => 'AmazonOrderId', - 'seller_order_id' => 'SellerOrderId', - 'item_list' => 'ItemList', - 'ship_from_address' => 'ShipFromAddress', - 'ship_to_address' => 'ShipToAddress', - 'package_dimensions' => 'PackageDimensions', - 'weight' => 'Weight', - 'insurance' => 'Insurance', - 'shipping_service' => 'ShippingService', - 'label' => 'Label', - 'status' => 'Status', - 'tracking_id' => 'TrackingId', - 'created_date' => 'CreatedDate', - 'last_updated_date' => 'LastUpdatedDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'amazon_order_id' => 'setAmazonOrderId', - 'seller_order_id' => 'setSellerOrderId', - 'item_list' => 'setItemList', - 'ship_from_address' => 'setShipFromAddress', - 'ship_to_address' => 'setShipToAddress', - 'package_dimensions' => 'setPackageDimensions', - 'weight' => 'setWeight', - 'insurance' => 'setInsurance', - 'shipping_service' => 'setShippingService', - 'label' => 'setLabel', - 'status' => 'setStatus', - 'tracking_id' => 'setTrackingId', - 'created_date' => 'setCreatedDate', - 'last_updated_date' => 'setLastUpdatedDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'amazon_order_id' => 'getAmazonOrderId', - 'seller_order_id' => 'getSellerOrderId', - 'item_list' => 'getItemList', - 'ship_from_address' => 'getShipFromAddress', - 'ship_to_address' => 'getShipToAddress', - 'package_dimensions' => 'getPackageDimensions', - 'weight' => 'getWeight', - 'insurance' => 'getInsurance', - 'shipping_service' => 'getShippingService', - 'label' => 'getLabel', - 'status' => 'getStatus', - 'tracking_id' => 'getTrackingId', - 'created_date' => 'getCreatedDate', - 'last_updated_date' => 'getLastUpdatedDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['item_list'] = $data['item_list'] ?? null; - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['ship_to_address'] = $data['ship_to_address'] ?? null; - $this->container['package_dimensions'] = $data['package_dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['insurance'] = $data['insurance'] ?? null; - $this->container['shipping_service'] = $data['shipping_service'] ?? null; - $this->container['label'] = $data['label'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['created_date'] = $data['created_date'] ?? null; - $this->container['last_updated_date'] = $data['last_updated_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if (!is_null($this->container['seller_order_id']) && (mb_strlen($this->container['seller_order_id']) > 64)) { - $invalidProperties[] = "invalid value for 'seller_order_id', the character length must be smaller than or equal to 64."; - } - - if ($this->container['item_list'] === null) { - $invalidProperties[] = "'item_list' can't be null"; - } - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['ship_to_address'] === null) { - $invalidProperties[] = "'ship_to_address' can't be null"; - } - if ($this->container['package_dimensions'] === null) { - $invalidProperties[] = "'package_dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - if ($this->container['insurance'] === null) { - $invalidProperties[] = "'insurance' can't be null"; - } - if ($this->container['shipping_service'] === null) { - $invalidProperties[] = "'shipping_service' can't be null"; - } - if ($this->container['label'] === null) { - $invalidProperties[] = "'label' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['created_date'] === null) { - $invalidProperties[] = "'created_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id An Amazon-defined shipment identifier. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id A seller-defined order identifier. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - if (!is_null($seller_order_id) && (mb_strlen($seller_order_id) > 64)) { - throw new \InvalidArgumentException('invalid length for $seller_order_id when calling Shipment., must be smaller than or equal to 64.'); - } - - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets item_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[] - */ - public function getItemList() - { - return $this->container['item_list']; - } - - /** - * Sets item_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[] $item_list The list of items to be included in a shipment. - * - * @return self - */ - public function setItemList($item_list) - { - $this->container['item_list'] = $item_list; - - return $this; - } - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets ship_to_address - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Address - */ - public function getShipToAddress() - { - return $this->container['ship_to_address']; - } - - /** - * Sets ship_to_address - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Address $ship_to_address ship_to_address - * - * @return self - */ - public function setShipToAddress($ship_to_address) - { - $this->container['ship_to_address'] = $ship_to_address; - - return $this; - } - /** - * Gets package_dimensions - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions - */ - public function getPackageDimensions() - { - return $this->container['package_dimensions']; - } - - /** - * Sets package_dimensions - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions $package_dimensions package_dimensions - * - * @return self - */ - public function setPackageDimensions($package_dimensions) - { - $this->container['package_dimensions'] = $package_dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets insurance - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount - */ - public function getInsurance() - { - return $this->container['insurance']; - } - - /** - * Sets insurance - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount $insurance insurance - * - * @return self - */ - public function setInsurance($insurance) - { - $this->container['insurance'] = $insurance; - - return $this; - } - /** - * Gets shipping_service - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService - */ - public function getShippingService() - { - return $this->container['shipping_service']; - } - - /** - * Sets shipping_service - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingService $shipping_service shipping_service - * - * @return self - */ - public function setShippingService($shipping_service) - { - $this->container['shipping_service'] = $shipping_service; - - return $this; - } - /** - * Gets label - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Label - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Label $label label - * - * @return self - */ - public function setLabel($label) - { - $this->container['label'] = $label; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShipmentStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets tracking_id - * - * @return string|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string|null $tracking_id The shipment tracking identifier provided by the carrier. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets created_date - * - * @return string - */ - public function getCreatedDate() - { - return $this->container['created_date']; - } - - /** - * Sets created_date - * - * @param string $created_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setCreatedDate($created_date) - { - $this->container['created_date'] = $created_date; - - return $this; - } - /** - * Gets last_updated_date - * - * @return string|null - */ - public function getLastUpdatedDate() - { - return $this->container['last_updated_date']; - } - - /** - * Sets last_updated_date - * - * @param string|null $last_updated_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setLastUpdatedDate($last_updated_date) - { - $this->container['last_updated_date'] = $last_updated_date; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ShipmentRequestDetails.php b/lib/Model/MerchantFulfillmentV0/ShipmentRequestDetails.php deleted file mode 100644 index 097153bb1..000000000 --- a/lib/Model/MerchantFulfillmentV0/ShipmentRequestDetails.php +++ /dev/null @@ -1,449 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentRequestDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentRequestDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'seller_order_id' => 'string', - 'item_list' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[]', - 'ship_from_address' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Address', - 'package_dimensions' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions', - 'weight' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\Weight', - 'must_arrive_by_date' => 'string', - 'ship_date' => 'string', - 'shipping_service_options' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions', - 'label_customization' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelCustomization' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'seller_order_id' => null, - 'item_list' => null, - 'ship_from_address' => null, - 'package_dimensions' => null, - 'weight' => null, - 'must_arrive_by_date' => null, - 'ship_date' => null, - 'shipping_service_options' => null, - 'label_customization' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'seller_order_id' => 'SellerOrderId', - 'item_list' => 'ItemList', - 'ship_from_address' => 'ShipFromAddress', - 'package_dimensions' => 'PackageDimensions', - 'weight' => 'Weight', - 'must_arrive_by_date' => 'MustArriveByDate', - 'ship_date' => 'ShipDate', - 'shipping_service_options' => 'ShippingServiceOptions', - 'label_customization' => 'LabelCustomization' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'seller_order_id' => 'setSellerOrderId', - 'item_list' => 'setItemList', - 'ship_from_address' => 'setShipFromAddress', - 'package_dimensions' => 'setPackageDimensions', - 'weight' => 'setWeight', - 'must_arrive_by_date' => 'setMustArriveByDate', - 'ship_date' => 'setShipDate', - 'shipping_service_options' => 'setShippingServiceOptions', - 'label_customization' => 'setLabelCustomization' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'seller_order_id' => 'getSellerOrderId', - 'item_list' => 'getItemList', - 'ship_from_address' => 'getShipFromAddress', - 'package_dimensions' => 'getPackageDimensions', - 'weight' => 'getWeight', - 'must_arrive_by_date' => 'getMustArriveByDate', - 'ship_date' => 'getShipDate', - 'shipping_service_options' => 'getShippingServiceOptions', - 'label_customization' => 'getLabelCustomization' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['item_list'] = $data['item_list'] ?? null; - $this->container['ship_from_address'] = $data['ship_from_address'] ?? null; - $this->container['package_dimensions'] = $data['package_dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['must_arrive_by_date'] = $data['must_arrive_by_date'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['shipping_service_options'] = $data['shipping_service_options'] ?? null; - $this->container['label_customization'] = $data['label_customization'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if (!is_null($this->container['seller_order_id']) && (mb_strlen($this->container['seller_order_id']) > 64)) { - $invalidProperties[] = "invalid value for 'seller_order_id', the character length must be smaller than or equal to 64."; - } - - if ($this->container['item_list'] === null) { - $invalidProperties[] = "'item_list' can't be null"; - } - if ($this->container['ship_from_address'] === null) { - $invalidProperties[] = "'ship_from_address' can't be null"; - } - if ($this->container['package_dimensions'] === null) { - $invalidProperties[] = "'package_dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - if ($this->container['shipping_service_options'] === null) { - $invalidProperties[] = "'shipping_service_options' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id A seller-defined order identifier. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - if (!is_null($seller_order_id) && (mb_strlen($seller_order_id) > 64)) { - throw new \InvalidArgumentException('invalid length for $seller_order_id when calling ShipmentRequestDetails., must be smaller than or equal to 64.'); - } - - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets item_list - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[] - */ - public function getItemList() - { - return $this->container['item_list']; - } - - /** - * Sets item_list - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\FBMItem[] $item_list The list of items to be included in a shipment. - * - * @return self - */ - public function setItemList($item_list) - { - $this->container['item_list'] = $item_list; - - return $this; - } - /** - * Gets ship_from_address - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Address - */ - public function getShipFromAddress() - { - return $this->container['ship_from_address']; - } - - /** - * Sets ship_from_address - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Address $ship_from_address ship_from_address - * - * @return self - */ - public function setShipFromAddress($ship_from_address) - { - $this->container['ship_from_address'] = $ship_from_address; - - return $this; - } - /** - * Gets package_dimensions - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions - */ - public function getPackageDimensions() - { - return $this->container['package_dimensions']; - } - - /** - * Sets package_dimensions - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\PackageDimensions $package_dimensions package_dimensions - * - * @return self - */ - public function setPackageDimensions($package_dimensions) - { - $this->container['package_dimensions'] = $package_dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets must_arrive_by_date - * - * @return string|null - */ - public function getMustArriveByDate() - { - return $this->container['must_arrive_by_date']; - } - - /** - * Sets must_arrive_by_date - * - * @param string|null $must_arrive_by_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setMustArriveByDate($must_arrive_by_date) - { - $this->container['must_arrive_by_date'] = $must_arrive_by_date; - - return $this; - } - /** - * Gets ship_date - * - * @return string|null - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string|null $ship_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets shipping_service_options - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions - */ - public function getShippingServiceOptions() - { - return $this->container['shipping_service_options']; - } - - /** - * Sets shipping_service_options - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions $shipping_service_options shipping_service_options - * - * @return self - */ - public function setShippingServiceOptions($shipping_service_options) - { - $this->container['shipping_service_options'] = $shipping_service_options; - - return $this; - } - /** - * Gets label_customization - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelCustomization|null - */ - public function getLabelCustomization() - { - return $this->container['label_customization']; - } - - /** - * Sets label_customization - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelCustomization|null $label_customization label_customization - * - * @return self - */ - public function setLabelCustomization($label_customization) - { - $this->container['label_customization'] = $label_customization; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ShipmentStatus.php b/lib/Model/MerchantFulfillmentV0/ShipmentStatus.php deleted file mode 100644 index e28ae096c..000000000 --- a/lib/Model/MerchantFulfillmentV0/ShipmentStatus.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ShippingOfferingFilter.php b/lib/Model/MerchantFulfillmentV0/ShippingOfferingFilter.php deleted file mode 100644 index 5d0c61dc9..000000000 --- a/lib/Model/MerchantFulfillmentV0/ShippingOfferingFilter.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingOfferingFilter extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingOfferingFilter'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'include_packing_slip_with_label' => 'bool', - 'include_complex_shipping_options' => 'bool', - 'carrier_will_pick_up' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption', - 'delivery_experience' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'include_packing_slip_with_label' => null, - 'include_complex_shipping_options' => null, - 'carrier_will_pick_up' => null, - 'delivery_experience' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', - 'include_complex_shipping_options' => 'IncludeComplexShippingOptions', - 'carrier_will_pick_up' => 'CarrierWillPickUp', - 'delivery_experience' => 'DeliveryExperience' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', - 'include_complex_shipping_options' => 'setIncludeComplexShippingOptions', - 'carrier_will_pick_up' => 'setCarrierWillPickUp', - 'delivery_experience' => 'setDeliveryExperience' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', - 'include_complex_shipping_options' => 'getIncludeComplexShippingOptions', - 'carrier_will_pick_up' => 'getCarrierWillPickUp', - 'delivery_experience' => 'getDeliveryExperience' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['include_packing_slip_with_label'] = $data['include_packing_slip_with_label'] ?? null; - $this->container['include_complex_shipping_options'] = $data['include_complex_shipping_options'] ?? null; - $this->container['carrier_will_pick_up'] = $data['carrier_will_pick_up'] ?? null; - $this->container['delivery_experience'] = $data['delivery_experience'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets include_packing_slip_with_label - * - * @return bool|null - */ - public function getIncludePackingSlipWithLabel() - { - return $this->container['include_packing_slip_with_label']; - } - - /** - * Sets include_packing_slip_with_label - * - * @param bool|null $include_packing_slip_with_label When true, include a packing slip with the label. - * - * @return self - */ - public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) - { - $this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label; - - return $this; - } - /** - * Gets include_complex_shipping_options - * - * @return bool|null - */ - public function getIncludeComplexShippingOptions() - { - return $this->container['include_complex_shipping_options']; - } - - /** - * Sets include_complex_shipping_options - * - * @param bool|null $include_complex_shipping_options When true, include complex shipping options. - * - * @return self - */ - public function setIncludeComplexShippingOptions($include_complex_shipping_options) - { - $this->container['include_complex_shipping_options'] = $include_complex_shipping_options; - - return $this; - } - /** - * Gets carrier_will_pick_up - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption|null - */ - public function getCarrierWillPickUp() - { - return $this->container['carrier_will_pick_up']; - } - - /** - * Sets carrier_will_pick_up - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption|null $carrier_will_pick_up carrier_will_pick_up - * - * @return self - */ - public function setCarrierWillPickUp($carrier_will_pick_up) - { - $this->container['carrier_will_pick_up'] = $carrier_will_pick_up; - - return $this; - } - /** - * Gets delivery_experience - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption|null - */ - public function getDeliveryExperience() - { - return $this->container['delivery_experience']; - } - - /** - * Sets delivery_experience - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceOption|null $delivery_experience delivery_experience - * - * @return self - */ - public function setDeliveryExperience($delivery_experience) - { - $this->container['delivery_experience'] = $delivery_experience; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ShippingService.php b/lib/Model/MerchantFulfillmentV0/ShippingService.php deleted file mode 100644 index 360084bf9..000000000 --- a/lib/Model/MerchantFulfillmentV0/ShippingService.php +++ /dev/null @@ -1,534 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingService extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingService'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_service_name' => 'string', - 'carrier_name' => 'string', - 'shipping_service_id' => 'string', - 'shipping_service_offer_id' => 'string', - 'ship_date' => 'string', - 'earliest_estimated_delivery_date' => 'string', - 'latest_estimated_delivery_date' => 'string', - 'rate' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount', - 'shipping_service_options' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions', - 'available_shipping_service_options' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableShippingServiceOptions', - 'available_label_formats' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat[]', - 'available_format_options_for_label' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOption[]', - 'requires_additional_seller_inputs' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_service_name' => null, - 'carrier_name' => null, - 'shipping_service_id' => null, - 'shipping_service_offer_id' => null, - 'ship_date' => null, - 'earliest_estimated_delivery_date' => null, - 'latest_estimated_delivery_date' => null, - 'rate' => null, - 'shipping_service_options' => null, - 'available_shipping_service_options' => null, - 'available_label_formats' => null, - 'available_format_options_for_label' => null, - 'requires_additional_seller_inputs' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_service_name' => 'ShippingServiceName', - 'carrier_name' => 'CarrierName', - 'shipping_service_id' => 'ShippingServiceId', - 'shipping_service_offer_id' => 'ShippingServiceOfferId', - 'ship_date' => 'ShipDate', - 'earliest_estimated_delivery_date' => 'EarliestEstimatedDeliveryDate', - 'latest_estimated_delivery_date' => 'LatestEstimatedDeliveryDate', - 'rate' => 'Rate', - 'shipping_service_options' => 'ShippingServiceOptions', - 'available_shipping_service_options' => 'AvailableShippingServiceOptions', - 'available_label_formats' => 'AvailableLabelFormats', - 'available_format_options_for_label' => 'AvailableFormatOptionsForLabel', - 'requires_additional_seller_inputs' => 'RequiresAdditionalSellerInputs' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipping_service_name' => 'setShippingServiceName', - 'carrier_name' => 'setCarrierName', - 'shipping_service_id' => 'setShippingServiceId', - 'shipping_service_offer_id' => 'setShippingServiceOfferId', - 'ship_date' => 'setShipDate', - 'earliest_estimated_delivery_date' => 'setEarliestEstimatedDeliveryDate', - 'latest_estimated_delivery_date' => 'setLatestEstimatedDeliveryDate', - 'rate' => 'setRate', - 'shipping_service_options' => 'setShippingServiceOptions', - 'available_shipping_service_options' => 'setAvailableShippingServiceOptions', - 'available_label_formats' => 'setAvailableLabelFormats', - 'available_format_options_for_label' => 'setAvailableFormatOptionsForLabel', - 'requires_additional_seller_inputs' => 'setRequiresAdditionalSellerInputs' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipping_service_name' => 'getShippingServiceName', - 'carrier_name' => 'getCarrierName', - 'shipping_service_id' => 'getShippingServiceId', - 'shipping_service_offer_id' => 'getShippingServiceOfferId', - 'ship_date' => 'getShipDate', - 'earliest_estimated_delivery_date' => 'getEarliestEstimatedDeliveryDate', - 'latest_estimated_delivery_date' => 'getLatestEstimatedDeliveryDate', - 'rate' => 'getRate', - 'shipping_service_options' => 'getShippingServiceOptions', - 'available_shipping_service_options' => 'getAvailableShippingServiceOptions', - 'available_label_formats' => 'getAvailableLabelFormats', - 'available_format_options_for_label' => 'getAvailableFormatOptionsForLabel', - 'requires_additional_seller_inputs' => 'getRequiresAdditionalSellerInputs' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_service_name'] = $data['shipping_service_name'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['shipping_service_id'] = $data['shipping_service_id'] ?? null; - $this->container['shipping_service_offer_id'] = $data['shipping_service_offer_id'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['earliest_estimated_delivery_date'] = $data['earliest_estimated_delivery_date'] ?? null; - $this->container['latest_estimated_delivery_date'] = $data['latest_estimated_delivery_date'] ?? null; - $this->container['rate'] = $data['rate'] ?? null; - $this->container['shipping_service_options'] = $data['shipping_service_options'] ?? null; - $this->container['available_shipping_service_options'] = $data['available_shipping_service_options'] ?? null; - $this->container['available_label_formats'] = $data['available_label_formats'] ?? null; - $this->container['available_format_options_for_label'] = $data['available_format_options_for_label'] ?? null; - $this->container['requires_additional_seller_inputs'] = $data['requires_additional_seller_inputs'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipping_service_name'] === null) { - $invalidProperties[] = "'shipping_service_name' can't be null"; - } - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['shipping_service_id'] === null) { - $invalidProperties[] = "'shipping_service_id' can't be null"; - } - if ($this->container['shipping_service_offer_id'] === null) { - $invalidProperties[] = "'shipping_service_offer_id' can't be null"; - } - if ($this->container['ship_date'] === null) { - $invalidProperties[] = "'ship_date' can't be null"; - } - if ($this->container['rate'] === null) { - $invalidProperties[] = "'rate' can't be null"; - } - if ($this->container['shipping_service_options'] === null) { - $invalidProperties[] = "'shipping_service_options' can't be null"; - } - if ($this->container['requires_additional_seller_inputs'] === null) { - $invalidProperties[] = "'requires_additional_seller_inputs' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipping_service_name - * - * @return string - */ - public function getShippingServiceName() - { - return $this->container['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\". - * - * @return self - */ - public function setShippingServiceName($shipping_service_name) - { - $this->container['shipping_service_name'] = $shipping_service_name; - - return $this; - } - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The name of the carrier. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets shipping_service_id - * - * @return string - */ - public function getShippingServiceId() - { - return $this->container['shipping_service_id']; - } - - /** - * Sets shipping_service_id - * - * @param string $shipping_service_id An Amazon-defined shipping service identifier. - * - * @return self - */ - public function setShippingServiceId($shipping_service_id) - { - $this->container['shipping_service_id'] = $shipping_service_id; - - return $this; - } - /** - * Gets shipping_service_offer_id - * - * @return string - */ - public function getShippingServiceOfferId() - { - return $this->container['shipping_service_offer_id']; - } - - /** - * Sets shipping_service_offer_id - * - * @param string $shipping_service_offer_id An Amazon-defined shipping service offer identifier. - * - * @return self - */ - public function setShippingServiceOfferId($shipping_service_offer_id) - { - $this->container['shipping_service_offer_id'] = $shipping_service_offer_id; - - return $this; - } - /** - * Gets ship_date - * - * @return string - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string $ship_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets earliest_estimated_delivery_date - * - * @return string|null - */ - public function getEarliestEstimatedDeliveryDate() - { - return $this->container['earliest_estimated_delivery_date']; - } - - /** - * Sets earliest_estimated_delivery_date - * - * @param string|null $earliest_estimated_delivery_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setEarliestEstimatedDeliveryDate($earliest_estimated_delivery_date) - { - $this->container['earliest_estimated_delivery_date'] = $earliest_estimated_delivery_date; - - return $this; - } - /** - * Gets latest_estimated_delivery_date - * - * @return string|null - */ - public function getLatestEstimatedDeliveryDate() - { - return $this->container['latest_estimated_delivery_date']; - } - - /** - * Sets latest_estimated_delivery_date - * - * @param string|null $latest_estimated_delivery_date A timestamp in ISO 8601 format. - * - * @return self - */ - public function setLatestEstimatedDeliveryDate($latest_estimated_delivery_date) - { - $this->container['latest_estimated_delivery_date'] = $latest_estimated_delivery_date; - - return $this; - } - /** - * Gets rate - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount - */ - public function getRate() - { - return $this->container['rate']; - } - - /** - * Sets rate - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount $rate rate - * - * @return self - */ - public function setRate($rate) - { - $this->container['rate'] = $rate; - - return $this; - } - /** - * Gets shipping_service_options - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions - */ - public function getShippingServiceOptions() - { - return $this->container['shipping_service_options']; - } - - /** - * Sets shipping_service_options - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\ShippingServiceOptions $shipping_service_options shipping_service_options - * - * @return self - */ - public function setShippingServiceOptions($shipping_service_options) - { - $this->container['shipping_service_options'] = $shipping_service_options; - - return $this; - } - /** - * Gets available_shipping_service_options - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableShippingServiceOptions|null - */ - public function getAvailableShippingServiceOptions() - { - return $this->container['available_shipping_service_options']; - } - - /** - * Sets available_shipping_service_options - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\AvailableShippingServiceOptions|null $available_shipping_service_options available_shipping_service_options - * - * @return self - */ - public function setAvailableShippingServiceOptions($available_shipping_service_options) - { - $this->container['available_shipping_service_options'] = $available_shipping_service_options; - - return $this; - } - /** - * Gets available_label_formats - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat[]|null - */ - public function getAvailableLabelFormats() - { - return $this->container['available_label_formats']; - } - - /** - * Sets available_label_formats - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat[]|null $available_label_formats List of label formats. - * - * @return self - */ - public function setAvailableLabelFormats($available_label_formats) - { - $this->container['available_label_formats'] = $available_label_formats; - - return $this; - } - /** - * Gets available_format_options_for_label - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOption[]|null - */ - public function getAvailableFormatOptionsForLabel() - { - return $this->container['available_format_options_for_label']; - } - - /** - * Sets available_format_options_for_label - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormatOption[]|null $available_format_options_for_label The available label formats. - * - * @return self - */ - public function setAvailableFormatOptionsForLabel($available_format_options_for_label) - { - $this->container['available_format_options_for_label'] = $available_format_options_for_label; - - return $this; - } - /** - * Gets requires_additional_seller_inputs - * - * @return bool - */ - public function getRequiresAdditionalSellerInputs() - { - return $this->container['requires_additional_seller_inputs']; - } - - /** - * Sets requires_additional_seller_inputs - * - * @param bool $requires_additional_seller_inputs When true, additional seller inputs are required. - * - * @return self - */ - public function setRequiresAdditionalSellerInputs($requires_additional_seller_inputs) - { - $this->container['requires_additional_seller_inputs'] = $requires_additional_seller_inputs; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/ShippingServiceOptions.php b/lib/Model/MerchantFulfillmentV0/ShippingServiceOptions.php deleted file mode 100644 index 97297f0af..000000000 --- a/lib/Model/MerchantFulfillmentV0/ShippingServiceOptions.php +++ /dev/null @@ -1,284 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingServiceOptions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingServiceOptions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'delivery_experience' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceType', - 'declared_value' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount', - 'carrier_will_pick_up' => 'bool', - 'carrier_will_pick_up_option' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption', - 'label_format' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'delivery_experience' => null, - 'declared_value' => null, - 'carrier_will_pick_up' => null, - 'carrier_will_pick_up_option' => null, - 'label_format' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'delivery_experience' => 'DeliveryExperience', - 'declared_value' => 'DeclaredValue', - 'carrier_will_pick_up' => 'CarrierWillPickUp', - 'carrier_will_pick_up_option' => 'CarrierWillPickUpOption', - 'label_format' => 'LabelFormat' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'delivery_experience' => 'setDeliveryExperience', - 'declared_value' => 'setDeclaredValue', - 'carrier_will_pick_up' => 'setCarrierWillPickUp', - 'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption', - 'label_format' => 'setLabelFormat' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'delivery_experience' => 'getDeliveryExperience', - 'declared_value' => 'getDeclaredValue', - 'carrier_will_pick_up' => 'getCarrierWillPickUp', - 'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption', - 'label_format' => 'getLabelFormat' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['delivery_experience'] = $data['delivery_experience'] ?? null; - $this->container['declared_value'] = $data['declared_value'] ?? null; - $this->container['carrier_will_pick_up'] = $data['carrier_will_pick_up'] ?? null; - $this->container['carrier_will_pick_up_option'] = $data['carrier_will_pick_up_option'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['delivery_experience'] === null) { - $invalidProperties[] = "'delivery_experience' can't be null"; - } - if ($this->container['carrier_will_pick_up'] === null) { - $invalidProperties[] = "'carrier_will_pick_up' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets delivery_experience - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceType - */ - public function getDeliveryExperience() - { - return $this->container['delivery_experience']; - } - - /** - * Sets delivery_experience - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\DeliveryExperienceType $delivery_experience delivery_experience - * - * @return self - */ - public function setDeliveryExperience($delivery_experience) - { - $this->container['delivery_experience'] = $delivery_experience; - - return $this; - } - /** - * Gets declared_value - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount|null - */ - public function getDeclaredValue() - { - return $this->container['declared_value']; - } - - /** - * Sets declared_value - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CurrencyAmount|null $declared_value declared_value - * - * @return self - */ - public function setDeclaredValue($declared_value) - { - $this->container['declared_value'] = $declared_value; - - return $this; - } - /** - * Gets carrier_will_pick_up - * - * @return bool - */ - public function getCarrierWillPickUp() - { - return $this->container['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). - * - * @return self - */ - public function setCarrierWillPickUp($carrier_will_pick_up) - { - $this->container['carrier_will_pick_up'] = $carrier_will_pick_up; - - return $this; - } - /** - * Gets carrier_will_pick_up_option - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption|null - */ - public function getCarrierWillPickUpOption() - { - return $this->container['carrier_will_pick_up_option']; - } - - /** - * Sets carrier_will_pick_up_option - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\CarrierWillPickUpOption|null $carrier_will_pick_up_option carrier_will_pick_up_option - * - * @return self - */ - public function setCarrierWillPickUpOption($carrier_will_pick_up_option) - { - $this->container['carrier_will_pick_up_option'] = $carrier_will_pick_up_option; - - return $this; - } - /** - * Gets label_format - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\LabelFormat|null $label_format label_format - * - * @return self - */ - public function setLabelFormat($label_format) - { - $this->container['label_format'] = $label_format; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/StandardIdForLabel.php b/lib/Model/MerchantFulfillmentV0/StandardIdForLabel.php deleted file mode 100644 index 47faa0627..000000000 --- a/lib/Model/MerchantFulfillmentV0/StandardIdForLabel.php +++ /dev/null @@ -1,85 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.php b/lib/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.php deleted file mode 100644 index b37ed2157..000000000 --- a/lib/Model/MerchantFulfillmentV0/TemporarilyUnavailableCarrier.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TemporarilyUnavailableCarrier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TemporarilyUnavailableCarrier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The name of the carrier. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.php b/lib/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.php deleted file mode 100644 index 30642bbd9..000000000 --- a/lib/Model/MerchantFulfillmentV0/TermsAndConditionsNotAcceptedCarrier.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TermsAndConditionsNotAcceptedCarrier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TermsAndConditionsNotAcceptedCarrier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carrier_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carrier_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carrier_name' => 'CarrierName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carrier_name' => 'setCarrierName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carrier_name' => 'getCarrierName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The name of the carrier. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/UnitOfLength.php b/lib/Model/MerchantFulfillmentV0/UnitOfLength.php deleted file mode 100644 index 8c78453f6..000000000 --- a/lib/Model/MerchantFulfillmentV0/UnitOfLength.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/UnitOfWeight.php b/lib/Model/MerchantFulfillmentV0/UnitOfWeight.php deleted file mode 100644 index 47e6419d0..000000000 --- a/lib/Model/MerchantFulfillmentV0/UnitOfWeight.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/MerchantFulfillmentV0/Weight.php b/lib/Model/MerchantFulfillmentV0/Weight.php deleted file mode 100644 index bb5f64517..000000000 --- a/lib/Model/MerchantFulfillmentV0/Weight.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'double', - 'unit' => '\SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfWeight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => 'double', - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'Value', - 'unit' => 'Unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets value - * - * @return double - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param double $value The weight value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfWeight - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param \SellingPartnerApi\Model\MerchantFulfillmentV0\UnitOfWeight $unit unit - * - * @return self - */ - public function setUnit($unit) - { - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/Attachment.php b/lib/Model/MessagingV1/Attachment.php deleted file mode 100644 index 44339a0d2..000000000 --- a/lib/Model/MessagingV1/Attachment.php +++ /dev/null @@ -1,197 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Attachment Class Doc Comment - * - * @category Class - * @description Represents a file uploaded to a destination that was created by the [createUploadDestinationForResource](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Selling Partner API for Uploads. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Attachment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Attachment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'upload_destination_id' => 'string', - 'file_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'upload_destination_id' => null, - 'file_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'upload_destination_id' => 'uploadDestinationId', - 'file_name' => 'fileName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'upload_destination_id' => 'setUploadDestinationId', - 'file_name' => 'setFileName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'upload_destination_id' => 'getUploadDestinationId', - 'file_name' => 'getFileName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['upload_destination_id'] = $data['upload_destination_id'] ?? null; - $this->container['file_name'] = $data['file_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['upload_destination_id'] === null) { - $invalidProperties[] = "'upload_destination_id' can't be null"; - } - if ($this->container['file_name'] === null) { - $invalidProperties[] = "'file_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets upload_destination_id - * - * @return string - */ - public function getUploadDestinationId() - { - return $this->container['upload_destination_id']; - } - - /** - * Sets upload_destination_id - * - * @param string $upload_destination_id The identifier of the upload destination. Get this value by calling the [createUploadDestinationForResource](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Uploads API. - * - * @return self - */ - public function setUploadDestinationId($upload_destination_id) - { - $this->container['upload_destination_id'] = $upload_destination_id; - - return $this; - } - /** - * Gets file_name - * - * @return string - */ - public function getFileName() - { - return $this->container['file_name']; - } - - /** - * Sets file_name - * - * @param string $file_name The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded. - * - * @return self - */ - public function setFileName($file_name) - { - $this->container['file_name'] = $file_name; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateAmazonMotorsRequest.php b/lib/Model/MessagingV1/CreateAmazonMotorsRequest.php deleted file mode 100644 index db65b1fa5..000000000 --- a/lib/Model/MessagingV1/CreateAmazonMotorsRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateAmazonMotorsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createAmazonMotors operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateAmazonMotorsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateAmazonMotorsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'attachments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attachments' => 'attachments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attachments' => 'setAttachments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attachments' => 'getAttachments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attachments'] = $data['attachments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateAmazonMotorsResponse.php b/lib/Model/MessagingV1/CreateAmazonMotorsResponse.php deleted file mode 100644 index 10da0b50a..000000000 --- a/lib/Model/MessagingV1/CreateAmazonMotorsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateAmazonMotorsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createAmazonMotors operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateAmazonMotorsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateAmazonMotorsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.php b/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.php deleted file mode 100644 index e4b84aa57..000000000 --- a/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmCustomizationDetailsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the confirmCustomizationDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmCustomizationDetailsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmCustomizationDetailsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string', - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null, - 'attachments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text', - 'attachments' => 'attachments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText', - 'attachments' => 'setAttachments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText', - 'attachments' => 'getAttachments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - $this->container['attachments'] = $data['attachments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 800)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 800."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to customization details are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 800)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmCustomizationDetailsRequest., must be smaller than or equal to 800.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmCustomizationDetailsRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.php b/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.php deleted file mode 100644 index b2f1ffa4e..000000000 --- a/lib/Model/MessagingV1/CreateConfirmCustomizationDetailsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmCustomizationDetailsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the confirmCustomizationDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmCustomizationDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmCustomizationDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.php b/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.php deleted file mode 100644 index 80ff11acc..000000000 --- a/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmDeliveryDetailsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createConfirmDeliveryDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmDeliveryDetailsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmDeliveryDetailsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 2000)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 2000."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to order delivery are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 2000)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmDeliveryDetailsRequest., must be smaller than or equal to 2000.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmDeliveryDetailsRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.php b/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.php deleted file mode 100644 index 60a94996e..000000000 --- a/lib/Model/MessagingV1/CreateConfirmDeliveryDetailsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmDeliveryDetailsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createConfirmDeliveryDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmDeliveryDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmDeliveryDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmOrderDetailsRequest.php b/lib/Model/MessagingV1/CreateConfirmOrderDetailsRequest.php deleted file mode 100644 index 8ae397fcc..000000000 --- a/lib/Model/MessagingV1/CreateConfirmOrderDetailsRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmOrderDetailsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createConfirmOrderDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmOrderDetailsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmOrderDetailsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 2000)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 2000."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to order completion are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 2000)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmOrderDetailsRequest., must be smaller than or equal to 2000.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmOrderDetailsRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmOrderDetailsResponse.php b/lib/Model/MessagingV1/CreateConfirmOrderDetailsResponse.php deleted file mode 100644 index d7690184e..000000000 --- a/lib/Model/MessagingV1/CreateConfirmOrderDetailsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmOrderDetailsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createConfirmOrderDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmOrderDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmOrderDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmServiceDetailsRequest.php b/lib/Model/MessagingV1/CreateConfirmServiceDetailsRequest.php deleted file mode 100644 index 44825ce29..000000000 --- a/lib/Model/MessagingV1/CreateConfirmServiceDetailsRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmServiceDetailsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createConfirmServiceDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmServiceDetailsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmServiceDetailsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 2000)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 2000."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to Home Service calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 2000)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmServiceDetailsRequest., must be smaller than or equal to 2000.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateConfirmServiceDetailsRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateConfirmServiceDetailsResponse.php b/lib/Model/MessagingV1/CreateConfirmServiceDetailsResponse.php deleted file mode 100644 index 486e3aca7..000000000 --- a/lib/Model/MessagingV1/CreateConfirmServiceDetailsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateConfirmServiceDetailsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createConfirmServiceDetails operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateConfirmServiceDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateConfirmServiceDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateDigitalAccessKeyRequest.php b/lib/Model/MessagingV1/CreateDigitalAccessKeyRequest.php deleted file mode 100644 index 49859d9ec..000000000 --- a/lib/Model/MessagingV1/CreateDigitalAccessKeyRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateDigitalAccessKeyRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createDigitalAccessKey operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateDigitalAccessKeyRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateDigitalAccessKeyRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string', - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null, - 'attachments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text', - 'attachments' => 'attachments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText', - 'attachments' => 'setAttachments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText', - 'attachments' => 'getAttachments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - $this->container['attachments'] = $data['attachments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 400)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 400."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 400)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateDigitalAccessKeyRequest., must be smaller than or equal to 400.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateDigitalAccessKeyRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateDigitalAccessKeyResponse.php b/lib/Model/MessagingV1/CreateDigitalAccessKeyResponse.php deleted file mode 100644 index c626ac288..000000000 --- a/lib/Model/MessagingV1/CreateDigitalAccessKeyResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateDigitalAccessKeyResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createDigitalAccessKey operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateDigitalAccessKeyResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateDigitalAccessKeyResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateLegalDisclosureRequest.php b/lib/Model/MessagingV1/CreateLegalDisclosureRequest.php deleted file mode 100644 index 5387debf5..000000000 --- a/lib/Model/MessagingV1/CreateLegalDisclosureRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateLegalDisclosureRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createLegalDisclosure operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateLegalDisclosureRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateLegalDisclosureRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'attachments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attachments' => 'attachments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attachments' => 'setAttachments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attachments' => 'getAttachments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attachments'] = $data['attachments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateLegalDisclosureResponse.php b/lib/Model/MessagingV1/CreateLegalDisclosureResponse.php deleted file mode 100644 index 3bf3c9f32..000000000 --- a/lib/Model/MessagingV1/CreateLegalDisclosureResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateLegalDisclosureResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createLegalDisclosure operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateLegalDisclosureResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateLegalDisclosureResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.php b/lib/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.php deleted file mode 100644 index d83d19352..000000000 --- a/lib/Model/MessagingV1/CreateNegativeFeedbackRemovalResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateNegativeFeedbackRemovalResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createNegativeFeedbackRemoval operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateNegativeFeedbackRemovalResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateNegativeFeedbackRemovalResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateUnexpectedProblemRequest.php b/lib/Model/MessagingV1/CreateUnexpectedProblemRequest.php deleted file mode 100644 index 018dd54b1..000000000 --- a/lib/Model/MessagingV1/CreateUnexpectedProblemRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateUnexpectedProblemRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createUnexpectedProblem operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateUnexpectedProblemRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateUnexpectedProblemRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'text' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'text' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'text' => 'text' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'text' => 'setText' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'text' => 'getText' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['text'] = $data['text'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) > 2000)) { - $invalidProperties[] = "invalid value for 'text', the character length must be smaller than or equal to 2000."; - } - - if (!is_null($this->container['text']) && (mb_strlen($this->container['text']) < 1)) { - $invalidProperties[] = "invalid value for 'text', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets text - * - * @return string|null - */ - public function getText() - { - return $this->container['text']; - } - - /** - * Sets text - * - * @param string|null $text The text to be sent to the buyer. Only links related to unexpected problem calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setText($text) - { - if (!is_null($text) && (mb_strlen($text) > 2000)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateUnexpectedProblemRequest., must be smaller than or equal to 2000.'); - } - if (!is_null($text) && (mb_strlen($text) < 1)) { - throw new \InvalidArgumentException('invalid length for $text when calling CreateUnexpectedProblemRequest., must be bigger than or equal to 1.'); - } - - $this->container['text'] = $text; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateUnexpectedProblemResponse.php b/lib/Model/MessagingV1/CreateUnexpectedProblemResponse.php deleted file mode 100644 index ab73b08d8..000000000 --- a/lib/Model/MessagingV1/CreateUnexpectedProblemResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateUnexpectedProblemResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createUnexpectedProblem operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateUnexpectedProblemResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateUnexpectedProblemResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateWarrantyRequest.php b/lib/Model/MessagingV1/CreateWarrantyRequest.php deleted file mode 100644 index cba8a7605..000000000 --- a/lib/Model/MessagingV1/CreateWarrantyRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateWarrantyRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createWarranty operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateWarrantyRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateWarrantyRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]', - 'coverage_start_date' => 'string', - 'coverage_end_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'attachments' => null, - 'coverage_start_date' => null, - 'coverage_end_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attachments' => 'attachments', - 'coverage_start_date' => 'coverageStartDate', - 'coverage_end_date' => 'coverageEndDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attachments' => 'setAttachments', - 'coverage_start_date' => 'setCoverageStartDate', - 'coverage_end_date' => 'setCoverageEndDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attachments' => 'getAttachments', - 'coverage_start_date' => 'getCoverageStartDate', - 'coverage_end_date' => 'getCoverageEndDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attachments'] = $data['attachments'] ?? null; - $this->container['coverage_start_date'] = $data['coverage_start_date'] ?? null; - $this->container['coverage_end_date'] = $data['coverage_end_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } - /** - * Gets coverage_start_date - * - * @return string|null - */ - public function getCoverageStartDate() - { - return $this->container['coverage_start_date']; - } - - /** - * Sets coverage_start_date - * - * @param string|null $coverage_start_date The start date of the warranty coverage to include in the message to the buyer. Must be in ISO 8601 format. - * - * @return self - */ - public function setCoverageStartDate($coverage_start_date) - { - $this->container['coverage_start_date'] = $coverage_start_date; - - return $this; - } - /** - * Gets coverage_end_date - * - * @return string|null - */ - public function getCoverageEndDate() - { - return $this->container['coverage_end_date']; - } - - /** - * Sets coverage_end_date - * - * @param string|null $coverage_end_date The end date of the warranty coverage to include in the message to the buyer. Must be in ISO 8601 format. - * - * @return self - */ - public function setCoverageEndDate($coverage_end_date) - { - $this->container['coverage_end_date'] = $coverage_end_date; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/CreateWarrantyResponse.php b/lib/Model/MessagingV1/CreateWarrantyResponse.php deleted file mode 100644 index 727094868..000000000 --- a/lib/Model/MessagingV1/CreateWarrantyResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateWarrantyResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createWarranty operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateWarrantyResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateWarrantyResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/Error.php b/lib/Model/MessagingV1/Error.php deleted file mode 100644 index 72b495d7f..000000000 --- a/lib/Model/MessagingV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Error Class Doc Comment - * - * @category Class - * @description Error response returned when the request is unsuccessful. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetAttributesResponse.php b/lib/Model/MessagingV1/GetAttributesResponse.php deleted file mode 100644 index 9fc57a97d..000000000 --- a/lib/Model/MessagingV1/GetAttributesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetAttributesResponse Class Doc Comment - * - * @category Class - * @description The response schema for the GetAttributes operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAttributesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAttributesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer' => '\SellingPartnerApi\Model\MessagingV1\GetAttributesResponseBuyer', - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'buyer' => 'buyer', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'buyer' => 'setBuyer', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'buyer' => 'getBuyer', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer'] = $data['buyer'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets buyer - * - * @return \SellingPartnerApi\Model\MessagingV1\GetAttributesResponseBuyer|null - */ - public function getBuyer() - { - return $this->container['buyer']; - } - - /** - * Sets buyer - * - * @param \SellingPartnerApi\Model\MessagingV1\GetAttributesResponseBuyer|null $buyer buyer - * - * @return self - */ - public function setBuyer($buyer) - { - $this->container['buyer'] = $buyer; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetAttributesResponseBuyer.php b/lib/Model/MessagingV1/GetAttributesResponseBuyer.php deleted file mode 100644 index 17e734115..000000000 --- a/lib/Model/MessagingV1/GetAttributesResponseBuyer.php +++ /dev/null @@ -1,162 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetAttributesResponseBuyer Class Doc Comment - * - * @category Class - * @description The list of attributes related to the buyer. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAttributesResponseBuyer extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAttributesResponse_buyer'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'locale' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'locale' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'locale' => 'locale' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'locale' => 'setLocale' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'locale' => 'getLocale' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['locale'] = $data['locale'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets locale - * - * @return string|null - */ - public function getLocale() - { - return $this->container['locale']; - } - - /** - * Sets locale - * - * @param string|null $locale The buyer's language of preference, indicated with a locale-specific language tag. Examples: \"en-US\", \"zh-CN\", and \"en-GB\". - * - * @return self - */ - public function setLocale($locale) - { - $this->container['locale'] = $locale; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionResponse.php b/lib/Model/MessagingV1/GetMessagingActionResponse.php deleted file mode 100644 index 54f593b35..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionResponse.php +++ /dev/null @@ -1,249 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionResponse Class Doc Comment - * - * @category Class - * @description Describes a messaging 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. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseLinks', - '_embedded' => '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseEmbedded', - 'payload' => '\SellingPartnerApi\Model\MessagingV1\MessagingAction', - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - '_embedded' => null, - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - '_links' => '_links', - '_embedded' => '_embedded', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - '_links' => 'setLinks', - '_embedded' => 'setEmbedded', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - '_links' => 'getLinks', - '_embedded' => 'getEmbedded', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['_embedded'] = $data['_embedded'] ?? null; - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets _embedded - * - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseEmbedded|null - */ - public function getEmbedded() - { - return $this->container['_embedded']; - } - - /** - * Sets _embedded - * - * @param \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponseEmbedded|null $_embedded _embedded - * - * @return self - */ - public function setEmbedded($_embedded) - { - $this->container['_embedded'] = $_embedded; - - return $this; - } - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\MessagingV1\MessagingAction|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\MessagingV1\MessagingAction|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionResponseEmbedded.php b/lib/Model/MessagingV1/GetMessagingActionResponseEmbedded.php deleted file mode 100644 index 01303ab28..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionResponseEmbedded.php +++ /dev/null @@ -1,161 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionResponseEmbedded Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionResponseEmbedded extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionResponse__embedded'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'schema' => '\SellingPartnerApi\Model\MessagingV1\GetSchemaResponse' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'schema' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'schema' => 'schema' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'schema' => 'setSchema' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'schema' => 'getSchema' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['schema'] = $data['schema'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets schema - * - * @return \SellingPartnerApi\Model\MessagingV1\GetSchemaResponse|null - */ - public function getSchema() - { - return $this->container['schema']; - } - - /** - * Sets schema - * - * @param \SellingPartnerApi\Model\MessagingV1\GetSchemaResponse|null $schema schema - * - * @return self - */ - public function setSchema($schema) - { - $this->container['schema'] = $schema; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionResponseLinks.php b/lib/Model/MessagingV1/GetMessagingActionResponseLinks.php deleted file mode 100644 index ba9b7f008..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionResponseLinks.php +++ /dev/null @@ -1,196 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\MessagingV1\LinkObject', - 'schema' => '\SellingPartnerApi\Model\MessagingV1\LinkObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null, - 'schema' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self', - 'schema' => 'schema' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf', - 'schema' => 'setSchema' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf', - 'schema' => 'getSchema' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - $this->container['schema'] = $data['schema'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - if ($this->container['schema'] === null) { - $invalidProperties[] = "'schema' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\MessagingV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\MessagingV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } - /** - * Gets schema - * - * @return \SellingPartnerApi\Model\MessagingV1\LinkObject - */ - public function getSchema() - { - return $this->container['schema']; - } - - /** - * Sets schema - * - * @param \SellingPartnerApi\Model\MessagingV1\LinkObject $schema schema - * - * @return self - */ - public function setSchema($schema) - { - $this->container['schema'] = $schema; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponse.php b/lib/Model/MessagingV1/GetMessagingActionsForOrderResponse.php deleted file mode 100644 index 909ff0b24..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponse.php +++ /dev/null @@ -1,245 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionsForOrderResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getMessagingActionsForOrder operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionsForOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionsForOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseLinks', - '_embedded' => '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseEmbedded', - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - '_embedded' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - '_links' => '_links', - '_embedded' => '_embedded', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - '_links' => 'setLinks', - '_embedded' => 'setEmbedded', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - '_links' => 'getLinks', - '_embedded' => 'getEmbedded', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['_embedded'] = $data['_embedded'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets _embedded - * - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseEmbedded|null - */ - public function getEmbedded() - { - return $this->container['_embedded']; - } - - /** - * Sets _embedded - * - * @param \SellingPartnerApi\Model\MessagingV1\GetMessagingActionsForOrderResponseEmbedded|null $_embedded _embedded - * - * @return self - */ - public function setEmbedded($_embedded) - { - $this->container['_embedded'] = $_embedded; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.php b/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.php deleted file mode 100644 index 5f9dc82b6..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseEmbedded.php +++ /dev/null @@ -1,164 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionsForOrderResponseEmbedded Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionsForOrderResponseEmbedded extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionsForOrderResponse__embedded'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'actions' => '\SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'actions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'actions' => 'actions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'actions' => 'setActions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'actions' => 'getActions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['actions'] = $data['actions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets actions - * - * @return \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponse[] - */ - public function getActions() - { - return $this->container['actions']; - } - - /** - * Sets actions - * - * @param \SellingPartnerApi\Model\MessagingV1\GetMessagingActionResponse[] $actions actions - * - * @return self - */ - public function setActions($actions) - { - $this->container['actions'] = $actions; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.php b/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.php deleted file mode 100644 index bd8ae37ff..000000000 --- a/lib/Model/MessagingV1/GetMessagingActionsForOrderResponseLinks.php +++ /dev/null @@ -1,196 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetMessagingActionsForOrderResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMessagingActionsForOrderResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMessagingActionsForOrderResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\MessagingV1\LinkObject', - 'actions' => '\SellingPartnerApi\Model\MessagingV1\LinkObject[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null, - 'actions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self', - 'actions' => 'actions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf', - 'actions' => 'setActions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf', - 'actions' => 'getActions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - $this->container['actions'] = $data['actions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\MessagingV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\MessagingV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } - /** - * Gets actions - * - * @return \SellingPartnerApi\Model\MessagingV1\LinkObject[] - */ - public function getActions() - { - return $this->container['actions']; - } - - /** - * Sets actions - * - * @param \SellingPartnerApi\Model\MessagingV1\LinkObject[] $actions Eligible actions for the specified amazonOrderId. - * - * @return self - */ - public function setActions($actions) - { - $this->container['actions'] = $actions; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetSchemaResponse.php b/lib/Model/MessagingV1/GetSchemaResponse.php deleted file mode 100644 index 2c7bc3b40..000000000 --- a/lib/Model/MessagingV1/GetSchemaResponse.php +++ /dev/null @@ -1,219 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSchemaResponse Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSchemaResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSchemaResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\MessagingV1\GetSchemaResponseLinks', - 'payload' => 'map[string,object]', - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - '_links' => '_links', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - '_links' => 'setLinks', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - '_links' => 'getLinks', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\MessagingV1\GetSchemaResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\MessagingV1\GetSchemaResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets payload - * - * @return map[string,object]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param map[string,object]|null $payload A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/GetSchemaResponseLinks.php b/lib/Model/MessagingV1/GetSchemaResponseLinks.php deleted file mode 100644 index d2f19c25a..000000000 --- a/lib/Model/MessagingV1/GetSchemaResponseLinks.php +++ /dev/null @@ -1,164 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSchemaResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSchemaResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSchemaResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\MessagingV1\LinkObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\MessagingV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\MessagingV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/InvoiceRequest.php b/lib/Model/MessagingV1/InvoiceRequest.php deleted file mode 100644 index 81209ae74..000000000 --- a/lib/Model/MessagingV1/InvoiceRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * InvoiceRequest Class Doc Comment - * - * @category Class - * @description The request schema for the sendInvoice operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'attachments' => '\SellingPartnerApi\Model\MessagingV1\Attachment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'attachments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attachments' => 'attachments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attachments' => 'setAttachments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attachments' => 'getAttachments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attachments'] = $data['attachments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets attachments - * - * @return \SellingPartnerApi\Model\MessagingV1\Attachment[]|null - */ - public function getAttachments() - { - return $this->container['attachments']; - } - - /** - * Sets attachments - * - * @param \SellingPartnerApi\Model\MessagingV1\Attachment[]|null $attachments Attachments to include in the message to the buyer. - * - * @return self - */ - public function setAttachments($attachments) - { - $this->container['attachments'] = $attachments; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/InvoiceResponse.php b/lib/Model/MessagingV1/InvoiceResponse.php deleted file mode 100644 index 30513a0da..000000000 --- a/lib/Model/MessagingV1/InvoiceResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * InvoiceResponse Class Doc Comment - * - * @category Class - * @description The response schema for the sendInvoice operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\MessagingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\MessagingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\MessagingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/LinkObject.php b/lib/Model/MessagingV1/LinkObject.php deleted file mode 100644 index ee699b8e3..000000000 --- a/lib/Model/MessagingV1/LinkObject.php +++ /dev/null @@ -1,194 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * LinkObject Class Doc Comment - * - * @category Class - * @description A Link object. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class LinkObject extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LinkObject'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'href' => 'string', - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'href' => null, - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'href' => 'href', - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'href' => 'setHref', - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'href' => 'getHref', - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['href'] = $data['href'] ?? null; - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['href'] === null) { - $invalidProperties[] = "'href' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets href - * - * @return string - */ - public function getHref() - { - return $this->container['href']; - } - - /** - * Sets href - * - * @param string $href A URI for this object. - * - * @return self - */ - public function setHref($href) - { - $this->container['href'] = $href; - - return $this; - } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name An identifier for this object. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/MessagingV1/MessagingAction.php b/lib/Model/MessagingV1/MessagingAction.php deleted file mode 100644 index 9b3fe9ba3..000000000 --- a/lib/Model/MessagingV1/MessagingAction.php +++ /dev/null @@ -1,165 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\MessagingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * MessagingAction Class Doc Comment - * - * @category Class - * @description A simple object containing the name of the template. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class MessagingAction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MessagingAction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name name - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php deleted file mode 100644 index c9f1ebb9a..000000000 --- a/lib/Model/ModelInterface.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AggregationFilter extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AggregationFilter'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'aggregation_settings' => '\SellingPartnerApi\Model\NotificationsV1\AggregationSettings' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'aggregation_settings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'aggregation_settings' => 'aggregationSettings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'aggregation_settings' => 'setAggregationSettings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'aggregation_settings' => 'getAggregationSettings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['aggregation_settings'] = $data['aggregation_settings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets aggregation_settings - * - * @return \SellingPartnerApi\Model\NotificationsV1\AggregationSettings|null - */ - public function getAggregationSettings() - { - return $this->container['aggregation_settings']; - } - - /** - * Sets aggregation_settings - * - * @param \SellingPartnerApi\Model\NotificationsV1\AggregationSettings|null $aggregation_settings aggregation_settings - * - * @return self - */ - public function setAggregationSettings($aggregation_settings) - { - $this->container['aggregation_settings'] = $aggregation_settings; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/AggregationSettings.php b/lib/Model/NotificationsV1/AggregationSettings.php deleted file mode 100644 index e6ecc0970..000000000 --- a/lib/Model/NotificationsV1/AggregationSettings.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AggregationSettings extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AggregationSettings'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'aggregation_time_period' => '\SellingPartnerApi\Model\NotificationsV1\AggregationTimePeriod' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'aggregation_time_period' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'aggregation_time_period' => 'aggregationTimePeriod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'aggregation_time_period' => 'setAggregationTimePeriod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'aggregation_time_period' => 'getAggregationTimePeriod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['aggregation_time_period'] = $data['aggregation_time_period'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['aggregation_time_period'] === null) { - $invalidProperties[] = "'aggregation_time_period' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets aggregation_time_period - * - * @return \SellingPartnerApi\Model\NotificationsV1\AggregationTimePeriod - */ - public function getAggregationTimePeriod() - { - return $this->container['aggregation_time_period']; - } - - /** - * Sets aggregation_time_period - * - * @param \SellingPartnerApi\Model\NotificationsV1\AggregationTimePeriod $aggregation_time_period aggregation_time_period - * - * @return self - */ - public function setAggregationTimePeriod($aggregation_time_period) - { - $this->container['aggregation_time_period'] = $aggregation_time_period; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/AggregationTimePeriod.php b/lib/Model/NotificationsV1/AggregationTimePeriod.php deleted file mode 100644 index 589dcab56..000000000 --- a/lib/Model/NotificationsV1/AggregationTimePeriod.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/NotificationsV1/CreateDestinationRequest.php b/lib/Model/NotificationsV1/CreateDestinationRequest.php deleted file mode 100644 index 7a523d5df..000000000 --- a/lib/Model/NotificationsV1/CreateDestinationRequest.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateDestinationRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateDestinationRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_specification' => '\SellingPartnerApi\Model\NotificationsV1\DestinationResourceSpecification', - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_specification' => null, - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource_specification' => 'resourceSpecification', - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource_specification' => 'setResourceSpecification', - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource_specification' => 'getResourceSpecification', - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_specification'] = $data['resource_specification'] ?? null; - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resource_specification'] === null) { - $invalidProperties[] = "'resource_specification' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets resource_specification - * - * @return \SellingPartnerApi\Model\NotificationsV1\DestinationResourceSpecification - */ - public function getResourceSpecification() - { - return $this->container['resource_specification']; - } - - /** - * Sets resource_specification - * - * @param \SellingPartnerApi\Model\NotificationsV1\DestinationResourceSpecification $resource_specification resource_specification - * - * @return self - */ - public function setResourceSpecification($resource_specification) - { - $this->container['resource_specification'] = $resource_specification; - - return $this; - } - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name A developer-defined name to help identify this destination. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/CreateDestinationResponse.php b/lib/Model/NotificationsV1/CreateDestinationResponse.php deleted file mode 100644 index 7c3850747..000000000 --- a/lib/Model/NotificationsV1/CreateDestinationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateDestinationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateDestinationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Destination', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Destination|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Destination|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/CreateSubscriptionRequest.php b/lib/Model/NotificationsV1/CreateSubscriptionRequest.php deleted file mode 100644 index dcf3d5db1..000000000 --- a/lib/Model/NotificationsV1/CreateSubscriptionRequest.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateSubscriptionRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateSubscriptionRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload_version' => 'string', - 'destination_id' => 'string', - 'processing_directive' => '\SellingPartnerApi\Model\NotificationsV1\ProcessingDirective' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload_version' => null, - 'destination_id' => null, - 'processing_directive' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'payload_version' => 'payloadVersion', - 'destination_id' => 'destinationId', - 'processing_directive' => 'processingDirective' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'payload_version' => 'setPayloadVersion', - 'destination_id' => 'setDestinationId', - 'processing_directive' => 'setProcessingDirective' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'payload_version' => 'getPayloadVersion', - 'destination_id' => 'getDestinationId', - 'processing_directive' => 'getProcessingDirective' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload_version'] = $data['payload_version'] ?? null; - $this->container['destination_id'] = $data['destination_id'] ?? null; - $this->container['processing_directive'] = $data['processing_directive'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets payload_version - * - * @return string|null - */ - public function getPayloadVersion() - { - return $this->container['payload_version']; - } - - /** - * Sets payload_version - * - * @param string|null $payload_version The version of the payload object to be used in the notification. - * - * @return self - */ - public function setPayloadVersion($payload_version) - { - $this->container['payload_version'] = $payload_version; - - return $this; - } - /** - * Gets destination_id - * - * @return string|null - */ - public function getDestinationId() - { - return $this->container['destination_id']; - } - - /** - * Sets destination_id - * - * @param string|null $destination_id The identifier for the destination where notifications will be delivered. - * - * @return self - */ - public function setDestinationId($destination_id) - { - $this->container['destination_id'] = $destination_id; - - return $this; - } - /** - * Gets processing_directive - * - * @return \SellingPartnerApi\Model\NotificationsV1\ProcessingDirective|null - */ - public function getProcessingDirective() - { - return $this->container['processing_directive']; - } - - /** - * Sets processing_directive - * - * @param \SellingPartnerApi\Model\NotificationsV1\ProcessingDirective|null $processing_directive processing_directive - * - * @return self - */ - public function setProcessingDirective($processing_directive) - { - $this->container['processing_directive'] = $processing_directive; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/CreateSubscriptionResponse.php b/lib/Model/NotificationsV1/CreateSubscriptionResponse.php deleted file mode 100644 index ed4b46124..000000000 --- a/lib/Model/NotificationsV1/CreateSubscriptionResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateSubscriptionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateSubscriptionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Subscription', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Subscription|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Subscription|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/DeleteDestinationResponse.php b/lib/Model/NotificationsV1/DeleteDestinationResponse.php deleted file mode 100644 index 14154c37c..000000000 --- a/lib/Model/NotificationsV1/DeleteDestinationResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DeleteDestinationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DeleteDestinationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/DeleteSubscriptionByIdResponse.php b/lib/Model/NotificationsV1/DeleteSubscriptionByIdResponse.php deleted file mode 100644 index e6cfc3ac1..000000000 --- a/lib/Model/NotificationsV1/DeleteSubscriptionByIdResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DeleteSubscriptionByIdResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DeleteSubscriptionByIdResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/Destination.php b/lib/Model/NotificationsV1/Destination.php deleted file mode 100644 index 322464a0f..000000000 --- a/lib/Model/NotificationsV1/Destination.php +++ /dev/null @@ -1,237 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Destination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Destination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'destination_id' => 'string', - 'resource' => '\SellingPartnerApi\Model\NotificationsV1\DestinationResource' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'destination_id' => null, - 'resource' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'destination_id' => 'destinationId', - 'resource' => 'resource' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'destination_id' => 'setDestinationId', - 'resource' => 'setResource' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'destination_id' => 'getDestinationId', - 'resource' => 'getResource' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['destination_id'] = $data['destination_id'] ?? null; - $this->container['resource'] = $data['resource'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 256)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 256."; - } - - if ($this->container['destination_id'] === null) { - $invalidProperties[] = "'destination_id' can't be null"; - } - if ($this->container['resource'] === null) { - $invalidProperties[] = "'resource' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The developer-defined name for this destination. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 256)) { - throw new \InvalidArgumentException('invalid length for $name when calling Destination., must be smaller than or equal to 256.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets destination_id - * - * @return string - */ - public function getDestinationId() - { - return $this->container['destination_id']; - } - - /** - * Sets destination_id - * - * @param string $destination_id The destination identifier generated when you created the destination. - * - * @return self - */ - public function setDestinationId($destination_id) - { - $this->container['destination_id'] = $destination_id; - - return $this; - } - /** - * Gets resource - * - * @return \SellingPartnerApi\Model\NotificationsV1\DestinationResource - */ - public function getResource() - { - return $this->container['resource']; - } - - /** - * Sets resource - * - * @param \SellingPartnerApi\Model\NotificationsV1\DestinationResource $resource resource - * - * @return self - */ - public function setResource($resource) - { - $this->container['resource'] = $resource; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/DestinationResource.php b/lib/Model/NotificationsV1/DestinationResource.php deleted file mode 100644 index 154d47ce7..000000000 --- a/lib/Model/NotificationsV1/DestinationResource.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DestinationResource extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DestinationResource'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sqs' => '\SellingPartnerApi\Model\NotificationsV1\SqsResource', - 'event_bridge' => '\SellingPartnerApi\Model\NotificationsV1\EventBridgeResource' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sqs' => null, - 'event_bridge' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'sqs' => 'sqs', - 'event_bridge' => 'eventBridge' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'sqs' => 'setSqs', - 'event_bridge' => 'setEventBridge' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'sqs' => 'getSqs', - 'event_bridge' => 'getEventBridge' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sqs'] = $data['sqs'] ?? null; - $this->container['event_bridge'] = $data['event_bridge'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets sqs - * - * @return \SellingPartnerApi\Model\NotificationsV1\SqsResource|null - */ - public function getSqs() - { - return $this->container['sqs']; - } - - /** - * Sets sqs - * - * @param \SellingPartnerApi\Model\NotificationsV1\SqsResource|null $sqs sqs - * - * @return self - */ - public function setSqs($sqs) - { - $this->container['sqs'] = $sqs; - - return $this; - } - /** - * Gets event_bridge - * - * @return \SellingPartnerApi\Model\NotificationsV1\EventBridgeResource|null - */ - public function getEventBridge() - { - return $this->container['event_bridge']; - } - - /** - * Sets event_bridge - * - * @param \SellingPartnerApi\Model\NotificationsV1\EventBridgeResource|null $event_bridge event_bridge - * - * @return self - */ - public function setEventBridge($event_bridge) - { - $this->container['event_bridge'] = $event_bridge; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/DestinationResourceSpecification.php b/lib/Model/NotificationsV1/DestinationResourceSpecification.php deleted file mode 100644 index a7589ee5d..000000000 --- a/lib/Model/NotificationsV1/DestinationResourceSpecification.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DestinationResourceSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DestinationResourceSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sqs' => '\SellingPartnerApi\Model\NotificationsV1\SqsResource', - 'event_bridge' => '\SellingPartnerApi\Model\NotificationsV1\EventBridgeResourceSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sqs' => null, - 'event_bridge' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'sqs' => 'sqs', - 'event_bridge' => 'eventBridge' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'sqs' => 'setSqs', - 'event_bridge' => 'setEventBridge' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'sqs' => 'getSqs', - 'event_bridge' => 'getEventBridge' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sqs'] = $data['sqs'] ?? null; - $this->container['event_bridge'] = $data['event_bridge'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets sqs - * - * @return \SellingPartnerApi\Model\NotificationsV1\SqsResource|null - */ - public function getSqs() - { - return $this->container['sqs']; - } - - /** - * Sets sqs - * - * @param \SellingPartnerApi\Model\NotificationsV1\SqsResource|null $sqs sqs - * - * @return self - */ - public function setSqs($sqs) - { - $this->container['sqs'] = $sqs; - - return $this; - } - /** - * Gets event_bridge - * - * @return \SellingPartnerApi\Model\NotificationsV1\EventBridgeResourceSpecification|null - */ - public function getEventBridge() - { - return $this->container['event_bridge']; - } - - /** - * Sets event_bridge - * - * @param \SellingPartnerApi\Model\NotificationsV1\EventBridgeResourceSpecification|null $event_bridge event_bridge - * - * @return self - */ - public function setEventBridge($event_bridge) - { - $this->container['event_bridge'] = $event_bridge; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/Error.php b/lib/Model/NotificationsV1/Error.php deleted file mode 100644 index 14d69b89d..000000000 --- a/lib/Model/NotificationsV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/EventBridgeResource.php b/lib/Model/NotificationsV1/EventBridgeResource.php deleted file mode 100644 index f852fb612..000000000 --- a/lib/Model/NotificationsV1/EventBridgeResource.php +++ /dev/null @@ -1,237 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EventBridgeResource extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EventBridgeResource'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'region' => 'string', - 'account_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'region' => null, - 'account_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'region' => 'region', - 'account_id' => 'accountId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'region' => 'setRegion', - 'account_id' => 'setAccountId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'region' => 'getRegion', - 'account_id' => 'getAccountId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['region'] = $data['region'] ?? null; - $this->container['account_id'] = $data['account_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 256)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 256."; - } - - if ($this->container['region'] === null) { - $invalidProperties[] = "'region' can't be null"; - } - if ($this->container['account_id'] === null) { - $invalidProperties[] = "'account_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the partner event source associated with the destination. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 256)) { - throw new \InvalidArgumentException('invalid length for $name when calling EventBridgeResource., must be smaller than or equal to 256.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets region - * - * @return string - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string $region The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https://docs.aws.amazon.com/general/latest/gr/ev.html. - * - * @return self - */ - public function setRegion($region) - { - $this->container['region'] = $region; - - return $this; - } - /** - * Gets account_id - * - * @return string - */ - public function getAccountId() - { - return $this->container['account_id']; - } - - /** - * Sets account_id - * - * @param string $account_id The identifier for the AWS account that is responsible for charges related to receiving notifications. - * - * @return self - */ - public function setAccountId($account_id) - { - $this->container['account_id'] = $account_id; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/EventBridgeResourceSpecification.php b/lib/Model/NotificationsV1/EventBridgeResourceSpecification.php deleted file mode 100644 index 563d3cc2e..000000000 --- a/lib/Model/NotificationsV1/EventBridgeResourceSpecification.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EventBridgeResourceSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EventBridgeResourceSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'region' => 'string', - 'account_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'region' => null, - 'account_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'region' => 'region', - 'account_id' => 'accountId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'region' => 'setRegion', - 'account_id' => 'setAccountId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'region' => 'getRegion', - 'account_id' => 'getAccountId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['region'] = $data['region'] ?? null; - $this->container['account_id'] = $data['account_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['region'] === null) { - $invalidProperties[] = "'region' can't be null"; - } - if ($this->container['account_id'] === null) { - $invalidProperties[] = "'account_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets region - * - * @return string - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string $region The AWS region in which you will be receiving the notifications. - * - * @return self - */ - public function setRegion($region) - { - $this->container['region'] = $region; - - return $this; - } - /** - * Gets account_id - * - * @return string - */ - public function getAccountId() - { - return $this->container['account_id']; - } - - /** - * Sets account_id - * - * @param string $account_id The identifier for the AWS account that is responsible for charges related to receiving notifications. - * - * @return self - */ - public function setAccountId($account_id) - { - $this->container['account_id'] = $account_id; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/EventFilter.php b/lib/Model/NotificationsV1/EventFilter.php deleted file mode 100644 index 83182eaae..000000000 --- a/lib/Model/NotificationsV1/EventFilter.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EventFilter extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EventFilter'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'aggregation_settings' => '\SellingPartnerApi\Model\NotificationsV1\AggregationSettings', - 'marketplace_ids' => 'string[]', - 'order_change_types' => '\SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]', - 'event_filter_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'aggregation_settings' => null, - 'marketplace_ids' => null, - 'order_change_types' => null, - 'event_filter_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'aggregation_settings' => 'aggregationSettings', - 'marketplace_ids' => 'marketplaceIds', - 'order_change_types' => 'orderChangeTypes', - 'event_filter_type' => 'eventFilterType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'aggregation_settings' => 'setAggregationSettings', - 'marketplace_ids' => 'setMarketplaceIds', - 'order_change_types' => 'setOrderChangeTypes', - 'event_filter_type' => 'setEventFilterType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'aggregation_settings' => 'getAggregationSettings', - 'marketplace_ids' => 'getMarketplaceIds', - 'order_change_types' => 'getOrderChangeTypes', - 'event_filter_type' => 'getEventFilterType' - ]; - - - - const EVENT_FILTER_TYPE_ANY_OFFER_CHANGED = 'ANY_OFFER_CHANGED'; - const EVENT_FILTER_TYPE_ORDER_CHANGE = 'ORDER_CHANGE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEventFilterTypeAllowableValues() - { - $baseVals = [ - self::EVENT_FILTER_TYPE_ANY_OFFER_CHANGED, - self::EVENT_FILTER_TYPE_ORDER_CHANGE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['aggregation_settings'] = $data['aggregation_settings'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['order_change_types'] = $data['order_change_types'] ?? null; - $this->container['event_filter_type'] = $data['event_filter_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['event_filter_type'] === null) { - $invalidProperties[] = "'event_filter_type' can't be null"; - } - $allowedValues = $this->getEventFilterTypeAllowableValues(); - if ( - !is_null($this->container['event_filter_type']) && - !in_array(strtoupper($this->container['event_filter_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'event_filter_type', must be one of '%s'", - $this->container['event_filter_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets aggregation_settings - * - * @return \SellingPartnerApi\Model\NotificationsV1\AggregationSettings|null - */ - public function getAggregationSettings() - { - return $this->container['aggregation_settings']; - } - - /** - * Sets aggregation_settings - * - * @param \SellingPartnerApi\Model\NotificationsV1\AggregationSettings|null $aggregation_settings aggregation_settings - * - * @return self - */ - public function setAggregationSettings($aggregation_settings) - { - $this->container['aggregation_settings'] = $aggregation_settings; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[]|null - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[]|null $marketplace_ids A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets order_change_types - * - * @return \SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]|null - */ - public function getOrderChangeTypes() - { - return $this->container['order_change_types']; - } - - /** - * Sets order_change_types - * - * @param \SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]|null $order_change_types A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list. - * - * @return self - */ - public function setOrderChangeTypes($order_change_types) - { - $this->container['order_change_types'] = $order_change_types; - - return $this; - } - /** - * Gets event_filter_type - * - * @return string - */ - public function getEventFilterType() - { - return $this->container['event_filter_type']; - } - - /** - * Sets event_filter_type - * - * @param string $event_filter_type An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. - * - * @return self - */ - public function setEventFilterType($event_filter_type) - { - $allowedValues = $this->getEventFilterTypeAllowableValues(); - if (!in_array(strtoupper($event_filter_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'event_filter_type', must be one of '%s'", - $event_filter_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['event_filter_type'] = $event_filter_type; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/EventFilterAllOf.php b/lib/Model/NotificationsV1/EventFilterAllOf.php deleted file mode 100644 index 6600ac0a6..000000000 --- a/lib/Model/NotificationsV1/EventFilterAllOf.php +++ /dev/null @@ -1,208 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EventFilterAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EventFilter_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'event_filter_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'event_filter_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'event_filter_type' => 'eventFilterType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'event_filter_type' => 'setEventFilterType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'event_filter_type' => 'getEventFilterType' - ]; - - - - const EVENT_FILTER_TYPE_ANY_OFFER_CHANGED = 'ANY_OFFER_CHANGED'; - const EVENT_FILTER_TYPE_ORDER_CHANGE = 'ORDER_CHANGE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEventFilterTypeAllowableValues() - { - $baseVals = [ - self::EVENT_FILTER_TYPE_ANY_OFFER_CHANGED, - self::EVENT_FILTER_TYPE_ORDER_CHANGE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['event_filter_type'] = $data['event_filter_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['event_filter_type'] === null) { - $invalidProperties[] = "'event_filter_type' can't be null"; - } - $allowedValues = $this->getEventFilterTypeAllowableValues(); - if ( - !is_null($this->container['event_filter_type']) && - !in_array(strtoupper($this->container['event_filter_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'event_filter_type', must be one of '%s'", - $this->container['event_filter_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets event_filter_type - * - * @return string - */ - public function getEventFilterType() - { - return $this->container['event_filter_type']; - } - - /** - * Sets event_filter_type - * - * @param string $event_filter_type An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported. - * - * @return self - */ - public function setEventFilterType($event_filter_type) - { - $allowedValues = $this->getEventFilterTypeAllowableValues(); - if (!in_array(strtoupper($event_filter_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'event_filter_type', must be one of '%s'", - $event_filter_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['event_filter_type'] = $event_filter_type; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/GetDestinationResponse.php b/lib/Model/NotificationsV1/GetDestinationResponse.php deleted file mode 100644 index fb120a5ab..000000000 --- a/lib/Model/NotificationsV1/GetDestinationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetDestinationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetDestinationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Destination', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Destination|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Destination|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/GetDestinationsResponse.php b/lib/Model/NotificationsV1/GetDestinationsResponse.php deleted file mode 100644 index 1882488d2..000000000 --- a/lib/Model/NotificationsV1/GetDestinationsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetDestinationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetDestinationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Destination[]', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Destination[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Destination[]|null $payload A list of destinations. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/GetSubscriptionByIdResponse.php b/lib/Model/NotificationsV1/GetSubscriptionByIdResponse.php deleted file mode 100644 index ae75fe1a3..000000000 --- a/lib/Model/NotificationsV1/GetSubscriptionByIdResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSubscriptionByIdResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSubscriptionByIdResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Subscription', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Subscription|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Subscription|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/GetSubscriptionResponse.php b/lib/Model/NotificationsV1/GetSubscriptionResponse.php deleted file mode 100644 index b0e14731b..000000000 --- a/lib/Model/NotificationsV1/GetSubscriptionResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSubscriptionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSubscriptionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\NotificationsV1\Subscription', - 'errors' => '\SellingPartnerApi\Model\NotificationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\NotificationsV1\Subscription|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\NotificationsV1\Subscription|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\NotificationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\NotificationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/MarketplaceFilter.php b/lib/Model/NotificationsV1/MarketplaceFilter.php deleted file mode 100644 index df735d5e5..000000000 --- a/lib/Model/NotificationsV1/MarketplaceFilter.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MarketplaceFilter extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarketplaceFilter'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_ids' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_ids' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_ids' => 'marketplaceIds' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_ids' => 'setMarketplaceIds' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_ids' => 'getMarketplaceIds' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets marketplace_ids - * - * @return string[]|null - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[]|null $marketplace_ids A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/OrderChangeTypeEnum.php b/lib/Model/NotificationsV1/OrderChangeTypeEnum.php deleted file mode 100644 index 260e273bb..000000000 --- a/lib/Model/NotificationsV1/OrderChangeTypeEnum.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/NotificationsV1/OrderChangeTypeFilter.php b/lib/Model/NotificationsV1/OrderChangeTypeFilter.php deleted file mode 100644 index 643ae06d3..000000000 --- a/lib/Model/NotificationsV1/OrderChangeTypeFilter.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderChangeTypeFilter extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderChangeTypeFilter'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_change_types' => '\SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_change_types' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_change_types' => 'orderChangeTypes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_change_types' => 'setOrderChangeTypes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_change_types' => 'getOrderChangeTypes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_change_types'] = $data['order_change_types'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets order_change_types - * - * @return \SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]|null - */ - public function getOrderChangeTypes() - { - return $this->container['order_change_types']; - } - - /** - * Sets order_change_types - * - * @param \SellingPartnerApi\Model\NotificationsV1\OrderChangeTypeEnum[]|null $order_change_types A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list. - * - * @return self - */ - public function setOrderChangeTypes($order_change_types) - { - $this->container['order_change_types'] = $order_change_types; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/ProcessingDirective.php b/lib/Model/NotificationsV1/ProcessingDirective.php deleted file mode 100644 index 34c59e797..000000000 --- a/lib/Model/NotificationsV1/ProcessingDirective.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProcessingDirective extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProcessingDirective'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'event_filter' => '\SellingPartnerApi\Model\NotificationsV1\EventFilter' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'event_filter' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'event_filter' => 'eventFilter' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'event_filter' => 'setEventFilter' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'event_filter' => 'getEventFilter' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['event_filter'] = $data['event_filter'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets event_filter - * - * @return \SellingPartnerApi\Model\NotificationsV1\EventFilter|null - */ - public function getEventFilter() - { - return $this->container['event_filter']; - } - - /** - * Sets event_filter - * - * @param \SellingPartnerApi\Model\NotificationsV1\EventFilter|null $event_filter event_filter - * - * @return self - */ - public function setEventFilter($event_filter) - { - $this->container['event_filter'] = $event_filter; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/SqsResource.php b/lib/Model/NotificationsV1/SqsResource.php deleted file mode 100644 index 2e4d8e71c..000000000 --- a/lib/Model/NotificationsV1/SqsResource.php +++ /dev/null @@ -1,180 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SqsResource extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SqsResource'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'arn' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'arn' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'arn' => 'arn' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'arn' => 'setArn' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'arn' => 'getArn' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['arn'] = $data['arn'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['arn'] === null) { - $invalidProperties[] = "'arn' can't be null"; - } - if ((mb_strlen($this->container['arn']) > 1000)) { - $invalidProperties[] = "invalid value for 'arn', the character length must be smaller than or equal to 1000."; - } - - if (!preg_match("/^arn:aws:sqs:\\S+:\\S+:\\S+/", $this->container['arn'])) { - $invalidProperties[] = "invalid value for 'arn', must be conform to the pattern /^arn:aws:sqs:\\S+:\\S+:\\S+/."; - } - - return $invalidProperties; - } - - - /** - * Gets arn - * - * @return string - */ - public function getArn() - { - return $this->container['arn']; - } - - /** - * Sets arn - * - * @param string $arn The Amazon Resource Name (ARN) associated with the SQS queue. - * - * @return self - */ - public function setArn($arn) - { - if ((mb_strlen($arn) > 1000)) { - throw new \InvalidArgumentException('invalid length for $arn when calling SqsResource., must be smaller than or equal to 1000.'); - } - if ((!preg_match("/^arn:aws:sqs:\\S+:\\S+:\\S+/", $arn))) { - throw new \InvalidArgumentException("invalid value for $arn when calling SqsResource., must conform to the pattern /^arn:aws:sqs:\\S+:\\S+:\\S+/."); - } - - $this->container['arn'] = $arn; - - return $this; - } -} - - diff --git a/lib/Model/NotificationsV1/Subscription.php b/lib/Model/NotificationsV1/Subscription.php deleted file mode 100644 index 43caa6029..000000000 --- a/lib/Model/NotificationsV1/Subscription.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Subscription extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Subscription'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'subscription_id' => 'string', - 'payload_version' => 'string', - 'destination_id' => 'string', - 'processing_directive' => '\SellingPartnerApi\Model\NotificationsV1\ProcessingDirective' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'subscription_id' => null, - 'payload_version' => null, - 'destination_id' => null, - 'processing_directive' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'subscription_id' => 'subscriptionId', - 'payload_version' => 'payloadVersion', - 'destination_id' => 'destinationId', - 'processing_directive' => 'processingDirective' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'subscription_id' => 'setSubscriptionId', - 'payload_version' => 'setPayloadVersion', - 'destination_id' => 'setDestinationId', - 'processing_directive' => 'setProcessingDirective' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'subscription_id' => 'getSubscriptionId', - 'payload_version' => 'getPayloadVersion', - 'destination_id' => 'getDestinationId', - 'processing_directive' => 'getProcessingDirective' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['subscription_id'] = $data['subscription_id'] ?? null; - $this->container['payload_version'] = $data['payload_version'] ?? null; - $this->container['destination_id'] = $data['destination_id'] ?? null; - $this->container['processing_directive'] = $data['processing_directive'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['subscription_id'] === null) { - $invalidProperties[] = "'subscription_id' can't be null"; - } - if ($this->container['payload_version'] === null) { - $invalidProperties[] = "'payload_version' can't be null"; - } - if ($this->container['destination_id'] === null) { - $invalidProperties[] = "'destination_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets subscription_id - * - * @return string - */ - public function getSubscriptionId() - { - return $this->container['subscription_id']; - } - - /** - * Sets subscription_id - * - * @param string $subscription_id The subscription identifier generated when the subscription is created. - * - * @return self - */ - public function setSubscriptionId($subscription_id) - { - $this->container['subscription_id'] = $subscription_id; - - return $this; - } - /** - * Gets payload_version - * - * @return string - */ - public function getPayloadVersion() - { - return $this->container['payload_version']; - } - - /** - * Sets payload_version - * - * @param string $payload_version The version of the payload object to be used in the notification. - * - * @return self - */ - public function setPayloadVersion($payload_version) - { - $this->container['payload_version'] = $payload_version; - - return $this; - } - /** - * Gets destination_id - * - * @return string - */ - public function getDestinationId() - { - return $this->container['destination_id']; - } - - /** - * Sets destination_id - * - * @param string $destination_id The identifier for the destination where notifications will be delivered. - * - * @return self - */ - public function setDestinationId($destination_id) - { - $this->container['destination_id'] = $destination_id; - - return $this; - } - /** - * Gets processing_directive - * - * @return \SellingPartnerApi\Model\NotificationsV1\ProcessingDirective|null - */ - public function getProcessingDirective() - { - return $this->container['processing_directive']; - } - - /** - * Sets processing_directive - * - * @param \SellingPartnerApi\Model\NotificationsV1\ProcessingDirective|null $processing_directive processing_directive - * - * @return self - */ - public function setProcessingDirective($processing_directive) - { - $this->container['processing_directive'] = $processing_directive; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/Address.php b/lib/Model/OrdersV0/Address.php deleted file mode 100644 index 56d9de48a..000000000 --- a/lib/Model/OrdersV0/Address.php +++ /dev/null @@ -1,557 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'municipality' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string', - 'address_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'municipality' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null, - 'address_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'address_line1' => 'AddressLine1', - 'address_line2' => 'AddressLine2', - 'address_line3' => 'AddressLine3', - 'city' => 'City', - 'county' => 'County', - 'district' => 'District', - 'state_or_region' => 'StateOrRegion', - 'municipality' => 'Municipality', - 'postal_code' => 'PostalCode', - 'country_code' => 'CountryCode', - 'phone' => 'Phone', - 'address_type' => 'AddressType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'municipality' => 'setMunicipality', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone', - 'address_type' => 'setAddressType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'municipality' => 'getMunicipality', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone', - 'address_type' => 'getAddressType' - ]; - - - - const ADDRESS_TYPE_RESIDENTIAL = 'Residential'; - const ADDRESS_TYPE_COMMERCIAL = 'Commercial'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getAddressTypeAllowableValues() - { - $baseVals = [ - self::ADDRESS_TYPE_RESIDENTIAL, - self::ADDRESS_TYPE_COMMERCIAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['municipality'] = $data['municipality'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - $this->container['address_type'] = $data['address_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - $allowedValues = $this->getAddressTypeAllowableValues(); - if ( - !is_null($this->container['address_type']) && - !in_array(strtoupper($this->container['address_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'address_type', must be one of '%s'", - $this->container['address_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string|null - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string|null $address_line1 The street address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets municipality - * - * @return string|null - */ - public function getMunicipality() - { - return $this->container['municipality']; - } - - /** - * Sets municipality - * - * @param string|null $municipality The municipality. - * - * @return self - */ - public function setMunicipality($municipality) - { - $this->container['municipality'] = $municipality; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The country code. A two-character country code, in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number. Not returned for Fulfillment by Amazon (FBA) orders. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } - /** - * Gets address_type - * - * @return string|null - */ - public function getAddressType() - { - return $this->container['address_type']; - } - - /** - * Sets address_type - * - * @param string|null $address_type The address type of the shipping address. - * - * @return self - */ - public function setAddressType($address_type) - { - $allowedValues = $this->getAddressTypeAllowableValues(); - if (!is_null($address_type) &&!in_array(strtoupper($address_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'address_type', must be one of '%s'", - $address_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['address_type'] = $address_type; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/AutomatedShippingSettings.php b/lib/Model/OrdersV0/AutomatedShippingSettings.php deleted file mode 100644 index c33f7232c..000000000 --- a/lib/Model/OrdersV0/AutomatedShippingSettings.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AutomatedShippingSettings extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AutomatedShippingSettings'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'has_automated_shipping_settings' => 'bool', - 'automated_carrier' => 'string', - 'automated_ship_method' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'has_automated_shipping_settings' => null, - 'automated_carrier' => null, - 'automated_ship_method' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'has_automated_shipping_settings' => 'HasAutomatedShippingSettings', - 'automated_carrier' => 'AutomatedCarrier', - 'automated_ship_method' => 'AutomatedShipMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'has_automated_shipping_settings' => 'setHasAutomatedShippingSettings', - 'automated_carrier' => 'setAutomatedCarrier', - 'automated_ship_method' => 'setAutomatedShipMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'has_automated_shipping_settings' => 'getHasAutomatedShippingSettings', - 'automated_carrier' => 'getAutomatedCarrier', - 'automated_ship_method' => 'getAutomatedShipMethod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['has_automated_shipping_settings'] = $data['has_automated_shipping_settings'] ?? null; - $this->container['automated_carrier'] = $data['automated_carrier'] ?? null; - $this->container['automated_ship_method'] = $data['automated_ship_method'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets has_automated_shipping_settings - * - * @return bool|null - */ - public function getHasAutomatedShippingSettings() - { - return $this->container['has_automated_shipping_settings']; - } - - /** - * Sets has_automated_shipping_settings - * - * @param bool|null $has_automated_shipping_settings When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. - * - * @return self - */ - public function setHasAutomatedShippingSettings($has_automated_shipping_settings) - { - $this->container['has_automated_shipping_settings'] = $has_automated_shipping_settings; - - return $this; - } - /** - * Gets automated_carrier - * - * @return string|null - */ - public function getAutomatedCarrier() - { - return $this->container['automated_carrier']; - } - - /** - * Sets automated_carrier - * - * @param string|null $automated_carrier Auto-generated carrier for SSA orders. - * - * @return self - */ - public function setAutomatedCarrier($automated_carrier) - { - $this->container['automated_carrier'] = $automated_carrier; - - return $this; - } - /** - * Gets automated_ship_method - * - * @return string|null - */ - public function getAutomatedShipMethod() - { - return $this->container['automated_ship_method']; - } - - /** - * Sets automated_ship_method - * - * @param string|null $automated_ship_method Auto-generated ship method for SSA orders. - * - * @return self - */ - public function setAutomatedShipMethod($automated_ship_method) - { - $this->container['automated_ship_method'] = $automated_ship_method; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BusinessHours.php b/lib/Model/OrdersV0/BusinessHours.php deleted file mode 100644 index 10f6e7582..000000000 --- a/lib/Model/OrdersV0/BusinessHours.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BusinessHours extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BusinessHours'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'day_of_week' => 'string', - 'open_intervals' => '\SellingPartnerApi\Model\OrdersV0\OpenInterval[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'day_of_week' => null, - 'open_intervals' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'day_of_week' => 'DayOfWeek', - 'open_intervals' => 'OpenIntervals' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'day_of_week' => 'setDayOfWeek', - 'open_intervals' => 'setOpenIntervals' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'day_of_week' => 'getDayOfWeek', - 'open_intervals' => 'getOpenIntervals' - ]; - - - - const DAY_OF_WEEK_SUN = 'SUN'; - const DAY_OF_WEEK_MON = 'MON'; - const DAY_OF_WEEK_TUE = 'TUE'; - const DAY_OF_WEEK_WED = 'WED'; - const DAY_OF_WEEK_THU = 'THU'; - const DAY_OF_WEEK_FRI = 'FRI'; - const DAY_OF_WEEK_SAT = 'SAT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getDayOfWeekAllowableValues() - { - $baseVals = [ - self::DAY_OF_WEEK_SUN, - self::DAY_OF_WEEK_MON, - self::DAY_OF_WEEK_TUE, - self::DAY_OF_WEEK_WED, - self::DAY_OF_WEEK_THU, - self::DAY_OF_WEEK_FRI, - self::DAY_OF_WEEK_SAT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['day_of_week'] = $data['day_of_week'] ?? null; - $this->container['open_intervals'] = $data['open_intervals'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getDayOfWeekAllowableValues(); - if ( - !is_null($this->container['day_of_week']) && - !in_array(strtoupper($this->container['day_of_week']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'day_of_week', must be one of '%s'", - $this->container['day_of_week'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets day_of_week - * - * @return string|null - */ - public function getDayOfWeek() - { - return $this->container['day_of_week']; - } - - /** - * Sets day_of_week - * - * @param string|null $day_of_week Day of the week. - * - * @return self - */ - public function setDayOfWeek($day_of_week) - { - $allowedValues = $this->getDayOfWeekAllowableValues(); - if (!is_null($day_of_week) &&!in_array(strtoupper($day_of_week), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'day_of_week', must be one of '%s'", - $day_of_week, - implode("', '", $allowedValues) - ) - ); - } - $this->container['day_of_week'] = $day_of_week; - - return $this; - } - /** - * Gets open_intervals - * - * @return \SellingPartnerApi\Model\OrdersV0\OpenInterval[]|null - */ - public function getOpenIntervals() - { - return $this->container['open_intervals']; - } - - /** - * Sets open_intervals - * - * @param \SellingPartnerApi\Model\OrdersV0\OpenInterval[]|null $open_intervals Time window during the day when the business is open. - * - * @return self - */ - public function setOpenIntervals($open_intervals) - { - $this->container['open_intervals'] = $open_intervals; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BuyerCustomizedInfoDetail.php b/lib/Model/OrdersV0/BuyerCustomizedInfoDetail.php deleted file mode 100644 index 292663912..000000000 --- a/lib/Model/OrdersV0/BuyerCustomizedInfoDetail.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerCustomizedInfoDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerCustomizedInfoDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'customized_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'customized_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'customized_url' => 'CustomizedURL' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'customized_url' => 'setCustomizedUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'customized_url' => 'getCustomizedUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['customized_url'] = $data['customized_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets customized_url - * - * @return string|null - */ - public function getCustomizedUrl() - { - return $this->container['customized_url']; - } - - /** - * Sets customized_url - * - * @param string|null $customized_url The location of a zip file containing Amazon Custom data. - * - * @return self - */ - public function setCustomizedUrl($customized_url) - { - $this->container['customized_url'] = $customized_url; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BuyerInfo.php b/lib/Model/OrdersV0/BuyerInfo.php deleted file mode 100644 index a364299a5..000000000 --- a/lib/Model/OrdersV0/BuyerInfo.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer_email' => 'string', - 'buyer_name' => 'string', - 'buyer_county' => 'string', - 'buyer_tax_info' => '\SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo', - 'purchase_order_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer_email' => null, - 'buyer_name' => null, - 'buyer_county' => null, - 'buyer_tax_info' => null, - 'purchase_order_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'buyer_email' => 'BuyerEmail', - 'buyer_name' => 'BuyerName', - 'buyer_county' => 'BuyerCounty', - 'buyer_tax_info' => 'BuyerTaxInfo', - 'purchase_order_number' => 'PurchaseOrderNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'buyer_email' => 'setBuyerEmail', - 'buyer_name' => 'setBuyerName', - 'buyer_county' => 'setBuyerCounty', - 'buyer_tax_info' => 'setBuyerTaxInfo', - 'purchase_order_number' => 'setPurchaseOrderNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'buyer_email' => 'getBuyerEmail', - 'buyer_name' => 'getBuyerName', - 'buyer_county' => 'getBuyerCounty', - 'buyer_tax_info' => 'getBuyerTaxInfo', - 'purchase_order_number' => 'getPurchaseOrderNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer_email'] = $data['buyer_email'] ?? null; - $this->container['buyer_name'] = $data['buyer_name'] ?? null; - $this->container['buyer_county'] = $data['buyer_county'] ?? null; - $this->container['buyer_tax_info'] = $data['buyer_tax_info'] ?? null; - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets buyer_email - * - * @return string|null - */ - public function getBuyerEmail() - { - return $this->container['buyer_email']; - } - - /** - * Sets buyer_email - * - * @param string|null $buyer_email The anonymized email address of the buyer. - * - * @return self - */ - public function setBuyerEmail($buyer_email) - { - $this->container['buyer_email'] = $buyer_email; - - return $this; - } - /** - * Gets buyer_name - * - * @return string|null - */ - public function getBuyerName() - { - return $this->container['buyer_name']; - } - - /** - * Sets buyer_name - * - * @param string|null $buyer_name The buyer name or the recipient name. - * - * @return self - */ - public function setBuyerName($buyer_name) - { - $this->container['buyer_name'] = $buyer_name; - - return $this; - } - /** - * Gets buyer_county - * - * @return string|null - */ - public function getBuyerCounty() - { - return $this->container['buyer_county']; - } - - /** - * Sets buyer_county - * - * @param string|null $buyer_county The county of the buyer. - * - * @return self - */ - public function setBuyerCounty($buyer_county) - { - $this->container['buyer_county'] = $buyer_county; - - return $this; - } - /** - * Gets buyer_tax_info - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo|null - */ - public function getBuyerTaxInfo() - { - return $this->container['buyer_tax_info']; - } - - /** - * Sets buyer_tax_info - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo|null $buyer_tax_info buyer_tax_info - * - * @return self - */ - public function setBuyerTaxInfo($buyer_tax_info) - { - $this->container['buyer_tax_info'] = $buyer_tax_info; - - return $this; - } - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BuyerRequestedCancel.php b/lib/Model/OrdersV0/BuyerRequestedCancel.php deleted file mode 100644 index 85f252d09..000000000 --- a/lib/Model/OrdersV0/BuyerRequestedCancel.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerRequestedCancel extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerRequestedCancel'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_buyer_requested_cancel' => 'bool', - 'buyer_cancel_reason' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_buyer_requested_cancel' => null, - 'buyer_cancel_reason' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_buyer_requested_cancel' => 'IsBuyerRequestedCancel', - 'buyer_cancel_reason' => 'BuyerCancelReason' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_buyer_requested_cancel' => 'setIsBuyerRequestedCancel', - 'buyer_cancel_reason' => 'setBuyerCancelReason' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_buyer_requested_cancel' => 'getIsBuyerRequestedCancel', - 'buyer_cancel_reason' => 'getBuyerCancelReason' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_buyer_requested_cancel'] = $data['is_buyer_requested_cancel'] ?? null; - $this->container['buyer_cancel_reason'] = $data['buyer_cancel_reason'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets is_buyer_requested_cancel - * - * @return bool|null - */ - public function getIsBuyerRequestedCancel() - { - return $this->container['is_buyer_requested_cancel']; - } - - /** - * Sets is_buyer_requested_cancel - * - * @param bool|null $is_buyer_requested_cancel When true, the buyer has requested cancellation. - * - * @return self - */ - public function setIsBuyerRequestedCancel($is_buyer_requested_cancel) - { - $this->container['is_buyer_requested_cancel'] = $is_buyer_requested_cancel; - - return $this; - } - /** - * Gets buyer_cancel_reason - * - * @return string|null - */ - public function getBuyerCancelReason() - { - return $this->container['buyer_cancel_reason']; - } - - /** - * Sets buyer_cancel_reason - * - * @param string|null $buyer_cancel_reason The reason that the buyer requested cancellation. - * - * @return self - */ - public function setBuyerCancelReason($buyer_cancel_reason) - { - $this->container['buyer_cancel_reason'] = $buyer_cancel_reason; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BuyerTaxInfo.php b/lib/Model/OrdersV0/BuyerTaxInfo.php deleted file mode 100644 index 03d0928fd..000000000 --- a/lib/Model/OrdersV0/BuyerTaxInfo.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerTaxInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerTaxInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'company_legal_name' => 'string', - 'taxing_region' => 'string', - 'tax_classifications' => '\SellingPartnerApi\Model\OrdersV0\TaxClassification[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'company_legal_name' => null, - 'taxing_region' => null, - 'tax_classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'company_legal_name' => 'CompanyLegalName', - 'taxing_region' => 'TaxingRegion', - 'tax_classifications' => 'TaxClassifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'company_legal_name' => 'setCompanyLegalName', - 'taxing_region' => 'setTaxingRegion', - 'tax_classifications' => 'setTaxClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'company_legal_name' => 'getCompanyLegalName', - 'taxing_region' => 'getTaxingRegion', - 'tax_classifications' => 'getTaxClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['company_legal_name'] = $data['company_legal_name'] ?? null; - $this->container['taxing_region'] = $data['taxing_region'] ?? null; - $this->container['tax_classifications'] = $data['tax_classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets company_legal_name - * - * @return string|null - */ - public function getCompanyLegalName() - { - return $this->container['company_legal_name']; - } - - /** - * Sets company_legal_name - * - * @param string|null $company_legal_name The legal name of the company. - * - * @return self - */ - public function setCompanyLegalName($company_legal_name) - { - $this->container['company_legal_name'] = $company_legal_name; - - return $this; - } - /** - * Gets taxing_region - * - * @return string|null - */ - public function getTaxingRegion() - { - return $this->container['taxing_region']; - } - - /** - * Sets taxing_region - * - * @param string|null $taxing_region The country or region imposing the tax. - * - * @return self - */ - public function setTaxingRegion($taxing_region) - { - $this->container['taxing_region'] = $taxing_region; - - return $this; - } - /** - * Gets tax_classifications - * - * @return \SellingPartnerApi\Model\OrdersV0\TaxClassification[]|null - */ - public function getTaxClassifications() - { - return $this->container['tax_classifications']; - } - - /** - * Sets tax_classifications - * - * @param \SellingPartnerApi\Model\OrdersV0\TaxClassification[]|null $tax_classifications A list of tax classifications that apply to the order. - * - * @return self - */ - public function setTaxClassifications($tax_classifications) - { - $this->container['tax_classifications'] = $tax_classifications; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/BuyerTaxInformation.php b/lib/Model/OrdersV0/BuyerTaxInformation.php deleted file mode 100644 index a23e7a7e9..000000000 --- a/lib/Model/OrdersV0/BuyerTaxInformation.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerTaxInformation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerTaxInformation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer_legal_company_name' => 'string', - 'buyer_business_address' => 'string', - 'buyer_tax_registration_id' => 'string', - 'buyer_tax_office' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer_legal_company_name' => null, - 'buyer_business_address' => null, - 'buyer_tax_registration_id' => null, - 'buyer_tax_office' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'buyer_legal_company_name' => 'BuyerLegalCompanyName', - 'buyer_business_address' => 'BuyerBusinessAddress', - 'buyer_tax_registration_id' => 'BuyerTaxRegistrationId', - 'buyer_tax_office' => 'BuyerTaxOffice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'buyer_legal_company_name' => 'setBuyerLegalCompanyName', - 'buyer_business_address' => 'setBuyerBusinessAddress', - 'buyer_tax_registration_id' => 'setBuyerTaxRegistrationId', - 'buyer_tax_office' => 'setBuyerTaxOffice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'buyer_legal_company_name' => 'getBuyerLegalCompanyName', - 'buyer_business_address' => 'getBuyerBusinessAddress', - 'buyer_tax_registration_id' => 'getBuyerTaxRegistrationId', - 'buyer_tax_office' => 'getBuyerTaxOffice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer_legal_company_name'] = $data['buyer_legal_company_name'] ?? null; - $this->container['buyer_business_address'] = $data['buyer_business_address'] ?? null; - $this->container['buyer_tax_registration_id'] = $data['buyer_tax_registration_id'] ?? null; - $this->container['buyer_tax_office'] = $data['buyer_tax_office'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets buyer_legal_company_name - * - * @return string|null - */ - public function getBuyerLegalCompanyName() - { - return $this->container['buyer_legal_company_name']; - } - - /** - * Sets buyer_legal_company_name - * - * @param string|null $buyer_legal_company_name Business buyer's company legal name. - * - * @return self - */ - public function setBuyerLegalCompanyName($buyer_legal_company_name) - { - $this->container['buyer_legal_company_name'] = $buyer_legal_company_name; - - return $this; - } - /** - * Gets buyer_business_address - * - * @return string|null - */ - public function getBuyerBusinessAddress() - { - return $this->container['buyer_business_address']; - } - - /** - * Sets buyer_business_address - * - * @param string|null $buyer_business_address Business buyer's address. - * - * @return self - */ - public function setBuyerBusinessAddress($buyer_business_address) - { - $this->container['buyer_business_address'] = $buyer_business_address; - - return $this; - } - /** - * Gets buyer_tax_registration_id - * - * @return string|null - */ - public function getBuyerTaxRegistrationId() - { - return $this->container['buyer_tax_registration_id']; - } - - /** - * Sets buyer_tax_registration_id - * - * @param string|null $buyer_tax_registration_id Business buyer's tax registration ID. - * - * @return self - */ - public function setBuyerTaxRegistrationId($buyer_tax_registration_id) - { - $this->container['buyer_tax_registration_id'] = $buyer_tax_registration_id; - - return $this; - } - /** - * Gets buyer_tax_office - * - * @return string|null - */ - public function getBuyerTaxOffice() - { - return $this->container['buyer_tax_office']; - } - - /** - * Sets buyer_tax_office - * - * @param string|null $buyer_tax_office Business buyer's tax office. - * - * @return self - */ - public function setBuyerTaxOffice($buyer_tax_office) - { - $this->container['buyer_tax_office'] = $buyer_tax_office; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ConfirmShipmentErrorResponse.php b/lib/Model/OrdersV0/ConfirmShipmentErrorResponse.php deleted file mode 100644 index 6a686dd84..000000000 --- a/lib/Model/OrdersV0/ConfirmShipmentErrorResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmShipmentErrorResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmShipmentErrorResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ConfirmShipmentOrderItem.php b/lib/Model/OrdersV0/ConfirmShipmentOrderItem.php deleted file mode 100644 index 3535b1c30..000000000 --- a/lib/Model/OrdersV0/ConfirmShipmentOrderItem.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmShipmentOrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmShipmentOrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_item_id' => 'string', - 'quantity' => 'int', - 'transparency_codes' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_item_id' => null, - 'quantity' => null, - 'transparency_codes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_item_id' => 'orderItemId', - 'quantity' => 'quantity', - 'transparency_codes' => 'transparencyCodes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_item_id' => 'setOrderItemId', - 'quantity' => 'setQuantity', - 'transparency_codes' => 'setTransparencyCodes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_item_id' => 'getOrderItemId', - 'quantity' => 'getQuantity', - 'transparency_codes' => 'getTransparencyCodes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['transparency_codes'] = $data['transparency_codes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_item_id'] === null) { - $invalidProperties[] = "'order_item_id' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_item_id - * - * @return string - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string $order_item_id The unique identifier of the order item. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The quantity of the item. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets transparency_codes - * - * @return string[]|null - */ - public function getTransparencyCodes() - { - return $this->container['transparency_codes']; - } - - /** - * Sets transparency_codes - * - * @param string[]|null $transparency_codes A list of order items. - * - * @return self - */ - public function setTransparencyCodes($transparency_codes) - { - $this->container['transparency_codes'] = $transparency_codes; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ConfirmShipmentRequest.php b/lib/Model/OrdersV0/ConfirmShipmentRequest.php deleted file mode 100644 index 3762f9973..000000000 --- a/lib/Model/OrdersV0/ConfirmShipmentRequest.php +++ /dev/null @@ -1,268 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ConfirmShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ConfirmShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_detail' => '\SellingPartnerApi\Model\OrdersV0\PackageDetail', - 'cod_collection_method' => 'string', - 'marketplace_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_detail' => null, - 'cod_collection_method' => null, - 'marketplace_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_detail' => 'packageDetail', - 'cod_collection_method' => 'codCollectionMethod', - 'marketplace_id' => 'marketplaceId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_detail' => 'setPackageDetail', - 'cod_collection_method' => 'setCodCollectionMethod', - 'marketplace_id' => 'setMarketplaceId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_detail' => 'getPackageDetail', - 'cod_collection_method' => 'getCodCollectionMethod', - 'marketplace_id' => 'getMarketplaceId' - ]; - - - - const COD_COLLECTION_METHOD_DIRECT_PAYMENT = 'DirectPayment'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCodCollectionMethodAllowableValues() - { - $baseVals = [ - self::COD_COLLECTION_METHOD_DIRECT_PAYMENT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_detail'] = $data['package_detail'] ?? null; - $this->container['cod_collection_method'] = $data['cod_collection_method'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_detail'] === null) { - $invalidProperties[] = "'package_detail' can't be null"; - } - $allowedValues = $this->getCodCollectionMethodAllowableValues(); - if ( - !is_null($this->container['cod_collection_method']) && - !in_array(strtoupper($this->container['cod_collection_method']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'cod_collection_method', must be one of '%s'", - $this->container['cod_collection_method'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_detail - * - * @return \SellingPartnerApi\Model\OrdersV0\PackageDetail - */ - public function getPackageDetail() - { - return $this->container['package_detail']; - } - - /** - * Sets package_detail - * - * @param \SellingPartnerApi\Model\OrdersV0\PackageDetail $package_detail package_detail - * - * @return self - */ - public function setPackageDetail($package_detail) - { - $this->container['package_detail'] = $package_detail; - - return $this; - } - /** - * Gets cod_collection_method - * - * @return string|null - */ - public function getCodCollectionMethod() - { - return $this->container['cod_collection_method']; - } - - /** - * Sets cod_collection_method - * - * @param string|null $cod_collection_method The cod collection method, support in JP only. - * - * @return self - */ - public function setCodCollectionMethod($cod_collection_method) - { - $allowedValues = $this->getCodCollectionMethodAllowableValues(); - if (!is_null($cod_collection_method) &&!in_array(strtoupper($cod_collection_method), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'cod_collection_method', must be one of '%s'", - $cod_collection_method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['cod_collection_method'] = $cod_collection_method; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The unobfuscated marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/DeliveryPreferences.php b/lib/Model/OrdersV0/DeliveryPreferences.php deleted file mode 100644 index 7c50265d3..000000000 --- a/lib/Model/OrdersV0/DeliveryPreferences.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DeliveryPreferences extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DeliveryPreferences'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'drop_off_location' => 'string', - 'preferred_delivery_time' => '\SellingPartnerApi\Model\OrdersV0\PreferredDeliveryTime', - 'other_attributes' => '\SellingPartnerApi\Model\OrdersV0\OtherDeliveryAttributes[]', - 'address_instructions' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'drop_off_location' => null, - 'preferred_delivery_time' => null, - 'other_attributes' => null, - 'address_instructions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'drop_off_location' => 'DropOffLocation', - 'preferred_delivery_time' => 'PreferredDeliveryTime', - 'other_attributes' => 'OtherAttributes', - 'address_instructions' => 'AddressInstructions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'drop_off_location' => 'setDropOffLocation', - 'preferred_delivery_time' => 'setPreferredDeliveryTime', - 'other_attributes' => 'setOtherAttributes', - 'address_instructions' => 'setAddressInstructions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'drop_off_location' => 'getDropOffLocation', - 'preferred_delivery_time' => 'getPreferredDeliveryTime', - 'other_attributes' => 'getOtherAttributes', - 'address_instructions' => 'getAddressInstructions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['drop_off_location'] = $data['drop_off_location'] ?? null; - $this->container['preferred_delivery_time'] = $data['preferred_delivery_time'] ?? null; - $this->container['other_attributes'] = $data['other_attributes'] ?? null; - $this->container['address_instructions'] = $data['address_instructions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets drop_off_location - * - * @return string|null - */ - public function getDropOffLocation() - { - return $this->container['drop_off_location']; - } - - /** - * Sets drop_off_location - * - * @param string|null $drop_off_location Drop-off location selected by the customer. - * - * @return self - */ - public function setDropOffLocation($drop_off_location) - { - $this->container['drop_off_location'] = $drop_off_location; - - return $this; - } - /** - * Gets preferred_delivery_time - * - * @return \SellingPartnerApi\Model\OrdersV0\PreferredDeliveryTime|null - */ - public function getPreferredDeliveryTime() - { - return $this->container['preferred_delivery_time']; - } - - /** - * Sets preferred_delivery_time - * - * @param \SellingPartnerApi\Model\OrdersV0\PreferredDeliveryTime|null $preferred_delivery_time preferred_delivery_time - * - * @return self - */ - public function setPreferredDeliveryTime($preferred_delivery_time) - { - $this->container['preferred_delivery_time'] = $preferred_delivery_time; - - return $this; - } - /** - * Gets other_attributes - * - * @return \SellingPartnerApi\Model\OrdersV0\OtherDeliveryAttributes[]|null - */ - public function getOtherAttributes() - { - return $this->container['other_attributes']; - } - - /** - * Sets other_attributes - * - * @param \SellingPartnerApi\Model\OrdersV0\OtherDeliveryAttributes[]|null $other_attributes Enumerated list of miscellaneous delivery attributes associated with the shipping address. - * - * @return self - */ - public function setOtherAttributes($other_attributes) - { - $this->container['other_attributes'] = $other_attributes; - - return $this; - } - /** - * Gets address_instructions - * - * @return string|null - */ - public function getAddressInstructions() - { - return $this->container['address_instructions']; - } - - /** - * Sets address_instructions - * - * @param string|null $address_instructions Building instructions, nearby landmark or navigation instructions. - * - * @return self - */ - public function setAddressInstructions($address_instructions) - { - $this->container['address_instructions'] = $address_instructions; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/EasyShipShipmentStatus.php b/lib/Model/OrdersV0/EasyShipShipmentStatus.php deleted file mode 100644 index ce083ca6f..000000000 --- a/lib/Model/OrdersV0/EasyShipShipmentStatus.php +++ /dev/null @@ -1,115 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/OrdersV0/ElectronicInvoiceStatus.php b/lib/Model/OrdersV0/ElectronicInvoiceStatus.php deleted file mode 100644 index d5a1ace98..000000000 --- a/lib/Model/OrdersV0/ElectronicInvoiceStatus.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/OrdersV0/Error.php b/lib/Model/OrdersV0/Error.php deleted file mode 100644 index 426cd0cd8..000000000 --- a/lib/Model/OrdersV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ExceptionDates.php b/lib/Model/OrdersV0/ExceptionDates.php deleted file mode 100644 index 7c0b046c7..000000000 --- a/lib/Model/OrdersV0/ExceptionDates.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ExceptionDates extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ExceptionDates'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'exception_date' => 'string', - 'is_open' => 'bool', - 'open_intervals' => '\SellingPartnerApi\Model\OrdersV0\OpenInterval[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'exception_date' => null, - 'is_open' => null, - 'open_intervals' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'exception_date' => 'ExceptionDate', - 'is_open' => 'IsOpen', - 'open_intervals' => 'OpenIntervals' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'exception_date' => 'setExceptionDate', - 'is_open' => 'setIsOpen', - 'open_intervals' => 'setOpenIntervals' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'exception_date' => 'getExceptionDate', - 'is_open' => 'getIsOpen', - 'open_intervals' => 'getOpenIntervals' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['exception_date'] = $data['exception_date'] ?? null; - $this->container['is_open'] = $data['is_open'] ?? null; - $this->container['open_intervals'] = $data['open_intervals'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets exception_date - * - * @return string|null - */ - public function getExceptionDate() - { - return $this->container['exception_date']; - } - - /** - * Sets exception_date - * - * @param string|null $exception_date Date when the business is closed, in ISO-8601 date format. - * - * @return self - */ - public function setExceptionDate($exception_date) - { - $this->container['exception_date'] = $exception_date; - - return $this; - } - /** - * Gets is_open - * - * @return bool|null - */ - public function getIsOpen() - { - return $this->container['is_open']; - } - - /** - * Sets is_open - * - * @param bool|null $is_open Boolean indicating if the business is closed or open on that date. - * - * @return self - */ - public function setIsOpen($is_open) - { - $this->container['is_open'] = $is_open; - - return $this; - } - /** - * Gets open_intervals - * - * @return \SellingPartnerApi\Model\OrdersV0\OpenInterval[]|null - */ - public function getOpenIntervals() - { - return $this->container['open_intervals']; - } - - /** - * Sets open_intervals - * - * @param \SellingPartnerApi\Model\OrdersV0\OpenInterval[]|null $open_intervals Time window during the day when the business is open. - * - * @return self - */ - public function setOpenIntervals($open_intervals) - { - $this->container['open_intervals'] = $open_intervals; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/FulfillmentInstruction.php b/lib/Model/OrdersV0/FulfillmentInstruction.php deleted file mode 100644 index 7d99f90fc..000000000 --- a/lib/Model/OrdersV0/FulfillmentInstruction.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentInstruction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentInstruction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_supply_source_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_supply_source_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_supply_source_id' => 'FulfillmentSupplySourceId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_supply_source_id' => 'setFulfillmentSupplySourceId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_supply_source_id' => 'getFulfillmentSupplySourceId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_supply_source_id'] = $data['fulfillment_supply_source_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fulfillment_supply_source_id - * - * @return string|null - */ - public function getFulfillmentSupplySourceId() - { - return $this->container['fulfillment_supply_source_id']; - } - - /** - * Sets fulfillment_supply_source_id - * - * @param string|null $fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. - * - * @return self - */ - public function setFulfillmentSupplySourceId($fulfillment_supply_source_id) - { - $this->container['fulfillment_supply_source_id'] = $fulfillment_supply_source_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderAddressResponse.php b/lib/Model/OrdersV0/GetOrderAddressResponse.php deleted file mode 100644 index ba9bbed65..000000000 --- a/lib/Model/OrdersV0/GetOrderAddressResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderAddressResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderAddressResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrderAddress', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderAddress|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderAddress|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderBuyerInfoResponse.php b/lib/Model/OrdersV0/GetOrderBuyerInfoResponse.php deleted file mode 100644 index 36b988ce7..000000000 --- a/lib/Model/OrdersV0/GetOrderBuyerInfoResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderBuyerInfoResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderBuyerInfoResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrderBuyerInfo', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderBuyerInfo|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderBuyerInfo|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.php b/lib/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.php deleted file mode 100644 index 03d10ae56..000000000 --- a/lib/Model/OrdersV0/GetOrderItemsBuyerInfoResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderItemsBuyerInfoResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderItemsBuyerInfoResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrderItemsBuyerInfoList', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderItemsBuyerInfoList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderItemsBuyerInfoList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderItemsResponse.php b/lib/Model/OrdersV0/GetOrderItemsResponse.php deleted file mode 100644 index 1628ab1a8..000000000 --- a/lib/Model/OrdersV0/GetOrderItemsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderItemsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderItemsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrderItemsList', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderItemsList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderItemsList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderRegulatedInfoResponse.php b/lib/Model/OrdersV0/GetOrderRegulatedInfoResponse.php deleted file mode 100644 index 6e01114a3..000000000 --- a/lib/Model/OrdersV0/GetOrderRegulatedInfoResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderRegulatedInfoResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderRegulatedInfoResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrderRegulatedInfo', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderRegulatedInfo|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderRegulatedInfo|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrderResponse.php b/lib/Model/OrdersV0/GetOrderResponse.php deleted file mode 100644 index 062c1992d..000000000 --- a/lib/Model/OrdersV0/GetOrderResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\Order', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\Order|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\Order|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/GetOrdersResponse.php b/lib/Model/OrdersV0/GetOrdersResponse.php deleted file mode 100644 index 03b8f09f1..000000000 --- a/lib/Model/OrdersV0/GetOrdersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrdersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrdersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\OrdersV0\OrdersList', - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\OrdersV0\OrdersList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\OrdersV0\OrdersList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ItemBuyerInfo.php b/lib/Model/OrdersV0/ItemBuyerInfo.php deleted file mode 100644 index bb9c6925f..000000000 --- a/lib/Model/OrdersV0/ItemBuyerInfo.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemBuyerInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemBuyerInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer_customized_info' => '\SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail', - 'gift_wrap_price' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'gift_wrap_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'gift_message_text' => 'string', - 'gift_wrap_level' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer_customized_info' => null, - 'gift_wrap_price' => null, - 'gift_wrap_tax' => null, - 'gift_message_text' => null, - 'gift_wrap_level' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'buyer_customized_info' => 'BuyerCustomizedInfo', - 'gift_wrap_price' => 'GiftWrapPrice', - 'gift_wrap_tax' => 'GiftWrapTax', - 'gift_message_text' => 'GiftMessageText', - 'gift_wrap_level' => 'GiftWrapLevel' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'buyer_customized_info' => 'setBuyerCustomizedInfo', - 'gift_wrap_price' => 'setGiftWrapPrice', - 'gift_wrap_tax' => 'setGiftWrapTax', - 'gift_message_text' => 'setGiftMessageText', - 'gift_wrap_level' => 'setGiftWrapLevel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'buyer_customized_info' => 'getBuyerCustomizedInfo', - 'gift_wrap_price' => 'getGiftWrapPrice', - 'gift_wrap_tax' => 'getGiftWrapTax', - 'gift_message_text' => 'getGiftMessageText', - 'gift_wrap_level' => 'getGiftWrapLevel' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer_customized_info'] = $data['buyer_customized_info'] ?? null; - $this->container['gift_wrap_price'] = $data['gift_wrap_price'] ?? null; - $this->container['gift_wrap_tax'] = $data['gift_wrap_tax'] ?? null; - $this->container['gift_message_text'] = $data['gift_message_text'] ?? null; - $this->container['gift_wrap_level'] = $data['gift_wrap_level'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets buyer_customized_info - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail|null - */ - public function getBuyerCustomizedInfo() - { - return $this->container['buyer_customized_info']; - } - - /** - * Sets buyer_customized_info - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail|null $buyer_customized_info buyer_customized_info - * - * @return self - */ - public function setBuyerCustomizedInfo($buyer_customized_info) - { - $this->container['buyer_customized_info'] = $buyer_customized_info; - - return $this; - } - /** - * Gets gift_wrap_price - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getGiftWrapPrice() - { - return $this->container['gift_wrap_price']; - } - - /** - * Sets gift_wrap_price - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $gift_wrap_price gift_wrap_price - * - * @return self - */ - public function setGiftWrapPrice($gift_wrap_price) - { - $this->container['gift_wrap_price'] = $gift_wrap_price; - - return $this; - } - /** - * Gets gift_wrap_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getGiftWrapTax() - { - return $this->container['gift_wrap_tax']; - } - - /** - * Sets gift_wrap_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $gift_wrap_tax gift_wrap_tax - * - * @return self - */ - public function setGiftWrapTax($gift_wrap_tax) - { - $this->container['gift_wrap_tax'] = $gift_wrap_tax; - - return $this; - } - /** - * Gets gift_message_text - * - * @return string|null - */ - public function getGiftMessageText() - { - return $this->container['gift_message_text']; - } - - /** - * Sets gift_message_text - * - * @param string|null $gift_message_text A gift message provided by the buyer. - * - * @return self - */ - public function setGiftMessageText($gift_message_text) - { - $this->container['gift_message_text'] = $gift_message_text; - - return $this; - } - /** - * Gets gift_wrap_level - * - * @return string|null - */ - public function getGiftWrapLevel() - { - return $this->container['gift_wrap_level']; - } - - /** - * Sets gift_wrap_level - * - * @param string|null $gift_wrap_level The gift wrap level specified by the buyer. - * - * @return self - */ - public function setGiftWrapLevel($gift_wrap_level) - { - $this->container['gift_wrap_level'] = $gift_wrap_level; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/MarketplaceTaxInfo.php b/lib/Model/OrdersV0/MarketplaceTaxInfo.php deleted file mode 100644 index db3702668..000000000 --- a/lib/Model/OrdersV0/MarketplaceTaxInfo.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MarketplaceTaxInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarketplaceTaxInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_classifications' => '\SellingPartnerApi\Model\OrdersV0\TaxClassification[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_classifications' => 'TaxClassifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_classifications' => 'setTaxClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_classifications' => 'getTaxClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_classifications'] = $data['tax_classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets tax_classifications - * - * @return \SellingPartnerApi\Model\OrdersV0\TaxClassification[]|null - */ - public function getTaxClassifications() - { - return $this->container['tax_classifications']; - } - - /** - * Sets tax_classifications - * - * @param \SellingPartnerApi\Model\OrdersV0\TaxClassification[]|null $tax_classifications A list of tax classifications that apply to the order. - * - * @return self - */ - public function setTaxClassifications($tax_classifications) - { - $this->container['tax_classifications'] = $tax_classifications; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/Money.php b/lib/Model/OrdersV0/Money.php deleted file mode 100644 index 0ea806929..000000000 --- a/lib/Model/OrdersV0/Money.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The three-digit currency code. In ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount The currency amount. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OpenInterval.php b/lib/Model/OrdersV0/OpenInterval.php deleted file mode 100644 index 1ee5da00a..000000000 --- a/lib/Model/OrdersV0/OpenInterval.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OpenInterval extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OpenInterval'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => '\SellingPartnerApi\Model\OrdersV0\OpenTimeInterval', - 'end_time' => '\SellingPartnerApi\Model\OrdersV0\OpenTimeInterval' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'StartTime', - 'end_time' => 'EndTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return \SellingPartnerApi\Model\OrdersV0\OpenTimeInterval|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param \SellingPartnerApi\Model\OrdersV0\OpenTimeInterval|null $start_time start_time - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return \SellingPartnerApi\Model\OrdersV0\OpenTimeInterval|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param \SellingPartnerApi\Model\OrdersV0\OpenTimeInterval|null $end_time end_time - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OpenTimeInterval.php b/lib/Model/OrdersV0/OpenTimeInterval.php deleted file mode 100644 index f19a7bf1a..000000000 --- a/lib/Model/OrdersV0/OpenTimeInterval.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OpenTimeInterval extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OpenTimeInterval'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'hour' => 'int', - 'minute' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'hour' => null, - 'minute' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'hour' => 'Hour', - 'minute' => 'Minute' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'hour' => 'setHour', - 'minute' => 'setMinute' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'hour' => 'getHour', - 'minute' => 'getMinute' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['hour'] = $data['hour'] ?? null; - $this->container['minute'] = $data['minute'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets hour - * - * @return int|null - */ - public function getHour() - { - return $this->container['hour']; - } - - /** - * Sets hour - * - * @param int|null $hour The hour when the business opens or closes. - * - * @return self - */ - public function setHour($hour) - { - $this->container['hour'] = $hour; - - return $this; - } - /** - * Gets minute - * - * @return int|null - */ - public function getMinute() - { - return $this->container['minute']; - } - - /** - * Sets minute - * - * @param int|null $minute The minute when the business opens or closes. - * - * @return self - */ - public function setMinute($minute) - { - $this->container['minute'] = $minute; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/Order.php b/lib/Model/OrdersV0/Order.php deleted file mode 100644 index fdf0a144a..000000000 --- a/lib/Model/OrdersV0/Order.php +++ /dev/null @@ -1,1752 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Order extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Order'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'seller_order_id' => 'string', - 'purchase_date' => 'string', - 'last_update_date' => 'string', - 'order_status' => 'string', - 'fulfillment_channel' => 'string', - 'sales_channel' => 'string', - 'order_channel' => 'string', - 'ship_service_level' => 'string', - 'order_total' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'number_of_items_shipped' => 'int', - 'number_of_items_unshipped' => 'int', - 'payment_execution_detail' => '\SellingPartnerApi\Model\OrdersV0\PaymentExecutionDetailItem[]', - 'payment_method' => 'string', - 'payment_method_details' => 'string[]', - 'marketplace_id' => 'string', - 'shipment_service_level_category' => 'string', - 'easy_ship_shipment_status' => '\SellingPartnerApi\Model\OrdersV0\EasyShipShipmentStatus', - 'cba_displayable_shipping_label' => 'string', - 'order_type' => 'string', - 'earliest_ship_date' => 'string', - 'latest_ship_date' => 'string', - 'earliest_delivery_date' => 'string', - 'latest_delivery_date' => 'string', - 'is_business_order' => 'bool', - 'is_prime' => 'bool', - 'is_premium_order' => 'bool', - 'is_global_express_enabled' => 'bool', - 'replaced_order_id' => 'string', - 'is_replacement_order' => 'bool', - 'promise_response_due_date' => 'string', - 'is_estimated_ship_date_set' => 'bool', - 'is_sold_by_ab' => 'bool', - 'is_iba' => 'bool', - 'default_ship_from_location_address' => '\SellingPartnerApi\Model\OrdersV0\Address', - 'buyer_invoice_preference' => 'string', - 'buyer_tax_information' => '\SellingPartnerApi\Model\OrdersV0\BuyerTaxInformation', - 'fulfillment_instruction' => '\SellingPartnerApi\Model\OrdersV0\FulfillmentInstruction', - 'is_ispu' => 'bool', - 'is_access_point_order' => 'bool', - 'marketplace_tax_info' => '\SellingPartnerApi\Model\OrdersV0\MarketplaceTaxInfo', - 'seller_display_name' => 'string', - 'shipping_address' => '\SellingPartnerApi\Model\OrdersV0\Address', - 'buyer_info' => '\SellingPartnerApi\Model\OrdersV0\BuyerInfo', - 'automated_shipping_settings' => '\SellingPartnerApi\Model\OrdersV0\AutomatedShippingSettings', - 'has_regulated_items' => 'bool', - 'electronic_invoice_status' => '\SellingPartnerApi\Model\OrdersV0\ElectronicInvoiceStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'seller_order_id' => null, - 'purchase_date' => null, - 'last_update_date' => null, - 'order_status' => null, - 'fulfillment_channel' => null, - 'sales_channel' => null, - 'order_channel' => null, - 'ship_service_level' => null, - 'order_total' => null, - 'number_of_items_shipped' => null, - 'number_of_items_unshipped' => null, - 'payment_execution_detail' => null, - 'payment_method' => null, - 'payment_method_details' => null, - 'marketplace_id' => null, - 'shipment_service_level_category' => null, - 'easy_ship_shipment_status' => null, - 'cba_displayable_shipping_label' => null, - 'order_type' => null, - 'earliest_ship_date' => null, - 'latest_ship_date' => null, - 'earliest_delivery_date' => null, - 'latest_delivery_date' => null, - 'is_business_order' => null, - 'is_prime' => null, - 'is_premium_order' => null, - 'is_global_express_enabled' => null, - 'replaced_order_id' => null, - 'is_replacement_order' => null, - 'promise_response_due_date' => null, - 'is_estimated_ship_date_set' => null, - 'is_sold_by_ab' => null, - 'is_iba' => null, - 'default_ship_from_location_address' => null, - 'buyer_invoice_preference' => null, - 'buyer_tax_information' => null, - 'fulfillment_instruction' => null, - 'is_ispu' => null, - 'is_access_point_order' => null, - 'marketplace_tax_info' => null, - 'seller_display_name' => null, - 'shipping_address' => null, - 'buyer_info' => null, - 'automated_shipping_settings' => null, - 'has_regulated_items' => null, - 'electronic_invoice_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'seller_order_id' => 'SellerOrderId', - 'purchase_date' => 'PurchaseDate', - 'last_update_date' => 'LastUpdateDate', - 'order_status' => 'OrderStatus', - 'fulfillment_channel' => 'FulfillmentChannel', - 'sales_channel' => 'SalesChannel', - 'order_channel' => 'OrderChannel', - 'ship_service_level' => 'ShipServiceLevel', - 'order_total' => 'OrderTotal', - 'number_of_items_shipped' => 'NumberOfItemsShipped', - 'number_of_items_unshipped' => 'NumberOfItemsUnshipped', - 'payment_execution_detail' => 'PaymentExecutionDetail', - 'payment_method' => 'PaymentMethod', - 'payment_method_details' => 'PaymentMethodDetails', - 'marketplace_id' => 'MarketplaceId', - 'shipment_service_level_category' => 'ShipmentServiceLevelCategory', - 'easy_ship_shipment_status' => 'EasyShipShipmentStatus', - 'cba_displayable_shipping_label' => 'CbaDisplayableShippingLabel', - 'order_type' => 'OrderType', - 'earliest_ship_date' => 'EarliestShipDate', - 'latest_ship_date' => 'LatestShipDate', - 'earliest_delivery_date' => 'EarliestDeliveryDate', - 'latest_delivery_date' => 'LatestDeliveryDate', - 'is_business_order' => 'IsBusinessOrder', - 'is_prime' => 'IsPrime', - 'is_premium_order' => 'IsPremiumOrder', - 'is_global_express_enabled' => 'IsGlobalExpressEnabled', - 'replaced_order_id' => 'ReplacedOrderId', - 'is_replacement_order' => 'IsReplacementOrder', - 'promise_response_due_date' => 'PromiseResponseDueDate', - 'is_estimated_ship_date_set' => 'IsEstimatedShipDateSet', - 'is_sold_by_ab' => 'IsSoldByAB', - 'is_iba' => 'IsIBA', - 'default_ship_from_location_address' => 'DefaultShipFromLocationAddress', - 'buyer_invoice_preference' => 'BuyerInvoicePreference', - 'buyer_tax_information' => 'BuyerTaxInformation', - 'fulfillment_instruction' => 'FulfillmentInstruction', - 'is_ispu' => 'IsISPU', - 'is_access_point_order' => 'IsAccessPointOrder', - 'marketplace_tax_info' => 'MarketplaceTaxInfo', - 'seller_display_name' => 'SellerDisplayName', - 'shipping_address' => 'ShippingAddress', - 'buyer_info' => 'BuyerInfo', - 'automated_shipping_settings' => 'AutomatedShippingSettings', - 'has_regulated_items' => 'HasRegulatedItems', - 'electronic_invoice_status' => 'ElectronicInvoiceStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'seller_order_id' => 'setSellerOrderId', - 'purchase_date' => 'setPurchaseDate', - 'last_update_date' => 'setLastUpdateDate', - 'order_status' => 'setOrderStatus', - 'fulfillment_channel' => 'setFulfillmentChannel', - 'sales_channel' => 'setSalesChannel', - 'order_channel' => 'setOrderChannel', - 'ship_service_level' => 'setShipServiceLevel', - 'order_total' => 'setOrderTotal', - 'number_of_items_shipped' => 'setNumberOfItemsShipped', - 'number_of_items_unshipped' => 'setNumberOfItemsUnshipped', - 'payment_execution_detail' => 'setPaymentExecutionDetail', - 'payment_method' => 'setPaymentMethod', - 'payment_method_details' => 'setPaymentMethodDetails', - 'marketplace_id' => 'setMarketplaceId', - 'shipment_service_level_category' => 'setShipmentServiceLevelCategory', - 'easy_ship_shipment_status' => 'setEasyShipShipmentStatus', - 'cba_displayable_shipping_label' => 'setCbaDisplayableShippingLabel', - 'order_type' => 'setOrderType', - 'earliest_ship_date' => 'setEarliestShipDate', - 'latest_ship_date' => 'setLatestShipDate', - 'earliest_delivery_date' => 'setEarliestDeliveryDate', - 'latest_delivery_date' => 'setLatestDeliveryDate', - 'is_business_order' => 'setIsBusinessOrder', - 'is_prime' => 'setIsPrime', - 'is_premium_order' => 'setIsPremiumOrder', - 'is_global_express_enabled' => 'setIsGlobalExpressEnabled', - 'replaced_order_id' => 'setReplacedOrderId', - 'is_replacement_order' => 'setIsReplacementOrder', - 'promise_response_due_date' => 'setPromiseResponseDueDate', - 'is_estimated_ship_date_set' => 'setIsEstimatedShipDateSet', - 'is_sold_by_ab' => 'setIsSoldByAb', - 'is_iba' => 'setIsIba', - 'default_ship_from_location_address' => 'setDefaultShipFromLocationAddress', - 'buyer_invoice_preference' => 'setBuyerInvoicePreference', - 'buyer_tax_information' => 'setBuyerTaxInformation', - 'fulfillment_instruction' => 'setFulfillmentInstruction', - 'is_ispu' => 'setIsIspu', - 'is_access_point_order' => 'setIsAccessPointOrder', - 'marketplace_tax_info' => 'setMarketplaceTaxInfo', - 'seller_display_name' => 'setSellerDisplayName', - 'shipping_address' => 'setShippingAddress', - 'buyer_info' => 'setBuyerInfo', - 'automated_shipping_settings' => 'setAutomatedShippingSettings', - 'has_regulated_items' => 'setHasRegulatedItems', - 'electronic_invoice_status' => 'setElectronicInvoiceStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'seller_order_id' => 'getSellerOrderId', - 'purchase_date' => 'getPurchaseDate', - 'last_update_date' => 'getLastUpdateDate', - 'order_status' => 'getOrderStatus', - 'fulfillment_channel' => 'getFulfillmentChannel', - 'sales_channel' => 'getSalesChannel', - 'order_channel' => 'getOrderChannel', - 'ship_service_level' => 'getShipServiceLevel', - 'order_total' => 'getOrderTotal', - 'number_of_items_shipped' => 'getNumberOfItemsShipped', - 'number_of_items_unshipped' => 'getNumberOfItemsUnshipped', - 'payment_execution_detail' => 'getPaymentExecutionDetail', - 'payment_method' => 'getPaymentMethod', - 'payment_method_details' => 'getPaymentMethodDetails', - 'marketplace_id' => 'getMarketplaceId', - 'shipment_service_level_category' => 'getShipmentServiceLevelCategory', - 'easy_ship_shipment_status' => 'getEasyShipShipmentStatus', - 'cba_displayable_shipping_label' => 'getCbaDisplayableShippingLabel', - 'order_type' => 'getOrderType', - 'earliest_ship_date' => 'getEarliestShipDate', - 'latest_ship_date' => 'getLatestShipDate', - 'earliest_delivery_date' => 'getEarliestDeliveryDate', - 'latest_delivery_date' => 'getLatestDeliveryDate', - 'is_business_order' => 'getIsBusinessOrder', - 'is_prime' => 'getIsPrime', - 'is_premium_order' => 'getIsPremiumOrder', - 'is_global_express_enabled' => 'getIsGlobalExpressEnabled', - 'replaced_order_id' => 'getReplacedOrderId', - 'is_replacement_order' => 'getIsReplacementOrder', - 'promise_response_due_date' => 'getPromiseResponseDueDate', - 'is_estimated_ship_date_set' => 'getIsEstimatedShipDateSet', - 'is_sold_by_ab' => 'getIsSoldByAb', - 'is_iba' => 'getIsIba', - 'default_ship_from_location_address' => 'getDefaultShipFromLocationAddress', - 'buyer_invoice_preference' => 'getBuyerInvoicePreference', - 'buyer_tax_information' => 'getBuyerTaxInformation', - 'fulfillment_instruction' => 'getFulfillmentInstruction', - 'is_ispu' => 'getIsIspu', - 'is_access_point_order' => 'getIsAccessPointOrder', - 'marketplace_tax_info' => 'getMarketplaceTaxInfo', - 'seller_display_name' => 'getSellerDisplayName', - 'shipping_address' => 'getShippingAddress', - 'buyer_info' => 'getBuyerInfo', - 'automated_shipping_settings' => 'getAutomatedShippingSettings', - 'has_regulated_items' => 'getHasRegulatedItems', - 'electronic_invoice_status' => 'getElectronicInvoiceStatus' - ]; - - - - const ORDER_STATUS_PENDING = 'Pending'; - const ORDER_STATUS_UNSHIPPED = 'Unshipped'; - const ORDER_STATUS_PARTIALLY_SHIPPED = 'PartiallyShipped'; - const ORDER_STATUS_SHIPPED = 'Shipped'; - const ORDER_STATUS_CANCELED = 'Canceled'; - const ORDER_STATUS_UNFULFILLABLE = 'Unfulfillable'; - const ORDER_STATUS_INVOICE_UNCONFIRMED = 'InvoiceUnconfirmed'; - const ORDER_STATUS_PENDING_AVAILABILITY = 'PendingAvailability'; - - - const FULFILLMENT_CHANNEL_MFN = 'MFN'; - const FULFILLMENT_CHANNEL_AFN = 'AFN'; - - - const PAYMENT_METHOD_COD = 'COD'; - const PAYMENT_METHOD_CVS = 'CVS'; - const PAYMENT_METHOD_OTHER = 'Other'; - - - const ORDER_TYPE_STANDARD_ORDER = 'StandardOrder'; - const ORDER_TYPE_LONG_LEAD_TIME_ORDER = 'LongLeadTimeOrder'; - const ORDER_TYPE_PREORDER = 'Preorder'; - const ORDER_TYPE_BACK_ORDER = 'BackOrder'; - const ORDER_TYPE_SOURCING_ON_DEMAND_ORDER = 'SourcingOnDemandOrder'; - - - const BUYER_INVOICE_PREFERENCE_INDIVIDUAL = 'INDIVIDUAL'; - const BUYER_INVOICE_PREFERENCE_BUSINESS = 'BUSINESS'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOrderStatusAllowableValues() - { - $baseVals = [ - self::ORDER_STATUS_PENDING, - self::ORDER_STATUS_UNSHIPPED, - self::ORDER_STATUS_PARTIALLY_SHIPPED, - self::ORDER_STATUS_SHIPPED, - self::ORDER_STATUS_CANCELED, - self::ORDER_STATUS_UNFULFILLABLE, - self::ORDER_STATUS_INVOICE_UNCONFIRMED, - self::ORDER_STATUS_PENDING_AVAILABILITY, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFulfillmentChannelAllowableValues() - { - $baseVals = [ - self::FULFILLMENT_CHANNEL_MFN, - self::FULFILLMENT_CHANNEL_AFN, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPaymentMethodAllowableValues() - { - $baseVals = [ - self::PAYMENT_METHOD_COD, - self::PAYMENT_METHOD_CVS, - self::PAYMENT_METHOD_OTHER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOrderTypeAllowableValues() - { - $baseVals = [ - self::ORDER_TYPE_STANDARD_ORDER, - self::ORDER_TYPE_LONG_LEAD_TIME_ORDER, - self::ORDER_TYPE_PREORDER, - self::ORDER_TYPE_BACK_ORDER, - self::ORDER_TYPE_SOURCING_ON_DEMAND_ORDER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getBuyerInvoicePreferenceAllowableValues() - { - $baseVals = [ - self::BUYER_INVOICE_PREFERENCE_INDIVIDUAL, - self::BUYER_INVOICE_PREFERENCE_BUSINESS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['seller_order_id'] = $data['seller_order_id'] ?? null; - $this->container['purchase_date'] = $data['purchase_date'] ?? null; - $this->container['last_update_date'] = $data['last_update_date'] ?? null; - $this->container['order_status'] = $data['order_status'] ?? null; - $this->container['fulfillment_channel'] = $data['fulfillment_channel'] ?? null; - $this->container['sales_channel'] = $data['sales_channel'] ?? null; - $this->container['order_channel'] = $data['order_channel'] ?? null; - $this->container['ship_service_level'] = $data['ship_service_level'] ?? null; - $this->container['order_total'] = $data['order_total'] ?? null; - $this->container['number_of_items_shipped'] = $data['number_of_items_shipped'] ?? null; - $this->container['number_of_items_unshipped'] = $data['number_of_items_unshipped'] ?? null; - $this->container['payment_execution_detail'] = $data['payment_execution_detail'] ?? null; - $this->container['payment_method'] = $data['payment_method'] ?? null; - $this->container['payment_method_details'] = $data['payment_method_details'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['shipment_service_level_category'] = $data['shipment_service_level_category'] ?? null; - $this->container['easy_ship_shipment_status'] = $data['easy_ship_shipment_status'] ?? null; - $this->container['cba_displayable_shipping_label'] = $data['cba_displayable_shipping_label'] ?? null; - $this->container['order_type'] = $data['order_type'] ?? null; - $this->container['earliest_ship_date'] = $data['earliest_ship_date'] ?? null; - $this->container['latest_ship_date'] = $data['latest_ship_date'] ?? null; - $this->container['earliest_delivery_date'] = $data['earliest_delivery_date'] ?? null; - $this->container['latest_delivery_date'] = $data['latest_delivery_date'] ?? null; - $this->container['is_business_order'] = $data['is_business_order'] ?? null; - $this->container['is_prime'] = $data['is_prime'] ?? null; - $this->container['is_premium_order'] = $data['is_premium_order'] ?? null; - $this->container['is_global_express_enabled'] = $data['is_global_express_enabled'] ?? null; - $this->container['replaced_order_id'] = $data['replaced_order_id'] ?? null; - $this->container['is_replacement_order'] = $data['is_replacement_order'] ?? null; - $this->container['promise_response_due_date'] = $data['promise_response_due_date'] ?? null; - $this->container['is_estimated_ship_date_set'] = $data['is_estimated_ship_date_set'] ?? null; - $this->container['is_sold_by_ab'] = $data['is_sold_by_ab'] ?? null; - $this->container['is_iba'] = $data['is_iba'] ?? null; - $this->container['default_ship_from_location_address'] = $data['default_ship_from_location_address'] ?? null; - $this->container['buyer_invoice_preference'] = $data['buyer_invoice_preference'] ?? null; - $this->container['buyer_tax_information'] = $data['buyer_tax_information'] ?? null; - $this->container['fulfillment_instruction'] = $data['fulfillment_instruction'] ?? null; - $this->container['is_ispu'] = $data['is_ispu'] ?? null; - $this->container['is_access_point_order'] = $data['is_access_point_order'] ?? null; - $this->container['marketplace_tax_info'] = $data['marketplace_tax_info'] ?? null; - $this->container['seller_display_name'] = $data['seller_display_name'] ?? null; - $this->container['shipping_address'] = $data['shipping_address'] ?? null; - $this->container['buyer_info'] = $data['buyer_info'] ?? null; - $this->container['automated_shipping_settings'] = $data['automated_shipping_settings'] ?? null; - $this->container['has_regulated_items'] = $data['has_regulated_items'] ?? null; - $this->container['electronic_invoice_status'] = $data['electronic_invoice_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if ($this->container['purchase_date'] === null) { - $invalidProperties[] = "'purchase_date' can't be null"; - } - if ($this->container['last_update_date'] === null) { - $invalidProperties[] = "'last_update_date' can't be null"; - } - if ($this->container['order_status'] === null) { - $invalidProperties[] = "'order_status' can't be null"; - } - $allowedValues = $this->getOrderStatusAllowableValues(); - if ( - !is_null($this->container['order_status']) && - !in_array(strtoupper($this->container['order_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'order_status', must be one of '%s'", - $this->container['order_status'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFulfillmentChannelAllowableValues(); - if ( - !is_null($this->container['fulfillment_channel']) && - !in_array(strtoupper($this->container['fulfillment_channel']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'fulfillment_channel', must be one of '%s'", - $this->container['fulfillment_channel'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getPaymentMethodAllowableValues(); - if ( - !is_null($this->container['payment_method']) && - !in_array(strtoupper($this->container['payment_method']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'payment_method', must be one of '%s'", - $this->container['payment_method'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getOrderTypeAllowableValues(); - if ( - !is_null($this->container['order_type']) && - !in_array(strtoupper($this->container['order_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'order_type', must be one of '%s'", - $this->container['order_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getBuyerInvoicePreferenceAllowableValues(); - if ( - !is_null($this->container['buyer_invoice_preference']) && - !in_array(strtoupper($this->container['buyer_invoice_preference']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'buyer_invoice_preference', must be one of '%s'", - $this->container['buyer_invoice_preference'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets seller_order_id - * - * @return string|null - */ - public function getSellerOrderId() - { - return $this->container['seller_order_id']; - } - - /** - * Sets seller_order_id - * - * @param string|null $seller_order_id A seller-defined order identifier. - * - * @return self - */ - public function setSellerOrderId($seller_order_id) - { - $this->container['seller_order_id'] = $seller_order_id; - - return $this; - } - /** - * Gets purchase_date - * - * @return string - */ - public function getPurchaseDate() - { - return $this->container['purchase_date']; - } - - /** - * Sets purchase_date - * - * @param string $purchase_date The date when the order was created. - * - * @return self - */ - public function setPurchaseDate($purchase_date) - { - $this->container['purchase_date'] = $purchase_date; - - return $this; - } - /** - * Gets last_update_date - * - * @return string - */ - public function getLastUpdateDate() - { - return $this->container['last_update_date']; - } - - /** - * Sets last_update_date - * - * @param string $last_update_date The date when the order was last updated. - * __Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01. - * - * @return self - */ - public function setLastUpdateDate($last_update_date) - { - $this->container['last_update_date'] = $last_update_date; - - return $this; - } - /** - * Gets order_status - * - * @return string - */ - public function getOrderStatus() - { - return $this->container['order_status']; - } - - /** - * Sets order_status - * - * @param string $order_status The current order status. - * - * @return self - */ - public function setOrderStatus($order_status) - { - $allowedValues = $this->getOrderStatusAllowableValues(); - if (!in_array(strtoupper($order_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'order_status', must be one of '%s'", - $order_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['order_status'] = $order_status; - - return $this; - } - /** - * Gets fulfillment_channel - * - * @return string|null - */ - public function getFulfillmentChannel() - { - return $this->container['fulfillment_channel']; - } - - /** - * Sets fulfillment_channel - * - * @param string|null $fulfillment_channel Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN). - * - * @return self - */ - public function setFulfillmentChannel($fulfillment_channel) - { - $allowedValues = $this->getFulfillmentChannelAllowableValues(); - if (!is_null($fulfillment_channel) &&!in_array(strtoupper($fulfillment_channel), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'fulfillment_channel', must be one of '%s'", - $fulfillment_channel, - implode("', '", $allowedValues) - ) - ); - } - $this->container['fulfillment_channel'] = $fulfillment_channel; - - return $this; - } - /** - * Gets sales_channel - * - * @return string|null - */ - public function getSalesChannel() - { - return $this->container['sales_channel']; - } - - /** - * Sets sales_channel - * - * @param string|null $sales_channel The sales channel of the first item in the order. - * - * @return self - */ - public function setSalesChannel($sales_channel) - { - $this->container['sales_channel'] = $sales_channel; - - return $this; - } - /** - * Gets order_channel - * - * @return string|null - */ - public function getOrderChannel() - { - return $this->container['order_channel']; - } - - /** - * Sets order_channel - * - * @param string|null $order_channel The order channel of the first item in the order. - * - * @return self - */ - public function setOrderChannel($order_channel) - { - $this->container['order_channel'] = $order_channel; - - return $this; - } - /** - * Gets ship_service_level - * - * @return string|null - */ - public function getShipServiceLevel() - { - return $this->container['ship_service_level']; - } - - /** - * Sets ship_service_level - * - * @param string|null $ship_service_level The shipment service level of the order. - * - * @return self - */ - public function setShipServiceLevel($ship_service_level) - { - $this->container['ship_service_level'] = $ship_service_level; - - return $this; - } - /** - * Gets order_total - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getOrderTotal() - { - return $this->container['order_total']; - } - - /** - * Sets order_total - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $order_total order_total - * - * @return self - */ - public function setOrderTotal($order_total) - { - $this->container['order_total'] = $order_total; - - return $this; - } - /** - * Gets number_of_items_shipped - * - * @return int|null - */ - public function getNumberOfItemsShipped() - { - return $this->container['number_of_items_shipped']; - } - - /** - * Sets number_of_items_shipped - * - * @param int|null $number_of_items_shipped The number of items shipped. - * - * @return self - */ - public function setNumberOfItemsShipped($number_of_items_shipped) - { - $this->container['number_of_items_shipped'] = $number_of_items_shipped; - - return $this; - } - /** - * Gets number_of_items_unshipped - * - * @return int|null - */ - public function getNumberOfItemsUnshipped() - { - return $this->container['number_of_items_unshipped']; - } - - /** - * Sets number_of_items_unshipped - * - * @param int|null $number_of_items_unshipped The number of items unshipped. - * - * @return self - */ - public function setNumberOfItemsUnshipped($number_of_items_unshipped) - { - $this->container['number_of_items_unshipped'] = $number_of_items_unshipped; - - return $this; - } - /** - * Gets payment_execution_detail - * - * @return \SellingPartnerApi\Model\OrdersV0\PaymentExecutionDetailItem[]|null - */ - public function getPaymentExecutionDetail() - { - return $this->container['payment_execution_detail']; - } - - /** - * Sets payment_execution_detail - * - * @param \SellingPartnerApi\Model\OrdersV0\PaymentExecutionDetailItem[]|null $payment_execution_detail A list of payment execution detail items. - * - * @return self - */ - public function setPaymentExecutionDetail($payment_execution_detail) - { - $this->container['payment_execution_detail'] = $payment_execution_detail; - - return $this; - } - /** - * Gets payment_method - * - * @return string|null - */ - public function getPaymentMethod() - { - return $this->container['payment_method']; - } - - /** - * Sets payment_method - * - * @param string|null $payment_method The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information. - * - * @return self - */ - public function setPaymentMethod($payment_method) - { - $allowedValues = $this->getPaymentMethodAllowableValues(); - if (!is_null($payment_method) &&!in_array(strtoupper($payment_method), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'payment_method', must be one of '%s'", - $payment_method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['payment_method'] = $payment_method; - - return $this; - } - /** - * Gets payment_method_details - * - * @return string[]|null - */ - public function getPaymentMethodDetails() - { - return $this->container['payment_method_details']; - } - - /** - * Sets payment_method_details - * - * @param string[]|null $payment_method_details A list of payment method detail items. - * - * @return self - */ - public function setPaymentMethodDetails($payment_method_details) - { - $this->container['payment_method_details'] = $payment_method_details; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The identifier for the marketplace where the order was placed. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets shipment_service_level_category - * - * @return string|null - */ - public function getShipmentServiceLevelCategory() - { - return $this->container['shipment_service_level_category']; - } - - /** - * Sets shipment_service_level_category - * - * @param string|null $shipment_service_level_category The shipment service level category of the order. - * Possible values: Expedited, FreeEconomy, NextDay, SameDay, SecondDay, Scheduled, Standard. - * - * @return self - */ - public function setShipmentServiceLevelCategory($shipment_service_level_category) - { - $this->container['shipment_service_level_category'] = $shipment_service_level_category; - - return $this; - } - /** - * Gets easy_ship_shipment_status - * - * @return \SellingPartnerApi\Model\OrdersV0\EasyShipShipmentStatus|null - */ - public function getEasyShipShipmentStatus() - { - return $this->container['easy_ship_shipment_status']; - } - - /** - * Sets easy_ship_shipment_status - * - * @param \SellingPartnerApi\Model\OrdersV0\EasyShipShipmentStatus|null $easy_ship_shipment_status easy_ship_shipment_status - * - * @return self - */ - public function setEasyShipShipmentStatus($easy_ship_shipment_status) - { - $this->container['easy_ship_shipment_status'] = $easy_ship_shipment_status; - - return $this; - } - /** - * Gets cba_displayable_shipping_label - * - * @return string|null - */ - public function getCbaDisplayableShippingLabel() - { - return $this->container['cba_displayable_shipping_label']; - } - - /** - * Sets cba_displayable_shipping_label - * - * @param string|null $cba_displayable_shipping_label Custom ship label for Checkout by Amazon (CBA). - * - * @return self - */ - public function setCbaDisplayableShippingLabel($cba_displayable_shipping_label) - { - $this->container['cba_displayable_shipping_label'] = $cba_displayable_shipping_label; - - return $this; - } - /** - * Gets order_type - * - * @return string|null - */ - public function getOrderType() - { - return $this->container['order_type']; - } - - /** - * Sets order_type - * - * @param string|null $order_type The type of the order. - * - * @return self - */ - public function setOrderType($order_type) - { - $allowedValues = $this->getOrderTypeAllowableValues(); - if (!is_null($order_type) &&!in_array(strtoupper($order_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'order_type', must be one of '%s'", - $order_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['order_type'] = $order_type; - - return $this; - } - /** - * Gets earliest_ship_date - * - * @return string|null - */ - public function getEarliestShipDate() - { - return $this->container['earliest_ship_date']; - } - - /** - * Sets earliest_ship_date - * - * @param string|null $earliest_ship_date The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. - * __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013. - * - * @return self - */ - public function setEarliestShipDate($earliest_ship_date) - { - $this->container['earliest_ship_date'] = $earliest_ship_date; - - return $this; - } - /** - * Gets latest_ship_date - * - * @return string|null - */ - public function getLatestShipDate() - { - return $this->container['latest_ship_date']; - } - - /** - * Sets latest_ship_date - * - * @param string|null $latest_ship_date The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. - * __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013. - * - * @return self - */ - public function setLatestShipDate($latest_ship_date) - { - $this->container['latest_ship_date'] = $latest_ship_date; - - return $this; - } - /** - * Gets earliest_delivery_date - * - * @return string|null - */ - public function getEarliestDeliveryDate() - { - return $this->container['earliest_delivery_date']; - } - - /** - * Sets earliest_delivery_date - * - * @param string|null $earliest_delivery_date The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. - * - * @return self - */ - public function setEarliestDeliveryDate($earliest_delivery_date) - { - $this->container['earliest_delivery_date'] = $earliest_delivery_date; - - return $this; - } - /** - * Gets latest_delivery_date - * - * @return string|null - */ - public function getLatestDeliveryDate() - { - return $this->container['latest_delivery_date']; - } - - /** - * Sets latest_delivery_date - * - * @param string|null $latest_delivery_date The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status. - * - * @return self - */ - public function setLatestDeliveryDate($latest_delivery_date) - { - $this->container['latest_delivery_date'] = $latest_delivery_date; - - return $this; - } - /** - * Gets is_business_order - * - * @return bool|null - */ - public function getIsBusinessOrder() - { - return $this->container['is_business_order']; - } - - /** - * Sets is_business_order - * - * @param bool|null $is_business_order When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer. - * - * @return self - */ - public function setIsBusinessOrder($is_business_order) - { - $this->container['is_business_order'] = $is_business_order; - - return $this; - } - /** - * Gets is_prime - * - * @return bool|null - */ - public function getIsPrime() - { - return $this->container['is_prime']; - } - - /** - * Sets is_prime - * - * @param bool|null $is_prime When true, the order is a seller-fulfilled Amazon Prime order. - * - * @return self - */ - public function setIsPrime($is_prime) - { - $this->container['is_prime'] = $is_prime; - - return $this; - } - /** - * Gets is_premium_order - * - * @return bool|null - */ - public function getIsPremiumOrder() - { - return $this->container['is_premium_order']; - } - - /** - * Sets is_premium_order - * - * @param bool|null $is_premium_order When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, see \"Premium Shipping Options\" in the Seller Central Help for your marketplace. - * - * @return self - */ - public function setIsPremiumOrder($is_premium_order) - { - $this->container['is_premium_order'] = $is_premium_order; - - return $this; - } - /** - * Gets is_global_express_enabled - * - * @return bool|null - */ - public function getIsGlobalExpressEnabled() - { - return $this->container['is_global_express_enabled']; - } - - /** - * Sets is_global_express_enabled - * - * @param bool|null $is_global_express_enabled When true, the order is a GlobalExpress order. - * - * @return self - */ - public function setIsGlobalExpressEnabled($is_global_express_enabled) - { - $this->container['is_global_express_enabled'] = $is_global_express_enabled; - - return $this; - } - /** - * Gets replaced_order_id - * - * @return string|null - */ - public function getReplacedOrderId() - { - return $this->container['replaced_order_id']; - } - - /** - * Sets replaced_order_id - * - * @param string|null $replaced_order_id The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true. - * - * @return self - */ - public function setReplacedOrderId($replaced_order_id) - { - $this->container['replaced_order_id'] = $replaced_order_id; - - return $this; - } - /** - * Gets is_replacement_order - * - * @return bool|null - */ - public function getIsReplacementOrder() - { - return $this->container['is_replacement_order']; - } - - /** - * Sets is_replacement_order - * - * @param bool|null $is_replacement_order When true, this is a replacement order. - * - * @return self - */ - public function setIsReplacementOrder($is_replacement_order) - { - $this->container['is_replacement_order'] = $is_replacement_order; - - return $this; - } - /** - * Gets promise_response_due_date - * - * @return string|null - */ - public function getPromiseResponseDueDate() - { - return $this->container['promise_response_due_date']; - } - - /** - * Sets promise_response_due_date - * - * @param string|null $promise_response_due_date Indicates the date by which the seller must respond to the buyer with an estimated ship date. Returned only for Sourcing on Demand orders. - * - * @return self - */ - public function setPromiseResponseDueDate($promise_response_due_date) - { - $this->container['promise_response_due_date'] = $promise_response_due_date; - - return $this; - } - /** - * Gets is_estimated_ship_date_set - * - * @return bool|null - */ - public function getIsEstimatedShipDateSet() - { - return $this->container['is_estimated_ship_date_set']; - } - - /** - * Sets is_estimated_ship_date_set - * - * @param bool|null $is_estimated_ship_date_set When true, the estimated ship date is set for the order. Returned only for Sourcing on Demand orders. - * - * @return self - */ - public function setIsEstimatedShipDateSet($is_estimated_ship_date_set) - { - $this->container['is_estimated_ship_date_set'] = $is_estimated_ship_date_set; - - return $this; - } - /** - * Gets is_sold_by_ab - * - * @return bool|null - */ - public function getIsSoldByAb() - { - return $this->container['is_sold_by_ab']; - } - - /** - * Sets is_sold_by_ab - * - * @param bool|null $is_sold_by_ab When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. - * - * @return self - */ - public function setIsSoldByAb($is_sold_by_ab) - { - $this->container['is_sold_by_ab'] = $is_sold_by_ab; - - return $this; - } - /** - * Gets is_iba - * - * @return bool|null - */ - public function getIsIba() - { - return $this->container['is_iba']; - } - - /** - * Sets is_iba - * - * @param bool|null $is_iba When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. - * - * @return self - */ - public function setIsIba($is_iba) - { - $this->container['is_iba'] = $is_iba; - - return $this; - } - /** - * Gets default_ship_from_location_address - * - * @return \SellingPartnerApi\Model\OrdersV0\Address|null - */ - public function getDefaultShipFromLocationAddress() - { - return $this->container['default_ship_from_location_address']; - } - - /** - * Sets default_ship_from_location_address - * - * @param \SellingPartnerApi\Model\OrdersV0\Address|null $default_ship_from_location_address default_ship_from_location_address - * - * @return self - */ - public function setDefaultShipFromLocationAddress($default_ship_from_location_address) - { - $this->container['default_ship_from_location_address'] = $default_ship_from_location_address; - - return $this; - } - /** - * Gets buyer_invoice_preference - * - * @return string|null - */ - public function getBuyerInvoicePreference() - { - return $this->container['buyer_invoice_preference']; - } - - /** - * Sets buyer_invoice_preference - * - * @param string|null $buyer_invoice_preference The buyer's invoicing preference. Available only in the TR marketplace. - * - * @return self - */ - public function setBuyerInvoicePreference($buyer_invoice_preference) - { - $allowedValues = $this->getBuyerInvoicePreferenceAllowableValues(); - if (!is_null($buyer_invoice_preference) &&!in_array(strtoupper($buyer_invoice_preference), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'buyer_invoice_preference', must be one of '%s'", - $buyer_invoice_preference, - implode("', '", $allowedValues) - ) - ); - } - $this->container['buyer_invoice_preference'] = $buyer_invoice_preference; - - return $this; - } - /** - * Gets buyer_tax_information - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerTaxInformation|null - */ - public function getBuyerTaxInformation() - { - return $this->container['buyer_tax_information']; - } - - /** - * Sets buyer_tax_information - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerTaxInformation|null $buyer_tax_information buyer_tax_information - * - * @return self - */ - public function setBuyerTaxInformation($buyer_tax_information) - { - $this->container['buyer_tax_information'] = $buyer_tax_information; - - return $this; - } - /** - * Gets fulfillment_instruction - * - * @return \SellingPartnerApi\Model\OrdersV0\FulfillmentInstruction|null - */ - public function getFulfillmentInstruction() - { - return $this->container['fulfillment_instruction']; - } - - /** - * Sets fulfillment_instruction - * - * @param \SellingPartnerApi\Model\OrdersV0\FulfillmentInstruction|null $fulfillment_instruction fulfillment_instruction - * - * @return self - */ - public function setFulfillmentInstruction($fulfillment_instruction) - { - $this->container['fulfillment_instruction'] = $fulfillment_instruction; - - return $this; - } - /** - * Gets is_ispu - * - * @return bool|null - */ - public function getIsIspu() - { - return $this->container['is_ispu']; - } - - /** - * Sets is_ispu - * - * @param bool|null $is_ispu When true, this order is marked to be picked up from a store rather than delivered. - * - * @return self - */ - public function setIsIspu($is_ispu) - { - $this->container['is_ispu'] = $is_ispu; - - return $this; - } - /** - * Gets is_access_point_order - * - * @return bool|null - */ - public function getIsAccessPointOrder() - { - return $this->container['is_access_point_order']; - } - - /** - * Sets is_access_point_order - * - * @param bool|null $is_access_point_order When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers. - * - * @return self - */ - public function setIsAccessPointOrder($is_access_point_order) - { - $this->container['is_access_point_order'] = $is_access_point_order; - - return $this; - } - /** - * Gets marketplace_tax_info - * - * @return \SellingPartnerApi\Model\OrdersV0\MarketplaceTaxInfo|null - */ - public function getMarketplaceTaxInfo() - { - return $this->container['marketplace_tax_info']; - } - - /** - * Sets marketplace_tax_info - * - * @param \SellingPartnerApi\Model\OrdersV0\MarketplaceTaxInfo|null $marketplace_tax_info marketplace_tax_info - * - * @return self - */ - public function setMarketplaceTaxInfo($marketplace_tax_info) - { - $this->container['marketplace_tax_info'] = $marketplace_tax_info; - - return $this; - } - /** - * Gets seller_display_name - * - * @return string|null - */ - public function getSellerDisplayName() - { - return $this->container['seller_display_name']; - } - - /** - * Sets seller_display_name - * - * @param string|null $seller_display_name The seller's friendly name registered in the marketplace. - * - * @return self - */ - public function setSellerDisplayName($seller_display_name) - { - $this->container['seller_display_name'] = $seller_display_name; - - return $this; - } - /** - * Gets shipping_address - * - * @return \SellingPartnerApi\Model\OrdersV0\Address|null - */ - public function getShippingAddress() - { - return $this->container['shipping_address']; - } - - /** - * Sets shipping_address - * - * @param \SellingPartnerApi\Model\OrdersV0\Address|null $shipping_address shipping_address - * - * @return self - */ - public function setShippingAddress($shipping_address) - { - $this->container['shipping_address'] = $shipping_address; - - return $this; - } - /** - * Gets buyer_info - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerInfo|null - */ - public function getBuyerInfo() - { - return $this->container['buyer_info']; - } - - /** - * Sets buyer_info - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerInfo|null $buyer_info buyer_info - * - * @return self - */ - public function setBuyerInfo($buyer_info) - { - $this->container['buyer_info'] = $buyer_info; - - return $this; - } - /** - * Gets automated_shipping_settings - * - * @return \SellingPartnerApi\Model\OrdersV0\AutomatedShippingSettings|null - */ - public function getAutomatedShippingSettings() - { - return $this->container['automated_shipping_settings']; - } - - /** - * Sets automated_shipping_settings - * - * @param \SellingPartnerApi\Model\OrdersV0\AutomatedShippingSettings|null $automated_shipping_settings automated_shipping_settings - * - * @return self - */ - public function setAutomatedShippingSettings($automated_shipping_settings) - { - $this->container['automated_shipping_settings'] = $automated_shipping_settings; - - return $this; - } - /** - * Gets has_regulated_items - * - * @return bool|null - */ - public function getHasRegulatedItems() - { - return $this->container['has_regulated_items']; - } - - /** - * Sets has_regulated_items - * - * @param bool|null $has_regulated_items Whether the order contains regulated items which may require additional approval steps before being fulfilled. - * - * @return self - */ - public function setHasRegulatedItems($has_regulated_items) - { - $this->container['has_regulated_items'] = $has_regulated_items; - - return $this; - } - /** - * Gets electronic_invoice_status - * - * @return \SellingPartnerApi\Model\OrdersV0\ElectronicInvoiceStatus|null - */ - public function getElectronicInvoiceStatus() - { - return $this->container['electronic_invoice_status']; - } - - /** - * Sets electronic_invoice_status - * - * @param \SellingPartnerApi\Model\OrdersV0\ElectronicInvoiceStatus|null $electronic_invoice_status electronic_invoice_status - * - * @return self - */ - public function setElectronicInvoiceStatus($electronic_invoice_status) - { - $this->container['electronic_invoice_status'] = $electronic_invoice_status; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderAddress.php b/lib/Model/OrdersV0/OrderAddress.php deleted file mode 100644 index acbc438b7..000000000 --- a/lib/Model/OrdersV0/OrderAddress.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderAddress extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderAddress'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'buyer_company_name' => 'string', - 'shipping_address' => '\SellingPartnerApi\Model\OrdersV0\Address', - 'delivery_preferences' => '\SellingPartnerApi\Model\OrdersV0\DeliveryPreferences' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'buyer_company_name' => null, - 'shipping_address' => null, - 'delivery_preferences' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'buyer_company_name' => 'BuyerCompanyName', - 'shipping_address' => 'ShippingAddress', - 'delivery_preferences' => 'DeliveryPreferences' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'buyer_company_name' => 'setBuyerCompanyName', - 'shipping_address' => 'setShippingAddress', - 'delivery_preferences' => 'setDeliveryPreferences' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'buyer_company_name' => 'getBuyerCompanyName', - 'shipping_address' => 'getShippingAddress', - 'delivery_preferences' => 'getDeliveryPreferences' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['buyer_company_name'] = $data['buyer_company_name'] ?? null; - $this->container['shipping_address'] = $data['shipping_address'] ?? null; - $this->container['delivery_preferences'] = $data['delivery_preferences'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets buyer_company_name - * - * @return string|null - */ - public function getBuyerCompanyName() - { - return $this->container['buyer_company_name']; - } - - /** - * Sets buyer_company_name - * - * @param string|null $buyer_company_name Company name of the destination address. - * - * @return self - */ - public function setBuyerCompanyName($buyer_company_name) - { - $this->container['buyer_company_name'] = $buyer_company_name; - - return $this; - } - /** - * Gets shipping_address - * - * @return \SellingPartnerApi\Model\OrdersV0\Address|null - */ - public function getShippingAddress() - { - return $this->container['shipping_address']; - } - - /** - * Sets shipping_address - * - * @param \SellingPartnerApi\Model\OrdersV0\Address|null $shipping_address shipping_address - * - * @return self - */ - public function setShippingAddress($shipping_address) - { - $this->container['shipping_address'] = $shipping_address; - - return $this; - } - /** - * Gets delivery_preferences - * - * @return \SellingPartnerApi\Model\OrdersV0\DeliveryPreferences|null - */ - public function getDeliveryPreferences() - { - return $this->container['delivery_preferences']; - } - - /** - * Sets delivery_preferences - * - * @param \SellingPartnerApi\Model\OrdersV0\DeliveryPreferences|null $delivery_preferences delivery_preferences - * - * @return self - */ - public function setDeliveryPreferences($delivery_preferences) - { - $this->container['delivery_preferences'] = $delivery_preferences; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderBuyerInfo.php b/lib/Model/OrdersV0/OrderBuyerInfo.php deleted file mode 100644 index 0c55caf63..000000000 --- a/lib/Model/OrdersV0/OrderBuyerInfo.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderBuyerInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderBuyerInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'buyer_email' => 'string', - 'buyer_name' => 'string', - 'buyer_county' => 'string', - 'buyer_tax_info' => '\SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo', - 'purchase_order_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'buyer_email' => null, - 'buyer_name' => null, - 'buyer_county' => null, - 'buyer_tax_info' => null, - 'purchase_order_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'buyer_email' => 'BuyerEmail', - 'buyer_name' => 'BuyerName', - 'buyer_county' => 'BuyerCounty', - 'buyer_tax_info' => 'BuyerTaxInfo', - 'purchase_order_number' => 'PurchaseOrderNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'buyer_email' => 'setBuyerEmail', - 'buyer_name' => 'setBuyerName', - 'buyer_county' => 'setBuyerCounty', - 'buyer_tax_info' => 'setBuyerTaxInfo', - 'purchase_order_number' => 'setPurchaseOrderNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'buyer_email' => 'getBuyerEmail', - 'buyer_name' => 'getBuyerName', - 'buyer_county' => 'getBuyerCounty', - 'buyer_tax_info' => 'getBuyerTaxInfo', - 'purchase_order_number' => 'getPurchaseOrderNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['buyer_email'] = $data['buyer_email'] ?? null; - $this->container['buyer_name'] = $data['buyer_name'] ?? null; - $this->container['buyer_county'] = $data['buyer_county'] ?? null; - $this->container['buyer_tax_info'] = $data['buyer_tax_info'] ?? null; - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets buyer_email - * - * @return string|null - */ - public function getBuyerEmail() - { - return $this->container['buyer_email']; - } - - /** - * Sets buyer_email - * - * @param string|null $buyer_email The anonymized email address of the buyer. - * - * @return self - */ - public function setBuyerEmail($buyer_email) - { - $this->container['buyer_email'] = $buyer_email; - - return $this; - } - /** - * Gets buyer_name - * - * @return string|null - */ - public function getBuyerName() - { - return $this->container['buyer_name']; - } - - /** - * Sets buyer_name - * - * @param string|null $buyer_name The buyer name or the recipient name. - * - * @return self - */ - public function setBuyerName($buyer_name) - { - $this->container['buyer_name'] = $buyer_name; - - return $this; - } - /** - * Gets buyer_county - * - * @return string|null - */ - public function getBuyerCounty() - { - return $this->container['buyer_county']; - } - - /** - * Sets buyer_county - * - * @param string|null $buyer_county The county of the buyer. - * - * @return self - */ - public function setBuyerCounty($buyer_county) - { - $this->container['buyer_county'] = $buyer_county; - - return $this; - } - /** - * Gets buyer_tax_info - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo|null - */ - public function getBuyerTaxInfo() - { - return $this->container['buyer_tax_info']; - } - - /** - * Sets buyer_tax_info - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerTaxInfo|null $buyer_tax_info buyer_tax_info - * - * @return self - */ - public function setBuyerTaxInfo($buyer_tax_info) - { - $this->container['buyer_tax_info'] = $buyer_tax_info; - - return $this; - } - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderItem.php b/lib/Model/OrdersV0/OrderItem.php deleted file mode 100644 index b40dded0e..000000000 --- a/lib/Model/OrdersV0/OrderItem.php +++ /dev/null @@ -1,1221 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'seller_sku' => 'string', - 'order_item_id' => 'string', - 'title' => 'string', - 'quantity_ordered' => 'int', - 'quantity_shipped' => 'int', - 'product_info' => '\SellingPartnerApi\Model\OrdersV0\ProductInfoDetail', - 'points_granted' => '\SellingPartnerApi\Model\OrdersV0\PointsGrantedDetail', - 'item_price' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'shipping_price' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'item_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'shipping_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'shipping_discount' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'shipping_discount_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'promotion_discount' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'promotion_discount_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'promotion_ids' => 'string[]', - 'cod_fee' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'cod_fee_discount' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'is_gift' => 'bool', - 'condition_note' => 'string', - 'condition_id' => 'string', - 'condition_subtype_id' => 'string', - 'scheduled_delivery_start_date' => 'string', - 'scheduled_delivery_end_date' => 'string', - 'price_designation' => 'string', - 'tax_collection' => '\SellingPartnerApi\Model\OrdersV0\TaxCollection', - 'serial_number_required' => 'bool', - 'is_transparency' => 'bool', - 'ioss_number' => 'string', - 'store_chain_store_id' => 'string', - 'deemed_reseller_category' => 'string', - 'buyer_info' => '\SellingPartnerApi\Model\OrdersV0\ItemBuyerInfo', - 'buyer_requested_cancel' => '\SellingPartnerApi\Model\OrdersV0\BuyerRequestedCancel', - 'serial_numbers' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'seller_sku' => null, - 'order_item_id' => null, - 'title' => null, - 'quantity_ordered' => null, - 'quantity_shipped' => null, - 'product_info' => null, - 'points_granted' => null, - 'item_price' => null, - 'shipping_price' => null, - 'item_tax' => null, - 'shipping_tax' => null, - 'shipping_discount' => null, - 'shipping_discount_tax' => null, - 'promotion_discount' => null, - 'promotion_discount_tax' => null, - 'promotion_ids' => null, - 'cod_fee' => null, - 'cod_fee_discount' => null, - 'is_gift' => null, - 'condition_note' => null, - 'condition_id' => null, - 'condition_subtype_id' => null, - 'scheduled_delivery_start_date' => null, - 'scheduled_delivery_end_date' => null, - 'price_designation' => null, - 'tax_collection' => null, - 'serial_number_required' => null, - 'is_transparency' => null, - 'ioss_number' => null, - 'store_chain_store_id' => null, - 'deemed_reseller_category' => null, - 'buyer_info' => null, - 'buyer_requested_cancel' => null, - 'serial_numbers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'ASIN', - 'seller_sku' => 'SellerSKU', - 'order_item_id' => 'OrderItemId', - 'title' => 'Title', - 'quantity_ordered' => 'QuantityOrdered', - 'quantity_shipped' => 'QuantityShipped', - 'product_info' => 'ProductInfo', - 'points_granted' => 'PointsGranted', - 'item_price' => 'ItemPrice', - 'shipping_price' => 'ShippingPrice', - 'item_tax' => 'ItemTax', - 'shipping_tax' => 'ShippingTax', - 'shipping_discount' => 'ShippingDiscount', - 'shipping_discount_tax' => 'ShippingDiscountTax', - 'promotion_discount' => 'PromotionDiscount', - 'promotion_discount_tax' => 'PromotionDiscountTax', - 'promotion_ids' => 'PromotionIds', - 'cod_fee' => 'CODFee', - 'cod_fee_discount' => 'CODFeeDiscount', - 'is_gift' => 'IsGift', - 'condition_note' => 'ConditionNote', - 'condition_id' => 'ConditionId', - 'condition_subtype_id' => 'ConditionSubtypeId', - 'scheduled_delivery_start_date' => 'ScheduledDeliveryStartDate', - 'scheduled_delivery_end_date' => 'ScheduledDeliveryEndDate', - 'price_designation' => 'PriceDesignation', - 'tax_collection' => 'TaxCollection', - 'serial_number_required' => 'SerialNumberRequired', - 'is_transparency' => 'IsTransparency', - 'ioss_number' => 'IossNumber', - 'store_chain_store_id' => 'StoreChainStoreId', - 'deemed_reseller_category' => 'DeemedResellerCategory', - 'buyer_info' => 'BuyerInfo', - 'buyer_requested_cancel' => 'BuyerRequestedCancel', - 'serial_numbers' => 'SerialNumbers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'seller_sku' => 'setSellerSku', - 'order_item_id' => 'setOrderItemId', - 'title' => 'setTitle', - 'quantity_ordered' => 'setQuantityOrdered', - 'quantity_shipped' => 'setQuantityShipped', - 'product_info' => 'setProductInfo', - 'points_granted' => 'setPointsGranted', - 'item_price' => 'setItemPrice', - 'shipping_price' => 'setShippingPrice', - 'item_tax' => 'setItemTax', - 'shipping_tax' => 'setShippingTax', - 'shipping_discount' => 'setShippingDiscount', - 'shipping_discount_tax' => 'setShippingDiscountTax', - 'promotion_discount' => 'setPromotionDiscount', - 'promotion_discount_tax' => 'setPromotionDiscountTax', - 'promotion_ids' => 'setPromotionIds', - 'cod_fee' => 'setCodFee', - 'cod_fee_discount' => 'setCodFeeDiscount', - 'is_gift' => 'setIsGift', - 'condition_note' => 'setConditionNote', - 'condition_id' => 'setConditionId', - 'condition_subtype_id' => 'setConditionSubtypeId', - 'scheduled_delivery_start_date' => 'setScheduledDeliveryStartDate', - 'scheduled_delivery_end_date' => 'setScheduledDeliveryEndDate', - 'price_designation' => 'setPriceDesignation', - 'tax_collection' => 'setTaxCollection', - 'serial_number_required' => 'setSerialNumberRequired', - 'is_transparency' => 'setIsTransparency', - 'ioss_number' => 'setIossNumber', - 'store_chain_store_id' => 'setStoreChainStoreId', - 'deemed_reseller_category' => 'setDeemedResellerCategory', - 'buyer_info' => 'setBuyerInfo', - 'buyer_requested_cancel' => 'setBuyerRequestedCancel', - 'serial_numbers' => 'setSerialNumbers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'seller_sku' => 'getSellerSku', - 'order_item_id' => 'getOrderItemId', - 'title' => 'getTitle', - 'quantity_ordered' => 'getQuantityOrdered', - 'quantity_shipped' => 'getQuantityShipped', - 'product_info' => 'getProductInfo', - 'points_granted' => 'getPointsGranted', - 'item_price' => 'getItemPrice', - 'shipping_price' => 'getShippingPrice', - 'item_tax' => 'getItemTax', - 'shipping_tax' => 'getShippingTax', - 'shipping_discount' => 'getShippingDiscount', - 'shipping_discount_tax' => 'getShippingDiscountTax', - 'promotion_discount' => 'getPromotionDiscount', - 'promotion_discount_tax' => 'getPromotionDiscountTax', - 'promotion_ids' => 'getPromotionIds', - 'cod_fee' => 'getCodFee', - 'cod_fee_discount' => 'getCodFeeDiscount', - 'is_gift' => 'getIsGift', - 'condition_note' => 'getConditionNote', - 'condition_id' => 'getConditionId', - 'condition_subtype_id' => 'getConditionSubtypeId', - 'scheduled_delivery_start_date' => 'getScheduledDeliveryStartDate', - 'scheduled_delivery_end_date' => 'getScheduledDeliveryEndDate', - 'price_designation' => 'getPriceDesignation', - 'tax_collection' => 'getTaxCollection', - 'serial_number_required' => 'getSerialNumberRequired', - 'is_transparency' => 'getIsTransparency', - 'ioss_number' => 'getIossNumber', - 'store_chain_store_id' => 'getStoreChainStoreId', - 'deemed_reseller_category' => 'getDeemedResellerCategory', - 'buyer_info' => 'getBuyerInfo', - 'buyer_requested_cancel' => 'getBuyerRequestedCancel', - 'serial_numbers' => 'getSerialNumbers' - ]; - - - - const DEEMED_RESELLER_CATEGORY_IOSS = 'IOSS'; - const DEEMED_RESELLER_CATEGORY_UOSS = 'UOSS'; - const DEEMED_RESELLER_CATEGORY_SG_VOEC = 'SG_VOEC'; - const DEEMED_RESELLER_CATEGORY_GB_VOEC = 'GB_VOEC'; - const DEEMED_RESELLER_CATEGORY_NO_VOEC = 'NO_VOEC'; - const DEEMED_RESELLER_CATEGORY_CA_MPF = 'CA_MPF'; - const DEEMED_RESELLER_CATEGORY_AU_VOEC = 'AU_VOEC'; - const DEEMED_RESELLER_CATEGORY_NZ_VOEC = 'NZ_VOEC'; - const DEEMED_RESELLER_CATEGORY_JE_VOEC = 'JE_VOEC'; - const DEEMED_RESELLER_CATEGORY_CH_SUPPLIER_IMPORT = 'CH_SUPPLIER_IMPORT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getDeemedResellerCategoryAllowableValues() - { - $baseVals = [ - self::DEEMED_RESELLER_CATEGORY_IOSS, - self::DEEMED_RESELLER_CATEGORY_UOSS, - self::DEEMED_RESELLER_CATEGORY_SG_VOEC, - self::DEEMED_RESELLER_CATEGORY_GB_VOEC, - self::DEEMED_RESELLER_CATEGORY_NO_VOEC, - self::DEEMED_RESELLER_CATEGORY_CA_MPF, - self::DEEMED_RESELLER_CATEGORY_AU_VOEC, - self::DEEMED_RESELLER_CATEGORY_NZ_VOEC, - self::DEEMED_RESELLER_CATEGORY_JE_VOEC, - self::DEEMED_RESELLER_CATEGORY_CH_SUPPLIER_IMPORT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['quantity_ordered'] = $data['quantity_ordered'] ?? null; - $this->container['quantity_shipped'] = $data['quantity_shipped'] ?? null; - $this->container['product_info'] = $data['product_info'] ?? null; - $this->container['points_granted'] = $data['points_granted'] ?? null; - $this->container['item_price'] = $data['item_price'] ?? null; - $this->container['shipping_price'] = $data['shipping_price'] ?? null; - $this->container['item_tax'] = $data['item_tax'] ?? null; - $this->container['shipping_tax'] = $data['shipping_tax'] ?? null; - $this->container['shipping_discount'] = $data['shipping_discount'] ?? null; - $this->container['shipping_discount_tax'] = $data['shipping_discount_tax'] ?? null; - $this->container['promotion_discount'] = $data['promotion_discount'] ?? null; - $this->container['promotion_discount_tax'] = $data['promotion_discount_tax'] ?? null; - $this->container['promotion_ids'] = $data['promotion_ids'] ?? null; - $this->container['cod_fee'] = $data['cod_fee'] ?? null; - $this->container['cod_fee_discount'] = $data['cod_fee_discount'] ?? null; - $this->container['is_gift'] = $data['is_gift'] ?? null; - $this->container['condition_note'] = $data['condition_note'] ?? null; - $this->container['condition_id'] = $data['condition_id'] ?? null; - $this->container['condition_subtype_id'] = $data['condition_subtype_id'] ?? null; - $this->container['scheduled_delivery_start_date'] = $data['scheduled_delivery_start_date'] ?? null; - $this->container['scheduled_delivery_end_date'] = $data['scheduled_delivery_end_date'] ?? null; - $this->container['price_designation'] = $data['price_designation'] ?? null; - $this->container['tax_collection'] = $data['tax_collection'] ?? null; - $this->container['serial_number_required'] = $data['serial_number_required'] ?? null; - $this->container['is_transparency'] = $data['is_transparency'] ?? null; - $this->container['ioss_number'] = $data['ioss_number'] ?? null; - $this->container['store_chain_store_id'] = $data['store_chain_store_id'] ?? null; - $this->container['deemed_reseller_category'] = $data['deemed_reseller_category'] ?? null; - $this->container['buyer_info'] = $data['buyer_info'] ?? null; - $this->container['buyer_requested_cancel'] = $data['buyer_requested_cancel'] ?? null; - $this->container['serial_numbers'] = $data['serial_numbers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['order_item_id'] === null) { - $invalidProperties[] = "'order_item_id' can't be null"; - } - if ($this->container['quantity_ordered'] === null) { - $invalidProperties[] = "'quantity_ordered' can't be null"; - } - $allowedValues = $this->getDeemedResellerCategoryAllowableValues(); - if ( - !is_null($this->container['deemed_reseller_category']) && - !in_array(strtoupper($this->container['deemed_reseller_category']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'deemed_reseller_category', must be one of '%s'", - $this->container['deemed_reseller_category'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets order_item_id - * - * @return string - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string $order_item_id An Amazon-defined order item identifier. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The name of the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets quantity_ordered - * - * @return int - */ - public function getQuantityOrdered() - { - return $this->container['quantity_ordered']; - } - - /** - * Sets quantity_ordered - * - * @param int $quantity_ordered The number of items in the order. - * - * @return self - */ - public function setQuantityOrdered($quantity_ordered) - { - $this->container['quantity_ordered'] = $quantity_ordered; - - return $this; - } - /** - * Gets quantity_shipped - * - * @return int|null - */ - public function getQuantityShipped() - { - return $this->container['quantity_shipped']; - } - - /** - * Sets quantity_shipped - * - * @param int|null $quantity_shipped The number of items shipped. - * - * @return self - */ - public function setQuantityShipped($quantity_shipped) - { - $this->container['quantity_shipped'] = $quantity_shipped; - - return $this; - } - /** - * Gets product_info - * - * @return \SellingPartnerApi\Model\OrdersV0\ProductInfoDetail|null - */ - public function getProductInfo() - { - return $this->container['product_info']; - } - - /** - * Sets product_info - * - * @param \SellingPartnerApi\Model\OrdersV0\ProductInfoDetail|null $product_info product_info - * - * @return self - */ - public function setProductInfo($product_info) - { - $this->container['product_info'] = $product_info; - - return $this; - } - /** - * Gets points_granted - * - * @return \SellingPartnerApi\Model\OrdersV0\PointsGrantedDetail|null - */ - public function getPointsGranted() - { - return $this->container['points_granted']; - } - - /** - * Sets points_granted - * - * @param \SellingPartnerApi\Model\OrdersV0\PointsGrantedDetail|null $points_granted points_granted - * - * @return self - */ - public function setPointsGranted($points_granted) - { - $this->container['points_granted'] = $points_granted; - - return $this; - } - /** - * Gets item_price - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getItemPrice() - { - return $this->container['item_price']; - } - - /** - * Sets item_price - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $item_price item_price - * - * @return self - */ - public function setItemPrice($item_price) - { - $this->container['item_price'] = $item_price; - - return $this; - } - /** - * Gets shipping_price - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getShippingPrice() - { - return $this->container['shipping_price']; - } - - /** - * Sets shipping_price - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $shipping_price shipping_price - * - * @return self - */ - public function setShippingPrice($shipping_price) - { - $this->container['shipping_price'] = $shipping_price; - - return $this; - } - /** - * Gets item_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getItemTax() - { - return $this->container['item_tax']; - } - - /** - * Sets item_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $item_tax item_tax - * - * @return self - */ - public function setItemTax($item_tax) - { - $this->container['item_tax'] = $item_tax; - - return $this; - } - /** - * Gets shipping_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getShippingTax() - { - return $this->container['shipping_tax']; - } - - /** - * Sets shipping_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $shipping_tax shipping_tax - * - * @return self - */ - public function setShippingTax($shipping_tax) - { - $this->container['shipping_tax'] = $shipping_tax; - - return $this; - } - /** - * Gets shipping_discount - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getShippingDiscount() - { - return $this->container['shipping_discount']; - } - - /** - * Sets shipping_discount - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $shipping_discount shipping_discount - * - * @return self - */ - public function setShippingDiscount($shipping_discount) - { - $this->container['shipping_discount'] = $shipping_discount; - - return $this; - } - /** - * Gets shipping_discount_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getShippingDiscountTax() - { - return $this->container['shipping_discount_tax']; - } - - /** - * Sets shipping_discount_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $shipping_discount_tax shipping_discount_tax - * - * @return self - */ - public function setShippingDiscountTax($shipping_discount_tax) - { - $this->container['shipping_discount_tax'] = $shipping_discount_tax; - - return $this; - } - /** - * Gets promotion_discount - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getPromotionDiscount() - { - return $this->container['promotion_discount']; - } - - /** - * Sets promotion_discount - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $promotion_discount promotion_discount - * - * @return self - */ - public function setPromotionDiscount($promotion_discount) - { - $this->container['promotion_discount'] = $promotion_discount; - - return $this; - } - /** - * Gets promotion_discount_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getPromotionDiscountTax() - { - return $this->container['promotion_discount_tax']; - } - - /** - * Sets promotion_discount_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $promotion_discount_tax promotion_discount_tax - * - * @return self - */ - public function setPromotionDiscountTax($promotion_discount_tax) - { - $this->container['promotion_discount_tax'] = $promotion_discount_tax; - - return $this; - } - /** - * Gets promotion_ids - * - * @return string[]|null - */ - public function getPromotionIds() - { - return $this->container['promotion_ids']; - } - - /** - * Sets promotion_ids - * - * @param string[]|null $promotion_ids A list of promotion identifiers provided by the seller when the promotions were created. - * - * @return self - */ - public function setPromotionIds($promotion_ids) - { - $this->container['promotion_ids'] = $promotion_ids; - - return $this; - } - /** - * Gets cod_fee - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getCodFee() - { - return $this->container['cod_fee']; - } - - /** - * Sets cod_fee - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $cod_fee cod_fee - * - * @return self - */ - public function setCodFee($cod_fee) - { - $this->container['cod_fee'] = $cod_fee; - - return $this; - } - /** - * Gets cod_fee_discount - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getCodFeeDiscount() - { - return $this->container['cod_fee_discount']; - } - - /** - * Sets cod_fee_discount - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $cod_fee_discount cod_fee_discount - * - * @return self - */ - public function setCodFeeDiscount($cod_fee_discount) - { - $this->container['cod_fee_discount'] = $cod_fee_discount; - - return $this; - } - /** - * Gets is_gift - * - * @return bool|null - */ - public function getIsGift() - { - return $this->container['is_gift']; - } - - /** - * Sets is_gift - * - * @param bool|null $is_gift When true, the item is a gift. - * - * @return self - */ - public function setIsGift($is_gift) - { - $this->container['is_gift'] = $is_gift; - - return $this; - } - /** - * Gets condition_note - * - * @return string|null - */ - public function getConditionNote() - { - return $this->container['condition_note']; - } - - /** - * Sets condition_note - * - * @param string|null $condition_note The condition of the item as described by the seller. - * - * @return self - */ - public function setConditionNote($condition_note) - { - $this->container['condition_note'] = $condition_note; - - return $this; - } - /** - * Gets condition_id - * - * @return string|null - */ - public function getConditionId() - { - return $this->container['condition_id']; - } - - /** - * Sets condition_id - * - * @param string|null $condition_id The condition of the item. - * Possible values: New, Used, Collectible, Refurbished, Preorder, Club. - * - * @return self - */ - public function setConditionId($condition_id) - { - $this->container['condition_id'] = $condition_id; - - return $this; - } - /** - * Gets condition_subtype_id - * - * @return string|null - */ - public function getConditionSubtypeId() - { - return $this->container['condition_subtype_id']; - } - - /** - * Sets condition_subtype_id - * - * @param string|null $condition_subtype_id The subcondition of the item. - * Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other. - * - * @return self - */ - public function setConditionSubtypeId($condition_subtype_id) - { - $this->container['condition_subtype_id'] = $condition_subtype_id; - - return $this; - } - /** - * Gets scheduled_delivery_start_date - * - * @return string|null - */ - public function getScheduledDeliveryStartDate() - { - return $this->container['scheduled_delivery_start_date']; - } - - /** - * Sets scheduled_delivery_start_date - * - * @param string|null $scheduled_delivery_start_date The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. - * - * @return self - */ - public function setScheduledDeliveryStartDate($scheduled_delivery_start_date) - { - $this->container['scheduled_delivery_start_date'] = $scheduled_delivery_start_date; - - return $this; - } - /** - * Gets scheduled_delivery_end_date - * - * @return string|null - */ - public function getScheduledDeliveryEndDate() - { - return $this->container['scheduled_delivery_end_date']; - } - - /** - * Sets scheduled_delivery_end_date - * - * @param string|null $scheduled_delivery_end_date The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. - * - * @return self - */ - public function setScheduledDeliveryEndDate($scheduled_delivery_end_date) - { - $this->container['scheduled_delivery_end_date'] = $scheduled_delivery_end_date; - - return $this; - } - /** - * Gets price_designation - * - * @return string|null - */ - public function getPriceDesignation() - { - return $this->container['price_designation']; - } - - /** - * Sets price_designation - * - * @param string|null $price_designation Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business). - * Possible values: BusinessPrice - A special price that is available only for Amazon Business orders. - * - * @return self - */ - public function setPriceDesignation($price_designation) - { - $this->container['price_designation'] = $price_designation; - - return $this; - } - /** - * Gets tax_collection - * - * @return \SellingPartnerApi\Model\OrdersV0\TaxCollection|null - */ - public function getTaxCollection() - { - return $this->container['tax_collection']; - } - - /** - * Sets tax_collection - * - * @param \SellingPartnerApi\Model\OrdersV0\TaxCollection|null $tax_collection tax_collection - * - * @return self - */ - public function setTaxCollection($tax_collection) - { - $this->container['tax_collection'] = $tax_collection; - - return $this; - } - /** - * Gets serial_number_required - * - * @return bool|null - */ - public function getSerialNumberRequired() - { - return $this->container['serial_number_required']; - } - - /** - * Sets serial_number_required - * - * @param bool|null $serial_number_required When true, the product type for this item has a serial number. - * Returned only for Amazon Easy Ship orders. - * - * @return self - */ - public function setSerialNumberRequired($serial_number_required) - { - $this->container['serial_number_required'] = $serial_number_required; - - return $this; - } - /** - * Gets is_transparency - * - * @return bool|null - */ - public function getIsTransparency() - { - return $this->container['is_transparency']; - } - - /** - * Sets is_transparency - * - * @param bool|null $is_transparency When true, transparency codes are required. - * - * @return self - */ - public function setIsTransparency($is_transparency) - { - $this->container['is_transparency'] = $is_transparency; - - return $this; - } - /** - * Gets ioss_number - * - * @return string|null - */ - public function getIossNumber() - { - return $this->container['ioss_number']; - } - - /** - * Sets ioss_number - * - * @param string|null $ioss_number The IOSS number for the marketplace. Sellers shipping to the European Union (EU) from outside of the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale. - * - * @return self - */ - public function setIossNumber($ioss_number) - { - $this->container['ioss_number'] = $ioss_number; - - return $this; - } - /** - * Gets store_chain_store_id - * - * @return string|null - */ - public function getStoreChainStoreId() - { - return $this->container['store_chain_store_id']; - } - - /** - * Sets store_chain_store_id - * - * @param string|null $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. - * - * @return self - */ - public function setStoreChainStoreId($store_chain_store_id) - { - $this->container['store_chain_store_id'] = $store_chain_store_id; - - return $this; - } - /** - * Gets deemed_reseller_category - * - * @return string|null - */ - public function getDeemedResellerCategory() - { - return $this->container['deemed_reseller_category']; - } - - /** - * Sets deemed_reseller_category - * - * @param string|null $deemed_reseller_category The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK. - * - * @return self - */ - public function setDeemedResellerCategory($deemed_reseller_category) - { - $allowedValues = $this->getDeemedResellerCategoryAllowableValues(); - if (!is_null($deemed_reseller_category) &&!in_array(strtoupper($deemed_reseller_category), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'deemed_reseller_category', must be one of '%s'", - $deemed_reseller_category, - implode("', '", $allowedValues) - ) - ); - } - $this->container['deemed_reseller_category'] = $deemed_reseller_category; - - return $this; - } - /** - * Gets buyer_info - * - * @return \SellingPartnerApi\Model\OrdersV0\ItemBuyerInfo|null - */ - public function getBuyerInfo() - { - return $this->container['buyer_info']; - } - - /** - * Sets buyer_info - * - * @param \SellingPartnerApi\Model\OrdersV0\ItemBuyerInfo|null $buyer_info buyer_info - * - * @return self - */ - public function setBuyerInfo($buyer_info) - { - $this->container['buyer_info'] = $buyer_info; - - return $this; - } - /** - * Gets buyer_requested_cancel - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerRequestedCancel|null - */ - public function getBuyerRequestedCancel() - { - return $this->container['buyer_requested_cancel']; - } - - /** - * Sets buyer_requested_cancel - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerRequestedCancel|null $buyer_requested_cancel buyer_requested_cancel - * - * @return self - */ - public function setBuyerRequestedCancel($buyer_requested_cancel) - { - $this->container['buyer_requested_cancel'] = $buyer_requested_cancel; - - return $this; - } - /** - * Gets serial_numbers - * - * @return string[]|null - */ - public function getSerialNumbers() - { - return $this->container['serial_numbers']; - } - - /** - * Sets serial_numbers - * - * @param string[]|null $serial_numbers A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. - * - * @return self - */ - public function setSerialNumbers($serial_numbers) - { - $this->container['serial_numbers'] = $serial_numbers; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderItemBuyerInfo.php b/lib/Model/OrdersV0/OrderItemBuyerInfo.php deleted file mode 100644 index c3ac0848e..000000000 --- a/lib/Model/OrdersV0/OrderItemBuyerInfo.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemBuyerInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemBuyerInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_item_id' => 'string', - 'buyer_customized_info' => '\SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail', - 'gift_wrap_price' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'gift_wrap_tax' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'gift_message_text' => 'string', - 'gift_wrap_level' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_item_id' => null, - 'buyer_customized_info' => null, - 'gift_wrap_price' => null, - 'gift_wrap_tax' => null, - 'gift_message_text' => null, - 'gift_wrap_level' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_item_id' => 'OrderItemId', - 'buyer_customized_info' => 'BuyerCustomizedInfo', - 'gift_wrap_price' => 'GiftWrapPrice', - 'gift_wrap_tax' => 'GiftWrapTax', - 'gift_message_text' => 'GiftMessageText', - 'gift_wrap_level' => 'GiftWrapLevel' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_item_id' => 'setOrderItemId', - 'buyer_customized_info' => 'setBuyerCustomizedInfo', - 'gift_wrap_price' => 'setGiftWrapPrice', - 'gift_wrap_tax' => 'setGiftWrapTax', - 'gift_message_text' => 'setGiftMessageText', - 'gift_wrap_level' => 'setGiftWrapLevel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_item_id' => 'getOrderItemId', - 'buyer_customized_info' => 'getBuyerCustomizedInfo', - 'gift_wrap_price' => 'getGiftWrapPrice', - 'gift_wrap_tax' => 'getGiftWrapTax', - 'gift_message_text' => 'getGiftMessageText', - 'gift_wrap_level' => 'getGiftWrapLevel' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['buyer_customized_info'] = $data['buyer_customized_info'] ?? null; - $this->container['gift_wrap_price'] = $data['gift_wrap_price'] ?? null; - $this->container['gift_wrap_tax'] = $data['gift_wrap_tax'] ?? null; - $this->container['gift_message_text'] = $data['gift_message_text'] ?? null; - $this->container['gift_wrap_level'] = $data['gift_wrap_level'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_item_id'] === null) { - $invalidProperties[] = "'order_item_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_item_id - * - * @return string - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string $order_item_id An Amazon-defined order item identifier. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets buyer_customized_info - * - * @return \SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail|null - */ - public function getBuyerCustomizedInfo() - { - return $this->container['buyer_customized_info']; - } - - /** - * Sets buyer_customized_info - * - * @param \SellingPartnerApi\Model\OrdersV0\BuyerCustomizedInfoDetail|null $buyer_customized_info buyer_customized_info - * - * @return self - */ - public function setBuyerCustomizedInfo($buyer_customized_info) - { - $this->container['buyer_customized_info'] = $buyer_customized_info; - - return $this; - } - /** - * Gets gift_wrap_price - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getGiftWrapPrice() - { - return $this->container['gift_wrap_price']; - } - - /** - * Sets gift_wrap_price - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $gift_wrap_price gift_wrap_price - * - * @return self - */ - public function setGiftWrapPrice($gift_wrap_price) - { - $this->container['gift_wrap_price'] = $gift_wrap_price; - - return $this; - } - /** - * Gets gift_wrap_tax - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getGiftWrapTax() - { - return $this->container['gift_wrap_tax']; - } - - /** - * Sets gift_wrap_tax - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $gift_wrap_tax gift_wrap_tax - * - * @return self - */ - public function setGiftWrapTax($gift_wrap_tax) - { - $this->container['gift_wrap_tax'] = $gift_wrap_tax; - - return $this; - } - /** - * Gets gift_message_text - * - * @return string|null - */ - public function getGiftMessageText() - { - return $this->container['gift_message_text']; - } - - /** - * Sets gift_message_text - * - * @param string|null $gift_message_text A gift message provided by the buyer. - * - * @return self - */ - public function setGiftMessageText($gift_message_text) - { - $this->container['gift_message_text'] = $gift_message_text; - - return $this; - } - /** - * Gets gift_wrap_level - * - * @return string|null - */ - public function getGiftWrapLevel() - { - return $this->container['gift_wrap_level']; - } - - /** - * Sets gift_wrap_level - * - * @param string|null $gift_wrap_level The gift wrap level specified by the buyer. - * - * @return self - */ - public function setGiftWrapLevel($gift_wrap_level) - { - $this->container['gift_wrap_level'] = $gift_wrap_level; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderItemsBuyerInfoList.php b/lib/Model/OrdersV0/OrderItemsBuyerInfoList.php deleted file mode 100644 index 2cd64fd49..000000000 --- a/lib/Model/OrdersV0/OrderItemsBuyerInfoList.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemsBuyerInfoList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemsBuyerInfoList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_items' => '\SellingPartnerApi\Model\OrdersV0\OrderItemBuyerInfo[]', - 'next_token' => 'string', - 'amazon_order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_items' => null, - 'next_token' => null, - 'amazon_order_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_items' => 'OrderItems', - 'next_token' => 'NextToken', - 'amazon_order_id' => 'AmazonOrderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_items' => 'setOrderItems', - 'next_token' => 'setNextToken', - 'amazon_order_id' => 'setAmazonOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_items' => 'getOrderItems', - 'next_token' => 'getNextToken', - 'amazon_order_id' => 'getAmazonOrderId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_items'] = $data['order_items'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_items'] === null) { - $invalidProperties[] = "'order_items' can't be null"; - } - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_items - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderItemBuyerInfo[] - */ - public function getOrderItems() - { - return $this->container['order_items']; - } - - /** - * Sets order_items - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderItemBuyerInfo[] $order_items A single order item's buyer information list. - * - * @return self - */ - public function setOrderItems($order_items) - { - $this->container['order_items'] = $order_items; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderItemsList.php b/lib/Model/OrdersV0/OrderItemsList.php deleted file mode 100644 index 83d6afb59..000000000 --- a/lib/Model/OrdersV0/OrderItemsList.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemsList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemsList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_items' => '\SellingPartnerApi\Model\OrdersV0\OrderItem[]', - 'next_token' => 'string', - 'amazon_order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_items' => null, - 'next_token' => null, - 'amazon_order_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_items' => 'OrderItems', - 'next_token' => 'NextToken', - 'amazon_order_id' => 'AmazonOrderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_items' => 'setOrderItems', - 'next_token' => 'setNextToken', - 'amazon_order_id' => 'setAmazonOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_items' => 'getOrderItems', - 'next_token' => 'getNextToken', - 'amazon_order_id' => 'getAmazonOrderId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_items'] = $data['order_items'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_items'] === null) { - $invalidProperties[] = "'order_items' can't be null"; - } - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_items - * - * @return \SellingPartnerApi\Model\OrdersV0\OrderItem[] - */ - public function getOrderItems() - { - return $this->container['order_items']; - } - - /** - * Sets order_items - * - * @param \SellingPartnerApi\Model\OrdersV0\OrderItem[] $order_items A list of order items. - * - * @return self - */ - public function setOrderItems($order_items) - { - $this->container['order_items'] = $order_items; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrderRegulatedInfo.php b/lib/Model/OrdersV0/OrderRegulatedInfo.php deleted file mode 100644 index a9f767db9..000000000 --- a/lib/Model/OrdersV0/OrderRegulatedInfo.php +++ /dev/null @@ -1,261 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderRegulatedInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderRegulatedInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_order_id' => 'string', - 'regulated_information' => '\SellingPartnerApi\Model\OrdersV0\RegulatedInformation', - 'requires_dosage_label' => 'bool', - 'regulated_order_verification_status' => '\SellingPartnerApi\Model\OrdersV0\RegulatedOrderVerificationStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_order_id' => null, - 'regulated_information' => null, - 'requires_dosage_label' => null, - 'regulated_order_verification_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_order_id' => 'AmazonOrderId', - 'regulated_information' => 'RegulatedInformation', - 'requires_dosage_label' => 'RequiresDosageLabel', - 'regulated_order_verification_status' => 'RegulatedOrderVerificationStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_order_id' => 'setAmazonOrderId', - 'regulated_information' => 'setRegulatedInformation', - 'requires_dosage_label' => 'setRequiresDosageLabel', - 'regulated_order_verification_status' => 'setRegulatedOrderVerificationStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_order_id' => 'getAmazonOrderId', - 'regulated_information' => 'getRegulatedInformation', - 'requires_dosage_label' => 'getRequiresDosageLabel', - 'regulated_order_verification_status' => 'getRegulatedOrderVerificationStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['regulated_information'] = $data['regulated_information'] ?? null; - $this->container['requires_dosage_label'] = $data['requires_dosage_label'] ?? null; - $this->container['regulated_order_verification_status'] = $data['regulated_order_verification_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { - $invalidProperties[] = "'amazon_order_id' can't be null"; - } - if ($this->container['regulated_information'] === null) { - $invalidProperties[] = "'regulated_information' can't be null"; - } - if ($this->container['requires_dosage_label'] === null) { - $invalidProperties[] = "'requires_dosage_label' can't be null"; - } - if ($this->container['regulated_order_verification_status'] === null) { - $invalidProperties[] = "'regulated_order_verification_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amazon_order_id - * - * @return string - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string $amazon_order_id An Amazon-defined order identifier, in 3-7-7 format. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets regulated_information - * - * @return \SellingPartnerApi\Model\OrdersV0\RegulatedInformation - */ - public function getRegulatedInformation() - { - return $this->container['regulated_information']; - } - - /** - * Sets regulated_information - * - * @param \SellingPartnerApi\Model\OrdersV0\RegulatedInformation $regulated_information regulated_information - * - * @return self - */ - public function setRegulatedInformation($regulated_information) - { - $this->container['regulated_information'] = $regulated_information; - - return $this; - } - /** - * Gets requires_dosage_label - * - * @return bool - */ - public function getRequiresDosageLabel() - { - return $this->container['requires_dosage_label']; - } - - /** - * Sets requires_dosage_label - * - * @param bool $requires_dosage_label When true, the order requires attaching a dosage information label when shipped. - * - * @return self - */ - public function setRequiresDosageLabel($requires_dosage_label) - { - $this->container['requires_dosage_label'] = $requires_dosage_label; - - return $this; - } - /** - * Gets regulated_order_verification_status - * - * @return \SellingPartnerApi\Model\OrdersV0\RegulatedOrderVerificationStatus - */ - public function getRegulatedOrderVerificationStatus() - { - return $this->container['regulated_order_verification_status']; - } - - /** - * Sets regulated_order_verification_status - * - * @param \SellingPartnerApi\Model\OrdersV0\RegulatedOrderVerificationStatus $regulated_order_verification_status regulated_order_verification_status - * - * @return self - */ - public function setRegulatedOrderVerificationStatus($regulated_order_verification_status) - { - $this->container['regulated_order_verification_status'] = $regulated_order_verification_status; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OrdersList.php b/lib/Model/OrdersV0/OrdersList.php deleted file mode 100644 index e09cc849e..000000000 --- a/lib/Model/OrdersV0/OrdersList.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrdersList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrdersList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'orders' => '\SellingPartnerApi\Model\OrdersV0\Order[]', - 'next_token' => 'string', - 'last_updated_before' => 'string', - 'created_before' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'orders' => null, - 'next_token' => null, - 'last_updated_before' => null, - 'created_before' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'orders' => 'Orders', - 'next_token' => 'NextToken', - 'last_updated_before' => 'LastUpdatedBefore', - 'created_before' => 'CreatedBefore' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'orders' => 'setOrders', - 'next_token' => 'setNextToken', - 'last_updated_before' => 'setLastUpdatedBefore', - 'created_before' => 'setCreatedBefore' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'orders' => 'getOrders', - 'next_token' => 'getNextToken', - 'last_updated_before' => 'getLastUpdatedBefore', - 'created_before' => 'getCreatedBefore' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['orders'] = $data['orders'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - $this->container['last_updated_before'] = $data['last_updated_before'] ?? null; - $this->container['created_before'] = $data['created_before'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['orders'] === null) { - $invalidProperties[] = "'orders' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\OrdersV0\Order[] - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\OrdersV0\Order[] $orders A list of orders. - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token When present and not empty, pass this string token in the next request to return the next response page. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } - /** - * Gets last_updated_before - * - * @return string|null - */ - public function getLastUpdatedBefore() - { - return $this->container['last_updated_before']; - } - - /** - * Sets last_updated_before - * - * @param string|null $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. All dates must be in ISO 8601 format. - * - * @return self - */ - public function setLastUpdatedBefore($last_updated_before) - { - $this->container['last_updated_before'] = $last_updated_before; - - return $this; - } - /** - * Gets created_before - * - * @return string|null - */ - public function getCreatedBefore() - { - return $this->container['created_before']; - } - - /** - * Sets created_before - * - * @param string|null $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. - * - * @return self - */ - public function setCreatedBefore($created_before) - { - $this->container['created_before'] = $created_before; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/OtherDeliveryAttributes.php b/lib/Model/OrdersV0/OtherDeliveryAttributes.php deleted file mode 100644 index bd417090e..000000000 --- a/lib/Model/OrdersV0/OtherDeliveryAttributes.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/OrdersV0/PackageDetail.php b/lib/Model/OrdersV0/PackageDetail.php deleted file mode 100644 index 812585d07..000000000 --- a/lib/Model/OrdersV0/PackageDetail.php +++ /dev/null @@ -1,380 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_reference_id' => 'string', - 'carrier_code' => 'string', - 'carrier_name' => 'string', - 'shipping_method' => 'string', - 'tracking_number' => 'string', - 'ship_date' => 'string', - 'ship_from_supply_source_id' => 'string', - 'order_items' => '\SellingPartnerApi\Model\OrdersV0\ConfirmShipmentOrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_reference_id' => null, - 'carrier_code' => null, - 'carrier_name' => null, - 'shipping_method' => null, - 'tracking_number' => null, - 'ship_date' => null, - 'ship_from_supply_source_id' => null, - 'order_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_reference_id' => 'packageReferenceId', - 'carrier_code' => 'carrierCode', - 'carrier_name' => 'carrierName', - 'shipping_method' => 'shippingMethod', - 'tracking_number' => 'trackingNumber', - 'ship_date' => 'shipDate', - 'ship_from_supply_source_id' => 'shipFromSupplySourceId', - 'order_items' => 'orderItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_reference_id' => 'setPackageReferenceId', - 'carrier_code' => 'setCarrierCode', - 'carrier_name' => 'setCarrierName', - 'shipping_method' => 'setShippingMethod', - 'tracking_number' => 'setTrackingNumber', - 'ship_date' => 'setShipDate', - 'ship_from_supply_source_id' => 'setShipFromSupplySourceId', - 'order_items' => 'setOrderItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_reference_id' => 'getPackageReferenceId', - 'carrier_code' => 'getCarrierCode', - 'carrier_name' => 'getCarrierName', - 'shipping_method' => 'getShippingMethod', - 'tracking_number' => 'getTrackingNumber', - 'ship_date' => 'getShipDate', - 'ship_from_supply_source_id' => 'getShipFromSupplySourceId', - 'order_items' => 'getOrderItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_reference_id'] = $data['package_reference_id'] ?? null; - $this->container['carrier_code'] = $data['carrier_code'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['shipping_method'] = $data['shipping_method'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['ship_from_supply_source_id'] = $data['ship_from_supply_source_id'] ?? null; - $this->container['order_items'] = $data['order_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_reference_id'] === null) { - $invalidProperties[] = "'package_reference_id' can't be null"; - } - if ($this->container['carrier_code'] === null) { - $invalidProperties[] = "'carrier_code' can't be null"; - } - if ($this->container['tracking_number'] === null) { - $invalidProperties[] = "'tracking_number' can't be null"; - } - if ($this->container['ship_date'] === null) { - $invalidProperties[] = "'ship_date' can't be null"; - } - if ($this->container['order_items'] === null) { - $invalidProperties[] = "'order_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_reference_id - * - * @return string - */ - public function getPackageReferenceId() - { - return $this->container['package_reference_id']; - } - - /** - * Sets package_reference_id - * - * @param string $package_reference_id A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. - * - * @return self - */ - public function setPackageReferenceId($package_reference_id) - { - $this->container['package_reference_id'] = $package_reference_id; - - return $this; - } - /** - * Gets carrier_code - * - * @return string - */ - public function getCarrierCode() - { - return $this->container['carrier_code']; - } - - /** - * Sets carrier_code - * - * @param string $carrier_code Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). - * - * @return self - */ - public function setCarrierCode($carrier_code) - { - $this->container['carrier_code'] = $carrier_code; - - return $this; - } - /** - * Gets carrier_name - * - * @return string|null - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string|null $carrier_name Carrier Name that will deliver the package. Required when carrierCode is \"Others\" - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets shipping_method - * - * @return string|null - */ - public function getShippingMethod() - { - return $this->container['shipping_method']; - } - - /** - * Sets shipping_method - * - * @param string|null $shipping_method Ship method to be used for shipping the order. - * - * @return self - */ - public function setShippingMethod($shipping_method) - { - $this->container['shipping_method'] = $shipping_method; - - return $this; - } - /** - * Gets tracking_number - * - * @return string - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string $tracking_number The tracking number used to obtain tracking and delivery information. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets ship_date - * - * @return string - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string $ship_date The shipping date for the package. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets ship_from_supply_source_id - * - * @return string|null - */ - public function getShipFromSupplySourceId() - { - return $this->container['ship_from_supply_source_id']; - } - - /** - * Sets ship_from_supply_source_id - * - * @param string|null $ship_from_supply_source_id The unique identifier of the supply source. - * - * @return self - */ - public function setShipFromSupplySourceId($ship_from_supply_source_id) - { - $this->container['ship_from_supply_source_id'] = $ship_from_supply_source_id; - - return $this; - } - /** - * Gets order_items - * - * @return \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentOrderItem[] - */ - public function getOrderItems() - { - return $this->container['order_items']; - } - - /** - * Sets order_items - * - * @param \SellingPartnerApi\Model\OrdersV0\ConfirmShipmentOrderItem[] $order_items A list of order items. - * - * @return self - */ - public function setOrderItems($order_items) - { - $this->container['order_items'] = $order_items; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/PaymentExecutionDetailItem.php b/lib/Model/OrdersV0/PaymentExecutionDetailItem.php deleted file mode 100644 index e562ba9bc..000000000 --- a/lib/Model/OrdersV0/PaymentExecutionDetailItem.php +++ /dev/null @@ -1,201 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PaymentExecutionDetailItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PaymentExecutionDetailItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payment' => '\SellingPartnerApi\Model\OrdersV0\Money', - 'payment_method' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payment' => null, - 'payment_method' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'payment' => 'Payment', - 'payment_method' => 'PaymentMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'payment' => 'setPayment', - 'payment_method' => 'setPaymentMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'payment' => 'getPayment', - 'payment_method' => 'getPaymentMethod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payment'] = $data['payment'] ?? null; - $this->container['payment_method'] = $data['payment_method'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['payment'] === null) { - $invalidProperties[] = "'payment' can't be null"; - } - if ($this->container['payment_method'] === null) { - $invalidProperties[] = "'payment_method' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets payment - * - * @return \SellingPartnerApi\Model\OrdersV0\Money - */ - public function getPayment() - { - return $this->container['payment']; - } - - /** - * Sets payment - * - * @param \SellingPartnerApi\Model\OrdersV0\Money $payment payment - * - * @return self - */ - public function setPayment($payment) - { - $this->container['payment'] = $payment; - - return $this; - } - /** - * Gets payment_method - * - * @return string - */ - public function getPaymentMethod() - { - return $this->container['payment_method']; - } - - /** - * Sets payment_method - * - * @param string $payment_method A sub-payment method for a COD order. - * Possible values: - * * COD - Cash On Delivery. - * * GC - Gift Card. - * * PointsAccount - Amazon Points. - * - * @return self - */ - public function setPaymentMethod($payment_method) - { - $this->container['payment_method'] = $payment_method; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/PointsGrantedDetail.php b/lib/Model/OrdersV0/PointsGrantedDetail.php deleted file mode 100644 index 464551968..000000000 --- a/lib/Model/OrdersV0/PointsGrantedDetail.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PointsGrantedDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PointsGrantedDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'points_number' => 'int', - 'points_monetary_value' => '\SellingPartnerApi\Model\OrdersV0\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'points_number' => null, - 'points_monetary_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'points_number' => 'PointsNumber', - 'points_monetary_value' => 'PointsMonetaryValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'points_number' => 'setPointsNumber', - 'points_monetary_value' => 'setPointsMonetaryValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'points_number' => 'getPointsNumber', - 'points_monetary_value' => 'getPointsMonetaryValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['points_number'] = $data['points_number'] ?? null; - $this->container['points_monetary_value'] = $data['points_monetary_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets points_number - * - * @return int|null - */ - public function getPointsNumber() - { - return $this->container['points_number']; - } - - /** - * Sets points_number - * - * @param int|null $points_number The number of Amazon Points granted with the purchase of an item. - * - * @return self - */ - public function setPointsNumber($points_number) - { - $this->container['points_number'] = $points_number; - - return $this; - } - /** - * Gets points_monetary_value - * - * @return \SellingPartnerApi\Model\OrdersV0\Money|null - */ - public function getPointsMonetaryValue() - { - return $this->container['points_monetary_value']; - } - - /** - * Sets points_monetary_value - * - * @param \SellingPartnerApi\Model\OrdersV0\Money|null $points_monetary_value points_monetary_value - * - * @return self - */ - public function setPointsMonetaryValue($points_monetary_value) - { - $this->container['points_monetary_value'] = $points_monetary_value; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/PreferredDeliveryTime.php b/lib/Model/OrdersV0/PreferredDeliveryTime.php deleted file mode 100644 index 3ac47cc4b..000000000 --- a/lib/Model/OrdersV0/PreferredDeliveryTime.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PreferredDeliveryTime extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PreferredDeliveryTime'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'business_hours' => '\SellingPartnerApi\Model\OrdersV0\BusinessHours[]', - 'exception_dates' => '\SellingPartnerApi\Model\OrdersV0\ExceptionDates[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'business_hours' => null, - 'exception_dates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'business_hours' => 'BusinessHours', - 'exception_dates' => 'ExceptionDates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'business_hours' => 'setBusinessHours', - 'exception_dates' => 'setExceptionDates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'business_hours' => 'getBusinessHours', - 'exception_dates' => 'getExceptionDates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['business_hours'] = $data['business_hours'] ?? null; - $this->container['exception_dates'] = $data['exception_dates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets business_hours - * - * @return \SellingPartnerApi\Model\OrdersV0\BusinessHours[]|null - */ - public function getBusinessHours() - { - return $this->container['business_hours']; - } - - /** - * Sets business_hours - * - * @param \SellingPartnerApi\Model\OrdersV0\BusinessHours[]|null $business_hours Business hours when the business is open for deliveries. - * - * @return self - */ - public function setBusinessHours($business_hours) - { - $this->container['business_hours'] = $business_hours; - - return $this; - } - /** - * Gets exception_dates - * - * @return \SellingPartnerApi\Model\OrdersV0\ExceptionDates[]|null - */ - public function getExceptionDates() - { - return $this->container['exception_dates']; - } - - /** - * Sets exception_dates - * - * @param \SellingPartnerApi\Model\OrdersV0\ExceptionDates[]|null $exception_dates Dates when the business is closed in the next 30 days. - * - * @return self - */ - public function setExceptionDates($exception_dates) - { - $this->container['exception_dates'] = $exception_dates; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ProductInfoDetail.php b/lib/Model/OrdersV0/ProductInfoDetail.php deleted file mode 100644 index f48e5e437..000000000 --- a/lib/Model/OrdersV0/ProductInfoDetail.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductInfoDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductInfoDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'number_of_items' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'number_of_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'number_of_items' => 'NumberOfItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'number_of_items' => 'setNumberOfItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'number_of_items' => 'getNumberOfItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['number_of_items'] = $data['number_of_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets number_of_items - * - * @return int|null - */ - public function getNumberOfItems() - { - return $this->container['number_of_items']; - } - - /** - * Sets number_of_items - * - * @param int|null $number_of_items The total number of items that are included in the ASIN. - * - * @return self - */ - public function setNumberOfItems($number_of_items) - { - $this->container['number_of_items'] = $number_of_items; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/RegulatedInformation.php b/lib/Model/OrdersV0/RegulatedInformation.php deleted file mode 100644 index 8ce031576..000000000 --- a/lib/Model/OrdersV0/RegulatedInformation.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RegulatedInformation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RegulatedInformation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fields' => '\SellingPartnerApi\Model\OrdersV0\RegulatedInformationField[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fields' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fields' => 'Fields' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fields' => 'setFields' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fields' => 'getFields' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fields'] = $data['fields'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fields'] === null) { - $invalidProperties[] = "'fields' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fields - * - * @return \SellingPartnerApi\Model\OrdersV0\RegulatedInformationField[] - */ - public function getFields() - { - return $this->container['fields']; - } - - /** - * Sets fields - * - * @param \SellingPartnerApi\Model\OrdersV0\RegulatedInformationField[] $fields A list of regulated information fields as collected from the regulatory form. - * - * @return self - */ - public function setFields($fields) - { - $this->container['fields'] = $fields; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/RegulatedInformationField.php b/lib/Model/OrdersV0/RegulatedInformationField.php deleted file mode 100644 index d66db36ef..000000000 --- a/lib/Model/OrdersV0/RegulatedInformationField.php +++ /dev/null @@ -1,305 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RegulatedInformationField extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RegulatedInformationField'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'field_id' => 'string', - 'field_label' => 'string', - 'field_type' => 'string', - 'field_value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'field_id' => null, - 'field_label' => null, - 'field_type' => null, - 'field_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'field_id' => 'FieldId', - 'field_label' => 'FieldLabel', - 'field_type' => 'FieldType', - 'field_value' => 'FieldValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'field_id' => 'setFieldId', - 'field_label' => 'setFieldLabel', - 'field_type' => 'setFieldType', - 'field_value' => 'setFieldValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'field_id' => 'getFieldId', - 'field_label' => 'getFieldLabel', - 'field_type' => 'getFieldType', - 'field_value' => 'getFieldValue' - ]; - - - - const FIELD_TYPE_TEXT = 'Text'; - const FIELD_TYPE_FILE_ATTACHMENT = 'FileAttachment'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFieldTypeAllowableValues() - { - $baseVals = [ - self::FIELD_TYPE_TEXT, - self::FIELD_TYPE_FILE_ATTACHMENT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['field_id'] = $data['field_id'] ?? null; - $this->container['field_label'] = $data['field_label'] ?? null; - $this->container['field_type'] = $data['field_type'] ?? null; - $this->container['field_value'] = $data['field_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['field_id'] === null) { - $invalidProperties[] = "'field_id' can't be null"; - } - if ($this->container['field_label'] === null) { - $invalidProperties[] = "'field_label' can't be null"; - } - if ($this->container['field_type'] === null) { - $invalidProperties[] = "'field_type' can't be null"; - } - $allowedValues = $this->getFieldTypeAllowableValues(); - if ( - !is_null($this->container['field_type']) && - !in_array(strtoupper($this->container['field_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'field_type', must be one of '%s'", - $this->container['field_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['field_value'] === null) { - $invalidProperties[] = "'field_value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets field_id - * - * @return string - */ - public function getFieldId() - { - return $this->container['field_id']; - } - - /** - * Sets field_id - * - * @param string $field_id The unique identifier for the field. - * - * @return self - */ - public function setFieldId($field_id) - { - $this->container['field_id'] = $field_id; - - return $this; - } - /** - * Gets field_label - * - * @return string - */ - public function getFieldLabel() - { - return $this->container['field_label']; - } - - /** - * Sets field_label - * - * @param string $field_label The name for the field. - * - * @return self - */ - public function setFieldLabel($field_label) - { - $this->container['field_label'] = $field_label; - - return $this; - } - /** - * Gets field_type - * - * @return string - */ - public function getFieldType() - { - return $this->container['field_type']; - } - - /** - * Sets field_type - * - * @param string $field_type The type of field. - * - * @return self - */ - public function setFieldType($field_type) - { - $allowedValues = $this->getFieldTypeAllowableValues(); - if (!in_array(strtoupper($field_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'field_type', must be one of '%s'", - $field_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['field_type'] = $field_type; - - return $this; - } - /** - * Gets field_value - * - * @return string - */ - public function getFieldValue() - { - return $this->container['field_value']; - } - - /** - * Sets field_value - * - * @param string $field_value The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here. - * - * @return self - */ - public function setFieldValue($field_value) - { - $this->container['field_value'] = $field_value; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/RegulatedOrderVerificationStatus.php b/lib/Model/OrdersV0/RegulatedOrderVerificationStatus.php deleted file mode 100644 index e5225c6ea..000000000 --- a/lib/Model/OrdersV0/RegulatedOrderVerificationStatus.php +++ /dev/null @@ -1,316 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RegulatedOrderVerificationStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RegulatedOrderVerificationStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => '\SellingPartnerApi\Model\OrdersV0\VerificationStatus', - 'requires_merchant_action' => 'bool', - 'valid_rejection_reasons' => '\SellingPartnerApi\Model\OrdersV0\RejectionReason[]', - 'rejection_reason' => '\SellingPartnerApi\Model\OrdersV0\RejectionReason', - 'review_date' => 'string', - 'external_reviewer_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null, - 'requires_merchant_action' => null, - 'valid_rejection_reasons' => null, - 'rejection_reason' => null, - 'review_date' => null, - 'external_reviewer_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'Status', - 'requires_merchant_action' => 'RequiresMerchantAction', - 'valid_rejection_reasons' => 'ValidRejectionReasons', - 'rejection_reason' => 'RejectionReason', - 'review_date' => 'ReviewDate', - 'external_reviewer_id' => 'ExternalReviewerId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus', - 'requires_merchant_action' => 'setRequiresMerchantAction', - 'valid_rejection_reasons' => 'setValidRejectionReasons', - 'rejection_reason' => 'setRejectionReason', - 'review_date' => 'setReviewDate', - 'external_reviewer_id' => 'setExternalReviewerId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus', - 'requires_merchant_action' => 'getRequiresMerchantAction', - 'valid_rejection_reasons' => 'getValidRejectionReasons', - 'rejection_reason' => 'getRejectionReason', - 'review_date' => 'getReviewDate', - 'external_reviewer_id' => 'getExternalReviewerId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - $this->container['requires_merchant_action'] = $data['requires_merchant_action'] ?? null; - $this->container['valid_rejection_reasons'] = $data['valid_rejection_reasons'] ?? null; - $this->container['rejection_reason'] = $data['rejection_reason'] ?? null; - $this->container['review_date'] = $data['review_date'] ?? null; - $this->container['external_reviewer_id'] = $data['external_reviewer_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['requires_merchant_action'] === null) { - $invalidProperties[] = "'requires_merchant_action' can't be null"; - } - if ($this->container['valid_rejection_reasons'] === null) { - $invalidProperties[] = "'valid_rejection_reasons' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets status - * - * @return \SellingPartnerApi\Model\OrdersV0\VerificationStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\OrdersV0\VerificationStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets requires_merchant_action - * - * @return bool - */ - public function getRequiresMerchantAction() - { - return $this->container['requires_merchant_action']; - } - - /** - * Sets requires_merchant_action - * - * @param bool $requires_merchant_action When true, the regulated information provided in the order requires a review by the merchant. - * - * @return self - */ - public function setRequiresMerchantAction($requires_merchant_action) - { - $this->container['requires_merchant_action'] = $requires_merchant_action; - - return $this; - } - /** - * Gets valid_rejection_reasons - * - * @return \SellingPartnerApi\Model\OrdersV0\RejectionReason[] - */ - public function getValidRejectionReasons() - { - return $this->container['valid_rejection_reasons']; - } - - /** - * Sets valid_rejection_reasons - * - * @param \SellingPartnerApi\Model\OrdersV0\RejectionReason[] $valid_rejection_reasons A list of valid rejection reasons that may be used to reject the order's regulated information. - * - * @return self - */ - public function setValidRejectionReasons($valid_rejection_reasons) - { - $this->container['valid_rejection_reasons'] = $valid_rejection_reasons; - - return $this; - } - /** - * Gets rejection_reason - * - * @return \SellingPartnerApi\Model\OrdersV0\RejectionReason|null - */ - public function getRejectionReason() - { - return $this->container['rejection_reason']; - } - - /** - * Sets rejection_reason - * - * @param \SellingPartnerApi\Model\OrdersV0\RejectionReason|null $rejection_reason rejection_reason - * - * @return self - */ - public function setRejectionReason($rejection_reason) - { - $this->container['rejection_reason'] = $rejection_reason; - - return $this; - } - /** - * Gets review_date - * - * @return string|null - */ - public function getReviewDate() - { - return $this->container['review_date']; - } - - /** - * Sets review_date - * - * @param string|null $review_date The date the order was reviewed. In ISO 8601 date time format. - * - * @return self - */ - public function setReviewDate($review_date) - { - $this->container['review_date'] = $review_date; - - return $this; - } - /** - * Gets external_reviewer_id - * - * @return string|null - */ - public function getExternalReviewerId() - { - return $this->container['external_reviewer_id']; - } - - /** - * Sets external_reviewer_id - * - * @param string|null $external_reviewer_id The identifier for the order's regulated information reviewer. - * - * @return self - */ - public function setExternalReviewerId($external_reviewer_id) - { - $this->container['external_reviewer_id'] = $external_reviewer_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/RejectionReason.php b/lib/Model/OrdersV0/RejectionReason.php deleted file mode 100644 index 9a37b2705..000000000 --- a/lib/Model/OrdersV0/RejectionReason.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RejectionReason extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RejectionReason'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'rejection_reason_id' => 'string', - 'rejection_reason_description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'rejection_reason_id' => null, - 'rejection_reason_description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'rejection_reason_id' => 'RejectionReasonId', - 'rejection_reason_description' => 'RejectionReasonDescription' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'rejection_reason_id' => 'setRejectionReasonId', - 'rejection_reason_description' => 'setRejectionReasonDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'rejection_reason_id' => 'getRejectionReasonId', - 'rejection_reason_description' => 'getRejectionReasonDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['rejection_reason_id'] = $data['rejection_reason_id'] ?? null; - $this->container['rejection_reason_description'] = $data['rejection_reason_description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['rejection_reason_id'] === null) { - $invalidProperties[] = "'rejection_reason_id' can't be null"; - } - if ($this->container['rejection_reason_description'] === null) { - $invalidProperties[] = "'rejection_reason_description' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets rejection_reason_id - * - * @return string - */ - public function getRejectionReasonId() - { - return $this->container['rejection_reason_id']; - } - - /** - * Sets rejection_reason_id - * - * @param string $rejection_reason_id The unique identifier for the rejection reason. - * - * @return self - */ - public function setRejectionReasonId($rejection_reason_id) - { - $this->container['rejection_reason_id'] = $rejection_reason_id; - - return $this; - } - /** - * Gets rejection_reason_description - * - * @return string - */ - public function getRejectionReasonDescription() - { - return $this->container['rejection_reason_description']; - } - - /** - * Sets rejection_reason_description - * - * @param string $rejection_reason_description The description of this rejection reason. - * - * @return self - */ - public function setRejectionReasonDescription($rejection_reason_description) - { - $this->container['rejection_reason_description'] = $rejection_reason_description; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/ShipmentStatus.php b/lib/Model/OrdersV0/ShipmentStatus.php deleted file mode 100644 index 2f27abd92..000000000 --- a/lib/Model/OrdersV0/ShipmentStatus.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/OrdersV0/TaxClassification.php b/lib/Model/OrdersV0/TaxClassification.php deleted file mode 100644 index c50a69edc..000000000 --- a/lib/Model/OrdersV0/TaxClassification.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxClassification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxClassification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'value' => 'Value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The type of tax. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets value - * - * @return string|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string|null $value The buyer's tax identifier. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/TaxCollection.php b/lib/Model/OrdersV0/TaxCollection.php deleted file mode 100644 index 42b74044d..000000000 --- a/lib/Model/OrdersV0/TaxCollection.php +++ /dev/null @@ -1,279 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxCollection extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxCollection'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'model' => 'string', - 'responsible_party' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'model' => null, - 'responsible_party' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'model' => 'Model', - 'responsible_party' => 'ResponsibleParty' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'model' => 'setModel', - 'responsible_party' => 'setResponsibleParty' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'model' => 'getModel', - 'responsible_party' => 'getResponsibleParty' - ]; - - - - const MODEL_MARKETPLACE_FACILITATOR = 'MarketplaceFacilitator'; - const MODEL_LOW_VALUE_GOODS = 'LowValueGoods'; - - - const RESPONSIBLE_PARTY_SERVICES_INC = 'Amazon Services, Inc.'; - const RESPONSIBLE_PARTY_COMMERCIAL_SERVICES_PTY_LTD = 'Amazon Commercial Services Pty Ltd'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getModelAllowableValues() - { - $baseVals = [ - self::MODEL_MARKETPLACE_FACILITATOR, - self::MODEL_LOW_VALUE_GOODS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getResponsiblePartyAllowableValues() - { - $baseVals = [ - self::RESPONSIBLE_PARTY_SERVICES_INC, - self::RESPONSIBLE_PARTY_COMMERCIAL_SERVICES_PTY_LTD, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['model'] = $data['model'] ?? null; - $this->container['responsible_party'] = $data['responsible_party'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getModelAllowableValues(); - if ( - !is_null($this->container['model']) && - !in_array(strtoupper($this->container['model']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'model', must be one of '%s'", - $this->container['model'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getResponsiblePartyAllowableValues(); - if ( - !is_null($this->container['responsible_party']) && - !in_array(strtoupper($this->container['responsible_party']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'responsible_party', must be one of '%s'", - $this->container['responsible_party'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets model - * - * @return string|null - */ - public function getModel() - { - return $this->container['model']; - } - - /** - * Sets model - * - * @param string|null $model The tax collection model applied to the item. - * - * @return self - */ - public function setModel($model) - { - $allowedValues = $this->getModelAllowableValues(); - if (!is_null($model) &&!in_array(strtoupper($model), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'model', must be one of '%s'", - $model, - implode("', '", $allowedValues) - ) - ); - } - $this->container['model'] = $model; - - return $this; - } - /** - * Gets responsible_party - * - * @return string|null - */ - public function getResponsibleParty() - { - return $this->container['responsible_party']; - } - - /** - * Sets responsible_party - * - * @param string|null $responsible_party The party responsible for withholding the taxes and remitting them to the taxing authority. - * - * @return self - */ - public function setResponsibleParty($responsible_party) - { - $allowedValues = $this->getResponsiblePartyAllowableValues(); - if (!is_null($responsible_party) &&!in_array(strtoupper($responsible_party), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'responsible_party', must be one of '%s'", - $responsible_party, - implode("', '", $allowedValues) - ) - ); - } - $this->container['responsible_party'] = $responsible_party; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/UpdateShipmentStatusErrorResponse.php b/lib/Model/OrdersV0/UpdateShipmentStatusErrorResponse.php deleted file mode 100644 index b5c739cf6..000000000 --- a/lib/Model/OrdersV0/UpdateShipmentStatusErrorResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateShipmentStatusErrorResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateShipmentStatusErrorResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/UpdateShipmentStatusRequest.php b/lib/Model/OrdersV0/UpdateShipmentStatusRequest.php deleted file mode 100644 index c3a05e091..000000000 --- a/lib/Model/OrdersV0/UpdateShipmentStatusRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateShipmentStatusRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateShipmentStatusRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'shipment_status' => '\SellingPartnerApi\Model\OrdersV0\ShipmentStatus', - 'order_items' => 'object[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'shipment_status' => null, - 'order_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'shipment_status' => 'shipmentStatus', - 'order_items' => 'orderItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'shipment_status' => 'setShipmentStatus', - 'order_items' => 'setOrderItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'shipment_status' => 'getShipmentStatus', - 'order_items' => 'getOrderItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['order_items'] = $data['order_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['shipment_status'] === null) { - $invalidProperties[] = "'shipment_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The unobfuscated marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets shipment_status - * - * @return \SellingPartnerApi\Model\OrdersV0\ShipmentStatus - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param \SellingPartnerApi\Model\OrdersV0\ShipmentStatus $shipment_status shipment_status - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets order_items - * - * @return object[]|null - */ - public function getOrderItems() - { - return $this->container['order_items']; - } - - /** - * Sets order_items - * - * @param object[]|null $order_items For partial shipment status updates, the list of order items and quantities to be updated. - * - * @return self - */ - public function setOrderItems($order_items) - { - $this->container['order_items'] = $order_items; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/UpdateVerificationStatusErrorResponse.php b/lib/Model/OrdersV0/UpdateVerificationStatusErrorResponse.php deleted file mode 100644 index 9b2e9986e..000000000 --- a/lib/Model/OrdersV0/UpdateVerificationStatusErrorResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateVerificationStatusErrorResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateVerificationStatusErrorResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\OrdersV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\OrdersV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\OrdersV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/UpdateVerificationStatusRequest.php b/lib/Model/OrdersV0/UpdateVerificationStatusRequest.php deleted file mode 100644 index 2795a534d..000000000 --- a/lib/Model/OrdersV0/UpdateVerificationStatusRequest.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateVerificationStatusRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateVerificationStatusRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'regulated_order_verification_status' => '\SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequestBody' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'regulated_order_verification_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'regulated_order_verification_status' => 'regulatedOrderVerificationStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'regulated_order_verification_status' => 'setRegulatedOrderVerificationStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'regulated_order_verification_status' => 'getRegulatedOrderVerificationStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['regulated_order_verification_status'] = $data['regulated_order_verification_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['regulated_order_verification_status'] === null) { - $invalidProperties[] = "'regulated_order_verification_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets regulated_order_verification_status - * - * @return \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequestBody - */ - public function getRegulatedOrderVerificationStatus() - { - return $this->container['regulated_order_verification_status']; - } - - /** - * Sets regulated_order_verification_status - * - * @param \SellingPartnerApi\Model\OrdersV0\UpdateVerificationStatusRequestBody $regulated_order_verification_status regulated_order_verification_status - * - * @return self - */ - public function setRegulatedOrderVerificationStatus($regulated_order_verification_status) - { - $this->container['regulated_order_verification_status'] = $regulated_order_verification_status; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/UpdateVerificationStatusRequestBody.php b/lib/Model/OrdersV0/UpdateVerificationStatusRequestBody.php deleted file mode 100644 index ed7d4c2f5..000000000 --- a/lib/Model/OrdersV0/UpdateVerificationStatusRequestBody.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateVerificationStatusRequestBody extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateVerificationStatusRequestBody'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => '\SellingPartnerApi\Model\OrdersV0\VerificationStatus', - 'external_reviewer_id' => 'string', - 'rejection_reason_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null, - 'external_reviewer_id' => null, - 'rejection_reason_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'status', - 'external_reviewer_id' => 'externalReviewerId', - 'rejection_reason_id' => 'rejectionReasonId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus', - 'external_reviewer_id' => 'setExternalReviewerId', - 'rejection_reason_id' => 'setRejectionReasonId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus', - 'external_reviewer_id' => 'getExternalReviewerId', - 'rejection_reason_id' => 'getRejectionReasonId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - $this->container['external_reviewer_id'] = $data['external_reviewer_id'] ?? null; - $this->container['rejection_reason_id'] = $data['rejection_reason_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['external_reviewer_id'] === null) { - $invalidProperties[] = "'external_reviewer_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets status - * - * @return \SellingPartnerApi\Model\OrdersV0\VerificationStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\OrdersV0\VerificationStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets external_reviewer_id - * - * @return string - */ - public function getExternalReviewerId() - { - return $this->container['external_reviewer_id']; - } - - /** - * Sets external_reviewer_id - * - * @param string $external_reviewer_id The identifier for the order's regulated information reviewer. - * - * @return self - */ - public function setExternalReviewerId($external_reviewer_id) - { - $this->container['external_reviewer_id'] = $external_reviewer_id; - - return $this; - } - /** - * Gets rejection_reason_id - * - * @return string|null - */ - public function getRejectionReasonId() - { - return $this->container['rejection_reason_id']; - } - - /** - * Sets rejection_reason_id - * - * @param string|null $rejection_reason_id The unique identifier for the rejection reason used for rejecting the order's regulated information. Only required if the new status is rejected. - * - * @return self - */ - public function setRejectionReasonId($rejection_reason_id) - { - $this->container['rejection_reason_id'] = $rejection_reason_id; - - return $this; - } -} - - diff --git a/lib/Model/OrdersV0/VerificationStatus.php b/lib/Model/OrdersV0/VerificationStatus.php deleted file mode 100644 index 4f18800df..000000000 --- a/lib/Model/OrdersV0/VerificationStatus.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/ASINIdentifier.php b/lib/Model/ProductPricingV0/ASINIdentifier.php deleted file mode 100644 index f9809a530..000000000 --- a/lib/Model/ProductPricingV0/ASINIdentifier.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ASINIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ASINIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'asin' => 'ASIN' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/BatchOffersRequestParams.php b/lib/Model/ProductPricingV0/BatchOffersRequestParams.php deleted file mode 100644 index 0fe8abadf..000000000 --- a/lib/Model/ProductPricingV0/BatchOffersRequestParams.php +++ /dev/null @@ -1,225 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BatchOffersRequestParams extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BatchOffersRequestParams'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ItemCondition', - 'customer_type' => '\SellingPartnerApi\Model\ProductPricingV0\CustomerType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'item_condition' => null, - 'customer_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'item_condition' => 'ItemCondition', - 'customer_type' => 'CustomerType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'item_condition' => 'setItemCondition', - 'customer_type' => 'setCustomerType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'item_condition' => 'getItemCondition', - 'customer_type' => 'getCustomerType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['customer_type'] = $data['customer_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemCondition - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemCondition $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets customer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null - */ - public function getCustomerType() - { - return $this->container['customer_type']; - } - - /** - * Sets customer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null $customer_type customer_type - * - * @return self - */ - public function setCustomerType($customer_type) - { - $this->container['customer_type'] = $customer_type; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/BatchOffersResponse.php b/lib/Model/ProductPricingV0/BatchOffersResponse.php deleted file mode 100644 index e953ba52a..000000000 --- a/lib/Model/ProductPricingV0/BatchOffersResponse.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BatchOffersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BatchOffersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headers' => '\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders', - 'status' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine', - 'body' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headers' => null, - 'status' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'status' => 'status', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'status' => 'setStatus', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'status' => 'getStatus', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headers'] = $data['headers'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['body'] === null) { - $invalidProperties[] = "'body' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null $headers headers - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/BatchRequest.php b/lib/Model/ProductPricingV0/BatchRequest.php deleted file mode 100644 index 7a77df90c..000000000 --- a/lib/Model/ProductPricingV0/BatchRequest.php +++ /dev/null @@ -1,230 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'uri' => 'string', - 'method' => '\SellingPartnerApi\Model\ProductPricingV0\HttpMethod', - 'headers' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'uri' => null, - 'method' => null, - 'headers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'uri' => 'uri', - 'method' => 'method', - 'headers' => 'headers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'uri' => 'setUri', - 'method' => 'setMethod', - 'headers' => 'setHeaders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'uri' => 'getUri', - 'method' => 'getMethod', - 'headers' => 'getHeaders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['uri'] = $data['uri'] ?? null; - $this->container['method'] = $data['method'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['uri'] === null) { - $invalidProperties[] = "'uri' can't be null"; - } - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets uri - * - * @return string - */ - public function getUri() - { - return $this->container['uri']; - } - - /** - * Sets uri - * - * @param string $uri The resource path of the operation you are calling in batch without any query parameters. - * If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`. - * **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` - * If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`. - * **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` - * - * @return self - */ - public function setUri($uri) - { - $this->container['uri'] = $uri; - - return $this; - } - /** - * Gets method - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpMethod - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpMethod $method method - * - * @return self - */ - public function setMethod($method) - { - $this->container['method'] = $method; - - return $this; - } - /** - * Gets headers - * - * @return map[string,string]|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string]|null $headers A mapping of additional HTTP headers to send/receive for the individual batch request. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/BuyBoxPriceType.php b/lib/Model/ProductPricingV0/BuyBoxPriceType.php deleted file mode 100644 index 93d597caa..000000000 --- a/lib/Model/ProductPricingV0/BuyBoxPriceType.php +++ /dev/null @@ -1,405 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyBoxPriceType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyBoxPriceType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'condition' => 'string', - 'offer_type' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType', - 'quantity_tier' => 'int', - 'quantity_discount_type' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType', - 'landed_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'shipping' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'points' => '\SellingPartnerApi\Model\ProductPricingV0\Points', - 'seller_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'condition' => null, - 'offer_type' => null, - 'quantity_tier' => 'int32', - 'quantity_discount_type' => null, - 'landed_price' => null, - 'listing_price' => null, - 'shipping' => null, - 'points' => null, - 'seller_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'condition' => 'condition', - 'offer_type' => 'offerType', - 'quantity_tier' => 'quantityTier', - 'quantity_discount_type' => 'quantityDiscountType', - 'landed_price' => 'LandedPrice', - 'listing_price' => 'ListingPrice', - 'shipping' => 'Shipping', - 'points' => 'Points', - 'seller_id' => 'sellerId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'condition' => 'setCondition', - 'offer_type' => 'setOfferType', - 'quantity_tier' => 'setQuantityTier', - 'quantity_discount_type' => 'setQuantityDiscountType', - 'landed_price' => 'setLandedPrice', - 'listing_price' => 'setListingPrice', - 'shipping' => 'setShipping', - 'points' => 'setPoints', - 'seller_id' => 'setSellerId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'condition' => 'getCondition', - 'offer_type' => 'getOfferType', - 'quantity_tier' => 'getQuantityTier', - 'quantity_discount_type' => 'getQuantityDiscountType', - 'landed_price' => 'getLandedPrice', - 'listing_price' => 'getListingPrice', - 'shipping' => 'getShipping', - 'points' => 'getPoints', - 'seller_id' => 'getSellerId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['condition'] = $data['condition'] ?? null; - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['quantity_tier'] = $data['quantity_tier'] ?? null; - $this->container['quantity_discount_type'] = $data['quantity_discount_type'] ?? null; - $this->container['landed_price'] = $data['landed_price'] ?? null; - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['shipping'] = $data['shipping'] ?? null; - $this->container['points'] = $data['points'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['condition'] === null) { - $invalidProperties[] = "'condition' can't be null"; - } - if ($this->container['landed_price'] === null) { - $invalidProperties[] = "'landed_price' can't be null"; - } - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - if ($this->container['shipping'] === null) { - $invalidProperties[] = "'shipping' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets condition - * - * @return string - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets offer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null $offer_type offer_type - * - * @return self - */ - public function setOfferType($offer_type) - { - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets quantity_tier - * - * @return int|null - */ - public function getQuantityTier() - { - return $this->container['quantity_tier']; - } - - /** - * Sets quantity_tier - * - * @param int|null $quantity_tier Indicates at what quantity this price becomes active. - * - * @return self - */ - public function setQuantityTier($quantity_tier) - { - $this->container['quantity_tier'] = $quantity_tier; - - return $this; - } - /** - * Gets quantity_discount_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null - */ - public function getQuantityDiscountType() - { - return $this->container['quantity_discount_type']; - } - - /** - * Sets quantity_discount_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null $quantity_discount_type quantity_discount_type - * - * @return self - */ - public function setQuantityDiscountType($quantity_discount_type) - { - $this->container['quantity_discount_type'] = $quantity_discount_type; - - return $this; - } - /** - * Gets landed_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getLandedPrice() - { - return $this->container['landed_price']; - } - - /** - * Sets landed_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $landed_price landed_price - * - * @return self - */ - public function setLandedPrice($landed_price) - { - $this->container['landed_price'] = $landed_price; - - return $this; - } - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets shipping - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getShipping() - { - return $this->container['shipping']; - } - - /** - * Sets shipping - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $shipping shipping - * - * @return self - */ - public function setShipping($shipping) - { - $this->container['shipping'] = $shipping; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier for the offer. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/CompetitivePriceType.php b/lib/Model/ProductPricingV0/CompetitivePriceType.php deleted file mode 100644 index cbefb26a9..000000000 --- a/lib/Model/ProductPricingV0/CompetitivePriceType.php +++ /dev/null @@ -1,402 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CompetitivePriceType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CompetitivePriceType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'competitive_price_id' => 'string', - 'price' => '\SellingPartnerApi\Model\ProductPricingV0\PriceType', - 'condition' => 'string', - 'subcondition' => 'string', - 'offer_type' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType', - 'quantity_tier' => 'int', - 'quantity_discount_type' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType', - 'seller_id' => 'string', - 'belongs_to_requester' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'competitive_price_id' => null, - 'price' => null, - 'condition' => null, - 'subcondition' => null, - 'offer_type' => null, - 'quantity_tier' => 'int32', - 'quantity_discount_type' => null, - 'seller_id' => null, - 'belongs_to_requester' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'competitive_price_id' => 'CompetitivePriceId', - 'price' => 'Price', - 'condition' => 'condition', - 'subcondition' => 'subcondition', - 'offer_type' => 'offerType', - 'quantity_tier' => 'quantityTier', - 'quantity_discount_type' => 'quantityDiscountType', - 'seller_id' => 'sellerId', - 'belongs_to_requester' => 'belongsToRequester' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'competitive_price_id' => 'setCompetitivePriceId', - 'price' => 'setPrice', - 'condition' => 'setCondition', - 'subcondition' => 'setSubcondition', - 'offer_type' => 'setOfferType', - 'quantity_tier' => 'setQuantityTier', - 'quantity_discount_type' => 'setQuantityDiscountType', - 'seller_id' => 'setSellerId', - 'belongs_to_requester' => 'setBelongsToRequester' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'competitive_price_id' => 'getCompetitivePriceId', - 'price' => 'getPrice', - 'condition' => 'getCondition', - 'subcondition' => 'getSubcondition', - 'offer_type' => 'getOfferType', - 'quantity_tier' => 'getQuantityTier', - 'quantity_discount_type' => 'getQuantityDiscountType', - 'seller_id' => 'getSellerId', - 'belongs_to_requester' => 'getBelongsToRequester' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['competitive_price_id'] = $data['competitive_price_id'] ?? null; - $this->container['price'] = $data['price'] ?? null; - $this->container['condition'] = $data['condition'] ?? null; - $this->container['subcondition'] = $data['subcondition'] ?? null; - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['quantity_tier'] = $data['quantity_tier'] ?? null; - $this->container['quantity_discount_type'] = $data['quantity_discount_type'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['belongs_to_requester'] = $data['belongs_to_requester'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['competitive_price_id'] === null) { - $invalidProperties[] = "'competitive_price_id' can't be null"; - } - if ($this->container['price'] === null) { - $invalidProperties[] = "'price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets competitive_price_id - * - * @return string - */ - public function getCompetitivePriceId() - { - return $this->container['competitive_price_id']; - } - - /** - * Sets competitive_price_id - * - * @param string $competitive_price_id The pricing model for each price that is returned. - * Possible values: - * * 1 - New Buy Box Price. - * * 2 - Used Buy Box Price. - * - * @return self - */ - public function setCompetitivePriceId($competitive_price_id) - { - $this->container['competitive_price_id'] = $competitive_price_id; - - return $this; - } - /** - * Gets price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\PriceType - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\PriceType $price price - * - * @return self - */ - public function setPrice($price) - { - $this->container['price'] = $price; - - return $this; - } - /** - * Gets condition - * - * @return string|null - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string|null $condition Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club. - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets subcondition - * - * @return string|null - */ - public function getSubcondition() - { - return $this->container['subcondition']; - } - - /** - * Sets subcondition - * - * @param string|null $subcondition Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - * - * @return self - */ - public function setSubcondition($subcondition) - { - $this->container['subcondition'] = $subcondition; - - return $this; - } - /** - * Gets offer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null $offer_type offer_type - * - * @return self - */ - public function setOfferType($offer_type) - { - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets quantity_tier - * - * @return int|null - */ - public function getQuantityTier() - { - return $this->container['quantity_tier']; - } - - /** - * Sets quantity_tier - * - * @param int|null $quantity_tier Indicates at what quantity this price becomes active. - * - * @return self - */ - public function setQuantityTier($quantity_tier) - { - $this->container['quantity_tier'] = $quantity_tier; - - return $this; - } - /** - * Gets quantity_discount_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null - */ - public function getQuantityDiscountType() - { - return $this->container['quantity_discount_type']; - } - - /** - * Sets quantity_discount_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null $quantity_discount_type quantity_discount_type - * - * @return self - */ - public function setQuantityDiscountType($quantity_discount_type) - { - $this->container['quantity_discount_type'] = $quantity_discount_type; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier for the offer. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets belongs_to_requester - * - * @return bool|null - */ - public function getBelongsToRequester() - { - return $this->container['belongs_to_requester']; - } - - /** - * Sets belongs_to_requester - * - * @param bool|null $belongs_to_requester Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false. - * - * @return self - */ - public function setBelongsToRequester($belongs_to_requester) - { - $this->container['belongs_to_requester'] = $belongs_to_requester; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/CompetitivePricingType.php b/lib/Model/ProductPricingV0/CompetitivePricingType.php deleted file mode 100644 index 6256173bf..000000000 --- a/lib/Model/ProductPricingV0/CompetitivePricingType.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CompetitivePricingType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CompetitivePricingType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'competitive_prices' => '\SellingPartnerApi\Model\ProductPricingV0\CompetitivePriceType[]', - 'number_of_offer_listings' => '\SellingPartnerApi\Model\ProductPricingV0\OfferListingCountType[]', - 'trade_in_value' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'competitive_prices' => null, - 'number_of_offer_listings' => null, - 'trade_in_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'competitive_prices' => 'CompetitivePrices', - 'number_of_offer_listings' => 'NumberOfOfferListings', - 'trade_in_value' => 'TradeInValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'competitive_prices' => 'setCompetitivePrices', - 'number_of_offer_listings' => 'setNumberOfOfferListings', - 'trade_in_value' => 'setTradeInValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'competitive_prices' => 'getCompetitivePrices', - 'number_of_offer_listings' => 'getNumberOfOfferListings', - 'trade_in_value' => 'getTradeInValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['competitive_prices'] = $data['competitive_prices'] ?? null; - $this->container['number_of_offer_listings'] = $data['number_of_offer_listings'] ?? null; - $this->container['trade_in_value'] = $data['trade_in_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['competitive_prices'] === null) { - $invalidProperties[] = "'competitive_prices' can't be null"; - } - if ($this->container['number_of_offer_listings'] === null) { - $invalidProperties[] = "'number_of_offer_listings' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets competitive_prices - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CompetitivePriceType[] - */ - public function getCompetitivePrices() - { - return $this->container['competitive_prices']; - } - - /** - * Sets competitive_prices - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CompetitivePriceType[] $competitive_prices A list of competitive pricing information. - * - * @return self - */ - public function setCompetitivePrices($competitive_prices) - { - $this->container['competitive_prices'] = $competitive_prices; - - return $this; - } - /** - * Gets number_of_offer_listings - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferListingCountType[] - */ - public function getNumberOfOfferListings() - { - return $this->container['number_of_offer_listings']; - } - - /** - * Sets number_of_offer_listings - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferListingCountType[] $number_of_offer_listings 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. - * - * @return self - */ - public function setNumberOfOfferListings($number_of_offer_listings) - { - $this->container['number_of_offer_listings'] = $number_of_offer_listings; - - return $this; - } - /** - * Gets trade_in_value - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getTradeInValue() - { - return $this->container['trade_in_value']; - } - - /** - * Sets trade_in_value - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $trade_in_value trade_in_value - * - * @return self - */ - public function setTradeInValue($trade_in_value) - { - $this->container['trade_in_value'] = $trade_in_value; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ConditionType.php b/lib/Model/ProductPricingV0/ConditionType.php deleted file mode 100644 index 6eddfb2cb..000000000 --- a/lib/Model/ProductPricingV0/ConditionType.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/CustomerType.php b/lib/Model/ProductPricingV0/CustomerType.php deleted file mode 100644 index 65558edcf..000000000 --- a/lib/Model/ProductPricingV0/CustomerType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/DetailedShippingTimeType.php b/lib/Model/ProductPricingV0/DetailedShippingTimeType.php deleted file mode 100644 index 65c514868..000000000 --- a/lib/Model/ProductPricingV0/DetailedShippingTimeType.php +++ /dev/null @@ -1,295 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DetailedShippingTimeType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DetailedShippingTimeType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'minimum_hours' => 'int', - 'maximum_hours' => 'int', - 'available_date' => 'string', - 'availability_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'minimum_hours' => 'int64', - 'maximum_hours' => 'int64', - 'available_date' => null, - 'availability_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'minimum_hours' => 'minimumHours', - 'maximum_hours' => 'maximumHours', - 'available_date' => 'availableDate', - 'availability_type' => 'availabilityType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'minimum_hours' => 'setMinimumHours', - 'maximum_hours' => 'setMaximumHours', - 'available_date' => 'setAvailableDate', - 'availability_type' => 'setAvailabilityType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'minimum_hours' => 'getMinimumHours', - 'maximum_hours' => 'getMaximumHours', - 'available_date' => 'getAvailableDate', - 'availability_type' => 'getAvailabilityType' - ]; - - - - const AVAILABILITY_TYPE_NOW = 'NOW'; - const AVAILABILITY_TYPE_FUTURE_WITHOUT_DATE = 'FUTURE_WITHOUT_DATE'; - const AVAILABILITY_TYPE_FUTURE_WITH_DATE = 'FUTURE_WITH_DATE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getAvailabilityTypeAllowableValues() - { - $baseVals = [ - self::AVAILABILITY_TYPE_NOW, - self::AVAILABILITY_TYPE_FUTURE_WITHOUT_DATE, - self::AVAILABILITY_TYPE_FUTURE_WITH_DATE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['minimum_hours'] = $data['minimum_hours'] ?? null; - $this->container['maximum_hours'] = $data['maximum_hours'] ?? null; - $this->container['available_date'] = $data['available_date'] ?? null; - $this->container['availability_type'] = $data['availability_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getAvailabilityTypeAllowableValues(); - if ( - !is_null($this->container['availability_type']) && - !in_array(strtoupper($this->container['availability_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'availability_type', must be one of '%s'", - $this->container['availability_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets minimum_hours - * - * @return int|null - */ - public function getMinimumHours() - { - return $this->container['minimum_hours']; - } - - /** - * Sets minimum_hours - * - * @param int|null $minimum_hours The minimum time, in hours, that the item will likely be shipped after the order has been placed. - * - * @return self - */ - public function setMinimumHours($minimum_hours) - { - $this->container['minimum_hours'] = $minimum_hours; - - return $this; - } - /** - * Gets maximum_hours - * - * @return int|null - */ - public function getMaximumHours() - { - return $this->container['maximum_hours']; - } - - /** - * Sets maximum_hours - * - * @param int|null $maximum_hours The maximum time, in hours, that the item will likely be shipped after the order has been placed. - * - * @return self - */ - public function setMaximumHours($maximum_hours) - { - $this->container['maximum_hours'] = $maximum_hours; - - return $this; - } - /** - * Gets available_date - * - * @return string|null - */ - public function getAvailableDate() - { - return $this->container['available_date']; - } - - /** - * Sets available_date - * - * @param string|null $available_date The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping. - * - * @return self - */ - public function setAvailableDate($available_date) - { - $this->container['available_date'] = $available_date; - - return $this; - } - /** - * Gets availability_type - * - * @return string|null - */ - public function getAvailabilityType() - { - return $this->container['availability_type']; - } - - /** - * Sets availability_type - * - * @param string|null $availability_type Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE. - * - * @return self - */ - public function setAvailabilityType($availability_type) - { - $allowedValues = $this->getAvailabilityTypeAllowableValues(); - if (!is_null($availability_type) &&!in_array(strtoupper($availability_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'availability_type', must be one of '%s'", - $availability_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['availability_type'] = $availability_type; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Error.php b/lib/Model/ProductPricingV0/Error.php deleted file mode 100644 index 57e41b4c9..000000000 --- a/lib/Model/ProductPricingV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Errors.php b/lib/Model/ProductPricingV0/Errors.php deleted file mode 100644 index d23f10cb6..000000000 --- a/lib/Model/ProductPricingV0/Errors.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Errors extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Errors'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ProductPricingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Error[] $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/FulfillmentChannelType.php b/lib/Model/ProductPricingV0/FulfillmentChannelType.php deleted file mode 100644 index b59b191dd..000000000 --- a/lib/Model/ProductPricingV0/FulfillmentChannelType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetItemOffersBatchRequest.php b/lib/Model/ProductPricingV0/GetItemOffersBatchRequest.php deleted file mode 100644 index 771480574..000000000 --- a/lib/Model/ProductPricingV0/GetItemOffersBatchRequest.php +++ /dev/null @@ -1,177 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetItemOffersBatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetItemOffersBatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'requests' => '\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'requests' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'requests' => 'requests' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'requests' => 'setRequests' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'requests' => 'getRequests' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['requests'] = $data['requests'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['requests']) && (count($this->container['requests']) > 20)) { - $invalidProperties[] = "invalid value for 'requests', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['requests']) && (count($this->container['requests']) < 1)) { - $invalidProperties[] = "invalid value for 'requests', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets requests - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequest[]|null - */ - public function getRequests() - { - return $this->container['requests']; - } - - /** - * Sets requests - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequest[]|null $requests A list of `getListingOffers` batched requests to run. - * - * @return self - */ - public function setRequests($requests) - { - - if (!is_null($requests) && (count($requests) > 20)) { - throw new \InvalidArgumentException('invalid value for $requests when calling GetItemOffersBatchRequest., number of items must be less than or equal to 20.'); - } - if (!is_null($requests) && (count($requests) < 1)) { - throw new \InvalidArgumentException('invalid length for $requests when calling GetItemOffersBatchRequest., number of items must be greater than or equal to 1.'); - } - $this->container['requests'] = $requests; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetItemOffersBatchResponse.php b/lib/Model/ProductPricingV0/GetItemOffersBatchResponse.php deleted file mode 100644 index a959cb80c..000000000 --- a/lib/Model/ProductPricingV0/GetItemOffersBatchResponse.php +++ /dev/null @@ -1,202 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetItemOffersBatchResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetItemOffersBatchResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'responses' => '\SellingPartnerApi\Model\ProductPricingV0\ItemOffersResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'responses' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'responses' => 'responses' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'responses' => 'setResponses' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'responses' => 'getResponses' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['responses'] = $data['responses'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['responses']) && (count($this->container['responses']) > 20)) { - $invalidProperties[] = "invalid value for 'responses', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['responses']) && (count($this->container['responses']) < 1)) { - $invalidProperties[] = "invalid value for 'responses', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets responses - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemOffersResponse[]|null - */ - public function getResponses() - { - return $this->container['responses']; - } - - /** - * Sets responses - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemOffersResponse[]|null $responses A list of `getItemOffers` batched responses. - * - * @return self - */ - public function setResponses($responses) - { - - if (!is_null($responses) && (count($responses) > 20)) { - throw new \InvalidArgumentException('invalid value for $responses when calling GetItemOffersBatchResponse., number of items must be less than or equal to 20.'); - } - if (!is_null($responses) && (count($responses) < 1)) { - throw new \InvalidArgumentException('invalid length for $responses when calling GetItemOffersBatchResponse., number of items must be greater than or equal to 1.'); - } - $this->container['responses'] = $responses; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetListingOffersBatchRequest.php b/lib/Model/ProductPricingV0/GetListingOffersBatchRequest.php deleted file mode 100644 index 2a46c0c7a..000000000 --- a/lib/Model/ProductPricingV0/GetListingOffersBatchRequest.php +++ /dev/null @@ -1,177 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetListingOffersBatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetListingOffersBatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'requests' => '\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'requests' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'requests' => 'requests' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'requests' => 'setRequests' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'requests' => 'getRequests' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['requests'] = $data['requests'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['requests']) && (count($this->container['requests']) > 20)) { - $invalidProperties[] = "invalid value for 'requests', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['requests']) && (count($this->container['requests']) < 1)) { - $invalidProperties[] = "invalid value for 'requests', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets requests - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequest[]|null - */ - public function getRequests() - { - return $this->container['requests']; - } - - /** - * Sets requests - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequest[]|null $requests A list of `getListingOffers` batched requests to run. - * - * @return self - */ - public function setRequests($requests) - { - - if (!is_null($requests) && (count($requests) > 20)) { - throw new \InvalidArgumentException('invalid value for $requests when calling GetListingOffersBatchRequest., number of items must be less than or equal to 20.'); - } - if (!is_null($requests) && (count($requests) < 1)) { - throw new \InvalidArgumentException('invalid length for $requests when calling GetListingOffersBatchRequest., number of items must be greater than or equal to 1.'); - } - $this->container['requests'] = $requests; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetListingOffersBatchResponse.php b/lib/Model/ProductPricingV0/GetListingOffersBatchResponse.php deleted file mode 100644 index e9a208d6e..000000000 --- a/lib/Model/ProductPricingV0/GetListingOffersBatchResponse.php +++ /dev/null @@ -1,202 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetListingOffersBatchResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetListingOffersBatchResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'responses' => '\SellingPartnerApi\Model\ProductPricingV0\ListingOffersResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'responses' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'responses' => 'responses' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'responses' => 'setResponses' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'responses' => 'getResponses' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['responses'] = $data['responses'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['responses']) && (count($this->container['responses']) > 20)) { - $invalidProperties[] = "invalid value for 'responses', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['responses']) && (count($this->container['responses']) < 1)) { - $invalidProperties[] = "invalid value for 'responses', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets responses - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ListingOffersResponse[]|null - */ - public function getResponses() - { - return $this->container['responses']; - } - - /** - * Sets responses - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ListingOffersResponse[]|null $responses A list of `getListingOffers` batched responses. - * - * @return self - */ - public function setResponses($responses) - { - - if (!is_null($responses) && (count($responses) > 20)) { - throw new \InvalidArgumentException('invalid value for $responses when calling GetListingOffersBatchResponse., number of items must be less than or equal to 20.'); - } - if (!is_null($responses) && (count($responses) < 1)) { - throw new \InvalidArgumentException('invalid length for $responses when calling GetListingOffersBatchResponse., number of items must be greater than or equal to 1.'); - } - $this->container['responses'] = $responses; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetOffersHttpStatusLine.php b/lib/Model/ProductPricingV0/GetOffersHttpStatusLine.php deleted file mode 100644 index 179965820..000000000 --- a/lib/Model/ProductPricingV0/GetOffersHttpStatusLine.php +++ /dev/null @@ -1,207 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOffersHttpStatusLine extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOffersHttpStatusLine'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status_code' => 'int', - 'reason_phrase' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status_code' => null, - 'reason_phrase' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status_code' => 'statusCode', - 'reason_phrase' => 'reasonPhrase' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status_code' => 'setStatusCode', - 'reason_phrase' => 'setReasonPhrase' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status_code' => 'getStatusCode', - 'reason_phrase' => 'getReasonPhrase' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status_code'] = $data['status_code'] ?? null; - $this->container['reason_phrase'] = $data['reason_phrase'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['status_code']) && ($this->container['status_code'] > 599)) { - $invalidProperties[] = "invalid value for 'status_code', must be smaller than or equal to 599."; - } - - if (!is_null($this->container['status_code']) && ($this->container['status_code'] < 100)) { - $invalidProperties[] = "invalid value for 'status_code', must be bigger than or equal to 100."; - } - - return $invalidProperties; - } - - - /** - * Gets status_code - * - * @return int|null - */ - public function getStatusCode() - { - return $this->container['status_code']; - } - - /** - * Sets status_code - * - * @param int|null $status_code The HTTP response Status Code. - * - * @return self - */ - public function setStatusCode($status_code) - { - - if (!is_null($status_code) && ($status_code > 599)) { - throw new \InvalidArgumentException('invalid value for $status_code when calling GetOffersHttpStatusLine., must be smaller than or equal to 599.'); - } - if (!is_null($status_code) && ($status_code < 100)) { - throw new \InvalidArgumentException('invalid value for $status_code when calling GetOffersHttpStatusLine., must be bigger than or equal to 100.'); - } - - $this->container['status_code'] = $status_code; - - return $this; - } - /** - * Gets reason_phrase - * - * @return string|null - */ - public function getReasonPhrase() - { - return $this->container['reason_phrase']; - } - - /** - * Sets reason_phrase - * - * @param string|null $reason_phrase The HTTP response Reason-Phase. - * - * @return self - */ - public function setReasonPhrase($reason_phrase) - { - $this->container['reason_phrase'] = $reason_phrase; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetOffersResponse.php b/lib/Model/ProductPricingV0/GetOffersResponse.php deleted file mode 100644 index a1f3c6679..000000000 --- a/lib/Model/ProductPricingV0/GetOffersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOffersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOffersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResult', - 'errors' => '\SellingPartnerApi\Model\ProductPricingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetOffersResult.php b/lib/Model/ProductPricingV0/GetOffersResult.php deleted file mode 100644 index 3beafc3bd..000000000 --- a/lib/Model/ProductPricingV0/GetOffersResult.php +++ /dev/null @@ -1,390 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOffersResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOffersResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asin' => 'string', - 'sku' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ConditionType', - 'status' => 'string', - 'identifier' => '\SellingPartnerApi\Model\ProductPricingV0\ItemIdentifier', - 'summary' => '\SellingPartnerApi\Model\ProductPricingV0\Summary', - 'offers' => '\SellingPartnerApi\Model\ProductPricingV0\OfferDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asin' => null, - 'sku' => null, - 'item_condition' => null, - 'status' => null, - 'identifier' => null, - 'summary' => null, - 'offers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceID', - 'asin' => 'ASIN', - 'sku' => 'SKU', - 'item_condition' => 'ItemCondition', - 'status' => 'status', - 'identifier' => 'Identifier', - 'summary' => 'Summary', - 'offers' => 'Offers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asin' => 'setAsin', - 'sku' => 'setSku', - 'item_condition' => 'setItemCondition', - 'status' => 'setStatus', - 'identifier' => 'setIdentifier', - 'summary' => 'setSummary', - 'offers' => 'setOffers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asin' => 'getAsin', - 'sku' => 'getSku', - 'item_condition' => 'getItemCondition', - 'status' => 'getStatus', - 'identifier' => 'getIdentifier', - 'summary' => 'getSummary', - 'offers' => 'getOffers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['sku'] = $data['sku'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['identifier'] = $data['identifier'] ?? null; - $this->container['summary'] = $data['summary'] ?? null; - $this->container['offers'] = $data['offers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['identifier'] === null) { - $invalidProperties[] = "'identifier' can't be null"; - } - if ($this->container['summary'] === null) { - $invalidProperties[] = "'summary' can't be null"; - } - if ($this->container['offers'] === null) { - $invalidProperties[] = "'offers' can't be null"; - } - if ((count($this->container['offers']) > 20)) { - $invalidProperties[] = "invalid value for 'offers', number of items must be less than or equal to 20."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets sku - * - * @return string|null - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string|null $sku The stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ConditionType - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ConditionType $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status The status of the operation. - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets identifier - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemIdentifier - */ - public function getIdentifier() - { - return $this->container['identifier']; - } - - /** - * Sets identifier - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemIdentifier $identifier identifier - * - * @return self - */ - public function setIdentifier($identifier) - { - $this->container['identifier'] = $identifier; - - return $this; - } - /** - * Gets summary - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Summary - */ - public function getSummary() - { - return $this->container['summary']; - } - - /** - * Sets summary - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Summary $summary summary - * - * @return self - */ - public function setSummary($summary) - { - $this->container['summary'] = $summary; - - return $this; - } - /** - * Gets offers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferDetail[] - */ - public function getOffers() - { - return $this->container['offers']; - } - - /** - * Sets offers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferDetail[] $offers offers - * - * @return self - */ - public function setOffers($offers) - { - - if ((count($offers) > 20)) { - throw new \InvalidArgumentException('invalid value for $offers when calling GetOffersResult., number of items must be less than or equal to 20.'); - } - $this->container['offers'] = $offers; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/GetPricingResponse.php b/lib/Model/ProductPricingV0/GetPricingResponse.php deleted file mode 100644 index ee05bae64..000000000 --- a/lib/Model/ProductPricingV0/GetPricingResponse.php +++ /dev/null @@ -1,224 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPricingResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPricingResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ProductPricingV0\Price[]', - 'errors' => '\SellingPartnerApi\Model\ProductPricingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['payload']) && (count($this->container['payload']) > 20)) { - $invalidProperties[] = "invalid value for 'payload', number of items must be less than or equal to 20."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Price[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Price[]|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - - if (!is_null($payload) && (count($payload) > 20)) { - throw new \InvalidArgumentException('invalid value for $payload when calling GetPricingResponse., number of items must be less than or equal to 20.'); - } - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/HttpMethod.php b/lib/Model/ProductPricingV0/HttpMethod.php deleted file mode 100644 index b6b425f32..000000000 --- a/lib/Model/ProductPricingV0/HttpMethod.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/HttpResponseHeaders.php b/lib/Model/ProductPricingV0/HttpResponseHeaders.php deleted file mode 100644 index 36ef11d0c..000000000 --- a/lib/Model/ProductPricingV0/HttpResponseHeaders.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class HttpResponseHeaders extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'HttpResponseHeaders'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'date' => 'string', - 'x_amzn_request_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'date' => null, - 'x_amzn_request_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'date' => 'Date', - 'x_amzn_request_id' => 'x-amzn-RequestId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'date' => 'setDate', - 'x_amzn_request_id' => 'setXAmznRequestId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'date' => 'getDate', - 'x_amzn_request_id' => 'getXAmznRequestId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['date'] = $data['date'] ?? null; - $this->container['x_amzn_request_id'] = $data['x_amzn_request_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets date - * - * @return string|null - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param string|null $date The timestamp that the API request was received. For more information, consult [RFC 2616 Section 14](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). - * - * @return self - */ - public function setDate($date) - { - $this->container['date'] = $date; - - return $this; - } - /** - * Gets x_amzn_request_id - * - * @return string|null - */ - public function getXAmznRequestId() - { - return $this->container['x_amzn_request_id']; - } - - /** - * Sets x_amzn_request_id - * - * @param string|null $x_amzn_request_id Unique request reference ID. - * - * @return self - */ - public function setXAmznRequestId($x_amzn_request_id) - { - $this->container['x_amzn_request_id'] = $x_amzn_request_id; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/IdentifierType.php b/lib/Model/ProductPricingV0/IdentifierType.php deleted file mode 100644 index 5b2560575..000000000 --- a/lib/Model/ProductPricingV0/IdentifierType.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IdentifierType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IdentifierType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_asin' => '\SellingPartnerApi\Model\ProductPricingV0\ASINIdentifier', - 'sku_identifier' => '\SellingPartnerApi\Model\ProductPricingV0\SellerSKUIdentifier' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_asin' => null, - 'sku_identifier' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_asin' => 'MarketplaceASIN', - 'sku_identifier' => 'SKUIdentifier' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_asin' => 'setMarketplaceAsin', - 'sku_identifier' => 'setSkuIdentifier' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_asin' => 'getMarketplaceAsin', - 'sku_identifier' => 'getSkuIdentifier' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_asin'] = $data['marketplace_asin'] ?? null; - $this->container['sku_identifier'] = $data['sku_identifier'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_asin'] === null) { - $invalidProperties[] = "'marketplace_asin' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_asin - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ASINIdentifier - */ - public function getMarketplaceAsin() - { - return $this->container['marketplace_asin']; - } - - /** - * Sets marketplace_asin - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ASINIdentifier $marketplace_asin marketplace_asin - * - * @return self - */ - public function setMarketplaceAsin($marketplace_asin) - { - $this->container['marketplace_asin'] = $marketplace_asin; - - return $this; - } - /** - * Gets sku_identifier - * - * @return \SellingPartnerApi\Model\ProductPricingV0\SellerSKUIdentifier|null - */ - public function getSkuIdentifier() - { - return $this->container['sku_identifier']; - } - - /** - * Sets sku_identifier - * - * @param \SellingPartnerApi\Model\ProductPricingV0\SellerSKUIdentifier|null $sku_identifier sku_identifier - * - * @return self - */ - public function setSkuIdentifier($sku_identifier) - { - $this->container['sku_identifier'] = $sku_identifier; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemCondition.php b/lib/Model/ProductPricingV0/ItemCondition.php deleted file mode 100644 index 48897fb12..000000000 --- a/lib/Model/ProductPricingV0/ItemCondition.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemIdentifier.php b/lib/Model/ProductPricingV0/ItemIdentifier.php deleted file mode 100644 index c176eefed..000000000 --- a/lib/Model/ProductPricingV0/ItemIdentifier.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'asin' => 'string', - 'seller_sku' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ConditionType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'asin' => null, - 'seller_sku' => null, - 'item_condition' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'asin' => 'ASIN', - 'seller_sku' => 'SellerSKU', - 'item_condition' => 'ItemCondition' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'asin' => 'setAsin', - 'seller_sku' => 'setSellerSku', - 'item_condition' => 'setItemCondition' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'asin' => 'getAsin', - 'seller_sku' => 'getSellerSku', - 'item_condition' => 'getItemCondition' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace from which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ConditionType - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ConditionType $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemOffersRequest.php b/lib/Model/ProductPricingV0/ItemOffersRequest.php deleted file mode 100644 index 620dffa87..000000000 --- a/lib/Model/ProductPricingV0/ItemOffersRequest.php +++ /dev/null @@ -1,322 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOffersRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOffersRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'uri' => 'string', - 'method' => '\SellingPartnerApi\Model\ProductPricingV0\HttpMethod', - 'headers' => 'map[string,string]', - 'marketplace_id' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ItemCondition', - 'customer_type' => '\SellingPartnerApi\Model\ProductPricingV0\CustomerType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'uri' => null, - 'method' => null, - 'headers' => null, - 'marketplace_id' => null, - 'item_condition' => null, - 'customer_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'uri' => 'uri', - 'method' => 'method', - 'headers' => 'headers', - 'marketplace_id' => 'MarketplaceId', - 'item_condition' => 'ItemCondition', - 'customer_type' => 'CustomerType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'uri' => 'setUri', - 'method' => 'setMethod', - 'headers' => 'setHeaders', - 'marketplace_id' => 'setMarketplaceId', - 'item_condition' => 'setItemCondition', - 'customer_type' => 'setCustomerType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'uri' => 'getUri', - 'method' => 'getMethod', - 'headers' => 'getHeaders', - 'marketplace_id' => 'getMarketplaceId', - 'item_condition' => 'getItemCondition', - 'customer_type' => 'getCustomerType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['uri'] = $data['uri'] ?? null; - $this->container['method'] = $data['method'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['customer_type'] = $data['customer_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['uri'] === null) { - $invalidProperties[] = "'uri' can't be null"; - } - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets uri - * - * @return string - */ - public function getUri() - { - return $this->container['uri']; - } - - /** - * Sets uri - * - * @param string $uri The resource path of the operation you are calling in batch without any query parameters. - * If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`. - * **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` - * If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`. - * **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` - * - * @return self - */ - public function setUri($uri) - { - $this->container['uri'] = $uri; - - return $this; - } - /** - * Gets method - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpMethod - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpMethod $method method - * - * @return self - */ - public function setMethod($method) - { - $this->container['method'] = $method; - - return $this; - } - /** - * Gets headers - * - * @return map[string,string]|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string]|null $headers A mapping of additional HTTP headers to send/receive for the individual batch request. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemCondition - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemCondition $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets customer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null - */ - public function getCustomerType() - { - return $this->container['customer_type']; - } - - /** - * Sets customer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null $customer_type customer_type - * - * @return self - */ - public function setCustomerType($customer_type) - { - $this->container['customer_type'] = $customer_type; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemOffersRequestParams.php b/lib/Model/ProductPricingV0/ItemOffersRequestParams.php deleted file mode 100644 index a771a6237..000000000 --- a/lib/Model/ProductPricingV0/ItemOffersRequestParams.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOffersRequestParams extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOffersRequestParams'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ItemCondition', - 'customer_type' => '\SellingPartnerApi\Model\ProductPricingV0\CustomerType', - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'item_condition' => null, - 'customer_type' => null, - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'item_condition' => 'ItemCondition', - 'customer_type' => 'CustomerType', - 'asin' => 'Asin' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'item_condition' => 'setItemCondition', - 'customer_type' => 'setCustomerType', - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'item_condition' => 'getItemCondition', - 'customer_type' => 'getCustomerType', - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['customer_type'] = $data['customer_type'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemCondition - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemCondition $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets customer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null - */ - public function getCustomerType() - { - return $this->container['customer_type']; - } - - /** - * Sets customer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null $customer_type customer_type - * - * @return self - */ - public function setCustomerType($customer_type) - { - $this->container['customer_type'] = $customer_type; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.php b/lib/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.php deleted file mode 100644 index 8b2430487..000000000 --- a/lib/Model/ProductPricingV0/ItemOffersRequestParamsAllOf.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOffersRequestParamsAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOffersRequestParams_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'Asin' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemOffersResponse.php b/lib/Model/ProductPricingV0/ItemOffersResponse.php deleted file mode 100644 index 8dc77892b..000000000 --- a/lib/Model/ProductPricingV0/ItemOffersResponse.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOffersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOffersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headers' => '\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders', - 'status' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine', - 'body' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - 'request' => '\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headers' => null, - 'status' => null, - 'body' => null, - 'request' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'status' => 'status', - 'body' => 'body', - 'request' => 'request' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'status' => 'setStatus', - 'body' => 'setBody', - 'request' => 'setRequest' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'status' => 'getStatus', - 'body' => 'getBody', - 'request' => 'getRequest' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headers'] = $data['headers'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['body'] = $data['body'] ?? null; - $this->container['request'] = $data['request'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['body'] === null) { - $invalidProperties[] = "'body' can't be null"; - } - if ($this->container['request'] === null) { - $invalidProperties[] = "'request' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null $headers headers - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ItemOffersResponseAllOf.php b/lib/Model/ProductPricingV0/ItemOffersResponseAllOf.php deleted file mode 100644 index 974804c24..000000000 --- a/lib/Model/ProductPricingV0/ItemOffersResponseAllOf.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemOffersResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemOffersResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'request' => '\SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'request' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'request' => 'request' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'request' => 'setRequest' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'request' => 'getRequest' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request'] = $data['request'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['request'] === null) { - $invalidProperties[] = "'request' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemOffersRequestParams $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ListingOffersRequest.php b/lib/Model/ProductPricingV0/ListingOffersRequest.php deleted file mode 100644 index 8da37059c..000000000 --- a/lib/Model/ProductPricingV0/ListingOffersRequest.php +++ /dev/null @@ -1,322 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingOffersRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingOffersRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'uri' => 'string', - 'method' => '\SellingPartnerApi\Model\ProductPricingV0\HttpMethod', - 'headers' => 'map[string,string]', - 'marketplace_id' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ItemCondition', - 'customer_type' => '\SellingPartnerApi\Model\ProductPricingV0\CustomerType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'uri' => null, - 'method' => null, - 'headers' => null, - 'marketplace_id' => null, - 'item_condition' => null, - 'customer_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'uri' => 'uri', - 'method' => 'method', - 'headers' => 'headers', - 'marketplace_id' => 'MarketplaceId', - 'item_condition' => 'ItemCondition', - 'customer_type' => 'CustomerType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'uri' => 'setUri', - 'method' => 'setMethod', - 'headers' => 'setHeaders', - 'marketplace_id' => 'setMarketplaceId', - 'item_condition' => 'setItemCondition', - 'customer_type' => 'setCustomerType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'uri' => 'getUri', - 'method' => 'getMethod', - 'headers' => 'getHeaders', - 'marketplace_id' => 'getMarketplaceId', - 'item_condition' => 'getItemCondition', - 'customer_type' => 'getCustomerType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['uri'] = $data['uri'] ?? null; - $this->container['method'] = $data['method'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['customer_type'] = $data['customer_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['uri'] === null) { - $invalidProperties[] = "'uri' can't be null"; - } - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets uri - * - * @return string - */ - public function getUri() - { - return $this->container['uri']; - } - - /** - * Sets uri - * - * @param string $uri The resource path of the operation you are calling in batch without any query parameters. - * If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`. - * **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` - * If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`. - * **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` - * - * @return self - */ - public function setUri($uri) - { - $this->container['uri'] = $uri; - - return $this; - } - /** - * Gets method - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpMethod - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpMethod $method method - * - * @return self - */ - public function setMethod($method) - { - $this->container['method'] = $method; - - return $this; - } - /** - * Gets headers - * - * @return map[string,string]|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string]|null $headers A mapping of additional HTTP headers to send/receive for the individual batch request. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemCondition - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemCondition $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets customer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null - */ - public function getCustomerType() - { - return $this->container['customer_type']; - } - - /** - * Sets customer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null $customer_type customer_type - * - * @return self - */ - public function setCustomerType($customer_type) - { - $this->container['customer_type'] = $customer_type; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ListingOffersRequestParams.php b/lib/Model/ProductPricingV0/ListingOffersRequestParams.php deleted file mode 100644 index 713402473..000000000 --- a/lib/Model/ProductPricingV0/ListingOffersRequestParams.php +++ /dev/null @@ -1,257 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingOffersRequestParams extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingOffersRequestParams'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'item_condition' => '\SellingPartnerApi\Model\ProductPricingV0\ItemCondition', - 'customer_type' => '\SellingPartnerApi\Model\ProductPricingV0\CustomerType', - 'seller_sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'item_condition' => null, - 'customer_type' => null, - 'seller_sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'item_condition' => 'ItemCondition', - 'customer_type' => 'CustomerType', - 'seller_sku' => 'SellerSKU' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'item_condition' => 'setItemCondition', - 'customer_type' => 'setCustomerType', - 'seller_sku' => 'setSellerSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'item_condition' => 'getItemCondition', - 'customer_type' => 'getCustomerType', - 'seller_sku' => 'getSellerSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['customer_type'] = $data['customer_type'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets item_condition - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ItemCondition - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ItemCondition $item_condition item_condition - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets customer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null - */ - public function getCustomerType() - { - return $this->container['customer_type']; - } - - /** - * Sets customer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CustomerType|null $customer_type customer_type - * - * @return self - */ - public function setCustomerType($customer_type) - { - $this->container['customer_type'] = $customer_type; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.php b/lib/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.php deleted file mode 100644 index e0121a0b3..000000000 --- a/lib/Model/ProductPricingV0/ListingOffersRequestParamsAllOf.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingOffersRequestParamsAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingOffersRequestParams_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_sku' => 'SellerSKU' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_sku' => 'setSellerSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_sku' => 'getSellerSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ListingOffersResponse.php b/lib/Model/ProductPricingV0/ListingOffersResponse.php deleted file mode 100644 index 0cffa3242..000000000 --- a/lib/Model/ProductPricingV0/ListingOffersResponse.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingOffersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingOffersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headers' => '\SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders', - 'status' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine', - 'body' => '\SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse', - 'request' => '\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headers' => null, - 'status' => null, - 'body' => null, - 'request' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'status' => 'status', - 'body' => 'body', - 'request' => 'request' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'status' => 'setStatus', - 'body' => 'setBody', - 'request' => 'setRequest' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'status' => 'getStatus', - 'body' => 'getBody', - 'request' => 'getRequest' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headers'] = $data['headers'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['body'] = $data['body'] ?? null; - $this->container['request'] = $data['request'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['body'] === null) { - $invalidProperties[] = "'body' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\HttpResponseHeaders|null $headers headers - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersHttpStatusLine|null $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\ProductPricingV0\GetOffersResponse $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams|null - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams|null $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ListingOffersResponseAllOf.php b/lib/Model/ProductPricingV0/ListingOffersResponseAllOf.php deleted file mode 100644 index 8f101e29e..000000000 --- a/lib/Model/ProductPricingV0/ListingOffersResponseAllOf.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListingOffersResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListingOffersResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'request' => '\SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'request' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'request' => 'request' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'request' => 'setRequest' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'request' => 'getRequest' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request'] = $data['request'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams|null - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ListingOffersRequestParams|null $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/LowestPriceType.php b/lib/Model/ProductPricingV0/LowestPriceType.php deleted file mode 100644 index a83ff0e3e..000000000 --- a/lib/Model/ProductPricingV0/LowestPriceType.php +++ /dev/null @@ -1,408 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LowestPriceType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LowestPriceType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'condition' => 'string', - 'fulfillment_channel' => 'string', - 'offer_type' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType', - 'quantity_tier' => 'int', - 'quantity_discount_type' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType', - 'landed_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'shipping' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'points' => '\SellingPartnerApi\Model\ProductPricingV0\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'condition' => null, - 'fulfillment_channel' => null, - 'offer_type' => null, - 'quantity_tier' => 'int32', - 'quantity_discount_type' => null, - 'landed_price' => null, - 'listing_price' => null, - 'shipping' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'condition' => 'condition', - 'fulfillment_channel' => 'fulfillmentChannel', - 'offer_type' => 'offerType', - 'quantity_tier' => 'quantityTier', - 'quantity_discount_type' => 'quantityDiscountType', - 'landed_price' => 'LandedPrice', - 'listing_price' => 'ListingPrice', - 'shipping' => 'Shipping', - 'points' => 'Points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'condition' => 'setCondition', - 'fulfillment_channel' => 'setFulfillmentChannel', - 'offer_type' => 'setOfferType', - 'quantity_tier' => 'setQuantityTier', - 'quantity_discount_type' => 'setQuantityDiscountType', - 'landed_price' => 'setLandedPrice', - 'listing_price' => 'setListingPrice', - 'shipping' => 'setShipping', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'condition' => 'getCondition', - 'fulfillment_channel' => 'getFulfillmentChannel', - 'offer_type' => 'getOfferType', - 'quantity_tier' => 'getQuantityTier', - 'quantity_discount_type' => 'getQuantityDiscountType', - 'landed_price' => 'getLandedPrice', - 'listing_price' => 'getListingPrice', - 'shipping' => 'getShipping', - 'points' => 'getPoints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['condition'] = $data['condition'] ?? null; - $this->container['fulfillment_channel'] = $data['fulfillment_channel'] ?? null; - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['quantity_tier'] = $data['quantity_tier'] ?? null; - $this->container['quantity_discount_type'] = $data['quantity_discount_type'] ?? null; - $this->container['landed_price'] = $data['landed_price'] ?? null; - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['shipping'] = $data['shipping'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['condition'] === null) { - $invalidProperties[] = "'condition' can't be null"; - } - if ($this->container['fulfillment_channel'] === null) { - $invalidProperties[] = "'fulfillment_channel' can't be null"; - } - if ($this->container['landed_price'] === null) { - $invalidProperties[] = "'landed_price' can't be null"; - } - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - if ($this->container['shipping'] === null) { - $invalidProperties[] = "'shipping' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets condition - * - * @return string - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets fulfillment_channel - * - * @return string - */ - public function getFulfillmentChannel() - { - return $this->container['fulfillment_channel']; - } - - /** - * Sets fulfillment_channel - * - * @param string $fulfillment_channel Indicates whether the item is fulfilled by Amazon or by the seller. - * - * @return self - */ - public function setFulfillmentChannel($fulfillment_channel) - { - $this->container['fulfillment_channel'] = $fulfillment_channel; - - return $this; - } - /** - * Gets offer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null $offer_type offer_type - * - * @return self - */ - public function setOfferType($offer_type) - { - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets quantity_tier - * - * @return int|null - */ - public function getQuantityTier() - { - return $this->container['quantity_tier']; - } - - /** - * Sets quantity_tier - * - * @param int|null $quantity_tier Indicates at what quantity this price becomes active. - * - * @return self - */ - public function setQuantityTier($quantity_tier) - { - $this->container['quantity_tier'] = $quantity_tier; - - return $this; - } - /** - * Gets quantity_discount_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null - */ - public function getQuantityDiscountType() - { - return $this->container['quantity_discount_type']; - } - - /** - * Sets quantity_discount_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType|null $quantity_discount_type quantity_discount_type - * - * @return self - */ - public function setQuantityDiscountType($quantity_discount_type) - { - $this->container['quantity_discount_type'] = $quantity_discount_type; - - return $this; - } - /** - * Gets landed_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getLandedPrice() - { - return $this->container['landed_price']; - } - - /** - * Sets landed_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $landed_price landed_price - * - * @return self - */ - public function setLandedPrice($landed_price) - { - $this->container['landed_price'] = $landed_price; - - return $this; - } - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets shipping - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getShipping() - { - return $this->container['shipping']; - } - - /** - * Sets shipping - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $shipping shipping - * - * @return self - */ - public function setShipping($shipping) - { - $this->container['shipping'] = $shipping; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/MoneyType.php b/lib/Model/ProductPricingV0/MoneyType.php deleted file mode 100644 index 7f8b58ae4..000000000 --- a/lib/Model/ProductPricingV0/MoneyType.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MoneyType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MoneyType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return float|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param float|null $amount The monetary value. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/OfferCountType.php b/lib/Model/ProductPricingV0/OfferCountType.php deleted file mode 100644 index 58ab820a7..000000000 --- a/lib/Model/ProductPricingV0/OfferCountType.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferCountType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferCountType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'condition' => 'string', - 'fulfillment_channel' => '\SellingPartnerApi\Model\ProductPricingV0\FulfillmentChannelType', - 'offer_count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'condition' => null, - 'fulfillment_channel' => null, - 'offer_count' => 'int32' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'condition' => 'condition', - 'fulfillment_channel' => 'fulfillmentChannel', - 'offer_count' => 'OfferCount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'condition' => 'setCondition', - 'fulfillment_channel' => 'setFulfillmentChannel', - 'offer_count' => 'setOfferCount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'condition' => 'getCondition', - 'fulfillment_channel' => 'getFulfillmentChannel', - 'offer_count' => 'getOfferCount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['condition'] = $data['condition'] ?? null; - $this->container['fulfillment_channel'] = $data['fulfillment_channel'] ?? null; - $this->container['offer_count'] = $data['offer_count'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets condition - * - * @return string|null - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string|null $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets fulfillment_channel - * - * @return \SellingPartnerApi\Model\ProductPricingV0\FulfillmentChannelType|null - */ - public function getFulfillmentChannel() - { - return $this->container['fulfillment_channel']; - } - - /** - * Sets fulfillment_channel - * - * @param \SellingPartnerApi\Model\ProductPricingV0\FulfillmentChannelType|null $fulfillment_channel fulfillment_channel - * - * @return self - */ - public function setFulfillmentChannel($fulfillment_channel) - { - $this->container['fulfillment_channel'] = $fulfillment_channel; - - return $this; - } - /** - * Gets offer_count - * - * @return int|null - */ - public function getOfferCount() - { - return $this->container['offer_count']; - } - - /** - * Sets offer_count - * - * @param int|null $offer_count The number of offers in a fulfillment channel that meet a specific condition. - * - * @return self - */ - public function setOfferCount($offer_count) - { - $this->container['offer_count'] = $offer_count; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/OfferCustomerType.php b/lib/Model/ProductPricingV0/OfferCustomerType.php deleted file mode 100644 index 231d289c6..000000000 --- a/lib/Model/ProductPricingV0/OfferCustomerType.php +++ /dev/null @@ -1,86 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/OfferDetail.php b/lib/Model/ProductPricingV0/OfferDetail.php deleted file mode 100644 index 471f51835..000000000 --- a/lib/Model/ProductPricingV0/OfferDetail.php +++ /dev/null @@ -1,611 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'my_offer' => 'bool', - 'offer_type' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType', - 'sub_condition' => 'string', - 'seller_id' => 'string', - 'condition_notes' => 'string', - 'seller_feedback_rating' => '\SellingPartnerApi\Model\ProductPricingV0\SellerFeedbackType', - 'shipping_time' => '\SellingPartnerApi\Model\ProductPricingV0\DetailedShippingTimeType', - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'quantity_discount_prices' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]', - 'points' => '\SellingPartnerApi\Model\ProductPricingV0\Points', - 'shipping' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'ships_from' => '\SellingPartnerApi\Model\ProductPricingV0\ShipsFromType', - 'is_fulfilled_by_amazon' => 'bool', - 'prime_information' => '\SellingPartnerApi\Model\ProductPricingV0\PrimeInformationType', - 'is_buy_box_winner' => 'bool', - 'is_featured_merchant' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'my_offer' => null, - 'offer_type' => null, - 'sub_condition' => null, - 'seller_id' => null, - 'condition_notes' => null, - 'seller_feedback_rating' => null, - 'shipping_time' => null, - 'listing_price' => null, - 'quantity_discount_prices' => null, - 'points' => null, - 'shipping' => null, - 'ships_from' => null, - 'is_fulfilled_by_amazon' => null, - 'prime_information' => null, - 'is_buy_box_winner' => null, - 'is_featured_merchant' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'my_offer' => 'MyOffer', - 'offer_type' => 'offerType', - 'sub_condition' => 'SubCondition', - 'seller_id' => 'SellerId', - 'condition_notes' => 'ConditionNotes', - 'seller_feedback_rating' => 'SellerFeedbackRating', - 'shipping_time' => 'ShippingTime', - 'listing_price' => 'ListingPrice', - 'quantity_discount_prices' => 'quantityDiscountPrices', - 'points' => 'Points', - 'shipping' => 'Shipping', - 'ships_from' => 'ShipsFrom', - 'is_fulfilled_by_amazon' => 'IsFulfilledByAmazon', - 'prime_information' => 'PrimeInformation', - 'is_buy_box_winner' => 'IsBuyBoxWinner', - 'is_featured_merchant' => 'IsFeaturedMerchant' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'my_offer' => 'setMyOffer', - 'offer_type' => 'setOfferType', - 'sub_condition' => 'setSubCondition', - 'seller_id' => 'setSellerId', - 'condition_notes' => 'setConditionNotes', - 'seller_feedback_rating' => 'setSellerFeedbackRating', - 'shipping_time' => 'setShippingTime', - 'listing_price' => 'setListingPrice', - 'quantity_discount_prices' => 'setQuantityDiscountPrices', - 'points' => 'setPoints', - 'shipping' => 'setShipping', - 'ships_from' => 'setShipsFrom', - 'is_fulfilled_by_amazon' => 'setIsFulfilledByAmazon', - 'prime_information' => 'setPrimeInformation', - 'is_buy_box_winner' => 'setIsBuyBoxWinner', - 'is_featured_merchant' => 'setIsFeaturedMerchant' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'my_offer' => 'getMyOffer', - 'offer_type' => 'getOfferType', - 'sub_condition' => 'getSubCondition', - 'seller_id' => 'getSellerId', - 'condition_notes' => 'getConditionNotes', - 'seller_feedback_rating' => 'getSellerFeedbackRating', - 'shipping_time' => 'getShippingTime', - 'listing_price' => 'getListingPrice', - 'quantity_discount_prices' => 'getQuantityDiscountPrices', - 'points' => 'getPoints', - 'shipping' => 'getShipping', - 'ships_from' => 'getShipsFrom', - 'is_fulfilled_by_amazon' => 'getIsFulfilledByAmazon', - 'prime_information' => 'getPrimeInformation', - 'is_buy_box_winner' => 'getIsBuyBoxWinner', - 'is_featured_merchant' => 'getIsFeaturedMerchant' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['my_offer'] = $data['my_offer'] ?? null; - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['sub_condition'] = $data['sub_condition'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['condition_notes'] = $data['condition_notes'] ?? null; - $this->container['seller_feedback_rating'] = $data['seller_feedback_rating'] ?? null; - $this->container['shipping_time'] = $data['shipping_time'] ?? null; - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['quantity_discount_prices'] = $data['quantity_discount_prices'] ?? null; - $this->container['points'] = $data['points'] ?? null; - $this->container['shipping'] = $data['shipping'] ?? null; - $this->container['ships_from'] = $data['ships_from'] ?? null; - $this->container['is_fulfilled_by_amazon'] = $data['is_fulfilled_by_amazon'] ?? null; - $this->container['prime_information'] = $data['prime_information'] ?? null; - $this->container['is_buy_box_winner'] = $data['is_buy_box_winner'] ?? null; - $this->container['is_featured_merchant'] = $data['is_featured_merchant'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['sub_condition'] === null) { - $invalidProperties[] = "'sub_condition' can't be null"; - } - if ($this->container['shipping_time'] === null) { - $invalidProperties[] = "'shipping_time' can't be null"; - } - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - if ($this->container['shipping'] === null) { - $invalidProperties[] = "'shipping' can't be null"; - } - if ($this->container['is_fulfilled_by_amazon'] === null) { - $invalidProperties[] = "'is_fulfilled_by_amazon' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets my_offer - * - * @return bool|null - */ - public function getMyOffer() - { - return $this->container['my_offer']; - } - - /** - * Sets my_offer - * - * @param bool|null $my_offer When true, this is the seller's offer. - * - * @return self - */ - public function setMyOffer($my_offer) - { - $this->container['my_offer'] = $my_offer; - - return $this; - } - /** - * Gets offer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null $offer_type offer_type - * - * @return self - */ - public function setOfferType($offer_type) - { - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets sub_condition - * - * @return string - */ - public function getSubCondition() - { - return $this->container['sub_condition']; - } - - /** - * Sets sub_condition - * - * @param string $sub_condition The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - * - * @return self - */ - public function setSubCondition($sub_condition) - { - $this->container['sub_condition'] = $sub_condition; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier for the offer. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets condition_notes - * - * @return string|null - */ - public function getConditionNotes() - { - return $this->container['condition_notes']; - } - - /** - * Sets condition_notes - * - * @param string|null $condition_notes Information about the condition of the item. - * - * @return self - */ - public function setConditionNotes($condition_notes) - { - $this->container['condition_notes'] = $condition_notes; - - return $this; - } - /** - * Gets seller_feedback_rating - * - * @return \SellingPartnerApi\Model\ProductPricingV0\SellerFeedbackType|null - */ - public function getSellerFeedbackRating() - { - return $this->container['seller_feedback_rating']; - } - - /** - * Sets seller_feedback_rating - * - * @param \SellingPartnerApi\Model\ProductPricingV0\SellerFeedbackType|null $seller_feedback_rating seller_feedback_rating - * - * @return self - */ - public function setSellerFeedbackRating($seller_feedback_rating) - { - $this->container['seller_feedback_rating'] = $seller_feedback_rating; - - return $this; - } - /** - * Gets shipping_time - * - * @return \SellingPartnerApi\Model\ProductPricingV0\DetailedShippingTimeType - */ - public function getShippingTime() - { - return $this->container['shipping_time']; - } - - /** - * Sets shipping_time - * - * @param \SellingPartnerApi\Model\ProductPricingV0\DetailedShippingTimeType $shipping_time shipping_time - * - * @return self - */ - public function setShippingTime($shipping_time) - { - $this->container['shipping_time'] = $shipping_time; - - return $this; - } - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets quantity_discount_prices - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]|null - */ - public function getQuantityDiscountPrices() - { - return $this->container['quantity_discount_prices']; - } - - /** - * Sets quantity_discount_prices - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]|null $quantity_discount_prices quantity_discount_prices - * - * @return self - */ - public function setQuantityDiscountPrices($quantity_discount_prices) - { - $this->container['quantity_discount_prices'] = $quantity_discount_prices; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } - /** - * Gets shipping - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getShipping() - { - return $this->container['shipping']; - } - - /** - * Sets shipping - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $shipping shipping - * - * @return self - */ - public function setShipping($shipping) - { - $this->container['shipping'] = $shipping; - - return $this; - } - /** - * Gets ships_from - * - * @return \SellingPartnerApi\Model\ProductPricingV0\ShipsFromType|null - */ - public function getShipsFrom() - { - return $this->container['ships_from']; - } - - /** - * Sets ships_from - * - * @param \SellingPartnerApi\Model\ProductPricingV0\ShipsFromType|null $ships_from ships_from - * - * @return self - */ - public function setShipsFrom($ships_from) - { - $this->container['ships_from'] = $ships_from; - - return $this; - } - /** - * Gets is_fulfilled_by_amazon - * - * @return bool - */ - public function getIsFulfilledByAmazon() - { - return $this->container['is_fulfilled_by_amazon']; - } - - /** - * Sets is_fulfilled_by_amazon - * - * @param bool $is_fulfilled_by_amazon When true, the offer is fulfilled by Amazon. - * - * @return self - */ - public function setIsFulfilledByAmazon($is_fulfilled_by_amazon) - { - $this->container['is_fulfilled_by_amazon'] = $is_fulfilled_by_amazon; - - return $this; - } - /** - * Gets prime_information - * - * @return \SellingPartnerApi\Model\ProductPricingV0\PrimeInformationType|null - */ - public function getPrimeInformation() - { - return $this->container['prime_information']; - } - - /** - * Sets prime_information - * - * @param \SellingPartnerApi\Model\ProductPricingV0\PrimeInformationType|null $prime_information prime_information - * - * @return self - */ - public function setPrimeInformation($prime_information) - { - $this->container['prime_information'] = $prime_information; - - return $this; - } - /** - * Gets is_buy_box_winner - * - * @return bool|null - */ - public function getIsBuyBoxWinner() - { - return $this->container['is_buy_box_winner']; - } - - /** - * Sets is_buy_box_winner - * - * @param bool|null $is_buy_box_winner When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime. - * - * @return self - */ - public function setIsBuyBoxWinner($is_buy_box_winner) - { - $this->container['is_buy_box_winner'] = $is_buy_box_winner; - - return $this; - } - /** - * Gets is_featured_merchant - * - * @return bool|null - */ - public function getIsFeaturedMerchant() - { - return $this->container['is_featured_merchant']; - } - - /** - * Sets is_featured_merchant - * - * @param bool|null $is_featured_merchant When true, the seller of the item is eligible to win the Buy Box. - * - * @return self - */ - public function setIsFeaturedMerchant($is_featured_merchant) - { - $this->container['is_featured_merchant'] = $is_featured_merchant; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/OfferListingCountType.php b/lib/Model/ProductPricingV0/OfferListingCountType.php deleted file mode 100644 index eda003259..000000000 --- a/lib/Model/ProductPricingV0/OfferListingCountType.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferListingCountType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferListingCountType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'count' => 'int', - 'condition' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'count' => 'int32', - 'condition' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'count' => 'Count', - 'condition' => 'condition' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'count' => 'setCount', - 'condition' => 'setCondition' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'count' => 'getCount', - 'condition' => 'getCondition' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['count'] = $data['count'] ?? null; - $this->container['condition'] = $data['condition'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['count'] === null) { - $invalidProperties[] = "'count' can't be null"; - } - if ($this->container['condition'] === null) { - $invalidProperties[] = "'condition' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets count - * - * @return int - */ - public function getCount() - { - return $this->container['count']; - } - - /** - * Sets count - * - * @param int $count The number of offer listings. - * - * @return self - */ - public function setCount($count) - { - $this->container['count'] = $count; - - return $this; - } - /** - * Gets condition - * - * @return string - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param string $condition The condition of the item. - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/OfferType.php b/lib/Model/ProductPricingV0/OfferType.php deleted file mode 100644 index 69b9c8866..000000000 --- a/lib/Model/ProductPricingV0/OfferType.php +++ /dev/null @@ -1,413 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'offer_type' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType', - 'buying_price' => '\SellingPartnerApi\Model\ProductPricingV0\PriceType', - 'regular_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'business_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'quantity_discount_prices' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]', - 'fulfillment_channel' => 'string', - 'item_condition' => 'string', - 'item_sub_condition' => 'string', - 'seller_sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'offer_type' => null, - 'buying_price' => null, - 'regular_price' => null, - 'business_price' => null, - 'quantity_discount_prices' => null, - 'fulfillment_channel' => null, - 'item_condition' => null, - 'item_sub_condition' => null, - 'seller_sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'offer_type' => 'offerType', - 'buying_price' => 'BuyingPrice', - 'regular_price' => 'RegularPrice', - 'business_price' => 'businessPrice', - 'quantity_discount_prices' => 'quantityDiscountPrices', - 'fulfillment_channel' => 'FulfillmentChannel', - 'item_condition' => 'ItemCondition', - 'item_sub_condition' => 'ItemSubCondition', - 'seller_sku' => 'SellerSKU' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'offer_type' => 'setOfferType', - 'buying_price' => 'setBuyingPrice', - 'regular_price' => 'setRegularPrice', - 'business_price' => 'setBusinessPrice', - 'quantity_discount_prices' => 'setQuantityDiscountPrices', - 'fulfillment_channel' => 'setFulfillmentChannel', - 'item_condition' => 'setItemCondition', - 'item_sub_condition' => 'setItemSubCondition', - 'seller_sku' => 'setSellerSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'offer_type' => 'getOfferType', - 'buying_price' => 'getBuyingPrice', - 'regular_price' => 'getRegularPrice', - 'business_price' => 'getBusinessPrice', - 'quantity_discount_prices' => 'getQuantityDiscountPrices', - 'fulfillment_channel' => 'getFulfillmentChannel', - 'item_condition' => 'getItemCondition', - 'item_sub_condition' => 'getItemSubCondition', - 'seller_sku' => 'getSellerSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['offer_type'] = $data['offer_type'] ?? null; - $this->container['buying_price'] = $data['buying_price'] ?? null; - $this->container['regular_price'] = $data['regular_price'] ?? null; - $this->container['business_price'] = $data['business_price'] ?? null; - $this->container['quantity_discount_prices'] = $data['quantity_discount_prices'] ?? null; - $this->container['fulfillment_channel'] = $data['fulfillment_channel'] ?? null; - $this->container['item_condition'] = $data['item_condition'] ?? null; - $this->container['item_sub_condition'] = $data['item_sub_condition'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['buying_price'] === null) { - $invalidProperties[] = "'buying_price' can't be null"; - } - if ($this->container['regular_price'] === null) { - $invalidProperties[] = "'regular_price' can't be null"; - } - if ($this->container['fulfillment_channel'] === null) { - $invalidProperties[] = "'fulfillment_channel' can't be null"; - } - if ($this->container['item_condition'] === null) { - $invalidProperties[] = "'item_condition' can't be null"; - } - if ($this->container['item_sub_condition'] === null) { - $invalidProperties[] = "'item_sub_condition' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets offer_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null - */ - public function getOfferType() - { - return $this->container['offer_type']; - } - - /** - * Sets offer_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCustomerType|null $offer_type offer_type - * - * @return self - */ - public function setOfferType($offer_type) - { - $this->container['offer_type'] = $offer_type; - - return $this; - } - /** - * Gets buying_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\PriceType - */ - public function getBuyingPrice() - { - return $this->container['buying_price']; - } - - /** - * Sets buying_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\PriceType $buying_price buying_price - * - * @return self - */ - public function setBuyingPrice($buying_price) - { - $this->container['buying_price'] = $buying_price; - - return $this; - } - /** - * Gets regular_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getRegularPrice() - { - return $this->container['regular_price']; - } - - /** - * Sets regular_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $regular_price regular_price - * - * @return self - */ - public function setRegularPrice($regular_price) - { - $this->container['regular_price'] = $regular_price; - - return $this; - } - /** - * Gets business_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getBusinessPrice() - { - return $this->container['business_price']; - } - - /** - * Sets business_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $business_price business_price - * - * @return self - */ - public function setBusinessPrice($business_price) - { - $this->container['business_price'] = $business_price; - - return $this; - } - /** - * Gets quantity_discount_prices - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]|null - */ - public function getQuantityDiscountPrices() - { - return $this->container['quantity_discount_prices']; - } - - /** - * Sets quantity_discount_prices - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountPriceType[]|null $quantity_discount_prices quantity_discount_prices - * - * @return self - */ - public function setQuantityDiscountPrices($quantity_discount_prices) - { - $this->container['quantity_discount_prices'] = $quantity_discount_prices; - - return $this; - } - /** - * Gets fulfillment_channel - * - * @return string - */ - public function getFulfillmentChannel() - { - return $this->container['fulfillment_channel']; - } - - /** - * Sets fulfillment_channel - * - * @param string $fulfillment_channel The fulfillment channel for the offer listing. Possible values: - * * Amazon - Fulfilled by Amazon. - * * Merchant - Fulfilled by the seller. - * - * @return self - */ - public function setFulfillmentChannel($fulfillment_channel) - { - $this->container['fulfillment_channel'] = $fulfillment_channel; - - return $this; - } - /** - * Gets item_condition - * - * @return string - */ - public function getItemCondition() - { - return $this->container['item_condition']; - } - - /** - * Sets item_condition - * - * @param string $item_condition The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club. - * - * @return self - */ - public function setItemCondition($item_condition) - { - $this->container['item_condition'] = $item_condition; - - return $this; - } - /** - * Gets item_sub_condition - * - * @return string - */ - public function getItemSubCondition() - { - return $this->container['item_sub_condition']; - } - - /** - * Sets item_sub_condition - * - * @param string $item_sub_condition The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. - * - * @return self - */ - public function setItemSubCondition($item_sub_condition) - { - $this->container['item_sub_condition'] = $item_sub_condition; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Points.php b/lib/Model/ProductPricingV0/Points.php deleted file mode 100644 index e0bb8d7ac..000000000 --- a/lib/Model/ProductPricingV0/Points.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Points extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Points'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'points_number' => 'int', - 'points_monetary_value' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'points_number' => 'int32', - 'points_monetary_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'points_number' => 'PointsNumber', - 'points_monetary_value' => 'PointsMonetaryValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'points_number' => 'setPointsNumber', - 'points_monetary_value' => 'setPointsMonetaryValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'points_number' => 'getPointsNumber', - 'points_monetary_value' => 'getPointsMonetaryValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['points_number'] = $data['points_number'] ?? null; - $this->container['points_monetary_value'] = $data['points_monetary_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets points_number - * - * @return int|null - */ - public function getPointsNumber() - { - return $this->container['points_number']; - } - - /** - * Sets points_number - * - * @param int|null $points_number The number of points. - * - * @return self - */ - public function setPointsNumber($points_number) - { - $this->container['points_number'] = $points_number; - - return $this; - } - /** - * Gets points_monetary_value - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getPointsMonetaryValue() - { - return $this->container['points_monetary_value']; - } - - /** - * Sets points_monetary_value - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $points_monetary_value points_monetary_value - * - * @return self - */ - public function setPointsMonetaryValue($points_monetary_value) - { - $this->container['points_monetary_value'] = $points_monetary_value; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Price.php b/lib/Model/ProductPricingV0/Price.php deleted file mode 100644 index 3ef8107f5..000000000 --- a/lib/Model/ProductPricingV0/Price.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Price extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Price'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => 'string', - 'seller_sku' => 'string', - 'asin' => 'string', - 'product' => '\SellingPartnerApi\Model\ProductPricingV0\Product' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null, - 'seller_sku' => null, - 'asin' => null, - 'product' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'status', - 'seller_sku' => 'SellerSKU', - 'asin' => 'ASIN', - 'product' => 'Product' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus', - 'seller_sku' => 'setSellerSku', - 'asin' => 'setAsin', - 'product' => 'setProduct' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus', - 'seller_sku' => 'getSellerSku', - 'asin' => 'getAsin', - 'product' => 'getProduct' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['product'] = $data['product'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status The status of the operation. - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets product - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Product|null - */ - public function getProduct() - { - return $this->container['product']; - } - - /** - * Sets product - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Product|null $product product - * - * @return self - */ - public function setProduct($product) - { - $this->container['product'] = $product; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/PriceType.php b/lib/Model/ProductPricingV0/PriceType.php deleted file mode 100644 index c112d7689..000000000 --- a/lib/Model/ProductPricingV0/PriceType.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PriceType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PriceType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'landed_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'shipping' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'points' => '\SellingPartnerApi\Model\ProductPricingV0\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'landed_price' => null, - 'listing_price' => null, - 'shipping' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'landed_price' => 'LandedPrice', - 'listing_price' => 'ListingPrice', - 'shipping' => 'Shipping', - 'points' => 'Points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'landed_price' => 'setLandedPrice', - 'listing_price' => 'setListingPrice', - 'shipping' => 'setShipping', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'landed_price' => 'getLandedPrice', - 'listing_price' => 'getListingPrice', - 'shipping' => 'getShipping', - 'points' => 'getPoints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['landed_price'] = $data['landed_price'] ?? null; - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['shipping'] = $data['shipping'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets landed_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getLandedPrice() - { - return $this->container['landed_price']; - } - - /** - * Sets landed_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $landed_price landed_price - * - * @return self - */ - public function setLandedPrice($landed_price) - { - $this->container['landed_price'] = $landed_price; - - return $this; - } - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets shipping - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getShipping() - { - return $this->container['shipping']; - } - - /** - * Sets shipping - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $shipping shipping - * - * @return self - */ - public function setShipping($shipping) - { - $this->container['shipping'] = $shipping; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV0\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV0\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/PrimeInformationType.php b/lib/Model/ProductPricingV0/PrimeInformationType.php deleted file mode 100644 index 57286fae4..000000000 --- a/lib/Model/ProductPricingV0/PrimeInformationType.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PrimeInformationType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PrimeInformationType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_prime' => 'bool', - 'is_national_prime' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_prime' => null, - 'is_national_prime' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_prime' => 'IsPrime', - 'is_national_prime' => 'IsNationalPrime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_prime' => 'setIsPrime', - 'is_national_prime' => 'setIsNationalPrime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_prime' => 'getIsPrime', - 'is_national_prime' => 'getIsNationalPrime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_prime'] = $data['is_prime'] ?? null; - $this->container['is_national_prime'] = $data['is_national_prime'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_prime'] === null) { - $invalidProperties[] = "'is_prime' can't be null"; - } - if ($this->container['is_national_prime'] === null) { - $invalidProperties[] = "'is_national_prime' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_prime - * - * @return bool - */ - public function getIsPrime() - { - return $this->container['is_prime']; - } - - /** - * Sets is_prime - * - * @param bool $is_prime Indicates whether the offer is an Amazon Prime offer. - * - * @return self - */ - public function setIsPrime($is_prime) - { - $this->container['is_prime'] = $is_prime; - - return $this; - } - /** - * Gets is_national_prime - * - * @return bool - */ - public function getIsNationalPrime() - { - return $this->container['is_national_prime']; - } - - /** - * Sets is_national_prime - * - * @param bool $is_national_prime Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed. - * - * @return self - */ - public function setIsNationalPrime($is_national_prime) - { - $this->container['is_national_prime'] = $is_national_prime; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Product.php b/lib/Model/ProductPricingV0/Product.php deleted file mode 100644 index 776713675..000000000 --- a/lib/Model/ProductPricingV0/Product.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Product extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Product'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'identifiers' => '\SellingPartnerApi\Model\ProductPricingV0\IdentifierType', - 'attribute_sets' => 'object[]', - 'relationships' => 'object[]', - 'competitive_pricing' => '\SellingPartnerApi\Model\ProductPricingV0\CompetitivePricingType', - 'sales_rankings' => '\SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]', - 'offers' => '\SellingPartnerApi\Model\ProductPricingV0\OfferType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'identifiers' => null, - 'attribute_sets' => null, - 'relationships' => null, - 'competitive_pricing' => null, - 'sales_rankings' => null, - 'offers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'identifiers' => 'Identifiers', - 'attribute_sets' => 'AttributeSets', - 'relationships' => 'Relationships', - 'competitive_pricing' => 'CompetitivePricing', - 'sales_rankings' => 'SalesRankings', - 'offers' => 'Offers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'identifiers' => 'setIdentifiers', - 'attribute_sets' => 'setAttributeSets', - 'relationships' => 'setRelationships', - 'competitive_pricing' => 'setCompetitivePricing', - 'sales_rankings' => 'setSalesRankings', - 'offers' => 'setOffers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'identifiers' => 'getIdentifiers', - 'attribute_sets' => 'getAttributeSets', - 'relationships' => 'getRelationships', - 'competitive_pricing' => 'getCompetitivePricing', - 'sales_rankings' => 'getSalesRankings', - 'offers' => 'getOffers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['identifiers'] = $data['identifiers'] ?? null; - $this->container['attribute_sets'] = $data['attribute_sets'] ?? null; - $this->container['relationships'] = $data['relationships'] ?? null; - $this->container['competitive_pricing'] = $data['competitive_pricing'] ?? null; - $this->container['sales_rankings'] = $data['sales_rankings'] ?? null; - $this->container['offers'] = $data['offers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['identifiers'] === null) { - $invalidProperties[] = "'identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets identifiers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\IdentifierType - */ - public function getIdentifiers() - { - return $this->container['identifiers']; - } - - /** - * Sets identifiers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\IdentifierType $identifiers identifiers - * - * @return self - */ - public function setIdentifiers($identifiers) - { - $this->container['identifiers'] = $identifiers; - - return $this; - } - /** - * Gets attribute_sets - * - * @return object[]|null - */ - public function getAttributeSets() - { - return $this->container['attribute_sets']; - } - - /** - * Sets attribute_sets - * - * @param object[]|null $attribute_sets A list of product attributes if they are applicable to the product that is returned. - * - * @return self - */ - public function setAttributeSets($attribute_sets) - { - $this->container['attribute_sets'] = $attribute_sets; - - return $this; - } - /** - * Gets relationships - * - * @return object[]|null - */ - public function getRelationships() - { - return $this->container['relationships']; - } - - /** - * Sets relationships - * - * @param object[]|null $relationships A list that contains product variation information, if applicable. - * - * @return self - */ - public function setRelationships($relationships) - { - $this->container['relationships'] = $relationships; - - return $this; - } - /** - * Gets competitive_pricing - * - * @return \SellingPartnerApi\Model\ProductPricingV0\CompetitivePricingType|null - */ - public function getCompetitivePricing() - { - return $this->container['competitive_pricing']; - } - - /** - * Sets competitive_pricing - * - * @param \SellingPartnerApi\Model\ProductPricingV0\CompetitivePricingType|null $competitive_pricing competitive_pricing - * - * @return self - */ - public function setCompetitivePricing($competitive_pricing) - { - $this->container['competitive_pricing'] = $competitive_pricing; - - return $this; - } - /** - * Gets sales_rankings - * - * @return \SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]|null - */ - public function getSalesRankings() - { - return $this->container['sales_rankings']; - } - - /** - * Sets sales_rankings - * - * @param \SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]|null $sales_rankings A list of sales rank information for the item, by category. - * - * @return self - */ - public function setSalesRankings($sales_rankings) - { - $this->container['sales_rankings'] = $sales_rankings; - - return $this; - } - /** - * Gets offers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferType[]|null - */ - public function getOffers() - { - return $this->container['offers']; - } - - /** - * Sets offers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferType[]|null $offers A list of offers. - * - * @return self - */ - public function setOffers($offers) - { - $this->container['offers'] = $offers; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/QuantityDiscountPriceType.php b/lib/Model/ProductPricingV0/QuantityDiscountPriceType.php deleted file mode 100644 index c0dd84b3e..000000000 --- a/lib/Model/ProductPricingV0/QuantityDiscountPriceType.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class QuantityDiscountPriceType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'QuantityDiscountPriceType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'quantity_tier' => 'int', - 'quantity_discount_type' => '\SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType', - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'quantity_tier' => 'int32', - 'quantity_discount_type' => null, - 'listing_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'quantity_tier' => 'quantityTier', - 'quantity_discount_type' => 'quantityDiscountType', - 'listing_price' => 'listingPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'quantity_tier' => 'setQuantityTier', - 'quantity_discount_type' => 'setQuantityDiscountType', - 'listing_price' => 'setListingPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'quantity_tier' => 'getQuantityTier', - 'quantity_discount_type' => 'getQuantityDiscountType', - 'listing_price' => 'getListingPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['quantity_tier'] = $data['quantity_tier'] ?? null; - $this->container['quantity_discount_type'] = $data['quantity_discount_type'] ?? null; - $this->container['listing_price'] = $data['listing_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['quantity_tier'] === null) { - $invalidProperties[] = "'quantity_tier' can't be null"; - } - if ($this->container['quantity_discount_type'] === null) { - $invalidProperties[] = "'quantity_discount_type' can't be null"; - } - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets quantity_tier - * - * @return int - */ - public function getQuantityTier() - { - return $this->container['quantity_tier']; - } - - /** - * Sets quantity_tier - * - * @param int $quantity_tier Indicates at what quantity this price becomes active. - * - * @return self - */ - public function setQuantityTier($quantity_tier) - { - $this->container['quantity_tier'] = $quantity_tier; - - return $this; - } - /** - * Gets quantity_discount_type - * - * @return \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType - */ - public function getQuantityDiscountType() - { - return $this->container['quantity_discount_type']; - } - - /** - * Sets quantity_discount_type - * - * @param \SellingPartnerApi\Model\ProductPricingV0\QuantityDiscountType $quantity_discount_type quantity_discount_type - * - * @return self - */ - public function setQuantityDiscountType($quantity_discount_type) - { - $this->container['quantity_discount_type'] = $quantity_discount_type; - - return $this; - } - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/QuantityDiscountType.php b/lib/Model/ProductPricingV0/QuantityDiscountType.php deleted file mode 100644 index b1af872a9..000000000 --- a/lib/Model/ProductPricingV0/QuantityDiscountType.php +++ /dev/null @@ -1,84 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV0/SalesRankType.php b/lib/Model/ProductPricingV0/SalesRankType.php deleted file mode 100644 index 08991d600..000000000 --- a/lib/Model/ProductPricingV0/SalesRankType.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SalesRankType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SalesRankType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_category_id' => 'string', - 'rank' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_category_id' => null, - 'rank' => 'int32' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'product_category_id' => 'ProductCategoryId', - 'rank' => 'Rank' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'product_category_id' => 'setProductCategoryId', - 'rank' => 'setRank' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'product_category_id' => 'getProductCategoryId', - 'rank' => 'getRank' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_category_id'] = $data['product_category_id'] ?? null; - $this->container['rank'] = $data['rank'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_category_id'] === null) { - $invalidProperties[] = "'product_category_id' can't be null"; - } - if ($this->container['rank'] === null) { - $invalidProperties[] = "'rank' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets product_category_id - * - * @return string - */ - public function getProductCategoryId() - { - return $this->container['product_category_id']; - } - - /** - * Sets product_category_id - * - * @param string $product_category_id Identifies the item category from which the sales rank is taken. - * - * @return self - */ - public function setProductCategoryId($product_category_id) - { - $this->container['product_category_id'] = $product_category_id; - - return $this; - } - /** - * Gets rank - * - * @return int - */ - public function getRank() - { - return $this->container['rank']; - } - - /** - * Sets rank - * - * @param int $rank The sales rank of the item within the item category. - * - * @return self - */ - public function setRank($rank) - { - $this->container['rank'] = $rank; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/SellerFeedbackType.php b/lib/Model/ProductPricingV0/SellerFeedbackType.php deleted file mode 100644 index 18f408165..000000000 --- a/lib/Model/ProductPricingV0/SellerFeedbackType.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerFeedbackType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerFeedbackType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_positive_feedback_rating' => 'double', - 'feedback_count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_positive_feedback_rating' => 'double', - 'feedback_count' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_positive_feedback_rating' => 'SellerPositiveFeedbackRating', - 'feedback_count' => 'FeedbackCount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_positive_feedback_rating' => 'setSellerPositiveFeedbackRating', - 'feedback_count' => 'setFeedbackCount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_positive_feedback_rating' => 'getSellerPositiveFeedbackRating', - 'feedback_count' => 'getFeedbackCount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_positive_feedback_rating'] = $data['seller_positive_feedback_rating'] ?? null; - $this->container['feedback_count'] = $data['feedback_count'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['feedback_count'] === null) { - $invalidProperties[] = "'feedback_count' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets seller_positive_feedback_rating - * - * @return double|null - */ - public function getSellerPositiveFeedbackRating() - { - return $this->container['seller_positive_feedback_rating']; - } - - /** - * Sets seller_positive_feedback_rating - * - * @param double|null $seller_positive_feedback_rating The percentage of positive feedback for the seller in the past 365 days. - * - * @return self - */ - public function setSellerPositiveFeedbackRating($seller_positive_feedback_rating) - { - $this->container['seller_positive_feedback_rating'] = $seller_positive_feedback_rating; - - return $this; - } - /** - * Gets feedback_count - * - * @return int - */ - public function getFeedbackCount() - { - return $this->container['feedback_count']; - } - - /** - * Sets feedback_count - * - * @param int $feedback_count The number of ratings received about the seller. - * - * @return self - */ - public function setFeedbackCount($feedback_count) - { - $this->container['feedback_count'] = $feedback_count; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/SellerSKUIdentifier.php b/lib/Model/ProductPricingV0/SellerSKUIdentifier.php deleted file mode 100644 index b704df170..000000000 --- a/lib/Model/ProductPricingV0/SellerSKUIdentifier.php +++ /dev/null @@ -1,228 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SellerSKUIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SellerSKUIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_id' => 'string', - 'seller_sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_id' => null, - 'seller_sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'MarketplaceId', - 'seller_id' => 'SellerId', - 'seller_sku' => 'SellerSKU' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'seller_id' => 'setSellerId', - 'seller_sku' => 'setSellerSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'seller_id' => 'getSellerId', - 'seller_sku' => 'getSellerSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['seller_id'] === null) { - $invalidProperties[] = "'seller_id' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_id - * - * @return string - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string $seller_id The seller identifier submitted for the operation. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string $seller_sku The seller stock keeping unit (SKU) of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/ShipsFromType.php b/lib/Model/ProductPricingV0/ShipsFromType.php deleted file mode 100644 index b1af92b10..000000000 --- a/lib/Model/ProductPricingV0/ShipsFromType.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipsFromType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipsFromType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'state' => 'string', - 'country' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'state' => null, - 'country' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'state' => 'State', - 'country' => 'Country' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'state' => 'setState', - 'country' => 'setCountry' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'state' => 'getState', - 'country' => 'getCountry' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['state'] = $data['state'] ?? null; - $this->container['country'] = $data['country'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets state - * - * @return string|null - */ - public function getState() - { - return $this->container['state']; - } - - /** - * Sets state - * - * @param string|null $state The state from where the item is shipped. - * - * @return self - */ - public function setState($state) - { - $this->container['state'] = $state; - - return $this; - } - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country The country from where the item is shipped. - * - * @return self - */ - public function setCountry($country) - { - $this->container['country'] = $country; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV0/Summary.php b/lib/Model/ProductPricingV0/Summary.php deleted file mode 100644 index c98118f93..000000000 --- a/lib/Model/ProductPricingV0/Summary.php +++ /dev/null @@ -1,426 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Summary extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Summary'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_offer_count' => 'int', - 'number_of_offers' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]', - 'lowest_prices' => '\SellingPartnerApi\Model\ProductPricingV0\LowestPriceType[]', - 'buy_box_prices' => '\SellingPartnerApi\Model\ProductPricingV0\BuyBoxPriceType[]', - 'list_price' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'competitive_price_threshold' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'suggested_lower_price_plus_shipping' => '\SellingPartnerApi\Model\ProductPricingV0\MoneyType', - 'sales_rankings' => '\SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]', - 'buy_box_eligible_offers' => '\SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]', - 'offers_available_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_offer_count' => 'int32', - 'number_of_offers' => null, - 'lowest_prices' => null, - 'buy_box_prices' => null, - 'list_price' => null, - 'competitive_price_threshold' => null, - 'suggested_lower_price_plus_shipping' => null, - 'sales_rankings' => null, - 'buy_box_eligible_offers' => null, - 'offers_available_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_offer_count' => 'TotalOfferCount', - 'number_of_offers' => 'NumberOfOffers', - 'lowest_prices' => 'LowestPrices', - 'buy_box_prices' => 'BuyBoxPrices', - 'list_price' => 'ListPrice', - 'competitive_price_threshold' => 'CompetitivePriceThreshold', - 'suggested_lower_price_plus_shipping' => 'SuggestedLowerPricePlusShipping', - 'sales_rankings' => 'SalesRankings', - 'buy_box_eligible_offers' => 'BuyBoxEligibleOffers', - 'offers_available_time' => 'OffersAvailableTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_offer_count' => 'setTotalOfferCount', - 'number_of_offers' => 'setNumberOfOffers', - 'lowest_prices' => 'setLowestPrices', - 'buy_box_prices' => 'setBuyBoxPrices', - 'list_price' => 'setListPrice', - 'competitive_price_threshold' => 'setCompetitivePriceThreshold', - 'suggested_lower_price_plus_shipping' => 'setSuggestedLowerPricePlusShipping', - 'sales_rankings' => 'setSalesRankings', - 'buy_box_eligible_offers' => 'setBuyBoxEligibleOffers', - 'offers_available_time' => 'setOffersAvailableTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_offer_count' => 'getTotalOfferCount', - 'number_of_offers' => 'getNumberOfOffers', - 'lowest_prices' => 'getLowestPrices', - 'buy_box_prices' => 'getBuyBoxPrices', - 'list_price' => 'getListPrice', - 'competitive_price_threshold' => 'getCompetitivePriceThreshold', - 'suggested_lower_price_plus_shipping' => 'getSuggestedLowerPricePlusShipping', - 'sales_rankings' => 'getSalesRankings', - 'buy_box_eligible_offers' => 'getBuyBoxEligibleOffers', - 'offers_available_time' => 'getOffersAvailableTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_offer_count'] = $data['total_offer_count'] ?? null; - $this->container['number_of_offers'] = $data['number_of_offers'] ?? null; - $this->container['lowest_prices'] = $data['lowest_prices'] ?? null; - $this->container['buy_box_prices'] = $data['buy_box_prices'] ?? null; - $this->container['list_price'] = $data['list_price'] ?? null; - $this->container['competitive_price_threshold'] = $data['competitive_price_threshold'] ?? null; - $this->container['suggested_lower_price_plus_shipping'] = $data['suggested_lower_price_plus_shipping'] ?? null; - $this->container['sales_rankings'] = $data['sales_rankings'] ?? null; - $this->container['buy_box_eligible_offers'] = $data['buy_box_eligible_offers'] ?? null; - $this->container['offers_available_time'] = $data['offers_available_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['total_offer_count'] === null) { - $invalidProperties[] = "'total_offer_count' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets total_offer_count - * - * @return int - */ - public function getTotalOfferCount() - { - return $this->container['total_offer_count']; - } - - /** - * Sets total_offer_count - * - * @param int $total_offer_count The number of unique offers contained in NumberOfOffers. - * - * @return self - */ - public function setTotalOfferCount($total_offer_count) - { - $this->container['total_offer_count'] = $total_offer_count; - - return $this; - } - /** - * Gets number_of_offers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]|null - */ - public function getNumberOfOffers() - { - return $this->container['number_of_offers']; - } - - /** - * Sets number_of_offers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]|null $number_of_offers number_of_offers - * - * @return self - */ - public function setNumberOfOffers($number_of_offers) - { - $this->container['number_of_offers'] = $number_of_offers; - - return $this; - } - /** - * Gets lowest_prices - * - * @return \SellingPartnerApi\Model\ProductPricingV0\LowestPriceType[]|null - */ - public function getLowestPrices() - { - return $this->container['lowest_prices']; - } - - /** - * Sets lowest_prices - * - * @param \SellingPartnerApi\Model\ProductPricingV0\LowestPriceType[]|null $lowest_prices lowest_prices - * - * @return self - */ - public function setLowestPrices($lowest_prices) - { - $this->container['lowest_prices'] = $lowest_prices; - - return $this; - } - /** - * Gets buy_box_prices - * - * @return \SellingPartnerApi\Model\ProductPricingV0\BuyBoxPriceType[]|null - */ - public function getBuyBoxPrices() - { - return $this->container['buy_box_prices']; - } - - /** - * Sets buy_box_prices - * - * @param \SellingPartnerApi\Model\ProductPricingV0\BuyBoxPriceType[]|null $buy_box_prices buy_box_prices - * - * @return self - */ - public function setBuyBoxPrices($buy_box_prices) - { - $this->container['buy_box_prices'] = $buy_box_prices; - - return $this; - } - /** - * Gets list_price - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getListPrice() - { - return $this->container['list_price']; - } - - /** - * Sets list_price - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $list_price list_price - * - * @return self - */ - public function setListPrice($list_price) - { - $this->container['list_price'] = $list_price; - - return $this; - } - /** - * Gets competitive_price_threshold - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getCompetitivePriceThreshold() - { - return $this->container['competitive_price_threshold']; - } - - /** - * Sets competitive_price_threshold - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $competitive_price_threshold competitive_price_threshold - * - * @return self - */ - public function setCompetitivePriceThreshold($competitive_price_threshold) - { - $this->container['competitive_price_threshold'] = $competitive_price_threshold; - - return $this; - } - /** - * Gets suggested_lower_price_plus_shipping - * - * @return \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null - */ - public function getSuggestedLowerPricePlusShipping() - { - return $this->container['suggested_lower_price_plus_shipping']; - } - - /** - * Sets suggested_lower_price_plus_shipping - * - * @param \SellingPartnerApi\Model\ProductPricingV0\MoneyType|null $suggested_lower_price_plus_shipping suggested_lower_price_plus_shipping - * - * @return self - */ - public function setSuggestedLowerPricePlusShipping($suggested_lower_price_plus_shipping) - { - $this->container['suggested_lower_price_plus_shipping'] = $suggested_lower_price_plus_shipping; - - return $this; - } - /** - * Gets sales_rankings - * - * @return \SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]|null - */ - public function getSalesRankings() - { - return $this->container['sales_rankings']; - } - - /** - * Sets sales_rankings - * - * @param \SellingPartnerApi\Model\ProductPricingV0\SalesRankType[]|null $sales_rankings A list of sales rank information for the item, by category. - * - * @return self - */ - public function setSalesRankings($sales_rankings) - { - $this->container['sales_rankings'] = $sales_rankings; - - return $this; - } - /** - * Gets buy_box_eligible_offers - * - * @return \SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]|null - */ - public function getBuyBoxEligibleOffers() - { - return $this->container['buy_box_eligible_offers']; - } - - /** - * Sets buy_box_eligible_offers - * - * @param \SellingPartnerApi\Model\ProductPricingV0\OfferCountType[]|null $buy_box_eligible_offers buy_box_eligible_offers - * - * @return self - */ - public function setBuyBoxEligibleOffers($buy_box_eligible_offers) - { - $this->container['buy_box_eligible_offers'] = $buy_box_eligible_offers; - - return $this; - } - /** - * Gets offers_available_time - * - * @return string|null - */ - public function getOffersAvailableTime() - { - return $this->container['offers_available_time']; - } - - /** - * Sets offers_available_time - * - * @param string|null $offers_available_time When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing. Must be in ISO 8601 format. - * - * @return self - */ - public function setOffersAvailableTime($offers_available_time) - { - $this->container['offers_available_time'] = $offers_available_time; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/BatchRequest.php b/lib/Model/ProductPricingV20220501/BatchRequest.php deleted file mode 100644 index 4e8f48071..000000000 --- a/lib/Model/ProductPricingV20220501/BatchRequest.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'uri' => 'string', - 'method' => '\SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod', - 'body' => 'map[string,object]', - 'headers' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'uri' => null, - 'method' => null, - 'body' => null, - 'headers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'uri' => 'uri', - 'method' => 'method', - 'body' => 'body', - 'headers' => 'headers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'uri' => 'setUri', - 'method' => 'setMethod', - 'body' => 'setBody', - 'headers' => 'setHeaders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'uri' => 'getUri', - 'method' => 'getMethod', - 'body' => 'getBody', - 'headers' => 'getHeaders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['uri'] = $data['uri'] ?? null; - $this->container['method'] = $data['method'] ?? null; - $this->container['body'] = $data['body'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['uri'] === null) { - $invalidProperties[] = "'uri' can't be null"; - } - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets uri - * - * @return string - */ - public function getUri() - { - return $this->container['uri']; - } - - /** - * Sets uri - * - * @param string $uri The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. - * - * @return self - */ - public function setUri($uri) - { - $this->container['uri'] = $uri; - - return $this; - } - /** - * Gets method - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod $method method - * - * @return self - */ - public function setMethod($method) - { - $this->container['method'] = $method; - - return $this; - } - /** - * Gets body - * - * @return map[string,object]|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param map[string,object]|null $body Additional HTTP body information associated with an individual request within a batch. - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } - /** - * Gets headers - * - * @return map[string,string]|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string]|null $headers A mapping of additional HTTP headers to send/receive for an individual request within a batch. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/BatchResponse.php b/lib/Model/ProductPricingV20220501/BatchResponse.php deleted file mode 100644 index f0692df36..000000000 --- a/lib/Model/ProductPricingV20220501/BatchResponse.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BatchResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BatchResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headers' => 'map[string,string]', - 'status' => '\SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headers' => null, - 'status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'status' => 'getStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headers'] = $data['headers'] ?? null; - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['headers'] === null) { - $invalidProperties[] = "'headers' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headers - * - * @return map[string,string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string] $headers A mapping of additional HTTP headers to send/receive for an individual request within a batch. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/Condition.php b/lib/Model/ProductPricingV20220501/Condition.php deleted file mode 100644 index 0a96cef26..000000000 --- a/lib/Model/ProductPricingV20220501/Condition.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/Error.php b/lib/Model/ProductPricingV20220501/Error.php deleted file mode 100644 index 3d152e15b..000000000 --- a/lib/Model/ProductPricingV20220501/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/Errors.php b/lib/Model/ProductPricingV20220501/Errors.php deleted file mode 100644 index 9df480741..000000000 --- a/lib/Model/ProductPricingV20220501/Errors.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Errors extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Errors'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ProductPricingV20220501\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Error[] $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOffer.php b/lib/Model/ProductPricingV20220501/FeaturedOffer.php deleted file mode 100644 index 36e66a375..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOffer.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOffer extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOffer'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'offer_identifier' => '\SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier', - 'condition' => '\SellingPartnerApi\Model\ProductPricingV20220501\Condition', - 'price' => '\SellingPartnerApi\Model\ProductPricingV20220501\Price' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'offer_identifier' => null, - 'condition' => null, - 'price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'offer_identifier' => 'offerIdentifier', - 'condition' => 'condition', - 'price' => 'price' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'offer_identifier' => 'setOfferIdentifier', - 'condition' => 'setCondition', - 'price' => 'setPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'offer_identifier' => 'getOfferIdentifier', - 'condition' => 'getCondition', - 'price' => 'getPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['offer_identifier'] = $data['offer_identifier'] ?? null; - $this->container['condition'] = $data['condition'] ?? null; - $this->container['price'] = $data['price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['offer_identifier'] === null) { - $invalidProperties[] = "'offer_identifier' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets offer_identifier - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier - */ - public function getOfferIdentifier() - { - return $this->container['offer_identifier']; - } - - /** - * Sets offer_identifier - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier $offer_identifier offer_identifier - * - * @return self - */ - public function setOfferIdentifier($offer_identifier) - { - $this->container['offer_identifier'] = $offer_identifier; - - return $this; - } - /** - * Gets condition - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Condition|null - */ - public function getCondition() - { - return $this->container['condition']; - } - - /** - * Sets condition - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Condition|null $condition condition - * - * @return self - */ - public function setCondition($condition) - { - $this->container['condition'] = $condition; - - return $this; - } - /** - * Gets price - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Price|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Price|null $price price - * - * @return self - */ - public function setPrice($price) - { - $this->container['price'] = $price; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.php deleted file mode 100644 index af7c81427..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPrice.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPrice extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPrice'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType', - 'points' => '\SellingPartnerApi\Model\ProductPricingV20220501\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'listing_price' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'listing_price' => 'listingPrice', - 'points' => 'points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'listing_price' => 'setListingPrice', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'listing_price' => 'getListingPrice', - 'points' => 'getPoints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.php deleted file mode 100644 index b97596beb..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequest.php +++ /dev/null @@ -1,319 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'uri' => 'string', - 'method' => '\SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod', - 'body' => 'map[string,object]', - 'headers' => 'map[string,string]', - 'marketplace_id' => 'string', - 'sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'uri' => null, - 'method' => null, - 'body' => null, - 'headers' => null, - 'marketplace_id' => null, - 'sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'uri' => 'uri', - 'method' => 'method', - 'body' => 'body', - 'headers' => 'headers', - 'marketplace_id' => 'marketplaceId', - 'sku' => 'sku' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'uri' => 'setUri', - 'method' => 'setMethod', - 'body' => 'setBody', - 'headers' => 'setHeaders', - 'marketplace_id' => 'setMarketplaceId', - 'sku' => 'setSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'uri' => 'getUri', - 'method' => 'getMethod', - 'body' => 'getBody', - 'headers' => 'getHeaders', - 'marketplace_id' => 'getMarketplaceId', - 'sku' => 'getSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['uri'] = $data['uri'] ?? null; - $this->container['method'] = $data['method'] ?? null; - $this->container['body'] = $data['body'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['sku'] = $data['sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['uri'] === null) { - $invalidProperties[] = "'uri' can't be null"; - } - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['sku'] === null) { - $invalidProperties[] = "'sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets uri - * - * @return string - */ - public function getUri() - { - return $this->container['uri']; - } - - /** - * Sets uri - * - * @param string $uri The URI associated with an individual request within a batch. For FeaturedOfferExpectedPrice, this should be '/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice'. - * - * @return self - */ - public function setUri($uri) - { - $this->container['uri'] = $uri; - - return $this; - } - /** - * Gets method - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\HttpMethod $method method - * - * @return self - */ - public function setMethod($method) - { - $this->container['method'] = $method; - - return $this; - } - /** - * Gets body - * - * @return map[string,object]|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param map[string,object]|null $body Additional HTTP body information associated with an individual request within a batch. - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } - /** - * Gets headers - * - * @return map[string,string]|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string]|null $headers A mapping of additional HTTP headers to send/receive for an individual request within a batch. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which data is returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets sku - * - * @return string - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string $sku The seller SKU of the item. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.php deleted file mode 100644 index b8edcf9c8..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceRequestParams.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceRequestParams extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceRequestParams'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'sku' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'sku' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'sku' => 'sku' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'sku' => 'setSku' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'sku' => 'getSku' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['sku'] = $data['sku'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['sku'] === null) { - $invalidProperties[] = "'sku' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which data is returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets sku - * - * @return string - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string $sku The seller SKU of the item. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.php deleted file mode 100644 index 06229025e..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponse.php +++ /dev/null @@ -1,257 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'headers' => 'map[string,string]', - 'status' => '\SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine', - 'request' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams', - 'body' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'headers' => null, - 'status' => null, - 'request' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'status' => 'status', - 'request' => 'request', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'status' => 'setStatus', - 'request' => 'setRequest', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'status' => 'getStatus', - 'request' => 'getRequest', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['headers'] = $data['headers'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['request'] = $data['request'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['headers'] === null) { - $invalidProperties[] = "'headers' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - if ($this->container['request'] === null) { - $invalidProperties[] = "'request' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets headers - * - * @return map[string,string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param map[string,string] $headers A mapping of additional HTTP headers to send/receive for an individual request within a batch. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\HttpStatusLine $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody|null $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.php deleted file mode 100644 index 30005acd0..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseAllOf.php +++ /dev/null @@ -1,193 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceResponseAllOf extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceResponse_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'request' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams', - 'body' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'request' => null, - 'body' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'request' => 'request', - 'body' => 'body' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'request' => 'setRequest', - 'body' => 'setBody' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'request' => 'getRequest', - 'body' => 'getBody' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request'] = $data['request'] ?? null; - $this->container['body'] = $data['body'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['request'] === null) { - $invalidProperties[] = "'request' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets request - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams - */ - public function getRequest() - { - return $this->container['request']; - } - - /** - * Sets request - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequestParams $request request - * - * @return self - */ - public function setRequest($request) - { - $this->container['request'] = $request; - - return $this; - } - /** - * Gets body - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody|null - */ - public function getBody() - { - return $this->container['body']; - } - - /** - * Sets body - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponseBody|null $body body - * - * @return self - */ - public function setBody($body) - { - $this->container['body'] = $body; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.php deleted file mode 100644 index 9574ed407..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResponseBody.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceResponseBody extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceResponseBody'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'offer_identifier' => '\SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier', - 'featured_offer_expected_price_results' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResult[]', - 'errors' => '\SellingPartnerApi\Model\ProductPricingV20220501\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'offer_identifier' => null, - 'featured_offer_expected_price_results' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'offer_identifier' => 'offerIdentifier', - 'featured_offer_expected_price_results' => 'featuredOfferExpectedPriceResults', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'offer_identifier' => 'setOfferIdentifier', - 'featured_offer_expected_price_results' => 'setFeaturedOfferExpectedPriceResults', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'offer_identifier' => 'getOfferIdentifier', - 'featured_offer_expected_price_results' => 'getFeaturedOfferExpectedPriceResults', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['offer_identifier'] = $data['offer_identifier'] ?? null; - $this->container['featured_offer_expected_price_results'] = $data['featured_offer_expected_price_results'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['offer_identifier'] === null) { - $invalidProperties[] = "'offer_identifier' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets offer_identifier - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier - */ - public function getOfferIdentifier() - { - return $this->container['offer_identifier']; - } - - /** - * Sets offer_identifier - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\OfferIdentifier $offer_identifier offer_identifier - * - * @return self - */ - public function setOfferIdentifier($offer_identifier) - { - $this->container['offer_identifier'] = $offer_identifier; - - return $this; - } - /** - * Gets featured_offer_expected_price_results - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResult[]|null - */ - public function getFeaturedOfferExpectedPriceResults() - { - return $this->container['featured_offer_expected_price_results']; - } - - /** - * Sets featured_offer_expected_price_results - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResult[]|null $featured_offer_expected_price_results A list of featured offer expected price results for the requested offer. - * - * @return self - */ - public function setFeaturedOfferExpectedPriceResults($featured_offer_expected_price_results) - { - $this->container['featured_offer_expected_price_results'] = $featured_offer_expected_price_results; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.php b/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.php deleted file mode 100644 index da6a2d043..000000000 --- a/lib/Model/ProductPricingV20220501/FeaturedOfferExpectedPriceResult.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeaturedOfferExpectedPriceResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeaturedOfferExpectedPriceResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'featured_offer_expected_price' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPrice', - 'result_status' => 'string', - 'competing_featured_offer' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer', - 'current_featured_offer' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'featured_offer_expected_price' => null, - 'result_status' => null, - 'competing_featured_offer' => null, - 'current_featured_offer' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'featured_offer_expected_price' => 'featuredOfferExpectedPrice', - 'result_status' => 'resultStatus', - 'competing_featured_offer' => 'competingFeaturedOffer', - 'current_featured_offer' => 'currentFeaturedOffer' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'featured_offer_expected_price' => 'setFeaturedOfferExpectedPrice', - 'result_status' => 'setResultStatus', - 'competing_featured_offer' => 'setCompetingFeaturedOffer', - 'current_featured_offer' => 'setCurrentFeaturedOffer' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'featured_offer_expected_price' => 'getFeaturedOfferExpectedPrice', - 'result_status' => 'getResultStatus', - 'competing_featured_offer' => 'getCompetingFeaturedOffer', - 'current_featured_offer' => 'getCurrentFeaturedOffer' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['featured_offer_expected_price'] = $data['featured_offer_expected_price'] ?? null; - $this->container['result_status'] = $data['result_status'] ?? null; - $this->container['competing_featured_offer'] = $data['competing_featured_offer'] ?? null; - $this->container['current_featured_offer'] = $data['current_featured_offer'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['result_status'] === null) { - $invalidProperties[] = "'result_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets featured_offer_expected_price - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPrice|null - */ - public function getFeaturedOfferExpectedPrice() - { - return $this->container['featured_offer_expected_price']; - } - - /** - * Sets featured_offer_expected_price - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPrice|null $featured_offer_expected_price featured_offer_expected_price - * - * @return self - */ - public function setFeaturedOfferExpectedPrice($featured_offer_expected_price) - { - $this->container['featured_offer_expected_price'] = $featured_offer_expected_price; - - return $this; - } - /** - * Gets result_status - * - * @return string - */ - public function getResultStatus() - { - return $this->container['result_status']; - } - - /** - * Sets result_status - * - * @param string $result_status The status of the featured offer expected price computation. Possible values include VALID_FOEP, NO_COMPETING_OFFER, OFFER_NOT_ELIGIBLE, OFFER_NOT_FOUND. - * - * @return self - */ - public function setResultStatus($result_status) - { - $this->container['result_status'] = $result_status; - - return $this; - } - /** - * Gets competing_featured_offer - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer|null - */ - public function getCompetingFeaturedOffer() - { - return $this->container['competing_featured_offer']; - } - - /** - * Sets competing_featured_offer - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer|null $competing_featured_offer competing_featured_offer - * - * @return self - */ - public function setCompetingFeaturedOffer($competing_featured_offer) - { - $this->container['competing_featured_offer'] = $competing_featured_offer; - - return $this; - } - /** - * Gets current_featured_offer - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer|null - */ - public function getCurrentFeaturedOffer() - { - return $this->container['current_featured_offer']; - } - - /** - * Sets current_featured_offer - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOffer|null $current_featured_offer current_featured_offer - * - * @return self - */ - public function setCurrentFeaturedOffer($current_featured_offer) - { - $this->container['current_featured_offer'] = $current_featured_offer; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/FulfillmentType.php b/lib/Model/ProductPricingV20220501/FulfillmentType.php deleted file mode 100644 index 1df7c756f..000000000 --- a/lib/Model/ProductPricingV20220501/FulfillmentType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.php b/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.php deleted file mode 100644 index 7655ef2b7..000000000 --- a/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchRequest.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeaturedOfferExpectedPriceBatchRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeaturedOfferExpectedPriceBatchRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'requests' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'requests' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'requests' => 'requests' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'requests' => 'setRequests' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'requests' => 'getRequests' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['requests'] = $data['requests'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['requests']) && (count($this->container['requests']) < 1)) { - $invalidProperties[] = "invalid value for 'requests', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets requests - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequest[]|null - */ - public function getRequests() - { - return $this->container['requests']; - } - - /** - * Sets requests - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceRequest[]|null $requests A batched list of featured offer expected price requests. - * - * @return self - */ - public function setRequests($requests) - { - - - if (!is_null($requests) && (count($requests) < 1)) { - throw new \InvalidArgumentException('invalid length for $requests when calling GetFeaturedOfferExpectedPriceBatchRequest., number of items must be greater than or equal to 1.'); - } - $this->container['requests'] = $requests; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.php b/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.php deleted file mode 100644 index 64e47bbd1..000000000 --- a/lib/Model/ProductPricingV20220501/GetFeaturedOfferExpectedPriceBatchResponse.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetFeaturedOfferExpectedPriceBatchResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetFeaturedOfferExpectedPriceBatchResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'responses' => '\SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'responses' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'responses' => 'responses' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'responses' => 'setResponses' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'responses' => 'getResponses' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['responses'] = $data['responses'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['responses']) && (count($this->container['responses']) < 1)) { - $invalidProperties[] = "invalid value for 'responses', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets responses - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponse[]|null - */ - public function getResponses() - { - return $this->container['responses']; - } - - /** - * Sets responses - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FeaturedOfferExpectedPriceResponse[]|null $responses A batched list of featured offer expected price responses. - * - * @return self - */ - public function setResponses($responses) - { - - - if (!is_null($responses) && (count($responses) < 1)) { - throw new \InvalidArgumentException('invalid length for $responses when calling GetFeaturedOfferExpectedPriceBatchResponse., number of items must be greater than or equal to 1.'); - } - $this->container['responses'] = $responses; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/HttpMethod.php b/lib/Model/ProductPricingV20220501/HttpMethod.php deleted file mode 100644 index a00299c61..000000000 --- a/lib/Model/ProductPricingV20220501/HttpMethod.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/HttpStatusLine.php b/lib/Model/ProductPricingV20220501/HttpStatusLine.php deleted file mode 100644 index 4caa86e25..000000000 --- a/lib/Model/ProductPricingV20220501/HttpStatusLine.php +++ /dev/null @@ -1,207 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class HttpStatusLine extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'HttpStatusLine'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status_code' => 'int', - 'reason_phrase' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status_code' => null, - 'reason_phrase' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status_code' => 'statusCode', - 'reason_phrase' => 'reasonPhrase' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status_code' => 'setStatusCode', - 'reason_phrase' => 'setReasonPhrase' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status_code' => 'getStatusCode', - 'reason_phrase' => 'getReasonPhrase' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status_code'] = $data['status_code'] ?? null; - $this->container['reason_phrase'] = $data['reason_phrase'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['status_code']) && ($this->container['status_code'] > 599)) { - $invalidProperties[] = "invalid value for 'status_code', must be smaller than or equal to 599."; - } - - if (!is_null($this->container['status_code']) && ($this->container['status_code'] < 100)) { - $invalidProperties[] = "invalid value for 'status_code', must be bigger than or equal to 100."; - } - - return $invalidProperties; - } - - - /** - * Gets status_code - * - * @return int|null - */ - public function getStatusCode() - { - return $this->container['status_code']; - } - - /** - * Sets status_code - * - * @param int|null $status_code The HTTP response Status-Code. - * - * @return self - */ - public function setStatusCode($status_code) - { - - if (!is_null($status_code) && ($status_code > 599)) { - throw new \InvalidArgumentException('invalid value for $status_code when calling HttpStatusLine., must be smaller than or equal to 599.'); - } - if (!is_null($status_code) && ($status_code < 100)) { - throw new \InvalidArgumentException('invalid value for $status_code when calling HttpStatusLine., must be bigger than or equal to 100.'); - } - - $this->container['status_code'] = $status_code; - - return $this; - } - /** - * Gets reason_phrase - * - * @return string|null - */ - public function getReasonPhrase() - { - return $this->container['reason_phrase']; - } - - /** - * Sets reason_phrase - * - * @param string|null $reason_phrase The HTTP response Reason-Phase. - * - * @return self - */ - public function setReasonPhrase($reason_phrase) - { - $this->container['reason_phrase'] = $reason_phrase; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/MoneyType.php b/lib/Model/ProductPricingV20220501/MoneyType.php deleted file mode 100644 index c32992d45..000000000 --- a/lib/Model/ProductPricingV20220501/MoneyType.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MoneyType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MoneyType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return float|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param float|null $amount The monetary value. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/OfferIdentifier.php b/lib/Model/ProductPricingV20220501/OfferIdentifier.php deleted file mode 100644 index b69d7862d..000000000 --- a/lib/Model/ProductPricingV20220501/OfferIdentifier.php +++ /dev/null @@ -1,284 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferIdentifier extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferIdentifier'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_id' => 'string', - 'sku' => 'string', - 'asin' => 'string', - 'fulfillment_type' => '\SellingPartnerApi\Model\ProductPricingV20220501\FulfillmentType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_id' => null, - 'sku' => null, - 'asin' => null, - 'fulfillment_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'seller_id' => 'sellerId', - 'sku' => 'sku', - 'asin' => 'asin', - 'fulfillment_type' => 'fulfillmentType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'seller_id' => 'setSellerId', - 'sku' => 'setSku', - 'asin' => 'setAsin', - 'fulfillment_type' => 'setFulfillmentType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'seller_id' => 'getSellerId', - 'sku' => 'getSku', - 'asin' => 'getAsin', - 'fulfillment_type' => 'getFulfillmentType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['sku'] = $data['sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['fulfillment_type'] = $data['fulfillment_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which data is returned. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier for the offer. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets sku - * - * @return string|null - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string|null $sku The seller stock keeping unit (SKU) of the item. This will only be present for the target offer, which belongs to the requesting seller. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets fulfillment_type - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\FulfillmentType|null - */ - public function getFulfillmentType() - { - return $this->container['fulfillment_type']; - } - - /** - * Sets fulfillment_type - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\FulfillmentType|null $fulfillment_type fulfillment_type - * - * @return self - */ - public function setFulfillmentType($fulfillment_type) - { - $this->container['fulfillment_type'] = $fulfillment_type; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/Points.php b/lib/Model/ProductPricingV20220501/Points.php deleted file mode 100644 index 3a5072e6c..000000000 --- a/lib/Model/ProductPricingV20220501/Points.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Points extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Points'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'points_number' => 'int', - 'points_monetary_value' => '\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'points_number' => 'int32', - 'points_monetary_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'points_number' => 'pointsNumber', - 'points_monetary_value' => 'pointsMonetaryValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'points_number' => 'setPointsNumber', - 'points_monetary_value' => 'setPointsMonetaryValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'points_number' => 'getPointsNumber', - 'points_monetary_value' => 'getPointsMonetaryValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['points_number'] = $data['points_number'] ?? null; - $this->container['points_monetary_value'] = $data['points_monetary_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets points_number - * - * @return int|null - */ - public function getPointsNumber() - { - return $this->container['points_number']; - } - - /** - * Sets points_number - * - * @param int|null $points_number The number of points. - * - * @return self - */ - public function setPointsNumber($points_number) - { - $this->container['points_number'] = $points_number; - - return $this; - } - /** - * Gets points_monetary_value - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType|null - */ - public function getPointsMonetaryValue() - { - return $this->container['points_monetary_value']; - } - - /** - * Sets points_monetary_value - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType|null $points_monetary_value points_monetary_value - * - * @return self - */ - public function setPointsMonetaryValue($points_monetary_value) - { - $this->container['points_monetary_value'] = $points_monetary_value; - - return $this; - } -} - - diff --git a/lib/Model/ProductPricingV20220501/Price.php b/lib/Model/ProductPricingV20220501/Price.php deleted file mode 100644 index 20befbd80..000000000 --- a/lib/Model/ProductPricingV20220501/Price.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Price extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Price'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'listing_price' => '\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType', - 'shipping_price' => '\SellingPartnerApi\Model\ProductPricingV20220501\MoneyType', - 'points' => '\SellingPartnerApi\Model\ProductPricingV20220501\Points' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'listing_price' => null, - 'shipping_price' => null, - 'points' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'listing_price' => 'listingPrice', - 'shipping_price' => 'shippingPrice', - 'points' => 'points' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'listing_price' => 'setListingPrice', - 'shipping_price' => 'setShippingPrice', - 'points' => 'setPoints' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'listing_price' => 'getListingPrice', - 'shipping_price' => 'getShippingPrice', - 'points' => 'getPoints' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['listing_price'] = $data['listing_price'] ?? null; - $this->container['shipping_price'] = $data['shipping_price'] ?? null; - $this->container['points'] = $data['points'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['listing_price'] === null) { - $invalidProperties[] = "'listing_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets listing_price - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType - */ - public function getListingPrice() - { - return $this->container['listing_price']; - } - - /** - * Sets listing_price - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType $listing_price listing_price - * - * @return self - */ - public function setListingPrice($listing_price) - { - $this->container['listing_price'] = $listing_price; - - return $this; - } - /** - * Gets shipping_price - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType|null - */ - public function getShippingPrice() - { - return $this->container['shipping_price']; - } - - /** - * Sets shipping_price - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\MoneyType|null $shipping_price shipping_price - * - * @return self - */ - public function setShippingPrice($shipping_price) - { - $this->container['shipping_price'] = $shipping_price; - - return $this; - } - /** - * Gets points - * - * @return \SellingPartnerApi\Model\ProductPricingV20220501\Points|null - */ - public function getPoints() - { - return $this->container['points']; - } - - /** - * Sets points - * - * @param \SellingPartnerApi\Model\ProductPricingV20220501\Points|null $points points - * - * @return self - */ - public function setPoints($points) - { - $this->container['points'] = $points; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/Error.php b/lib/Model/ProductTypeDefinitionsV20200901/Error.php deleted file mode 100644 index 0ffdbf8ea..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/ErrorList.php b/lib/Model/ProductTypeDefinitionsV20200901/ErrorList.php deleted file mode 100644 index 4ac5a0033..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/ProductType.php b/lib/Model/ProductTypeDefinitionsV20200901/ProductType.php deleted file mode 100644 index c26f81bfe..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/ProductType.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'marketplace_ids' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'marketplace_ids' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'marketplace_ids' => 'marketplaceIds' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'marketplace_ids' => 'setMarketplaceIds' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'marketplace_ids' => 'getMarketplaceIds' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['marketplace_ids'] === null) { - $invalidProperties[] = "'marketplace_ids' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the Amazon product type. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[] - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[] $marketplace_ids The Amazon marketplace identifiers for which the product type definition is available. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.php b/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.php deleted file mode 100644 index 5d65949c9..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeDefinition.php +++ /dev/null @@ -1,533 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductTypeDefinition extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductTypeDefinition'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'meta_schema' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink', - 'schema' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink', - 'requirements' => 'string', - 'requirements_enforced' => 'string', - 'property_groups' => 'map[string,\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\PropertyGroup]', - 'locale' => 'string', - 'marketplace_ids' => 'string[]', - 'product_type' => 'string', - 'product_type_version' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeVersion' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'meta_schema' => null, - 'schema' => null, - 'requirements' => null, - 'requirements_enforced' => null, - 'property_groups' => null, - 'locale' => null, - 'marketplace_ids' => null, - 'product_type' => null, - 'product_type_version' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'meta_schema' => 'metaSchema', - 'schema' => 'schema', - 'requirements' => 'requirements', - 'requirements_enforced' => 'requirementsEnforced', - 'property_groups' => 'propertyGroups', - 'locale' => 'locale', - 'marketplace_ids' => 'marketplaceIds', - 'product_type' => 'productType', - 'product_type_version' => 'productTypeVersion' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'meta_schema' => 'setMetaSchema', - 'schema' => 'setSchema', - 'requirements' => 'setRequirements', - 'requirements_enforced' => 'setRequirementsEnforced', - 'property_groups' => 'setPropertyGroups', - 'locale' => 'setLocale', - 'marketplace_ids' => 'setMarketplaceIds', - 'product_type' => 'setProductType', - 'product_type_version' => 'setProductTypeVersion' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'meta_schema' => 'getMetaSchema', - 'schema' => 'getSchema', - 'requirements' => 'getRequirements', - 'requirements_enforced' => 'getRequirementsEnforced', - 'property_groups' => 'getPropertyGroups', - 'locale' => 'getLocale', - 'marketplace_ids' => 'getMarketplaceIds', - 'product_type' => 'getProductType', - 'product_type_version' => 'getProductTypeVersion' - ]; - - - - const REQUIREMENTS_LISTING = 'LISTING'; - const REQUIREMENTS_LISTING_PRODUCT_ONLY = 'LISTING_PRODUCT_ONLY'; - const REQUIREMENTS_LISTING_OFFER_ONLY = 'LISTING_OFFER_ONLY'; - - - const REQUIREMENTS_ENFORCED_ENFORCED = 'ENFORCED'; - const REQUIREMENTS_ENFORCED_NOT_ENFORCED = 'NOT_ENFORCED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRequirementsAllowableValues() - { - $baseVals = [ - self::REQUIREMENTS_LISTING, - self::REQUIREMENTS_LISTING_PRODUCT_ONLY, - self::REQUIREMENTS_LISTING_OFFER_ONLY, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRequirementsEnforcedAllowableValues() - { - $baseVals = [ - self::REQUIREMENTS_ENFORCED_ENFORCED, - self::REQUIREMENTS_ENFORCED_NOT_ENFORCED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['meta_schema'] = $data['meta_schema'] ?? null; - $this->container['schema'] = $data['schema'] ?? null; - $this->container['requirements'] = $data['requirements'] ?? null; - $this->container['requirements_enforced'] = $data['requirements_enforced'] ?? null; - $this->container['property_groups'] = $data['property_groups'] ?? null; - $this->container['locale'] = $data['locale'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['product_type_version'] = $data['product_type_version'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['schema'] === null) { - $invalidProperties[] = "'schema' can't be null"; - } - if ($this->container['requirements'] === null) { - $invalidProperties[] = "'requirements' can't be null"; - } - $allowedValues = $this->getRequirementsAllowableValues(); - if ( - !is_null($this->container['requirements']) && - !in_array(strtoupper($this->container['requirements']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'requirements', must be one of '%s'", - $this->container['requirements'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['requirements_enforced'] === null) { - $invalidProperties[] = "'requirements_enforced' can't be null"; - } - $allowedValues = $this->getRequirementsEnforcedAllowableValues(); - if ( - !is_null($this->container['requirements_enforced']) && - !in_array(strtoupper($this->container['requirements_enforced']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'requirements_enforced', must be one of '%s'", - $this->container['requirements_enforced'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['property_groups'] === null) { - $invalidProperties[] = "'property_groups' can't be null"; - } - if ($this->container['locale'] === null) { - $invalidProperties[] = "'locale' can't be null"; - } - if ($this->container['marketplace_ids'] === null) { - $invalidProperties[] = "'marketplace_ids' can't be null"; - } - if ($this->container['product_type'] === null) { - $invalidProperties[] = "'product_type' can't be null"; - } - if ($this->container['product_type_version'] === null) { - $invalidProperties[] = "'product_type_version' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets meta_schema - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink|null - */ - public function getMetaSchema() - { - return $this->container['meta_schema']; - } - - /** - * Sets meta_schema - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink|null $meta_schema meta_schema - * - * @return self - */ - public function setMetaSchema($meta_schema) - { - $this->container['meta_schema'] = $meta_schema; - - return $this; - } - /** - * Gets schema - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink - */ - public function getSchema() - { - return $this->container['schema']; - } - - /** - * Sets schema - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLink $schema schema - * - * @return self - */ - public function setSchema($schema) - { - $this->container['schema'] = $schema; - - return $this; - } - /** - * Gets requirements - * - * @return string - */ - public function getRequirements() - { - return $this->container['requirements']; - } - - /** - * Sets requirements - * - * @param string $requirements Name of the requirements set represented in this product type definition. - * - * @return self - */ - public function setRequirements($requirements) - { - $allowedValues = $this->getRequirementsAllowableValues(); - if (!in_array(strtoupper($requirements), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'requirements', must be one of '%s'", - $requirements, - implode("', '", $allowedValues) - ) - ); - } - $this->container['requirements'] = $requirements; - - return $this; - } - /** - * Gets requirements_enforced - * - * @return string - */ - public function getRequirementsEnforced() - { - return $this->container['requirements_enforced']; - } - - /** - * Sets requirements_enforced - * - * @param string $requirements_enforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates). - * - * @return self - */ - public function setRequirementsEnforced($requirements_enforced) - { - $allowedValues = $this->getRequirementsEnforcedAllowableValues(); - if (!in_array(strtoupper($requirements_enforced), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'requirements_enforced', must be one of '%s'", - $requirements_enforced, - implode("', '", $allowedValues) - ) - ); - } - $this->container['requirements_enforced'] = $requirements_enforced; - - return $this; - } - /** - * Gets property_groups - * - * @return map[string,\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\PropertyGroup] - */ - public function getPropertyGroups() - { - return $this->container['property_groups']; - } - - /** - * Sets property_groups - * - * @param map[string,\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\PropertyGroup] $property_groups Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes. - * - * @return self - */ - public function setPropertyGroups($property_groups) - { - $this->container['property_groups'] = $property_groups; - - return $this; - } - /** - * Gets locale - * - * @return string - */ - public function getLocale() - { - return $this->container['locale']; - } - - /** - * Sets locale - * - * @param string $locale Locale of the display elements contained in the product type definition. - * - * @return self - */ - public function setLocale($locale) - { - $this->container['locale'] = $locale; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[] - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[] $marketplace_ids Amazon marketplace identifiers for which the product type definition is applicable. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets product_type - * - * @return string - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string $product_type The name of the Amazon product type that this product type definition applies to. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets product_type_version - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeVersion - */ - public function getProductTypeVersion() - { - return $this->container['product_type_version']; - } - - /** - * Sets product_type_version - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductTypeVersion $product_type_version product_type_version - * - * @return self - */ - public function setProductTypeVersion($product_type_version) - { - $this->container['product_type_version'] = $product_type_version; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeList.php b/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeList.php deleted file mode 100644 index 5c347a09d..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductTypeList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductTypeList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'product_types' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'product_types' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'product_types' => 'productTypes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'product_types' => 'setProductTypes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'product_types' => 'getProductTypes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['product_types'] = $data['product_types'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['product_types'] === null) { - $invalidProperties[] = "'product_types' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets product_types - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductType[] - */ - public function getProductTypes() - { - return $this->container['product_types']; - } - - /** - * Sets product_types - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\ProductType[] $product_types product_types - * - * @return self - */ - public function setProductTypes($product_types) - { - $this->container['product_types'] = $product_types; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.php b/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.php deleted file mode 100644 index d18dc399d..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/ProductTypeVersion.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ProductTypeVersion extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ProductTypeVersion'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'version' => 'string', - 'latest' => 'bool', - 'release_candidate' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'version' => null, - 'latest' => null, - 'release_candidate' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'version' => 'version', - 'latest' => 'latest', - 'release_candidate' => 'releaseCandidate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'version' => 'setVersion', - 'latest' => 'setLatest', - 'release_candidate' => 'setReleaseCandidate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'version' => 'getVersion', - 'latest' => 'getLatest', - 'release_candidate' => 'getReleaseCandidate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['version'] = $data['version'] ?? null; - $this->container['latest'] = $data['latest'] ?? null; - $this->container['release_candidate'] = $data['release_candidate'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; - } - if ($this->container['latest'] === null) { - $invalidProperties[] = "'latest' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets version - * - * @return string - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param string $version Version identifier. - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } - /** - * Gets latest - * - * @return bool - */ - public function getLatest() - { - return $this->container['latest']; - } - - /** - * Sets latest - * - * @param bool $latest When true, the version indicated by the version identifier is the latest available for the Amazon product type. - * - * @return self - */ - public function setLatest($latest) - { - $this->container['latest'] = $latest; - - return $this; - } - /** - * Gets release_candidate - * - * @return bool|null - */ - public function getReleaseCandidate() - { - return $this->container['release_candidate']; - } - - /** - * Sets release_candidate - * - * @param bool|null $release_candidate When true, the version indicated by the version identifier is the prerelease (release candidate) for the Amazon product type. - * - * @return self - */ - public function setReleaseCandidate($release_candidate) - { - $this->container['release_candidate'] = $release_candidate; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/PropertyGroup.php b/lib/Model/ProductTypeDefinitionsV20200901/PropertyGroup.php deleted file mode 100644 index b7bba2028..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/PropertyGroup.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PropertyGroup extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PropertyGroup'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'title' => 'string', - 'description' => 'string', - 'property_names' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'title' => null, - 'description' => null, - 'property_names' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'title' => 'title', - 'description' => 'description', - 'property_names' => 'propertyNames' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'title' => 'setTitle', - 'description' => 'setDescription', - 'property_names' => 'setPropertyNames' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'title' => 'getTitle', - 'description' => 'getDescription', - 'property_names' => 'getPropertyNames' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['title'] = $data['title'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['property_names'] = $data['property_names'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The display label of the property group. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description The description of the property group. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets property_names - * - * @return string[]|null - */ - public function getPropertyNames() - { - return $this->container['property_names']; - } - - /** - * Sets property_names - * - * @param string[]|null $property_names The names of the schema properties for the property group. - * - * @return self - */ - public function setPropertyNames($property_names) - { - $this->container['property_names'] = $property_names; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/SchemaLink.php b/lib/Model/ProductTypeDefinitionsV20200901/SchemaLink.php deleted file mode 100644 index ce5ba8f9a..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/SchemaLink.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SchemaLink extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SchemaLink'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'link' => '\SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLinkLink', - 'checksum' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'link' => null, - 'checksum' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'link' => 'link', - 'checksum' => 'checksum' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'link' => 'setLink', - 'checksum' => 'setChecksum' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'link' => 'getLink', - 'checksum' => 'getChecksum' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['link'] = $data['link'] ?? null; - $this->container['checksum'] = $data['checksum'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['link'] === null) { - $invalidProperties[] = "'link' can't be null"; - } - if ($this->container['checksum'] === null) { - $invalidProperties[] = "'checksum' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets link - * - * @return \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLinkLink - */ - public function getLink() - { - return $this->container['link']; - } - - /** - * Sets link - * - * @param \SellingPartnerApi\Model\ProductTypeDefinitionsV20200901\SchemaLinkLink $link link - * - * @return self - */ - public function setLink($link) - { - $this->container['link'] = $link; - - return $this; - } - /** - * Gets checksum - * - * @return string - */ - public function getChecksum() - { - return $this->container['checksum']; - } - - /** - * Sets checksum - * - * @param string $checksum Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching. - * - * @return self - */ - public function setChecksum($checksum) - { - $this->container['checksum'] = $checksum; - - return $this; - } -} - - diff --git a/lib/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.php b/lib/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.php deleted file mode 100644 index 17299ab31..000000000 --- a/lib/Model/ProductTypeDefinitionsV20200901/SchemaLinkLink.php +++ /dev/null @@ -1,239 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SchemaLinkLink extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SchemaLink_link'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource' => 'string', - 'verb' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource' => null, - 'verb' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource' => 'resource', - 'verb' => 'verb' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource' => 'setResource', - 'verb' => 'setVerb' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource' => 'getResource', - 'verb' => 'getVerb' - ]; - - - - const VERB_GET = 'GET'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVerbAllowableValues() - { - $baseVals = [ - self::VERB_GET, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource'] = $data['resource'] ?? null; - $this->container['verb'] = $data['verb'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resource'] === null) { - $invalidProperties[] = "'resource' can't be null"; - } - if ($this->container['verb'] === null) { - $invalidProperties[] = "'verb' can't be null"; - } - $allowedValues = $this->getVerbAllowableValues(); - if ( - !is_null($this->container['verb']) && - !in_array(strtoupper($this->container['verb']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'verb', must be one of '%s'", - $this->container['verb'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets resource - * - * @return string - */ - public function getResource() - { - return $this->container['resource']; - } - - /** - * Sets resource - * - * @param string $resource URI resource for the link. - * - * @return self - */ - public function setResource($resource) - { - $this->container['resource'] = $resource; - - return $this; - } - /** - * Gets verb - * - * @return string - */ - public function getVerb() - { - return $this->container['verb']; - } - - /** - * Sets verb - * - * @param string $verb HTTP method for the link operation. - * - * @return self - */ - public function setVerb($verb) - { - $allowedValues = $this->getVerbAllowableValues(); - if (!in_array(strtoupper($verb), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'verb', must be one of '%s'", - $verb, - implode("', '", $allowedValues) - ) - ); - } - $this->container['verb'] = $verb; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/AggregationFrequency.php b/lib/Model/ReplenishmentV20221107/AggregationFrequency.php deleted file mode 100644 index e80baf87a..000000000 --- a/lib/Model/ReplenishmentV20221107/AggregationFrequency.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/AutoEnrollmentPreference.php b/lib/Model/ReplenishmentV20221107/AutoEnrollmentPreference.php deleted file mode 100644 index e0f77542d..000000000 --- a/lib/Model/ReplenishmentV20221107/AutoEnrollmentPreference.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/DiscountFunding.php b/lib/Model/ReplenishmentV20221107/DiscountFunding.php deleted file mode 100644 index c82d8c728..000000000 --- a/lib/Model/ReplenishmentV20221107/DiscountFunding.php +++ /dev/null @@ -1,177 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DiscountFunding extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DiscountFunding'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'percentage' => 'float[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'percentage' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'percentage' => 'percentage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'percentage' => 'setPercentage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'percentage' => 'getPercentage' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['percentage'] = $data['percentage'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['percentage']) && (count($this->container['percentage']) > 10)) { - $invalidProperties[] = "invalid value for 'percentage', number of items must be less than or equal to 10."; - } - - if (!is_null($this->container['percentage']) && (count($this->container['percentage']) < 1)) { - $invalidProperties[] = "invalid value for 'percentage', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets percentage - * - * @return float[]|null - */ - public function getPercentage() - { - return $this->container['percentage']; - } - - /** - * Sets percentage - * - * @param float[]|null $percentage Filters the results to only include offers with the percentage specified. - * - * @return self - */ - public function setPercentage($percentage) - { - - if (!is_null($percentage) && (count($percentage) > 10)) { - throw new \InvalidArgumentException('invalid value for $percentage when calling DiscountFunding., number of items must be less than or equal to 10.'); - } - if (!is_null($percentage) && (count($percentage) < 1)) { - throw new \InvalidArgumentException('invalid length for $percentage when calling DiscountFunding., number of items must be greater than or equal to 1.'); - } - $this->container['percentage'] = $percentage; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/EligibilityStatus.php b/lib/Model/ReplenishmentV20221107/EligibilityStatus.php deleted file mode 100644 index 8c0dec13a..000000000 --- a/lib/Model/ReplenishmentV20221107/EligibilityStatus.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/EnrollmentMethod.php b/lib/Model/ReplenishmentV20221107/EnrollmentMethod.php deleted file mode 100644 index 916b410ce..000000000 --- a/lib/Model/ReplenishmentV20221107/EnrollmentMethod.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/Error.php b/lib/Model/ReplenishmentV20221107/Error.php deleted file mode 100644 index 7311e792e..000000000 --- a/lib/Model/ReplenishmentV20221107/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ErrorList.php b/lib/Model/ReplenishmentV20221107/ErrorList.php deleted file mode 100644 index 822fefd56..000000000 --- a/lib/Model/ReplenishmentV20221107/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ReplenishmentV20221107\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.php b/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.php deleted file mode 100644 index ea5385c97..000000000 --- a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsRequest.php +++ /dev/null @@ -1,337 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSellingPartnerMetricsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSellingPartnerMetricsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'aggregation_frequency' => '\SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency', - 'time_interval' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval', - 'metrics' => '\SellingPartnerApi\Model\ReplenishmentV20221107\Metric[]', - 'time_period_type' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType', - 'marketplace_id' => 'string', - 'program_types' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'aggregation_frequency' => null, - 'time_interval' => null, - 'metrics' => null, - 'time_period_type' => null, - 'marketplace_id' => null, - 'program_types' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'aggregation_frequency' => 'aggregationFrequency', - 'time_interval' => 'timeInterval', - 'metrics' => 'metrics', - 'time_period_type' => 'timePeriodType', - 'marketplace_id' => 'marketplaceId', - 'program_types' => 'programTypes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'aggregation_frequency' => 'setAggregationFrequency', - 'time_interval' => 'setTimeInterval', - 'metrics' => 'setMetrics', - 'time_period_type' => 'setTimePeriodType', - 'marketplace_id' => 'setMarketplaceId', - 'program_types' => 'setProgramTypes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'aggregation_frequency' => 'getAggregationFrequency', - 'time_interval' => 'getTimeInterval', - 'metrics' => 'getMetrics', - 'time_period_type' => 'getTimePeriodType', - 'marketplace_id' => 'getMarketplaceId', - 'program_types' => 'getProgramTypes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['aggregation_frequency'] = $data['aggregation_frequency'] ?? null; - $this->container['time_interval'] = $data['time_interval'] ?? null; - $this->container['metrics'] = $data['metrics'] ?? null; - $this->container['time_period_type'] = $data['time_period_type'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['program_types'] = $data['program_types'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['time_interval'] === null) { - $invalidProperties[] = "'time_interval' can't be null"; - } - if (!is_null($this->container['metrics']) && (count($this->container['metrics']) < 1)) { - $invalidProperties[] = "invalid value for 'metrics', number of items must be greater than or equal to 1."; - } - - if ($this->container['time_period_type'] === null) { - $invalidProperties[] = "'time_period_type' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['program_types'] === null) { - $invalidProperties[] = "'program_types' can't be null"; - } - if ((count($this->container['program_types']) < 1)) { - $invalidProperties[] = "invalid value for 'program_types', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets aggregation_frequency - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency|null - */ - public function getAggregationFrequency() - { - return $this->container['aggregation_frequency']; - } - - /** - * Sets aggregation_frequency - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency|null $aggregation_frequency aggregation_frequency - * - * @return self - */ - public function setAggregationFrequency($aggregation_frequency) - { - $this->container['aggregation_frequency'] = $aggregation_frequency; - - return $this; - } - /** - * Gets time_interval - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval - */ - public function getTimeInterval() - { - return $this->container['time_interval']; - } - - /** - * Sets time_interval - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval $time_interval time_interval - * - * @return self - */ - public function setTimeInterval($time_interval) - { - $this->container['time_interval'] = $time_interval; - - return $this; - } - /** - * Gets metrics - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\Metric[]|null - */ - public function getMetrics() - { - return $this->container['metrics']; - } - - /** - * Sets metrics - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\Metric[]|null $metrics The list of metrics requested. If no metric value is provided, data for all of the metrics will be returned. - * - * @return self - */ - public function setMetrics($metrics) - { - - - if (!is_null($metrics) && (count($metrics) < 1)) { - throw new \InvalidArgumentException('invalid length for $metrics when calling GetSellingPartnerMetricsRequest., number of items must be greater than or equal to 1.'); - } - $this->container['metrics'] = $metrics; - - return $this; - } - /** - * Gets time_period_type - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType - */ - public function getTimePeriodType() - { - return $this->container['time_period_type']; - } - - /** - * Sets time_period_type - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType $time_period_type time_period_type - * - * @return self - */ - public function setTimePeriodType($time_period_type) - { - $this->container['time_period_type'] = $time_period_type; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets program_types - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] - */ - public function getProgramTypes() - { - return $this->container['program_types']; - } - - /** - * Sets program_types - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] $program_types A list of replenishment program types. - * - * @return self - */ - public function setProgramTypes($program_types) - { - - - if ((count($program_types) < 1)) { - throw new \InvalidArgumentException('invalid length for $program_types when calling GetSellingPartnerMetricsRequest., number of items must be greater than or equal to 1.'); - } - $this->container['program_types'] = $program_types; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.php b/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.php deleted file mode 100644 index ae25f3e1d..000000000 --- a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSellingPartnerMetricsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSellingPartnerMetricsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'metrics' => '\SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponseMetric[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'metrics' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'metrics' => 'metrics' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'metrics' => 'setMetrics' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'metrics' => 'getMetrics' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['metrics'] = $data['metrics'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets metrics - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponseMetric[]|null - */ - public function getMetrics() - { - return $this->container['metrics']; - } - - /** - * Sets metrics - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\GetSellingPartnerMetricsResponseMetric[]|null $metrics A list of metrics data for the selling partner. - * - * @return self - */ - public function setMetrics($metrics) - { - $this->container['metrics'] = $metrics; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.php b/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.php deleted file mode 100644 index 8b01e2d39..000000000 --- a/lib/Model/ReplenishmentV20221107/GetSellingPartnerMetricsResponseMetric.php +++ /dev/null @@ -1,426 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSellingPartnerMetricsResponseMetric extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSellingPartnerMetricsResponseMetric'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'not_delivered_due_to_oos' => 'double', - 'total_subscriptions_revenue' => 'double', - 'shipped_subscription_units' => 'float', - 'active_subscriptions' => 'float', - 'subscriber_average_revenue' => 'double', - 'non_subscriber_average_revenue' => 'double', - 'time_interval' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval', - 'currency_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'not_delivered_due_to_oos' => 'double', - 'total_subscriptions_revenue' => 'double', - 'shipped_subscription_units' => 'int64', - 'active_subscriptions' => 'int64', - 'subscriber_average_revenue' => 'double', - 'non_subscriber_average_revenue' => 'double', - 'time_interval' => null, - 'currency_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'not_delivered_due_to_oos' => 'notDeliveredDueToOOS', - 'total_subscriptions_revenue' => 'totalSubscriptionsRevenue', - 'shipped_subscription_units' => 'shippedSubscriptionUnits', - 'active_subscriptions' => 'activeSubscriptions', - 'subscriber_average_revenue' => 'subscriberAverageRevenue', - 'non_subscriber_average_revenue' => 'nonSubscriberAverageRevenue', - 'time_interval' => 'timeInterval', - 'currency_code' => 'currencyCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'not_delivered_due_to_oos' => 'setNotDeliveredDueToOos', - 'total_subscriptions_revenue' => 'setTotalSubscriptionsRevenue', - 'shipped_subscription_units' => 'setShippedSubscriptionUnits', - 'active_subscriptions' => 'setActiveSubscriptions', - 'subscriber_average_revenue' => 'setSubscriberAverageRevenue', - 'non_subscriber_average_revenue' => 'setNonSubscriberAverageRevenue', - 'time_interval' => 'setTimeInterval', - 'currency_code' => 'setCurrencyCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'not_delivered_due_to_oos' => 'getNotDeliveredDueToOos', - 'total_subscriptions_revenue' => 'getTotalSubscriptionsRevenue', - 'shipped_subscription_units' => 'getShippedSubscriptionUnits', - 'active_subscriptions' => 'getActiveSubscriptions', - 'subscriber_average_revenue' => 'getSubscriberAverageRevenue', - 'non_subscriber_average_revenue' => 'getNonSubscriberAverageRevenue', - 'time_interval' => 'getTimeInterval', - 'currency_code' => 'getCurrencyCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['not_delivered_due_to_oos'] = $data['not_delivered_due_to_oos'] ?? null; - $this->container['total_subscriptions_revenue'] = $data['total_subscriptions_revenue'] ?? null; - $this->container['shipped_subscription_units'] = $data['shipped_subscription_units'] ?? null; - $this->container['active_subscriptions'] = $data['active_subscriptions'] ?? null; - $this->container['subscriber_average_revenue'] = $data['subscriber_average_revenue'] ?? null; - $this->container['non_subscriber_average_revenue'] = $data['non_subscriber_average_revenue'] ?? null; - $this->container['time_interval'] = $data['time_interval'] ?? null; - $this->container['currency_code'] = $data['currency_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['not_delivered_due_to_oos']) && ($this->container['not_delivered_due_to_oos'] > 1E+2)) { - $invalidProperties[] = "invalid value for 'not_delivered_due_to_oos', must be smaller than or equal to 1E+2."; - } - - if (!is_null($this->container['not_delivered_due_to_oos']) && ($this->container['not_delivered_due_to_oos'] < 0)) { - $invalidProperties[] = "invalid value for 'not_delivered_due_to_oos', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['total_subscriptions_revenue']) && ($this->container['total_subscriptions_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'total_subscriptions_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['shipped_subscription_units']) && ($this->container['shipped_subscription_units'] < 0)) { - $invalidProperties[] = "invalid value for 'shipped_subscription_units', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['active_subscriptions']) && ($this->container['active_subscriptions'] < 0)) { - $invalidProperties[] = "invalid value for 'active_subscriptions', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['subscriber_average_revenue']) && ($this->container['subscriber_average_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'subscriber_average_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['non_subscriber_average_revenue']) && ($this->container['non_subscriber_average_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'non_subscriber_average_revenue', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets not_delivered_due_to_oos - * - * @return double|null - */ - public function getNotDeliveredDueToOos() - { - return $this->container['not_delivered_due_to_oos']; - } - - /** - * Sets not_delivered_due_to_oos - * - * @param double|null $not_delivered_due_to_oos The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setNotDeliveredDueToOos($not_delivered_due_to_oos) - { - - if (!is_null($not_delivered_due_to_oos) && ($not_delivered_due_to_oos > 1E+2)) { - throw new \InvalidArgumentException('invalid value for $not_delivered_due_to_oos when calling GetSellingPartnerMetricsResponseMetric., must be smaller than or equal to 1E+2.'); - } - if (!is_null($not_delivered_due_to_oos) && ($not_delivered_due_to_oos < 0)) { - throw new \InvalidArgumentException('invalid value for $not_delivered_due_to_oos when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['not_delivered_due_to_oos'] = $not_delivered_due_to_oos; - - return $this; - } - /** - * Gets total_subscriptions_revenue - * - * @return double|null - */ - public function getTotalSubscriptionsRevenue() - { - return $this->container['total_subscriptions_revenue']; - } - - /** - * Sets total_subscriptions_revenue - * - * @param double|null $total_subscriptions_revenue The revenue generated from subscriptions over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. - * - * @return self - */ - public function setTotalSubscriptionsRevenue($total_subscriptions_revenue) - { - - if (!is_null($total_subscriptions_revenue) && ($total_subscriptions_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $total_subscriptions_revenue when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['total_subscriptions_revenue'] = $total_subscriptions_revenue; - - return $this; - } - /** - * Gets shipped_subscription_units - * - * @return float|null - */ - public function getShippedSubscriptionUnits() - { - return $this->container['shipped_subscription_units']; - } - - /** - * Sets shipped_subscription_units - * - * @param float|null $shipped_subscription_units The number of units shipped to the subscribers over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. - * - * @return self - */ - public function setShippedSubscriptionUnits($shipped_subscription_units) - { - - if (!is_null($shipped_subscription_units) && ($shipped_subscription_units < 0)) { - throw new \InvalidArgumentException('invalid value for $shipped_subscription_units when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['shipped_subscription_units'] = $shipped_subscription_units; - - return $this; - } - /** - * Gets active_subscriptions - * - * @return float|null - */ - public function getActiveSubscriptions() - { - return $this->container['active_subscriptions']; - } - - /** - * Sets active_subscriptions - * - * @param float|null $active_subscriptions The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setActiveSubscriptions($active_subscriptions) - { - - if (!is_null($active_subscriptions) && ($active_subscriptions < 0)) { - throw new \InvalidArgumentException('invalid value for $active_subscriptions when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['active_subscriptions'] = $active_subscriptions; - - return $this; - } - /** - * Gets subscriber_average_revenue - * - * @return double|null - */ - public function getSubscriberAverageRevenue() - { - return $this->container['subscriber_average_revenue']; - } - - /** - * Sets subscriber_average_revenue - * - * @param double|null $subscriber_average_revenue The average revenue per subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setSubscriberAverageRevenue($subscriber_average_revenue) - { - - if (!is_null($subscriber_average_revenue) && ($subscriber_average_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $subscriber_average_revenue when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['subscriber_average_revenue'] = $subscriber_average_revenue; - - return $this; - } - /** - * Gets non_subscriber_average_revenue - * - * @return double|null - */ - public function getNonSubscriberAverageRevenue() - { - return $this->container['non_subscriber_average_revenue']; - } - - /** - * Sets non_subscriber_average_revenue - * - * @param double|null $non_subscriber_average_revenue The average revenue per non-subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setNonSubscriberAverageRevenue($non_subscriber_average_revenue) - { - - if (!is_null($non_subscriber_average_revenue) && ($non_subscriber_average_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $non_subscriber_average_revenue when calling GetSellingPartnerMetricsResponseMetric., must be bigger than or equal to 0.'); - } - - $this->container['non_subscriber_average_revenue'] = $non_subscriber_average_revenue; - - return $this; - } - /** - * Gets time_interval - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval|null - */ - public function getTimeInterval() - { - return $this->container['time_interval']; - } - - /** - * Sets time_interval - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval|null $time_interval time_interval - * - * @return self - */ - public function setTimeInterval($time_interval) - { - $this->container['time_interval'] = $time_interval; - - return $this; - } - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequest.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequest.php deleted file mode 100644 index 2cf72c78f..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestPagination', - 'sort' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestSort', - 'filters' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestFilters' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'sort' => null, - 'filters' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'sort' => 'sort', - 'filters' => 'filters' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'sort' => 'setSort', - 'filters' => 'setFilters' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'sort' => 'getSort', - 'filters' => 'getFilters' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['sort'] = $data['sort'] ?? null; - $this->container['filters'] = $data['filters'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['pagination'] === null) { - $invalidProperties[] = "'pagination' can't be null"; - } - if ($this->container['filters'] === null) { - $invalidProperties[] = "'filters' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestPagination - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestPagination $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets sort - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestSort|null - */ - public function getSort() - { - return $this->container['sort']; - } - - /** - * Sets sort - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestSort|null $sort sort - * - * @return self - */ - public function setSort($sort) - { - $this->container['sort'] = $sort; - - return $this; - } - /** - * Gets filters - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestFilters - */ - public function getFilters() - { - return $this->container['filters']; - } - - /** - * Sets filters - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsRequestFilters $filters filters - * - * @return self - */ - public function setFilters($filters) - { - $this->container['filters'] = $filters; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.php deleted file mode 100644 index 2cbb60812..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestFilters.php +++ /dev/null @@ -1,343 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsRequestFilters extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsRequestFilters'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'aggregation_frequency' => '\SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency', - 'time_interval' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval', - 'time_period_type' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType', - 'marketplace_id' => 'string', - 'program_types' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]', - 'asins' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'aggregation_frequency' => null, - 'time_interval' => null, - 'time_period_type' => null, - 'marketplace_id' => null, - 'program_types' => null, - 'asins' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'aggregation_frequency' => 'aggregationFrequency', - 'time_interval' => 'timeInterval', - 'time_period_type' => 'timePeriodType', - 'marketplace_id' => 'marketplaceId', - 'program_types' => 'programTypes', - 'asins' => 'asins' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'aggregation_frequency' => 'setAggregationFrequency', - 'time_interval' => 'setTimeInterval', - 'time_period_type' => 'setTimePeriodType', - 'marketplace_id' => 'setMarketplaceId', - 'program_types' => 'setProgramTypes', - 'asins' => 'setAsins' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'aggregation_frequency' => 'getAggregationFrequency', - 'time_interval' => 'getTimeInterval', - 'time_period_type' => 'getTimePeriodType', - 'marketplace_id' => 'getMarketplaceId', - 'program_types' => 'getProgramTypes', - 'asins' => 'getAsins' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['aggregation_frequency'] = $data['aggregation_frequency'] ?? null; - $this->container['time_interval'] = $data['time_interval'] ?? null; - $this->container['time_period_type'] = $data['time_period_type'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['program_types'] = $data['program_types'] ?? null; - $this->container['asins'] = $data['asins'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['time_interval'] === null) { - $invalidProperties[] = "'time_interval' can't be null"; - } - if ($this->container['time_period_type'] === null) { - $invalidProperties[] = "'time_period_type' can't be null"; - } - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['program_types'] === null) { - $invalidProperties[] = "'program_types' can't be null"; - } - if ((count($this->container['program_types']) < 1)) { - $invalidProperties[] = "invalid value for 'program_types', number of items must be greater than or equal to 1."; - } - - if (!is_null($this->container['asins']) && (count($this->container['asins']) > 20)) { - $invalidProperties[] = "invalid value for 'asins', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['asins']) && (count($this->container['asins']) < 1)) { - $invalidProperties[] = "invalid value for 'asins', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets aggregation_frequency - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency|null - */ - public function getAggregationFrequency() - { - return $this->container['aggregation_frequency']; - } - - /** - * Sets aggregation_frequency - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\AggregationFrequency|null $aggregation_frequency aggregation_frequency - * - * @return self - */ - public function setAggregationFrequency($aggregation_frequency) - { - $this->container['aggregation_frequency'] = $aggregation_frequency; - - return $this; - } - /** - * Gets time_interval - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval - */ - public function getTimeInterval() - { - return $this->container['time_interval']; - } - - /** - * Sets time_interval - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval $time_interval time_interval - * - * @return self - */ - public function setTimeInterval($time_interval) - { - $this->container['time_interval'] = $time_interval; - - return $this; - } - /** - * Gets time_period_type - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType - */ - public function getTimePeriodType() - { - return $this->container['time_period_type']; - } - - /** - * Sets time_period_type - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimePeriodType $time_period_type time_period_type - * - * @return self - */ - public function setTimePeriodType($time_period_type) - { - $this->container['time_period_type'] = $time_period_type; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets program_types - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] - */ - public function getProgramTypes() - { - return $this->container['program_types']; - } - - /** - * Sets program_types - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] $program_types A list of replenishment program types. - * - * @return self - */ - public function setProgramTypes($program_types) - { - - - if ((count($program_types) < 1)) { - throw new \InvalidArgumentException('invalid length for $program_types when calling ListOfferMetricsRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['program_types'] = $program_types; - - return $this; - } - /** - * Gets asins - * - * @return string[]|null - */ - public function getAsins() - { - return $this->container['asins']; - } - - /** - * Sets asins - * - * @param string[]|null $asins A list of Amazon Standard Identification Numbers (ASINs). - * - * @return self - */ - public function setAsins($asins) - { - - if (!is_null($asins) && (count($asins) > 20)) { - throw new \InvalidArgumentException('invalid value for $asins when calling ListOfferMetricsRequestFilters., number of items must be less than or equal to 20.'); - } - if (!is_null($asins) && (count($asins) < 1)) { - throw new \InvalidArgumentException('invalid length for $asins when calling ListOfferMetricsRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['asins'] = $asins; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.php deleted file mode 100644 index fe8cb9255..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestPagination.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsRequestPagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsRequestPagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'limit' => 'int', - 'offset' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'limit' => 'int64', - 'offset' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'limit' => 'limit', - 'offset' => 'offset' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'limit' => 'setLimit', - 'offset' => 'setOffset' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'limit' => 'getLimit', - 'offset' => 'getOffset' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['limit'] = $data['limit'] ?? null; - $this->container['offset'] = $data['offset'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['limit'] === null) { - $invalidProperties[] = "'limit' can't be null"; - } - if (($this->container['limit'] > 500)) { - $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 500."; - } - - if (($this->container['limit'] < 1)) { - $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; - } - - if ($this->container['offset'] === null) { - $invalidProperties[] = "'offset' can't be null"; - } - if (($this->container['offset'] > 9000)) { - $invalidProperties[] = "invalid value for 'offset', must be smaller than or equal to 9000."; - } - - if (($this->container['offset'] < 0)) { - $invalidProperties[] = "invalid value for 'offset', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets limit - * - * @return int - */ - public function getLimit() - { - return $this->container['limit']; - } - - /** - * Sets limit - * - * @param int $limit The maximum number of results to return in the response. - * - * @return self - */ - public function setLimit($limit) - { - - if (($limit > 500)) { - throw new \InvalidArgumentException('invalid value for $limit when calling ListOfferMetricsRequestPagination., must be smaller than or equal to 500.'); - } - if (($limit < 1)) { - throw new \InvalidArgumentException('invalid value for $limit when calling ListOfferMetricsRequestPagination., must be bigger than or equal to 1.'); - } - - $this->container['limit'] = $limit; - - return $this; - } - /** - * Gets offset - * - * @return int - */ - public function getOffset() - { - return $this->container['offset']; - } - - /** - * Sets offset - * - * @param int $offset The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0. - * - * @return self - */ - public function setOffset($offset) - { - - if (($offset > 9000)) { - throw new \InvalidArgumentException('invalid value for $offset when calling ListOfferMetricsRequestPagination., must be smaller than or equal to 9000.'); - } - if (($offset < 0)) { - throw new \InvalidArgumentException('invalid value for $offset when calling ListOfferMetricsRequestPagination., must be bigger than or equal to 0.'); - } - - $this->container['offset'] = $offset; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.php deleted file mode 100644 index 03b245bd6..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsRequestSort.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsRequestSort extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsRequestSort'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order' => '\SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder', - 'key' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsSortKey' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order' => null, - 'key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order' => 'order', - 'key' => 'key' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order' => 'setOrder', - 'key' => 'setKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order' => 'getOrder', - 'key' => 'getKey' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order'] = $data['order'] ?? null; - $this->container['key'] = $data['key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order'] === null) { - $invalidProperties[] = "'order' can't be null"; - } - if ($this->container['key'] === null) { - $invalidProperties[] = "'key' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder - */ - public function getOrder() - { - return $this->container['order']; - } - - /** - * Sets order - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder $order order - * - * @return self - */ - public function setOrder($order) - { - $this->container['order'] = $order; - - return $this; - } - /** - * Gets key - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsSortKey - */ - public function getKey() - { - return $this->container['key']; - } - - /** - * Sets key - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsSortKey $key key - * - * @return self - */ - public function setKey($key) - { - $this->container['key'] = $key; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponse.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponse.php deleted file mode 100644 index 993385d74..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'offers' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponseOffer[]', - 'pagination' => '\SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'offers' => null, - 'pagination' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'offers' => 'offers', - 'pagination' => 'pagination' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'offers' => 'setOffers', - 'pagination' => 'setPagination' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'offers' => 'getOffers', - 'pagination' => 'getPagination' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['offers'] = $data['offers'] ?? null; - $this->container['pagination'] = $data['pagination'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets offers - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponseOffer[]|null - */ - public function getOffers() - { - return $this->container['offers']; - } - - /** - * Sets offers - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOfferMetricsResponseOffer[]|null $offers A list of offers and associated metrics. - * - * @return self - */ - public function setOffers($offers) - { - $this->container['offers'] = $offers; - - return $this; - } - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.php deleted file mode 100644 index d9cc0ea86..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsResponseOffer.php +++ /dev/null @@ -1,652 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOfferMetricsResponseOffer extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOfferMetricsResponseOffer'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'not_delivered_due_to_oos' => 'double', - 'total_subscriptions_revenue' => 'double', - 'shipped_subscription_units' => 'float', - 'active_subscriptions' => 'float', - 'revenue_penetration' => 'double', - 'next30_day_total_subscriptions_revenue' => 'double', - 'next60_day_total_subscriptions_revenue' => 'double', - 'next90_day_total_subscriptions_revenue' => 'double', - 'next30_day_shipped_subscription_units' => 'float', - 'next60_day_shipped_subscription_units' => 'float', - 'next90_day_shipped_subscription_units' => 'float', - 'time_interval' => '\SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval', - 'currency_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'not_delivered_due_to_oos' => 'double', - 'total_subscriptions_revenue' => 'double', - 'shipped_subscription_units' => 'int64', - 'active_subscriptions' => 'int64', - 'revenue_penetration' => 'double', - 'next30_day_total_subscriptions_revenue' => 'double', - 'next60_day_total_subscriptions_revenue' => 'double', - 'next90_day_total_subscriptions_revenue' => 'double', - 'next30_day_shipped_subscription_units' => 'int64', - 'next60_day_shipped_subscription_units' => 'int64', - 'next90_day_shipped_subscription_units' => 'int64', - 'time_interval' => null, - 'currency_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'not_delivered_due_to_oos' => 'notDeliveredDueToOOS', - 'total_subscriptions_revenue' => 'totalSubscriptionsRevenue', - 'shipped_subscription_units' => 'shippedSubscriptionUnits', - 'active_subscriptions' => 'activeSubscriptions', - 'revenue_penetration' => 'revenuePenetration', - 'next30_day_total_subscriptions_revenue' => 'next30DayTotalSubscriptionsRevenue', - 'next60_day_total_subscriptions_revenue' => 'next60DayTotalSubscriptionsRevenue', - 'next90_day_total_subscriptions_revenue' => 'next90DayTotalSubscriptionsRevenue', - 'next30_day_shipped_subscription_units' => 'next30DayShippedSubscriptionUnits', - 'next60_day_shipped_subscription_units' => 'next60DayShippedSubscriptionUnits', - 'next90_day_shipped_subscription_units' => 'next90DayShippedSubscriptionUnits', - 'time_interval' => 'timeInterval', - 'currency_code' => 'currencyCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'not_delivered_due_to_oos' => 'setNotDeliveredDueToOos', - 'total_subscriptions_revenue' => 'setTotalSubscriptionsRevenue', - 'shipped_subscription_units' => 'setShippedSubscriptionUnits', - 'active_subscriptions' => 'setActiveSubscriptions', - 'revenue_penetration' => 'setRevenuePenetration', - 'next30_day_total_subscriptions_revenue' => 'setNext30DayTotalSubscriptionsRevenue', - 'next60_day_total_subscriptions_revenue' => 'setNext60DayTotalSubscriptionsRevenue', - 'next90_day_total_subscriptions_revenue' => 'setNext90DayTotalSubscriptionsRevenue', - 'next30_day_shipped_subscription_units' => 'setNext30DayShippedSubscriptionUnits', - 'next60_day_shipped_subscription_units' => 'setNext60DayShippedSubscriptionUnits', - 'next90_day_shipped_subscription_units' => 'setNext90DayShippedSubscriptionUnits', - 'time_interval' => 'setTimeInterval', - 'currency_code' => 'setCurrencyCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'not_delivered_due_to_oos' => 'getNotDeliveredDueToOos', - 'total_subscriptions_revenue' => 'getTotalSubscriptionsRevenue', - 'shipped_subscription_units' => 'getShippedSubscriptionUnits', - 'active_subscriptions' => 'getActiveSubscriptions', - 'revenue_penetration' => 'getRevenuePenetration', - 'next30_day_total_subscriptions_revenue' => 'getNext30DayTotalSubscriptionsRevenue', - 'next60_day_total_subscriptions_revenue' => 'getNext60DayTotalSubscriptionsRevenue', - 'next90_day_total_subscriptions_revenue' => 'getNext90DayTotalSubscriptionsRevenue', - 'next30_day_shipped_subscription_units' => 'getNext30DayShippedSubscriptionUnits', - 'next60_day_shipped_subscription_units' => 'getNext60DayShippedSubscriptionUnits', - 'next90_day_shipped_subscription_units' => 'getNext90DayShippedSubscriptionUnits', - 'time_interval' => 'getTimeInterval', - 'currency_code' => 'getCurrencyCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['not_delivered_due_to_oos'] = $data['not_delivered_due_to_oos'] ?? null; - $this->container['total_subscriptions_revenue'] = $data['total_subscriptions_revenue'] ?? null; - $this->container['shipped_subscription_units'] = $data['shipped_subscription_units'] ?? null; - $this->container['active_subscriptions'] = $data['active_subscriptions'] ?? null; - $this->container['revenue_penetration'] = $data['revenue_penetration'] ?? null; - $this->container['next30_day_total_subscriptions_revenue'] = $data['next30_day_total_subscriptions_revenue'] ?? null; - $this->container['next60_day_total_subscriptions_revenue'] = $data['next60_day_total_subscriptions_revenue'] ?? null; - $this->container['next90_day_total_subscriptions_revenue'] = $data['next90_day_total_subscriptions_revenue'] ?? null; - $this->container['next30_day_shipped_subscription_units'] = $data['next30_day_shipped_subscription_units'] ?? null; - $this->container['next60_day_shipped_subscription_units'] = $data['next60_day_shipped_subscription_units'] ?? null; - $this->container['next90_day_shipped_subscription_units'] = $data['next90_day_shipped_subscription_units'] ?? null; - $this->container['time_interval'] = $data['time_interval'] ?? null; - $this->container['currency_code'] = $data['currency_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['not_delivered_due_to_oos']) && ($this->container['not_delivered_due_to_oos'] > 1E+2)) { - $invalidProperties[] = "invalid value for 'not_delivered_due_to_oos', must be smaller than or equal to 1E+2."; - } - - if (!is_null($this->container['not_delivered_due_to_oos']) && ($this->container['not_delivered_due_to_oos'] < 0)) { - $invalidProperties[] = "invalid value for 'not_delivered_due_to_oos', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['total_subscriptions_revenue']) && ($this->container['total_subscriptions_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'total_subscriptions_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['shipped_subscription_units']) && ($this->container['shipped_subscription_units'] < 0)) { - $invalidProperties[] = "invalid value for 'shipped_subscription_units', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['active_subscriptions']) && ($this->container['active_subscriptions'] < 0)) { - $invalidProperties[] = "invalid value for 'active_subscriptions', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['revenue_penetration']) && ($this->container['revenue_penetration'] > 1E+2)) { - $invalidProperties[] = "invalid value for 'revenue_penetration', must be smaller than or equal to 1E+2."; - } - - if (!is_null($this->container['revenue_penetration']) && ($this->container['revenue_penetration'] < 0)) { - $invalidProperties[] = "invalid value for 'revenue_penetration', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next30_day_total_subscriptions_revenue']) && ($this->container['next30_day_total_subscriptions_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'next30_day_total_subscriptions_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next60_day_total_subscriptions_revenue']) && ($this->container['next60_day_total_subscriptions_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'next60_day_total_subscriptions_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next90_day_total_subscriptions_revenue']) && ($this->container['next90_day_total_subscriptions_revenue'] < 0)) { - $invalidProperties[] = "invalid value for 'next90_day_total_subscriptions_revenue', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next30_day_shipped_subscription_units']) && ($this->container['next30_day_shipped_subscription_units'] < 0)) { - $invalidProperties[] = "invalid value for 'next30_day_shipped_subscription_units', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next60_day_shipped_subscription_units']) && ($this->container['next60_day_shipped_subscription_units'] < 0)) { - $invalidProperties[] = "invalid value for 'next60_day_shipped_subscription_units', must be bigger than or equal to 0."; - } - - if (!is_null($this->container['next90_day_shipped_subscription_units']) && ($this->container['next90_day_shipped_subscription_units'] < 0)) { - $invalidProperties[] = "invalid value for 'next90_day_shipped_subscription_units', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets not_delivered_due_to_oos - * - * @return double|null - */ - public function getNotDeliveredDueToOos() - { - return $this->container['not_delivered_due_to_oos']; - } - - /** - * Sets not_delivered_due_to_oos - * - * @param double|null $not_delivered_due_to_oos The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setNotDeliveredDueToOos($not_delivered_due_to_oos) - { - - if (!is_null($not_delivered_due_to_oos) && ($not_delivered_due_to_oos > 1E+2)) { - throw new \InvalidArgumentException('invalid value for $not_delivered_due_to_oos when calling ListOfferMetricsResponseOffer., must be smaller than or equal to 1E+2.'); - } - if (!is_null($not_delivered_due_to_oos) && ($not_delivered_due_to_oos < 0)) { - throw new \InvalidArgumentException('invalid value for $not_delivered_due_to_oos when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['not_delivered_due_to_oos'] = $not_delivered_due_to_oos; - - return $this; - } - /** - * Gets total_subscriptions_revenue - * - * @return double|null - */ - public function getTotalSubscriptionsRevenue() - { - return $this->container['total_subscriptions_revenue']; - } - - /** - * Sets total_subscriptions_revenue - * - * @param double|null $total_subscriptions_revenue The revenue generated from subscriptions over a period of time. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setTotalSubscriptionsRevenue($total_subscriptions_revenue) - { - - if (!is_null($total_subscriptions_revenue) && ($total_subscriptions_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $total_subscriptions_revenue when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['total_subscriptions_revenue'] = $total_subscriptions_revenue; - - return $this; - } - /** - * Gets shipped_subscription_units - * - * @return float|null - */ - public function getShippedSubscriptionUnits() - { - return $this->container['shipped_subscription_units']; - } - - /** - * Sets shipped_subscription_units - * - * @param float|null $shipped_subscription_units The number of units shipped to the subscribers over a period of time. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setShippedSubscriptionUnits($shipped_subscription_units) - { - - if (!is_null($shipped_subscription_units) && ($shipped_subscription_units < 0)) { - throw new \InvalidArgumentException('invalid value for $shipped_subscription_units when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['shipped_subscription_units'] = $shipped_subscription_units; - - return $this; - } - /** - * Gets active_subscriptions - * - * @return float|null - */ - public function getActiveSubscriptions() - { - return $this->container['active_subscriptions']; - } - - /** - * Sets active_subscriptions - * - * @param float|null $active_subscriptions The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setActiveSubscriptions($active_subscriptions) - { - - if (!is_null($active_subscriptions) && ($active_subscriptions < 0)) { - throw new \InvalidArgumentException('invalid value for $active_subscriptions when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['active_subscriptions'] = $active_subscriptions; - - return $this; - } - /** - * Gets revenue_penetration - * - * @return double|null - */ - public function getRevenuePenetration() - { - return $this->container['revenue_penetration']; - } - - /** - * Sets revenue_penetration - * - * @param double|null $revenue_penetration The percentage of total program revenue out of total product revenue. Applicable only for the PERFORMANCE timePeriodType. - * - * @return self - */ - public function setRevenuePenetration($revenue_penetration) - { - - if (!is_null($revenue_penetration) && ($revenue_penetration > 1E+2)) { - throw new \InvalidArgumentException('invalid value for $revenue_penetration when calling ListOfferMetricsResponseOffer., must be smaller than or equal to 1E+2.'); - } - if (!is_null($revenue_penetration) && ($revenue_penetration < 0)) { - throw new \InvalidArgumentException('invalid value for $revenue_penetration when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['revenue_penetration'] = $revenue_penetration; - - return $this; - } - /** - * Gets next30_day_total_subscriptions_revenue - * - * @return double|null - */ - public function getNext30DayTotalSubscriptionsRevenue() - { - return $this->container['next30_day_total_subscriptions_revenue']; - } - - /** - * Sets next30_day_total_subscriptions_revenue - * - * @param double|null $next30_day_total_subscriptions_revenue The forecasted total subscription revenue for the next 30 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext30DayTotalSubscriptionsRevenue($next30_day_total_subscriptions_revenue) - { - - if (!is_null($next30_day_total_subscriptions_revenue) && ($next30_day_total_subscriptions_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $next30_day_total_subscriptions_revenue when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next30_day_total_subscriptions_revenue'] = $next30_day_total_subscriptions_revenue; - - return $this; - } - /** - * Gets next60_day_total_subscriptions_revenue - * - * @return double|null - */ - public function getNext60DayTotalSubscriptionsRevenue() - { - return $this->container['next60_day_total_subscriptions_revenue']; - } - - /** - * Sets next60_day_total_subscriptions_revenue - * - * @param double|null $next60_day_total_subscriptions_revenue The forecasted total subscription revenue for the next 60 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext60DayTotalSubscriptionsRevenue($next60_day_total_subscriptions_revenue) - { - - if (!is_null($next60_day_total_subscriptions_revenue) && ($next60_day_total_subscriptions_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $next60_day_total_subscriptions_revenue when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next60_day_total_subscriptions_revenue'] = $next60_day_total_subscriptions_revenue; - - return $this; - } - /** - * Gets next90_day_total_subscriptions_revenue - * - * @return double|null - */ - public function getNext90DayTotalSubscriptionsRevenue() - { - return $this->container['next90_day_total_subscriptions_revenue']; - } - - /** - * Sets next90_day_total_subscriptions_revenue - * - * @param double|null $next90_day_total_subscriptions_revenue The forecasted total subscription revenue for the next 90 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext90DayTotalSubscriptionsRevenue($next90_day_total_subscriptions_revenue) - { - - if (!is_null($next90_day_total_subscriptions_revenue) && ($next90_day_total_subscriptions_revenue < 0)) { - throw new \InvalidArgumentException('invalid value for $next90_day_total_subscriptions_revenue when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next90_day_total_subscriptions_revenue'] = $next90_day_total_subscriptions_revenue; - - return $this; - } - /** - * Gets next30_day_shipped_subscription_units - * - * @return float|null - */ - public function getNext30DayShippedSubscriptionUnits() - { - return $this->container['next30_day_shipped_subscription_units']; - } - - /** - * Sets next30_day_shipped_subscription_units - * - * @param float|null $next30_day_shipped_subscription_units The forecasted shipped subscription units for the next 30 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext30DayShippedSubscriptionUnits($next30_day_shipped_subscription_units) - { - - if (!is_null($next30_day_shipped_subscription_units) && ($next30_day_shipped_subscription_units < 0)) { - throw new \InvalidArgumentException('invalid value for $next30_day_shipped_subscription_units when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next30_day_shipped_subscription_units'] = $next30_day_shipped_subscription_units; - - return $this; - } - /** - * Gets next60_day_shipped_subscription_units - * - * @return float|null - */ - public function getNext60DayShippedSubscriptionUnits() - { - return $this->container['next60_day_shipped_subscription_units']; - } - - /** - * Sets next60_day_shipped_subscription_units - * - * @param float|null $next60_day_shipped_subscription_units The forecasted shipped subscription units for the next 60 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext60DayShippedSubscriptionUnits($next60_day_shipped_subscription_units) - { - - if (!is_null($next60_day_shipped_subscription_units) && ($next60_day_shipped_subscription_units < 0)) { - throw new \InvalidArgumentException('invalid value for $next60_day_shipped_subscription_units when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next60_day_shipped_subscription_units'] = $next60_day_shipped_subscription_units; - - return $this; - } - /** - * Gets next90_day_shipped_subscription_units - * - * @return float|null - */ - public function getNext90DayShippedSubscriptionUnits() - { - return $this->container['next90_day_shipped_subscription_units']; - } - - /** - * Sets next90_day_shipped_subscription_units - * - * @param float|null $next90_day_shipped_subscription_units The forecasted shipped subscription units for the next 90 days. Applicable only for the FORECAST timePeriodType. - * - * @return self - */ - public function setNext90DayShippedSubscriptionUnits($next90_day_shipped_subscription_units) - { - - if (!is_null($next90_day_shipped_subscription_units) && ($next90_day_shipped_subscription_units < 0)) { - throw new \InvalidArgumentException('invalid value for $next90_day_shipped_subscription_units when calling ListOfferMetricsResponseOffer., must be bigger than or equal to 0.'); - } - - $this->container['next90_day_shipped_subscription_units'] = $next90_day_shipped_subscription_units; - - return $this; - } - /** - * Gets time_interval - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval|null - */ - public function getTimeInterval() - { - return $this->container['time_interval']; - } - - /** - * Sets time_interval - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\TimeInterval|null $time_interval time_interval - * - * @return self - */ - public function setTimeInterval($time_interval) - { - $this->container['time_interval'] = $time_interval; - - return $this; - } - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.php b/lib/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.php deleted file mode 100644 index 8baa33224..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOfferMetricsSortKey.php +++ /dev/null @@ -1,101 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersRequest.php b/lib/Model/ReplenishmentV20221107/ListOffersRequest.php deleted file mode 100644 index fd8b3aefb..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestPagination', - 'filters' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestFilters', - 'sort' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestSort' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'filters' => null, - 'sort' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'filters' => 'filters', - 'sort' => 'sort' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'filters' => 'setFilters', - 'sort' => 'setSort' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'filters' => 'getFilters', - 'sort' => 'getSort' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['filters'] = $data['filters'] ?? null; - $this->container['sort'] = $data['sort'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['pagination'] === null) { - $invalidProperties[] = "'pagination' can't be null"; - } - if ($this->container['filters'] === null) { - $invalidProperties[] = "'filters' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestPagination - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestPagination $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets filters - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestFilters - */ - public function getFilters() - { - return $this->container['filters']; - } - - /** - * Sets filters - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestFilters $filters filters - * - * @return self - */ - public function setFilters($filters) - { - $this->container['filters'] = $filters; - - return $this; - } - /** - * Gets sort - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestSort|null - */ - public function getSort() - { - return $this->container['sort']; - } - - /** - * Sets sort - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersRequestSort|null $sort sort - * - * @return self - */ - public function setSort($sort) - { - $this->container['sort'] = $sort; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersRequestFilters.php b/lib/Model/ReplenishmentV20221107/ListOffersRequestFilters.php deleted file mode 100644 index e942b9fbb..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersRequestFilters.php +++ /dev/null @@ -1,390 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersRequestFilters extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersRequestFilters'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'skus' => 'string[]', - 'asins' => 'string[]', - 'eligibilities' => '\SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus[]', - 'preferences' => '\SellingPartnerApi\Model\ReplenishmentV20221107\Preference', - 'promotions' => '\SellingPartnerApi\Model\ReplenishmentV20221107\Promotion', - 'program_types' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'skus' => null, - 'asins' => null, - 'eligibilities' => null, - 'preferences' => null, - 'promotions' => null, - 'program_types' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'skus' => 'skus', - 'asins' => 'asins', - 'eligibilities' => 'eligibilities', - 'preferences' => 'preferences', - 'promotions' => 'promotions', - 'program_types' => 'programTypes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'skus' => 'setSkus', - 'asins' => 'setAsins', - 'eligibilities' => 'setEligibilities', - 'preferences' => 'setPreferences', - 'promotions' => 'setPromotions', - 'program_types' => 'setProgramTypes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'skus' => 'getSkus', - 'asins' => 'getAsins', - 'eligibilities' => 'getEligibilities', - 'preferences' => 'getPreferences', - 'promotions' => 'getPromotions', - 'program_types' => 'getProgramTypes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['skus'] = $data['skus'] ?? null; - $this->container['asins'] = $data['asins'] ?? null; - $this->container['eligibilities'] = $data['eligibilities'] ?? null; - $this->container['preferences'] = $data['preferences'] ?? null; - $this->container['promotions'] = $data['promotions'] ?? null; - $this->container['program_types'] = $data['program_types'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if (!is_null($this->container['skus']) && (count($this->container['skus']) > 20)) { - $invalidProperties[] = "invalid value for 'skus', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['skus']) && (count($this->container['skus']) < 1)) { - $invalidProperties[] = "invalid value for 'skus', number of items must be greater than or equal to 1."; - } - - if (!is_null($this->container['asins']) && (count($this->container['asins']) > 20)) { - $invalidProperties[] = "invalid value for 'asins', number of items must be less than or equal to 20."; - } - - if (!is_null($this->container['asins']) && (count($this->container['asins']) < 1)) { - $invalidProperties[] = "invalid value for 'asins', number of items must be greater than or equal to 1."; - } - - if (!is_null($this->container['eligibilities']) && (count($this->container['eligibilities']) < 1)) { - $invalidProperties[] = "invalid value for 'eligibilities', number of items must be greater than or equal to 1."; - } - - if ($this->container['program_types'] === null) { - $invalidProperties[] = "'program_types' can't be null"; - } - if ((count($this->container['program_types']) < 1)) { - $invalidProperties[] = "invalid value for 'program_types', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets skus - * - * @return string[]|null - */ - public function getSkus() - { - return $this->container['skus']; - } - - /** - * Sets skus - * - * @param string[]|null $skus A list of SKUs to filter. This filter is only supported for sellers and not for vendors. - * - * @return self - */ - public function setSkus($skus) - { - - if (!is_null($skus) && (count($skus) > 20)) { - throw new \InvalidArgumentException('invalid value for $skus when calling ListOffersRequestFilters., number of items must be less than or equal to 20.'); - } - if (!is_null($skus) && (count($skus) < 1)) { - throw new \InvalidArgumentException('invalid length for $skus when calling ListOffersRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['skus'] = $skus; - - return $this; - } - /** - * Gets asins - * - * @return string[]|null - */ - public function getAsins() - { - return $this->container['asins']; - } - - /** - * Sets asins - * - * @param string[]|null $asins A list of Amazon Standard Identification Numbers (ASINs). - * - * @return self - */ - public function setAsins($asins) - { - - if (!is_null($asins) && (count($asins) > 20)) { - throw new \InvalidArgumentException('invalid value for $asins when calling ListOffersRequestFilters., number of items must be less than or equal to 20.'); - } - if (!is_null($asins) && (count($asins) < 1)) { - throw new \InvalidArgumentException('invalid length for $asins when calling ListOffersRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['asins'] = $asins; - - return $this; - } - /** - * Gets eligibilities - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus[]|null - */ - public function getEligibilities() - { - return $this->container['eligibilities']; - } - - /** - * Sets eligibilities - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus[]|null $eligibilities A list of eligibilities associated with an offer. - * - * @return self - */ - public function setEligibilities($eligibilities) - { - - - if (!is_null($eligibilities) && (count($eligibilities) < 1)) { - throw new \InvalidArgumentException('invalid length for $eligibilities when calling ListOffersRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['eligibilities'] = $eligibilities; - - return $this; - } - /** - * Gets preferences - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\Preference|null - */ - public function getPreferences() - { - return $this->container['preferences']; - } - - /** - * Sets preferences - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\Preference|null $preferences preferences - * - * @return self - */ - public function setPreferences($preferences) - { - $this->container['preferences'] = $preferences; - - return $this; - } - /** - * Gets promotions - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\Promotion|null - */ - public function getPromotions() - { - return $this->container['promotions']; - } - - /** - * Sets promotions - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\Promotion|null $promotions promotions - * - * @return self - */ - public function setPromotions($promotions) - { - $this->container['promotions'] = $promotions; - - return $this; - } - /** - * Gets program_types - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] - */ - public function getProgramTypes() - { - return $this->container['program_types']; - } - - /** - * Sets program_types - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType[] $program_types A list of replenishment program types. - * - * @return self - */ - public function setProgramTypes($program_types) - { - - - if ((count($program_types) < 1)) { - throw new \InvalidArgumentException('invalid length for $program_types when calling ListOffersRequestFilters., number of items must be greater than or equal to 1.'); - } - $this->container['program_types'] = $program_types; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersRequestPagination.php b/lib/Model/ReplenishmentV20221107/ListOffersRequestPagination.php deleted file mode 100644 index 90b276a95..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersRequestPagination.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersRequestPagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersRequestPagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'limit' => 'int', - 'offset' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'limit' => 'int64', - 'offset' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'limit' => 'limit', - 'offset' => 'offset' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'limit' => 'setLimit', - 'offset' => 'setOffset' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'limit' => 'getLimit', - 'offset' => 'getOffset' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['limit'] = $data['limit'] ?? null; - $this->container['offset'] = $data['offset'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['limit'] === null) { - $invalidProperties[] = "'limit' can't be null"; - } - if (($this->container['limit'] > 100)) { - $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 100."; - } - - if (($this->container['limit'] < 1)) { - $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; - } - - if ($this->container['offset'] === null) { - $invalidProperties[] = "'offset' can't be null"; - } - if (($this->container['offset'] > 9000)) { - $invalidProperties[] = "invalid value for 'offset', must be smaller than or equal to 9000."; - } - - if (($this->container['offset'] < 0)) { - $invalidProperties[] = "invalid value for 'offset', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets limit - * - * @return int - */ - public function getLimit() - { - return $this->container['limit']; - } - - /** - * Sets limit - * - * @param int $limit The maximum number of results to return in the response. - * - * @return self - */ - public function setLimit($limit) - { - - if (($limit > 100)) { - throw new \InvalidArgumentException('invalid value for $limit when calling ListOffersRequestPagination., must be smaller than or equal to 100.'); - } - if (($limit < 1)) { - throw new \InvalidArgumentException('invalid value for $limit when calling ListOffersRequestPagination., must be bigger than or equal to 1.'); - } - - $this->container['limit'] = $limit; - - return $this; - } - /** - * Gets offset - * - * @return int - */ - public function getOffset() - { - return $this->container['offset']; - } - - /** - * Sets offset - * - * @param int $offset The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0. - * - * @return self - */ - public function setOffset($offset) - { - - if (($offset > 9000)) { - throw new \InvalidArgumentException('invalid value for $offset when calling ListOffersRequestPagination., must be smaller than or equal to 9000.'); - } - if (($offset < 0)) { - throw new \InvalidArgumentException('invalid value for $offset when calling ListOffersRequestPagination., must be bigger than or equal to 0.'); - } - - $this->container['offset'] = $offset; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersRequestSort.php b/lib/Model/ReplenishmentV20221107/ListOffersRequestSort.php deleted file mode 100644 index f53d8584d..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersRequestSort.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersRequestSort extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersRequestSort'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order' => '\SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder', - 'key' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersSortKey' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order' => null, - 'key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order' => 'order', - 'key' => 'key' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order' => 'setOrder', - 'key' => 'setKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order' => 'getOrder', - 'key' => 'getKey' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order'] = $data['order'] ?? null; - $this->container['key'] = $data['key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order'] === null) { - $invalidProperties[] = "'order' can't be null"; - } - if ($this->container['key'] === null) { - $invalidProperties[] = "'key' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder - */ - public function getOrder() - { - return $this->container['order']; - } - - /** - * Sets order - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\SortOrder $order order - * - * @return self - */ - public function setOrder($order) - { - $this->container['order'] = $order; - - return $this; - } - /** - * Gets key - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersSortKey - */ - public function getKey() - { - return $this->container['key']; - } - - /** - * Sets key - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersSortKey $key key - * - * @return self - */ - public function setKey($key) - { - $this->container['key'] = $key; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersResponse.php b/lib/Model/ReplenishmentV20221107/ListOffersResponse.php deleted file mode 100644 index fca0e230d..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'offers' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponseOffer[]', - 'pagination' => '\SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'offers' => null, - 'pagination' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'offers' => 'offers', - 'pagination' => 'pagination' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'offers' => 'setOffers', - 'pagination' => 'setPagination' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'offers' => 'getOffers', - 'pagination' => 'getPagination' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['offers'] = $data['offers'] ?? null; - $this->container['pagination'] = $data['pagination'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets offers - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponseOffer[]|null - */ - public function getOffers() - { - return $this->container['offers']; - } - - /** - * Sets offers - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ListOffersResponseOffer[]|null $offers A list of offers. - * - * @return self - */ - public function setOffers($offers) - { - $this->container['offers'] = $offers; - - return $this; - } - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\PaginationResponse|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersResponseOffer.php b/lib/Model/ReplenishmentV20221107/ListOffersResponseOffer.php deleted file mode 100644 index 322e53215..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersResponseOffer.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ListOffersResponseOffer extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ListOffersResponseOffer'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'sku' => 'string', - 'asin' => 'string', - 'marketplace_id' => 'string', - 'eligibility' => '\SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus', - 'offer_program_configuration' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfiguration', - 'program_type' => '\SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType', - 'vendor_codes' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'sku' => null, - 'asin' => null, - 'marketplace_id' => null, - 'eligibility' => null, - 'offer_program_configuration' => null, - 'program_type' => null, - 'vendor_codes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'sku' => 'sku', - 'asin' => 'asin', - 'marketplace_id' => 'marketplaceId', - 'eligibility' => 'eligibility', - 'offer_program_configuration' => 'offerProgramConfiguration', - 'program_type' => 'programType', - 'vendor_codes' => 'vendorCodes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'sku' => 'setSku', - 'asin' => 'setAsin', - 'marketplace_id' => 'setMarketplaceId', - 'eligibility' => 'setEligibility', - 'offer_program_configuration' => 'setOfferProgramConfiguration', - 'program_type' => 'setProgramType', - 'vendor_codes' => 'setVendorCodes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'sku' => 'getSku', - 'asin' => 'getAsin', - 'marketplace_id' => 'getMarketplaceId', - 'eligibility' => 'getEligibility', - 'offer_program_configuration' => 'getOfferProgramConfiguration', - 'program_type' => 'getProgramType', - 'vendor_codes' => 'getVendorCodes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sku'] = $data['sku'] ?? null; - $this->container['asin'] = $data['asin'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['eligibility'] = $data['eligibility'] ?? null; - $this->container['offer_program_configuration'] = $data['offer_program_configuration'] ?? null; - $this->container['program_type'] = $data['program_type'] ?? null; - $this->container['vendor_codes'] = $data['vendor_codes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets sku - * - * @return string|null - */ - public function getSku() - { - return $this->container['sku']; - } - - /** - * Sets sku - * - * @param string|null $sku The SKU. This property is only supported for sellers and not for vendors. - * - * @return self - */ - public function setSku($sku) - { - $this->container['sku'] = $sku; - - return $this; - } - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN). - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets eligibility - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus|null - */ - public function getEligibility() - { - return $this->container['eligibility']; - } - - /** - * Sets eligibility - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\EligibilityStatus|null $eligibility eligibility - * - * @return self - */ - public function setEligibility($eligibility) - { - $this->container['eligibility'] = $eligibility; - - return $this; - } - /** - * Gets offer_program_configuration - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfiguration|null - */ - public function getOfferProgramConfiguration() - { - return $this->container['offer_program_configuration']; - } - - /** - * Sets offer_program_configuration - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfiguration|null $offer_program_configuration offer_program_configuration - * - * @return self - */ - public function setOfferProgramConfiguration($offer_program_configuration) - { - $this->container['offer_program_configuration'] = $offer_program_configuration; - - return $this; - } - /** - * Gets program_type - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType|null - */ - public function getProgramType() - { - return $this->container['program_type']; - } - - /** - * Sets program_type - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\ProgramType|null $program_type program_type - * - * @return self - */ - public function setProgramType($program_type) - { - $this->container['program_type'] = $program_type; - - return $this; - } - /** - * Gets vendor_codes - * - * @return string[]|null - */ - public function getVendorCodes() - { - return $this->container['vendor_codes']; - } - - /** - * Sets vendor_codes - * - * @param string[]|null $vendor_codes A list of vendor codes associated with the offer. - * - * @return self - */ - public function setVendorCodes($vendor_codes) - { - $this->container['vendor_codes'] = $vendor_codes; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ListOffersSortKey.php b/lib/Model/ReplenishmentV20221107/ListOffersSortKey.php deleted file mode 100644 index b4fa237df..000000000 --- a/lib/Model/ReplenishmentV20221107/ListOffersSortKey.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/Metric.php b/lib/Model/ReplenishmentV20221107/Metric.php deleted file mode 100644 index cdceebfdd..000000000 --- a/lib/Model/ReplenishmentV20221107/Metric.php +++ /dev/null @@ -1,93 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/OfferProgramConfiguration.php b/lib/Model/ReplenishmentV20221107/OfferProgramConfiguration.php deleted file mode 100644 index da9e2b25a..000000000 --- a/lib/Model/ReplenishmentV20221107/OfferProgramConfiguration.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferProgramConfiguration extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferProgramConfiguration'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'preferences' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPreferences', - 'promotions' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotions', - 'enrollment_method' => '\SellingPartnerApi\Model\ReplenishmentV20221107\EnrollmentMethod' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'preferences' => null, - 'promotions' => null, - 'enrollment_method' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'preferences' => 'preferences', - 'promotions' => 'promotions', - 'enrollment_method' => 'enrollmentMethod' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'preferences' => 'setPreferences', - 'promotions' => 'setPromotions', - 'enrollment_method' => 'setEnrollmentMethod' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'preferences' => 'getPreferences', - 'promotions' => 'getPromotions', - 'enrollment_method' => 'getEnrollmentMethod' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['preferences'] = $data['preferences'] ?? null; - $this->container['promotions'] = $data['promotions'] ?? null; - $this->container['enrollment_method'] = $data['enrollment_method'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets preferences - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPreferences|null - */ - public function getPreferences() - { - return $this->container['preferences']; - } - - /** - * Sets preferences - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPreferences|null $preferences preferences - * - * @return self - */ - public function setPreferences($preferences) - { - $this->container['preferences'] = $preferences; - - return $this; - } - /** - * Gets promotions - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotions|null - */ - public function getPromotions() - { - return $this->container['promotions']; - } - - /** - * Sets promotions - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotions|null $promotions promotions - * - * @return self - */ - public function setPromotions($promotions) - { - $this->container['promotions'] = $promotions; - - return $this; - } - /** - * Gets enrollment_method - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\EnrollmentMethod|null - */ - public function getEnrollmentMethod() - { - return $this->container['enrollment_method']; - } - - /** - * Sets enrollment_method - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\EnrollmentMethod|null $enrollment_method enrollment_method - * - * @return self - */ - public function setEnrollmentMethod($enrollment_method) - { - $this->container['enrollment_method'] = $enrollment_method; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.php b/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.php deleted file mode 100644 index 711d102ef..000000000 --- a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPreferences.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferProgramConfigurationPreferences extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferProgramConfigurationPreferences'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'auto_enrollment' => '\SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'auto_enrollment' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'auto_enrollment' => 'autoEnrollment' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'auto_enrollment' => 'setAutoEnrollment' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'auto_enrollment' => 'getAutoEnrollment' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['auto_enrollment'] = $data['auto_enrollment'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets auto_enrollment - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference|null - */ - public function getAutoEnrollment() - { - return $this->container['auto_enrollment']; - } - - /** - * Sets auto_enrollment - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference|null $auto_enrollment auto_enrollment - * - * @return self - */ - public function setAutoEnrollment($auto_enrollment) - { - $this->container['auto_enrollment'] = $auto_enrollment; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.php b/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.php deleted file mode 100644 index 6996bb820..000000000 --- a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotions.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferProgramConfigurationPromotions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferProgramConfigurationPromotions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_partner_funded_base_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding', - 'selling_partner_funded_tiered_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding', - 'amazon_funded_base_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding', - 'amazon_funded_tiered_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_partner_funded_base_discount' => null, - 'selling_partner_funded_tiered_discount' => null, - 'amazon_funded_base_discount' => null, - 'amazon_funded_tiered_discount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_partner_funded_base_discount' => 'sellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'sellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'amazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'amazonFundedTieredDiscount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_partner_funded_base_discount' => 'setSellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'setSellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'setAmazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'setAmazonFundedTieredDiscount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_partner_funded_base_discount' => 'getSellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'getSellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'getAmazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'getAmazonFundedTieredDiscount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_partner_funded_base_discount'] = $data['selling_partner_funded_base_discount'] ?? null; - $this->container['selling_partner_funded_tiered_discount'] = $data['selling_partner_funded_tiered_discount'] ?? null; - $this->container['amazon_funded_base_discount'] = $data['amazon_funded_base_discount'] ?? null; - $this->container['amazon_funded_tiered_discount'] = $data['amazon_funded_tiered_discount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets selling_partner_funded_base_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null - */ - public function getSellingPartnerFundedBaseDiscount() - { - return $this->container['selling_partner_funded_base_discount']; - } - - /** - * Sets selling_partner_funded_base_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null $selling_partner_funded_base_discount selling_partner_funded_base_discount - * - * @return self - */ - public function setSellingPartnerFundedBaseDiscount($selling_partner_funded_base_discount) - { - $this->container['selling_partner_funded_base_discount'] = $selling_partner_funded_base_discount; - - return $this; - } - /** - * Gets selling_partner_funded_tiered_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null - */ - public function getSellingPartnerFundedTieredDiscount() - { - return $this->container['selling_partner_funded_tiered_discount']; - } - - /** - * Sets selling_partner_funded_tiered_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null $selling_partner_funded_tiered_discount selling_partner_funded_tiered_discount - * - * @return self - */ - public function setSellingPartnerFundedTieredDiscount($selling_partner_funded_tiered_discount) - { - $this->container['selling_partner_funded_tiered_discount'] = $selling_partner_funded_tiered_discount; - - return $this; - } - /** - * Gets amazon_funded_base_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null - */ - public function getAmazonFundedBaseDiscount() - { - return $this->container['amazon_funded_base_discount']; - } - - /** - * Sets amazon_funded_base_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null $amazon_funded_base_discount amazon_funded_base_discount - * - * @return self - */ - public function setAmazonFundedBaseDiscount($amazon_funded_base_discount) - { - $this->container['amazon_funded_base_discount'] = $amazon_funded_base_discount; - - return $this; - } - /** - * Gets amazon_funded_tiered_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null - */ - public function getAmazonFundedTieredDiscount() - { - return $this->container['amazon_funded_tiered_discount']; - } - - /** - * Sets amazon_funded_tiered_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\OfferProgramConfigurationPromotionsDiscountFunding|null $amazon_funded_tiered_discount amazon_funded_tiered_discount - * - * @return self - */ - public function setAmazonFundedTieredDiscount($amazon_funded_tiered_discount) - { - $this->container['amazon_funded_tiered_discount'] = $amazon_funded_tiered_discount; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.php b/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.php deleted file mode 100644 index b08b3d5cc..000000000 --- a/lib/Model/ReplenishmentV20221107/OfferProgramConfigurationPromotionsDiscountFunding.php +++ /dev/null @@ -1,178 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OfferProgramConfigurationPromotionsDiscountFunding extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OfferProgramConfigurationPromotionsDiscountFunding'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'percentage' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'percentage' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'percentage' => 'percentage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'percentage' => 'setPercentage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'percentage' => 'getPercentage' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['percentage'] = $data['percentage'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 1E+2)) { - $invalidProperties[] = "invalid value for 'percentage', must be smaller than or equal to 1E+2."; - } - - if (!is_null($this->container['percentage']) && ($this->container['percentage'] < 0)) { - $invalidProperties[] = "invalid value for 'percentage', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets percentage - * - * @return float|null - */ - public function getPercentage() - { - return $this->container['percentage']; - } - - /** - * Sets percentage - * - * @param float|null $percentage The percentage discount on the offer. - * - * @return self - */ - public function setPercentage($percentage) - { - - if (!is_null($percentage) && ($percentage > 1E+2)) { - throw new \InvalidArgumentException('invalid value for $percentage when calling OfferProgramConfigurationPromotionsDiscountFunding., must be smaller than or equal to 1E+2.'); - } - if (!is_null($percentage) && ($percentage < 0)) { - throw new \InvalidArgumentException('invalid value for $percentage when calling OfferProgramConfigurationPromotionsDiscountFunding., must be bigger than or equal to 0.'); - } - - $this->container['percentage'] = $percentage; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/PaginationResponse.php b/lib/Model/ReplenishmentV20221107/PaginationResponse.php deleted file mode 100644 index 6bb6707b9..000000000 --- a/lib/Model/ReplenishmentV20221107/PaginationResponse.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PaginationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PaginationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_results' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_results' => 'int64' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_results' => 'totalResults' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_results' => 'setTotalResults' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_results' => 'getTotalResults' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_results'] = $data['total_results'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['total_results']) && ($this->container['total_results'] < 0)) { - $invalidProperties[] = "invalid value for 'total_results', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets total_results - * - * @return int|null - */ - public function getTotalResults() - { - return $this->container['total_results']; - } - - /** - * Sets total_results - * - * @param int|null $total_results Total number of results matching the given filter criteria. - * - * @return self - */ - public function setTotalResults($total_results) - { - - if (!is_null($total_results) && ($total_results < 0)) { - throw new \InvalidArgumentException('invalid value for $total_results when calling PaginationResponse., must be bigger than or equal to 0.'); - } - - $this->container['total_results'] = $total_results; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/Preference.php b/lib/Model/ReplenishmentV20221107/Preference.php deleted file mode 100644 index aa30fd16e..000000000 --- a/lib/Model/ReplenishmentV20221107/Preference.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Preference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Preference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'auto_enrollment' => '\SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'auto_enrollment' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'auto_enrollment' => 'autoEnrollment' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'auto_enrollment' => 'setAutoEnrollment' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'auto_enrollment' => 'getAutoEnrollment' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['auto_enrollment'] = $data['auto_enrollment'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['auto_enrollment']) && (count($this->container['auto_enrollment']) < 1)) { - $invalidProperties[] = "invalid value for 'auto_enrollment', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets auto_enrollment - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference[]|null - */ - public function getAutoEnrollment() - { - return $this->container['auto_enrollment']; - } - - /** - * Sets auto_enrollment - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\AutoEnrollmentPreference[]|null $auto_enrollment Filters the results to only include offers with the auto-enrollment preference specified. - * - * @return self - */ - public function setAutoEnrollment($auto_enrollment) - { - - - if (!is_null($auto_enrollment) && (count($auto_enrollment) < 1)) { - throw new \InvalidArgumentException('invalid length for $auto_enrollment when calling Preference., number of items must be greater than or equal to 1.'); - } - $this->container['auto_enrollment'] = $auto_enrollment; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/ProgramType.php b/lib/Model/ReplenishmentV20221107/ProgramType.php deleted file mode 100644 index de7844a25..000000000 --- a/lib/Model/ReplenishmentV20221107/ProgramType.php +++ /dev/null @@ -1,85 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/Promotion.php b/lib/Model/ReplenishmentV20221107/Promotion.php deleted file mode 100644 index 82b703690..000000000 --- a/lib/Model/ReplenishmentV20221107/Promotion.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Promotion extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Promotion'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_partner_funded_base_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding', - 'selling_partner_funded_tiered_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding', - 'amazon_funded_base_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding', - 'amazon_funded_tiered_discount' => '\SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_partner_funded_base_discount' => null, - 'selling_partner_funded_tiered_discount' => null, - 'amazon_funded_base_discount' => null, - 'amazon_funded_tiered_discount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_partner_funded_base_discount' => 'sellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'sellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'amazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'amazonFundedTieredDiscount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_partner_funded_base_discount' => 'setSellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'setSellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'setAmazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'setAmazonFundedTieredDiscount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_partner_funded_base_discount' => 'getSellingPartnerFundedBaseDiscount', - 'selling_partner_funded_tiered_discount' => 'getSellingPartnerFundedTieredDiscount', - 'amazon_funded_base_discount' => 'getAmazonFundedBaseDiscount', - 'amazon_funded_tiered_discount' => 'getAmazonFundedTieredDiscount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_partner_funded_base_discount'] = $data['selling_partner_funded_base_discount'] ?? null; - $this->container['selling_partner_funded_tiered_discount'] = $data['selling_partner_funded_tiered_discount'] ?? null; - $this->container['amazon_funded_base_discount'] = $data['amazon_funded_base_discount'] ?? null; - $this->container['amazon_funded_tiered_discount'] = $data['amazon_funded_tiered_discount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets selling_partner_funded_base_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null - */ - public function getSellingPartnerFundedBaseDiscount() - { - return $this->container['selling_partner_funded_base_discount']; - } - - /** - * Sets selling_partner_funded_base_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null $selling_partner_funded_base_discount selling_partner_funded_base_discount - * - * @return self - */ - public function setSellingPartnerFundedBaseDiscount($selling_partner_funded_base_discount) - { - $this->container['selling_partner_funded_base_discount'] = $selling_partner_funded_base_discount; - - return $this; - } - /** - * Gets selling_partner_funded_tiered_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null - */ - public function getSellingPartnerFundedTieredDiscount() - { - return $this->container['selling_partner_funded_tiered_discount']; - } - - /** - * Sets selling_partner_funded_tiered_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null $selling_partner_funded_tiered_discount selling_partner_funded_tiered_discount - * - * @return self - */ - public function setSellingPartnerFundedTieredDiscount($selling_partner_funded_tiered_discount) - { - $this->container['selling_partner_funded_tiered_discount'] = $selling_partner_funded_tiered_discount; - - return $this; - } - /** - * Gets amazon_funded_base_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null - */ - public function getAmazonFundedBaseDiscount() - { - return $this->container['amazon_funded_base_discount']; - } - - /** - * Sets amazon_funded_base_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null $amazon_funded_base_discount amazon_funded_base_discount - * - * @return self - */ - public function setAmazonFundedBaseDiscount($amazon_funded_base_discount) - { - $this->container['amazon_funded_base_discount'] = $amazon_funded_base_discount; - - return $this; - } - /** - * Gets amazon_funded_tiered_discount - * - * @return \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null - */ - public function getAmazonFundedTieredDiscount() - { - return $this->container['amazon_funded_tiered_discount']; - } - - /** - * Sets amazon_funded_tiered_discount - * - * @param \SellingPartnerApi\Model\ReplenishmentV20221107\DiscountFunding|null $amazon_funded_tiered_discount amazon_funded_tiered_discount - * - * @return self - */ - public function setAmazonFundedTieredDiscount($amazon_funded_tiered_discount) - { - $this->container['amazon_funded_tiered_discount'] = $amazon_funded_tiered_discount; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/SortOrder.php b/lib/Model/ReplenishmentV20221107/SortOrder.php deleted file mode 100644 index ebd9534f2..000000000 --- a/lib/Model/ReplenishmentV20221107/SortOrder.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/TimeInterval.php b/lib/Model/ReplenishmentV20221107/TimeInterval.php deleted file mode 100644 index 0d73cdc24..000000000 --- a/lib/Model/ReplenishmentV20221107/TimeInterval.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TimeInterval extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TimeInterval'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_date' => 'string', - 'end_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_date' => null, - 'end_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_date' => 'startDate', - 'end_date' => 'endDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_date'] = $data['start_date'] ?? null; - $this->container['end_date'] = $data['end_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_date'] === null) { - $invalidProperties[] = "'start_date' can't be null"; - } - if ($this->container['end_date'] === null) { - $invalidProperties[] = "'end_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets start_date - * - * @return string - */ - public function getStartDate() - { - return $this->container['start_date']; - } - - /** - * Sets start_date - * - * @param string $start_date When this object is used as a request parameter, the specified startDate is adjusted based on the aggregation frequency. * For WEEK the metric is computed from the first day of the week (that is, Sunday based on ISO 8601) that contains the startDate. * For MONTH the metric is computed from the first day of the month that contains the startDate. * For QUARTER the metric is computed from the first day of the quarter that contains the startDate. * For YEAR the metric is computed from the first day of the year that contains the startDate. - * - * @return self - */ - public function setStartDate($start_date) - { - $this->container['start_date'] = $start_date; - - return $this; - } - /** - * Gets end_date - * - * @return string - */ - public function getEndDate() - { - return $this->container['end_date']; - } - - /** - * Sets end_date - * - * @param string $end_date When this object is used as a request parameter, the specified endDate is adjusted based on the aggregation frequency. * For WEEK the metric is computed up to the last day of the week (that is, Sunday based on ISO 8601) that contains the endDate. * For MONTH, the metric is computed up to the last day that contains the endDate. * For QUARTER the metric is computed up to the last day of the quarter that contains the endDate. * For YEAR the metric is computed up to the last day of the year that contains the endDate. Note: The end date may be adjusted to a lower value based on the data available in our system. - * - * @return self - */ - public function setEndDate($end_date) - { - $this->container['end_date'] = $end_date; - - return $this; - } -} - - diff --git a/lib/Model/ReplenishmentV20221107/TimePeriodType.php b/lib/Model/ReplenishmentV20221107/TimePeriodType.php deleted file mode 100644 index c2e7f1d62..000000000 --- a/lib/Model/ReplenishmentV20221107/TimePeriodType.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ReportsV20210630/CreateReportResponse.php b/lib/Model/ReportsV20210630/CreateReportResponse.php deleted file mode 100644 index ef63c8e78..000000000 --- a/lib/Model/ReportsV20210630/CreateReportResponse.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReportResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReportResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'report_id' => 'reportId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'report_id' => 'setReportId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'report_id' => 'getReportId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_id'] = $data['report_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_id'] === null) { - $invalidProperties[] = "'report_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets report_id - * - * @return string - */ - public function getReportId() - { - return $this->container['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. - * - * @return self - */ - public function setReportId($report_id) - { - $this->container['report_id'] = $report_id; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/CreateReportScheduleResponse.php b/lib/Model/ReportsV20210630/CreateReportScheduleResponse.php deleted file mode 100644 index 10911ff34..000000000 --- a/lib/Model/ReportsV20210630/CreateReportScheduleResponse.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReportScheduleResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReportScheduleResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_schedule_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_schedule_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'report_schedule_id' => 'reportScheduleId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'report_schedule_id' => 'setReportScheduleId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'report_schedule_id' => 'getReportScheduleId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_schedule_id'] = $data['report_schedule_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_schedule_id'] === null) { - $invalidProperties[] = "'report_schedule_id' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets report_schedule_id - * - * @return string - */ - public function getReportScheduleId() - { - return $this->container['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. - * - * @return self - */ - public function setReportScheduleId($report_schedule_id) - { - $this->container['report_schedule_id'] = $report_schedule_id; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/CreateReportScheduleSpecification.php b/lib/Model/ReportsV20210630/CreateReportScheduleSpecification.php deleted file mode 100644 index 5c5c738b6..000000000 --- a/lib/Model/ReportsV20210630/CreateReportScheduleSpecification.php +++ /dev/null @@ -1,377 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReportScheduleSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReportScheduleSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_type' => 'string', - 'marketplace_ids' => 'string[]', - 'report_options' => 'map[string,string]', - 'period' => 'string', - 'next_report_creation_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_type' => null, - 'marketplace_ids' => null, - 'report_options' => null, - 'period' => null, - 'next_report_creation_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'report_type' => 'reportType', - 'marketplace_ids' => 'marketplaceIds', - 'report_options' => 'reportOptions', - 'period' => 'period', - 'next_report_creation_time' => 'nextReportCreationTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'report_type' => 'setReportType', - 'marketplace_ids' => 'setMarketplaceIds', - 'report_options' => 'setReportOptions', - 'period' => 'setPeriod', - 'next_report_creation_time' => 'setNextReportCreationTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'report_type' => 'getReportType', - 'marketplace_ids' => 'getMarketplaceIds', - 'report_options' => 'getReportOptions', - 'period' => 'getPeriod', - 'next_report_creation_time' => 'getNextReportCreationTime' - ]; - - - - 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 - * - * @return string[] - */ - public function getPeriodAllowableValues() - { - $baseVals = [ - self::PERIOD_PT5_M, - self::PERIOD_PT15_M, - self::PERIOD_PT30_M, - self::PERIOD_PT1_H, - self::PERIOD_PT2_H, - self::PERIOD_PT4_H, - self::PERIOD_PT8_H, - self::PERIOD_PT12_H, - self::PERIOD_P1_D, - self::PERIOD_P2_D, - self::PERIOD_P3_D, - self::PERIOD_PT84_H, - self::PERIOD_P7_D, - self::PERIOD_P14_D, - self::PERIOD_P15_D, - self::PERIOD_P18_D, - self::PERIOD_P30_D, - self::PERIOD_P1_M, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_type'] = $data['report_type'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['report_options'] = $data['report_options'] ?? null; - $this->container['period'] = $data['period'] ?? null; - $this->container['next_report_creation_time'] = $data['next_report_creation_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_type'] === null) { - $invalidProperties[] = "'report_type' can't be null"; - } - if ($this->container['marketplace_ids'] === null) { - $invalidProperties[] = "'marketplace_ids' can't be null"; - } - if ((count($this->container['marketplace_ids']) > 25)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be less than or equal to 25."; - } - - if ((count($this->container['marketplace_ids']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be greater than or equal to 1."; - } - - if ($this->container['period'] === null) { - $invalidProperties[] = "'period' can't be null"; - } - $allowedValues = $this->getPeriodAllowableValues(); - if ( - !is_null($this->container['period']) && - !in_array(strtoupper($this->container['period']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'period', must be one of '%s'", - $this->container['period'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets report_type - * - * @return string - */ - public function getReportType() - { - return $this->container['report_type']; - } - - /** - * Sets report_type - * - * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. - * - * @return self - */ - public function setReportType($report_type) - { - $this->container['report_type'] = $report_type; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[] - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[] $marketplace_ids A list of marketplace identifiers for the report schedule. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - - if ((count($marketplace_ids) > 25)) { - throw new \InvalidArgumentException('invalid value for $marketplace_ids when calling CreateReportScheduleSpecification., number of items must be less than or equal to 25.'); - } - if ((count($marketplace_ids) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_ids when calling CreateReportScheduleSpecification., number of items must be greater than or equal to 1.'); - } - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets report_options - * - * @return map[string,string]|null - */ - public function getReportOptions() - { - return $this->container['report_options']; - } - - /** - * Sets report_options - * - * @param map[string,string]|null $report_options Additional information passed to reports. This varies by report type. - * - * @return self - */ - public function setReportOptions($report_options) - { - $this->container['report_options'] = $report_options; - - return $this; - } - /** - * Gets period - * - * @return string - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param string $period One of a set of predefined ISO 8601 periods that specifies how often a report should be created. - * - * @return self - */ - public function setPeriod($period) - { - $allowedValues = $this->getPeriodAllowableValues(); - if (!in_array(strtoupper($period), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'period', must be one of '%s'", - $period, - implode("', '", $allowedValues) - ) - ); - } - $this->container['period'] = $period; - - return $this; - } - /** - * Gets next_report_creation_time - * - * @return string|null - */ - public function getNextReportCreationTime() - { - return $this->container['next_report_creation_time']; - } - - /** - * Sets next_report_creation_time - * - * @param string|null $next_report_creation_time The date and time when the schedule will create its next report, in ISO 8601 date time format. - * - * @return self - */ - public function setNextReportCreationTime($next_report_creation_time) - { - $this->container['next_report_creation_time'] = $next_report_creation_time; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/CreateReportSpecification.php b/lib/Model/ReportsV20210630/CreateReportSpecification.php deleted file mode 100644 index 111732347..000000000 --- a/lib/Model/ReportsV20210630/CreateReportSpecification.php +++ /dev/null @@ -1,299 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReportSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReportSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_options' => 'map[string,string]', - 'report_type' => 'string', - 'data_start_time' => 'string', - 'data_end_time' => 'string', - 'marketplace_ids' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_options' => null, - 'report_type' => null, - 'data_start_time' => null, - 'data_end_time' => null, - 'marketplace_ids' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'report_options' => 'reportOptions', - 'report_type' => 'reportType', - 'data_start_time' => 'dataStartTime', - 'data_end_time' => 'dataEndTime', - 'marketplace_ids' => 'marketplaceIds' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'report_options' => 'setReportOptions', - 'report_type' => 'setReportType', - 'data_start_time' => 'setDataStartTime', - 'data_end_time' => 'setDataEndTime', - 'marketplace_ids' => 'setMarketplaceIds' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'report_options' => 'getReportOptions', - 'report_type' => 'getReportType', - 'data_start_time' => 'getDataStartTime', - 'data_end_time' => 'getDataEndTime', - 'marketplace_ids' => 'getMarketplaceIds' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_options'] = $data['report_options'] ?? null; - $this->container['report_type'] = $data['report_type'] ?? null; - $this->container['data_start_time'] = $data['data_start_time'] ?? null; - $this->container['data_end_time'] = $data['data_end_time'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_type'] === null) { - $invalidProperties[] = "'report_type' can't be null"; - } - if ($this->container['marketplace_ids'] === null) { - $invalidProperties[] = "'marketplace_ids' can't be null"; - } - if ((count($this->container['marketplace_ids']) > 25)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be less than or equal to 25."; - } - - if ((count($this->container['marketplace_ids']) < 1)) { - $invalidProperties[] = "invalid value for 'marketplace_ids', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets report_options - * - * @return map[string,string]|null - */ - public function getReportOptions() - { - return $this->container['report_options']; - } - - /** - * Sets report_options - * - * @param map[string,string]|null $report_options Additional information passed to reports. This varies by report type. - * - * @return self - */ - public function setReportOptions($report_options) - { - $this->container['report_options'] = $report_options; - - return $this; - } - /** - * Gets report_type - * - * @return string - */ - public function getReportType() - { - return $this->container['report_type']; - } - - /** - * Sets report_type - * - * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. - * - * @return self - */ - public function setReportType($report_type) - { - $this->container['report_type'] = $report_type; - - return $this; - } - /** - * Gets data_start_time - * - * @return string|null - */ - public function getDataStartTime() - { - return $this->container['data_start_time']; - } - - /** - * Sets data_start_time - * - * @param string|null $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. - * - * @return self - */ - public function setDataStartTime($data_start_time) - { - $this->container['data_start_time'] = $data_start_time; - - return $this; - } - /** - * Gets data_end_time - * - * @return string|null - */ - public function getDataEndTime() - { - return $this->container['data_end_time']; - } - - /** - * Sets data_end_time - * - * @param string|null $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. - * - * @return self - */ - public function setDataEndTime($data_end_time) - { - $this->container['data_end_time'] = $data_end_time; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[] - */ - public function getMarketplaceIds() - { - return $this->container['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. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - - if ((count($marketplace_ids) > 25)) { - throw new \InvalidArgumentException('invalid value for $marketplace_ids when calling CreateReportSpecification., number of items must be less than or equal to 25.'); - } - if ((count($marketplace_ids) < 1)) { - throw new \InvalidArgumentException('invalid length for $marketplace_ids when calling CreateReportSpecification., number of items must be greater than or equal to 1.'); - } - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/Error.php b/lib/Model/ReportsV20210630/Error.php deleted file mode 100644 index 0c87b1ef3..000000000 --- a/lib/Model/ReportsV20210630/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/ErrorList.php b/lib/Model/ReportsV20210630/ErrorList.php deleted file mode 100644 index 17577dfde..000000000 --- a/lib/Model/ReportsV20210630/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ReportsV20210630\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ReportsV20210630\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ReportsV20210630\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/GetReportsResponse.php b/lib/Model/ReportsV20210630/GetReportsResponse.php deleted file mode 100644 index 08373c802..000000000 --- a/lib/Model/ReportsV20210630/GetReportsResponse.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetReportsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetReportsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reports' => '\SellingPartnerApi\Model\ReportsV20210630\Report[]', - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reports' => null, - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'reports' => 'reports', - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'reports' => 'setReports', - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'reports' => 'getReports', - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reports'] = $data['reports'] ?? null; - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['reports'] === null) { - $invalidProperties[] = "'reports' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets reports - * - * @return \SellingPartnerApi\Model\ReportsV20210630\Report[] - */ - public function getReports() - { - return $this->container['reports']; - } - - /** - * Sets reports - * - * @param \SellingPartnerApi\Model\ReportsV20210630\Report[] $reports A list of reports. - * - * @return self - */ - public function setReports($reports) - { - $this->container['reports'] = $reports; - - return $this; - } - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $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. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/Report.php b/lib/Model/ReportsV20210630/Report.php deleted file mode 100644 index 26ed11a44..000000000 --- a/lib/Model/ReportsV20210630/Report.php +++ /dev/null @@ -1,539 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Report extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Report'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_ids' => 'string[]', - 'report_id' => 'string', - 'report_type' => 'string', - 'data_start_time' => 'string', - 'data_end_time' => 'string', - 'report_schedule_id' => 'string', - 'created_time' => 'string', - 'processing_status' => 'string', - 'processing_start_time' => 'string', - 'processing_end_time' => 'string', - 'report_document_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_ids' => null, - 'report_id' => null, - 'report_type' => null, - 'data_start_time' => null, - 'data_end_time' => null, - 'report_schedule_id' => null, - 'created_time' => null, - 'processing_status' => null, - 'processing_start_time' => null, - 'processing_end_time' => null, - 'report_document_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'marketplace_ids' => 'marketplaceIds', - 'report_id' => 'reportId', - 'report_type' => 'reportType', - 'data_start_time' => 'dataStartTime', - 'data_end_time' => 'dataEndTime', - 'report_schedule_id' => 'reportScheduleId', - 'created_time' => 'createdTime', - 'processing_status' => 'processingStatus', - 'processing_start_time' => 'processingStartTime', - 'processing_end_time' => 'processingEndTime', - 'report_document_id' => 'reportDocumentId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'marketplace_ids' => 'setMarketplaceIds', - 'report_id' => 'setReportId', - 'report_type' => 'setReportType', - 'data_start_time' => 'setDataStartTime', - 'data_end_time' => 'setDataEndTime', - 'report_schedule_id' => 'setReportScheduleId', - 'created_time' => 'setCreatedTime', - 'processing_status' => 'setProcessingStatus', - 'processing_start_time' => 'setProcessingStartTime', - 'processing_end_time' => 'setProcessingEndTime', - 'report_document_id' => 'setReportDocumentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'marketplace_ids' => 'getMarketplaceIds', - 'report_id' => 'getReportId', - 'report_type' => 'getReportType', - 'data_start_time' => 'getDataStartTime', - 'data_end_time' => 'getDataEndTime', - 'report_schedule_id' => 'getReportScheduleId', - 'created_time' => 'getCreatedTime', - 'processing_status' => 'getProcessingStatus', - 'processing_start_time' => 'getProcessingStartTime', - 'processing_end_time' => 'getProcessingEndTime', - 'report_document_id' => 'getReportDocumentId' - ]; - - - - 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'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getProcessingStatusAllowableValues() - { - $baseVals = [ - self::PROCESSING_STATUS_CANCELLED, - self::PROCESSING_STATUS_DONE, - self::PROCESSING_STATUS_FATAL, - self::PROCESSING_STATUS_IN_PROGRESS, - self::PROCESSING_STATUS_IN_QUEUE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['report_id'] = $data['report_id'] ?? null; - $this->container['report_type'] = $data['report_type'] ?? null; - $this->container['data_start_time'] = $data['data_start_time'] ?? null; - $this->container['data_end_time'] = $data['data_end_time'] ?? null; - $this->container['report_schedule_id'] = $data['report_schedule_id'] ?? null; - $this->container['created_time'] = $data['created_time'] ?? null; - $this->container['processing_status'] = $data['processing_status'] ?? null; - $this->container['processing_start_time'] = $data['processing_start_time'] ?? null; - $this->container['processing_end_time'] = $data['processing_end_time'] ?? null; - $this->container['report_document_id'] = $data['report_document_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_id'] === null) { - $invalidProperties[] = "'report_id' can't be null"; - } - if ($this->container['report_type'] === null) { - $invalidProperties[] = "'report_type' can't be null"; - } - if ($this->container['created_time'] === null) { - $invalidProperties[] = "'created_time' can't be null"; - } - if ($this->container['processing_status'] === null) { - $invalidProperties[] = "'processing_status' can't be null"; - } - $allowedValues = $this->getProcessingStatusAllowableValues(); - if ( - !is_null($this->container['processing_status']) && - !in_array(strtoupper($this->container['processing_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'processing_status', must be one of '%s'", - $this->container['processing_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets marketplace_ids - * - * @return string[]|null - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[]|null $marketplace_ids A list of marketplace identifiers for the report. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets report_id - * - * @return string - */ - public function getReportId() - { - return $this->container['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. - * - * @return self - */ - public function setReportId($report_id) - { - $this->container['report_id'] = $report_id; - - return $this; - } - /** - * Gets report_type - * - * @return string - */ - public function getReportType() - { - return $this->container['report_type']; - } - - /** - * Sets report_type - * - * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. - * - * @return self - */ - public function setReportType($report_type) - { - $this->container['report_type'] = $report_type; - - return $this; - } - /** - * Gets data_start_time - * - * @return string|null - */ - public function getDataStartTime() - { - return $this->container['data_start_time']; - } - - /** - * Sets data_start_time - * - * @param string|null $data_start_time The start of a date and time range used for selecting the data to report. Must be in ISO 8601 format. - * - * @return self - */ - public function setDataStartTime($data_start_time) - { - $this->container['data_start_time'] = $data_start_time; - - return $this; - } - /** - * Gets data_end_time - * - * @return string|null - */ - public function getDataEndTime() - { - return $this->container['data_end_time']; - } - - /** - * Sets data_end_time - * - * @param string|null $data_end_time The end of a date and time range used for selecting the data to report. Must be in ISO 8601 format. - * - * @return self - */ - public function setDataEndTime($data_end_time) - { - $this->container['data_end_time'] = $data_end_time; - - return $this; - } - /** - * Gets report_schedule_id - * - * @return string|null - */ - public function getReportScheduleId() - { - return $this->container['report_schedule_id']; - } - - /** - * Sets report_schedule_id - * - * @param string|null $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. - * - * @return self - */ - public function setReportScheduleId($report_schedule_id) - { - $this->container['report_schedule_id'] = $report_schedule_id; - - return $this; - } - /** - * Gets created_time - * - * @return string - */ - public function getCreatedTime() - { - return $this->container['created_time']; - } - - /** - * Sets created_time - * - * @param string $created_time The date and time when the report was created. - * - * @return self - */ - public function setCreatedTime($created_time) - { - $this->container['created_time'] = $created_time; - - return $this; - } - /** - * Gets processing_status - * - * @return string - */ - public function getProcessingStatus() - { - return $this->container['processing_status']; - } - - /** - * Sets processing_status - * - * @param string $processing_status The processing status of the report. - * - * @return self - */ - public function setProcessingStatus($processing_status) - { - $allowedValues = $this->getProcessingStatusAllowableValues(); - if (!in_array(strtoupper($processing_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'processing_status', must be one of '%s'", - $processing_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['processing_status'] = $processing_status; - - return $this; - } - /** - * Gets processing_start_time - * - * @return string|null - */ - public function getProcessingStartTime() - { - return $this->container['processing_start_time']; - } - - /** - * Sets processing_start_time - * - * @param string|null $processing_start_time The date and time when the report processing started, in ISO 8601 date time format. - * - * @return self - */ - public function setProcessingStartTime($processing_start_time) - { - $this->container['processing_start_time'] = $processing_start_time; - - return $this; - } - /** - * Gets processing_end_time - * - * @return string|null - */ - public function getProcessingEndTime() - { - return $this->container['processing_end_time']; - } - - /** - * Sets processing_end_time - * - * @param string|null $processing_end_time The date and time when the report processing completed, in ISO 8601 date time format. - * - * @return self - */ - public function setProcessingEndTime($processing_end_time) - { - $this->container['processing_end_time'] = $processing_end_time; - - return $this; - } - /** - * Gets report_document_id - * - * @return string|null - */ - public function getReportDocumentId() - { - return $this->container['report_document_id']; - } - - /** - * Sets report_document_id - * - * @param string|null $report_document_id The identifier for the report document. Pass this into the getReportDocument operation to get the information you will need to retrieve the report document's contents. - * - * @return self - */ - public function setReportDocumentId($report_document_id) - { - $this->container['report_document_id'] = $report_document_id; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/ReportDocument.php b/lib/Model/ReportsV20210630/ReportDocument.php deleted file mode 100644 index c6bc16df5..000000000 --- a/lib/Model/ReportsV20210630/ReportDocument.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReportDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReportDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_document_id' => 'string', - 'url' => 'string', - 'compression_algorithm' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_document_id' => null, - 'url' => null, - 'compression_algorithm' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'report_document_id' => 'reportDocumentId', - 'url' => 'url', - 'compression_algorithm' => 'compressionAlgorithm' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'report_document_id' => 'setReportDocumentId', - 'url' => 'setUrl', - 'compression_algorithm' => 'setCompressionAlgorithm' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'report_document_id' => 'getReportDocumentId', - 'url' => 'getUrl', - 'compression_algorithm' => 'getCompressionAlgorithm' - ]; - - - - const COMPRESSION_ALGORITHM_GZIP = 'GZIP'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionAlgorithmAllowableValues() - { - $baseVals = [ - self::COMPRESSION_ALGORITHM_GZIP, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_document_id'] = $data['report_document_id'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['compression_algorithm'] = $data['compression_algorithm'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_document_id'] === null) { - $invalidProperties[] = "'report_document_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - $allowedValues = $this->getCompressionAlgorithmAllowableValues(); - if ( - !is_null($this->container['compression_algorithm']) && - !in_array(strtoupper($this->container['compression_algorithm']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_algorithm', must be one of '%s'", - $this->container['compression_algorithm'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets report_document_id - * - * @return string - */ - public function getReportDocumentId() - { - return $this->container['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. - * - * @return self - */ - public function setReportDocumentId($report_document_id) - { - $this->container['report_document_id'] = $report_document_id; - - return $this; - } - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url A presigned URL for the report document. If `compressionAlgorithm` is not returned, you can download the report directly from this URL. This URL expires after 5 minutes. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Gets compression_algorithm - * - * @return string|null - */ - public function getCompressionAlgorithm() - { - return $this->container['compression_algorithm']; - } - - /** - * Sets compression_algorithm - * - * @param string|null $compression_algorithm If the report document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the report when you download. Otherwise, you can download the report directly. Refer to [Step 2. Download the report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-retrieve-a-report#step-2-download-the-report) in the use case guide, where sample code is provided. - * - * @return self - */ - public function setCompressionAlgorithm($compression_algorithm) - { - $allowedValues = $this->getCompressionAlgorithmAllowableValues(); - if (!is_null($compression_algorithm) &&!in_array(strtoupper($compression_algorithm), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_algorithm', must be one of '%s'", - $compression_algorithm, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_algorithm'] = $compression_algorithm; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/ReportSchedule.php b/lib/Model/ReportsV20210630/ReportSchedule.php deleted file mode 100644 index 31714f8ea..000000000 --- a/lib/Model/ReportsV20210630/ReportSchedule.php +++ /dev/null @@ -1,341 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReportSchedule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReportSchedule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_schedule_id' => 'string', - 'report_type' => 'string', - 'marketplace_ids' => 'string[]', - 'report_options' => 'map[string,string]', - 'period' => 'string', - 'next_report_creation_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_schedule_id' => null, - 'report_type' => null, - 'marketplace_ids' => null, - 'report_options' => null, - 'period' => null, - 'next_report_creation_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'report_schedule_id' => 'reportScheduleId', - 'report_type' => 'reportType', - 'marketplace_ids' => 'marketplaceIds', - 'report_options' => 'reportOptions', - 'period' => 'period', - 'next_report_creation_time' => 'nextReportCreationTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'report_schedule_id' => 'setReportScheduleId', - 'report_type' => 'setReportType', - 'marketplace_ids' => 'setMarketplaceIds', - 'report_options' => 'setReportOptions', - 'period' => 'setPeriod', - 'next_report_creation_time' => 'setNextReportCreationTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'report_schedule_id' => 'getReportScheduleId', - 'report_type' => 'getReportType', - 'marketplace_ids' => 'getMarketplaceIds', - 'report_options' => 'getReportOptions', - 'period' => 'getPeriod', - 'next_report_creation_time' => 'getNextReportCreationTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_schedule_id'] = $data['report_schedule_id'] ?? null; - $this->container['report_type'] = $data['report_type'] ?? null; - $this->container['marketplace_ids'] = $data['marketplace_ids'] ?? null; - $this->container['report_options'] = $data['report_options'] ?? null; - $this->container['period'] = $data['period'] ?? null; - $this->container['next_report_creation_time'] = $data['next_report_creation_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_schedule_id'] === null) { - $invalidProperties[] = "'report_schedule_id' can't be null"; - } - if ($this->container['report_type'] === null) { - $invalidProperties[] = "'report_type' can't be null"; - } - if ($this->container['period'] === null) { - $invalidProperties[] = "'period' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets report_schedule_id - * - * @return string - */ - public function getReportScheduleId() - { - return $this->container['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. - * - * @return self - */ - public function setReportScheduleId($report_schedule_id) - { - $this->container['report_schedule_id'] = $report_schedule_id; - - return $this; - } - /** - * Gets report_type - * - * @return string - */ - public function getReportType() - { - return $this->container['report_type']; - } - - /** - * Sets report_type - * - * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. - * - * @return self - */ - public function setReportType($report_type) - { - $this->container['report_type'] = $report_type; - - return $this; - } - /** - * Gets marketplace_ids - * - * @return string[]|null - */ - public function getMarketplaceIds() - { - return $this->container['marketplace_ids']; - } - - /** - * Sets marketplace_ids - * - * @param string[]|null $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. - * - * @return self - */ - public function setMarketplaceIds($marketplace_ids) - { - $this->container['marketplace_ids'] = $marketplace_ids; - - return $this; - } - /** - * Gets report_options - * - * @return map[string,string]|null - */ - public function getReportOptions() - { - return $this->container['report_options']; - } - - /** - * Sets report_options - * - * @param map[string,string]|null $report_options Additional information passed to reports. This varies by report type. - * - * @return self - */ - public function setReportOptions($report_options) - { - $this->container['report_options'] = $report_options; - - return $this; - } - /** - * Gets period - * - * @return string - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param string $period An ISO 8601 period value that indicates how often a report should be created. - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - /** - * Gets next_report_creation_time - * - * @return string|null - */ - public function getNextReportCreationTime() - { - return $this->container['next_report_creation_time']; - } - - /** - * Sets next_report_creation_time - * - * @param string|null $next_report_creation_time The date and time when the schedule will create its next report, in ISO 8601 date time format. - * - * @return self - */ - public function setNextReportCreationTime($next_report_creation_time) - { - $this->container['next_report_creation_time'] = $next_report_creation_time; - - return $this; - } -} - - diff --git a/lib/Model/ReportsV20210630/ReportScheduleList.php b/lib/Model/ReportsV20210630/ReportScheduleList.php deleted file mode 100644 index 6bc2d1d21..000000000 --- a/lib/Model/ReportsV20210630/ReportScheduleList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ReportScheduleList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ReportScheduleList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'report_schedules' => '\SellingPartnerApi\Model\ReportsV20210630\ReportSchedule[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'report_schedules' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'report_schedules' => 'reportSchedules' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'report_schedules' => 'setReportSchedules' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'report_schedules' => 'getReportSchedules' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['report_schedules'] = $data['report_schedules'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['report_schedules'] === null) { - $invalidProperties[] = "'report_schedules' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets report_schedules - * - * @return \SellingPartnerApi\Model\ReportsV20210630\ReportSchedule[] - */ - public function getReportSchedules() - { - return $this->container['report_schedules']; - } - - /** - * Sets report_schedules - * - * @param \SellingPartnerApi\Model\ReportsV20210630\ReportSchedule[] $report_schedules report_schedules - * - * @return self - */ - public function setReportSchedules($report_schedules) - { - $this->container['report_schedules'] = $report_schedules; - - return $this; - } -} - - diff --git a/lib/Model/SalesV1/Error.php b/lib/Model/SalesV1/Error.php deleted file mode 100644 index 4827797db..000000000 --- a/lib/Model/SalesV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/SalesV1/GetOrderMetricsResponse.php b/lib/Model/SalesV1/GetOrderMetricsResponse.php deleted file mode 100644 index 38188888a..000000000 --- a/lib/Model/SalesV1/GetOrderMetricsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderMetricsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderMetricsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\SalesV1\OrderMetricsInterval[]', - 'errors' => '\SellingPartnerApi\Model\SalesV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\SalesV1\OrderMetricsInterval[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\SalesV1\OrderMetricsInterval[]|null $payload A set of order metrics, each scoped to a particular time interval. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SalesV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SalesV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SalesV1/Money.php b/lib/Model/SalesV1/Money.php deleted file mode 100644 index 01a7f0632..000000000 --- a/lib/Model/SalesV1/Money.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three-digit currency code. In ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string $amount A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/SalesV1/OrderMetricsInterval.php b/lib/Model/SalesV1/OrderMetricsInterval.php deleted file mode 100644 index 52c6c6f0d..000000000 --- a/lib/Model/SalesV1/OrderMetricsInterval.php +++ /dev/null @@ -1,325 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderMetricsInterval extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderMetricsInterval'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'interval' => 'string', - 'unit_count' => 'int', - 'order_item_count' => 'int', - 'order_count' => 'int', - 'average_unit_price' => '\SellingPartnerApi\Model\SalesV1\Money', - 'total_sales' => '\SellingPartnerApi\Model\SalesV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'interval' => null, - 'unit_count' => null, - 'order_item_count' => null, - 'order_count' => null, - 'average_unit_price' => null, - 'total_sales' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'interval' => 'interval', - 'unit_count' => 'unitCount', - 'order_item_count' => 'orderItemCount', - 'order_count' => 'orderCount', - 'average_unit_price' => 'averageUnitPrice', - 'total_sales' => 'totalSales' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'interval' => 'setInterval', - 'unit_count' => 'setUnitCount', - 'order_item_count' => 'setOrderItemCount', - 'order_count' => 'setOrderCount', - 'average_unit_price' => 'setAverageUnitPrice', - 'total_sales' => 'setTotalSales' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'interval' => 'getInterval', - 'unit_count' => 'getUnitCount', - 'order_item_count' => 'getOrderItemCount', - 'order_count' => 'getOrderCount', - 'average_unit_price' => 'getAverageUnitPrice', - 'total_sales' => 'getTotalSales' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['interval'] = $data['interval'] ?? null; - $this->container['unit_count'] = $data['unit_count'] ?? null; - $this->container['order_item_count'] = $data['order_item_count'] ?? null; - $this->container['order_count'] = $data['order_count'] ?? null; - $this->container['average_unit_price'] = $data['average_unit_price'] ?? null; - $this->container['total_sales'] = $data['total_sales'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['interval'] === null) { - $invalidProperties[] = "'interval' can't be null"; - } - if ($this->container['unit_count'] === null) { - $invalidProperties[] = "'unit_count' can't be null"; - } - if ($this->container['order_item_count'] === null) { - $invalidProperties[] = "'order_item_count' can't be null"; - } - if ($this->container['order_count'] === null) { - $invalidProperties[] = "'order_count' can't be null"; - } - if ($this->container['average_unit_price'] === null) { - $invalidProperties[] = "'average_unit_price' can't be null"; - } - if ($this->container['total_sales'] === null) { - $invalidProperties[] = "'total_sales' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets interval - * - * @return string - */ - public function getInterval() - { - return $this->container['interval']; - } - - /** - * Sets interval - * - * @param string $interval The interval of time based on requested granularity (ex. Hour, Day, etc.) If this is the first or the last interval from the list, it might contain incomplete data if the requested interval doesn't align with the requested granularity (ex. request interval 2018-09-01T02:00:00Z--2018-09-04T19:00:00Z and granularity day will result in Sept 1st UTC day and Sept 4th UTC days having partial data). - * - * @return self - */ - public function setInterval($interval) - { - $this->container['interval'] = $interval; - - return $this; - } - /** - * Gets unit_count - * - * @return int - */ - public function getUnitCount() - { - return $this->container['unit_count']; - } - - /** - * Sets unit_count - * - * @param int $unit_count The number of units in orders based on the specified filters. - * - * @return self - */ - public function setUnitCount($unit_count) - { - $this->container['unit_count'] = $unit_count; - - return $this; - } - /** - * Gets order_item_count - * - * @return int - */ - public function getOrderItemCount() - { - return $this->container['order_item_count']; - } - - /** - * Sets order_item_count - * - * @param int $order_item_count The number of order items based on the specified filters. - * - * @return self - */ - public function setOrderItemCount($order_item_count) - { - $this->container['order_item_count'] = $order_item_count; - - return $this; - } - /** - * Gets order_count - * - * @return int - */ - public function getOrderCount() - { - return $this->container['order_count']; - } - - /** - * Sets order_count - * - * @param int $order_count The number of orders based on the specified filters. - * - * @return self - */ - public function setOrderCount($order_count) - { - $this->container['order_count'] = $order_count; - - return $this; - } - /** - * Gets average_unit_price - * - * @return \SellingPartnerApi\Model\SalesV1\Money - */ - public function getAverageUnitPrice() - { - return $this->container['average_unit_price']; - } - - /** - * Sets average_unit_price - * - * @param \SellingPartnerApi\Model\SalesV1\Money $average_unit_price average_unit_price - * - * @return self - */ - public function setAverageUnitPrice($average_unit_price) - { - $this->container['average_unit_price'] = $average_unit_price; - - return $this; - } - /** - * Gets total_sales - * - * @return \SellingPartnerApi\Model\SalesV1\Money - */ - public function getTotalSales() - { - return $this->container['total_sales']; - } - - /** - * Sets total_sales - * - * @param \SellingPartnerApi\Model\SalesV1\Money $total_sales total_sales - * - * @return self - */ - public function setTotalSales($total_sales) - { - $this->container['total_sales'] = $total_sales; - - return $this; - } -} - - diff --git a/lib/Model/SellersV1/Error.php b/lib/Model/SellersV1/Error.php deleted file mode 100644 index b6d959f44..000000000 --- a/lib/Model/SellersV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/SellersV1/GetMarketplaceParticipationsResponse.php b/lib/Model/SellersV1/GetMarketplaceParticipationsResponse.php deleted file mode 100644 index aa382d73d..000000000 --- a/lib/Model/SellersV1/GetMarketplaceParticipationsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetMarketplaceParticipationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetMarketplaceParticipationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\SellersV1\MarketplaceParticipation[]', - 'errors' => '\SellingPartnerApi\Model\SellersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\SellersV1\MarketplaceParticipation[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\SellersV1\MarketplaceParticipation[]|null $payload List of marketplace participations. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SellersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SellersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SellersV1/Marketplace.php b/lib/Model/SellersV1/Marketplace.php deleted file mode 100644 index c0cf52837..000000000 --- a/lib/Model/SellersV1/Marketplace.php +++ /dev/null @@ -1,334 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Marketplace extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Marketplace'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'name' => 'string', - 'country_code' => 'string', - 'default_currency_code' => 'string', - 'default_language_code' => 'string', - 'domain_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'name' => null, - 'country_code' => null, - 'default_currency_code' => null, - 'default_language_code' => null, - 'domain_name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'country_code' => 'countryCode', - 'default_currency_code' => 'defaultCurrencyCode', - 'default_language_code' => 'defaultLanguageCode', - 'domain_name' => 'domainName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'country_code' => 'setCountryCode', - 'default_currency_code' => 'setDefaultCurrencyCode', - 'default_language_code' => 'setDefaultLanguageCode', - 'domain_name' => 'setDomainName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'country_code' => 'getCountryCode', - 'default_currency_code' => 'getDefaultCurrencyCode', - 'default_language_code' => 'getDefaultLanguageCode', - 'domain_name' => 'getDomainName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['id'] = $data['id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['default_currency_code'] = $data['default_currency_code'] ?? null; - $this->container['default_language_code'] = $data['default_language_code'] ?? null; - $this->container['domain_name'] = $data['domain_name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if (!preg_match("/^([A-Z]{2})$/", $this->container['country_code'])) { - $invalidProperties[] = "invalid value for 'country_code', must be conform to the pattern /^([A-Z]{2})$/."; - } - - if ($this->container['default_currency_code'] === null) { - $invalidProperties[] = "'default_currency_code' can't be null"; - } - if ($this->container['default_language_code'] === null) { - $invalidProperties[] = "'default_language_code' can't be null"; - } - if ($this->container['domain_name'] === null) { - $invalidProperties[] = "'domain_name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id The encrypted marketplace value. - * - * @return self - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name Marketplace name. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The ISO 3166-1 alpha-2 format country code of the marketplace. - * - * @return self - */ - public function setCountryCode($country_code) - { - - if ((!preg_match("/^([A-Z]{2})$/", $country_code))) { - throw new \InvalidArgumentException("invalid value for $country_code when calling Marketplace., must conform to the pattern /^([A-Z]{2})$/."); - } - - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets default_currency_code - * - * @return string - */ - public function getDefaultCurrencyCode() - { - return $this->container['default_currency_code']; - } - - /** - * Sets default_currency_code - * - * @param string $default_currency_code The ISO 4217 format currency code of the marketplace. - * - * @return self - */ - public function setDefaultCurrencyCode($default_currency_code) - { - $this->container['default_currency_code'] = $default_currency_code; - - return $this; - } - /** - * Gets default_language_code - * - * @return string - */ - public function getDefaultLanguageCode() - { - return $this->container['default_language_code']; - } - - /** - * Sets default_language_code - * - * @param string $default_language_code The ISO 639-1 format language code of the marketplace. - * - * @return self - */ - public function setDefaultLanguageCode($default_language_code) - { - $this->container['default_language_code'] = $default_language_code; - - return $this; - } - /** - * Gets domain_name - * - * @return string - */ - public function getDomainName() - { - return $this->container['domain_name']; - } - - /** - * Sets domain_name - * - * @param string $domain_name The domain name of the marketplace. - * - * @return self - */ - public function setDomainName($domain_name) - { - $this->container['domain_name'] = $domain_name; - - return $this; - } -} - - diff --git a/lib/Model/SellersV1/MarketplaceParticipation.php b/lib/Model/SellersV1/MarketplaceParticipation.php deleted file mode 100644 index f4c8abd73..000000000 --- a/lib/Model/SellersV1/MarketplaceParticipation.php +++ /dev/null @@ -1,196 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MarketplaceParticipation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarketplaceParticipation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace' => '\SellingPartnerApi\Model\SellersV1\Marketplace', - 'participation' => '\SellingPartnerApi\Model\SellersV1\Participation' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace' => null, - 'participation' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace' => 'marketplace', - 'participation' => 'participation' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace' => 'setMarketplace', - 'participation' => 'setParticipation' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace' => 'getMarketplace', - 'participation' => 'getParticipation' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace'] = $data['marketplace'] ?? null; - $this->container['participation'] = $data['participation'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace'] === null) { - $invalidProperties[] = "'marketplace' can't be null"; - } - if ($this->container['participation'] === null) { - $invalidProperties[] = "'participation' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets marketplace - * - * @return \SellingPartnerApi\Model\SellersV1\Marketplace - */ - public function getMarketplace() - { - return $this->container['marketplace']; - } - - /** - * Sets marketplace - * - * @param \SellingPartnerApi\Model\SellersV1\Marketplace $marketplace marketplace - * - * @return self - */ - public function setMarketplace($marketplace) - { - $this->container['marketplace'] = $marketplace; - - return $this; - } - /** - * Gets participation - * - * @return \SellingPartnerApi\Model\SellersV1\Participation - */ - public function getParticipation() - { - return $this->container['participation']; - } - - /** - * Sets participation - * - * @param \SellingPartnerApi\Model\SellersV1\Participation $participation participation - * - * @return self - */ - public function setParticipation($participation) - { - $this->container['participation'] = $participation; - - return $this; - } -} - - diff --git a/lib/Model/SellersV1/Participation.php b/lib/Model/SellersV1/Participation.php deleted file mode 100644 index dcaa3c2b4..000000000 --- a/lib/Model/SellersV1/Participation.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Participation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Participation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_participating' => 'bool', - 'has_suspended_listings' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_participating' => null, - 'has_suspended_listings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_participating' => 'isParticipating', - 'has_suspended_listings' => 'hasSuspendedListings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_participating' => 'setIsParticipating', - 'has_suspended_listings' => 'setHasSuspendedListings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_participating' => 'getIsParticipating', - 'has_suspended_listings' => 'getHasSuspendedListings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_participating'] = $data['is_participating'] ?? null; - $this->container['has_suspended_listings'] = $data['has_suspended_listings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_participating'] === null) { - $invalidProperties[] = "'is_participating' can't be null"; - } - if ($this->container['has_suspended_listings'] === null) { - $invalidProperties[] = "'has_suspended_listings' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_participating - * - * @return bool - */ - public function getIsParticipating() - { - return $this->container['is_participating']; - } - - /** - * Sets is_participating - * - * @param bool $is_participating is_participating - * - * @return self - */ - public function setIsParticipating($is_participating) - { - $this->container['is_participating'] = $is_participating; - - return $this; - } - /** - * Gets has_suspended_listings - * - * @return bool - */ - public function getHasSuspendedListings() - { - return $this->container['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. - * - * @return self - */ - public function setHasSuspendedListings($has_suspended_listings) - { - $this->container['has_suspended_listings'] = $has_suspended_listings; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AddAppointmentRequest.php b/lib/Model/ServiceV1/AddAppointmentRequest.php deleted file mode 100644 index fe4c8c4f0..000000000 --- a/lib/Model/ServiceV1/AddAppointmentRequest.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AddAppointmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AddAppointmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'appointment_time' => '\SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'appointment_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'appointment_time' => 'appointmentTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'appointment_time' => 'setAppointmentTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'appointment_time' => 'getAppointmentTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['appointment_time'] = $data['appointment_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['appointment_time'] === null) { - $invalidProperties[] = "'appointment_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets appointment_time - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput - */ - public function getAppointmentTime() - { - return $this->container['appointment_time']; - } - - /** - * Sets appointment_time - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput $appointment_time appointment_time - * - * @return self - */ - public function setAppointmentTime($appointment_time) - { - $this->container['appointment_time'] = $appointment_time; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Address.php b/lib/Model/ServiceV1/Address.php deleted file mode 100644 index 0f9a7c18a..000000000 --- a/lib/Model/ServiceV1/Address.php +++ /dev/null @@ -1,458 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business, or institution. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 The first line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code. This can contain letters, digits, spaces, and/or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The two digit country code, in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Appointment.php b/lib/Model/ServiceV1/Appointment.php deleted file mode 100644 index 91e46c45e..000000000 --- a/lib/Model/ServiceV1/Appointment.php +++ /dev/null @@ -1,392 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Appointment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Appointment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'appointment_id' => 'string', - 'appointment_status' => 'string', - 'appointment_time' => '\SellingPartnerApi\Model\ServiceV1\AppointmentTime', - 'assigned_technicians' => '\SellingPartnerApi\Model\ServiceV1\Technician[]', - 'rescheduled_appointment_id' => 'string', - 'poa' => '\SellingPartnerApi\Model\ServiceV1\Poa' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'appointment_id' => null, - 'appointment_status' => null, - 'appointment_time' => null, - 'assigned_technicians' => null, - 'rescheduled_appointment_id' => null, - 'poa' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'appointment_id' => 'appointmentId', - 'appointment_status' => 'appointmentStatus', - 'appointment_time' => 'appointmentTime', - 'assigned_technicians' => 'assignedTechnicians', - 'rescheduled_appointment_id' => 'rescheduledAppointmentId', - 'poa' => 'poa' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'appointment_id' => 'setAppointmentId', - 'appointment_status' => 'setAppointmentStatus', - 'appointment_time' => 'setAppointmentTime', - 'assigned_technicians' => 'setAssignedTechnicians', - 'rescheduled_appointment_id' => 'setRescheduledAppointmentId', - 'poa' => 'setPoa' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'appointment_id' => 'getAppointmentId', - 'appointment_status' => 'getAppointmentStatus', - 'appointment_time' => 'getAppointmentTime', - 'assigned_technicians' => 'getAssignedTechnicians', - 'rescheduled_appointment_id' => 'getRescheduledAppointmentId', - 'poa' => 'getPoa' - ]; - - - - const APPOINTMENT_STATUS_ACTIVE = 'ACTIVE'; - const APPOINTMENT_STATUS_CANCELLED = 'CANCELLED'; - const APPOINTMENT_STATUS_COMPLETED = 'COMPLETED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getAppointmentStatusAllowableValues() - { - $baseVals = [ - self::APPOINTMENT_STATUS_ACTIVE, - self::APPOINTMENT_STATUS_CANCELLED, - self::APPOINTMENT_STATUS_COMPLETED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['appointment_id'] = $data['appointment_id'] ?? null; - $this->container['appointment_status'] = $data['appointment_status'] ?? null; - $this->container['appointment_time'] = $data['appointment_time'] ?? null; - $this->container['assigned_technicians'] = $data['assigned_technicians'] ?? null; - $this->container['rescheduled_appointment_id'] = $data['rescheduled_appointment_id'] ?? null; - $this->container['poa'] = $data['poa'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['appointment_id']) && (mb_strlen($this->container['appointment_id']) > 100)) { - $invalidProperties[] = "invalid value for 'appointment_id', the character length must be smaller than or equal to 100."; - } - - if (!is_null($this->container['appointment_id']) && (mb_strlen($this->container['appointment_id']) < 5)) { - $invalidProperties[] = "invalid value for 'appointment_id', the character length must be bigger than or equal to 5."; - } - - $allowedValues = $this->getAppointmentStatusAllowableValues(); - if ( - !is_null($this->container['appointment_status']) && - !in_array(strtoupper($this->container['appointment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'appointment_status', must be one of '%s'", - $this->container['appointment_status'], - implode("', '", $allowedValues) - ); - } - - if (!is_null($this->container['assigned_technicians']) && (count($this->container['assigned_technicians']) < 1)) { - $invalidProperties[] = "invalid value for 'assigned_technicians', number of items must be greater than or equal to 1."; - } - - if (!is_null($this->container['rescheduled_appointment_id']) && (mb_strlen($this->container['rescheduled_appointment_id']) > 100)) { - $invalidProperties[] = "invalid value for 'rescheduled_appointment_id', the character length must be smaller than or equal to 100."; - } - - if (!is_null($this->container['rescheduled_appointment_id']) && (mb_strlen($this->container['rescheduled_appointment_id']) < 5)) { - $invalidProperties[] = "invalid value for 'rescheduled_appointment_id', the character length must be bigger than or equal to 5."; - } - - return $invalidProperties; - } - - - /** - * Gets appointment_id - * - * @return string|null - */ - public function getAppointmentId() - { - return $this->container['appointment_id']; - } - - /** - * Sets appointment_id - * - * @param string|null $appointment_id The appointment identifier. - * - * @return self - */ - public function setAppointmentId($appointment_id) - { - if (!is_null($appointment_id) && (mb_strlen($appointment_id) > 100)) { - throw new \InvalidArgumentException('invalid length for $appointment_id when calling Appointment., must be smaller than or equal to 100.'); - } - if (!is_null($appointment_id) && (mb_strlen($appointment_id) < 5)) { - throw new \InvalidArgumentException('invalid length for $appointment_id when calling Appointment., must be bigger than or equal to 5.'); - } - - $this->container['appointment_id'] = $appointment_id; - - return $this; - } - /** - * Gets appointment_status - * - * @return string|null - */ - public function getAppointmentStatus() - { - return $this->container['appointment_status']; - } - - /** - * Sets appointment_status - * - * @param string|null $appointment_status The status of the appointment. - * - * @return self - */ - public function setAppointmentStatus($appointment_status) - { - $allowedValues = $this->getAppointmentStatusAllowableValues(); - if (!is_null($appointment_status) &&!in_array(strtoupper($appointment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'appointment_status', must be one of '%s'", - $appointment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['appointment_status'] = $appointment_status; - - return $this; - } - /** - * Gets appointment_time - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentTime|null - */ - public function getAppointmentTime() - { - return $this->container['appointment_time']; - } - - /** - * Sets appointment_time - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentTime|null $appointment_time appointment_time - * - * @return self - */ - public function setAppointmentTime($appointment_time) - { - $this->container['appointment_time'] = $appointment_time; - - return $this; - } - /** - * Gets assigned_technicians - * - * @return \SellingPartnerApi\Model\ServiceV1\Technician[]|null - */ - public function getAssignedTechnicians() - { - return $this->container['assigned_technicians']; - } - - /** - * Sets assigned_technicians - * - * @param \SellingPartnerApi\Model\ServiceV1\Technician[]|null $assigned_technicians A list of technicians assigned to the service job. - * - * @return self - */ - public function setAssignedTechnicians($assigned_technicians) - { - - - if (!is_null($assigned_technicians) && (count($assigned_technicians) < 1)) { - throw new \InvalidArgumentException('invalid length for $assigned_technicians when calling Appointment., number of items must be greater than or equal to 1.'); - } - $this->container['assigned_technicians'] = $assigned_technicians; - - return $this; - } - /** - * Gets rescheduled_appointment_id - * - * @return string|null - */ - public function getRescheduledAppointmentId() - { - return $this->container['rescheduled_appointment_id']; - } - - /** - * Sets rescheduled_appointment_id - * - * @param string|null $rescheduled_appointment_id The appointment identifier. - * - * @return self - */ - public function setRescheduledAppointmentId($rescheduled_appointment_id) - { - if (!is_null($rescheduled_appointment_id) && (mb_strlen($rescheduled_appointment_id) > 100)) { - throw new \InvalidArgumentException('invalid length for $rescheduled_appointment_id when calling Appointment., must be smaller than or equal to 100.'); - } - if (!is_null($rescheduled_appointment_id) && (mb_strlen($rescheduled_appointment_id) < 5)) { - throw new \InvalidArgumentException('invalid length for $rescheduled_appointment_id when calling Appointment., must be bigger than or equal to 5.'); - } - - $this->container['rescheduled_appointment_id'] = $rescheduled_appointment_id; - - return $this; - } - /** - * Gets poa - * - * @return \SellingPartnerApi\Model\ServiceV1\Poa|null - */ - public function getPoa() - { - return $this->container['poa']; - } - - /** - * Sets poa - * - * @param \SellingPartnerApi\Model\ServiceV1\Poa|null $poa poa - * - * @return self - */ - public function setPoa($poa) - { - $this->container['poa'] = $poa; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AppointmentResource.php b/lib/Model/ServiceV1/AppointmentResource.php deleted file mode 100644 index 08b7c8f24..000000000 --- a/lib/Model/ServiceV1/AppointmentResource.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AppointmentResource extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AppointmentResource'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource_id' => 'resourceId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource_id' => 'setResourceId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource_id' => 'getResourceId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_id'] = $data['resource_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets resource_id - * - * @return string|null - */ - public function getResourceId() - { - return $this->container['resource_id']; - } - - /** - * Sets resource_id - * - * @param string|null $resource_id The resource identifier. - * - * @return self - */ - public function setResourceId($resource_id) - { - $this->container['resource_id'] = $resource_id; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AppointmentSlot.php b/lib/Model/ServiceV1/AppointmentSlot.php deleted file mode 100644 index 9fa0a0ed5..000000000 --- a/lib/Model/ServiceV1/AppointmentSlot.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AppointmentSlot extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AppointmentSlot'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'end_time' => 'string', - 'capacity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null, - 'capacity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'end_time' => 'endTime', - 'capacity' => 'capacity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime', - 'capacity' => 'setCapacity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime', - 'capacity' => 'getCapacity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - $this->container['capacity'] = $data['capacity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['capacity']) && ($this->container['capacity'] < 0)) { - $invalidProperties[] = "invalid value for 'capacity', must be bigger than or equal to 0."; - } - - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time Time window start time in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time Time window end time in ISO 8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } - /** - * Gets capacity - * - * @return int|null - */ - public function getCapacity() - { - return $this->container['capacity']; - } - - /** - * Sets capacity - * - * @param int|null $capacity Number of resources for which a slot can be reserved. - * - * @return self - */ - public function setCapacity($capacity) - { - - if (!is_null($capacity) && ($capacity < 0)) { - throw new \InvalidArgumentException('invalid value for $capacity when calling AppointmentSlot., must be bigger than or equal to 0.'); - } - - $this->container['capacity'] = $capacity; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AppointmentSlotReport.php b/lib/Model/ServiceV1/AppointmentSlotReport.php deleted file mode 100644 index e0635ddc3..000000000 --- a/lib/Model/ServiceV1/AppointmentSlotReport.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AppointmentSlotReport extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AppointmentSlotReport'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduling_type' => 'string', - 'start_time' => 'string', - 'end_time' => 'string', - 'appointment_slots' => '\SellingPartnerApi\Model\ServiceV1\AppointmentSlot[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduling_type' => null, - 'start_time' => null, - 'end_time' => null, - 'appointment_slots' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scheduling_type' => 'schedulingType', - 'start_time' => 'startTime', - 'end_time' => 'endTime', - 'appointment_slots' => 'appointmentSlots' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scheduling_type' => 'setSchedulingType', - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime', - 'appointment_slots' => 'setAppointmentSlots' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scheduling_type' => 'getSchedulingType', - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime', - 'appointment_slots' => 'getAppointmentSlots' - ]; - - - - const SCHEDULING_TYPE_REAL_TIME_SCHEDULING = 'REAL_TIME_SCHEDULING'; - const SCHEDULING_TYPE_NON_REAL_TIME_SCHEDULING = 'NON_REAL_TIME_SCHEDULING'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getSchedulingTypeAllowableValues() - { - $baseVals = [ - self::SCHEDULING_TYPE_REAL_TIME_SCHEDULING, - self::SCHEDULING_TYPE_NON_REAL_TIME_SCHEDULING, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduling_type'] = $data['scheduling_type'] ?? null; - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - $this->container['appointment_slots'] = $data['appointment_slots'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getSchedulingTypeAllowableValues(); - if ( - !is_null($this->container['scheduling_type']) && - !in_array(strtoupper($this->container['scheduling_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'scheduling_type', must be one of '%s'", - $this->container['scheduling_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets scheduling_type - * - * @return string|null - */ - public function getSchedulingType() - { - return $this->container['scheduling_type']; - } - - /** - * Sets scheduling_type - * - * @param string|null $scheduling_type Defines the type of slots. - * - * @return self - */ - public function setSchedulingType($scheduling_type) - { - $allowedValues = $this->getSchedulingTypeAllowableValues(); - if (!is_null($scheduling_type) &&!in_array(strtoupper($scheduling_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'scheduling_type', must be one of '%s'", - $scheduling_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['scheduling_type'] = $scheduling_type; - - return $this; - } - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time Start Time from which the appointment slots are generated in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time End Time up to which the appointment slots are generated in ISO 8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } - /** - * Gets appointment_slots - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentSlot[]|null - */ - public function getAppointmentSlots() - { - return $this->container['appointment_slots']; - } - - /** - * Sets appointment_slots - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentSlot[]|null $appointment_slots A list of time windows along with associated capacity in which the service can be performed. - * - * @return self - */ - public function setAppointmentSlots($appointment_slots) - { - $this->container['appointment_slots'] = $appointment_slots; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AppointmentTime.php b/lib/Model/ServiceV1/AppointmentTime.php deleted file mode 100644 index 1b7f41dca..000000000 --- a/lib/Model/ServiceV1/AppointmentTime.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AppointmentTime extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AppointmentTime'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'duration_in_minutes' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'duration_in_minutes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'duration_in_minutes' => 'durationInMinutes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'duration_in_minutes' => 'setDurationInMinutes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'duration_in_minutes' => 'getDurationInMinutes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['duration_in_minutes'] = $data['duration_in_minutes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_time'] === null) { - $invalidProperties[] = "'start_time' can't be null"; - } - if ($this->container['duration_in_minutes'] === null) { - $invalidProperties[] = "'duration_in_minutes' can't be null"; - } - if (($this->container['duration_in_minutes'] < 1)) { - $invalidProperties[] = "invalid value for 'duration_in_minutes', must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string $start_time The date and time of the start of the appointment window in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets duration_in_minutes - * - * @return int - */ - public function getDurationInMinutes() - { - return $this->container['duration_in_minutes']; - } - - /** - * Sets duration_in_minutes - * - * @param int $duration_in_minutes The duration of the appointment window, in minutes. - * - * @return self - */ - public function setDurationInMinutes($duration_in_minutes) - { - - if (($duration_in_minutes < 1)) { - throw new \InvalidArgumentException('invalid value for $duration_in_minutes when calling AppointmentTime., must be bigger than or equal to 1.'); - } - - $this->container['duration_in_minutes'] = $duration_in_minutes; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AppointmentTimeInput.php b/lib/Model/ServiceV1/AppointmentTimeInput.php deleted file mode 100644 index b8de1bf19..000000000 --- a/lib/Model/ServiceV1/AppointmentTimeInput.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AppointmentTimeInput extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AppointmentTimeInput'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'duration_in_minutes' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'duration_in_minutes' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'duration_in_minutes' => 'durationInMinutes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'duration_in_minutes' => 'setDurationInMinutes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'duration_in_minutes' => 'getDurationInMinutes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['duration_in_minutes'] = $data['duration_in_minutes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_time'] === null) { - $invalidProperties[] = "'start_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string $start_time The date, time in UTC for the start time of an appointment in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets duration_in_minutes - * - * @return int|null - */ - public function getDurationInMinutes() - { - return $this->container['duration_in_minutes']; - } - - /** - * Sets duration_in_minutes - * - * @param int|null $duration_in_minutes The duration of an appointment in minutes. - * - * @return self - */ - public function setDurationInMinutes($duration_in_minutes) - { - $this->container['duration_in_minutes'] = $duration_in_minutes; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AssignAppointmentResourcesRequest.php b/lib/Model/ServiceV1/AssignAppointmentResourcesRequest.php deleted file mode 100644 index fc5b8550f..000000000 --- a/lib/Model/ServiceV1/AssignAppointmentResourcesRequest.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AssignAppointmentResourcesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AssignAppointmentResourcesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resources' => '\SellingPartnerApi\Model\ServiceV1\AppointmentResource[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resources' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resources' => 'resources' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resources' => 'setResources' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resources' => 'getResources' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resources'] = $data['resources'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resources'] === null) { - $invalidProperties[] = "'resources' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets resources - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentResource[] - */ - public function getResources() - { - return $this->container['resources']; - } - - /** - * Sets resources - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentResource[] $resources List of resources that performs or performed job appointment fulfillment. - * - * @return self - */ - public function setResources($resources) - { - $this->container['resources'] = $resources; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AssignAppointmentResourcesResponse.php b/lib/Model/ServiceV1/AssignAppointmentResourcesResponse.php deleted file mode 100644 index 706adebf8..000000000 --- a/lib/Model/ServiceV1/AssignAppointmentResourcesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AssignAppointmentResourcesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AssignAppointmentResourcesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponsePayload', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponsePayload|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\AssignAppointmentResourcesResponsePayload|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.php b/lib/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.php deleted file mode 100644 index 90cec4fa9..000000000 --- a/lib/Model/ServiceV1/AssignAppointmentResourcesResponsePayload.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AssignAppointmentResourcesResponsePayload extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AssignAppointmentResourcesResponse_payload'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warnings' => '\SellingPartnerApi\Model\ServiceV1\Warning[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warnings' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'warnings' => 'warnings' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'warnings' => 'setWarnings' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'warnings' => 'getWarnings' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warnings'] = $data['warnings'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\ServiceV1\Warning[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\ServiceV1\Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. - * - * @return self - */ - public function setWarnings($warnings) - { - $this->container['warnings'] = $warnings; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AssociatedItem.php b/lib/Model/ServiceV1/AssociatedItem.php deleted file mode 100644 index 59158e64b..000000000 --- a/lib/Model/ServiceV1/AssociatedItem.php +++ /dev/null @@ -1,399 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AssociatedItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AssociatedItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'title' => 'string', - 'quantity' => 'int', - 'order_id' => 'string', - 'item_status' => 'string', - 'brand_name' => 'string', - 'item_delivery' => '\SellingPartnerApi\Model\ServiceV1\ItemDelivery' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'title' => null, - 'quantity' => null, - 'order_id' => null, - 'item_status' => null, - 'brand_name' => null, - 'item_delivery' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'title' => 'title', - 'quantity' => 'quantity', - 'order_id' => 'orderId', - 'item_status' => 'itemStatus', - 'brand_name' => 'brandName', - 'item_delivery' => 'itemDelivery' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'title' => 'setTitle', - 'quantity' => 'setQuantity', - 'order_id' => 'setOrderId', - 'item_status' => 'setItemStatus', - 'brand_name' => 'setBrandName', - 'item_delivery' => 'setItemDelivery' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'title' => 'getTitle', - 'quantity' => 'getQuantity', - 'order_id' => 'getOrderId', - 'item_status' => 'getItemStatus', - 'brand_name' => 'getBrandName', - 'item_delivery' => 'getItemDelivery' - ]; - - - - const ITEM_STATUS_ACTIVE = 'ACTIVE'; - const ITEM_STATUS_CANCELLED = 'CANCELLED'; - const ITEM_STATUS_SHIPPED = 'SHIPPED'; - const ITEM_STATUS_DELIVERED = 'DELIVERED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getItemStatusAllowableValues() - { - $baseVals = [ - self::ITEM_STATUS_ACTIVE, - self::ITEM_STATUS_CANCELLED, - self::ITEM_STATUS_SHIPPED, - self::ITEM_STATUS_DELIVERED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['order_id'] = $data['order_id'] ?? null; - $this->container['item_status'] = $data['item_status'] ?? null; - $this->container['brand_name'] = $data['brand_name'] ?? null; - $this->container['item_delivery'] = $data['item_delivery'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['order_id']) && (mb_strlen($this->container['order_id']) > 20)) { - $invalidProperties[] = "invalid value for 'order_id', the character length must be smaller than or equal to 20."; - } - - if (!is_null($this->container['order_id']) && (mb_strlen($this->container['order_id']) < 5)) { - $invalidProperties[] = "invalid value for 'order_id', the character length must be bigger than or equal to 5."; - } - - $allowedValues = $this->getItemStatusAllowableValues(); - if ( - !is_null($this->container['item_status']) && - !in_array(strtoupper($this->container['item_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'item_status', must be one of '%s'", - $this->container['item_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The title of the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets quantity - * - * @return int|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int|null $quantity The total number of items included in the order. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets order_id - * - * @return string|null - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string|null $order_id The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. - * - * @return self - */ - public function setOrderId($order_id) - { - if (!is_null($order_id) && (mb_strlen($order_id) > 20)) { - throw new \InvalidArgumentException('invalid length for $order_id when calling AssociatedItem., must be smaller than or equal to 20.'); - } - if (!is_null($order_id) && (mb_strlen($order_id) < 5)) { - throw new \InvalidArgumentException('invalid length for $order_id when calling AssociatedItem., must be bigger than or equal to 5.'); - } - - $this->container['order_id'] = $order_id; - - return $this; - } - /** - * Gets item_status - * - * @return string|null - */ - public function getItemStatus() - { - return $this->container['item_status']; - } - - /** - * Sets item_status - * - * @param string|null $item_status The status of the item. - * - * @return self - */ - public function setItemStatus($item_status) - { - $allowedValues = $this->getItemStatusAllowableValues(); - if (!is_null($item_status) &&!in_array(strtoupper($item_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'item_status', must be one of '%s'", - $item_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['item_status'] = $item_status; - - return $this; - } - /** - * Gets brand_name - * - * @return string|null - */ - public function getBrandName() - { - return $this->container['brand_name']; - } - - /** - * Sets brand_name - * - * @param string|null $brand_name The brand name of the item. - * - * @return self - */ - public function setBrandName($brand_name) - { - $this->container['brand_name'] = $brand_name; - - return $this; - } - /** - * Gets item_delivery - * - * @return \SellingPartnerApi\Model\ServiceV1\ItemDelivery|null - */ - public function getItemDelivery() - { - return $this->container['item_delivery']; - } - - /** - * Sets item_delivery - * - * @param \SellingPartnerApi\Model\ServiceV1\ItemDelivery|null $item_delivery item_delivery - * - * @return self - */ - public function setItemDelivery($item_delivery) - { - $this->container['item_delivery'] = $item_delivery; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/AvailabilityRecord.php b/lib/Model/ServiceV1/AvailabilityRecord.php deleted file mode 100644 index 49d5be398..000000000 --- a/lib/Model/ServiceV1/AvailabilityRecord.php +++ /dev/null @@ -1,264 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AvailabilityRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AvailabilityRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'end_time' => 'string', - 'recurrence' => '\SellingPartnerApi\Model\ServiceV1\Recurrence', - 'capacity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null, - 'recurrence' => null, - 'capacity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'end_time' => 'endTime', - 'recurrence' => 'recurrence', - 'capacity' => 'capacity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime', - 'recurrence' => 'setRecurrence', - 'capacity' => 'setCapacity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime', - 'recurrence' => 'getRecurrence', - 'capacity' => 'getCapacity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - $this->container['recurrence'] = $data['recurrence'] ?? null; - $this->container['capacity'] = $data['capacity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_time'] === null) { - $invalidProperties[] = "'start_time' can't be null"; - } - if ($this->container['end_time'] === null) { - $invalidProperties[] = "'end_time' can't be null"; - } - if (!is_null($this->container['capacity']) && ($this->container['capacity'] < 1)) { - $invalidProperties[] = "invalid value for 'capacity', must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string $start_time Denotes the time from when the resource is available in a day in ISO-8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string $end_time Denotes the time till when the resource is available in a day in ISO-8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } - /** - * Gets recurrence - * - * @return \SellingPartnerApi\Model\ServiceV1\Recurrence|null - */ - public function getRecurrence() - { - return $this->container['recurrence']; - } - - /** - * Sets recurrence - * - * @param \SellingPartnerApi\Model\ServiceV1\Recurrence|null $recurrence recurrence - * - * @return self - */ - public function setRecurrence($recurrence) - { - $this->container['recurrence'] = $recurrence; - - return $this; - } - /** - * Gets capacity - * - * @return int|null - */ - public function getCapacity() - { - return $this->container['capacity']; - } - - /** - * Sets capacity - * - * @param int|null $capacity Signifies the capacity of a resource which is available. - * - * @return self - */ - public function setCapacity($capacity) - { - - if (!is_null($capacity) && ($capacity < 1)) { - throw new \InvalidArgumentException('invalid value for $capacity when calling AvailabilityRecord., must be bigger than or equal to 1.'); - } - - $this->container['capacity'] = $capacity; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Buyer.php b/lib/Model/ServiceV1/Buyer.php deleted file mode 100644 index bd8b9aef9..000000000 --- a/lib/Model/ServiceV1/Buyer.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Buyer extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Buyer'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer_id' => 'string', - 'name' => 'string', - 'phone' => 'string', - 'is_prime_member' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer_id' => null, - 'name' => null, - 'phone' => null, - 'is_prime_member' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'buyer_id' => 'buyerId', - 'name' => 'name', - 'phone' => 'phone', - 'is_prime_member' => 'isPrimeMember' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'buyer_id' => 'setBuyerId', - 'name' => 'setName', - 'phone' => 'setPhone', - 'is_prime_member' => 'setIsPrimeMember' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'buyer_id' => 'getBuyerId', - 'name' => 'getName', - 'phone' => 'getPhone', - 'is_prime_member' => 'getIsPrimeMember' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer_id'] = $data['buyer_id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - $this->container['is_prime_member'] = $data['is_prime_member'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['buyer_id']) && !preg_match("/^[A-Z0-9]*$/", $this->container['buyer_id'])) { - $invalidProperties[] = "invalid value for 'buyer_id', must be conform to the pattern /^[A-Z0-9]*$/."; - } - - return $invalidProperties; - } - - - /** - * Gets buyer_id - * - * @return string|null - */ - public function getBuyerId() - { - return $this->container['buyer_id']; - } - - /** - * Sets buyer_id - * - * @param string|null $buyer_id The identifier of the buyer. - * - * @return self - */ - public function setBuyerId($buyer_id) - { - - if (!is_null($buyer_id) && (!preg_match("/^[A-Z0-9]*$/", $buyer_id))) { - throw new \InvalidArgumentException("invalid value for $buyer_id when calling Buyer., must conform to the pattern /^[A-Z0-9]*$/."); - } - - $this->container['buyer_id'] = $buyer_id; - - return $this; - } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the buyer. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the buyer. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } - /** - * Gets is_prime_member - * - * @return bool|null - */ - public function getIsPrimeMember() - { - return $this->container['is_prime_member']; - } - - /** - * Sets is_prime_member - * - * @param bool|null $is_prime_member When true, the service is for an Amazon Prime buyer. - * - * @return self - */ - public function setIsPrimeMember($is_prime_member) - { - $this->container['is_prime_member'] = $is_prime_member; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CancelReservationResponse.php b/lib/Model/ServiceV1/CancelReservationResponse.php deleted file mode 100644 index 3f1e3098f..000000000 --- a/lib/Model/ServiceV1/CancelReservationResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelReservationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelReservationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.php b/lib/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.php deleted file mode 100644 index 9d73dabfb..000000000 --- a/lib/Model/ServiceV1/CancelServiceJobByServiceJobIdResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelServiceJobByServiceJobIdResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelServiceJobByServiceJobIdResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CapacityType.php b/lib/Model/ServiceV1/CapacityType.php deleted file mode 100644 index bc95949f9..000000000 --- a/lib/Model/ServiceV1/CapacityType.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.php b/lib/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.php deleted file mode 100644 index 7d7598fa7..000000000 --- a/lib/Model/ServiceV1/CompleteServiceJobByServiceJobIdResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CompleteServiceJobByServiceJobIdResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CompleteServiceJobByServiceJobIdResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CreateReservationRecord.php b/lib/Model/ServiceV1/CreateReservationRecord.php deleted file mode 100644 index 88017918a..000000000 --- a/lib/Model/ServiceV1/CreateReservationRecord.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReservationRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReservationRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reservation' => '\SellingPartnerApi\Model\ServiceV1\Reservation', - 'warnings' => '\SellingPartnerApi\Model\ServiceV1\Warning[]', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reservation' => null, - 'warnings' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reservation' => 'reservation', - 'warnings' => 'warnings', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reservation' => 'setReservation', - 'warnings' => 'setWarnings', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reservation' => 'getReservation', - 'warnings' => 'getWarnings', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reservation'] = $data['reservation'] ?? null; - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets reservation - * - * @return \SellingPartnerApi\Model\ServiceV1\Reservation|null - */ - public function getReservation() - { - return $this->container['reservation']; - } - - /** - * Sets reservation - * - * @param \SellingPartnerApi\Model\ServiceV1\Reservation|null $reservation reservation - * - * @return self - */ - public function setReservation($reservation) - { - $this->container['reservation'] = $reservation; - - return $this; - } - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\ServiceV1\Warning[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\ServiceV1\Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. - * - * @return self - */ - public function setWarnings($warnings) - { - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CreateReservationRequest.php b/lib/Model/ServiceV1/CreateReservationRequest.php deleted file mode 100644 index 52149d8d5..000000000 --- a/lib/Model/ServiceV1/CreateReservationRequest.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReservationRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReservationRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_id' => 'string', - 'reservation' => '\SellingPartnerApi\Model\ServiceV1\Reservation' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_id' => null, - 'reservation' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource_id' => 'resourceId', - 'reservation' => 'reservation' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource_id' => 'setResourceId', - 'reservation' => 'setReservation' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource_id' => 'getResourceId', - 'reservation' => 'getReservation' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_id'] = $data['resource_id'] ?? null; - $this->container['reservation'] = $data['reservation'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resource_id'] === null) { - $invalidProperties[] = "'resource_id' can't be null"; - } - if ($this->container['reservation'] === null) { - $invalidProperties[] = "'reservation' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets resource_id - * - * @return string - */ - public function getResourceId() - { - return $this->container['resource_id']; - } - - /** - * Sets resource_id - * - * @param string $resource_id Resource (store) identifier. - * - * @return self - */ - public function setResourceId($resource_id) - { - $this->container['resource_id'] = $resource_id; - - return $this; - } - /** - * Gets reservation - * - * @return \SellingPartnerApi\Model\ServiceV1\Reservation - */ - public function getReservation() - { - return $this->container['reservation']; - } - - /** - * Sets reservation - * - * @param \SellingPartnerApi\Model\ServiceV1\Reservation $reservation reservation - * - * @return self - */ - public function setReservation($reservation) - { - $this->container['reservation'] = $reservation; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CreateReservationResponse.php b/lib/Model/ServiceV1/CreateReservationResponse.php deleted file mode 100644 index 9ec19f374..000000000 --- a/lib/Model/ServiceV1/CreateReservationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateReservationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateReservationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\CreateReservationRecord', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\CreateReservationRecord|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\CreateReservationRecord|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/CreateServiceDocumentUploadDestination.php b/lib/Model/ServiceV1/CreateServiceDocumentUploadDestination.php deleted file mode 100644 index 90fe9a32c..000000000 --- a/lib/Model/ServiceV1/CreateServiceDocumentUploadDestination.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateServiceDocumentUploadDestination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateServiceDocumentUploadDestination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\ServiceDocumentUploadDestination', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\ServiceDocumentUploadDestination|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceDocumentUploadDestination|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/DayOfWeek.php b/lib/Model/ServiceV1/DayOfWeek.php deleted file mode 100644 index fb1f9373d..000000000 --- a/lib/Model/ServiceV1/DayOfWeek.php +++ /dev/null @@ -1,97 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ServiceV1/EncryptionDetails.php b/lib/Model/ServiceV1/EncryptionDetails.php deleted file mode 100644 index b1eb0e93e..000000000 --- a/lib/Model/ServiceV1/EncryptionDetails.php +++ /dev/null @@ -1,271 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class EncryptionDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'EncryptionDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'standard' => 'string', - 'initialization_vector' => 'string', - 'key' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'standard' => null, - 'initialization_vector' => null, - 'key' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'standard' => 'standard', - 'initialization_vector' => 'initializationVector', - 'key' => 'key' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'standard' => 'setStandard', - 'initialization_vector' => 'setInitializationVector', - 'key' => 'setKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'standard' => 'getStandard', - 'initialization_vector' => 'getInitializationVector', - 'key' => 'getKey' - ]; - - - - const STANDARD_AES = 'AES'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStandardAllowableValues() - { - $baseVals = [ - self::STANDARD_AES, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['standard'] = $data['standard'] ?? null; - $this->container['initialization_vector'] = $data['initialization_vector'] ?? null; - $this->container['key'] = $data['key'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['standard'] === null) { - $invalidProperties[] = "'standard' can't be null"; - } - $allowedValues = $this->getStandardAllowableValues(); - if ( - !is_null($this->container['standard']) && - !in_array(strtoupper($this->container['standard']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'standard', must be one of '%s'", - $this->container['standard'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['initialization_vector'] === null) { - $invalidProperties[] = "'initialization_vector' can't be null"; - } - if ($this->container['key'] === null) { - $invalidProperties[] = "'key' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets standard - * - * @return string - */ - public function getStandard() - { - return $this->container['standard']; - } - - /** - * Sets standard - * - * @param string $standard The encryption standard required to encrypt or decrypt the document contents. - * - * @return self - */ - public function setStandard($standard) - { - $allowedValues = $this->getStandardAllowableValues(); - if (!in_array(strtoupper($standard), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'standard', must be one of '%s'", - $standard, - implode("', '", $allowedValues) - ) - ); - } - $this->container['standard'] = $standard; - - return $this; - } - /** - * Gets initialization_vector - * - * @return string - */ - public function getInitializationVector() - { - return $this->container['initialization_vector']; - } - - /** - * Sets initialization_vector - * - * @param string $initialization_vector The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC). - * - * @return self - */ - public function setInitializationVector($initialization_vector) - { - $this->container['initialization_vector'] = $initialization_vector; - - return $this; - } - /** - * Gets key - * - * @return string - */ - public function getKey() - { - return $this->container['key']; - } - - /** - * Sets key - * - * @param string $key The encryption key used to encrypt or decrypt the document contents. - * - * @return self - */ - public function setKey($key) - { - $this->container['key'] = $key; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Error.php b/lib/Model/ServiceV1/Error.php deleted file mode 100644 index faa4058f1..000000000 --- a/lib/Model/ServiceV1/Error.php +++ /dev/null @@ -1,299 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string', - 'error_level' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null, - 'error_level' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details', - 'error_level' => 'errorLevel' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails', - 'error_level' => 'setErrorLevel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails', - 'error_level' => 'getErrorLevel' - ]; - - - - const ERROR_LEVEL_ERROR = 'ERROR'; - const ERROR_LEVEL_WARNING = 'WARNING'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getErrorLevelAllowableValues() - { - $baseVals = [ - self::ERROR_LEVEL_ERROR, - self::ERROR_LEVEL_WARNING, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - $this->container['error_level'] = $data['error_level'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - $allowedValues = $this->getErrorLevelAllowableValues(); - if ( - !is_null($this->container['error_level']) && - !in_array(strtoupper($this->container['error_level']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'error_level', must be one of '%s'", - $this->container['error_level'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } - /** - * Gets error_level - * - * @return string|null - */ - public function getErrorLevel() - { - return $this->container['error_level']; - } - - /** - * Sets error_level - * - * @param string|null $error_level The type of error. - * - * @return self - */ - public function setErrorLevel($error_level) - { - $allowedValues = $this->getErrorLevelAllowableValues(); - if (!is_null($error_level) &&!in_array(strtoupper($error_level), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'error_level', must be one of '%s'", - $error_level, - implode("', '", $allowedValues) - ) - ); - } - $this->container['error_level'] = $error_level; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FixedSlot.php b/lib/Model/ServiceV1/FixedSlot.php deleted file mode 100644 index d492d2f6a..000000000 --- a/lib/Model/ServiceV1/FixedSlot.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FixedSlot extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FixedSlot'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_date_time' => 'string', - 'scheduled_capacity' => 'int', - 'available_capacity' => 'int', - 'encumbered_capacity' => 'int', - 'reserved_capacity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_date_time' => null, - 'scheduled_capacity' => 'int32', - 'available_capacity' => 'int32', - 'encumbered_capacity' => 'int32', - 'reserved_capacity' => 'int32' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_date_time' => 'startDateTime', - 'scheduled_capacity' => 'scheduledCapacity', - 'available_capacity' => 'availableCapacity', - 'encumbered_capacity' => 'encumberedCapacity', - 'reserved_capacity' => 'reservedCapacity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_date_time' => 'setStartDateTime', - 'scheduled_capacity' => 'setScheduledCapacity', - 'available_capacity' => 'setAvailableCapacity', - 'encumbered_capacity' => 'setEncumberedCapacity', - 'reserved_capacity' => 'setReservedCapacity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_date_time' => 'getStartDateTime', - 'scheduled_capacity' => 'getScheduledCapacity', - 'available_capacity' => 'getAvailableCapacity', - 'encumbered_capacity' => 'getEncumberedCapacity', - 'reserved_capacity' => 'getReservedCapacity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_date_time'] = $data['start_date_time'] ?? null; - $this->container['scheduled_capacity'] = $data['scheduled_capacity'] ?? null; - $this->container['available_capacity'] = $data['available_capacity'] ?? null; - $this->container['encumbered_capacity'] = $data['encumbered_capacity'] ?? null; - $this->container['reserved_capacity'] = $data['reserved_capacity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_date_time - * - * @return string|null - */ - public function getStartDateTime() - { - return $this->container['start_date_time']; - } - - /** - * Sets start_date_time - * - * @param string|null $start_date_time Start date time of slot in ISO 8601 format with precision of seconds. - * - * @return self - */ - public function setStartDateTime($start_date_time) - { - $this->container['start_date_time'] = $start_date_time; - - return $this; - } - /** - * Gets scheduled_capacity - * - * @return int|null - */ - public function getScheduledCapacity() - { - return $this->container['scheduled_capacity']; - } - - /** - * Sets scheduled_capacity - * - * @param int|null $scheduled_capacity Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule. - * - * @return self - */ - public function setScheduledCapacity($scheduled_capacity) - { - $this->container['scheduled_capacity'] = $scheduled_capacity; - - return $this; - } - /** - * Gets available_capacity - * - * @return int|null - */ - public function getAvailableCapacity() - { - return $this->container['available_capacity']; - } - - /** - * Sets available_capacity - * - * @param int|null $available_capacity Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations. - * - * @return self - */ - public function setAvailableCapacity($available_capacity) - { - $this->container['available_capacity'] = $available_capacity; - - return $this; - } - /** - * Gets encumbered_capacity - * - * @return int|null - */ - public function getEncumberedCapacity() - { - return $this->container['encumbered_capacity']; - } - - /** - * Sets encumbered_capacity - * - * @param int|null $encumbered_capacity Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders. - * - * @return self - */ - public function setEncumberedCapacity($encumbered_capacity) - { - $this->container['encumbered_capacity'] = $encumbered_capacity; - - return $this; - } - /** - * Gets reserved_capacity - * - * @return int|null - */ - public function getReservedCapacity() - { - return $this->container['reserved_capacity']; - } - - /** - * Sets reserved_capacity - * - * @param int|null $reserved_capacity Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch. - * - * @return self - */ - public function setReservedCapacity($reserved_capacity) - { - $this->container['reserved_capacity'] = $reserved_capacity; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FixedSlotCapacity.php b/lib/Model/ServiceV1/FixedSlotCapacity.php deleted file mode 100644 index 1b71a952c..000000000 --- a/lib/Model/ServiceV1/FixedSlotCapacity.php +++ /dev/null @@ -1,276 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FixedSlotCapacity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FixedSlotCapacity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_id' => 'string', - 'slot_duration' => 'float', - 'capacities' => '\SellingPartnerApi\Model\ServiceV1\FixedSlot[]', - 'next_page_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_id' => null, - 'slot_duration' => 'int32', - 'capacities' => null, - 'next_page_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'resource_id' => 'resourceId', - 'slot_duration' => 'slotDuration', - 'capacities' => 'capacities', - 'next_page_token' => 'nextPageToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'resource_id' => 'setResourceId', - 'slot_duration' => 'setSlotDuration', - 'capacities' => 'setCapacities', - 'next_page_token' => 'setNextPageToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'resource_id' => 'getResourceId', - 'slot_duration' => 'getSlotDuration', - 'capacities' => 'getCapacities', - 'next_page_token' => 'getNextPageToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_id'] = $data['resource_id'] ?? null; - $this->container['slot_duration'] = $data['slot_duration'] ?? null; - $this->container['capacities'] = $data['capacities'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets resource_id - * - * @return string|null - */ - public function getResourceId() - { - return $this->container['resource_id']; - } - - /** - * Sets resource_id - * - * @param string|null $resource_id Resource Identifier. - * - * @return self - */ - public function setResourceId($resource_id) - { - $this->container['resource_id'] = $resource_id; - - return $this; - } - /** - * Gets slot_duration - * - * @return float|null - */ - public function getSlotDuration() - { - return $this->container['slot_duration']; - } - - /** - * Sets slot_duration - * - * @param float|null $slot_duration The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360. - * - * @return self - */ - public function setSlotDuration($slot_duration) - { - - - $this->container['slot_duration'] = $slot_duration; - - return $this; - } - /** - * Gets capacities - * - * @return \SellingPartnerApi\Model\ServiceV1\FixedSlot[]|null - */ - public function getCapacities() - { - return $this->container['capacities']; - } - - /** - * Sets capacities - * - * @param \SellingPartnerApi\Model\ServiceV1\FixedSlot[]|null $capacities Array of capacity slots in fixed slot format. - * - * @return self - */ - public function setCapacities($capacities) - { - $this->container['capacities'] = $capacities; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token Next page token, if there are more pages. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - $this->container['next_page_token'] = $next_page_token; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FixedSlotCapacityErrors.php b/lib/Model/ServiceV1/FixedSlotCapacityErrors.php deleted file mode 100644 index 4e0f94d61..000000000 --- a/lib/Model/ServiceV1/FixedSlotCapacityErrors.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FixedSlotCapacityErrors extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FixedSlotCapacityErrors'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FixedSlotCapacityQuery.php b/lib/Model/ServiceV1/FixedSlotCapacityQuery.php deleted file mode 100644 index 7f05fa69d..000000000 --- a/lib/Model/ServiceV1/FixedSlotCapacityQuery.php +++ /dev/null @@ -1,257 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FixedSlotCapacityQuery extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FixedSlotCapacityQuery'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'capacity_types' => '\SellingPartnerApi\Model\ServiceV1\CapacityType[]', - 'slot_duration' => 'float', - 'start_date_time' => 'string', - 'end_date_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'capacity_types' => null, - 'slot_duration' => 'int32', - 'start_date_time' => null, - 'end_date_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'capacity_types' => 'capacityTypes', - 'slot_duration' => 'slotDuration', - 'start_date_time' => 'startDateTime', - 'end_date_time' => 'endDateTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'capacity_types' => 'setCapacityTypes', - 'slot_duration' => 'setSlotDuration', - 'start_date_time' => 'setStartDateTime', - 'end_date_time' => 'setEndDateTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'capacity_types' => 'getCapacityTypes', - 'slot_duration' => 'getSlotDuration', - 'start_date_time' => 'getStartDateTime', - 'end_date_time' => 'getEndDateTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['capacity_types'] = $data['capacity_types'] ?? null; - $this->container['slot_duration'] = $data['slot_duration'] ?? null; - $this->container['start_date_time'] = $data['start_date_time'] ?? null; - $this->container['end_date_time'] = $data['end_date_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_date_time'] === null) { - $invalidProperties[] = "'start_date_time' can't be null"; - } - if ($this->container['end_date_time'] === null) { - $invalidProperties[] = "'end_date_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets capacity_types - * - * @return \SellingPartnerApi\Model\ServiceV1\CapacityType[]|null - */ - public function getCapacityTypes() - { - return $this->container['capacity_types']; - } - - /** - * Sets capacity_types - * - * @param \SellingPartnerApi\Model\ServiceV1\CapacityType[]|null $capacity_types An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. - * - * @return self - */ - public function setCapacityTypes($capacity_types) - { - $this->container['capacity_types'] = $capacity_types; - - return $this; - } - /** - * Gets slot_duration - * - * @return float|null - */ - public function getSlotDuration() - { - return $this->container['slot_duration']; - } - - /** - * Sets slot_duration - * - * @param float|null $slot_duration Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= `slotDuration` <= 360. - * - * @return self - */ - public function setSlotDuration($slot_duration) - { - - - $this->container['slot_duration'] = $slot_duration; - - return $this; - } - /** - * Gets start_date_time - * - * @return string - */ - public function getStartDateTime() - { - return $this->container['start_date_time']; - } - - /** - * Sets start_date_time - * - * @param string $start_date_time Start date time from which the capacity slots are being requested in ISO 8601 format. - * - * @return self - */ - public function setStartDateTime($start_date_time) - { - $this->container['start_date_time'] = $start_date_time; - - return $this; - } - /** - * Gets end_date_time - * - * @return string - */ - public function getEndDateTime() - { - return $this->container['end_date_time']; - } - - /** - * Sets end_date_time - * - * @param string $end_date_time End date time up to which the capacity slots are being requested in ISO 8601 format. - * - * @return self - */ - public function setEndDateTime($end_date_time) - { - $this->container['end_date_time'] = $end_date_time; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FulfillmentDocument.php b/lib/Model/ServiceV1/FulfillmentDocument.php deleted file mode 100644 index 4da36eb41..000000000 --- a/lib/Model/ServiceV1/FulfillmentDocument.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'upload_destination_id' => 'string', - 'content_sha256' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'upload_destination_id' => null, - 'content_sha256' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'upload_destination_id' => 'uploadDestinationId', - 'content_sha256' => 'contentSha256' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'upload_destination_id' => 'setUploadDestinationId', - 'content_sha256' => 'setContentSha256' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'upload_destination_id' => 'getUploadDestinationId', - 'content_sha256' => 'getContentSha256' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['upload_destination_id'] = $data['upload_destination_id'] ?? null; - $this->container['content_sha256'] = $data['content_sha256'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets upload_destination_id - * - * @return string|null - */ - public function getUploadDestinationId() - { - return $this->container['upload_destination_id']; - } - - /** - * Sets upload_destination_id - * - * @param string|null $upload_destination_id The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API. - * - * @return self - */ - public function setUploadDestinationId($upload_destination_id) - { - $this->container['upload_destination_id'] = $upload_destination_id; - - return $this; - } - /** - * Gets content_sha256 - * - * @return string|null - */ - public function getContentSha256() - { - return $this->container['content_sha256']; - } - - /** - * Sets content_sha256 - * - * @param string|null $content_sha256 Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit. - * - * @return self - */ - public function setContentSha256($content_sha256) - { - $this->container['content_sha256'] = $content_sha256; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/FulfillmentTime.php b/lib/Model/ServiceV1/FulfillmentTime.php deleted file mode 100644 index cb00cf921..000000000 --- a/lib/Model/ServiceV1/FulfillmentTime.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FulfillmentTime extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FulfillmentTime'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'end_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'end_time' => 'endTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time The date, time in UTC of the fulfillment start time in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time The date, time in UTC of the fulfillment end time in ISO 8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/GetAppointmentSlotsResponse.php b/lib/Model/ServiceV1/GetAppointmentSlotsResponse.php deleted file mode 100644 index e02097c02..000000000 --- a/lib/Model/ServiceV1/GetAppointmentSlotsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAppointmentSlotsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAppointmentSlotsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\AppointmentSlotReport', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentSlotReport|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentSlotReport|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.php b/lib/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.php deleted file mode 100644 index 37477c801..000000000 --- a/lib/Model/ServiceV1/GetServiceJobByServiceJobIdResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetServiceJobByServiceJobIdResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetServiceJobByServiceJobIdResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\ServiceJob', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\ServiceJob|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceJob|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/GetServiceJobsResponse.php b/lib/Model/ServiceV1/GetServiceJobsResponse.php deleted file mode 100644 index e575255ef..000000000 --- a/lib/Model/ServiceV1/GetServiceJobsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetServiceJobsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetServiceJobsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\JobListing', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\JobListing|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\JobListing|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ItemDelivery.php b/lib/Model/ServiceV1/ItemDelivery.php deleted file mode 100644 index a04dca17d..000000000 --- a/lib/Model/ServiceV1/ItemDelivery.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDelivery extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDelivery'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'estimated_delivery_date' => 'string', - 'item_delivery_promise' => '\SellingPartnerApi\Model\ServiceV1\ItemDeliveryPromise' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'estimated_delivery_date' => null, - 'item_delivery_promise' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'estimated_delivery_date' => 'estimatedDeliveryDate', - 'item_delivery_promise' => 'itemDeliveryPromise' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'estimated_delivery_date' => 'setEstimatedDeliveryDate', - 'item_delivery_promise' => 'setItemDeliveryPromise' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'estimated_delivery_date' => 'getEstimatedDeliveryDate', - 'item_delivery_promise' => 'getItemDeliveryPromise' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; - $this->container['item_delivery_promise'] = $data['item_delivery_promise'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets estimated_delivery_date - * - * @return string|null - */ - public function getEstimatedDeliveryDate() - { - return $this->container['estimated_delivery_date']; - } - - /** - * Sets estimated_delivery_date - * - * @param string|null $estimated_delivery_date The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format. - * - * @return self - */ - public function setEstimatedDeliveryDate($estimated_delivery_date) - { - $this->container['estimated_delivery_date'] = $estimated_delivery_date; - - return $this; - } - /** - * Gets item_delivery_promise - * - * @return \SellingPartnerApi\Model\ServiceV1\ItemDeliveryPromise|null - */ - public function getItemDeliveryPromise() - { - return $this->container['item_delivery_promise']; - } - - /** - * Sets item_delivery_promise - * - * @param \SellingPartnerApi\Model\ServiceV1\ItemDeliveryPromise|null $item_delivery_promise item_delivery_promise - * - * @return self - */ - public function setItemDeliveryPromise($item_delivery_promise) - { - $this->container['item_delivery_promise'] = $item_delivery_promise; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ItemDeliveryPromise.php b/lib/Model/ServiceV1/ItemDeliveryPromise.php deleted file mode 100644 index ca179fd7c..000000000 --- a/lib/Model/ServiceV1/ItemDeliveryPromise.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDeliveryPromise extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDeliveryPromise'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'end_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'end_time' => 'endTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time The date and time of the start of the promised delivery window in ISO 8601 format. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time The date and time of the end of the promised delivery window in ISO 8601 format. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/JobListing.php b/lib/Model/ServiceV1/JobListing.php deleted file mode 100644 index 11827a735..000000000 --- a/lib/Model/ServiceV1/JobListing.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class JobListing extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'JobListing'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_result_size' => 'int', - 'next_page_token' => 'string', - 'previous_page_token' => 'string', - 'jobs' => '\SellingPartnerApi\Model\ServiceV1\ServiceJob[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_result_size' => null, - 'next_page_token' => null, - 'previous_page_token' => null, - 'jobs' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_result_size' => 'totalResultSize', - 'next_page_token' => 'nextPageToken', - 'previous_page_token' => 'previousPageToken', - 'jobs' => 'jobs' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_result_size' => 'setTotalResultSize', - 'next_page_token' => 'setNextPageToken', - 'previous_page_token' => 'setPreviousPageToken', - 'jobs' => 'setJobs' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_result_size' => 'getTotalResultSize', - 'next_page_token' => 'getNextPageToken', - 'previous_page_token' => 'getPreviousPageToken', - 'jobs' => 'getJobs' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_result_size'] = $data['total_result_size'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - $this->container['previous_page_token'] = $data['previous_page_token'] ?? null; - $this->container['jobs'] = $data['jobs'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_result_size - * - * @return int|null - */ - public function getTotalResultSize() - { - return $this->container['total_result_size']; - } - - /** - * Sets total_result_size - * - * @param int|null $total_result_size Total result size of the query result. - * - * @return self - */ - public function setTotalResultSize($total_result_size) - { - $this->container['total_result_size'] = $total_result_size; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - $this->container['next_page_token'] = $next_page_token; - - return $this; - } - /** - * Gets previous_page_token - * - * @return string|null - */ - public function getPreviousPageToken() - { - return $this->container['previous_page_token']; - } - - /** - * Sets previous_page_token - * - * @param string|null $previous_page_token A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results. - * - * @return self - */ - public function setPreviousPageToken($previous_page_token) - { - $this->container['previous_page_token'] = $previous_page_token; - - return $this; - } - /** - * Gets jobs - * - * @return \SellingPartnerApi\Model\ServiceV1\ServiceJob[]|null - */ - public function getJobs() - { - return $this->container['jobs']; - } - - /** - * Sets jobs - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceJob[]|null $jobs List of job details for the given input. - * - * @return self - */ - public function setJobs($jobs) - { - $this->container['jobs'] = $jobs; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Poa.php b/lib/Model/ServiceV1/Poa.php deleted file mode 100644 index e8c7a616c..000000000 --- a/lib/Model/ServiceV1/Poa.php +++ /dev/null @@ -1,344 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Poa extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Poa'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'appointment_time' => '\SellingPartnerApi\Model\ServiceV1\AppointmentTime', - 'technicians' => '\SellingPartnerApi\Model\ServiceV1\Technician[]', - 'uploading_technician' => 'string', - 'upload_time' => 'string', - 'poa_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'appointment_time' => null, - 'technicians' => null, - 'uploading_technician' => null, - 'upload_time' => null, - 'poa_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'appointment_time' => 'appointmentTime', - 'technicians' => 'technicians', - 'uploading_technician' => 'uploadingTechnician', - 'upload_time' => 'uploadTime', - 'poa_type' => 'poaType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'appointment_time' => 'setAppointmentTime', - 'technicians' => 'setTechnicians', - 'uploading_technician' => 'setUploadingTechnician', - 'upload_time' => 'setUploadTime', - 'poa_type' => 'setPoaType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'appointment_time' => 'getAppointmentTime', - 'technicians' => 'getTechnicians', - 'uploading_technician' => 'getUploadingTechnician', - 'upload_time' => 'getUploadTime', - 'poa_type' => 'getPoaType' - ]; - - - - const POA_TYPE_NO_SIGNATURE_DUMMY_POS = 'NO_SIGNATURE_DUMMY_POS'; - const POA_TYPE_CUSTOMER_SIGNATURE = 'CUSTOMER_SIGNATURE'; - const POA_TYPE_DUMMY_RECEIPT = 'DUMMY_RECEIPT'; - const POA_TYPE_POA_RECEIPT = 'POA_RECEIPT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPoaTypeAllowableValues() - { - $baseVals = [ - self::POA_TYPE_NO_SIGNATURE_DUMMY_POS, - self::POA_TYPE_CUSTOMER_SIGNATURE, - self::POA_TYPE_DUMMY_RECEIPT, - self::POA_TYPE_POA_RECEIPT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['appointment_time'] = $data['appointment_time'] ?? null; - $this->container['technicians'] = $data['technicians'] ?? null; - $this->container['uploading_technician'] = $data['uploading_technician'] ?? null; - $this->container['upload_time'] = $data['upload_time'] ?? null; - $this->container['poa_type'] = $data['poa_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['technicians']) && (count($this->container['technicians']) < 1)) { - $invalidProperties[] = "invalid value for 'technicians', number of items must be greater than or equal to 1."; - } - - if (!is_null($this->container['uploading_technician']) && !preg_match("/^[A-Z0-9]*$/", $this->container['uploading_technician'])) { - $invalidProperties[] = "invalid value for 'uploading_technician', must be conform to the pattern /^[A-Z0-9]*$/."; - } - - $allowedValues = $this->getPoaTypeAllowableValues(); - if ( - !is_null($this->container['poa_type']) && - !in_array(strtoupper($this->container['poa_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'poa_type', must be one of '%s'", - $this->container['poa_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets appointment_time - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentTime|null - */ - public function getAppointmentTime() - { - return $this->container['appointment_time']; - } - - /** - * Sets appointment_time - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentTime|null $appointment_time appointment_time - * - * @return self - */ - public function setAppointmentTime($appointment_time) - { - $this->container['appointment_time'] = $appointment_time; - - return $this; - } - /** - * Gets technicians - * - * @return \SellingPartnerApi\Model\ServiceV1\Technician[]|null - */ - public function getTechnicians() - { - return $this->container['technicians']; - } - - /** - * Sets technicians - * - * @param \SellingPartnerApi\Model\ServiceV1\Technician[]|null $technicians A list of technicians. - * - * @return self - */ - public function setTechnicians($technicians) - { - - - if (!is_null($technicians) && (count($technicians) < 1)) { - throw new \InvalidArgumentException('invalid length for $technicians when calling Poa., number of items must be greater than or equal to 1.'); - } - $this->container['technicians'] = $technicians; - - return $this; - } - /** - * Gets uploading_technician - * - * @return string|null - */ - public function getUploadingTechnician() - { - return $this->container['uploading_technician']; - } - - /** - * Sets uploading_technician - * - * @param string|null $uploading_technician The identifier of the technician who uploaded the POA. - * - * @return self - */ - public function setUploadingTechnician($uploading_technician) - { - - if (!is_null($uploading_technician) && (!preg_match("/^[A-Z0-9]*$/", $uploading_technician))) { - throw new \InvalidArgumentException("invalid value for $uploading_technician when calling Poa., must conform to the pattern /^[A-Z0-9]*$/."); - } - - $this->container['uploading_technician'] = $uploading_technician; - - return $this; - } - /** - * Gets upload_time - * - * @return string|null - */ - public function getUploadTime() - { - return $this->container['upload_time']; - } - - /** - * Sets upload_time - * - * @param string|null $upload_time The date and time when the POA was uploaded in ISO 8601 format. - * - * @return self - */ - public function setUploadTime($upload_time) - { - $this->container['upload_time'] = $upload_time; - - return $this; - } - /** - * Gets poa_type - * - * @return string|null - */ - public function getPoaType() - { - return $this->container['poa_type']; - } - - /** - * Sets poa_type - * - * @param string|null $poa_type The type of POA uploaded. - * - * @return self - */ - public function setPoaType($poa_type) - { - $allowedValues = $this->getPoaTypeAllowableValues(); - if (!is_null($poa_type) &&!in_array(strtoupper($poa_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'poa_type', must be one of '%s'", - $poa_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['poa_type'] = $poa_type; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RangeCapacity.php b/lib/Model/ServiceV1/RangeCapacity.php deleted file mode 100644 index d1598d16a..000000000 --- a/lib/Model/ServiceV1/RangeCapacity.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RangeCapacity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RangeCapacity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'capacity_type' => '\SellingPartnerApi\Model\ServiceV1\CapacityType', - 'slots' => '\SellingPartnerApi\Model\ServiceV1\RangeSlot[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'capacity_type' => null, - 'slots' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'capacity_type' => 'capacityType', - 'slots' => 'slots' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'capacity_type' => 'setCapacityType', - 'slots' => 'setSlots' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'capacity_type' => 'getCapacityType', - 'slots' => 'getSlots' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['capacity_type'] = $data['capacity_type'] ?? null; - $this->container['slots'] = $data['slots'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets capacity_type - * - * @return \SellingPartnerApi\Model\ServiceV1\CapacityType|null - */ - public function getCapacityType() - { - return $this->container['capacity_type']; - } - - /** - * Sets capacity_type - * - * @param \SellingPartnerApi\Model\ServiceV1\CapacityType|null $capacity_type capacity_type - * - * @return self - */ - public function setCapacityType($capacity_type) - { - $this->container['capacity_type'] = $capacity_type; - - return $this; - } - /** - * Gets slots - * - * @return \SellingPartnerApi\Model\ServiceV1\RangeSlot[]|null - */ - public function getSlots() - { - return $this->container['slots']; - } - - /** - * Sets slots - * - * @param \SellingPartnerApi\Model\ServiceV1\RangeSlot[]|null $slots Array of capacity slots in range slot format. - * - * @return self - */ - public function setSlots($slots) - { - $this->container['slots'] = $slots; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RangeSlot.php b/lib/Model/ServiceV1/RangeSlot.php deleted file mode 100644 index eaba5a1dc..000000000 --- a/lib/Model/ServiceV1/RangeSlot.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RangeSlot extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RangeSlot'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_date_time' => 'string', - 'end_date_time' => 'string', - 'capacity' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_date_time' => null, - 'end_date_time' => null, - 'capacity' => 'int32' - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_date_time' => 'startDateTime', - 'end_date_time' => 'endDateTime', - 'capacity' => 'capacity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_date_time' => 'setStartDateTime', - 'end_date_time' => 'setEndDateTime', - 'capacity' => 'setCapacity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_date_time' => 'getStartDateTime', - 'end_date_time' => 'getEndDateTime', - 'capacity' => 'getCapacity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_date_time'] = $data['start_date_time'] ?? null; - $this->container['end_date_time'] = $data['end_date_time'] ?? null; - $this->container['capacity'] = $data['capacity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_date_time - * - * @return string|null - */ - public function getStartDateTime() - { - return $this->container['start_date_time']; - } - - /** - * Sets start_date_time - * - * @param string|null $start_date_time Start date time of slot in ISO 8601 format with precision of seconds. - * - * @return self - */ - public function setStartDateTime($start_date_time) - { - $this->container['start_date_time'] = $start_date_time; - - return $this; - } - /** - * Gets end_date_time - * - * @return string|null - */ - public function getEndDateTime() - { - return $this->container['end_date_time']; - } - - /** - * Sets end_date_time - * - * @param string|null $end_date_time End date time of slot in ISO 8601 format with precision of seconds. - * - * @return self - */ - public function setEndDateTime($end_date_time) - { - $this->container['end_date_time'] = $end_date_time; - - return $this; - } - /** - * Gets capacity - * - * @return int|null - */ - public function getCapacity() - { - return $this->container['capacity']; - } - - /** - * Sets capacity - * - * @param int|null $capacity Capacity of the slot. - * - * @return self - */ - public function setCapacity($capacity) - { - $this->container['capacity'] = $capacity; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RangeSlotCapacity.php b/lib/Model/ServiceV1/RangeSlotCapacity.php deleted file mode 100644 index eaada6154..000000000 --- a/lib/Model/ServiceV1/RangeSlotCapacity.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RangeSlotCapacity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RangeSlotCapacity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_id' => 'string', - 'capacities' => '\SellingPartnerApi\Model\ServiceV1\RangeCapacity[]', - 'next_page_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_id' => null, - 'capacities' => null, - 'next_page_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'resource_id' => 'resourceId', - 'capacities' => 'capacities', - 'next_page_token' => 'nextPageToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'resource_id' => 'setResourceId', - 'capacities' => 'setCapacities', - 'next_page_token' => 'setNextPageToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'resource_id' => 'getResourceId', - 'capacities' => 'getCapacities', - 'next_page_token' => 'getNextPageToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_id'] = $data['resource_id'] ?? null; - $this->container['capacities'] = $data['capacities'] ?? null; - $this->container['next_page_token'] = $data['next_page_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets resource_id - * - * @return string|null - */ - public function getResourceId() - { - return $this->container['resource_id']; - } - - /** - * Sets resource_id - * - * @param string|null $resource_id Resource Identifier. - * - * @return self - */ - public function setResourceId($resource_id) - { - $this->container['resource_id'] = $resource_id; - - return $this; - } - /** - * Gets capacities - * - * @return \SellingPartnerApi\Model\ServiceV1\RangeCapacity[]|null - */ - public function getCapacities() - { - return $this->container['capacities']; - } - - /** - * Sets capacities - * - * @param \SellingPartnerApi\Model\ServiceV1\RangeCapacity[]|null $capacities Array of range capacities where each entry is for a specific capacity type. - * - * @return self - */ - public function setCapacities($capacities) - { - $this->container['capacities'] = $capacities; - - return $this; - } - /** - * Gets next_page_token - * - * @return string|null - */ - public function getNextPageToken() - { - return $this->container['next_page_token']; - } - - /** - * Sets next_page_token - * - * @param string|null $next_page_token Next page token, if there are more pages. - * - * @return self - */ - public function setNextPageToken($next_page_token) - { - $this->container['next_page_token'] = $next_page_token; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RangeSlotCapacityErrors.php b/lib/Model/ServiceV1/RangeSlotCapacityErrors.php deleted file mode 100644 index 55a93c606..000000000 --- a/lib/Model/ServiceV1/RangeSlotCapacityErrors.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RangeSlotCapacityErrors extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RangeSlotCapacityErrors'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RangeSlotCapacityQuery.php b/lib/Model/ServiceV1/RangeSlotCapacityQuery.php deleted file mode 100644 index 040c7a7b6..000000000 --- a/lib/Model/ServiceV1/RangeSlotCapacityQuery.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RangeSlotCapacityQuery extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RangeSlotCapacityQuery'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'capacity_types' => '\SellingPartnerApi\Model\ServiceV1\CapacityType[]', - 'start_date_time' => 'string', - 'end_date_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'capacity_types' => null, - 'start_date_time' => null, - 'end_date_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'capacity_types' => 'capacityTypes', - 'start_date_time' => 'startDateTime', - 'end_date_time' => 'endDateTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'capacity_types' => 'setCapacityTypes', - 'start_date_time' => 'setStartDateTime', - 'end_date_time' => 'setEndDateTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'capacity_types' => 'getCapacityTypes', - 'start_date_time' => 'getStartDateTime', - 'end_date_time' => 'getEndDateTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['capacity_types'] = $data['capacity_types'] ?? null; - $this->container['start_date_time'] = $data['start_date_time'] ?? null; - $this->container['end_date_time'] = $data['end_date_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['start_date_time'] === null) { - $invalidProperties[] = "'start_date_time' can't be null"; - } - if ($this->container['end_date_time'] === null) { - $invalidProperties[] = "'end_date_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets capacity_types - * - * @return \SellingPartnerApi\Model\ServiceV1\CapacityType[]|null - */ - public function getCapacityTypes() - { - return $this->container['capacity_types']; - } - - /** - * Sets capacity_types - * - * @param \SellingPartnerApi\Model\ServiceV1\CapacityType[]|null $capacity_types An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. - * - * @return self - */ - public function setCapacityTypes($capacity_types) - { - $this->container['capacity_types'] = $capacity_types; - - return $this; - } - /** - * Gets start_date_time - * - * @return string - */ - public function getStartDateTime() - { - return $this->container['start_date_time']; - } - - /** - * Sets start_date_time - * - * @param string $start_date_time Start date time from which the capacity slots are being requested in ISO 8601 format. - * - * @return self - */ - public function setStartDateTime($start_date_time) - { - $this->container['start_date_time'] = $start_date_time; - - return $this; - } - /** - * Gets end_date_time - * - * @return string - */ - public function getEndDateTime() - { - return $this->container['end_date_time']; - } - - /** - * Sets end_date_time - * - * @param string $end_date_time End date time up to which the capacity slots are being requested in ISO 8601 format. - * - * @return self - */ - public function setEndDateTime($end_date_time) - { - $this->container['end_date_time'] = $end_date_time; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Recurrence.php b/lib/Model/ServiceV1/Recurrence.php deleted file mode 100644 index 0f68eabcf..000000000 --- a/lib/Model/ServiceV1/Recurrence.php +++ /dev/null @@ -1,223 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Recurrence extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Recurrence'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'end_time' => 'string', - 'days_of_week' => '\SellingPartnerApi\Model\ServiceV1\DayOfWeek[]', - 'days_of_month' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'end_time' => null, - 'days_of_week' => null, - 'days_of_month' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'end_time' => 'endTime', - 'days_of_week' => 'daysOfWeek', - 'days_of_month' => 'daysOfMonth' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'end_time' => 'setEndTime', - 'days_of_week' => 'setDaysOfWeek', - 'days_of_month' => 'setDaysOfMonth' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'end_time' => 'getEndTime', - 'days_of_week' => 'getDaysOfWeek', - 'days_of_month' => 'getDaysOfMonth' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['end_time'] = $data['end_time'] ?? null; - $this->container['days_of_week'] = $data['days_of_week'] ?? null; - $this->container['days_of_month'] = $data['days_of_month'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['end_time'] === null) { - $invalidProperties[] = "'end_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets end_time - * - * @return string - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string $end_time End time of the recurrence. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } - /** - * Gets days_of_week - * - * @return \SellingPartnerApi\Model\ServiceV1\DayOfWeek[]|null - */ - public function getDaysOfWeek() - { - return $this->container['days_of_week']; - } - - /** - * Sets days_of_week - * - * @param \SellingPartnerApi\Model\ServiceV1\DayOfWeek[]|null $days_of_week Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list. - * - * @return self - */ - public function setDaysOfWeek($days_of_week) - { - $this->container['days_of_week'] = $days_of_week; - - return $this; - } - /** - * Gets days_of_month - * - * @return int[]|null - */ - public function getDaysOfMonth() - { - return $this->container['days_of_month']; - } - - /** - * Sets days_of_month - * - * @param int[]|null $days_of_month Days of the month when recurrence is valid. - * - * @return self - */ - public function setDaysOfMonth($days_of_month) - { - $this->container['days_of_month'] = $days_of_month; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/RescheduleAppointmentRequest.php b/lib/Model/ServiceV1/RescheduleAppointmentRequest.php deleted file mode 100644 index e0763b4da..000000000 --- a/lib/Model/ServiceV1/RescheduleAppointmentRequest.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RescheduleAppointmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RescheduleAppointmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'appointment_time' => '\SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput', - 'reschedule_reason_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'appointment_time' => null, - 'reschedule_reason_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'appointment_time' => 'appointmentTime', - 'reschedule_reason_code' => 'rescheduleReasonCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'appointment_time' => 'setAppointmentTime', - 'reschedule_reason_code' => 'setRescheduleReasonCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'appointment_time' => 'getAppointmentTime', - 'reschedule_reason_code' => 'getRescheduleReasonCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['appointment_time'] = $data['appointment_time'] ?? null; - $this->container['reschedule_reason_code'] = $data['reschedule_reason_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['appointment_time'] === null) { - $invalidProperties[] = "'appointment_time' can't be null"; - } - if ($this->container['reschedule_reason_code'] === null) { - $invalidProperties[] = "'reschedule_reason_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets appointment_time - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput - */ - public function getAppointmentTime() - { - return $this->container['appointment_time']; - } - - /** - * Sets appointment_time - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentTimeInput $appointment_time appointment_time - * - * @return self - */ - public function setAppointmentTime($appointment_time) - { - $this->container['appointment_time'] = $appointment_time; - - return $this; - } - /** - * Gets reschedule_reason_code - * - * @return string - */ - public function getRescheduleReasonCode() - { - return $this->container['reschedule_reason_code']; - } - - /** - * Sets reschedule_reason_code - * - * @param string $reschedule_reason_code The appointment reschedule reason code. - * - * @return self - */ - public function setRescheduleReasonCode($reschedule_reason_code) - { - $this->container['reschedule_reason_code'] = $reschedule_reason_code; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Reservation.php b/lib/Model/ServiceV1/Reservation.php deleted file mode 100644 index b6b9d4434..000000000 --- a/lib/Model/ServiceV1/Reservation.php +++ /dev/null @@ -1,276 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Reservation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Reservation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reservation_id' => 'string', - 'type' => 'string', - 'availability' => '\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reservation_id' => null, - 'type' => null, - 'availability' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reservation_id' => 'reservationId', - 'type' => 'type', - 'availability' => 'availability' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reservation_id' => 'setReservationId', - 'type' => 'setType', - 'availability' => 'setAvailability' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reservation_id' => 'getReservationId', - 'type' => 'getType', - 'availability' => 'getAvailability' - ]; - - - - const TYPE_APPOINTMENT = 'APPOINTMENT'; - const TYPE_TRAVEL = 'TRAVEL'; - const TYPE_VACATION = 'VACATION'; - const TYPE__BREAK = 'BREAK'; - const TYPE_TRAINING = 'TRAINING'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_APPOINTMENT, - self::TYPE_TRAVEL, - self::TYPE_VACATION, - self::TYPE__BREAK, - self::TYPE_TRAINING, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reservation_id'] = $data['reservation_id'] ?? null; - $this->container['type'] = $data['type'] ?? null; - $this->container['availability'] = $data['availability'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['availability'] === null) { - $invalidProperties[] = "'availability' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets reservation_id - * - * @return string|null - */ - public function getReservationId() - { - return $this->container['reservation_id']; - } - - /** - * Sets reservation_id - * - * @param string|null $reservation_id Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request. - * - * @return self - */ - public function setReservationId($reservation_id) - { - $this->container['reservation_id'] = $reservation_id; - - return $this; - } - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type Type of reservation. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets availability - * - * @return \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord - */ - public function getAvailability() - { - return $this->container['availability']; - } - - /** - * Sets availability - * - * @param \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord $availability availability - * - * @return self - */ - public function setAvailability($availability) - { - $this->container['availability'] = $availability; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ScopeOfWork.php b/lib/Model/ServiceV1/ScopeOfWork.php deleted file mode 100644 index c53ff1072..000000000 --- a/lib/Model/ServiceV1/ScopeOfWork.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ScopeOfWork extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ScopeOfWork'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'title' => 'string', - 'quantity' => 'int', - 'required_skills' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'title' => null, - 'quantity' => null, - 'required_skills' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'title' => 'title', - 'quantity' => 'quantity', - 'required_skills' => 'requiredSkills' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'title' => 'setTitle', - 'quantity' => 'setQuantity', - 'required_skills' => 'setRequiredSkills' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'title' => 'getTitle', - 'quantity' => 'getQuantity', - 'required_skills' => 'getRequiredSkills' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['required_skills'] = $data['required_skills'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the service job. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The title of the service job. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets quantity - * - * @return int|null - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int|null $quantity The number of service jobs. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets required_skills - * - * @return string[]|null - */ - public function getRequiredSkills() - { - return $this->container['required_skills']; - } - - /** - * Sets required_skills - * - * @param string[]|null $required_skills A list of skills required to perform the job. - * - * @return self - */ - public function setRequiredSkills($required_skills) - { - $this->container['required_skills'] = $required_skills; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Seller.php b/lib/Model/ServiceV1/Seller.php deleted file mode 100644 index 0353536ac..000000000 --- a/lib/Model/ServiceV1/Seller.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Seller extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Seller'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'seller_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'seller_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'seller_id' => 'sellerId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'seller_id' => 'setSellerId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'seller_id' => 'getSellerId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['seller_id'] = $data['seller_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['seller_id']) && !preg_match("/^[A-Z0-9]*$/", $this->container['seller_id'])) { - $invalidProperties[] = "invalid value for 'seller_id', must be conform to the pattern /^[A-Z0-9]*$/."; - } - - return $invalidProperties; - } - - - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The identifier of the seller of the service job. - * - * @return self - */ - public function setSellerId($seller_id) - { - - if (!is_null($seller_id) && (!preg_match("/^[A-Z0-9]*$/", $seller_id))) { - throw new \InvalidArgumentException("invalid value for $seller_id when calling Seller., must conform to the pattern /^[A-Z0-9]*$/."); - } - - $this->container['seller_id'] = $seller_id; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ServiceDocumentUploadDestination.php b/lib/Model/ServiceV1/ServiceDocumentUploadDestination.php deleted file mode 100644 index 409abacc6..000000000 --- a/lib/Model/ServiceV1/ServiceDocumentUploadDestination.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceDocumentUploadDestination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceDocumentUploadDestination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'upload_destination_id' => 'string', - 'url' => 'string', - 'encryption_details' => '\SellingPartnerApi\Model\ServiceV1\EncryptionDetails', - 'headers' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'upload_destination_id' => null, - 'url' => null, - 'encryption_details' => null, - 'headers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'upload_destination_id' => 'uploadDestinationId', - 'url' => 'url', - 'encryption_details' => 'encryptionDetails', - 'headers' => 'headers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'upload_destination_id' => 'setUploadDestinationId', - 'url' => 'setUrl', - 'encryption_details' => 'setEncryptionDetails', - 'headers' => 'setHeaders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'upload_destination_id' => 'getUploadDestinationId', - 'url' => 'getUrl', - 'encryption_details' => 'getEncryptionDetails', - 'headers' => 'getHeaders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['upload_destination_id'] = $data['upload_destination_id'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['encryption_details'] = $data['encryption_details'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['upload_destination_id'] === null) { - $invalidProperties[] = "'upload_destination_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - if ($this->container['encryption_details'] === null) { - $invalidProperties[] = "'encryption_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets upload_destination_id - * - * @return string - */ - public function getUploadDestinationId() - { - return $this->container['upload_destination_id']; - } - - /** - * Sets upload_destination_id - * - * @param string $upload_destination_id The unique identifier to be used by APIs that reference the upload destination. - * - * @return self - */ - public function setUploadDestinationId($upload_destination_id) - { - $this->container['upload_destination_id'] = $upload_destination_id; - - return $this; - } - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url The URL to which to upload the file. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Gets encryption_details - * - * @return \SellingPartnerApi\Model\ServiceV1\EncryptionDetails - */ - public function getEncryptionDetails() - { - return $this->container['encryption_details']; - } - - /** - * Sets encryption_details - * - * @param \SellingPartnerApi\Model\ServiceV1\EncryptionDetails $encryption_details encryption_details - * - * @return self - */ - public function setEncryptionDetails($encryption_details) - { - $this->container['encryption_details'] = $encryption_details; - - return $this; - } - /** - * Gets headers - * - * @return object|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param object|null $headers The headers to include in the upload request. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ServiceJob.php b/lib/Model/ServiceV1/ServiceJob.php deleted file mode 100644 index 9786f69f9..000000000 --- a/lib/Model/ServiceV1/ServiceJob.php +++ /dev/null @@ -1,647 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceJob extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceJob'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'create_time' => 'string', - 'service_job_id' => 'string', - 'service_job_status' => 'string', - 'scope_of_work' => '\SellingPartnerApi\Model\ServiceV1\ScopeOfWork', - 'seller' => '\SellingPartnerApi\Model\ServiceV1\Seller', - 'service_job_provider' => '\SellingPartnerApi\Model\ServiceV1\ServiceJobProvider', - 'preferred_appointment_times' => '\SellingPartnerApi\Model\ServiceV1\AppointmentTime[]', - 'appointments' => '\SellingPartnerApi\Model\ServiceV1\Appointment[]', - 'service_order_id' => 'string', - 'marketplace_id' => 'string', - 'store_id' => 'string', - 'buyer' => '\SellingPartnerApi\Model\ServiceV1\Buyer', - 'associated_items' => '\SellingPartnerApi\Model\ServiceV1\AssociatedItem[]', - 'service_location' => '\SellingPartnerApi\Model\ServiceV1\ServiceLocation' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'create_time' => null, - 'service_job_id' => null, - 'service_job_status' => null, - 'scope_of_work' => null, - 'seller' => null, - 'service_job_provider' => null, - 'preferred_appointment_times' => null, - 'appointments' => null, - 'service_order_id' => null, - 'marketplace_id' => null, - 'store_id' => null, - 'buyer' => null, - 'associated_items' => null, - 'service_location' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'create_time' => 'createTime', - 'service_job_id' => 'serviceJobId', - 'service_job_status' => 'serviceJobStatus', - 'scope_of_work' => 'scopeOfWork', - 'seller' => 'seller', - 'service_job_provider' => 'serviceJobProvider', - 'preferred_appointment_times' => 'preferredAppointmentTimes', - 'appointments' => 'appointments', - 'service_order_id' => 'serviceOrderId', - 'marketplace_id' => 'marketplaceId', - 'store_id' => 'storeId', - 'buyer' => 'buyer', - 'associated_items' => 'associatedItems', - 'service_location' => 'serviceLocation' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'create_time' => 'setCreateTime', - 'service_job_id' => 'setServiceJobId', - 'service_job_status' => 'setServiceJobStatus', - 'scope_of_work' => 'setScopeOfWork', - 'seller' => 'setSeller', - 'service_job_provider' => 'setServiceJobProvider', - 'preferred_appointment_times' => 'setPreferredAppointmentTimes', - 'appointments' => 'setAppointments', - 'service_order_id' => 'setServiceOrderId', - 'marketplace_id' => 'setMarketplaceId', - 'store_id' => 'setStoreId', - 'buyer' => 'setBuyer', - 'associated_items' => 'setAssociatedItems', - 'service_location' => 'setServiceLocation' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'create_time' => 'getCreateTime', - 'service_job_id' => 'getServiceJobId', - 'service_job_status' => 'getServiceJobStatus', - 'scope_of_work' => 'getScopeOfWork', - 'seller' => 'getSeller', - 'service_job_provider' => 'getServiceJobProvider', - 'preferred_appointment_times' => 'getPreferredAppointmentTimes', - 'appointments' => 'getAppointments', - 'service_order_id' => 'getServiceOrderId', - 'marketplace_id' => 'getMarketplaceId', - 'store_id' => 'getStoreId', - 'buyer' => 'getBuyer', - 'associated_items' => 'getAssociatedItems', - 'service_location' => 'getServiceLocation' - ]; - - - - const SERVICE_JOB_STATUS_NOT_SERVICED = 'NOT_SERVICED'; - const SERVICE_JOB_STATUS_CANCELLED = 'CANCELLED'; - const SERVICE_JOB_STATUS_COMPLETED = 'COMPLETED'; - const SERVICE_JOB_STATUS_PENDING_SCHEDULE = 'PENDING_SCHEDULE'; - const SERVICE_JOB_STATUS_NOT_FULFILLABLE = 'NOT_FULFILLABLE'; - const SERVICE_JOB_STATUS_HOLD = 'HOLD'; - const SERVICE_JOB_STATUS_PAYMENT_DECLINED = 'PAYMENT_DECLINED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getServiceJobStatusAllowableValues() - { - $baseVals = [ - self::SERVICE_JOB_STATUS_NOT_SERVICED, - self::SERVICE_JOB_STATUS_CANCELLED, - self::SERVICE_JOB_STATUS_COMPLETED, - self::SERVICE_JOB_STATUS_PENDING_SCHEDULE, - self::SERVICE_JOB_STATUS_NOT_FULFILLABLE, - self::SERVICE_JOB_STATUS_HOLD, - self::SERVICE_JOB_STATUS_PAYMENT_DECLINED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['create_time'] = $data['create_time'] ?? null; - $this->container['service_job_id'] = $data['service_job_id'] ?? null; - $this->container['service_job_status'] = $data['service_job_status'] ?? null; - $this->container['scope_of_work'] = $data['scope_of_work'] ?? null; - $this->container['seller'] = $data['seller'] ?? null; - $this->container['service_job_provider'] = $data['service_job_provider'] ?? null; - $this->container['preferred_appointment_times'] = $data['preferred_appointment_times'] ?? null; - $this->container['appointments'] = $data['appointments'] ?? null; - $this->container['service_order_id'] = $data['service_order_id'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['store_id'] = $data['store_id'] ?? null; - $this->container['buyer'] = $data['buyer'] ?? null; - $this->container['associated_items'] = $data['associated_items'] ?? null; - $this->container['service_location'] = $data['service_location'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['service_job_id']) && (mb_strlen($this->container['service_job_id']) > 100)) { - $invalidProperties[] = "invalid value for 'service_job_id', the character length must be smaller than or equal to 100."; - } - - if (!is_null($this->container['service_job_id']) && (mb_strlen($this->container['service_job_id']) < 1)) { - $invalidProperties[] = "invalid value for 'service_job_id', the character length must be bigger than or equal to 1."; - } - - $allowedValues = $this->getServiceJobStatusAllowableValues(); - if ( - !is_null($this->container['service_job_status']) && - !in_array(strtoupper($this->container['service_job_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'service_job_status', must be one of '%s'", - $this->container['service_job_status'], - implode("', '", $allowedValues) - ); - } - - if (!is_null($this->container['service_order_id']) && (mb_strlen($this->container['service_order_id']) > 20)) { - $invalidProperties[] = "invalid value for 'service_order_id', the character length must be smaller than or equal to 20."; - } - - if (!is_null($this->container['service_order_id']) && (mb_strlen($this->container['service_order_id']) < 5)) { - $invalidProperties[] = "invalid value for 'service_order_id', the character length must be bigger than or equal to 5."; - } - - if (!is_null($this->container['marketplace_id']) && !preg_match("/^[A-Z0-9]*$/", $this->container['marketplace_id'])) { - $invalidProperties[] = "invalid value for 'marketplace_id', must be conform to the pattern /^[A-Z0-9]*$/."; - } - - if (!is_null($this->container['store_id']) && (mb_strlen($this->container['store_id']) > 100)) { - $invalidProperties[] = "invalid value for 'store_id', the character length must be smaller than or equal to 100."; - } - - if (!is_null($this->container['store_id']) && (mb_strlen($this->container['store_id']) < 1)) { - $invalidProperties[] = "invalid value for 'store_id', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets create_time - * - * @return string|null - */ - public function getCreateTime() - { - return $this->container['create_time']; - } - - /** - * Sets create_time - * - * @param string|null $create_time The date and time of the creation of the job in ISO 8601 format. - * - * @return self - */ - public function setCreateTime($create_time) - { - $this->container['create_time'] = $create_time; - - return $this; - } - /** - * Gets service_job_id - * - * @return string|null - */ - public function getServiceJobId() - { - return $this->container['service_job_id']; - } - - /** - * Sets service_job_id - * - * @param string|null $service_job_id Amazon identifier for the service job. - * - * @return self - */ - public function setServiceJobId($service_job_id) - { - if (!is_null($service_job_id) && (mb_strlen($service_job_id) > 100)) { - throw new \InvalidArgumentException('invalid length for $service_job_id when calling ServiceJob., must be smaller than or equal to 100.'); - } - if (!is_null($service_job_id) && (mb_strlen($service_job_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $service_job_id when calling ServiceJob., must be bigger than or equal to 1.'); - } - - $this->container['service_job_id'] = $service_job_id; - - return $this; - } - /** - * Gets service_job_status - * - * @return string|null - */ - public function getServiceJobStatus() - { - return $this->container['service_job_status']; - } - - /** - * Sets service_job_status - * - * @param string|null $service_job_status The status of the service job. - * - * @return self - */ - public function setServiceJobStatus($service_job_status) - { - $allowedValues = $this->getServiceJobStatusAllowableValues(); - if (!is_null($service_job_status) &&!in_array(strtoupper($service_job_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'service_job_status', must be one of '%s'", - $service_job_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['service_job_status'] = $service_job_status; - - return $this; - } - /** - * Gets scope_of_work - * - * @return \SellingPartnerApi\Model\ServiceV1\ScopeOfWork|null - */ - public function getScopeOfWork() - { - return $this->container['scope_of_work']; - } - - /** - * Sets scope_of_work - * - * @param \SellingPartnerApi\Model\ServiceV1\ScopeOfWork|null $scope_of_work scope_of_work - * - * @return self - */ - public function setScopeOfWork($scope_of_work) - { - $this->container['scope_of_work'] = $scope_of_work; - - return $this; - } - /** - * Gets seller - * - * @return \SellingPartnerApi\Model\ServiceV1\Seller|null - */ - public function getSeller() - { - return $this->container['seller']; - } - - /** - * Sets seller - * - * @param \SellingPartnerApi\Model\ServiceV1\Seller|null $seller seller - * - * @return self - */ - public function setSeller($seller) - { - $this->container['seller'] = $seller; - - return $this; - } - /** - * Gets service_job_provider - * - * @return \SellingPartnerApi\Model\ServiceV1\ServiceJobProvider|null - */ - public function getServiceJobProvider() - { - return $this->container['service_job_provider']; - } - - /** - * Sets service_job_provider - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceJobProvider|null $service_job_provider service_job_provider - * - * @return self - */ - public function setServiceJobProvider($service_job_provider) - { - $this->container['service_job_provider'] = $service_job_provider; - - return $this; - } - /** - * Gets preferred_appointment_times - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentTime[]|null - */ - public function getPreferredAppointmentTimes() - { - return $this->container['preferred_appointment_times']; - } - - /** - * Sets preferred_appointment_times - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentTime[]|null $preferred_appointment_times A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order. - * - * @return self - */ - public function setPreferredAppointmentTimes($preferred_appointment_times) - { - $this->container['preferred_appointment_times'] = $preferred_appointment_times; - - return $this; - } - /** - * Gets appointments - * - * @return \SellingPartnerApi\Model\ServiceV1\Appointment[]|null - */ - public function getAppointments() - { - return $this->container['appointments']; - } - - /** - * Sets appointments - * - * @param \SellingPartnerApi\Model\ServiceV1\Appointment[]|null $appointments A list of appointments. - * - * @return self - */ - public function setAppointments($appointments) - { - $this->container['appointments'] = $appointments; - - return $this; - } - /** - * Gets service_order_id - * - * @return string|null - */ - public function getServiceOrderId() - { - return $this->container['service_order_id']; - } - - /** - * Sets service_order_id - * - * @param string|null $service_order_id The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. - * - * @return self - */ - public function setServiceOrderId($service_order_id) - { - if (!is_null($service_order_id) && (mb_strlen($service_order_id) > 20)) { - throw new \InvalidArgumentException('invalid length for $service_order_id when calling ServiceJob., must be smaller than or equal to 20.'); - } - if (!is_null($service_order_id) && (mb_strlen($service_order_id) < 5)) { - throw new \InvalidArgumentException('invalid length for $service_order_id when calling ServiceJob., must be bigger than or equal to 5.'); - } - - $this->container['service_order_id'] = $service_order_id; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - - if (!is_null($marketplace_id) && (!preg_match("/^[A-Z0-9]*$/", $marketplace_id))) { - throw new \InvalidArgumentException("invalid value for $marketplace_id when calling ServiceJob., must conform to the pattern /^[A-Z0-9]*$/."); - } - - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets store_id - * - * @return string|null - */ - public function getStoreId() - { - return $this->container['store_id']; - } - - /** - * Sets store_id - * - * @param string|null $store_id The Amazon-defined identifier for the region scope. - * - * @return self - */ - public function setStoreId($store_id) - { - if (!is_null($store_id) && (mb_strlen($store_id) > 100)) { - throw new \InvalidArgumentException('invalid length for $store_id when calling ServiceJob., must be smaller than or equal to 100.'); - } - if (!is_null($store_id) && (mb_strlen($store_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $store_id when calling ServiceJob., must be bigger than or equal to 1.'); - } - - $this->container['store_id'] = $store_id; - - return $this; - } - /** - * Gets buyer - * - * @return \SellingPartnerApi\Model\ServiceV1\Buyer|null - */ - public function getBuyer() - { - return $this->container['buyer']; - } - - /** - * Sets buyer - * - * @param \SellingPartnerApi\Model\ServiceV1\Buyer|null $buyer buyer - * - * @return self - */ - public function setBuyer($buyer) - { - $this->container['buyer'] = $buyer; - - return $this; - } - /** - * Gets associated_items - * - * @return \SellingPartnerApi\Model\ServiceV1\AssociatedItem[]|null - */ - public function getAssociatedItems() - { - return $this->container['associated_items']; - } - - /** - * Sets associated_items - * - * @param \SellingPartnerApi\Model\ServiceV1\AssociatedItem[]|null $associated_items A list of items associated with the service job. - * - * @return self - */ - public function setAssociatedItems($associated_items) - { - $this->container['associated_items'] = $associated_items; - - return $this; - } - /** - * Gets service_location - * - * @return \SellingPartnerApi\Model\ServiceV1\ServiceLocation|null - */ - public function getServiceLocation() - { - return $this->container['service_location']; - } - - /** - * Sets service_location - * - * @param \SellingPartnerApi\Model\ServiceV1\ServiceLocation|null $service_location service_location - * - * @return self - */ - public function setServiceLocation($service_location) - { - $this->container['service_location'] = $service_location; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ServiceJobProvider.php b/lib/Model/ServiceV1/ServiceJobProvider.php deleted file mode 100644 index b26237e38..000000000 --- a/lib/Model/ServiceV1/ServiceJobProvider.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceJobProvider extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceJobProvider'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'service_job_provider_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'service_job_provider_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'service_job_provider_id' => 'serviceJobProviderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'service_job_provider_id' => 'setServiceJobProviderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'service_job_provider_id' => 'getServiceJobProviderId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['service_job_provider_id'] = $data['service_job_provider_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['service_job_provider_id']) && !preg_match("/^[A-Z0-9]*$/", $this->container['service_job_provider_id'])) { - $invalidProperties[] = "invalid value for 'service_job_provider_id', must be conform to the pattern /^[A-Z0-9]*$/."; - } - - return $invalidProperties; - } - - - /** - * Gets service_job_provider_id - * - * @return string|null - */ - public function getServiceJobProviderId() - { - return $this->container['service_job_provider_id']; - } - - /** - * Sets service_job_provider_id - * - * @param string|null $service_job_provider_id The identifier of the service job provider. - * - * @return self - */ - public function setServiceJobProviderId($service_job_provider_id) - { - - if (!is_null($service_job_provider_id) && (!preg_match("/^[A-Z0-9]*$/", $service_job_provider_id))) { - throw new \InvalidArgumentException("invalid value for $service_job_provider_id when calling ServiceJobProvider., must conform to the pattern /^[A-Z0-9]*$/."); - } - - $this->container['service_job_provider_id'] = $service_job_provider_id; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ServiceLocation.php b/lib/Model/ServiceV1/ServiceLocation.php deleted file mode 100644 index e46248292..000000000 --- a/lib/Model/ServiceV1/ServiceLocation.php +++ /dev/null @@ -1,237 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceLocation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceLocation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'service_location_type' => 'string', - 'address' => '\SellingPartnerApi\Model\ServiceV1\Address' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'service_location_type' => null, - 'address' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'service_location_type' => 'serviceLocationType', - 'address' => 'address' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'service_location_type' => 'setServiceLocationType', - 'address' => 'setAddress' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'service_location_type' => 'getServiceLocationType', - 'address' => 'getAddress' - ]; - - - - const SERVICE_LOCATION_TYPE_IN_HOME = 'IN_HOME'; - const SERVICE_LOCATION_TYPE_IN_STORE = 'IN_STORE'; - const SERVICE_LOCATION_TYPE_ONLINE = 'ONLINE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getServiceLocationTypeAllowableValues() - { - $baseVals = [ - self::SERVICE_LOCATION_TYPE_IN_HOME, - self::SERVICE_LOCATION_TYPE_IN_STORE, - self::SERVICE_LOCATION_TYPE_ONLINE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['service_location_type'] = $data['service_location_type'] ?? null; - $this->container['address'] = $data['address'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getServiceLocationTypeAllowableValues(); - if ( - !is_null($this->container['service_location_type']) && - !in_array(strtoupper($this->container['service_location_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'service_location_type', must be one of '%s'", - $this->container['service_location_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets service_location_type - * - * @return string|null - */ - public function getServiceLocationType() - { - return $this->container['service_location_type']; - } - - /** - * Sets service_location_type - * - * @param string|null $service_location_type The location of the service job. - * - * @return self - */ - public function setServiceLocationType($service_location_type) - { - $allowedValues = $this->getServiceLocationTypeAllowableValues(); - if (!is_null($service_location_type) &&!in_array(strtoupper($service_location_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'service_location_type', must be one of '%s'", - $service_location_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['service_location_type'] = $service_location_type; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\ServiceV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\ServiceV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/ServiceUploadDocument.php b/lib/Model/ServiceV1/ServiceUploadDocument.php deleted file mode 100644 index 4ecb35bef..000000000 --- a/lib/Model/ServiceV1/ServiceUploadDocument.php +++ /dev/null @@ -1,303 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceUploadDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceUploadDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'content_type' => 'string', - 'content_length' => 'float', - 'content_md5' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'content_type' => null, - 'content_length' => 'int64', - 'content_md5' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'content_type' => 'contentType', - 'content_length' => 'contentLength', - 'content_md5' => 'contentMD5' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'content_type' => 'setContentType', - 'content_length' => 'setContentLength', - 'content_md5' => 'setContentMd5' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'content_type' => 'getContentType', - 'content_length' => 'getContentLength', - 'content_md5' => 'getContentMd5' - ]; - - - - const CONTENT_TYPE_TIFF = 'TIFF'; - const CONTENT_TYPE_JPG = 'JPG'; - const CONTENT_TYPE_PNG = 'PNG'; - const CONTENT_TYPE_JPEG = 'JPEG'; - const CONTENT_TYPE_GIF = 'GIF'; - const CONTENT_TYPE_PDF = 'PDF'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContentTypeAllowableValues() - { - $baseVals = [ - self::CONTENT_TYPE_TIFF, - self::CONTENT_TYPE_JPG, - self::CONTENT_TYPE_PNG, - self::CONTENT_TYPE_JPEG, - self::CONTENT_TYPE_GIF, - self::CONTENT_TYPE_PDF, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['content_type'] = $data['content_type'] ?? null; - $this->container['content_length'] = $data['content_length'] ?? null; - $this->container['content_md5'] = $data['content_md5'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content_type'] === null) { - $invalidProperties[] = "'content_type' can't be null"; - } - $allowedValues = $this->getContentTypeAllowableValues(); - if ( - !is_null($this->container['content_type']) && - !in_array(strtoupper($this->container['content_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'content_type', must be one of '%s'", - $this->container['content_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['content_length'] === null) { - $invalidProperties[] = "'content_length' can't be null"; - } - if (($this->container['content_length'] > 5.24288E+6)) { - $invalidProperties[] = "invalid value for 'content_length', must be smaller than or equal to 5.24288E+6."; - } - - if (($this->container['content_length'] < 1)) { - $invalidProperties[] = "invalid value for 'content_length', must be bigger than or equal to 1."; - } - - if (!is_null($this->container['content_md5']) && !preg_match("/^[A-Za-z0-9\\\\+\/]{22}={2}$/", $this->container['content_md5'])) { - $invalidProperties[] = "invalid value for 'content_md5', must be conform to the pattern /^[A-Za-z0-9\\\\+\/]{22}={2}$/."; - } - - return $invalidProperties; - } - - - /** - * Gets content_type - * - * @return string - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param string $content_type The content type of the to-be-uploaded file - * - * @return self - */ - public function setContentType($content_type) - { - $allowedValues = $this->getContentTypeAllowableValues(); - if (!in_array(strtoupper($content_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'content_type', must be one of '%s'", - $content_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['content_type'] = $content_type; - - return $this; - } - /** - * Gets content_length - * - * @return float - */ - public function getContentLength() - { - return $this->container['content_length']; - } - - /** - * Sets content_length - * - * @param float $content_length The content length of the to-be-uploaded file - * - * @return self - */ - public function setContentLength($content_length) - { - - if (($content_length > 5.24288E+6)) { - throw new \InvalidArgumentException('invalid value for $content_length when calling ServiceUploadDocument., must be smaller than or equal to 5.24288E+6.'); - } - if (($content_length < 1)) { - throw new \InvalidArgumentException('invalid value for $content_length when calling ServiceUploadDocument., must be bigger than or equal to 1.'); - } - - $this->container['content_length'] = $content_length; - - return $this; - } - /** - * Gets content_md5 - * - * @return string|null - */ - public function getContentMd5() - { - return $this->container['content_md5']; - } - - /** - * Sets content_md5 - * - * @param string|null $content_md5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. - * - * @return self - */ - public function setContentMd5($content_md5) - { - - if (!is_null($content_md5) && (!preg_match("/^[A-Za-z0-9\\\\+\/]{22}={2}$/", $content_md5))) { - throw new \InvalidArgumentException("invalid value for $content_md5 when calling ServiceUploadDocument., must conform to the pattern /^[A-Za-z0-9\\\\+\/]{22}={2}$/."); - } - - $this->container['content_md5'] = $content_md5; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.php b/lib/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.php deleted file mode 100644 index f95af0d1b..000000000 --- a/lib/Model/ServiceV1/SetAppointmentFulfillmentDataRequest.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SetAppointmentFulfillmentDataRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SetAppointmentFulfillmentDataRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fulfillment_time' => '\SellingPartnerApi\Model\ServiceV1\FulfillmentTime', - 'appointment_resources' => '\SellingPartnerApi\Model\ServiceV1\AppointmentResource[]', - 'fulfillment_documents' => '\SellingPartnerApi\Model\ServiceV1\FulfillmentDocument[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fulfillment_time' => null, - 'appointment_resources' => null, - 'fulfillment_documents' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fulfillment_time' => 'fulfillmentTime', - 'appointment_resources' => 'appointmentResources', - 'fulfillment_documents' => 'fulfillmentDocuments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fulfillment_time' => 'setFulfillmentTime', - 'appointment_resources' => 'setAppointmentResources', - 'fulfillment_documents' => 'setFulfillmentDocuments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fulfillment_time' => 'getFulfillmentTime', - 'appointment_resources' => 'getAppointmentResources', - 'fulfillment_documents' => 'getFulfillmentDocuments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fulfillment_time'] = $data['fulfillment_time'] ?? null; - $this->container['appointment_resources'] = $data['appointment_resources'] ?? null; - $this->container['fulfillment_documents'] = $data['fulfillment_documents'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets fulfillment_time - * - * @return \SellingPartnerApi\Model\ServiceV1\FulfillmentTime|null - */ - public function getFulfillmentTime() - { - return $this->container['fulfillment_time']; - } - - /** - * Sets fulfillment_time - * - * @param \SellingPartnerApi\Model\ServiceV1\FulfillmentTime|null $fulfillment_time fulfillment_time - * - * @return self - */ - public function setFulfillmentTime($fulfillment_time) - { - $this->container['fulfillment_time'] = $fulfillment_time; - - return $this; - } - /** - * Gets appointment_resources - * - * @return \SellingPartnerApi\Model\ServiceV1\AppointmentResource[]|null - */ - public function getAppointmentResources() - { - return $this->container['appointment_resources']; - } - - /** - * Sets appointment_resources - * - * @param \SellingPartnerApi\Model\ServiceV1\AppointmentResource[]|null $appointment_resources List of resources that performs or performed job appointment fulfillment. - * - * @return self - */ - public function setAppointmentResources($appointment_resources) - { - $this->container['appointment_resources'] = $appointment_resources; - - return $this; - } - /** - * Gets fulfillment_documents - * - * @return \SellingPartnerApi\Model\ServiceV1\FulfillmentDocument[]|null - */ - public function getFulfillmentDocuments() - { - return $this->container['fulfillment_documents']; - } - - /** - * Sets fulfillment_documents - * - * @param \SellingPartnerApi\Model\ServiceV1\FulfillmentDocument[]|null $fulfillment_documents List of documents captured during service appointment fulfillment. - * - * @return self - */ - public function setFulfillmentDocuments($fulfillment_documents) - { - $this->container['fulfillment_documents'] = $fulfillment_documents; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/SetAppointmentResponse.php b/lib/Model/ServiceV1/SetAppointmentResponse.php deleted file mode 100644 index a29370689..000000000 --- a/lib/Model/ServiceV1/SetAppointmentResponse.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SetAppointmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SetAppointmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'appointment_id' => 'string', - 'warnings' => '\SellingPartnerApi\Model\ServiceV1\Warning[]', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'appointment_id' => null, - 'warnings' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'appointment_id' => 'appointmentId', - 'warnings' => 'warnings', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'appointment_id' => 'setAppointmentId', - 'warnings' => 'setWarnings', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'appointment_id' => 'getAppointmentId', - 'warnings' => 'getWarnings', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['appointment_id'] = $data['appointment_id'] ?? null; - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['appointment_id']) && (mb_strlen($this->container['appointment_id']) > 100)) { - $invalidProperties[] = "invalid value for 'appointment_id', the character length must be smaller than or equal to 100."; - } - - if (!is_null($this->container['appointment_id']) && (mb_strlen($this->container['appointment_id']) < 5)) { - $invalidProperties[] = "invalid value for 'appointment_id', the character length must be bigger than or equal to 5."; - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets appointment_id - * - * @return string|null - */ - public function getAppointmentId() - { - return $this->container['appointment_id']; - } - - /** - * Sets appointment_id - * - * @param string|null $appointment_id The appointment identifier. - * - * @return self - */ - public function setAppointmentId($appointment_id) - { - if (!is_null($appointment_id) && (mb_strlen($appointment_id) > 100)) { - throw new \InvalidArgumentException('invalid length for $appointment_id when calling SetAppointmentResponse., must be smaller than or equal to 100.'); - } - if (!is_null($appointment_id) && (mb_strlen($appointment_id) < 5)) { - throw new \InvalidArgumentException('invalid length for $appointment_id when calling SetAppointmentResponse., must be bigger than or equal to 5.'); - } - - $this->container['appointment_id'] = $appointment_id; - - return $this; - } - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\ServiceV1\Warning[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\ServiceV1\Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. - * - * @return self - */ - public function setWarnings($warnings) - { - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Technician.php b/lib/Model/ServiceV1/Technician.php deleted file mode 100644 index 51ea37679..000000000 --- a/lib/Model/ServiceV1/Technician.php +++ /dev/null @@ -1,206 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Technician extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Technician'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'technician_id' => 'string', - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'technician_id' => null, - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'technician_id' => 'technicianId', - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'technician_id' => 'setTechnicianId', - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'technician_id' => 'getTechnicianId', - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['technician_id'] = $data['technician_id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['technician_id']) && (mb_strlen($this->container['technician_id']) > 50)) { - $invalidProperties[] = "invalid value for 'technician_id', the character length must be smaller than or equal to 50."; - } - - if (!is_null($this->container['technician_id']) && (mb_strlen($this->container['technician_id']) < 1)) { - $invalidProperties[] = "invalid value for 'technician_id', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets technician_id - * - * @return string|null - */ - public function getTechnicianId() - { - return $this->container['technician_id']; - } - - /** - * Sets technician_id - * - * @param string|null $technician_id The technician identifier. - * - * @return self - */ - public function setTechnicianId($technician_id) - { - if (!is_null($technician_id) && (mb_strlen($technician_id) > 50)) { - throw new \InvalidArgumentException('invalid length for $technician_id when calling Technician., must be smaller than or equal to 50.'); - } - if (!is_null($technician_id) && (mb_strlen($technician_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $technician_id when calling Technician., must be bigger than or equal to 1.'); - } - - $this->container['technician_id'] = $technician_id; - - return $this; - } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the technician. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateReservationRecord.php b/lib/Model/ServiceV1/UpdateReservationRecord.php deleted file mode 100644 index 0b88d9e9f..000000000 --- a/lib/Model/ServiceV1/UpdateReservationRecord.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateReservationRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateReservationRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reservation' => '\SellingPartnerApi\Model\ServiceV1\Reservation', - 'warnings' => '\SellingPartnerApi\Model\ServiceV1\Warning[]', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reservation' => null, - 'warnings' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reservation' => 'reservation', - 'warnings' => 'warnings', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reservation' => 'setReservation', - 'warnings' => 'setWarnings', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reservation' => 'getReservation', - 'warnings' => 'getWarnings', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reservation'] = $data['reservation'] ?? null; - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets reservation - * - * @return \SellingPartnerApi\Model\ServiceV1\Reservation|null - */ - public function getReservation() - { - return $this->container['reservation']; - } - - /** - * Sets reservation - * - * @param \SellingPartnerApi\Model\ServiceV1\Reservation|null $reservation reservation - * - * @return self - */ - public function setReservation($reservation) - { - $this->container['reservation'] = $reservation; - - return $this; - } - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\ServiceV1\Warning[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\ServiceV1\Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. - * - * @return self - */ - public function setWarnings($warnings) - { - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateReservationRequest.php b/lib/Model/ServiceV1/UpdateReservationRequest.php deleted file mode 100644 index 19c76a142..000000000 --- a/lib/Model/ServiceV1/UpdateReservationRequest.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateReservationRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateReservationRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'resource_id' => 'string', - 'reservation' => '\SellingPartnerApi\Model\ServiceV1\Reservation' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'resource_id' => null, - 'reservation' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'resource_id' => 'resourceId', - 'reservation' => 'reservation' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'resource_id' => 'setResourceId', - 'reservation' => 'setReservation' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'resource_id' => 'getResourceId', - 'reservation' => 'getReservation' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['resource_id'] = $data['resource_id'] ?? null; - $this->container['reservation'] = $data['reservation'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['resource_id'] === null) { - $invalidProperties[] = "'resource_id' can't be null"; - } - if ($this->container['reservation'] === null) { - $invalidProperties[] = "'reservation' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets resource_id - * - * @return string - */ - public function getResourceId() - { - return $this->container['resource_id']; - } - - /** - * Sets resource_id - * - * @param string $resource_id Resource (store) identifier. - * - * @return self - */ - public function setResourceId($resource_id) - { - $this->container['resource_id'] = $resource_id; - - return $this; - } - /** - * Gets reservation - * - * @return \SellingPartnerApi\Model\ServiceV1\Reservation - */ - public function getReservation() - { - return $this->container['reservation']; - } - - /** - * Sets reservation - * - * @param \SellingPartnerApi\Model\ServiceV1\Reservation $reservation reservation - * - * @return self - */ - public function setReservation($reservation) - { - $this->container['reservation'] = $reservation; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateReservationResponse.php b/lib/Model/ServiceV1/UpdateReservationResponse.php deleted file mode 100644 index 3e4babd92..000000000 --- a/lib/Model/ServiceV1/UpdateReservationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateReservationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateReservationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\UpdateReservationRecord', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\UpdateReservationRecord|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\UpdateReservationRecord|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateScheduleRecord.php b/lib/Model/ServiceV1/UpdateScheduleRecord.php deleted file mode 100644 index c43949a30..000000000 --- a/lib/Model/ServiceV1/UpdateScheduleRecord.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateScheduleRecord extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateScheduleRecord'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'availability' => '\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord', - 'warnings' => '\SellingPartnerApi\Model\ServiceV1\Warning[]', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'availability' => null, - 'warnings' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'availability' => 'availability', - 'warnings' => 'warnings', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'availability' => 'setAvailability', - 'warnings' => 'setWarnings', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'availability' => 'getAvailability', - 'warnings' => 'getWarnings', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['availability'] = $data['availability'] ?? null; - $this->container['warnings'] = $data['warnings'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets availability - * - * @return \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord|null - */ - public function getAvailability() - { - return $this->container['availability']; - } - - /** - * Sets availability - * - * @param \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord|null $availability availability - * - * @return self - */ - public function setAvailability($availability) - { - $this->container['availability'] = $availability; - - return $this; - } - /** - * Gets warnings - * - * @return \SellingPartnerApi\Model\ServiceV1\Warning[]|null - */ - public function getWarnings() - { - return $this->container['warnings']; - } - - /** - * Sets warnings - * - * @param \SellingPartnerApi\Model\ServiceV1\Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. - * - * @return self - */ - public function setWarnings($warnings) - { - $this->container['warnings'] = $warnings; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateScheduleRequest.php b/lib/Model/ServiceV1/UpdateScheduleRequest.php deleted file mode 100644 index cf350b903..000000000 --- a/lib/Model/ServiceV1/UpdateScheduleRequest.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateScheduleRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateScheduleRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'schedules' => '\SellingPartnerApi\Model\ServiceV1\AvailabilityRecord[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'schedules' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'schedules' => 'schedules' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'schedules' => 'setSchedules' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'schedules' => 'getSchedules' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['schedules'] = $data['schedules'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['schedules'] === null) { - $invalidProperties[] = "'schedules' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets schedules - * - * @return \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord[] - */ - public function getSchedules() - { - return $this->container['schedules']; - } - - /** - * Sets schedules - * - * @param \SellingPartnerApi\Model\ServiceV1\AvailabilityRecord[] $schedules List of `AvailabilityRecord`s to represent the capacity of a resource over a time range. - * - * @return self - */ - public function setSchedules($schedules) - { - $this->container['schedules'] = $schedules; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/UpdateScheduleResponse.php b/lib/Model/ServiceV1/UpdateScheduleResponse.php deleted file mode 100644 index 633a5771d..000000000 --- a/lib/Model/ServiceV1/UpdateScheduleResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UpdateScheduleResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UpdateScheduleResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ServiceV1\UpdateScheduleRecord[]', - 'errors' => '\SellingPartnerApi\Model\ServiceV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRecord[]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ServiceV1\UpdateScheduleRecord[]|null $payload Contains the `UpdateScheduleRecords` for which the error/warning has occurred. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ServiceV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ServiceV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ServiceV1/Warning.php b/lib/Model/ServiceV1/Warning.php deleted file mode 100644 index c80ab47b2..000000000 --- a/lib/Model/ServiceV1/Warning.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Warning extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Warning'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An warning code that identifies the type of warning that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the warning condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or address the warning. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/Address.php b/lib/Model/ShipmentInvoicingV0/Address.php deleted file mode 100644 index 9f3104bfe..000000000 --- a/lib/Model/ShipmentInvoicingV0/Address.php +++ /dev/null @@ -1,481 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string', - 'address_type' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\AddressTypeEnum' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null, - 'address_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'address_line1' => 'AddressLine1', - 'address_line2' => 'AddressLine2', - 'address_line3' => 'AddressLine3', - 'city' => 'City', - 'county' => 'County', - 'district' => 'District', - 'state_or_region' => 'StateOrRegion', - 'postal_code' => 'PostalCode', - 'country_code' => 'CountryCode', - 'phone' => 'Phone', - 'address_type' => 'AddressType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone', - 'address_type' => 'setAddressType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone', - 'address_type' => 'getAddressType' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - $this->container['address_type'] = $data['address_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string|null - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string|null $address_line1 The street address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The country code. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } - /** - * Gets address_type - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\AddressTypeEnum|null - */ - public function getAddressType() - { - return $this->container['address_type']; - } - - /** - * Sets address_type - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\AddressTypeEnum|null $address_type address_type - * - * @return self - */ - public function setAddressType($address_type) - { - $this->container['address_type'] = $address_type; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/AddressTypeEnum.php b/lib/Model/ShipmentInvoicingV0/AddressTypeEnum.php deleted file mode 100644 index 1188dc2fb..000000000 --- a/lib/Model/ShipmentInvoicingV0/AddressTypeEnum.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/BuyerTaxInfo.php b/lib/Model/ShipmentInvoicingV0/BuyerTaxInfo.php deleted file mode 100644 index 41daa09fa..000000000 --- a/lib/Model/ShipmentInvoicingV0/BuyerTaxInfo.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerTaxInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'BuyerTaxInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'company_legal_name' => 'string', - 'taxing_region' => 'string', - 'tax_classifications' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'company_legal_name' => null, - 'taxing_region' => null, - 'tax_classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'company_legal_name' => 'CompanyLegalName', - 'taxing_region' => 'TaxingRegion', - 'tax_classifications' => 'TaxClassifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'company_legal_name' => 'setCompanyLegalName', - 'taxing_region' => 'setTaxingRegion', - 'tax_classifications' => 'setTaxClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'company_legal_name' => 'getCompanyLegalName', - 'taxing_region' => 'getTaxingRegion', - 'tax_classifications' => 'getTaxClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['company_legal_name'] = $data['company_legal_name'] ?? null; - $this->container['taxing_region'] = $data['taxing_region'] ?? null; - $this->container['tax_classifications'] = $data['tax_classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets company_legal_name - * - * @return string|null - */ - public function getCompanyLegalName() - { - return $this->container['company_legal_name']; - } - - /** - * Sets company_legal_name - * - * @param string|null $company_legal_name The legal name of the company. - * - * @return self - */ - public function setCompanyLegalName($company_legal_name) - { - $this->container['company_legal_name'] = $company_legal_name; - - return $this; - } - /** - * Gets taxing_region - * - * @return string|null - */ - public function getTaxingRegion() - { - return $this->container['taxing_region']; - } - - /** - * Sets taxing_region - * - * @param string|null $taxing_region The country or region imposing the tax. - * - * @return self - */ - public function setTaxingRegion($taxing_region) - { - $this->container['taxing_region'] = $taxing_region; - - return $this; - } - /** - * Gets tax_classifications - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]|null - */ - public function getTaxClassifications() - { - return $this->container['tax_classifications']; - } - - /** - * Sets tax_classifications - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]|null $tax_classifications The list of tax classifications. - * - * @return self - */ - public function setTaxClassifications($tax_classifications) - { - $this->container['tax_classifications'] = $tax_classifications; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/Error.php b/lib/Model/ShipmentInvoicingV0/Error.php deleted file mode 100644 index 7e308bc0a..000000000 --- a/lib/Model/ShipmentInvoicingV0/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.php b/lib/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.php deleted file mode 100644 index d03ad7f09..000000000 --- a/lib/Model/ShipmentInvoicingV0/GetInvoiceStatusResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetInvoiceStatusResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetInvoiceStatusResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusResponse', - 'errors' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusResponse|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusResponse|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.php b/lib/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.php deleted file mode 100644 index 571ec3322..000000000 --- a/lib/Model/ShipmentInvoicingV0/GetShipmentDetailsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentDetail', - 'errors' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentDetail|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentDetail|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.php b/lib/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.php deleted file mode 100644 index f60ad2e92..000000000 --- a/lib/Model/ShipmentInvoicingV0/MarketplaceTaxInfo.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MarketplaceTaxInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MarketplaceTaxInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'company_legal_name' => 'string', - 'taxing_region' => 'string', - 'tax_classifications' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'company_legal_name' => null, - 'taxing_region' => null, - 'tax_classifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'company_legal_name' => 'CompanyLegalName', - 'taxing_region' => 'TaxingRegion', - 'tax_classifications' => 'TaxClassifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'company_legal_name' => 'setCompanyLegalName', - 'taxing_region' => 'setTaxingRegion', - 'tax_classifications' => 'setTaxClassifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'company_legal_name' => 'getCompanyLegalName', - 'taxing_region' => 'getTaxingRegion', - 'tax_classifications' => 'getTaxClassifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['company_legal_name'] = $data['company_legal_name'] ?? null; - $this->container['taxing_region'] = $data['taxing_region'] ?? null; - $this->container['tax_classifications'] = $data['tax_classifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets company_legal_name - * - * @return string|null - */ - public function getCompanyLegalName() - { - return $this->container['company_legal_name']; - } - - /** - * Sets company_legal_name - * - * @param string|null $company_legal_name The legal name of the company. - * - * @return self - */ - public function setCompanyLegalName($company_legal_name) - { - $this->container['company_legal_name'] = $company_legal_name; - - return $this; - } - /** - * Gets taxing_region - * - * @return string|null - */ - public function getTaxingRegion() - { - return $this->container['taxing_region']; - } - - /** - * Sets taxing_region - * - * @param string|null $taxing_region The country or region imposing the tax. - * - * @return self - */ - public function setTaxingRegion($taxing_region) - { - $this->container['taxing_region'] = $taxing_region; - - return $this; - } - /** - * Gets tax_classifications - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]|null - */ - public function getTaxClassifications() - { - return $this->container['tax_classifications']; - } - - /** - * Sets tax_classifications - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\TaxClassification[]|null $tax_classifications The list of tax classifications. - * - * @return self - */ - public function setTaxClassifications($tax_classifications) - { - $this->container['tax_classifications'] = $tax_classifications; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/Money.php b/lib/Model/ShipmentInvoicingV0/Money.php deleted file mode 100644 index 46b64bff2..000000000 --- a/lib/Model/ShipmentInvoicingV0/Money.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'CurrencyCode', - 'amount' => 'Amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code Three-digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount The currency amount. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/ShipmentDetail.php b/lib/Model/ShipmentInvoicingV0/ShipmentDetail.php deleted file mode 100644 index ce78d5d40..000000000 --- a/lib/Model/ShipmentInvoicingV0/ShipmentDetail.php +++ /dev/null @@ -1,539 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'warehouse_id' => 'string', - 'amazon_order_id' => 'string', - 'amazon_shipment_id' => 'string', - 'purchase_date' => 'string', - 'shipping_address' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Address', - 'payment_method_details' => 'string[]', - 'marketplace_id' => 'string', - 'seller_id' => 'string', - 'buyer_name' => 'string', - 'buyer_county' => 'string', - 'buyer_tax_info' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\BuyerTaxInfo', - 'marketplace_tax_info' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\MarketplaceTaxInfo', - 'seller_display_name' => 'string', - 'shipment_items' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'warehouse_id' => null, - 'amazon_order_id' => null, - 'amazon_shipment_id' => null, - 'purchase_date' => null, - 'shipping_address' => null, - 'payment_method_details' => null, - 'marketplace_id' => null, - 'seller_id' => null, - 'buyer_name' => null, - 'buyer_county' => null, - 'buyer_tax_info' => null, - 'marketplace_tax_info' => null, - 'seller_display_name' => null, - 'shipment_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'warehouse_id' => 'WarehouseId', - 'amazon_order_id' => 'AmazonOrderId', - 'amazon_shipment_id' => 'AmazonShipmentId', - 'purchase_date' => 'PurchaseDate', - 'shipping_address' => 'ShippingAddress', - 'payment_method_details' => 'PaymentMethodDetails', - 'marketplace_id' => 'MarketplaceId', - 'seller_id' => 'SellerId', - 'buyer_name' => 'BuyerName', - 'buyer_county' => 'BuyerCounty', - 'buyer_tax_info' => 'BuyerTaxInfo', - 'marketplace_tax_info' => 'MarketplaceTaxInfo', - 'seller_display_name' => 'SellerDisplayName', - 'shipment_items' => 'ShipmentItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'warehouse_id' => 'setWarehouseId', - 'amazon_order_id' => 'setAmazonOrderId', - 'amazon_shipment_id' => 'setAmazonShipmentId', - 'purchase_date' => 'setPurchaseDate', - 'shipping_address' => 'setShippingAddress', - 'payment_method_details' => 'setPaymentMethodDetails', - 'marketplace_id' => 'setMarketplaceId', - 'seller_id' => 'setSellerId', - 'buyer_name' => 'setBuyerName', - 'buyer_county' => 'setBuyerCounty', - 'buyer_tax_info' => 'setBuyerTaxInfo', - 'marketplace_tax_info' => 'setMarketplaceTaxInfo', - 'seller_display_name' => 'setSellerDisplayName', - 'shipment_items' => 'setShipmentItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'warehouse_id' => 'getWarehouseId', - 'amazon_order_id' => 'getAmazonOrderId', - 'amazon_shipment_id' => 'getAmazonShipmentId', - 'purchase_date' => 'getPurchaseDate', - 'shipping_address' => 'getShippingAddress', - 'payment_method_details' => 'getPaymentMethodDetails', - 'marketplace_id' => 'getMarketplaceId', - 'seller_id' => 'getSellerId', - 'buyer_name' => 'getBuyerName', - 'buyer_county' => 'getBuyerCounty', - 'buyer_tax_info' => 'getBuyerTaxInfo', - 'marketplace_tax_info' => 'getMarketplaceTaxInfo', - 'seller_display_name' => 'getSellerDisplayName', - 'shipment_items' => 'getShipmentItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['warehouse_id'] = $data['warehouse_id'] ?? null; - $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; - $this->container['amazon_shipment_id'] = $data['amazon_shipment_id'] ?? null; - $this->container['purchase_date'] = $data['purchase_date'] ?? null; - $this->container['shipping_address'] = $data['shipping_address'] ?? null; - $this->container['payment_method_details'] = $data['payment_method_details'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_id'] = $data['seller_id'] ?? null; - $this->container['buyer_name'] = $data['buyer_name'] ?? null; - $this->container['buyer_county'] = $data['buyer_county'] ?? null; - $this->container['buyer_tax_info'] = $data['buyer_tax_info'] ?? null; - $this->container['marketplace_tax_info'] = $data['marketplace_tax_info'] ?? null; - $this->container['seller_display_name'] = $data['seller_display_name'] ?? null; - $this->container['shipment_items'] = $data['shipment_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets warehouse_id - * - * @return string|null - */ - public function getWarehouseId() - { - return $this->container['warehouse_id']; - } - - /** - * Sets warehouse_id - * - * @param string|null $warehouse_id The Amazon-defined identifier for the warehouse. - * - * @return self - */ - public function setWarehouseId($warehouse_id) - { - $this->container['warehouse_id'] = $warehouse_id; - - return $this; - } - /** - * Gets amazon_order_id - * - * @return string|null - */ - public function getAmazonOrderId() - { - return $this->container['amazon_order_id']; - } - - /** - * Sets amazon_order_id - * - * @param string|null $amazon_order_id The Amazon-defined identifier for the order. - * - * @return self - */ - public function setAmazonOrderId($amazon_order_id) - { - $this->container['amazon_order_id'] = $amazon_order_id; - - return $this; - } - /** - * Gets amazon_shipment_id - * - * @return string|null - */ - public function getAmazonShipmentId() - { - return $this->container['amazon_shipment_id']; - } - - /** - * Sets amazon_shipment_id - * - * @param string|null $amazon_shipment_id The Amazon-defined identifier for the shipment. - * - * @return self - */ - public function setAmazonShipmentId($amazon_shipment_id) - { - $this->container['amazon_shipment_id'] = $amazon_shipment_id; - - return $this; - } - /** - * Gets purchase_date - * - * @return string|null - */ - public function getPurchaseDate() - { - return $this->container['purchase_date']; - } - - /** - * Sets purchase_date - * - * @param string|null $purchase_date The date and time when the order was created, in ISO 8601 format. - * - * @return self - */ - public function setPurchaseDate($purchase_date) - { - $this->container['purchase_date'] = $purchase_date; - - return $this; - } - /** - * Gets shipping_address - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Address|null - */ - public function getShippingAddress() - { - return $this->container['shipping_address']; - } - - /** - * Sets shipping_address - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Address|null $shipping_address shipping_address - * - * @return self - */ - public function setShippingAddress($shipping_address) - { - $this->container['shipping_address'] = $shipping_address; - - return $this; - } - /** - * Gets payment_method_details - * - * @return string[]|null - */ - public function getPaymentMethodDetails() - { - return $this->container['payment_method_details']; - } - - /** - * Sets payment_method_details - * - * @param string[]|null $payment_method_details The list of payment method details. - * - * @return self - */ - public function setPaymentMethodDetails($payment_method_details) - { - $this->container['payment_method_details'] = $payment_method_details; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id The identifier for the marketplace where the order was placed. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_id - * - * @return string|null - */ - public function getSellerId() - { - return $this->container['seller_id']; - } - - /** - * Sets seller_id - * - * @param string|null $seller_id The seller identifier. - * - * @return self - */ - public function setSellerId($seller_id) - { - $this->container['seller_id'] = $seller_id; - - return $this; - } - /** - * Gets buyer_name - * - * @return string|null - */ - public function getBuyerName() - { - return $this->container['buyer_name']; - } - - /** - * Sets buyer_name - * - * @param string|null $buyer_name The name of the buyer. - * - * @return self - */ - public function setBuyerName($buyer_name) - { - $this->container['buyer_name'] = $buyer_name; - - return $this; - } - /** - * Gets buyer_county - * - * @return string|null - */ - public function getBuyerCounty() - { - return $this->container['buyer_county']; - } - - /** - * Sets buyer_county - * - * @param string|null $buyer_county The county of the buyer. - * - * @return self - */ - public function setBuyerCounty($buyer_county) - { - $this->container['buyer_county'] = $buyer_county; - - return $this; - } - /** - * Gets buyer_tax_info - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\BuyerTaxInfo|null - */ - public function getBuyerTaxInfo() - { - return $this->container['buyer_tax_info']; - } - - /** - * Sets buyer_tax_info - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\BuyerTaxInfo|null $buyer_tax_info buyer_tax_info - * - * @return self - */ - public function setBuyerTaxInfo($buyer_tax_info) - { - $this->container['buyer_tax_info'] = $buyer_tax_info; - - return $this; - } - /** - * Gets marketplace_tax_info - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\MarketplaceTaxInfo|null - */ - public function getMarketplaceTaxInfo() - { - return $this->container['marketplace_tax_info']; - } - - /** - * Sets marketplace_tax_info - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\MarketplaceTaxInfo|null $marketplace_tax_info marketplace_tax_info - * - * @return self - */ - public function setMarketplaceTaxInfo($marketplace_tax_info) - { - $this->container['marketplace_tax_info'] = $marketplace_tax_info; - - return $this; - } - /** - * Gets seller_display_name - * - * @return string|null - */ - public function getSellerDisplayName() - { - return $this->container['seller_display_name']; - } - - /** - * Sets seller_display_name - * - * @param string|null $seller_display_name The seller's friendly name registered in the marketplace. - * - * @return self - */ - public function setSellerDisplayName($seller_display_name) - { - $this->container['seller_display_name'] = $seller_display_name; - - return $this; - } - /** - * Gets shipment_items - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentItem[]|null - */ - public function getShipmentItems() - { - return $this->container['shipment_items']; - } - - /** - * Sets shipment_items - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentItem[]|null $shipment_items A list of shipment items. - * - * @return self - */ - public function setShipmentItems($shipment_items) - { - $this->container['shipment_items'] = $shipment_items; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.php b/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.php deleted file mode 100644 index 897ccc5cb..000000000 --- a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatus.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.php b/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.php deleted file mode 100644 index 92d97e711..000000000 --- a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusInfo.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentInvoiceStatusInfo extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentInvoiceStatusInfo'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amazon_shipment_id' => 'string', - 'invoice_status' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amazon_shipment_id' => null, - 'invoice_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amazon_shipment_id' => 'AmazonShipmentId', - 'invoice_status' => 'InvoiceStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amazon_shipment_id' => 'setAmazonShipmentId', - 'invoice_status' => 'setInvoiceStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amazon_shipment_id' => 'getAmazonShipmentId', - 'invoice_status' => 'getInvoiceStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amazon_shipment_id'] = $data['amazon_shipment_id'] ?? null; - $this->container['invoice_status'] = $data['invoice_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets amazon_shipment_id - * - * @return string|null - */ - public function getAmazonShipmentId() - { - return $this->container['amazon_shipment_id']; - } - - /** - * Sets amazon_shipment_id - * - * @param string|null $amazon_shipment_id The Amazon-defined shipment identifier. - * - * @return self - */ - public function setAmazonShipmentId($amazon_shipment_id) - { - $this->container['amazon_shipment_id'] = $amazon_shipment_id; - - return $this; - } - /** - * Gets invoice_status - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatus|null - */ - public function getInvoiceStatus() - { - return $this->container['invoice_status']; - } - - /** - * Sets invoice_status - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatus|null $invoice_status invoice_status - * - * @return self - */ - public function setInvoiceStatus($invoice_status) - { - $this->container['invoice_status'] = $invoice_status; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.php b/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.php deleted file mode 100644 index fb56a430b..000000000 --- a/lib/Model/ShipmentInvoicingV0/ShipmentInvoiceStatusResponse.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentInvoiceStatusResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentInvoiceStatusResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipments' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusInfo' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipments' => 'Shipments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipments' => 'setShipments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipments' => 'getShipments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipments'] = $data['shipments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipments - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusInfo|null - */ - public function getShipments() - { - return $this->container['shipments']; - } - - /** - * Sets shipments - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\ShipmentInvoiceStatusInfo|null $shipments shipments - * - * @return self - */ - public function setShipments($shipments) - { - $this->container['shipments'] = $shipments; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/ShipmentItem.php b/lib/Model/ShipmentInvoicingV0/ShipmentItem.php deleted file mode 100644 index 49267139b..000000000 --- a/lib/Model/ShipmentInvoicingV0/ShipmentItem.php +++ /dev/null @@ -1,452 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'seller_sku' => 'string', - 'order_item_id' => 'string', - 'title' => 'string', - 'quantity_ordered' => 'float', - 'item_price' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Money', - 'shipping_price' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Money', - 'gift_wrap_price' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Money', - 'shipping_discount' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Money', - 'promotion_discount' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Money', - 'serial_numbers' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'seller_sku' => null, - 'order_item_id' => null, - 'title' => null, - 'quantity_ordered' => null, - 'item_price' => null, - 'shipping_price' => null, - 'gift_wrap_price' => null, - 'shipping_discount' => null, - 'promotion_discount' => null, - 'serial_numbers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'ASIN', - 'seller_sku' => 'SellerSKU', - 'order_item_id' => 'OrderItemId', - 'title' => 'Title', - 'quantity_ordered' => 'QuantityOrdered', - 'item_price' => 'ItemPrice', - 'shipping_price' => 'ShippingPrice', - 'gift_wrap_price' => 'GiftWrapPrice', - 'shipping_discount' => 'ShippingDiscount', - 'promotion_discount' => 'PromotionDiscount', - 'serial_numbers' => 'SerialNumbers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'seller_sku' => 'setSellerSku', - 'order_item_id' => 'setOrderItemId', - 'title' => 'setTitle', - 'quantity_ordered' => 'setQuantityOrdered', - 'item_price' => 'setItemPrice', - 'shipping_price' => 'setShippingPrice', - 'gift_wrap_price' => 'setGiftWrapPrice', - 'shipping_discount' => 'setShippingDiscount', - 'promotion_discount' => 'setPromotionDiscount', - 'serial_numbers' => 'setSerialNumbers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'seller_sku' => 'getSellerSku', - 'order_item_id' => 'getOrderItemId', - 'title' => 'getTitle', - 'quantity_ordered' => 'getQuantityOrdered', - 'item_price' => 'getItemPrice', - 'shipping_price' => 'getShippingPrice', - 'gift_wrap_price' => 'getGiftWrapPrice', - 'shipping_discount' => 'getShippingDiscount', - 'promotion_discount' => 'getPromotionDiscount', - 'serial_numbers' => 'getSerialNumbers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['order_item_id'] = $data['order_item_id'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['quantity_ordered'] = $data['quantity_ordered'] ?? null; - $this->container['item_price'] = $data['item_price'] ?? null; - $this->container['shipping_price'] = $data['shipping_price'] ?? null; - $this->container['gift_wrap_price'] = $data['gift_wrap_price'] ?? null; - $this->container['shipping_discount'] = $data['shipping_discount'] ?? null; - $this->container['promotion_discount'] = $data['promotion_discount'] ?? null; - $this->container['serial_numbers'] = $data['serial_numbers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) of the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets seller_sku - * - * @return string|null - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @param string|null $seller_sku The seller SKU of the item. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets order_item_id - * - * @return string|null - */ - public function getOrderItemId() - { - return $this->container['order_item_id']; - } - - /** - * Sets order_item_id - * - * @param string|null $order_item_id The Amazon-defined identifier for the order item. - * - * @return self - */ - public function setOrderItemId($order_item_id) - { - $this->container['order_item_id'] = $order_item_id; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title The name of the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets quantity_ordered - * - * @return float|null - */ - public function getQuantityOrdered() - { - return $this->container['quantity_ordered']; - } - - /** - * Sets quantity_ordered - * - * @param float|null $quantity_ordered The number of items ordered. - * - * @return self - */ - public function setQuantityOrdered($quantity_ordered) - { - $this->container['quantity_ordered'] = $quantity_ordered; - - return $this; - } - /** - * Gets item_price - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null - */ - public function getItemPrice() - { - return $this->container['item_price']; - } - - /** - * Sets item_price - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null $item_price item_price - * - * @return self - */ - public function setItemPrice($item_price) - { - $this->container['item_price'] = $item_price; - - return $this; - } - /** - * Gets shipping_price - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null - */ - public function getShippingPrice() - { - return $this->container['shipping_price']; - } - - /** - * Sets shipping_price - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null $shipping_price shipping_price - * - * @return self - */ - public function setShippingPrice($shipping_price) - { - $this->container['shipping_price'] = $shipping_price; - - return $this; - } - /** - * Gets gift_wrap_price - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null - */ - public function getGiftWrapPrice() - { - return $this->container['gift_wrap_price']; - } - - /** - * Sets gift_wrap_price - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null $gift_wrap_price gift_wrap_price - * - * @return self - */ - public function setGiftWrapPrice($gift_wrap_price) - { - $this->container['gift_wrap_price'] = $gift_wrap_price; - - return $this; - } - /** - * Gets shipping_discount - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null - */ - public function getShippingDiscount() - { - return $this->container['shipping_discount']; - } - - /** - * Sets shipping_discount - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null $shipping_discount shipping_discount - * - * @return self - */ - public function setShippingDiscount($shipping_discount) - { - $this->container['shipping_discount'] = $shipping_discount; - - return $this; - } - /** - * Gets promotion_discount - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null - */ - public function getPromotionDiscount() - { - return $this->container['promotion_discount']; - } - - /** - * Sets promotion_discount - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Money|null $promotion_discount promotion_discount - * - * @return self - */ - public function setPromotionDiscount($promotion_discount) - { - $this->container['promotion_discount'] = $promotion_discount; - - return $this; - } - /** - * Gets serial_numbers - * - * @return string[]|null - */ - public function getSerialNumbers() - { - return $this->container['serial_numbers']; - } - - /** - * Sets serial_numbers - * - * @param string[]|null $serial_numbers The list of serial numbers. - * - * @return self - */ - public function setSerialNumbers($serial_numbers) - { - $this->container['serial_numbers'] = $serial_numbers; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.php b/lib/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.php deleted file mode 100644 index f0f9c04e0..000000000 --- a/lib/Model/ShipmentInvoicingV0/SubmitInvoiceRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoiceRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoiceRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoice_content' => 'string', - 'marketplace_id' => 'string', - 'content_md5_value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoice_content' => 'byte', - 'marketplace_id' => null, - 'content_md5_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoice_content' => 'InvoiceContent', - 'marketplace_id' => 'MarketplaceId', - 'content_md5_value' => 'ContentMD5Value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoice_content' => 'setInvoiceContent', - 'marketplace_id' => 'setMarketplaceId', - 'content_md5_value' => 'setContentMd5Value' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoice_content' => 'getInvoiceContent', - 'marketplace_id' => 'getMarketplaceId', - 'content_md5_value' => 'getContentMd5Value' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoice_content'] = $data['invoice_content'] ?? null; - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['content_md5_value'] = $data['content_md5_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['invoice_content'] === null) { - $invalidProperties[] = "'invoice_content' can't be null"; - } - if ($this->container['content_md5_value'] === null) { - $invalidProperties[] = "'content_md5_value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets invoice_content - * - * @return string - */ - public function getInvoiceContent() - { - return $this->container['invoice_content']; - } - - /** - * Sets invoice_content - * - * @param string $invoice_content Shipment invoice document content. - * - * @return self - */ - public function setInvoiceContent($invoice_content) - { - $this->container['invoice_content'] = $invoice_content; - - return $this; - } - /** - * Gets marketplace_id - * - * @return string|null - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string|null $marketplace_id An Amazon marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets content_md5_value - * - * @return string - */ - public function getContentMd5Value() - { - return $this->container['content_md5_value']; - } - - /** - * Sets content_md5_value - * - * @param string $content_md5_value MD5 sum for validating the invoice data. For more information about calculating this value, see [Working with Content-MD5 Checksums](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_MD5.html). - * - * @return self - */ - public function setContentMd5Value($content_md5_value) - { - $this->container['content_md5_value'] = $content_md5_value; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.php b/lib/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.php deleted file mode 100644 index f0daada0b..000000000 --- a/lib/Model/ShipmentInvoicingV0/SubmitInvoiceResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoiceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoiceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShipmentInvoicingV0\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShipmentInvoicingV0/TaxClassification.php b/lib/Model/ShipmentInvoicingV0/TaxClassification.php deleted file mode 100644 index 2ecf3e002..000000000 --- a/lib/Model/ShipmentInvoicingV0/TaxClassification.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxClassification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxClassification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'Name', - 'value' => 'Value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'value' => 'getValue' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The type of tax. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets value - * - * @return string|null - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string|null $value The entity's tax identifier. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/AcceptedRate.php b/lib/Model/ShippingV1/AcceptedRate.php deleted file mode 100644 index 88cf1bac0..000000000 --- a/lib/Model/ShippingV1/AcceptedRate.php +++ /dev/null @@ -1,249 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * AcceptedRate Class Doc Comment - * - * @category Class - * @description The specific rate purchased for the shipment, or null if unpurchased. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class AcceptedRate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AcceptedRate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_charge' => '\SellingPartnerApi\Model\ShippingV1\Currency', - 'billed_weight' => '\SellingPartnerApi\Model\ShippingV1\Weight', - 'service_type' => '\SellingPartnerApi\Model\ShippingV1\ServiceType', - 'promise' => '\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_charge' => null, - 'billed_weight' => null, - 'service_type' => null, - 'promise' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_charge' => 'totalCharge', - 'billed_weight' => 'billedWeight', - 'service_type' => 'serviceType', - 'promise' => 'promise' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_charge' => 'setTotalCharge', - 'billed_weight' => 'setBilledWeight', - 'service_type' => 'setServiceType', - 'promise' => 'setPromise' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_charge' => 'getTotalCharge', - 'billed_weight' => 'getBilledWeight', - 'service_type' => 'getServiceType', - 'promise' => 'getPromise' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_charge'] = $data['total_charge'] ?? null; - $this->container['billed_weight'] = $data['billed_weight'] ?? null; - $this->container['service_type'] = $data['service_type'] ?? null; - $this->container['promise'] = $data['promise'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_charge - * - * @return \SellingPartnerApi\Model\ShippingV1\Currency|null - */ - public function getTotalCharge() - { - return $this->container['total_charge']; - } - - /** - * Sets total_charge - * - * @param \SellingPartnerApi\Model\ShippingV1\Currency|null $total_charge total_charge - * - * @return self - */ - public function setTotalCharge($total_charge) - { - $this->container['total_charge'] = $total_charge; - - return $this; - } - /** - * Gets billed_weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight|null - */ - public function getBilledWeight() - { - return $this->container['billed_weight']; - } - - /** - * Sets billed_weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight|null $billed_weight billed_weight - * - * @return self - */ - public function setBilledWeight($billed_weight) - { - $this->container['billed_weight'] = $billed_weight; - - return $this; - } - /** - * Gets service_type - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceType|null - */ - public function getServiceType() - { - return $this->container['service_type']; - } - - /** - * Sets service_type - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceType|null $service_type service_type - * - * @return self - */ - public function setServiceType($service_type) - { - $this->container['service_type'] = $service_type; - - return $this; - } - /** - * Gets promise - * - * @return \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet|null - */ - public function getPromise() - { - return $this->container['promise']; - } - - /** - * Sets promise - * - * @param \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet|null $promise promise - * - * @return self - */ - public function setPromise($promise) - { - $this->container['promise'] = $promise; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Account.php b/lib/Model/ShippingV1/Account.php deleted file mode 100644 index 43454dae4..000000000 --- a/lib/Model/ShippingV1/Account.php +++ /dev/null @@ -1,173 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Account Class Doc Comment - * - * @category Class - * @description The account related data. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Account extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Account'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'account_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'account_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'account_id' => 'accountId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'account_id' => 'setAccountId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'account_id' => 'getAccountId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['account_id'] = $data['account_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['account_id'] === null) { - $invalidProperties[] = "'account_id' can't be null"; - } - if ((mb_strlen($this->container['account_id']) > 10)) { - $invalidProperties[] = "invalid value for 'account_id', the character length must be smaller than or equal to 10."; - } - - return $invalidProperties; - } - - - /** - * Gets account_id - * - * @return string - */ - public function getAccountId() - { - return $this->container['account_id']; - } - - /** - * Sets account_id - * - * @param string $account_id This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process. - * - * @return self - */ - public function setAccountId($account_id) - { - if ((mb_strlen($account_id) > 10)) { - throw new \InvalidArgumentException('invalid length for $account_id when calling Account., must be smaller than or equal to 10.'); - } - - $this->container['account_id'] = $account_id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Address.php b/lib/Model/ShippingV1/Address.php deleted file mode 100644 index 413296fae..000000000 --- a/lib/Model/ShippingV1/Address.php +++ /dev/null @@ -1,606 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Address Class Doc Comment - * - * @category Class - * @description The address. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'state_or_region' => 'string', - 'city' => 'string', - 'country_code' => 'string', - 'postal_code' => 'string', - 'email' => 'string', - 'copy_emails' => 'string[]', - 'phone_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'state_or_region' => null, - 'city' => null, - 'country_code' => null, - 'postal_code' => null, - 'email' => null, - 'copy_emails' => null, - 'phone_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'state_or_region' => 'stateOrRegion', - 'city' => 'city', - 'country_code' => 'countryCode', - 'postal_code' => 'postalCode', - 'email' => 'email', - 'copy_emails' => 'copyEmails', - 'phone_number' => 'phoneNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'state_or_region' => 'setStateOrRegion', - 'city' => 'setCity', - 'country_code' => 'setCountryCode', - 'postal_code' => 'setPostalCode', - 'email' => 'setEmail', - 'copy_emails' => 'setCopyEmails', - 'phone_number' => 'setPhoneNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'state_or_region' => 'getStateOrRegion', - 'city' => 'getCity', - 'country_code' => 'getCountryCode', - 'postal_code' => 'getPostalCode', - 'email' => 'getEmail', - 'copy_emails' => 'getCopyEmails', - 'phone_number' => 'getPhoneNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['copy_emails'] = $data['copy_emails'] ?? null; - $this->container['phone_number'] = $data['phone_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 50)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; - } - - if ((mb_strlen($this->container['name']) < 1)) { - $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; - } - - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ((mb_strlen($this->container['address_line1']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be smaller than or equal to 60."; - } - - if ((mb_strlen($this->container['address_line1']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line3', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line3', the character length must be bigger than or equal to 1."; - } - - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ((mb_strlen($this->container['city']) > 50)) { - $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 50."; - } - - if ((mb_strlen($this->container['city']) < 1)) { - $invalidProperties[] = "invalid value for 'city', the character length must be bigger than or equal to 1."; - } - - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ((mb_strlen($this->container['country_code']) > 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be smaller than or equal to 2."; - } - - if ((mb_strlen($this->container['country_code']) < 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be bigger than or equal to 2."; - } - - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ((mb_strlen($this->container['postal_code']) > 20)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be smaller than or equal to 20."; - } - - if ((mb_strlen($this->container['postal_code']) < 1)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['email']) && (mb_strlen($this->container['email']) > 64)) { - $invalidProperties[] = "invalid value for 'email', the character length must be smaller than or equal to 64."; - } - - if (!is_null($this->container['copy_emails']) && (count($this->container['copy_emails']) > 2)) { - $invalidProperties[] = "invalid value for 'copy_emails', number of items must be less than or equal to 2."; - } - - if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 20)) { - $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 20."; - } - - if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) < 1)) { - $invalidProperties[] = "invalid value for 'phone_number', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 50)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 50.'); - } - if ((mb_strlen($name) < 1)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of that address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - if ((mb_strlen($address_line1) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be smaller than or equal to 60.'); - } - if ((mb_strlen($address_line1) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - if (!is_null($address_line2) && (mb_strlen($address_line2) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be smaller than or equal to 60.'); - } - if (!is_null($address_line2) && (mb_strlen($address_line2) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - if (!is_null($address_line3) && (mb_strlen($address_line3) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line3 when calling Address., must be smaller than or equal to 60.'); - } - if (!is_null($address_line3) && (mb_strlen($address_line3) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line3 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state or region where the person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - if ((mb_strlen($city) > 50)) { - throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 50.'); - } - if ((mb_strlen($city) < 1)) { - throw new \InvalidArgumentException('invalid length for $city when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['city'] = $city; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - if ((mb_strlen($country_code) > 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Address., must be smaller than or equal to 2.'); - } - if ((mb_strlen($country_code) < 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Address., must be bigger than or equal to 2.'); - } - - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - if ((mb_strlen($postal_code) > 20)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Address., must be smaller than or equal to 20.'); - } - if ((mb_strlen($postal_code) < 1)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets email - * - * @return string|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string|null $email The email address of the contact associated with the address. - * - * @return self - */ - public function setEmail($email) - { - if (!is_null($email) && (mb_strlen($email) > 64)) { - throw new \InvalidArgumentException('invalid length for $email when calling Address., must be smaller than or equal to 64.'); - } - - $this->container['email'] = $email; - - return $this; - } - /** - * Gets copy_emails - * - * @return string[]|null - */ - public function getCopyEmails() - { - return $this->container['copy_emails']; - } - - /** - * Sets copy_emails - * - * @param string[]|null $copy_emails The email cc addresses of the contact associated with the address. - * - * @return self - */ - public function setCopyEmails($copy_emails) - { - - if (!is_null($copy_emails) && (count($copy_emails) > 2)) { - throw new \InvalidArgumentException('invalid value for $copy_emails when calling Address., number of items must be less than or equal to 2.'); - } - $this->container['copy_emails'] = $copy_emails; - - return $this; - } - /** - * Gets phone_number - * - * @return string|null - */ - public function getPhoneNumber() - { - return $this->container['phone_number']; - } - - /** - * Sets phone_number - * - * @param string|null $phone_number The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhoneNumber($phone_number) - { - if (!is_null($phone_number) && (mb_strlen($phone_number) > 20)) { - throw new \InvalidArgumentException('invalid length for $phone_number when calling Address., must be smaller than or equal to 20.'); - } - if (!is_null($phone_number) && (mb_strlen($phone_number) < 1)) { - throw new \InvalidArgumentException('invalid length for $phone_number when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['phone_number'] = $phone_number; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/CancelShipmentResponse.php b/lib/Model/ShippingV1/CancelShipmentResponse.php deleted file mode 100644 index 07c55abee..000000000 --- a/lib/Model/ShippingV1/CancelShipmentResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CancelShipmentResponse Class Doc Comment - * - * @category Class - * @description The response schema for the cancelShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Container.php b/lib/Model/ShippingV1/Container.php deleted file mode 100644 index 55a249b68..000000000 --- a/lib/Model/ShippingV1/Container.php +++ /dev/null @@ -1,372 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Container Class Doc Comment - * - * @category Class - * @description Container in the shipment. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Container extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Container'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_type' => 'string', - 'container_reference_id' => 'string', - 'value' => '\SellingPartnerApi\Model\ShippingV1\Currency', - 'dimensions' => '\SellingPartnerApi\Model\ShippingV1\Dimensions', - 'items' => '\SellingPartnerApi\Model\ShippingV1\ContainerItem[]', - 'weight' => '\SellingPartnerApi\Model\ShippingV1\Weight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_type' => null, - 'container_reference_id' => null, - 'value' => null, - 'dimensions' => null, - 'items' => null, - 'weight' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_type' => 'containerType', - 'container_reference_id' => 'containerReferenceId', - 'value' => 'value', - 'dimensions' => 'dimensions', - 'items' => 'items', - 'weight' => 'weight' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_type' => 'setContainerType', - 'container_reference_id' => 'setContainerReferenceId', - 'value' => 'setValue', - 'dimensions' => 'setDimensions', - 'items' => 'setItems', - 'weight' => 'setWeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_type' => 'getContainerType', - 'container_reference_id' => 'getContainerReferenceId', - 'value' => 'getValue', - 'dimensions' => 'getDimensions', - 'items' => 'getItems', - 'weight' => 'getWeight' - ]; - - - - const CONTAINER_TYPE_PACKAGE = 'PACKAGE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContainerTypeAllowableValues() - { - $baseVals = [ - self::CONTAINER_TYPE_PACKAGE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_type'] = $data['container_type'] ?? null; - $this->container['container_reference_id'] = $data['container_reference_id'] ?? null; - $this->container['value'] = $data['value'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['items'] = $data['items'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getContainerTypeAllowableValues(); - if ( - !is_null($this->container['container_type']) && - !in_array(strtoupper($this->container['container_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'container_type', must be one of '%s'", - $this->container['container_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['container_reference_id'] === null) { - $invalidProperties[] = "'container_reference_id' can't be null"; - } - if ((mb_strlen($this->container['container_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'container_reference_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets container_type - * - * @return string|null - */ - public function getContainerType() - { - return $this->container['container_type']; - } - - /** - * Sets container_type - * - * @param string|null $container_type The type of physical container being used. (always 'PACKAGE') - * - * @return self - */ - public function setContainerType($container_type) - { - $allowedValues = $this->getContainerTypeAllowableValues(); - if (!is_null($container_type) &&!in_array(strtoupper($container_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'container_type', must be one of '%s'", - $container_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['container_type'] = $container_type; - - return $this; - } - /** - * Gets container_reference_id - * - * @return string - */ - public function getContainerReferenceId() - { - return $this->container['container_reference_id']; - } - - /** - * Sets container_reference_id - * - * @param string $container_reference_id An identifier for the container. This must be unique within all the containers in the same shipment. - * - * @return self - */ - public function setContainerReferenceId($container_reference_id) - { - if ((mb_strlen($container_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $container_reference_id when calling Container., must be smaller than or equal to 40.'); - } - - $this->container['container_reference_id'] = $container_reference_id; - - return $this; - } - /** - * Gets value - * - * @return \SellingPartnerApi\Model\ShippingV1\Currency - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param \SellingPartnerApi\Model\ShippingV1\Currency $value value - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\ShippingV1\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\ShippingV1\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\ShippingV1\ContainerItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\ShippingV1\ContainerItem[] $items A list of the items in the container. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/ContainerItem.php b/lib/Model/ShippingV1/ContainerItem.php deleted file mode 100644 index 9ad003ddb..000000000 --- a/lib/Model/ShippingV1/ContainerItem.php +++ /dev/null @@ -1,269 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * ContainerItem Class Doc Comment - * - * @category Class - * @description Item in the container. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class ContainerItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContainerItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'quantity' => 'float', - 'unit_price' => '\SellingPartnerApi\Model\ShippingV1\Currency', - 'unit_weight' => '\SellingPartnerApi\Model\ShippingV1\Weight', - 'title' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'quantity' => null, - 'unit_price' => null, - 'unit_weight' => null, - 'title' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'quantity' => 'quantity', - 'unit_price' => 'unitPrice', - 'unit_weight' => 'unitWeight', - 'title' => 'title' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'quantity' => 'setQuantity', - 'unit_price' => 'setUnitPrice', - 'unit_weight' => 'setUnitWeight', - 'title' => 'setTitle' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'quantity' => 'getQuantity', - 'unit_price' => 'getUnitPrice', - 'unit_weight' => 'getUnitWeight', - 'title' => 'getTitle' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['unit_price'] = $data['unit_price'] ?? null; - $this->container['unit_weight'] = $data['unit_weight'] ?? null; - $this->container['title'] = $data['title'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['unit_price'] === null) { - $invalidProperties[] = "'unit_price' can't be null"; - } - if ($this->container['unit_weight'] === null) { - $invalidProperties[] = "'unit_weight' can't be null"; - } - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } - if ((mb_strlen($this->container['title']) > 30)) { - $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 30."; - } - - return $invalidProperties; - } - - - /** - * Gets quantity - * - * @return float - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param float $quantity The quantity of the items of this type in the container. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets unit_price - * - * @return \SellingPartnerApi\Model\ShippingV1\Currency - */ - public function getUnitPrice() - { - return $this->container['unit_price']; - } - - /** - * Sets unit_price - * - * @param \SellingPartnerApi\Model\ShippingV1\Currency $unit_price unit_price - * - * @return self - */ - public function setUnitPrice($unit_price) - { - $this->container['unit_price'] = $unit_price; - - return $this; - } - /** - * Gets unit_weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight - */ - public function getUnitWeight() - { - return $this->container['unit_weight']; - } - - /** - * Sets unit_weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight $unit_weight unit_weight - * - * @return self - */ - public function setUnitWeight($unit_weight) - { - $this->container['unit_weight'] = $unit_weight; - - return $this; - } - /** - * Gets title - * - * @return string - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string $title A descriptive title of the item. - * - * @return self - */ - public function setTitle($title) - { - if ((mb_strlen($title) > 30)) { - throw new \InvalidArgumentException('invalid length for $title when calling ContainerItem., must be smaller than or equal to 30.'); - } - - $this->container['title'] = $title; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/ContainerSpecification.php b/lib/Model/ShippingV1/ContainerSpecification.php deleted file mode 100644 index 7aa1b679e..000000000 --- a/lib/Model/ShippingV1/ContainerSpecification.php +++ /dev/null @@ -1,197 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * ContainerSpecification Class Doc Comment - * - * @category Class - * @description Container specification for checking the service rate. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class ContainerSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContainerSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'dimensions' => '\SellingPartnerApi\Model\ShippingV1\Dimensions', - 'weight' => '\SellingPartnerApi\Model\ShippingV1\Weight' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'dimensions' => null, - 'weight' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'dimensions' => 'dimensions', - 'weight' => 'weight' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\ShippingV1\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\ShippingV1\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/CreateShipmentRequest.php b/lib/Model/ShippingV1/CreateShipmentRequest.php deleted file mode 100644 index e8db8e611..000000000 --- a/lib/Model/ShippingV1/CreateShipmentRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateShipmentRequest Class Doc Comment - * - * @category Class - * @description The request schema for the createShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_reference_id' => 'string', - 'ship_to' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'containers' => '\SellingPartnerApi\Model\ShippingV1\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_reference_id' => null, - 'ship_to' => null, - 'ship_from' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_reference_id' => 'clientReferenceId', - 'ship_to' => 'shipTo', - 'ship_from' => 'shipFrom', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_reference_id' => 'setClientReferenceId', - 'ship_to' => 'setShipTo', - 'ship_from' => 'setShipFrom', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_reference_id' => 'getClientReferenceId', - 'ship_to' => 'getShipTo', - 'ship_from' => 'getShipFrom', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['client_reference_id'] = $data['client_reference_id'] ?? null; - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['client_reference_id'] === null) { - $invalidProperties[] = "'client_reference_id' can't be null"; - } - if ((mb_strlen($this->container['client_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'client_reference_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['ship_to'] === null) { - $invalidProperties[] = "'ship_to' can't be null"; - } - if ($this->container['ship_from'] === null) { - $invalidProperties[] = "'ship_from' can't be null"; - } - if ($this->container['containers'] === null) { - $invalidProperties[] = "'containers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets client_reference_id - * - * @return string - */ - public function getClientReferenceId() - { - return $this->container['client_reference_id']; - } - - /** - * Sets client_reference_id - * - * @param string $client_reference_id Client reference id. - * - * @return self - */ - public function setClientReferenceId($client_reference_id) - { - if ((mb_strlen($client_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $client_reference_id when calling CreateShipmentRequest., must be smaller than or equal to 40.'); - } - - $this->container['client_reference_id'] = $client_reference_id; - - return $this; - } - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\ShippingV1\Container[] - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\ShippingV1\Container[] $containers A list of container. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/CreateShipmentResponse.php b/lib/Model/ShippingV1/CreateShipmentResponse.php deleted file mode 100644 index ecd93be09..000000000 --- a/lib/Model/ShippingV1/CreateShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateShipmentResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\CreateShipmentResult', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\CreateShipmentResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\CreateShipmentResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/CreateShipmentResult.php b/lib/Model/ShippingV1/CreateShipmentResult.php deleted file mode 100644 index 5ae262fad..000000000 --- a/lib/Model/ShippingV1/CreateShipmentResult.php +++ /dev/null @@ -1,197 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateShipmentResult Class Doc Comment - * - * @category Class - * @description The payload schema for the createShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShipmentResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShipmentResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'eligible_rates' => '\SellingPartnerApi\Model\ShippingV1\Rate[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'eligible_rates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'eligible_rates' => 'eligibleRates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'eligible_rates' => 'setEligibleRates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'eligible_rates' => 'getEligibleRates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['eligible_rates'] = $data['eligible_rates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['eligible_rates'] === null) { - $invalidProperties[] = "'eligible_rates' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets eligible_rates - * - * @return \SellingPartnerApi\Model\ShippingV1\Rate[] - */ - public function getEligibleRates() - { - return $this->container['eligible_rates']; - } - - /** - * Sets eligible_rates - * - * @param \SellingPartnerApi\Model\ShippingV1\Rate[] $eligible_rates A list of all the available rates that can be used to send the shipment. - * - * @return self - */ - public function setEligibleRates($eligible_rates) - { - $this->container['eligible_rates'] = $eligible_rates; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Currency.php b/lib/Model/ShippingV1/Currency.php deleted file mode 100644 index 00fbdba17..000000000 --- a/lib/Model/ShippingV1/Currency.php +++ /dev/null @@ -1,212 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Currency Class Doc Comment - * - * @category Class - * @description The total value of all items in the container. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Currency extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Currency'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'float', - 'unit' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - if ((mb_strlen($this->container['unit']) > 3)) { - $invalidProperties[] = "invalid value for 'unit', the character length must be smaller than or equal to 3."; - } - - if ((mb_strlen($this->container['unit']) < 3)) { - $invalidProperties[] = "invalid value for 'unit', the character length must be bigger than or equal to 3."; - } - - return $invalidProperties; - } - - - /** - * Gets value - * - * @return float - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float $value The amount of currency. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit A 3-character currency code. - * - * @return self - */ - public function setUnit($unit) - { - if ((mb_strlen($unit) > 3)) { - throw new \InvalidArgumentException('invalid length for $unit when calling Currency., must be smaller than or equal to 3.'); - } - if ((mb_strlen($unit) < 3)) { - throw new \InvalidArgumentException('invalid length for $unit when calling Currency., must be bigger than or equal to 3.'); - } - - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Dimensions.php b/lib/Model/ShippingV1/Dimensions.php deleted file mode 100644 index f4f4fbbb3..000000000 --- a/lib/Model/ShippingV1/Dimensions.php +++ /dev/null @@ -1,305 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Dimensions Class Doc Comment - * - * @category Class - * @description A set of measurements for a three-dimensional object. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'float', - 'width' => 'float', - 'height' => 'float', - 'unit' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'height' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit' => 'getUnit' - ]; - - - - const UNIT_IN = 'IN'; - const UNIT_CM = 'CM'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_IN, - self::UNIT_CM, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return float - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param float $length The length of the container. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return float - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param float $width The width of the container. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return float - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param float $height The height of the container. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of these measurements. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Error.php b/lib/Model/ShippingV1/Error.php deleted file mode 100644 index ecdf06342..000000000 --- a/lib/Model/ShippingV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Error Class Doc Comment - * - * @category Class - * @description Error response returned when the request is unsuccessful. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Event.php b/lib/Model/ShippingV1/Event.php deleted file mode 100644 index 39f48c4ed..000000000 --- a/lib/Model/ShippingV1/Event.php +++ /dev/null @@ -1,241 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Event Class Doc Comment - * - * @category Class - * @description An event of a shipment - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Event extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Event'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'event_code' => 'string', - 'event_time' => 'string', - 'location' => '\SellingPartnerApi\Model\ShippingV1\Location' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'event_code' => null, - 'event_time' => null, - 'location' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'event_code' => 'eventCode', - 'event_time' => 'eventTime', - 'location' => 'location' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'event_code' => 'setEventCode', - 'event_time' => 'setEventTime', - 'location' => 'setLocation' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'event_code' => 'getEventCode', - 'event_time' => 'getEventTime', - 'location' => 'getLocation' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['event_code'] = $data['event_code'] ?? null; - $this->container['event_time'] = $data['event_time'] ?? null; - $this->container['location'] = $data['location'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['event_code'] === null) { - $invalidProperties[] = "'event_code' can't be null"; - } - if ((mb_strlen($this->container['event_code']) > 60)) { - $invalidProperties[] = "invalid value for 'event_code', the character length must be smaller than or equal to 60."; - } - - if ((mb_strlen($this->container['event_code']) < 1)) { - $invalidProperties[] = "invalid value for 'event_code', the character length must be bigger than or equal to 1."; - } - - if ($this->container['event_time'] === null) { - $invalidProperties[] = "'event_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets event_code - * - * @return string - */ - public function getEventCode() - { - return $this->container['event_code']; - } - - /** - * Sets event_code - * - * @param string $event_code The event code of a shipment, such as Departed, Received, and ReadyForReceive. - * - * @return self - */ - public function setEventCode($event_code) - { - if ((mb_strlen($event_code) > 60)) { - throw new \InvalidArgumentException('invalid length for $event_code when calling Event., must be smaller than or equal to 60.'); - } - if ((mb_strlen($event_code) < 1)) { - throw new \InvalidArgumentException('invalid length for $event_code when calling Event., must be bigger than or equal to 1.'); - } - - $this->container['event_code'] = $event_code; - - return $this; - } - /** - * Gets event_time - * - * @return string - */ - public function getEventTime() - { - return $this->container['event_time']; - } - - /** - * Sets event_time - * - * @param string $event_time The date and time of an event for a shipment, in ISO 8601 format. - * - * @return self - */ - public function setEventTime($event_time) - { - $this->container['event_time'] = $event_time; - - return $this; - } - /** - * Gets location - * - * @return \SellingPartnerApi\Model\ShippingV1\Location|null - */ - public function getLocation() - { - return $this->container['location']; - } - - /** - * Sets location - * - * @param \SellingPartnerApi\Model\ShippingV1\Location|null $location location - * - * @return self - */ - public function setLocation($location) - { - $this->container['location'] = $location; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetAccountResponse.php b/lib/Model/ShippingV1/GetAccountResponse.php deleted file mode 100644 index 39c05f633..000000000 --- a/lib/Model/ShippingV1/GetAccountResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetAccountResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getAccount operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAccountResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAccountResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\Account', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\Account|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\Account|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetRatesRequest.php b/lib/Model/ShippingV1/GetRatesRequest.php deleted file mode 100644 index ca7702dab..000000000 --- a/lib/Model/ShippingV1/GetRatesRequest.php +++ /dev/null @@ -1,290 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetRatesRequest Class Doc Comment - * - * @category Class - * @description The payload schema for the getRates operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ship_to' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'service_types' => '\SellingPartnerApi\Model\ShippingV1\ServiceType[]', - 'ship_date' => 'string', - 'container_specifications' => '\SellingPartnerApi\Model\ShippingV1\ContainerSpecification[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ship_to' => null, - 'ship_from' => null, - 'service_types' => null, - 'ship_date' => null, - 'container_specifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ship_to' => 'shipTo', - 'ship_from' => 'shipFrom', - 'service_types' => 'serviceTypes', - 'ship_date' => 'shipDate', - 'container_specifications' => 'containerSpecifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ship_to' => 'setShipTo', - 'ship_from' => 'setShipFrom', - 'service_types' => 'setServiceTypes', - 'ship_date' => 'setShipDate', - 'container_specifications' => 'setContainerSpecifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ship_to' => 'getShipTo', - 'ship_from' => 'getShipFrom', - 'service_types' => 'getServiceTypes', - 'ship_date' => 'getShipDate', - 'container_specifications' => 'getContainerSpecifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['service_types'] = $data['service_types'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['container_specifications'] = $data['container_specifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['ship_to'] === null) { - $invalidProperties[] = "'ship_to' can't be null"; - } - if ($this->container['ship_from'] === null) { - $invalidProperties[] = "'ship_from' can't be null"; - } - if ($this->container['service_types'] === null) { - $invalidProperties[] = "'service_types' can't be null"; - } - if ($this->container['container_specifications'] === null) { - $invalidProperties[] = "'container_specifications' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets service_types - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceType[] - */ - public function getServiceTypes() - { - return $this->container['service_types']; - } - - /** - * Sets service_types - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceType[] $service_types A list of service types that can be used to send the shipment. - * - * @return self - */ - public function setServiceTypes($service_types) - { - $this->container['service_types'] = $service_types; - - return $this; - } - /** - * Gets ship_date - * - * @return string|null - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string|null $ship_date The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets container_specifications - * - * @return \SellingPartnerApi\Model\ShippingV1\ContainerSpecification[] - */ - public function getContainerSpecifications() - { - return $this->container['container_specifications']; - } - - /** - * Sets container_specifications - * - * @param \SellingPartnerApi\Model\ShippingV1\ContainerSpecification[] $container_specifications A list of container specifications. - * - * @return self - */ - public function setContainerSpecifications($container_specifications) - { - $this->container['container_specifications'] = $container_specifications; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetRatesResponse.php b/lib/Model/ShippingV1/GetRatesResponse.php deleted file mode 100644 index 643400470..000000000 --- a/lib/Model/ShippingV1/GetRatesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetRatesResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getRates operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\GetRatesResult', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\GetRatesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\GetRatesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetRatesResult.php b/lib/Model/ShippingV1/GetRatesResult.php deleted file mode 100644 index ecb26c3ab..000000000 --- a/lib/Model/ShippingV1/GetRatesResult.php +++ /dev/null @@ -1,165 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetRatesResult Class Doc Comment - * - * @category Class - * @description The payload schema for the getRates operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'service_rates' => '\SellingPartnerApi\Model\ShippingV1\ServiceRate[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'service_rates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'service_rates' => 'serviceRates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'service_rates' => 'setServiceRates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'service_rates' => 'getServiceRates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['service_rates'] = $data['service_rates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['service_rates'] === null) { - $invalidProperties[] = "'service_rates' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets service_rates - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceRate[] - */ - public function getServiceRates() - { - return $this->container['service_rates']; - } - - /** - * Sets service_rates - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceRate[] $service_rates A list of service rates. - * - * @return self - */ - public function setServiceRates($service_rates) - { - $this->container['service_rates'] = $service_rates; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetShipmentResponse.php b/lib/Model/ShippingV1/GetShipmentResponse.php deleted file mode 100644 index a20973fc6..000000000 --- a/lib/Model/ShippingV1/GetShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetShipmentResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\Shipment', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\Shipment|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\Shipment|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/GetTrackingInformationResponse.php b/lib/Model/ShippingV1/GetTrackingInformationResponse.php deleted file mode 100644 index c4f9a9267..000000000 --- a/lib/Model/ShippingV1/GetTrackingInformationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetTrackingInformationResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getTrackingInformation operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTrackingInformationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTrackingInformationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\TrackingInformation', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\TrackingInformation|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\TrackingInformation|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Label.php b/lib/Model/ShippingV1/Label.php deleted file mode 100644 index 4626bbda0..000000000 --- a/lib/Model/ShippingV1/Label.php +++ /dev/null @@ -1,191 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Label Class Doc Comment - * - * @category Class - * @description The label details of the container. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Label extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Label'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_stream' => 'string', - 'label_specification' => '\SellingPartnerApi\Model\ShippingV1\LabelSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_stream' => null, - 'label_specification' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_stream' => 'labelStream', - 'label_specification' => 'labelSpecification' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_stream' => 'setLabelStream', - 'label_specification' => 'setLabelSpecification' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_stream' => 'getLabelStream', - 'label_specification' => 'getLabelSpecification' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_stream'] = $data['label_stream'] ?? null; - $this->container['label_specification'] = $data['label_specification'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets label_stream - * - * @return string|null - */ - public function getLabelStream() - { - return $this->container['label_stream']; - } - - /** - * Sets label_stream - * - * @param string|null $label_stream Contains binary image data encoded as a base-64 string. - * - * @return self - */ - public function setLabelStream($label_stream) - { - $this->container['label_stream'] = $label_stream; - - return $this; - } - /** - * Gets label_specification - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelSpecification|null - */ - public function getLabelSpecification() - { - return $this->container['label_specification']; - } - - /** - * Sets label_specification - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelSpecification|null $label_specification label_specification - * - * @return self - */ - public function setLabelSpecification($label_specification) - { - $this->container['label_specification'] = $label_specification; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/LabelResult.php b/lib/Model/ShippingV1/LabelResult.php deleted file mode 100644 index 1b50be9fb..000000000 --- a/lib/Model/ShippingV1/LabelResult.php +++ /dev/null @@ -1,228 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * LabelResult Class Doc Comment - * - * @category Class - * @description Label details including label stream, format, size. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_reference_id' => 'string', - 'tracking_id' => 'string', - 'label' => '\SellingPartnerApi\Model\ShippingV1\Label' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_reference_id' => null, - 'tracking_id' => null, - 'label' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_reference_id' => 'containerReferenceId', - 'tracking_id' => 'trackingId', - 'label' => 'label' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_reference_id' => 'setContainerReferenceId', - 'tracking_id' => 'setTrackingId', - 'label' => 'setLabel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_reference_id' => 'getContainerReferenceId', - 'tracking_id' => 'getTrackingId', - 'label' => 'getLabel' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_reference_id'] = $data['container_reference_id'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['label'] = $data['label'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['container_reference_id']) && (mb_strlen($this->container['container_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'container_reference_id', the character length must be smaller than or equal to 40."; - } - - return $invalidProperties; - } - - - /** - * Gets container_reference_id - * - * @return string|null - */ - public function getContainerReferenceId() - { - return $this->container['container_reference_id']; - } - - /** - * Sets container_reference_id - * - * @param string|null $container_reference_id An identifier for the container. This must be unique within all the containers in the same shipment. - * - * @return self - */ - public function setContainerReferenceId($container_reference_id) - { - if (!is_null($container_reference_id) && (mb_strlen($container_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $container_reference_id when calling LabelResult., must be smaller than or equal to 40.'); - } - - $this->container['container_reference_id'] = $container_reference_id; - - return $this; - } - /** - * Gets tracking_id - * - * @return string|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string|null $tracking_id The tracking identifier assigned to the container. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets label - * - * @return \SellingPartnerApi\Model\ShippingV1\Label|null - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param \SellingPartnerApi\Model\ShippingV1\Label|null $label label - * - * @return self - */ - public function setLabel($label) - { - $this->container['label'] = $label; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/LabelSpecification.php b/lib/Model/ShippingV1/LabelSpecification.php deleted file mode 100644 index 40ada0b75..000000000 --- a/lib/Model/ShippingV1/LabelSpecification.php +++ /dev/null @@ -1,281 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * LabelSpecification Class Doc Comment - * - * @category Class - * @description The label specification info. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_format' => 'string', - 'label_stock_size' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_format' => null, - 'label_stock_size' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_format' => 'labelFormat', - 'label_stock_size' => 'labelStockSize' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_format' => 'setLabelFormat', - 'label_stock_size' => 'setLabelStockSize' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_format' => 'getLabelFormat', - 'label_stock_size' => 'getLabelStockSize' - ]; - - - - const LABEL_FORMAT_PNG = 'PNG'; - - - const LABEL_STOCK_SIZE__4X6 = '4x6'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLabelFormatAllowableValues() - { - $baseVals = [ - self::LABEL_FORMAT_PNG, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLabelStockSizeAllowableValues() - { - $baseVals = [ - self::LABEL_STOCK_SIZE__4X6, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_format'] = $data['label_format'] ?? null; - $this->container['label_stock_size'] = $data['label_stock_size'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['label_format'] === null) { - $invalidProperties[] = "'label_format' can't be null"; - } - $allowedValues = $this->getLabelFormatAllowableValues(); - if ( - !is_null($this->container['label_format']) && - !in_array(strtoupper($this->container['label_format']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'label_format', must be one of '%s'", - $this->container['label_format'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['label_stock_size'] === null) { - $invalidProperties[] = "'label_stock_size' can't be null"; - } - $allowedValues = $this->getLabelStockSizeAllowableValues(); - if ( - !is_null($this->container['label_stock_size']) && - !in_array(strtoupper($this->container['label_stock_size']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'label_stock_size', must be one of '%s'", - $this->container['label_stock_size'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets label_format - * - * @return string - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param string $label_format The format of the label. Enum of PNG only for now. - * - * @return self - */ - public function setLabelFormat($label_format) - { - $allowedValues = $this->getLabelFormatAllowableValues(); - if (!in_array(strtoupper($label_format), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'label_format', must be one of '%s'", - $label_format, - implode("', '", $allowedValues) - ) - ); - } - $this->container['label_format'] = $label_format; - - return $this; - } - /** - * Gets label_stock_size - * - * @return string - */ - public function getLabelStockSize() - { - return $this->container['label_stock_size']; - } - - /** - * Sets label_stock_size - * - * @param string $label_stock_size The label stock size specification in length and height. Enum of 4x6 only for now. - * - * @return self - */ - public function setLabelStockSize($label_stock_size) - { - $allowedValues = $this->getLabelStockSizeAllowableValues(); - if (!in_array(strtoupper($label_stock_size), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'label_stock_size', must be one of '%s'", - $label_stock_size, - implode("', '", $allowedValues) - ) - ); - } - $this->container['label_stock_size'] = $label_stock_size; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Location.php b/lib/Model/ShippingV1/Location.php deleted file mode 100644 index 99940ff05..000000000 --- a/lib/Model/ShippingV1/Location.php +++ /dev/null @@ -1,294 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Location Class Doc Comment - * - * @category Class - * @description The location where the person, business or institution is located. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Location extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Location'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'state_or_region' => 'string', - 'city' => 'string', - 'country_code' => 'string', - 'postal_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'state_or_region' => null, - 'city' => null, - 'country_code' => null, - 'postal_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'state_or_region' => 'stateOrRegion', - 'city' => 'city', - 'country_code' => 'countryCode', - 'postal_code' => 'postalCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'state_or_region' => 'setStateOrRegion', - 'city' => 'setCity', - 'country_code' => 'setCountryCode', - 'postal_code' => 'setPostalCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'state_or_region' => 'getStateOrRegion', - 'city' => 'getCity', - 'country_code' => 'getCountryCode', - 'postal_code' => 'getPostalCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['city']) && (mb_strlen($this->container['city']) > 50)) { - $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 50."; - } - - if (!is_null($this->container['city']) && (mb_strlen($this->container['city']) < 1)) { - $invalidProperties[] = "invalid value for 'city', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['country_code']) && (mb_strlen($this->container['country_code']) > 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be smaller than or equal to 2."; - } - - if (!is_null($this->container['country_code']) && (mb_strlen($this->container['country_code']) < 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be bigger than or equal to 2."; - } - - if (!is_null($this->container['postal_code']) && (mb_strlen($this->container['postal_code']) > 20)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be smaller than or equal to 20."; - } - - if (!is_null($this->container['postal_code']) && (mb_strlen($this->container['postal_code']) < 1)) { - $invalidProperties[] = "invalid value for 'postal_code', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where the person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - if (!is_null($city) && (mb_strlen($city) > 50)) { - throw new \InvalidArgumentException('invalid length for $city when calling Location., must be smaller than or equal to 50.'); - } - if (!is_null($city) && (mb_strlen($city) < 1)) { - throw new \InvalidArgumentException('invalid length for $city when calling Location., must be bigger than or equal to 1.'); - } - - $this->container['city'] = $city; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - if (!is_null($country_code) && (mb_strlen($country_code) > 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Location., must be smaller than or equal to 2.'); - } - if (!is_null($country_code) && (mb_strlen($country_code) < 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Location., must be bigger than or equal to 2.'); - } - - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - if (!is_null($postal_code) && (mb_strlen($postal_code) > 20)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Location., must be smaller than or equal to 20.'); - } - if (!is_null($postal_code) && (mb_strlen($postal_code) < 1)) { - throw new \InvalidArgumentException('invalid length for $postal_code when calling Location., must be bigger than or equal to 1.'); - } - - $this->container['postal_code'] = $postal_code; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Party.php b/lib/Model/ShippingV1/Party.php deleted file mode 100644 index 70563c0f0..000000000 --- a/lib/Model/ShippingV1/Party.php +++ /dev/null @@ -1,170 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Party Class Doc Comment - * - * @category Class - * @description The account related with the shipment. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Party extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Party'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'account_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'account_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'account_id' => 'accountId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'account_id' => 'setAccountId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'account_id' => 'getAccountId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['account_id'] = $data['account_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['account_id']) && (mb_strlen($this->container['account_id']) > 10)) { - $invalidProperties[] = "invalid value for 'account_id', the character length must be smaller than or equal to 10."; - } - - return $invalidProperties; - } - - - /** - * Gets account_id - * - * @return string|null - */ - public function getAccountId() - { - return $this->container['account_id']; - } - - /** - * Sets account_id - * - * @param string|null $account_id This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process. - * - * @return self - */ - public function setAccountId($account_id) - { - if (!is_null($account_id) && (mb_strlen($account_id) > 10)) { - throw new \InvalidArgumentException('invalid length for $account_id when calling Party., must be smaller than or equal to 10.'); - } - - $this->container['account_id'] = $account_id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseLabelsRequest.php b/lib/Model/ShippingV1/PurchaseLabelsRequest.php deleted file mode 100644 index 8addef3ed..000000000 --- a/lib/Model/ShippingV1/PurchaseLabelsRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseLabelsRequest Class Doc Comment - * - * @category Class - * @description The request schema for the purchaseLabels operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseLabelsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseLabelsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'rate_id' => 'string', - 'label_specification' => '\SellingPartnerApi\Model\ShippingV1\LabelSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'rate_id' => null, - 'label_specification' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'rate_id' => 'rateId', - 'label_specification' => 'labelSpecification' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'rate_id' => 'setRateId', - 'label_specification' => 'setLabelSpecification' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'rate_id' => 'getRateId', - 'label_specification' => 'getLabelSpecification' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['rate_id'] = $data['rate_id'] ?? null; - $this->container['label_specification'] = $data['label_specification'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['rate_id'] === null) { - $invalidProperties[] = "'rate_id' can't be null"; - } - if ($this->container['label_specification'] === null) { - $invalidProperties[] = "'label_specification' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets rate_id - * - * @return string - */ - public function getRateId() - { - return $this->container['rate_id']; - } - - /** - * Sets rate_id - * - * @param string $rate_id An identifier for the rating. - * - * @return self - */ - public function setRateId($rate_id) - { - $this->container['rate_id'] = $rate_id; - - return $this; - } - /** - * Gets label_specification - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelSpecification - */ - public function getLabelSpecification() - { - return $this->container['label_specification']; - } - - /** - * Sets label_specification - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelSpecification $label_specification label_specification - * - * @return self - */ - public function setLabelSpecification($label_specification) - { - $this->container['label_specification'] = $label_specification; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseLabelsResponse.php b/lib/Model/ShippingV1/PurchaseLabelsResponse.php deleted file mode 100644 index d06bc1aeb..000000000 --- a/lib/Model/ShippingV1/PurchaseLabelsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseLabelsResponse Class Doc Comment - * - * @category Class - * @description The response schema for the purchaseLabels operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseLabelsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseLabelsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResult', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseLabelsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseLabelsResult.php b/lib/Model/ShippingV1/PurchaseLabelsResult.php deleted file mode 100644 index 6f49020a2..000000000 --- a/lib/Model/ShippingV1/PurchaseLabelsResult.php +++ /dev/null @@ -1,266 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseLabelsResult Class Doc Comment - * - * @category Class - * @description The payload schema for the purchaseLabels operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseLabelsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseLabelsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'client_reference_id' => 'string', - 'accepted_rate' => '\SellingPartnerApi\Model\ShippingV1\AcceptedRate', - 'label_results' => '\SellingPartnerApi\Model\ShippingV1\LabelResult[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'client_reference_id' => null, - 'accepted_rate' => null, - 'label_results' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'client_reference_id' => 'clientReferenceId', - 'accepted_rate' => 'acceptedRate', - 'label_results' => 'labelResults' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'client_reference_id' => 'setClientReferenceId', - 'accepted_rate' => 'setAcceptedRate', - 'label_results' => 'setLabelResults' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'client_reference_id' => 'getClientReferenceId', - 'accepted_rate' => 'getAcceptedRate', - 'label_results' => 'getLabelResults' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['client_reference_id'] = $data['client_reference_id'] ?? null; - $this->container['accepted_rate'] = $data['accepted_rate'] ?? null; - $this->container['label_results'] = $data['label_results'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if (!is_null($this->container['client_reference_id']) && (mb_strlen($this->container['client_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'client_reference_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['accepted_rate'] === null) { - $invalidProperties[] = "'accepted_rate' can't be null"; - } - if ($this->container['label_results'] === null) { - $invalidProperties[] = "'label_results' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets client_reference_id - * - * @return string|null - */ - public function getClientReferenceId() - { - return $this->container['client_reference_id']; - } - - /** - * Sets client_reference_id - * - * @param string|null $client_reference_id Client reference id. - * - * @return self - */ - public function setClientReferenceId($client_reference_id) - { - if (!is_null($client_reference_id) && (mb_strlen($client_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $client_reference_id when calling PurchaseLabelsResult., must be smaller than or equal to 40.'); - } - - $this->container['client_reference_id'] = $client_reference_id; - - return $this; - } - /** - * Gets accepted_rate - * - * @return \SellingPartnerApi\Model\ShippingV1\AcceptedRate - */ - public function getAcceptedRate() - { - return $this->container['accepted_rate']; - } - - /** - * Sets accepted_rate - * - * @param \SellingPartnerApi\Model\ShippingV1\AcceptedRate $accepted_rate accepted_rate - * - * @return self - */ - public function setAcceptedRate($accepted_rate) - { - $this->container['accepted_rate'] = $accepted_rate; - - return $this; - } - /** - * Gets label_results - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelResult[] - */ - public function getLabelResults() - { - return $this->container['label_results']; - } - - /** - * Sets label_results - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelResult[] $label_results A list of label results - * - * @return self - */ - public function setLabelResults($label_results) - { - $this->container['label_results'] = $label_results; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseShipmentRequest.php b/lib/Model/ShippingV1/PurchaseShipmentRequest.php deleted file mode 100644 index 764852a65..000000000 --- a/lib/Model/ShippingV1/PurchaseShipmentRequest.php +++ /dev/null @@ -1,362 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseShipmentRequest Class Doc Comment - * - * @category Class - * @description The payload schema for the purchaseShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'client_reference_id' => 'string', - 'ship_to' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'ship_date' => 'string', - 'service_type' => '\SellingPartnerApi\Model\ShippingV1\ServiceType', - 'containers' => '\SellingPartnerApi\Model\ShippingV1\Container[]', - 'label_specification' => '\SellingPartnerApi\Model\ShippingV1\LabelSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'client_reference_id' => null, - 'ship_to' => null, - 'ship_from' => null, - 'ship_date' => null, - 'service_type' => null, - 'containers' => null, - 'label_specification' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'client_reference_id' => 'clientReferenceId', - 'ship_to' => 'shipTo', - 'ship_from' => 'shipFrom', - 'ship_date' => 'shipDate', - 'service_type' => 'serviceType', - 'containers' => 'containers', - 'label_specification' => 'labelSpecification' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'client_reference_id' => 'setClientReferenceId', - 'ship_to' => 'setShipTo', - 'ship_from' => 'setShipFrom', - 'ship_date' => 'setShipDate', - 'service_type' => 'setServiceType', - 'containers' => 'setContainers', - 'label_specification' => 'setLabelSpecification' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'client_reference_id' => 'getClientReferenceId', - 'ship_to' => 'getShipTo', - 'ship_from' => 'getShipFrom', - 'ship_date' => 'getShipDate', - 'service_type' => 'getServiceType', - 'containers' => 'getContainers', - 'label_specification' => 'getLabelSpecification' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['client_reference_id'] = $data['client_reference_id'] ?? null; - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['service_type'] = $data['service_type'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - $this->container['label_specification'] = $data['label_specification'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['client_reference_id'] === null) { - $invalidProperties[] = "'client_reference_id' can't be null"; - } - if ((mb_strlen($this->container['client_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'client_reference_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['ship_to'] === null) { - $invalidProperties[] = "'ship_to' can't be null"; - } - if ($this->container['ship_from'] === null) { - $invalidProperties[] = "'ship_from' can't be null"; - } - if ($this->container['service_type'] === null) { - $invalidProperties[] = "'service_type' can't be null"; - } - if ($this->container['containers'] === null) { - $invalidProperties[] = "'containers' can't be null"; - } - if ($this->container['label_specification'] === null) { - $invalidProperties[] = "'label_specification' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets client_reference_id - * - * @return string - */ - public function getClientReferenceId() - { - return $this->container['client_reference_id']; - } - - /** - * Sets client_reference_id - * - * @param string $client_reference_id Client reference id. - * - * @return self - */ - public function setClientReferenceId($client_reference_id) - { - if ((mb_strlen($client_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $client_reference_id when calling PurchaseShipmentRequest., must be smaller than or equal to 40.'); - } - - $this->container['client_reference_id'] = $client_reference_id; - - return $this; - } - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets ship_date - * - * @return string|null - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string|null $ship_date The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets service_type - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceType - */ - public function getServiceType() - { - return $this->container['service_type']; - } - - /** - * Sets service_type - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceType $service_type service_type - * - * @return self - */ - public function setServiceType($service_type) - { - $this->container['service_type'] = $service_type; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\ShippingV1\Container[] - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\ShippingV1\Container[] $containers A list of container. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } - /** - * Gets label_specification - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelSpecification - */ - public function getLabelSpecification() - { - return $this->container['label_specification']; - } - - /** - * Sets label_specification - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelSpecification $label_specification label_specification - * - * @return self - */ - public function setLabelSpecification($label_specification) - { - $this->container['label_specification'] = $label_specification; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseShipmentResponse.php b/lib/Model/ShippingV1/PurchaseShipmentResponse.php deleted file mode 100644 index 6743cb8c2..000000000 --- a/lib/Model/ShippingV1/PurchaseShipmentResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseShipmentResponse Class Doc Comment - * - * @category Class - * @description The response schema for the purchaseShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResult', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\PurchaseShipmentResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/PurchaseShipmentResult.php b/lib/Model/ShippingV1/PurchaseShipmentResult.php deleted file mode 100644 index 3ee3e28b5..000000000 --- a/lib/Model/ShippingV1/PurchaseShipmentResult.php +++ /dev/null @@ -1,229 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * PurchaseShipmentResult Class Doc Comment - * - * @category Class - * @description The payload schema for the purchaseShipment operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'service_rate' => '\SellingPartnerApi\Model\ShippingV1\ServiceRate', - 'label_results' => '\SellingPartnerApi\Model\ShippingV1\LabelResult[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'service_rate' => null, - 'label_results' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'service_rate' => 'serviceRate', - 'label_results' => 'labelResults' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'service_rate' => 'setServiceRate', - 'label_results' => 'setLabelResults' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'service_rate' => 'getServiceRate', - 'label_results' => 'getLabelResults' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['service_rate'] = $data['service_rate'] ?? null; - $this->container['label_results'] = $data['label_results'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['service_rate'] === null) { - $invalidProperties[] = "'service_rate' can't be null"; - } - if ($this->container['label_results'] === null) { - $invalidProperties[] = "'label_results' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets service_rate - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceRate - */ - public function getServiceRate() - { - return $this->container['service_rate']; - } - - /** - * Sets service_rate - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceRate $service_rate service_rate - * - * @return self - */ - public function setServiceRate($service_rate) - { - $this->container['service_rate'] = $service_rate; - - return $this; - } - /** - * Gets label_results - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelResult[] - */ - public function getLabelResults() - { - return $this->container['label_results']; - } - - /** - * Sets label_results - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelResult[] $label_results A list of label results - * - * @return self - */ - public function setLabelResults($label_results) - { - $this->container['label_results'] = $label_results; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Rate.php b/lib/Model/ShippingV1/Rate.php deleted file mode 100644 index 8de5de729..000000000 --- a/lib/Model/ShippingV1/Rate.php +++ /dev/null @@ -1,307 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Rate Class Doc Comment - * - * @category Class - * @description The available rate that can be used to send the shipment - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Rate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Rate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'rate_id' => 'string', - 'total_charge' => '\SellingPartnerApi\Model\ShippingV1\Currency', - 'billed_weight' => '\SellingPartnerApi\Model\ShippingV1\Weight', - 'expiration_time' => 'string', - 'service_type' => '\SellingPartnerApi\Model\ShippingV1\ServiceType', - 'promise' => '\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'rate_id' => null, - 'total_charge' => null, - 'billed_weight' => null, - 'expiration_time' => null, - 'service_type' => null, - 'promise' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'rate_id' => 'rateId', - 'total_charge' => 'totalCharge', - 'billed_weight' => 'billedWeight', - 'expiration_time' => 'expirationTime', - 'service_type' => 'serviceType', - 'promise' => 'promise' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'rate_id' => 'setRateId', - 'total_charge' => 'setTotalCharge', - 'billed_weight' => 'setBilledWeight', - 'expiration_time' => 'setExpirationTime', - 'service_type' => 'setServiceType', - 'promise' => 'setPromise' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'rate_id' => 'getRateId', - 'total_charge' => 'getTotalCharge', - 'billed_weight' => 'getBilledWeight', - 'expiration_time' => 'getExpirationTime', - 'service_type' => 'getServiceType', - 'promise' => 'getPromise' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['rate_id'] = $data['rate_id'] ?? null; - $this->container['total_charge'] = $data['total_charge'] ?? null; - $this->container['billed_weight'] = $data['billed_weight'] ?? null; - $this->container['expiration_time'] = $data['expiration_time'] ?? null; - $this->container['service_type'] = $data['service_type'] ?? null; - $this->container['promise'] = $data['promise'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets rate_id - * - * @return string|null - */ - public function getRateId() - { - return $this->container['rate_id']; - } - - /** - * Sets rate_id - * - * @param string|null $rate_id An identifier for the rate. - * - * @return self - */ - public function setRateId($rate_id) - { - $this->container['rate_id'] = $rate_id; - - return $this; - } - /** - * Gets total_charge - * - * @return \SellingPartnerApi\Model\ShippingV1\Currency|null - */ - public function getTotalCharge() - { - return $this->container['total_charge']; - } - - /** - * Sets total_charge - * - * @param \SellingPartnerApi\Model\ShippingV1\Currency|null $total_charge total_charge - * - * @return self - */ - public function setTotalCharge($total_charge) - { - $this->container['total_charge'] = $total_charge; - - return $this; - } - /** - * Gets billed_weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight|null - */ - public function getBilledWeight() - { - return $this->container['billed_weight']; - } - - /** - * Sets billed_weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight|null $billed_weight billed_weight - * - * @return self - */ - public function setBilledWeight($billed_weight) - { - $this->container['billed_weight'] = $billed_weight; - - return $this; - } - /** - * Gets expiration_time - * - * @return string|null - */ - public function getExpirationTime() - { - return $this->container['expiration_time']; - } - - /** - * Sets expiration_time - * - * @param string|null $expiration_time The time after which the offering will expire. - * - * @return self - */ - public function setExpirationTime($expiration_time) - { - $this->container['expiration_time'] = $expiration_time; - - return $this; - } - /** - * Gets service_type - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceType|null - */ - public function getServiceType() - { - return $this->container['service_type']; - } - - /** - * Sets service_type - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceType|null $service_type service_type - * - * @return self - */ - public function setServiceType($service_type) - { - $this->container['service_type'] = $service_type; - - return $this; - } - /** - * Gets promise - * - * @return \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet|null - */ - public function getPromise() - { - return $this->container['promise']; - } - - /** - * Sets promise - * - * @param \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet|null $promise promise - * - * @return self - */ - public function setPromise($promise) - { - $this->container['promise'] = $promise; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/RetrieveShippingLabelRequest.php b/lib/Model/ShippingV1/RetrieveShippingLabelRequest.php deleted file mode 100644 index c124628ca..000000000 --- a/lib/Model/ShippingV1/RetrieveShippingLabelRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * RetrieveShippingLabelRequest Class Doc Comment - * - * @category Class - * @description The request schema for the retrieveShippingLabel operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class RetrieveShippingLabelRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RetrieveShippingLabelRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_specification' => '\SellingPartnerApi\Model\ShippingV1\LabelSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_specification' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_specification' => 'labelSpecification' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_specification' => 'setLabelSpecification' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_specification' => 'getLabelSpecification' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_specification'] = $data['label_specification'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['label_specification'] === null) { - $invalidProperties[] = "'label_specification' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets label_specification - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelSpecification - */ - public function getLabelSpecification() - { - return $this->container['label_specification']; - } - - /** - * Sets label_specification - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelSpecification $label_specification label_specification - * - * @return self - */ - public function setLabelSpecification($label_specification) - { - $this->container['label_specification'] = $label_specification; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/RetrieveShippingLabelResponse.php b/lib/Model/ShippingV1/RetrieveShippingLabelResponse.php deleted file mode 100644 index 1cfd89ac4..000000000 --- a/lib/Model/ShippingV1/RetrieveShippingLabelResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * RetrieveShippingLabelResponse Class Doc Comment - * - * @category Class - * @description The response schema for the retrieveShippingLabel operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class RetrieveShippingLabelResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RetrieveShippingLabelResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResult', - 'errors' => '\SellingPartnerApi\Model\ShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV1\RetrieveShippingLabelResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/RetrieveShippingLabelResult.php b/lib/Model/ShippingV1/RetrieveShippingLabelResult.php deleted file mode 100644 index 1f927b844..000000000 --- a/lib/Model/ShippingV1/RetrieveShippingLabelResult.php +++ /dev/null @@ -1,197 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * RetrieveShippingLabelResult Class Doc Comment - * - * @category Class - * @description The payload schema for the retrieveShippingLabel operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class RetrieveShippingLabelResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RetrieveShippingLabelResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_stream' => 'string', - 'label_specification' => '\SellingPartnerApi\Model\ShippingV1\LabelSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_stream' => null, - 'label_specification' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_stream' => 'labelStream', - 'label_specification' => 'labelSpecification' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_stream' => 'setLabelStream', - 'label_specification' => 'setLabelSpecification' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_stream' => 'getLabelStream', - 'label_specification' => 'getLabelSpecification' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_stream'] = $data['label_stream'] ?? null; - $this->container['label_specification'] = $data['label_specification'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['label_stream'] === null) { - $invalidProperties[] = "'label_stream' can't be null"; - } - if ($this->container['label_specification'] === null) { - $invalidProperties[] = "'label_specification' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets label_stream - * - * @return string - */ - public function getLabelStream() - { - return $this->container['label_stream']; - } - - /** - * Sets label_stream - * - * @param string $label_stream Contains binary image data encoded as a base-64 string. - * - * @return self - */ - public function setLabelStream($label_stream) - { - $this->container['label_stream'] = $label_stream; - - return $this; - } - /** - * Gets label_specification - * - * @return \SellingPartnerApi\Model\ShippingV1\LabelSpecification - */ - public function getLabelSpecification() - { - return $this->container['label_specification']; - } - - /** - * Sets label_specification - * - * @param \SellingPartnerApi\Model\ShippingV1\LabelSpecification $label_specification label_specification - * - * @return self - */ - public function setLabelSpecification($label_specification) - { - $this->container['label_specification'] = $label_specification; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/ServiceRate.php b/lib/Model/ShippingV1/ServiceRate.php deleted file mode 100644 index 7a74ec35d..000000000 --- a/lib/Model/ShippingV1/ServiceRate.php +++ /dev/null @@ -1,261 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * ServiceRate Class Doc Comment - * - * @category Class - * @description The specific rate for a shipping service, or null if no service available. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class ServiceRate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ServiceRate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_charge' => '\SellingPartnerApi\Model\ShippingV1\Currency', - 'billable_weight' => '\SellingPartnerApi\Model\ShippingV1\Weight', - 'service_type' => '\SellingPartnerApi\Model\ShippingV1\ServiceType', - 'promise' => '\SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_charge' => null, - 'billable_weight' => null, - 'service_type' => null, - 'promise' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_charge' => 'totalCharge', - 'billable_weight' => 'billableWeight', - 'service_type' => 'serviceType', - 'promise' => 'promise' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_charge' => 'setTotalCharge', - 'billable_weight' => 'setBillableWeight', - 'service_type' => 'setServiceType', - 'promise' => 'setPromise' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_charge' => 'getTotalCharge', - 'billable_weight' => 'getBillableWeight', - 'service_type' => 'getServiceType', - 'promise' => 'getPromise' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_charge'] = $data['total_charge'] ?? null; - $this->container['billable_weight'] = $data['billable_weight'] ?? null; - $this->container['service_type'] = $data['service_type'] ?? null; - $this->container['promise'] = $data['promise'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['total_charge'] === null) { - $invalidProperties[] = "'total_charge' can't be null"; - } - if ($this->container['billable_weight'] === null) { - $invalidProperties[] = "'billable_weight' can't be null"; - } - if ($this->container['service_type'] === null) { - $invalidProperties[] = "'service_type' can't be null"; - } - if ($this->container['promise'] === null) { - $invalidProperties[] = "'promise' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets total_charge - * - * @return \SellingPartnerApi\Model\ShippingV1\Currency - */ - public function getTotalCharge() - { - return $this->container['total_charge']; - } - - /** - * Sets total_charge - * - * @param \SellingPartnerApi\Model\ShippingV1\Currency $total_charge total_charge - * - * @return self - */ - public function setTotalCharge($total_charge) - { - $this->container['total_charge'] = $total_charge; - - return $this; - } - /** - * Gets billable_weight - * - * @return \SellingPartnerApi\Model\ShippingV1\Weight - */ - public function getBillableWeight() - { - return $this->container['billable_weight']; - } - - /** - * Sets billable_weight - * - * @param \SellingPartnerApi\Model\ShippingV1\Weight $billable_weight billable_weight - * - * @return self - */ - public function setBillableWeight($billable_weight) - { - $this->container['billable_weight'] = $billable_weight; - - return $this; - } - /** - * Gets service_type - * - * @return \SellingPartnerApi\Model\ShippingV1\ServiceType - */ - public function getServiceType() - { - return $this->container['service_type']; - } - - /** - * Sets service_type - * - * @param \SellingPartnerApi\Model\ShippingV1\ServiceType $service_type service_type - * - * @return self - */ - public function setServiceType($service_type) - { - $this->container['service_type'] = $service_type; - - return $this; - } - /** - * Gets promise - * - * @return \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet - */ - public function getPromise() - { - return $this->container['promise']; - } - - /** - * Sets promise - * - * @param \SellingPartnerApi\Model\ShippingV1\ShippingPromiseSet $promise promise - * - * @return self - */ - public function setPromise($promise) - { - $this->container['promise'] = $promise; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/ServiceType.php b/lib/Model/ShippingV1/ServiceType.php deleted file mode 100644 index 655b035ea..000000000 --- a/lib/Model/ShippingV1/ServiceType.php +++ /dev/null @@ -1,89 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; - -use SellingPartnerApi\Model\ModelInterface; - -/** - * ServiceType Class Doc Comment - * - * @category Class - * @description The type of shipping service that will be used for the service offering. - * @package SellingPartnerApi - * @group - */ -class ServiceType -{ - public $value; - - /** - * Possible values of this enum - */ - const GROUND = 'Amazon Shipping Ground'; - const STANDARD = 'Amazon Shipping Standard'; - const PREMIUM = 'Amazon Shipping Premium'; - - /** - * Gets allowable values of the enum - * @return string[] - */ - public static function getAllowableEnumValues() - { - $baseVals = [ - self::GROUND, - self::STANDARD, - self::PREMIUM, - ]; - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - $ucVals = array_map(function ($val) { return strtoupper($val); }, $baseVals); - return array_merge($baseVals, $ucVals); - } - - public function __construct($value) - { - if (is_null($value) || !in_array($value, self::getAllowableEnumValues(), true)) { - throw new \InvalidArgumentException(sprintf("Invalid value %s for enum 'ServiceType', must be one of '%s'", $value, implode("', '", self::getAllowableEnumValues()))); - } - - $this->value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV1/Shipment.php b/lib/Model/ShippingV1/Shipment.php deleted file mode 100644 index 06ba9f6fe..000000000 --- a/lib/Model/ShippingV1/Shipment.php +++ /dev/null @@ -1,359 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Shipment Class Doc Comment - * - * @category Class - * @description The shipment related data. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Shipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Shipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'client_reference_id' => 'string', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'ship_to' => '\SellingPartnerApi\Model\ShippingV1\Address', - 'accepted_rate' => '\SellingPartnerApi\Model\ShippingV1\AcceptedRate', - 'shipper' => '\SellingPartnerApi\Model\ShippingV1\Party', - 'containers' => '\SellingPartnerApi\Model\ShippingV1\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'client_reference_id' => null, - 'ship_from' => null, - 'ship_to' => null, - 'accepted_rate' => null, - 'shipper' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'client_reference_id' => 'clientReferenceId', - 'ship_from' => 'shipFrom', - 'ship_to' => 'shipTo', - 'accepted_rate' => 'acceptedRate', - 'shipper' => 'shipper', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'client_reference_id' => 'setClientReferenceId', - 'ship_from' => 'setShipFrom', - 'ship_to' => 'setShipTo', - 'accepted_rate' => 'setAcceptedRate', - 'shipper' => 'setShipper', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'client_reference_id' => 'getClientReferenceId', - 'ship_from' => 'getShipFrom', - 'ship_to' => 'getShipTo', - 'accepted_rate' => 'getAcceptedRate', - 'shipper' => 'getShipper', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['client_reference_id'] = $data['client_reference_id'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['accepted_rate'] = $data['accepted_rate'] ?? null; - $this->container['shipper'] = $data['shipper'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['client_reference_id'] === null) { - $invalidProperties[] = "'client_reference_id' can't be null"; - } - if ((mb_strlen($this->container['client_reference_id']) > 40)) { - $invalidProperties[] = "invalid value for 'client_reference_id', the character length must be smaller than or equal to 40."; - } - - if ($this->container['ship_from'] === null) { - $invalidProperties[] = "'ship_from' can't be null"; - } - if ($this->container['ship_to'] === null) { - $invalidProperties[] = "'ship_to' can't be null"; - } - if ($this->container['containers'] === null) { - $invalidProperties[] = "'containers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets client_reference_id - * - * @return string - */ - public function getClientReferenceId() - { - return $this->container['client_reference_id']; - } - - /** - * Sets client_reference_id - * - * @param string $client_reference_id Client reference id. - * - * @return self - */ - public function setClientReferenceId($client_reference_id) - { - if ((mb_strlen($client_reference_id) > 40)) { - throw new \InvalidArgumentException('invalid length for $client_reference_id when calling Shipment., must be smaller than or equal to 40.'); - } - - $this->container['client_reference_id'] = $client_reference_id; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV1\Address - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV1\Address $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets accepted_rate - * - * @return \SellingPartnerApi\Model\ShippingV1\AcceptedRate|null - */ - public function getAcceptedRate() - { - return $this->container['accepted_rate']; - } - - /** - * Sets accepted_rate - * - * @param \SellingPartnerApi\Model\ShippingV1\AcceptedRate|null $accepted_rate accepted_rate - * - * @return self - */ - public function setAcceptedRate($accepted_rate) - { - $this->container['accepted_rate'] = $accepted_rate; - - return $this; - } - /** - * Gets shipper - * - * @return \SellingPartnerApi\Model\ShippingV1\Party|null - */ - public function getShipper() - { - return $this->container['shipper']; - } - - /** - * Sets shipper - * - * @param \SellingPartnerApi\Model\ShippingV1\Party|null $shipper shipper - * - * @return self - */ - public function setShipper($shipper) - { - $this->container['shipper'] = $shipper; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\ShippingV1\Container[] - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\ShippingV1\Container[] $containers A list of container. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/ShippingPromiseSet.php b/lib/Model/ShippingV1/ShippingPromiseSet.php deleted file mode 100644 index 63eb24384..000000000 --- a/lib/Model/ShippingV1/ShippingPromiseSet.php +++ /dev/null @@ -1,191 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * ShippingPromiseSet Class Doc Comment - * - * @category Class - * @description The promised delivery time and pickup time. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingPromiseSet extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingPromiseSet'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'delivery_window' => '\SellingPartnerApi\Model\ShippingV1\TimeRange', - 'receive_window' => '\SellingPartnerApi\Model\ShippingV1\TimeRange' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'delivery_window' => null, - 'receive_window' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'delivery_window' => 'deliveryWindow', - 'receive_window' => 'receiveWindow' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'delivery_window' => 'setDeliveryWindow', - 'receive_window' => 'setReceiveWindow' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'delivery_window' => 'getDeliveryWindow', - 'receive_window' => 'getReceiveWindow' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['delivery_window'] = $data['delivery_window'] ?? null; - $this->container['receive_window'] = $data['receive_window'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets delivery_window - * - * @return \SellingPartnerApi\Model\ShippingV1\TimeRange|null - */ - public function getDeliveryWindow() - { - return $this->container['delivery_window']; - } - - /** - * Sets delivery_window - * - * @param \SellingPartnerApi\Model\ShippingV1\TimeRange|null $delivery_window delivery_window - * - * @return self - */ - public function setDeliveryWindow($delivery_window) - { - $this->container['delivery_window'] = $delivery_window; - - return $this; - } - /** - * Gets receive_window - * - * @return \SellingPartnerApi\Model\ShippingV1\TimeRange|null - */ - public function getReceiveWindow() - { - return $this->container['receive_window']; - } - - /** - * Sets receive_window - * - * @param \SellingPartnerApi\Model\ShippingV1\TimeRange|null $receive_window receive_window - * - * @return self - */ - public function setReceiveWindow($receive_window) - { - $this->container['receive_window'] = $receive_window; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/TimeRange.php b/lib/Model/ShippingV1/TimeRange.php deleted file mode 100644 index 405333b2a..000000000 --- a/lib/Model/ShippingV1/TimeRange.php +++ /dev/null @@ -1,191 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * TimeRange Class Doc Comment - * - * @category Class - * @description The time range. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class TimeRange extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TimeRange'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start' => 'string', - 'end' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start' => null, - 'end' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start' => 'start', - 'end' => 'end' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start' => 'setStart', - 'end' => 'setEnd' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start' => 'getStart', - 'end' => 'getEnd' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start'] = $data['start'] ?? null; - $this->container['end'] = $data['end'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start - * - * @return string|null - */ - public function getStart() - { - return $this->container['start']; - } - - /** - * Sets start - * - * @param string|null $start The start date and time. Must be in ISO 8601 format. This defaults to the current date and time. - * - * @return self - */ - public function setStart($start) - { - $this->container['start'] = $start; - - return $this; - } - /** - * Gets end - * - * @return string|null - */ - public function getEnd() - { - return $this->container['end']; - } - - /** - * Sets end - * - * @param string|null $end The end date and time. This must come after the value of start. This defaults to the next business day from the start. - * - * @return self - */ - public function setEnd($end) - { - $this->container['end'] = $end; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/TrackingInformation.php b/lib/Model/ShippingV1/TrackingInformation.php deleted file mode 100644 index e35dc892f..000000000 --- a/lib/Model/ShippingV1/TrackingInformation.php +++ /dev/null @@ -1,276 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * TrackingInformation Class Doc Comment - * - * @category Class - * @description The payload schema for the getTrackingInformation operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingInformation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingInformation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_id' => 'string', - 'summary' => '\SellingPartnerApi\Model\ShippingV1\TrackingSummary', - 'promised_delivery_date' => 'string', - 'event_history' => '\SellingPartnerApi\Model\ShippingV1\Event[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_id' => null, - 'summary' => null, - 'promised_delivery_date' => null, - 'event_history' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_id' => 'trackingId', - 'summary' => 'summary', - 'promised_delivery_date' => 'promisedDeliveryDate', - 'event_history' => 'eventHistory' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_id' => 'setTrackingId', - 'summary' => 'setSummary', - 'promised_delivery_date' => 'setPromisedDeliveryDate', - 'event_history' => 'setEventHistory' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_id' => 'getTrackingId', - 'summary' => 'getSummary', - 'promised_delivery_date' => 'getPromisedDeliveryDate', - 'event_history' => 'getEventHistory' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['summary'] = $data['summary'] ?? null; - $this->container['promised_delivery_date'] = $data['promised_delivery_date'] ?? null; - $this->container['event_history'] = $data['event_history'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tracking_id'] === null) { - $invalidProperties[] = "'tracking_id' can't be null"; - } - if ((mb_strlen($this->container['tracking_id']) > 60)) { - $invalidProperties[] = "invalid value for 'tracking_id', the character length must be smaller than or equal to 60."; - } - - if ((mb_strlen($this->container['tracking_id']) < 1)) { - $invalidProperties[] = "invalid value for 'tracking_id', the character length must be bigger than or equal to 1."; - } - - if ($this->container['summary'] === null) { - $invalidProperties[] = "'summary' can't be null"; - } - if ($this->container['promised_delivery_date'] === null) { - $invalidProperties[] = "'promised_delivery_date' can't be null"; - } - if ($this->container['event_history'] === null) { - $invalidProperties[] = "'event_history' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tracking_id - * - * @return string - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string $tracking_id The tracking id generated to each shipment. It contains a series of letters or digits or both. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - if ((mb_strlen($tracking_id) > 60)) { - throw new \InvalidArgumentException('invalid length for $tracking_id when calling TrackingInformation., must be smaller than or equal to 60.'); - } - if ((mb_strlen($tracking_id) < 1)) { - throw new \InvalidArgumentException('invalid length for $tracking_id when calling TrackingInformation., must be bigger than or equal to 1.'); - } - - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets summary - * - * @return \SellingPartnerApi\Model\ShippingV1\TrackingSummary - */ - public function getSummary() - { - return $this->container['summary']; - } - - /** - * Sets summary - * - * @param \SellingPartnerApi\Model\ShippingV1\TrackingSummary $summary summary - * - * @return self - */ - public function setSummary($summary) - { - $this->container['summary'] = $summary; - - return $this; - } - /** - * Gets promised_delivery_date - * - * @return string - */ - public function getPromisedDeliveryDate() - { - return $this->container['promised_delivery_date']; - } - - /** - * Sets promised_delivery_date - * - * @param string $promised_delivery_date The promised delivery date and time of a shipment in ISO 8601 format. - * - * @return self - */ - public function setPromisedDeliveryDate($promised_delivery_date) - { - $this->container['promised_delivery_date'] = $promised_delivery_date; - - return $this; - } - /** - * Gets event_history - * - * @return \SellingPartnerApi\Model\ShippingV1\Event[] - */ - public function getEventHistory() - { - return $this->container['event_history']; - } - - /** - * Sets event_history - * - * @param \SellingPartnerApi\Model\ShippingV1\Event[] $event_history A list of events of a shipment. - * - * @return self - */ - public function setEventHistory($event_history) - { - $this->container['event_history'] = $event_history; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/TrackingSummary.php b/lib/Model/ShippingV1/TrackingSummary.php deleted file mode 100644 index 5596c7b6e..000000000 --- a/lib/Model/ShippingV1/TrackingSummary.php +++ /dev/null @@ -1,177 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * TrackingSummary Class Doc Comment - * - * @category Class - * @description The tracking summary. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingSummary extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingSummary'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['status']) && (mb_strlen($this->container['status']) > 60)) { - $invalidProperties[] = "invalid value for 'status', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['status']) && (mb_strlen($this->container['status']) < 1)) { - $invalidProperties[] = "invalid value for 'status', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status The derived status based on the events in the eventHistory. - * - * @return self - */ - public function setStatus($status) - { - if (!is_null($status) && (mb_strlen($status) > 60)) { - throw new \InvalidArgumentException('invalid length for $status when calling TrackingSummary., must be smaller than or equal to 60.'); - } - if (!is_null($status) && (mb_strlen($status) < 1)) { - throw new \InvalidArgumentException('invalid length for $status when calling TrackingSummary., must be bigger than or equal to 1.'); - } - - $this->container['status'] = $status; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV1/Weight.php b/lib/Model/ShippingV1/Weight.php deleted file mode 100644 index 5783e4b0f..000000000 --- a/lib/Model/ShippingV1/Weight.php +++ /dev/null @@ -1,245 +0,0 @@ -Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\ShippingV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Weight Class Doc Comment - * - * @category Class - * @description The weight. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit' => 'string', - 'value' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit' => 'unit', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit' => 'setUnit', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit' => 'getUnit', - 'value' => 'getValue' - ]; - - - - const UNIT_G = 'g'; - const UNIT_KG = 'kg'; - const UNIT_OZ = 'oz'; - const UNIT_LB = 'lb'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_G, - self::UNIT_KG, - self::UNIT_OZ, - self::UNIT_LB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit'] = $data['unit'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of measurement. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets value - * - * @return float - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float $value The measurement value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Address.php b/lib/Model/ShippingV2/Address.php deleted file mode 100644 index 3904b260c..000000000 --- a/lib/Model/ShippingV2/Address.php +++ /dev/null @@ -1,553 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'company_name' => 'string', - 'state_or_region' => 'string', - 'city' => 'string', - 'country_code' => 'string', - 'postal_code' => 'string', - 'email' => 'string', - 'phone_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'company_name' => null, - 'state_or_region' => null, - 'city' => null, - 'country_code' => null, - 'postal_code' => null, - 'email' => null, - 'phone_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'company_name' => 'companyName', - 'state_or_region' => 'stateOrRegion', - 'city' => 'city', - 'country_code' => 'countryCode', - 'postal_code' => 'postalCode', - 'email' => 'email', - 'phone_number' => 'phoneNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'company_name' => 'setCompanyName', - 'state_or_region' => 'setStateOrRegion', - 'city' => 'setCity', - 'country_code' => 'setCountryCode', - 'postal_code' => 'setPostalCode', - 'email' => 'setEmail', - 'phone_number' => 'setPhoneNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'company_name' => 'getCompanyName', - 'state_or_region' => 'getStateOrRegion', - 'city' => 'getCity', - 'country_code' => 'getCountryCode', - 'postal_code' => 'getPostalCode', - 'email' => 'getEmail', - 'phone_number' => 'getPhoneNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['company_name'] = $data['company_name'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['phone_number'] = $data['phone_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ((mb_strlen($this->container['name']) > 50)) { - $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; - } - - if ((mb_strlen($this->container['name']) < 1)) { - $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; - } - - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ((mb_strlen($this->container['address_line1']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be smaller than or equal to 60."; - } - - if ((mb_strlen($this->container['address_line1']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line1', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line2', the character length must be bigger than or equal to 1."; - } - - if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) > 60)) { - $invalidProperties[] = "invalid value for 'address_line3', the character length must be smaller than or equal to 60."; - } - - if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) < 1)) { - $invalidProperties[] = "invalid value for 'address_line3', the character length must be bigger than or equal to 1."; - } - - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if (!is_null($this->container['email']) && (mb_strlen($this->container['email']) > 64)) { - $invalidProperties[] = "invalid value for 'email', the character length must be smaller than or equal to 64."; - } - - if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 20)) { - $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 20."; - } - - if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) < 1)) { - $invalidProperties[] = "invalid value for 'phone_number', the character length must be bigger than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at the address. - * - * @return self - */ - public function setName($name) - { - if ((mb_strlen($name) > 50)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be smaller than or equal to 50.'); - } - if ((mb_strlen($name) < 1)) { - throw new \InvalidArgumentException('invalid length for $name when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 The first line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - if ((mb_strlen($address_line1) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be smaller than or equal to 60.'); - } - if ((mb_strlen($address_line1) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line1 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - if (!is_null($address_line2) && (mb_strlen($address_line2) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be smaller than or equal to 60.'); - } - if (!is_null($address_line2) && (mb_strlen($address_line2) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line2 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - if (!is_null($address_line3) && (mb_strlen($address_line3) > 60)) { - throw new \InvalidArgumentException('invalid length for $address_line3 when calling Address., must be smaller than or equal to 60.'); - } - if (!is_null($address_line3) && (mb_strlen($address_line3) < 1)) { - throw new \InvalidArgumentException('invalid length for $address_line3 when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets company_name - * - * @return string|null - */ - public function getCompanyName() - { - return $this->container['company_name']; - } - - /** - * Sets company_name - * - * @param string|null $company_name The name of the business or institution associated with the address. - * - * @return self - */ - public function setCompanyName($company_name) - { - $this->container['company_name'] = $company_name; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state, county or region where the person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city or town where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. Follows ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets email - * - * @return string|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string|null $email The email address of the contact associated with the address. - * - * @return self - */ - public function setEmail($email) - { - if (!is_null($email) && (mb_strlen($email) > 64)) { - throw new \InvalidArgumentException('invalid length for $email when calling Address., must be smaller than or equal to 64.'); - } - - $this->container['email'] = $email; - - return $this; - } - /** - * Gets phone_number - * - * @return string|null - */ - public function getPhoneNumber() - { - return $this->container['phone_number']; - } - - /** - * Sets phone_number - * - * @param string|null $phone_number The phone number of the person, business or institution located at that address, including the country calling code. - * - * @return self - */ - public function setPhoneNumber($phone_number) - { - if (!is_null($phone_number) && (mb_strlen($phone_number) > 20)) { - throw new \InvalidArgumentException('invalid length for $phone_number when calling Address., must be smaller than or equal to 20.'); - } - if (!is_null($phone_number) && (mb_strlen($phone_number) < 1)) { - throw new \InvalidArgumentException('invalid length for $phone_number when calling Address., must be bigger than or equal to 1.'); - } - - $this->container['phone_number'] = $phone_number; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/AmazonOrderDetails.php b/lib/Model/ShippingV2/AmazonOrderDetails.php deleted file mode 100644 index 5f81579c0..000000000 --- a/lib/Model/ShippingV2/AmazonOrderDetails.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AmazonOrderDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AmazonOrderDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_id' => 'orderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_id' => 'setOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_id' => 'getOrderId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_id'] = $data['order_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_id'] === null) { - $invalidProperties[] = "'order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_id - * - * @return string - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string $order_id The Amazon order ID associated with the Amazon order fulfilled by this shipment. - * - * @return self - */ - public function setOrderId($order_id) - { - $this->container['order_id'] = $order_id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/AmazonShipmentDetails.php b/lib/Model/ShippingV2/AmazonShipmentDetails.php deleted file mode 100644 index 79967c840..000000000 --- a/lib/Model/ShippingV2/AmazonShipmentDetails.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AmazonShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AmazonShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/AvailableValueAddedServiceGroup.php b/lib/Model/ShippingV2/AvailableValueAddedServiceGroup.php deleted file mode 100644 index f43841748..000000000 --- a/lib/Model/ShippingV2/AvailableValueAddedServiceGroup.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AvailableValueAddedServiceGroup extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AvailableValueAddedServiceGroup'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'group_id' => 'string', - 'group_description' => 'string', - 'is_required' => 'bool', - 'value_added_services' => '\SellingPartnerApi\Model\ShippingV2\ValueAddedService[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'group_id' => null, - 'group_description' => null, - 'is_required' => null, - 'value_added_services' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'group_id' => 'groupId', - 'group_description' => 'groupDescription', - 'is_required' => 'isRequired', - 'value_added_services' => 'valueAddedServices' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'group_id' => 'setGroupId', - 'group_description' => 'setGroupDescription', - 'is_required' => 'setIsRequired', - 'value_added_services' => 'setValueAddedServices' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'group_id' => 'getGroupId', - 'group_description' => 'getGroupDescription', - 'is_required' => 'getIsRequired', - 'value_added_services' => 'getValueAddedServices' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['group_id'] = $data['group_id'] ?? null; - $this->container['group_description'] = $data['group_description'] ?? null; - $this->container['is_required'] = $data['is_required'] ?? null; - $this->container['value_added_services'] = $data['value_added_services'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['group_id'] === null) { - $invalidProperties[] = "'group_id' can't be null"; - } - if ($this->container['group_description'] === null) { - $invalidProperties[] = "'group_description' can't be null"; - } - if ($this->container['is_required'] === null) { - $invalidProperties[] = "'is_required' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets group_id - * - * @return string - */ - public function getGroupId() - { - return $this->container['group_id']; - } - - /** - * Sets group_id - * - * @param string $group_id The type of the value-added service group. - * - * @return self - */ - public function setGroupId($group_id) - { - $this->container['group_id'] = $group_id; - - return $this; - } - /** - * Gets group_description - * - * @return string - */ - public function getGroupDescription() - { - return $this->container['group_description']; - } - - /** - * Sets group_description - * - * @param string $group_description The name of the value-added service group. - * - * @return self - */ - public function setGroupDescription($group_description) - { - $this->container['group_description'] = $group_description; - - return $this; - } - /** - * Gets is_required - * - * @return bool - */ - public function getIsRequired() - { - return $this->container['is_required']; - } - - /** - * Sets is_required - * - * @param bool $is_required When true, one or more of the value-added services listed must be specified. - * - * @return self - */ - public function setIsRequired($is_required) - { - $this->container['is_required'] = $is_required; - - return $this; - } - /** - * Gets value_added_services - * - * @return \SellingPartnerApi\Model\ShippingV2\ValueAddedService[]|null - */ - public function getValueAddedServices() - { - return $this->container['value_added_services']; - } - - /** - * Sets value_added_services - * - * @param \SellingPartnerApi\Model\ShippingV2\ValueAddedService[]|null $value_added_services A list of optional value-added services available for purchase with a shipping service offering. - * - * @return self - */ - public function setValueAddedServices($value_added_services) - { - $this->container['value_added_services'] = $value_added_services; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/CancelShipmentResponse.php b/lib/Model/ShippingV2/CancelShipmentResponse.php deleted file mode 100644 index 98091175a..000000000 --- a/lib/Model/ShippingV2/CancelShipmentResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CancelShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CancelShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return object|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param object|null $payload The payload for the cancelShipment operation. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/ChannelDetails.php b/lib/Model/ShippingV2/ChannelDetails.php deleted file mode 100644 index bde0e28b7..000000000 --- a/lib/Model/ShippingV2/ChannelDetails.php +++ /dev/null @@ -1,267 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChannelDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChannelDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'channel_type' => 'string', - 'amazon_order_details' => '\SellingPartnerApi\Model\ShippingV2\AmazonOrderDetails', - 'amazon_shipment_details' => '\SellingPartnerApi\Model\ShippingV2\AmazonShipmentDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'channel_type' => null, - 'amazon_order_details' => null, - 'amazon_shipment_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'channel_type' => 'channelType', - 'amazon_order_details' => 'amazonOrderDetails', - 'amazon_shipment_details' => 'amazonShipmentDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'channel_type' => 'setChannelType', - 'amazon_order_details' => 'setAmazonOrderDetails', - 'amazon_shipment_details' => 'setAmazonShipmentDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'channel_type' => 'getChannelType', - 'amazon_order_details' => 'getAmazonOrderDetails', - 'amazon_shipment_details' => 'getAmazonShipmentDetails' - ]; - - - - const CHANNEL_TYPE_AMAZON = 'AMAZON'; - const CHANNEL_TYPE_EXTERNAL = 'EXTERNAL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getChannelTypeAllowableValues() - { - $baseVals = [ - self::CHANNEL_TYPE_AMAZON, - self::CHANNEL_TYPE_EXTERNAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['channel_type'] = $data['channel_type'] ?? null; - $this->container['amazon_order_details'] = $data['amazon_order_details'] ?? null; - $this->container['amazon_shipment_details'] = $data['amazon_shipment_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['channel_type'] === null) { - $invalidProperties[] = "'channel_type' can't be null"; - } - $allowedValues = $this->getChannelTypeAllowableValues(); - if ( - !is_null($this->container['channel_type']) && - !in_array(strtoupper($this->container['channel_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'channel_type', must be one of '%s'", - $this->container['channel_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets channel_type - * - * @return string - */ - public function getChannelType() - { - return $this->container['channel_type']; - } - - /** - * Sets channel_type - * - * @param string $channel_type The shipment source channel type. - * - * @return self - */ - public function setChannelType($channel_type) - { - $allowedValues = $this->getChannelTypeAllowableValues(); - if (!in_array(strtoupper($channel_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'channel_type', must be one of '%s'", - $channel_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['channel_type'] = $channel_type; - - return $this; - } - /** - * Gets amazon_order_details - * - * @return \SellingPartnerApi\Model\ShippingV2\AmazonOrderDetails|null - */ - public function getAmazonOrderDetails() - { - return $this->container['amazon_order_details']; - } - - /** - * Sets amazon_order_details - * - * @param \SellingPartnerApi\Model\ShippingV2\AmazonOrderDetails|null $amazon_order_details amazon_order_details - * - * @return self - */ - public function setAmazonOrderDetails($amazon_order_details) - { - $this->container['amazon_order_details'] = $amazon_order_details; - - return $this; - } - /** - * Gets amazon_shipment_details - * - * @return \SellingPartnerApi\Model\ShippingV2\AmazonShipmentDetails|null - */ - public function getAmazonShipmentDetails() - { - return $this->container['amazon_shipment_details']; - } - - /** - * Sets amazon_shipment_details - * - * @param \SellingPartnerApi\Model\ShippingV2\AmazonShipmentDetails|null $amazon_shipment_details amazon_shipment_details - * - * @return self - */ - public function setAmazonShipmentDetails($amazon_shipment_details) - { - $this->container['amazon_shipment_details'] = $amazon_shipment_details; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/ChargeComponent.php b/lib/Model/ShippingV2/ChargeComponent.php deleted file mode 100644 index 4bff61001..000000000 --- a/lib/Model/ShippingV2/ChargeComponent.php +++ /dev/null @@ -1,235 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeComponent extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeComponent'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => '\SellingPartnerApi\Model\ShippingV2\Currency', - 'charge_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'charge_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'charge_type' => 'chargeType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'charge_type' => 'setChargeType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'charge_type' => 'getChargeType' - ]; - - - - const CHARGE_TYPE_TAX = 'TAX'; - const CHARGE_TYPE_DISCOUNT = 'DISCOUNT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getChargeTypeAllowableValues() - { - $baseVals = [ - self::CHARGE_TYPE_TAX, - self::CHARGE_TYPE_DISCOUNT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['charge_type'] = $data['charge_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getChargeTypeAllowableValues(); - if ( - !is_null($this->container['charge_type']) && - !in_array(strtoupper($this->container['charge_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'charge_type', must be one of '%s'", - $this->container['charge_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency|null $amount amount - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets charge_type - * - * @return string|null - */ - public function getChargeType() - { - return $this->container['charge_type']; - } - - /** - * Sets charge_type - * - * @param string|null $charge_type The type of charge. - * - * @return self - */ - public function setChargeType($charge_type) - { - $allowedValues = $this->getChargeTypeAllowableValues(); - if (!is_null($charge_type) &&!in_array(strtoupper($charge_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'charge_type', must be one of '%s'", - $charge_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['charge_type'] = $charge_type; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/CollectOnDelivery.php b/lib/Model/ShippingV2/CollectOnDelivery.php deleted file mode 100644 index 142f96b9c..000000000 --- a/lib/Model/ShippingV2/CollectOnDelivery.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CollectOnDelivery extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CollectOnDelivery'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => '\SellingPartnerApi\Model\ShippingV2\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency $amount amount - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Currency.php b/lib/Model/ShippingV2/Currency.php deleted file mode 100644 index 0827cf53b..000000000 --- a/lib/Model/ShippingV2/Currency.php +++ /dev/null @@ -1,212 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Currency extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Currency'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'value' => 'float', - 'unit' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'value' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'value' => 'value', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'value' => 'setValue', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'value' => 'getValue', - 'unit' => 'getUnit' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['value'] = $data['value'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - if ((mb_strlen($this->container['unit']) > 3)) { - $invalidProperties[] = "invalid value for 'unit', the character length must be smaller than or equal to 3."; - } - - if ((mb_strlen($this->container['unit']) < 3)) { - $invalidProperties[] = "invalid value for 'unit', the character length must be bigger than or equal to 3."; - } - - return $invalidProperties; - } - - - /** - * Gets value - * - * @return float - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float $value The monetary value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The ISO 4217 format 3-character currency code. - * - * @return self - */ - public function setUnit($unit) - { - if ((mb_strlen($unit) > 3)) { - throw new \InvalidArgumentException('invalid length for $unit when calling Currency., must be smaller than or equal to 3.'); - } - if ((mb_strlen($unit) < 3)) { - throw new \InvalidArgumentException('invalid length for $unit when calling Currency., must be bigger than or equal to 3.'); - } - - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Dimensions.php b/lib/Model/ShippingV2/Dimensions.php deleted file mode 100644 index 16ffb5973..000000000 --- a/lib/Model/ShippingV2/Dimensions.php +++ /dev/null @@ -1,305 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'float', - 'width' => 'float', - 'height' => 'float', - 'unit' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'height' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit' => 'getUnit' - ]; - - - - const UNIT_INCH = 'INCH'; - const UNIT_CENTIMETER = 'CENTIMETER'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_INCH, - self::UNIT_CENTIMETER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return float - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param float $length The length of the package. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return float - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param float $width The width of the package. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return float - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param float $height The height of the package. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of measurement. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DirectFulfillmentItemIdentifiers.php b/lib/Model/ShippingV2/DirectFulfillmentItemIdentifiers.php deleted file mode 100644 index f73b56018..000000000 --- a/lib/Model/ShippingV2/DirectFulfillmentItemIdentifiers.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DirectFulfillmentItemIdentifiers extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DirectFulfillmentItemIdentifiers'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'line_item_id' => 'string', - 'piece_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'line_item_id' => null, - 'piece_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'line_item_id' => 'lineItemID', - 'piece_number' => 'pieceNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'line_item_id' => 'setLineItemId', - 'piece_number' => 'setPieceNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'line_item_id' => 'getLineItemId', - 'piece_number' => 'getPieceNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['line_item_id'] = $data['line_item_id'] ?? null; - $this->container['piece_number'] = $data['piece_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['line_item_id'] === null) { - $invalidProperties[] = "'line_item_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets line_item_id - * - * @return string - */ - public function getLineItemId() - { - return $this->container['line_item_id']; - } - - /** - * Sets line_item_id - * - * @param string $line_item_id A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped. - * - * @return self - */ - public function setLineItemId($line_item_id) - { - $this->container['line_item_id'] = $line_item_id; - - return $this; - } - /** - * Gets piece_number - * - * @return string|null - */ - public function getPieceNumber() - { - return $this->container['piece_number']; - } - - /** - * Sets piece_number - * - * @param string|null $piece_number A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1. - * - * @return self - */ - public function setPieceNumber($piece_number) - { - $this->container['piece_number'] = $piece_number; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DirectPurchaseRequest.php b/lib/Model/ShippingV2/DirectPurchaseRequest.php deleted file mode 100644 index eac3f5159..000000000 --- a/lib/Model/ShippingV2/DirectPurchaseRequest.php +++ /dev/null @@ -1,310 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DirectPurchaseRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DirectPurchaseRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ship_to' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'return_to' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'packages' => '\SellingPartnerApi\Model\ShippingV2\Package[]', - 'channel_details' => '\SellingPartnerApi\Model\ShippingV2\ChannelDetails', - 'label_specifications' => '\SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ship_to' => null, - 'ship_from' => null, - 'return_to' => null, - 'packages' => null, - 'channel_details' => null, - 'label_specifications' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ship_to' => 'shipTo', - 'ship_from' => 'shipFrom', - 'return_to' => 'returnTo', - 'packages' => 'packages', - 'channel_details' => 'channelDetails', - 'label_specifications' => 'labelSpecifications' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ship_to' => 'setShipTo', - 'ship_from' => 'setShipFrom', - 'return_to' => 'setReturnTo', - 'packages' => 'setPackages', - 'channel_details' => 'setChannelDetails', - 'label_specifications' => 'setLabelSpecifications' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ship_to' => 'getShipTo', - 'ship_from' => 'getShipFrom', - 'return_to' => 'getReturnTo', - 'packages' => 'getPackages', - 'channel_details' => 'getChannelDetails', - 'label_specifications' => 'getLabelSpecifications' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['return_to'] = $data['return_to'] ?? null; - $this->container['packages'] = $data['packages'] ?? null; - $this->container['channel_details'] = $data['channel_details'] ?? null; - $this->container['label_specifications'] = $data['label_specifications'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['channel_details'] === null) { - $invalidProperties[] = "'channel_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV2\Address|null - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV2\Address|null $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV2\Address|null - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV2\Address|null $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets return_to - * - * @return \SellingPartnerApi\Model\ShippingV2\Address|null - */ - public function getReturnTo() - { - return $this->container['return_to']; - } - - /** - * Sets return_to - * - * @param \SellingPartnerApi\Model\ShippingV2\Address|null $return_to return_to - * - * @return self - */ - public function setReturnTo($return_to) - { - $this->container['return_to'] = $return_to; - - return $this; - } - /** - * Gets packages - * - * @return \SellingPartnerApi\Model\ShippingV2\Package[]|null - */ - public function getPackages() - { - return $this->container['packages']; - } - - /** - * Sets packages - * - * @param \SellingPartnerApi\Model\ShippingV2\Package[]|null $packages A list of packages to be shipped through a shipping service offering. - * - * @return self - */ - public function setPackages($packages) - { - $this->container['packages'] = $packages; - - return $this; - } - /** - * Gets channel_details - * - * @return \SellingPartnerApi\Model\ShippingV2\ChannelDetails - */ - public function getChannelDetails() - { - return $this->container['channel_details']; - } - - /** - * Sets channel_details - * - * @param \SellingPartnerApi\Model\ShippingV2\ChannelDetails $channel_details channel_details - * - * @return self - */ - public function setChannelDetails($channel_details) - { - $this->container['channel_details'] = $channel_details; - - return $this; - } - /** - * Gets label_specifications - * - * @return \SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification|null - */ - public function getLabelSpecifications() - { - return $this->container['label_specifications']; - } - - /** - * Sets label_specifications - * - * @param \SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification|null $label_specifications label_specifications - * - * @return self - */ - public function setLabelSpecifications($label_specifications) - { - $this->container['label_specifications'] = $label_specifications; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DirectPurchaseResponse.php b/lib/Model/ShippingV2/DirectPurchaseResponse.php deleted file mode 100644 index 3ceddff38..000000000 --- a/lib/Model/ShippingV2/DirectPurchaseResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DirectPurchaseResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DirectPurchaseResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV2\DirectPurchaseResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV2\DirectPurchaseResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectPurchaseResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DirectPurchaseResult.php b/lib/Model/ShippingV2/DirectPurchaseResult.php deleted file mode 100644 index 835f4a962..000000000 --- a/lib/Model/ShippingV2/DirectPurchaseResult.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DirectPurchaseResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DirectPurchaseResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'package_document_detail_list' => '\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'package_document_detail_list' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'package_document_detail_list' => 'packageDocumentDetailList' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'package_document_detail_list' => 'setPackageDocumentDetailList' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'package_document_detail_list' => 'getPackageDocumentDetailList' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['package_document_detail_list'] = $data['package_document_detail_list'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier provided by a shipping service. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets package_document_detail_list - * - * @return \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]|null - */ - public function getPackageDocumentDetailList() - { - return $this->container['package_document_detail_list']; - } - - /** - * Sets package_document_detail_list - * - * @param \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]|null $package_document_detail_list A list of post-purchase details about a package that will be shipped using a shipping service. - * - * @return self - */ - public function setPackageDocumentDetailList($package_document_detail_list) - { - $this->container['package_document_detail_list'] = $package_document_detail_list; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DocumentFormat.php b/lib/Model/ShippingV2/DocumentFormat.php deleted file mode 100644 index cfe1a4833..000000000 --- a/lib/Model/ShippingV2/DocumentFormat.php +++ /dev/null @@ -1,89 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/DocumentSize.php b/lib/Model/ShippingV2/DocumentSize.php deleted file mode 100644 index ba017004d..000000000 --- a/lib/Model/ShippingV2/DocumentSize.php +++ /dev/null @@ -1,273 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class DocumentSize extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'DocumentSize'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'width' => 'float', - 'length' => 'float', - 'unit' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'width' => null, - 'length' => null, - 'unit' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'width' => 'width', - 'length' => 'length', - 'unit' => 'unit' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'width' => 'setWidth', - 'length' => 'setLength', - 'unit' => 'setUnit' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'width' => 'getWidth', - 'length' => 'getLength', - 'unit' => 'getUnit' - ]; - - - - const UNIT_INCH = 'INCH'; - const UNIT_CENTIMETER = 'CENTIMETER'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_INCH, - self::UNIT_CENTIMETER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['width'] = $data['width'] ?? null; - $this->container['length'] = $data['length'] ?? null; - $this->container['unit'] = $data['unit'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets width - * - * @return float - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param float $width The width of the document measured in the units specified. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets length - * - * @return float - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param float $length The length of the document measured in the units specified. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of measurement. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/DocumentType.php b/lib/Model/ShippingV2/DocumentType.php deleted file mode 100644 index 22fa7eb4b..000000000 --- a/lib/Model/ShippingV2/DocumentType.php +++ /dev/null @@ -1,91 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/Error.php b/lib/Model/ShippingV2/Error.php deleted file mode 100644 index 906830f12..000000000 --- a/lib/Model/ShippingV2/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/ErrorList.php b/lib/Model/ShippingV2/ErrorList.php deleted file mode 100644 index a050509cb..000000000 --- a/lib/Model/ShippingV2/ErrorList.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\ShippingV2\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\ShippingV2\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\ShippingV2\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Event.php b/lib/Model/ShippingV2/Event.php deleted file mode 100644 index 3e91a9f24..000000000 --- a/lib/Model/ShippingV2/Event.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Event extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Event'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'event_code' => '\SellingPartnerApi\Model\ShippingV2\EventCode', - 'location' => '\SellingPartnerApi\Model\ShippingV2\Location', - 'event_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'event_code' => null, - 'location' => null, - 'event_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'event_code' => 'eventCode', - 'location' => 'location', - 'event_time' => 'eventTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'event_code' => 'setEventCode', - 'location' => 'setLocation', - 'event_time' => 'setEventTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'event_code' => 'getEventCode', - 'location' => 'getLocation', - 'event_time' => 'getEventTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['event_code'] = $data['event_code'] ?? null; - $this->container['location'] = $data['location'] ?? null; - $this->container['event_time'] = $data['event_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['event_code'] === null) { - $invalidProperties[] = "'event_code' can't be null"; - } - if ($this->container['event_time'] === null) { - $invalidProperties[] = "'event_time' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets event_code - * - * @return \SellingPartnerApi\Model\ShippingV2\EventCode - */ - public function getEventCode() - { - return $this->container['event_code']; - } - - /** - * Sets event_code - * - * @param \SellingPartnerApi\Model\ShippingV2\EventCode $event_code event_code - * - * @return self - */ - public function setEventCode($event_code) - { - $this->container['event_code'] = $event_code; - - return $this; - } - /** - * Gets location - * - * @return \SellingPartnerApi\Model\ShippingV2\Location|null - */ - public function getLocation() - { - return $this->container['location']; - } - - /** - * Sets location - * - * @param \SellingPartnerApi\Model\ShippingV2\Location|null $location location - * - * @return self - */ - public function setLocation($location) - { - $this->container['location'] = $location; - - return $this; - } - /** - * Gets event_time - * - * @return string - */ - public function getEventTime() - { - return $this->container['event_time']; - } - - /** - * Sets event_time - * - * @param string $event_time The ISO 8601 formatted timestamp of the event. - * - * @return self - */ - public function setEventTime($event_time) - { - $this->container['event_time'] = $event_time; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/EventCode.php b/lib/Model/ShippingV2/EventCode.php deleted file mode 100644 index 1491f6eaf..000000000 --- a/lib/Model/ShippingV2/EventCode.php +++ /dev/null @@ -1,105 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/GetAdditionalInputsResponse.php b/lib/Model/ShippingV2/GetAdditionalInputsResponse.php deleted file mode 100644 index e9d712361..000000000 --- a/lib/Model/ShippingV2/GetAdditionalInputsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetAdditionalInputsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetAdditionalInputsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return object|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param object|null $payload The JSON schema to use to provide additional inputs when required to purchase a shipping offering. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetRatesRequest.php b/lib/Model/ShippingV2/GetRatesRequest.php deleted file mode 100644 index 8e6e34da2..000000000 --- a/lib/Model/ShippingV2/GetRatesRequest.php +++ /dev/null @@ -1,374 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ship_to' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'ship_from' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'return_to' => '\SellingPartnerApi\Model\ShippingV2\Address', - 'ship_date' => 'string', - 'packages' => '\SellingPartnerApi\Model\ShippingV2\Package[]', - 'value_added_services' => '\SellingPartnerApi\Model\ShippingV2\ValueAddedServiceDetails', - 'tax_details' => '\SellingPartnerApi\Model\ShippingV2\TaxDetail[]', - 'channel_details' => '\SellingPartnerApi\Model\ShippingV2\ChannelDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ship_to' => null, - 'ship_from' => null, - 'return_to' => null, - 'ship_date' => null, - 'packages' => null, - 'value_added_services' => null, - 'tax_details' => null, - 'channel_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ship_to' => 'shipTo', - 'ship_from' => 'shipFrom', - 'return_to' => 'returnTo', - 'ship_date' => 'shipDate', - 'packages' => 'packages', - 'value_added_services' => 'valueAddedServices', - 'tax_details' => 'taxDetails', - 'channel_details' => 'channelDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ship_to' => 'setShipTo', - 'ship_from' => 'setShipFrom', - 'return_to' => 'setReturnTo', - 'ship_date' => 'setShipDate', - 'packages' => 'setPackages', - 'value_added_services' => 'setValueAddedServices', - 'tax_details' => 'setTaxDetails', - 'channel_details' => 'setChannelDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ship_to' => 'getShipTo', - 'ship_from' => 'getShipFrom', - 'return_to' => 'getReturnTo', - 'ship_date' => 'getShipDate', - 'packages' => 'getPackages', - 'value_added_services' => 'getValueAddedServices', - 'tax_details' => 'getTaxDetails', - 'channel_details' => 'getChannelDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ship_to'] = $data['ship_to'] ?? null; - $this->container['ship_from'] = $data['ship_from'] ?? null; - $this->container['return_to'] = $data['return_to'] ?? null; - $this->container['ship_date'] = $data['ship_date'] ?? null; - $this->container['packages'] = $data['packages'] ?? null; - $this->container['value_added_services'] = $data['value_added_services'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['channel_details'] = $data['channel_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['ship_from'] === null) { - $invalidProperties[] = "'ship_from' can't be null"; - } - if ($this->container['packages'] === null) { - $invalidProperties[] = "'packages' can't be null"; - } - if ($this->container['channel_details'] === null) { - $invalidProperties[] = "'channel_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets ship_to - * - * @return \SellingPartnerApi\Model\ShippingV2\Address|null - */ - public function getShipTo() - { - return $this->container['ship_to']; - } - - /** - * Sets ship_to - * - * @param \SellingPartnerApi\Model\ShippingV2\Address|null $ship_to ship_to - * - * @return self - */ - public function setShipTo($ship_to) - { - $this->container['ship_to'] = $ship_to; - - return $this; - } - /** - * Gets ship_from - * - * @return \SellingPartnerApi\Model\ShippingV2\Address - */ - public function getShipFrom() - { - return $this->container['ship_from']; - } - - /** - * Sets ship_from - * - * @param \SellingPartnerApi\Model\ShippingV2\Address $ship_from ship_from - * - * @return self - */ - public function setShipFrom($ship_from) - { - $this->container['ship_from'] = $ship_from; - - return $this; - } - /** - * Gets return_to - * - * @return \SellingPartnerApi\Model\ShippingV2\Address|null - */ - public function getReturnTo() - { - return $this->container['return_to']; - } - - /** - * Sets return_to - * - * @param \SellingPartnerApi\Model\ShippingV2\Address|null $return_to return_to - * - * @return self - */ - public function setReturnTo($return_to) - { - $this->container['return_to'] = $return_to; - - return $this; - } - /** - * Gets ship_date - * - * @return string|null - */ - public function getShipDate() - { - return $this->container['ship_date']; - } - - /** - * Sets ship_date - * - * @param string|null $ship_date The ship date and time (the requested pickup). This defaults to the current date and time. - * - * @return self - */ - public function setShipDate($ship_date) - { - $this->container['ship_date'] = $ship_date; - - return $this; - } - /** - * Gets packages - * - * @return \SellingPartnerApi\Model\ShippingV2\Package[] - */ - public function getPackages() - { - return $this->container['packages']; - } - - /** - * Sets packages - * - * @param \SellingPartnerApi\Model\ShippingV2\Package[] $packages A list of packages to be shipped through a shipping service offering. - * - * @return self - */ - public function setPackages($packages) - { - $this->container['packages'] = $packages; - - return $this; - } - /** - * Gets value_added_services - * - * @return \SellingPartnerApi\Model\ShippingV2\ValueAddedServiceDetails|null - */ - public function getValueAddedServices() - { - return $this->container['value_added_services']; - } - - /** - * Sets value_added_services - * - * @param \SellingPartnerApi\Model\ShippingV2\ValueAddedServiceDetails|null $value_added_services value_added_services - * - * @return self - */ - public function setValueAddedServices($value_added_services) - { - $this->container['value_added_services'] = $value_added_services; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\ShippingV2\TaxDetail[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\ShippingV2\TaxDetail[]|null $tax_details A list of tax detail information. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets channel_details - * - * @return \SellingPartnerApi\Model\ShippingV2\ChannelDetails - */ - public function getChannelDetails() - { - return $this->container['channel_details']; - } - - /** - * Sets channel_details - * - * @param \SellingPartnerApi\Model\ShippingV2\ChannelDetails $channel_details channel_details - * - * @return self - */ - public function setChannelDetails($channel_details) - { - $this->container['channel_details'] = $channel_details; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetRatesResponse.php b/lib/Model/ShippingV2/GetRatesResponse.php deleted file mode 100644 index 4db42fea6..000000000 --- a/lib/Model/ShippingV2/GetRatesResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV2\GetRatesResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV2\GetRatesResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV2\GetRatesResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetRatesResult.php b/lib/Model/ShippingV2/GetRatesResult.php deleted file mode 100644 index 60df02364..000000000 --- a/lib/Model/ShippingV2/GetRatesResult.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetRatesResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetRatesResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'request_token' => 'string', - 'rates' => '\SellingPartnerApi\Model\ShippingV2\Rate[]', - 'ineligible_rates' => '\SellingPartnerApi\Model\ShippingV2\IneligibleRate[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'request_token' => null, - 'rates' => null, - 'ineligible_rates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'request_token' => 'requestToken', - 'rates' => 'rates', - 'ineligible_rates' => 'ineligibleRates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'request_token' => 'setRequestToken', - 'rates' => 'setRates', - 'ineligible_rates' => 'setIneligibleRates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'request_token' => 'getRequestToken', - 'rates' => 'getRates', - 'ineligible_rates' => 'getIneligibleRates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request_token'] = $data['request_token'] ?? null; - $this->container['rates'] = $data['rates'] ?? null; - $this->container['ineligible_rates'] = $data['ineligible_rates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['request_token'] === null) { - $invalidProperties[] = "'request_token' can't be null"; - } - if ($this->container['rates'] === null) { - $invalidProperties[] = "'rates' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets request_token - * - * @return string - */ - public function getRequestToken() - { - return $this->container['request_token']; - } - - /** - * Sets request_token - * - * @param string $request_token A unique token generated to identify a getRates operation. - * - * @return self - */ - public function setRequestToken($request_token) - { - $this->container['request_token'] = $request_token; - - return $this; - } - /** - * Gets rates - * - * @return \SellingPartnerApi\Model\ShippingV2\Rate[] - */ - public function getRates() - { - return $this->container['rates']; - } - - /** - * Sets rates - * - * @param \SellingPartnerApi\Model\ShippingV2\Rate[] $rates A list of eligible shipping service offerings. - * - * @return self - */ - public function setRates($rates) - { - $this->container['rates'] = $rates; - - return $this; - } - /** - * Gets ineligible_rates - * - * @return \SellingPartnerApi\Model\ShippingV2\IneligibleRate[]|null - */ - public function getIneligibleRates() - { - return $this->container['ineligible_rates']; - } - - /** - * Sets ineligible_rates - * - * @param \SellingPartnerApi\Model\ShippingV2\IneligibleRate[]|null $ineligible_rates A list of ineligible shipping service offerings. - * - * @return self - */ - public function setIneligibleRates($ineligible_rates) - { - $this->container['ineligible_rates'] = $ineligible_rates; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetShipmentDocumentsResponse.php b/lib/Model/ShippingV2/GetShipmentDocumentsResponse.php deleted file mode 100644 index 2395e3041..000000000 --- a/lib/Model/ShippingV2/GetShipmentDocumentsResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentDocumentsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentDocumentsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV2\GetShipmentDocumentsResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetShipmentDocumentsResult.php b/lib/Model/ShippingV2/GetShipmentDocumentsResult.php deleted file mode 100644 index 34c52ee8d..000000000 --- a/lib/Model/ShippingV2/GetShipmentDocumentsResult.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentDocumentsResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentDocumentsResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'package_document_detail' => '\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'package_document_detail' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'package_document_detail' => 'packageDocumentDetail' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'package_document_detail' => 'setPackageDocumentDetail' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'package_document_detail' => 'getPackageDocumentDetail' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['package_document_detail'] = $data['package_document_detail'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['package_document_detail'] === null) { - $invalidProperties[] = "'package_document_detail' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier provided by a shipping service. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets package_document_detail - * - * @return \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail - */ - public function getPackageDocumentDetail() - { - return $this->container['package_document_detail']; - } - - /** - * Sets package_document_detail - * - * @param \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail $package_document_detail package_document_detail - * - * @return self - */ - public function setPackageDocumentDetail($package_document_detail) - { - $this->container['package_document_detail'] = $package_document_detail; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetTrackingResponse.php b/lib/Model/ShippingV2/GetTrackingResponse.php deleted file mode 100644 index ee1e5b840..000000000 --- a/lib/Model/ShippingV2/GetTrackingResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTrackingResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTrackingResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV2\GetTrackingResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV2\GetTrackingResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV2\GetTrackingResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/GetTrackingResult.php b/lib/Model/ShippingV2/GetTrackingResult.php deleted file mode 100644 index ca7ed8bae..000000000 --- a/lib/Model/ShippingV2/GetTrackingResult.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTrackingResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTrackingResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_id' => 'string', - 'alternate_leg_tracking_id' => 'string', - 'event_history' => '\SellingPartnerApi\Model\ShippingV2\Event[]', - 'promised_delivery_date' => 'string', - 'summary' => '\SellingPartnerApi\Model\ShippingV2\TrackingSummary' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_id' => null, - 'alternate_leg_tracking_id' => null, - 'event_history' => null, - 'promised_delivery_date' => null, - 'summary' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_id' => 'trackingId', - 'alternate_leg_tracking_id' => 'alternateLegTrackingId', - 'event_history' => 'eventHistory', - 'promised_delivery_date' => 'promisedDeliveryDate', - 'summary' => 'summary' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_id' => 'setTrackingId', - 'alternate_leg_tracking_id' => 'setAlternateLegTrackingId', - 'event_history' => 'setEventHistory', - 'promised_delivery_date' => 'setPromisedDeliveryDate', - 'summary' => 'setSummary' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_id' => 'getTrackingId', - 'alternate_leg_tracking_id' => 'getAlternateLegTrackingId', - 'event_history' => 'getEventHistory', - 'promised_delivery_date' => 'getPromisedDeliveryDate', - 'summary' => 'getSummary' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['alternate_leg_tracking_id'] = $data['alternate_leg_tracking_id'] ?? null; - $this->container['event_history'] = $data['event_history'] ?? null; - $this->container['promised_delivery_date'] = $data['promised_delivery_date'] ?? null; - $this->container['summary'] = $data['summary'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tracking_id'] === null) { - $invalidProperties[] = "'tracking_id' can't be null"; - } - if ($this->container['alternate_leg_tracking_id'] === null) { - $invalidProperties[] = "'alternate_leg_tracking_id' can't be null"; - } - if ($this->container['event_history'] === null) { - $invalidProperties[] = "'event_history' can't be null"; - } - if ($this->container['promised_delivery_date'] === null) { - $invalidProperties[] = "'promised_delivery_date' can't be null"; - } - if ($this->container['summary'] === null) { - $invalidProperties[] = "'summary' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tracking_id - * - * @return string - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string $tracking_id The carrier generated identifier for a package in a purchased shipment. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets alternate_leg_tracking_id - * - * @return string - */ - public function getAlternateLegTrackingId() - { - return $this->container['alternate_leg_tracking_id']; - } - - /** - * Sets alternate_leg_tracking_id - * - * @param string $alternate_leg_tracking_id The carrier generated reverse identifier for a returned package in a purchased shipment. - * - * @return self - */ - public function setAlternateLegTrackingId($alternate_leg_tracking_id) - { - $this->container['alternate_leg_tracking_id'] = $alternate_leg_tracking_id; - - return $this; - } - /** - * Gets event_history - * - * @return \SellingPartnerApi\Model\ShippingV2\Event[] - */ - public function getEventHistory() - { - return $this->container['event_history']; - } - - /** - * Sets event_history - * - * @param \SellingPartnerApi\Model\ShippingV2\Event[] $event_history A list of tracking events. - * - * @return self - */ - public function setEventHistory($event_history) - { - $this->container['event_history'] = $event_history; - - return $this; - } - /** - * Gets promised_delivery_date - * - * @return string - */ - public function getPromisedDeliveryDate() - { - return $this->container['promised_delivery_date']; - } - - /** - * Sets promised_delivery_date - * - * @param string $promised_delivery_date The date and time by which the shipment is promised to be delivered. - * - * @return self - */ - public function setPromisedDeliveryDate($promised_delivery_date) - { - $this->container['promised_delivery_date'] = $promised_delivery_date; - - return $this; - } - /** - * Gets summary - * - * @return \SellingPartnerApi\Model\ShippingV2\TrackingSummary - */ - public function getSummary() - { - return $this->container['summary']; - } - - /** - * Sets summary - * - * @param \SellingPartnerApi\Model\ShippingV2\TrackingSummary $summary summary - * - * @return self - */ - public function setSummary($summary) - { - $this->container['summary'] = $summary; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/IneligibilityReason.php b/lib/Model/ShippingV2/IneligibilityReason.php deleted file mode 100644 index e90efd87a..000000000 --- a/lib/Model/ShippingV2/IneligibilityReason.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IneligibilityReason extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IneligibilityReason'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => '\SellingPartnerApi\Model\ShippingV2\IneligibilityReasonCode', - 'message' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return \SellingPartnerApi\Model\ShippingV2\IneligibilityReasonCode - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param \SellingPartnerApi\Model\ShippingV2\IneligibilityReasonCode $code code - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message The ineligibility reason. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/IneligibilityReasonCode.php b/lib/Model/ShippingV2/IneligibilityReasonCode.php deleted file mode 100644 index c59e44a41..000000000 --- a/lib/Model/ShippingV2/IneligibilityReasonCode.php +++ /dev/null @@ -1,103 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/IneligibleRate.php b/lib/Model/ShippingV2/IneligibleRate.php deleted file mode 100644 index e962791c0..000000000 --- a/lib/Model/ShippingV2/IneligibleRate.php +++ /dev/null @@ -1,293 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class IneligibleRate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'IneligibleRate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'service_id' => 'string', - 'service_name' => 'string', - 'carrier_name' => 'string', - 'carrier_id' => 'string', - 'ineligibility_reasons' => '\SellingPartnerApi\Model\ShippingV2\IneligibilityReason[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'service_id' => null, - 'service_name' => null, - 'carrier_name' => null, - 'carrier_id' => null, - 'ineligibility_reasons' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'service_id' => 'serviceId', - 'service_name' => 'serviceName', - 'carrier_name' => 'carrierName', - 'carrier_id' => 'carrierId', - 'ineligibility_reasons' => 'ineligibilityReasons' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'service_id' => 'setServiceId', - 'service_name' => 'setServiceName', - 'carrier_name' => 'setCarrierName', - 'carrier_id' => 'setCarrierId', - 'ineligibility_reasons' => 'setIneligibilityReasons' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'service_id' => 'getServiceId', - 'service_name' => 'getServiceName', - 'carrier_name' => 'getCarrierName', - 'carrier_id' => 'getCarrierId', - 'ineligibility_reasons' => 'getIneligibilityReasons' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['service_name'] = $data['service_name'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['carrier_id'] = $data['carrier_id'] ?? null; - $this->container['ineligibility_reasons'] = $data['ineligibility_reasons'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['service_id'] === null) { - $invalidProperties[] = "'service_id' can't be null"; - } - if ($this->container['service_name'] === null) { - $invalidProperties[] = "'service_name' can't be null"; - } - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['carrier_id'] === null) { - $invalidProperties[] = "'carrier_id' can't be null"; - } - if ($this->container['ineligibility_reasons'] === null) { - $invalidProperties[] = "'ineligibility_reasons' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets service_id - * - * @return string - */ - public function getServiceId() - { - return $this->container['service_id']; - } - - /** - * Sets service_id - * - * @param string $service_id An identifier for the shipping service. - * - * @return self - */ - public function setServiceId($service_id) - { - $this->container['service_id'] = $service_id; - - return $this; - } - /** - * Gets service_name - * - * @return string - */ - public function getServiceName() - { - return $this->container['service_name']; - } - - /** - * Sets service_name - * - * @param string $service_name The name of the shipping service. - * - * @return self - */ - public function setServiceName($service_name) - { - $this->container['service_name'] = $service_name; - - return $this; - } - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier name for the offering. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets carrier_id - * - * @return string - */ - public function getCarrierId() - { - return $this->container['carrier_id']; - } - - /** - * Sets carrier_id - * - * @param string $carrier_id The carrier identifier for the offering, provided by the carrier. - * - * @return self - */ - public function setCarrierId($carrier_id) - { - $this->container['carrier_id'] = $carrier_id; - - return $this; - } - /** - * Gets ineligibility_reasons - * - * @return \SellingPartnerApi\Model\ShippingV2\IneligibilityReason[] - */ - public function getIneligibilityReasons() - { - return $this->container['ineligibility_reasons']; - } - - /** - * Sets ineligibility_reasons - * - * @param \SellingPartnerApi\Model\ShippingV2\IneligibilityReason[] $ineligibility_reasons A list of reasons why a shipping service offering is ineligible. - * - * @return self - */ - public function setIneligibilityReasons($ineligibility_reasons) - { - $this->container['ineligibility_reasons'] = $ineligibility_reasons; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/InvoiceDetails.php b/lib/Model/ShippingV2/InvoiceDetails.php deleted file mode 100644 index 2f5c462cf..000000000 --- a/lib/Model/ShippingV2/InvoiceDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoice_number' => 'string', - 'invoice_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoice_number' => null, - 'invoice_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoice_number' => 'invoiceNumber', - 'invoice_date' => 'invoiceDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoice_number' => 'setInvoiceNumber', - 'invoice_date' => 'setInvoiceDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoice_number' => 'getInvoiceNumber', - 'invoice_date' => 'getInvoiceDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoice_number'] = $data['invoice_number'] ?? null; - $this->container['invoice_date'] = $data['invoice_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets invoice_number - * - * @return string|null - */ - public function getInvoiceNumber() - { - return $this->container['invoice_number']; - } - - /** - * Sets invoice_number - * - * @param string|null $invoice_number The invoice number of the item. - * - * @return self - */ - public function setInvoiceNumber($invoice_number) - { - $this->container['invoice_number'] = $invoice_number; - - return $this; - } - /** - * Gets invoice_date - * - * @return string|null - */ - public function getInvoiceDate() - { - return $this->container['invoice_date']; - } - - /** - * Sets invoice_date - * - * @param string|null $invoice_date The invoice date of the item in ISO 8601 format. - * - * @return self - */ - public function setInvoiceDate($invoice_date) - { - $this->container['invoice_date'] = $invoice_date; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Item.php b/lib/Model/ShippingV2/Item.php deleted file mode 100644 index b9e79a84d..000000000 --- a/lib/Model/ShippingV2/Item.php +++ /dev/null @@ -1,429 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_value' => '\SellingPartnerApi\Model\ShippingV2\Currency', - 'description' => 'string', - 'item_identifier' => 'string', - 'quantity' => 'int', - 'weight' => '\SellingPartnerApi\Model\ShippingV2\Weight', - 'is_hazmat' => 'bool', - 'product_type' => 'string', - 'invoice_details' => '\SellingPartnerApi\Model\ShippingV2\InvoiceDetails', - 'serial_numbers' => 'string[]', - 'direct_fulfillment_item_identifiers' => '\SellingPartnerApi\Model\ShippingV2\DirectFulfillmentItemIdentifiers' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_value' => null, - 'description' => null, - 'item_identifier' => null, - 'quantity' => null, - 'weight' => null, - 'is_hazmat' => null, - 'product_type' => null, - 'invoice_details' => null, - 'serial_numbers' => null, - 'direct_fulfillment_item_identifiers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_value' => 'itemValue', - 'description' => 'description', - 'item_identifier' => 'itemIdentifier', - 'quantity' => 'quantity', - 'weight' => 'weight', - 'is_hazmat' => 'isHazmat', - 'product_type' => 'productType', - 'invoice_details' => 'invoiceDetails', - 'serial_numbers' => 'serialNumbers', - 'direct_fulfillment_item_identifiers' => 'directFulfillmentItemIdentifiers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_value' => 'setItemValue', - 'description' => 'setDescription', - 'item_identifier' => 'setItemIdentifier', - 'quantity' => 'setQuantity', - 'weight' => 'setWeight', - 'is_hazmat' => 'setIsHazmat', - 'product_type' => 'setProductType', - 'invoice_details' => 'setInvoiceDetails', - 'serial_numbers' => 'setSerialNumbers', - 'direct_fulfillment_item_identifiers' => 'setDirectFulfillmentItemIdentifiers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_value' => 'getItemValue', - 'description' => 'getDescription', - 'item_identifier' => 'getItemIdentifier', - 'quantity' => 'getQuantity', - 'weight' => 'getWeight', - 'is_hazmat' => 'getIsHazmat', - 'product_type' => 'getProductType', - 'invoice_details' => 'getInvoiceDetails', - 'serial_numbers' => 'getSerialNumbers', - 'direct_fulfillment_item_identifiers' => 'getDirectFulfillmentItemIdentifiers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_value'] = $data['item_value'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['item_identifier'] = $data['item_identifier'] ?? null; - $this->container['quantity'] = $data['quantity'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['is_hazmat'] = $data['is_hazmat'] ?? null; - $this->container['product_type'] = $data['product_type'] ?? null; - $this->container['invoice_details'] = $data['invoice_details'] ?? null; - $this->container['serial_numbers'] = $data['serial_numbers'] ?? null; - $this->container['direct_fulfillment_item_identifiers'] = $data['direct_fulfillment_item_identifiers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_value - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency|null - */ - public function getItemValue() - { - return $this->container['item_value']; - } - - /** - * Sets item_value - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency|null $item_value item_value - * - * @return self - */ - public function setItemValue($item_value) - { - $this->container['item_value'] = $item_value; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description The product description of the item. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets item_identifier - * - * @return string|null - */ - public function getItemIdentifier() - { - return $this->container['item_identifier']; - } - - /** - * Sets item_identifier - * - * @param string|null $item_identifier A unique identifier for an item provided by the client. Should be the order item identifier for the item if this item is associated with an Amazon order. If the item is part of an external (non-Amazon) order, this field can be left blank. - * - * @return self - */ - public function setItemIdentifier($item_identifier) - { - $this->container['item_identifier'] = $item_identifier; - - return $this; - } - /** - * Gets quantity - * - * @return int - */ - public function getQuantity() - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param int $quantity The number of units. This value is required. - * - * @return self - */ - public function setQuantity($quantity) - { - $this->container['quantity'] = $quantity; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\ShippingV2\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\ShippingV2\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets is_hazmat - * - * @return bool|null - */ - public function getIsHazmat() - { - return $this->container['is_hazmat']; - } - - /** - * Sets is_hazmat - * - * @param bool|null $is_hazmat When true, the item qualifies as hazardous materials (hazmat). Defaults to false. - * - * @return self - */ - public function setIsHazmat($is_hazmat) - { - $this->container['is_hazmat'] = $is_hazmat; - - return $this; - } - /** - * Gets product_type - * - * @return string|null - */ - public function getProductType() - { - return $this->container['product_type']; - } - - /** - * Sets product_type - * - * @param string|null $product_type The product type of the item. - * - * @return self - */ - public function setProductType($product_type) - { - $this->container['product_type'] = $product_type; - - return $this; - } - /** - * Gets invoice_details - * - * @return \SellingPartnerApi\Model\ShippingV2\InvoiceDetails|null - */ - public function getInvoiceDetails() - { - return $this->container['invoice_details']; - } - - /** - * Sets invoice_details - * - * @param \SellingPartnerApi\Model\ShippingV2\InvoiceDetails|null $invoice_details invoice_details - * - * @return self - */ - public function setInvoiceDetails($invoice_details) - { - $this->container['invoice_details'] = $invoice_details; - - return $this; - } - /** - * Gets serial_numbers - * - * @return string[]|null - */ - public function getSerialNumbers() - { - return $this->container['serial_numbers']; - } - - /** - * Sets serial_numbers - * - * @param string[]|null $serial_numbers A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon. - * - * @return self - */ - public function setSerialNumbers($serial_numbers) - { - $this->container['serial_numbers'] = $serial_numbers; - - return $this; - } - /** - * Gets direct_fulfillment_item_identifiers - * - * @return \SellingPartnerApi\Model\ShippingV2\DirectFulfillmentItemIdentifiers|null - */ - public function getDirectFulfillmentItemIdentifiers() - { - return $this->container['direct_fulfillment_item_identifiers']; - } - - /** - * Sets direct_fulfillment_item_identifiers - * - * @param \SellingPartnerApi\Model\ShippingV2\DirectFulfillmentItemIdentifiers|null $direct_fulfillment_item_identifiers direct_fulfillment_item_identifiers - * - * @return self - */ - public function setDirectFulfillmentItemIdentifiers($direct_fulfillment_item_identifiers) - { - $this->container['direct_fulfillment_item_identifiers'] = $direct_fulfillment_item_identifiers; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Location.php b/lib/Model/ShippingV2/Location.php deleted file mode 100644 index 252a80534..000000000 --- a/lib/Model/ShippingV2/Location.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Location extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Location'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'state_or_region' => 'string', - 'city' => 'string', - 'country_code' => 'string', - 'postal_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'state_or_region' => null, - 'city' => null, - 'country_code' => null, - 'postal_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'state_or_region' => 'stateOrRegion', - 'city' => 'city', - 'country_code' => 'countryCode', - 'postal_code' => 'postalCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'state_or_region' => 'setStateOrRegion', - 'city' => 'setCity', - 'country_code' => 'setCountryCode', - 'postal_code' => 'setPostalCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'state_or_region' => 'getStateOrRegion', - 'city' => 'getCity', - 'country_code' => 'getCountryCode', - 'postal_code' => 'getPostalCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state, county or region where the person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city or town where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The two digit country code. Follows ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Package.php b/lib/Model/ShippingV2/Package.php deleted file mode 100644 index c57d42448..000000000 --- a/lib/Model/ShippingV2/Package.php +++ /dev/null @@ -1,380 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Package extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Package'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'dimensions' => '\SellingPartnerApi\Model\ShippingV2\Dimensions', - 'weight' => '\SellingPartnerApi\Model\ShippingV2\Weight', - 'insured_value' => '\SellingPartnerApi\Model\ShippingV2\Currency', - 'is_hazmat' => 'bool', - 'seller_display_name' => 'string', - 'charges' => '\SellingPartnerApi\Model\ShippingV2\ChargeComponent[]', - 'package_client_reference_id' => 'string', - 'items' => '\SellingPartnerApi\Model\ShippingV2\Item[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'dimensions' => null, - 'weight' => null, - 'insured_value' => null, - 'is_hazmat' => null, - 'seller_display_name' => null, - 'charges' => null, - 'package_client_reference_id' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'insured_value' => 'insuredValue', - 'is_hazmat' => 'isHazmat', - 'seller_display_name' => 'sellerDisplayName', - 'charges' => 'charges', - 'package_client_reference_id' => 'packageClientReferenceId', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'insured_value' => 'setInsuredValue', - 'is_hazmat' => 'setIsHazmat', - 'seller_display_name' => 'setSellerDisplayName', - 'charges' => 'setCharges', - 'package_client_reference_id' => 'setPackageClientReferenceId', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'insured_value' => 'getInsuredValue', - 'is_hazmat' => 'getIsHazmat', - 'seller_display_name' => 'getSellerDisplayName', - 'charges' => 'getCharges', - 'package_client_reference_id' => 'getPackageClientReferenceId', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['insured_value'] = $data['insured_value'] ?? null; - $this->container['is_hazmat'] = $data['is_hazmat'] ?? null; - $this->container['seller_display_name'] = $data['seller_display_name'] ?? null; - $this->container['charges'] = $data['charges'] ?? null; - $this->container['package_client_reference_id'] = $data['package_client_reference_id'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['dimensions'] === null) { - $invalidProperties[] = "'dimensions' can't be null"; - } - if ($this->container['weight'] === null) { - $invalidProperties[] = "'weight' can't be null"; - } - if ($this->container['insured_value'] === null) { - $invalidProperties[] = "'insured_value' can't be null"; - } - if ($this->container['package_client_reference_id'] === null) { - $invalidProperties[] = "'package_client_reference_id' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\ShippingV2\Dimensions - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\ShippingV2\Dimensions $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\ShippingV2\Weight - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\ShippingV2\Weight $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets insured_value - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency - */ - public function getInsuredValue() - { - return $this->container['insured_value']; - } - - /** - * Sets insured_value - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency $insured_value insured_value - * - * @return self - */ - public function setInsuredValue($insured_value) - { - $this->container['insured_value'] = $insured_value; - - return $this; - } - /** - * Gets is_hazmat - * - * @return bool|null - */ - public function getIsHazmat() - { - return $this->container['is_hazmat']; - } - - /** - * Sets is_hazmat - * - * @param bool|null $is_hazmat When true, the package contains hazardous materials. Defaults to false. - * - * @return self - */ - public function setIsHazmat($is_hazmat) - { - $this->container['is_hazmat'] = $is_hazmat; - - return $this; - } - /** - * Gets seller_display_name - * - * @return string|null - */ - public function getSellerDisplayName() - { - return $this->container['seller_display_name']; - } - - /** - * Sets seller_display_name - * - * @param string|null $seller_display_name The seller name displayed on the label. - * - * @return self - */ - public function setSellerDisplayName($seller_display_name) - { - $this->container['seller_display_name'] = $seller_display_name; - - return $this; - } - /** - * Gets charges - * - * @return \SellingPartnerApi\Model\ShippingV2\ChargeComponent[]|null - */ - public function getCharges() - { - return $this->container['charges']; - } - - /** - * Sets charges - * - * @param \SellingPartnerApi\Model\ShippingV2\ChargeComponent[]|null $charges A list of charges based on the shipping service charges applied on a package. - * - * @return self - */ - public function setCharges($charges) - { - $this->container['charges'] = $charges; - - return $this; - } - /** - * Gets package_client_reference_id - * - * @return string - */ - public function getPackageClientReferenceId() - { - return $this->container['package_client_reference_id']; - } - - /** - * Sets package_client_reference_id - * - * @param string $package_client_reference_id A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. - * - * @return self - */ - public function setPackageClientReferenceId($package_client_reference_id) - { - $this->container['package_client_reference_id'] = $package_client_reference_id; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\ShippingV2\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\ShippingV2\Item[] $items A list of items. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PackageDocument.php b/lib/Model/ShippingV2/PackageDocument.php deleted file mode 100644 index 49f3c2112..000000000 --- a/lib/Model/ShippingV2/PackageDocument.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageDocument extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageDocument'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => '\SellingPartnerApi\Model\ShippingV2\DocumentType', - 'format' => '\SellingPartnerApi\Model\ShippingV2\DocumentFormat', - 'contents' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'format' => null, - 'contents' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'format' => 'format', - 'contents' => 'contents' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'format' => 'setFormat', - 'contents' => 'setContents' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'format' => 'getFormat', - 'contents' => 'getContents' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['format'] = $data['format'] ?? null; - $this->container['contents'] = $data['contents'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - if ($this->container['format'] === null) { - $invalidProperties[] = "'format' can't be null"; - } - if ($this->container['contents'] === null) { - $invalidProperties[] = "'contents' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentType - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentType $type type - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - /** - * Gets format - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentFormat - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentFormat $format format - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - /** - * Gets contents - * - * @return string - */ - public function getContents() - { - return $this->container['contents']; - } - - /** - * Sets contents - * - * @param string $contents A Base64 encoded string of the file contents. - * - * @return self - */ - public function setContents($contents) - { - $this->container['contents'] = $contents; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PackageDocumentDetail.php b/lib/Model/ShippingV2/PackageDocumentDetail.php deleted file mode 100644 index 5e00b0fc5..000000000 --- a/lib/Model/ShippingV2/PackageDocumentDetail.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageDocumentDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageDocumentDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_client_reference_id' => 'string', - 'package_documents' => '\SellingPartnerApi\Model\ShippingV2\PackageDocument[]', - 'tracking_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_client_reference_id' => null, - 'package_documents' => null, - 'tracking_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_client_reference_id' => 'packageClientReferenceId', - 'package_documents' => 'packageDocuments', - 'tracking_id' => 'trackingId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_client_reference_id' => 'setPackageClientReferenceId', - 'package_documents' => 'setPackageDocuments', - 'tracking_id' => 'setTrackingId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_client_reference_id' => 'getPackageClientReferenceId', - 'package_documents' => 'getPackageDocuments', - 'tracking_id' => 'getTrackingId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_client_reference_id'] = $data['package_client_reference_id'] ?? null; - $this->container['package_documents'] = $data['package_documents'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['package_client_reference_id'] === null) { - $invalidProperties[] = "'package_client_reference_id' can't be null"; - } - if ($this->container['package_documents'] === null) { - $invalidProperties[] = "'package_documents' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_client_reference_id - * - * @return string - */ - public function getPackageClientReferenceId() - { - return $this->container['package_client_reference_id']; - } - - /** - * Sets package_client_reference_id - * - * @param string $package_client_reference_id A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. - * - * @return self - */ - public function setPackageClientReferenceId($package_client_reference_id) - { - $this->container['package_client_reference_id'] = $package_client_reference_id; - - return $this; - } - /** - * Gets package_documents - * - * @return \SellingPartnerApi\Model\ShippingV2\PackageDocument[] - */ - public function getPackageDocuments() - { - return $this->container['package_documents']; - } - - /** - * Sets package_documents - * - * @param \SellingPartnerApi\Model\ShippingV2\PackageDocument[] $package_documents A list of documents related to a package. - * - * @return self - */ - public function setPackageDocuments($package_documents) - { - $this->container['package_documents'] = $package_documents; - - return $this; - } - /** - * Gets tracking_id - * - * @return string|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string|null $tracking_id The carrier generated identifier for a package in a purchased shipment. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PrintOption.php b/lib/Model/ShippingV2/PrintOption.php deleted file mode 100644 index 4b4385df5..000000000 --- a/lib/Model/ShippingV2/PrintOption.php +++ /dev/null @@ -1,258 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PrintOption extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PrintOption'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'supported_dpis' => 'int[]', - 'supported_page_layouts' => 'string[]', - 'supported_file_joining_options' => 'bool[]', - 'supported_document_details' => '\SellingPartnerApi\Model\ShippingV2\SupportedDocumentDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'supported_dpis' => null, - 'supported_page_layouts' => null, - 'supported_file_joining_options' => null, - 'supported_document_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'supported_dpis' => 'supportedDPIs', - 'supported_page_layouts' => 'supportedPageLayouts', - 'supported_file_joining_options' => 'supportedFileJoiningOptions', - 'supported_document_details' => 'supportedDocumentDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'supported_dpis' => 'setSupportedDpis', - 'supported_page_layouts' => 'setSupportedPageLayouts', - 'supported_file_joining_options' => 'setSupportedFileJoiningOptions', - 'supported_document_details' => 'setSupportedDocumentDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'supported_dpis' => 'getSupportedDpis', - 'supported_page_layouts' => 'getSupportedPageLayouts', - 'supported_file_joining_options' => 'getSupportedFileJoiningOptions', - 'supported_document_details' => 'getSupportedDocumentDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['supported_dpis'] = $data['supported_dpis'] ?? null; - $this->container['supported_page_layouts'] = $data['supported_page_layouts'] ?? null; - $this->container['supported_file_joining_options'] = $data['supported_file_joining_options'] ?? null; - $this->container['supported_document_details'] = $data['supported_document_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['supported_page_layouts'] === null) { - $invalidProperties[] = "'supported_page_layouts' can't be null"; - } - if ($this->container['supported_file_joining_options'] === null) { - $invalidProperties[] = "'supported_file_joining_options' can't be null"; - } - if ($this->container['supported_document_details'] === null) { - $invalidProperties[] = "'supported_document_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets supported_dpis - * - * @return int[]|null - */ - public function getSupportedDpis() - { - return $this->container['supported_dpis']; - } - - /** - * Sets supported_dpis - * - * @param int[]|null $supported_dpis A list of the supported DPI options for a document. - * - * @return self - */ - public function setSupportedDpis($supported_dpis) - { - $this->container['supported_dpis'] = $supported_dpis; - - return $this; - } - /** - * Gets supported_page_layouts - * - * @return string[] - */ - public function getSupportedPageLayouts() - { - return $this->container['supported_page_layouts']; - } - - /** - * Sets supported_page_layouts - * - * @param string[] $supported_page_layouts A list of the supported page layout options for a document. - * - * @return self - */ - public function setSupportedPageLayouts($supported_page_layouts) - { - $this->container['supported_page_layouts'] = $supported_page_layouts; - - return $this; - } - /** - * Gets supported_file_joining_options - * - * @return bool[] - */ - public function getSupportedFileJoiningOptions() - { - return $this->container['supported_file_joining_options']; - } - - /** - * Sets supported_file_joining_options - * - * @param bool[] $supported_file_joining_options A list of the supported needFileJoining boolean values for a document. - * - * @return self - */ - public function setSupportedFileJoiningOptions($supported_file_joining_options) - { - $this->container['supported_file_joining_options'] = $supported_file_joining_options; - - return $this; - } - /** - * Gets supported_document_details - * - * @return \SellingPartnerApi\Model\ShippingV2\SupportedDocumentDetail[] - */ - public function getSupportedDocumentDetails() - { - return $this->container['supported_document_details']; - } - - /** - * Sets supported_document_details - * - * @param \SellingPartnerApi\Model\ShippingV2\SupportedDocumentDetail[] $supported_document_details A list of the supported documented details. - * - * @return self - */ - public function setSupportedDocumentDetails($supported_document_details) - { - $this->container['supported_document_details'] = $supported_document_details; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Promise.php b/lib/Model/ShippingV2/Promise.php deleted file mode 100644 index 58231e764..000000000 --- a/lib/Model/ShippingV2/Promise.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Promise extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Promise'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'delivery_window' => '\SellingPartnerApi\Model\ShippingV2\TimeWindow', - 'pickup_window' => '\SellingPartnerApi\Model\ShippingV2\TimeWindow' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'delivery_window' => null, - 'pickup_window' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'delivery_window' => 'deliveryWindow', - 'pickup_window' => 'pickupWindow' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'delivery_window' => 'setDeliveryWindow', - 'pickup_window' => 'setPickupWindow' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'delivery_window' => 'getDeliveryWindow', - 'pickup_window' => 'getPickupWindow' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['delivery_window'] = $data['delivery_window'] ?? null; - $this->container['pickup_window'] = $data['pickup_window'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets delivery_window - * - * @return \SellingPartnerApi\Model\ShippingV2\TimeWindow|null - */ - public function getDeliveryWindow() - { - return $this->container['delivery_window']; - } - - /** - * Sets delivery_window - * - * @param \SellingPartnerApi\Model\ShippingV2\TimeWindow|null $delivery_window delivery_window - * - * @return self - */ - public function setDeliveryWindow($delivery_window) - { - $this->container['delivery_window'] = $delivery_window; - - return $this; - } - /** - * Gets pickup_window - * - * @return \SellingPartnerApi\Model\ShippingV2\TimeWindow|null - */ - public function getPickupWindow() - { - return $this->container['pickup_window']; - } - - /** - * Sets pickup_window - * - * @param \SellingPartnerApi\Model\ShippingV2\TimeWindow|null $pickup_window pickup_window - * - * @return self - */ - public function setPickupWindow($pickup_window) - { - $this->container['pickup_window'] = $pickup_window; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PurchaseShipmentRequest.php b/lib/Model/ShippingV2/PurchaseShipmentRequest.php deleted file mode 100644 index 6bc99fa7d..000000000 --- a/lib/Model/ShippingV2/PurchaseShipmentRequest.php +++ /dev/null @@ -1,288 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'request_token' => 'string', - 'rate_id' => 'string', - 'requested_document_specification' => '\SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification', - 'requested_value_added_services' => '\SellingPartnerApi\Model\ShippingV2\RequestedValueAddedService[]', - 'additional_inputs' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'request_token' => null, - 'rate_id' => null, - 'requested_document_specification' => null, - 'requested_value_added_services' => null, - 'additional_inputs' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'request_token' => 'requestToken', - 'rate_id' => 'rateId', - 'requested_document_specification' => 'requestedDocumentSpecification', - 'requested_value_added_services' => 'requestedValueAddedServices', - 'additional_inputs' => 'additionalInputs' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'request_token' => 'setRequestToken', - 'rate_id' => 'setRateId', - 'requested_document_specification' => 'setRequestedDocumentSpecification', - 'requested_value_added_services' => 'setRequestedValueAddedServices', - 'additional_inputs' => 'setAdditionalInputs' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'request_token' => 'getRequestToken', - 'rate_id' => 'getRateId', - 'requested_document_specification' => 'getRequestedDocumentSpecification', - 'requested_value_added_services' => 'getRequestedValueAddedServices', - 'additional_inputs' => 'getAdditionalInputs' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['request_token'] = $data['request_token'] ?? null; - $this->container['rate_id'] = $data['rate_id'] ?? null; - $this->container['requested_document_specification'] = $data['requested_document_specification'] ?? null; - $this->container['requested_value_added_services'] = $data['requested_value_added_services'] ?? null; - $this->container['additional_inputs'] = $data['additional_inputs'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['request_token'] === null) { - $invalidProperties[] = "'request_token' can't be null"; - } - if ($this->container['rate_id'] === null) { - $invalidProperties[] = "'rate_id' can't be null"; - } - if ($this->container['requested_document_specification'] === null) { - $invalidProperties[] = "'requested_document_specification' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets request_token - * - * @return string - */ - public function getRequestToken() - { - return $this->container['request_token']; - } - - /** - * Sets request_token - * - * @param string $request_token A unique token generated to identify a getRates operation. - * - * @return self - */ - public function setRequestToken($request_token) - { - $this->container['request_token'] = $request_token; - - return $this; - } - /** - * Gets rate_id - * - * @return string - */ - public function getRateId() - { - return $this->container['rate_id']; - } - - /** - * Sets rate_id - * - * @param string $rate_id An identifier for the rate (shipment offering) provided by a shipping service provider. - * - * @return self - */ - public function setRateId($rate_id) - { - $this->container['rate_id'] = $rate_id; - - return $this; - } - /** - * Gets requested_document_specification - * - * @return \SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification - */ - public function getRequestedDocumentSpecification() - { - return $this->container['requested_document_specification']; - } - - /** - * Sets requested_document_specification - * - * @param \SellingPartnerApi\Model\ShippingV2\RequestedDocumentSpecification $requested_document_specification requested_document_specification - * - * @return self - */ - public function setRequestedDocumentSpecification($requested_document_specification) - { - $this->container['requested_document_specification'] = $requested_document_specification; - - return $this; - } - /** - * Gets requested_value_added_services - * - * @return \SellingPartnerApi\Model\ShippingV2\RequestedValueAddedService[]|null - */ - public function getRequestedValueAddedServices() - { - return $this->container['requested_value_added_services']; - } - - /** - * Sets requested_value_added_services - * - * @param \SellingPartnerApi\Model\ShippingV2\RequestedValueAddedService[]|null $requested_value_added_services The value-added services to be added to a shipping service purchase. - * - * @return self - */ - public function setRequestedValueAddedServices($requested_value_added_services) - { - $this->container['requested_value_added_services'] = $requested_value_added_services; - - return $this; - } - /** - * Gets additional_inputs - * - * @return object|null - */ - public function getAdditionalInputs() - { - return $this->container['additional_inputs']; - } - - /** - * Sets additional_inputs - * - * @param object|null $additional_inputs The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation. - * Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation. - * - * @return self - */ - public function setAdditionalInputs($additional_inputs) - { - $this->container['additional_inputs'] = $additional_inputs; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PurchaseShipmentResponse.php b/lib/Model/ShippingV2/PurchaseShipmentResponse.php deleted file mode 100644 index 2fe557a1a..000000000 --- a/lib/Model/ShippingV2/PurchaseShipmentResponse.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResult' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResult|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\ShippingV2\PurchaseShipmentResult|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/PurchaseShipmentResult.php b/lib/Model/ShippingV2/PurchaseShipmentResult.php deleted file mode 100644 index f6d6c3bca..000000000 --- a/lib/Model/ShippingV2/PurchaseShipmentResult.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseShipmentResult extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseShipmentResult'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_id' => 'string', - 'package_document_details' => '\SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[]', - 'promise' => '\SellingPartnerApi\Model\ShippingV2\Promise' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_id' => null, - 'package_document_details' => null, - 'promise' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_id' => 'shipmentId', - 'package_document_details' => 'packageDocumentDetails', - 'promise' => 'promise' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_id' => 'setShipmentId', - 'package_document_details' => 'setPackageDocumentDetails', - 'promise' => 'setPromise' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_id' => 'getShipmentId', - 'package_document_details' => 'getPackageDocumentDetails', - 'promise' => 'getPromise' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_id'] = $data['shipment_id'] ?? null; - $this->container['package_document_details'] = $data['package_document_details'] ?? null; - $this->container['promise'] = $data['promise'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_id'] === null) { - $invalidProperties[] = "'shipment_id' can't be null"; - } - if ($this->container['package_document_details'] === null) { - $invalidProperties[] = "'package_document_details' can't be null"; - } - if ($this->container['promise'] === null) { - $invalidProperties[] = "'promise' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_id - * - * @return string - */ - public function getShipmentId() - { - return $this->container['shipment_id']; - } - - /** - * Sets shipment_id - * - * @param string $shipment_id The unique shipment identifier provided by a shipping service. - * - * @return self - */ - public function setShipmentId($shipment_id) - { - $this->container['shipment_id'] = $shipment_id; - - return $this; - } - /** - * Gets package_document_details - * - * @return \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[] - */ - public function getPackageDocumentDetails() - { - return $this->container['package_document_details']; - } - - /** - * Sets package_document_details - * - * @param \SellingPartnerApi\Model\ShippingV2\PackageDocumentDetail[] $package_document_details A list of post-purchase details about a package that will be shipped using a shipping service. - * - * @return self - */ - public function setPackageDocumentDetails($package_document_details) - { - $this->container['package_document_details'] = $package_document_details; - - return $this; - } - /** - * Gets promise - * - * @return \SellingPartnerApi\Model\ShippingV2\Promise - */ - public function getPromise() - { - return $this->container['promise']; - } - - /** - * Sets promise - * - * @param \SellingPartnerApi\Model\ShippingV2\Promise $promise promise - * - * @return self - */ - public function setPromise($promise) - { - $this->container['promise'] = $promise; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Rate.php b/lib/Model/ShippingV2/Rate.php deleted file mode 100644 index 9558ee9be..000000000 --- a/lib/Model/ShippingV2/Rate.php +++ /dev/null @@ -1,479 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Rate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Rate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'rate_id' => 'string', - 'carrier_id' => 'string', - 'carrier_name' => 'string', - 'service_id' => 'string', - 'service_name' => 'string', - 'billed_weight' => '\SellingPartnerApi\Model\ShippingV2\Weight', - 'total_charge' => '\SellingPartnerApi\Model\ShippingV2\Currency', - 'promise' => '\SellingPartnerApi\Model\ShippingV2\Promise', - 'supported_document_specifications' => '\SellingPartnerApi\Model\ShippingV2\SupportedDocumentSpecification[]', - 'available_value_added_service_groups' => '\SellingPartnerApi\Model\ShippingV2\AvailableValueAddedServiceGroup[]', - 'requires_additional_inputs' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'rate_id' => null, - 'carrier_id' => null, - 'carrier_name' => null, - 'service_id' => null, - 'service_name' => null, - 'billed_weight' => null, - 'total_charge' => null, - 'promise' => null, - 'supported_document_specifications' => null, - 'available_value_added_service_groups' => null, - 'requires_additional_inputs' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'rate_id' => 'rateId', - 'carrier_id' => 'carrierId', - 'carrier_name' => 'carrierName', - 'service_id' => 'serviceId', - 'service_name' => 'serviceName', - 'billed_weight' => 'billedWeight', - 'total_charge' => 'totalCharge', - 'promise' => 'promise', - 'supported_document_specifications' => 'supportedDocumentSpecifications', - 'available_value_added_service_groups' => 'availableValueAddedServiceGroups', - 'requires_additional_inputs' => 'requiresAdditionalInputs' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'rate_id' => 'setRateId', - 'carrier_id' => 'setCarrierId', - 'carrier_name' => 'setCarrierName', - 'service_id' => 'setServiceId', - 'service_name' => 'setServiceName', - 'billed_weight' => 'setBilledWeight', - 'total_charge' => 'setTotalCharge', - 'promise' => 'setPromise', - 'supported_document_specifications' => 'setSupportedDocumentSpecifications', - 'available_value_added_service_groups' => 'setAvailableValueAddedServiceGroups', - 'requires_additional_inputs' => 'setRequiresAdditionalInputs' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'rate_id' => 'getRateId', - 'carrier_id' => 'getCarrierId', - 'carrier_name' => 'getCarrierName', - 'service_id' => 'getServiceId', - 'service_name' => 'getServiceName', - 'billed_weight' => 'getBilledWeight', - 'total_charge' => 'getTotalCharge', - 'promise' => 'getPromise', - 'supported_document_specifications' => 'getSupportedDocumentSpecifications', - 'available_value_added_service_groups' => 'getAvailableValueAddedServiceGroups', - 'requires_additional_inputs' => 'getRequiresAdditionalInputs' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['rate_id'] = $data['rate_id'] ?? null; - $this->container['carrier_id'] = $data['carrier_id'] ?? null; - $this->container['carrier_name'] = $data['carrier_name'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['service_name'] = $data['service_name'] ?? null; - $this->container['billed_weight'] = $data['billed_weight'] ?? null; - $this->container['total_charge'] = $data['total_charge'] ?? null; - $this->container['promise'] = $data['promise'] ?? null; - $this->container['supported_document_specifications'] = $data['supported_document_specifications'] ?? null; - $this->container['available_value_added_service_groups'] = $data['available_value_added_service_groups'] ?? null; - $this->container['requires_additional_inputs'] = $data['requires_additional_inputs'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['rate_id'] === null) { - $invalidProperties[] = "'rate_id' can't be null"; - } - if ($this->container['carrier_id'] === null) { - $invalidProperties[] = "'carrier_id' can't be null"; - } - if ($this->container['carrier_name'] === null) { - $invalidProperties[] = "'carrier_name' can't be null"; - } - if ($this->container['service_id'] === null) { - $invalidProperties[] = "'service_id' can't be null"; - } - if ($this->container['service_name'] === null) { - $invalidProperties[] = "'service_name' can't be null"; - } - if ($this->container['total_charge'] === null) { - $invalidProperties[] = "'total_charge' can't be null"; - } - if ($this->container['promise'] === null) { - $invalidProperties[] = "'promise' can't be null"; - } - if ($this->container['supported_document_specifications'] === null) { - $invalidProperties[] = "'supported_document_specifications' can't be null"; - } - if ($this->container['requires_additional_inputs'] === null) { - $invalidProperties[] = "'requires_additional_inputs' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets rate_id - * - * @return string - */ - public function getRateId() - { - return $this->container['rate_id']; - } - - /** - * Sets rate_id - * - * @param string $rate_id An identifier for the rate (shipment offering) provided by a shipping service provider. - * - * @return self - */ - public function setRateId($rate_id) - { - $this->container['rate_id'] = $rate_id; - - return $this; - } - /** - * Gets carrier_id - * - * @return string - */ - public function getCarrierId() - { - return $this->container['carrier_id']; - } - - /** - * Sets carrier_id - * - * @param string $carrier_id The carrier identifier for the offering, provided by the carrier. - * - * @return self - */ - public function setCarrierId($carrier_id) - { - $this->container['carrier_id'] = $carrier_id; - - return $this; - } - /** - * Gets carrier_name - * - * @return string - */ - public function getCarrierName() - { - return $this->container['carrier_name']; - } - - /** - * Sets carrier_name - * - * @param string $carrier_name The carrier name for the offering. - * - * @return self - */ - public function setCarrierName($carrier_name) - { - $this->container['carrier_name'] = $carrier_name; - - return $this; - } - /** - * Gets service_id - * - * @return string - */ - public function getServiceId() - { - return $this->container['service_id']; - } - - /** - * Sets service_id - * - * @param string $service_id An identifier for the shipping service. - * - * @return self - */ - public function setServiceId($service_id) - { - $this->container['service_id'] = $service_id; - - return $this; - } - /** - * Gets service_name - * - * @return string - */ - public function getServiceName() - { - return $this->container['service_name']; - } - - /** - * Sets service_name - * - * @param string $service_name The name of the shipping service. - * - * @return self - */ - public function setServiceName($service_name) - { - $this->container['service_name'] = $service_name; - - return $this; - } - /** - * Gets billed_weight - * - * @return \SellingPartnerApi\Model\ShippingV2\Weight|null - */ - public function getBilledWeight() - { - return $this->container['billed_weight']; - } - - /** - * Sets billed_weight - * - * @param \SellingPartnerApi\Model\ShippingV2\Weight|null $billed_weight billed_weight - * - * @return self - */ - public function setBilledWeight($billed_weight) - { - $this->container['billed_weight'] = $billed_weight; - - return $this; - } - /** - * Gets total_charge - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency - */ - public function getTotalCharge() - { - return $this->container['total_charge']; - } - - /** - * Sets total_charge - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency $total_charge total_charge - * - * @return self - */ - public function setTotalCharge($total_charge) - { - $this->container['total_charge'] = $total_charge; - - return $this; - } - /** - * Gets promise - * - * @return \SellingPartnerApi\Model\ShippingV2\Promise - */ - public function getPromise() - { - return $this->container['promise']; - } - - /** - * Sets promise - * - * @param \SellingPartnerApi\Model\ShippingV2\Promise $promise promise - * - * @return self - */ - public function setPromise($promise) - { - $this->container['promise'] = $promise; - - return $this; - } - /** - * Gets supported_document_specifications - * - * @return \SellingPartnerApi\Model\ShippingV2\SupportedDocumentSpecification[] - */ - public function getSupportedDocumentSpecifications() - { - return $this->container['supported_document_specifications']; - } - - /** - * Sets supported_document_specifications - * - * @param \SellingPartnerApi\Model\ShippingV2\SupportedDocumentSpecification[] $supported_document_specifications A list of the document specifications supported for a shipment service offering. - * - * @return self - */ - public function setSupportedDocumentSpecifications($supported_document_specifications) - { - $this->container['supported_document_specifications'] = $supported_document_specifications; - - return $this; - } - /** - * Gets available_value_added_service_groups - * - * @return \SellingPartnerApi\Model\ShippingV2\AvailableValueAddedServiceGroup[]|null - */ - public function getAvailableValueAddedServiceGroups() - { - return $this->container['available_value_added_service_groups']; - } - - /** - * Sets available_value_added_service_groups - * - * @param \SellingPartnerApi\Model\ShippingV2\AvailableValueAddedServiceGroup[]|null $available_value_added_service_groups A list of value-added services available for a shipping service offering. - * - * @return self - */ - public function setAvailableValueAddedServiceGroups($available_value_added_service_groups) - { - $this->container['available_value_added_service_groups'] = $available_value_added_service_groups; - - return $this; - } - /** - * Gets requires_additional_inputs - * - * @return bool - */ - public function getRequiresAdditionalInputs() - { - return $this->container['requires_additional_inputs']; - } - - /** - * Sets requires_additional_inputs - * - * @param bool $requires_additional_inputs When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation. - * - * @return self - */ - public function setRequiresAdditionalInputs($requires_additional_inputs) - { - $this->container['requires_additional_inputs'] = $requires_additional_inputs; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/RequestedDocumentSpecification.php b/lib/Model/ShippingV2/RequestedDocumentSpecification.php deleted file mode 100644 index 236817d43..000000000 --- a/lib/Model/ShippingV2/RequestedDocumentSpecification.php +++ /dev/null @@ -1,319 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RequestedDocumentSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RequestedDocumentSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'format' => '\SellingPartnerApi\Model\ShippingV2\DocumentFormat', - 'size' => '\SellingPartnerApi\Model\ShippingV2\DocumentSize', - 'dpi' => 'int', - 'page_layout' => 'string', - 'need_file_joining' => 'bool', - 'requested_document_types' => '\SellingPartnerApi\Model\ShippingV2\DocumentType[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'format' => null, - 'size' => null, - 'dpi' => null, - 'page_layout' => null, - 'need_file_joining' => null, - 'requested_document_types' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'format' => 'format', - 'size' => 'size', - 'dpi' => 'dpi', - 'page_layout' => 'pageLayout', - 'need_file_joining' => 'needFileJoining', - 'requested_document_types' => 'requestedDocumentTypes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'format' => 'setFormat', - 'size' => 'setSize', - 'dpi' => 'setDpi', - 'page_layout' => 'setPageLayout', - 'need_file_joining' => 'setNeedFileJoining', - 'requested_document_types' => 'setRequestedDocumentTypes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'format' => 'getFormat', - 'size' => 'getSize', - 'dpi' => 'getDpi', - 'page_layout' => 'getPageLayout', - 'need_file_joining' => 'getNeedFileJoining', - 'requested_document_types' => 'getRequestedDocumentTypes' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['format'] = $data['format'] ?? null; - $this->container['size'] = $data['size'] ?? null; - $this->container['dpi'] = $data['dpi'] ?? null; - $this->container['page_layout'] = $data['page_layout'] ?? null; - $this->container['need_file_joining'] = $data['need_file_joining'] ?? null; - $this->container['requested_document_types'] = $data['requested_document_types'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['format'] === null) { - $invalidProperties[] = "'format' can't be null"; - } - if ($this->container['size'] === null) { - $invalidProperties[] = "'size' can't be null"; - } - if ($this->container['need_file_joining'] === null) { - $invalidProperties[] = "'need_file_joining' can't be null"; - } - if ($this->container['requested_document_types'] === null) { - $invalidProperties[] = "'requested_document_types' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets format - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentFormat - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentFormat $format format - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - /** - * Gets size - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentSize - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentSize $size size - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets dpi - * - * @return int|null - */ - public function getDpi() - { - return $this->container['dpi']; - } - - /** - * Sets dpi - * - * @param int|null $dpi The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document. - * - * @return self - */ - public function setDpi($dpi) - { - $this->container['dpi'] = $dpi; - - return $this; - } - /** - * Gets page_layout - * - * @return string|null - */ - public function getPageLayout() - { - return $this->container['page_layout']; - } - - /** - * Sets page_layout - * - * @param string|null $page_layout Indicates the position of the label on the paper. Should be the same value as returned in getRates response. - * - * @return self - */ - public function setPageLayout($page_layout) - { - $this->container['page_layout'] = $page_layout; - - return $this; - } - /** - * Gets need_file_joining - * - * @return bool - */ - public function getNeedFileJoining() - { - return $this->container['need_file_joining']; - } - - /** - * Sets need_file_joining - * - * @param bool $need_file_joining When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false. - * - * @return self - */ - public function setNeedFileJoining($need_file_joining) - { - $this->container['need_file_joining'] = $need_file_joining; - - return $this; - } - /** - * Gets requested_document_types - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentType[] - */ - public function getRequestedDocumentTypes() - { - return $this->container['requested_document_types']; - } - - /** - * Sets requested_document_types - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentType[] $requested_document_types A list of the document types requested. - * - * @return self - */ - public function setRequestedDocumentTypes($requested_document_types) - { - $this->container['requested_document_types'] = $requested_document_types; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/RequestedValueAddedService.php b/lib/Model/ShippingV2/RequestedValueAddedService.php deleted file mode 100644 index 55b38be94..000000000 --- a/lib/Model/ShippingV2/RequestedValueAddedService.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RequestedValueAddedService extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RequestedValueAddedService'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['id'] = $data['id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation. - * - * @return self - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Status.php b/lib/Model/ShippingV2/Status.php deleted file mode 100644 index ed9156c9a..000000000 --- a/lib/Model/ShippingV2/Status.php +++ /dev/null @@ -1,101 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/SupportedDocumentDetail.php b/lib/Model/ShippingV2/SupportedDocumentDetail.php deleted file mode 100644 index 7e9e242ce..000000000 --- a/lib/Model/ShippingV2/SupportedDocumentDetail.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SupportedDocumentDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SupportedDocumentDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => '\SellingPartnerApi\Model\ShippingV2\DocumentType', - 'is_mandatory' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'is_mandatory' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'is_mandatory' => 'isMandatory' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'is_mandatory' => 'setIsMandatory' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'is_mandatory' => 'getIsMandatory' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['is_mandatory'] = $data['is_mandatory'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['is_mandatory'] === null) { - $invalidProperties[] = "'is_mandatory' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentType - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentType $name name - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets is_mandatory - * - * @return bool - */ - public function getIsMandatory() - { - return $this->container['is_mandatory']; - } - - /** - * Sets is_mandatory - * - * @param bool $is_mandatory When true, the supported document type is required. - * - * @return self - */ - public function setIsMandatory($is_mandatory) - { - $this->container['is_mandatory'] = $is_mandatory; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/SupportedDocumentSpecification.php b/lib/Model/ShippingV2/SupportedDocumentSpecification.php deleted file mode 100644 index 7dc2328f1..000000000 --- a/lib/Model/ShippingV2/SupportedDocumentSpecification.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SupportedDocumentSpecification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SupportedDocumentSpecification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'format' => '\SellingPartnerApi\Model\ShippingV2\DocumentFormat', - 'size' => '\SellingPartnerApi\Model\ShippingV2\DocumentSize', - 'print_options' => '\SellingPartnerApi\Model\ShippingV2\PrintOption[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'format' => null, - 'size' => null, - 'print_options' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'format' => 'format', - 'size' => 'size', - 'print_options' => 'printOptions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'format' => 'setFormat', - 'size' => 'setSize', - 'print_options' => 'setPrintOptions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'format' => 'getFormat', - 'size' => 'getSize', - 'print_options' => 'getPrintOptions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['format'] = $data['format'] ?? null; - $this->container['size'] = $data['size'] ?? null; - $this->container['print_options'] = $data['print_options'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['format'] === null) { - $invalidProperties[] = "'format' can't be null"; - } - if ($this->container['size'] === null) { - $invalidProperties[] = "'size' can't be null"; - } - if ($this->container['print_options'] === null) { - $invalidProperties[] = "'print_options' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets format - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentFormat - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentFormat $format format - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - /** - * Gets size - * - * @return \SellingPartnerApi\Model\ShippingV2\DocumentSize - */ - public function getSize() - { - return $this->container['size']; - } - - /** - * Sets size - * - * @param \SellingPartnerApi\Model\ShippingV2\DocumentSize $size size - * - * @return self - */ - public function setSize($size) - { - $this->container['size'] = $size; - - return $this; - } - /** - * Gets print_options - * - * @return \SellingPartnerApi\Model\ShippingV2\PrintOption[] - */ - public function getPrintOptions() - { - return $this->container['print_options']; - } - - /** - * Sets print_options - * - * @param \SellingPartnerApi\Model\ShippingV2\PrintOption[] $print_options A list of the format options for a label. - * - * @return self - */ - public function setPrintOptions($print_options) - { - $this->container['print_options'] = $print_options; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/TaxDetail.php b/lib/Model/ShippingV2/TaxDetail.php deleted file mode 100644 index fb1d19dd6..000000000 --- a/lib/Model/ShippingV2/TaxDetail.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_type' => '\SellingPartnerApi\Model\ShippingV2\TaxType', - 'tax_registration_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_type' => null, - 'tax_registration_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_type' => 'taxType', - 'tax_registration_number' => 'taxRegistrationNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_type' => 'setTaxType', - 'tax_registration_number' => 'setTaxRegistrationNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_type' => 'getTaxType', - 'tax_registration_number' => 'getTaxRegistrationNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_type'] = $data['tax_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_type'] === null) { - $invalidProperties[] = "'tax_type' can't be null"; - } - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_type - * - * @return \SellingPartnerApi\Model\ShippingV2\TaxType - */ - public function getTaxType() - { - return $this->container['tax_type']; - } - - /** - * Sets tax_type - * - * @param \SellingPartnerApi\Model\ShippingV2\TaxType $tax_type tax_type - * - * @return self - */ - public function setTaxType($tax_type) - { - $this->container['tax_type'] = $tax_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number The shipper's tax registration number associated with the shipment for customs compliance purposes in certain regions. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/TaxType.php b/lib/Model/ShippingV2/TaxType.php deleted file mode 100644 index 10d8f5973..000000000 --- a/lib/Model/ShippingV2/TaxType.php +++ /dev/null @@ -1,85 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/ShippingV2/TimeWindow.php b/lib/Model/ShippingV2/TimeWindow.php deleted file mode 100644 index 7e4be0d5a..000000000 --- a/lib/Model/ShippingV2/TimeWindow.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TimeWindow extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TimeWindow'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'start_time' => 'string', - 'end_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'start_time' => null, - 'end_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'start_time' => 'startTime', - 'end_time' => 'endTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'start_time' => 'setStartTime', - 'end_time' => 'setEndTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'start_time' => 'getStartTime', - 'end_time' => 'getEndTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['start_time'] = $data['start_time'] ?? null; - $this->container['end_time'] = $data['end_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets start_time - * - * @return string|null - */ - public function getStartTime() - { - return $this->container['start_time']; - } - - /** - * Sets start_time - * - * @param string|null $start_time The start time of the time window. - * - * @return self - */ - public function setStartTime($start_time) - { - $this->container['start_time'] = $start_time; - - return $this; - } - /** - * Gets end_time - * - * @return string|null - */ - public function getEndTime() - { - return $this->container['end_time']; - } - - /** - * Sets end_time - * - * @param string|null $end_time The end time of the time window. - * - * @return self - */ - public function setEndTime($end_time) - { - $this->container['end_time'] = $end_time; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/TrackingSummary.php b/lib/Model/ShippingV2/TrackingSummary.php deleted file mode 100644 index c04dd0074..000000000 --- a/lib/Model/ShippingV2/TrackingSummary.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TrackingSummary extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TrackingSummary'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'status' => '\SellingPartnerApi\Model\ShippingV2\Status' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets status - * - * @return \SellingPartnerApi\Model\ShippingV2\Status|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\ShippingV2\Status|null $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/ValueAddedService.php b/lib/Model/ShippingV2/ValueAddedService.php deleted file mode 100644 index bac46a4ce..000000000 --- a/lib/Model/ShippingV2/ValueAddedService.php +++ /dev/null @@ -1,229 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ValueAddedService extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ValueAddedService'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'string', - 'name' => 'string', - 'cost' => '\SellingPartnerApi\Model\ShippingV2\Currency' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => null, - 'name' => null, - 'cost' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'cost' => 'cost' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'cost' => 'setCost' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'cost' => 'getCost' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['id'] = $data['id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['cost'] = $data['cost'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['cost'] === null) { - $invalidProperties[] = "'cost' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id The identifier for the value-added service. - * - * @return self - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the value-added service. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets cost - * - * @return \SellingPartnerApi\Model\ShippingV2\Currency - */ - public function getCost() - { - return $this->container['cost']; - } - - /** - * Sets cost - * - * @param \SellingPartnerApi\Model\ShippingV2\Currency $cost cost - * - * @return self - */ - public function setCost($cost) - { - $this->container['cost'] = $cost; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/ValueAddedServiceDetails.php b/lib/Model/ShippingV2/ValueAddedServiceDetails.php deleted file mode 100644 index f140c1b76..000000000 --- a/lib/Model/ShippingV2/ValueAddedServiceDetails.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ValueAddedServiceDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ValueAddedServiceDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'collect_on_delivery' => '\SellingPartnerApi\Model\ShippingV2\CollectOnDelivery' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'collect_on_delivery' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'collect_on_delivery' => 'collectOnDelivery' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'collect_on_delivery' => 'setCollectOnDelivery' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'collect_on_delivery' => 'getCollectOnDelivery' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['collect_on_delivery'] = $data['collect_on_delivery'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets collect_on_delivery - * - * @return \SellingPartnerApi\Model\ShippingV2\CollectOnDelivery|null - */ - public function getCollectOnDelivery() - { - return $this->container['collect_on_delivery']; - } - - /** - * Sets collect_on_delivery - * - * @param \SellingPartnerApi\Model\ShippingV2\CollectOnDelivery|null $collect_on_delivery collect_on_delivery - * - * @return self - */ - public function setCollectOnDelivery($collect_on_delivery) - { - $this->container['collect_on_delivery'] = $collect_on_delivery; - - return $this; - } -} - - diff --git a/lib/Model/ShippingV2/Weight.php b/lib/Model/ShippingV2/Weight.php deleted file mode 100644 index 6dd521000..000000000 --- a/lib/Model/ShippingV2/Weight.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit' => 'string', - 'value' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit' => 'unit', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit' => 'setUnit', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit' => 'getUnit', - 'value' => 'getValue' - ]; - - - - const UNIT_GRAM = 'GRAM'; - const UNIT_KILOGRAM = 'KILOGRAM'; - const UNIT_OUNCE = 'OUNCE'; - const UNIT_POUND = 'POUND'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitAllowableValues() - { - $baseVals = [ - self::UNIT_GRAM, - self::UNIT_KILOGRAM, - self::UNIT_OUNCE, - self::UNIT_POUND, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit'] = $data['unit'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - $allowedValues = $this->getUnitAllowableValues(); - if ( - !is_null($this->container['unit']) && - !in_array(strtoupper($this->container['unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit', must be one of '%s'", - $this->container['unit'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit - * - * @return string - */ - public function getUnit() - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit The unit of measurement. - * - * @return self - */ - public function setUnit($unit) - { - $allowedValues = $this->getUnitAllowableValues(); - if (!in_array(strtoupper($unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit', must be one of '%s'", - $unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit'] = $unit; - - return $this; - } - /** - * Gets value - * - * @return float - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param float $value The measurement value. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/Error.php b/lib/Model/SmallAndLightV1/Error.php deleted file mode 100644 index 539e541de..000000000 --- a/lib/Model/SmallAndLightV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional information that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/ErrorList.php b/lib/Model/SmallAndLightV1/ErrorList.php deleted file mode 100644 index 7814eabef..000000000 --- a/lib/Model/SmallAndLightV1/ErrorList.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\SmallAndLightV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\Error[]|null $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/FeeLineItem.php b/lib/Model/SmallAndLightV1/FeeLineItem.php deleted file mode 100644 index 7d3af1356..000000000 --- a/lib/Model/SmallAndLightV1/FeeLineItem.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeeLineItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeeLineItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'fee_type' => 'string', - 'fee_charge' => '\SellingPartnerApi\Model\SmallAndLightV1\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'fee_type' => null, - 'fee_charge' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'fee_type' => 'feeType', - 'fee_charge' => 'feeCharge' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'fee_type' => 'setFeeType', - 'fee_charge' => 'setFeeCharge' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'fee_type' => 'getFeeType', - 'fee_charge' => 'getFeeCharge' - ]; - - - - const FEE_TYPE_FBA_WEIGHT_BASED_FEE = 'FBAWeightBasedFee'; - const FEE_TYPE_FBA_PER_ORDER_FULFILLMENT_FEE = 'FBAPerOrderFulfillmentFee'; - const FEE_TYPE_FBA_PER_UNIT_FULFILLMENT_FEE = 'FBAPerUnitFulfillmentFee'; - const FEE_TYPE_COMMISSION = 'Commission'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFeeTypeAllowableValues() - { - $baseVals = [ - self::FEE_TYPE_FBA_WEIGHT_BASED_FEE, - self::FEE_TYPE_FBA_PER_ORDER_FULFILLMENT_FEE, - self::FEE_TYPE_FBA_PER_UNIT_FULFILLMENT_FEE, - self::FEE_TYPE_COMMISSION, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['fee_type'] = $data['fee_type'] ?? null; - $this->container['fee_charge'] = $data['fee_charge'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['fee_type'] === null) { - $invalidProperties[] = "'fee_type' can't be null"; - } - $allowedValues = $this->getFeeTypeAllowableValues(); - if ( - !is_null($this->container['fee_type']) && - !in_array(strtoupper($this->container['fee_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'fee_type', must be one of '%s'", - $this->container['fee_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['fee_charge'] === null) { - $invalidProperties[] = "'fee_charge' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets fee_type - * - * @return string - */ - public function getFeeType() - { - return $this->container['fee_type']; - } - - /** - * Sets fee_type - * - * @param string $fee_type The type of fee charged to the seller. - * - * @return self - */ - public function setFeeType($fee_type) - { - $allowedValues = $this->getFeeTypeAllowableValues(); - if (!in_array(strtoupper($fee_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'fee_type', must be one of '%s'", - $fee_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['fee_type'] = $fee_type; - - return $this; - } - /** - * Gets fee_charge - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\MoneyType - */ - public function getFeeCharge() - { - return $this->container['fee_charge']; - } - - /** - * Sets fee_charge - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\MoneyType $fee_charge fee_charge - * - * @return self - */ - public function setFeeCharge($fee_charge) - { - $this->container['fee_charge'] = $fee_charge; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/FeePreview.php b/lib/Model/SmallAndLightV1/FeePreview.php deleted file mode 100644 index 8db7897c3..000000000 --- a/lib/Model/SmallAndLightV1/FeePreview.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class FeePreview extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FeePreview'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'price' => '\SellingPartnerApi\Model\SmallAndLightV1\MoneyType', - 'fee_breakdown' => '\SellingPartnerApi\Model\SmallAndLightV1\FeeLineItem[]', - 'total_fees' => '\SellingPartnerApi\Model\SmallAndLightV1\MoneyType', - 'errors' => '\SellingPartnerApi\Model\SmallAndLightV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'price' => null, - 'fee_breakdown' => null, - 'total_fees' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'price' => 'price', - 'fee_breakdown' => 'feeBreakdown', - 'total_fees' => 'totalFees', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'price' => 'setPrice', - 'fee_breakdown' => 'setFeeBreakdown', - 'total_fees' => 'setTotalFees', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'price' => 'getPrice', - 'fee_breakdown' => 'getFeeBreakdown', - 'total_fees' => 'getTotalFees', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['price'] = $data['price'] ?? null; - $this->container['fee_breakdown'] = $data['fee_breakdown'] ?? null; - $this->container['total_fees'] = $data['total_fees'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string|null - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string|null $asin The Amazon Standard Identification Number (ASIN) value used to identify the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets price - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\MoneyType|null - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\MoneyType|null $price price - * - * @return self - */ - public function setPrice($price) - { - $this->container['price'] = $price; - - return $this; - } - /** - * Gets fee_breakdown - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\FeeLineItem[]|null - */ - public function getFeeBreakdown() - { - return $this->container['fee_breakdown']; - } - - /** - * Sets fee_breakdown - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\FeeLineItem[]|null $fee_breakdown A list of the Small and Light fees for the item. - * - * @return self - */ - public function setFeeBreakdown($fee_breakdown) - { - $this->container['fee_breakdown'] = $fee_breakdown; - - return $this; - } - /** - * Gets total_fees - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\MoneyType|null - */ - public function getTotalFees() - { - return $this->container['total_fees']; - } - - /** - * Sets total_fees - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\MoneyType|null $total_fees total_fees - * - * @return self - */ - public function setTotalFees($total_fees) - { - $this->container['total_fees'] = $total_fees; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\Error[]|null $errors One or more unexpected errors occurred during the getSmallAndLightFeePreview operation. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/Item.php b/lib/Model/SmallAndLightV1/Item.php deleted file mode 100644 index 895e70af0..000000000 --- a/lib/Model/SmallAndLightV1/Item.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'asin' => 'string', - 'price' => '\SellingPartnerApi\Model\SmallAndLightV1\MoneyType' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'asin' => null, - 'price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'asin' => 'asin', - 'price' => 'price' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'asin' => 'setAsin', - 'price' => 'setPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'asin' => 'getAsin', - 'price' => 'getPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['asin'] = $data['asin'] ?? null; - $this->container['price'] = $data['price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['asin'] === null) { - $invalidProperties[] = "'asin' can't be null"; - } - if ($this->container['price'] === null) { - $invalidProperties[] = "'price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets asin - * - * @return string - */ - public function getAsin() - { - return $this->container['asin']; - } - - /** - * Sets asin - * - * @param string $asin The Amazon Standard Identification Number (ASIN) value used to identify the item. - * - * @return self - */ - public function setAsin($asin) - { - $this->container['asin'] = $asin; - - return $this; - } - /** - * Gets price - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\MoneyType - */ - public function getPrice() - { - return $this->container['price']; - } - - /** - * Sets price - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\MoneyType $price price - * - * @return self - */ - public function setPrice($price) - { - $this->container['price'] = $price; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/MoneyType.php b/lib/Model/SmallAndLightV1/MoneyType.php deleted file mode 100644 index daee5ab15..000000000 --- a/lib/Model/SmallAndLightV1/MoneyType.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class MoneyType extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'MoneyType'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code The currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return float|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param float|null $amount The monetary value. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightEligibility.php b/lib/Model/SmallAndLightV1/SmallAndLightEligibility.php deleted file mode 100644 index e1a8232ac..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightEligibility.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SmallAndLightEligibility extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SmallAndLightEligibility'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_sku' => 'string', - 'status' => '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibilityStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_sku' => null, - 'status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'marketplace_id' => 'marketplaceId', - 'seller_sku' => 'sellerSKU', - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'marketplace_id' => 'setMarketplaceId', - 'seller_sku' => 'setSellerSku', - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'marketplace_id' => 'getMarketplaceId', - 'seller_sku' => 'getSellerSku', - 'status' => 'getStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @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. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibilityStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEligibilityStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.php b/lib/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.php deleted file mode 100644 index 0d01d6436..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightEligibilityStatus.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightEnrollment.php b/lib/Model/SmallAndLightV1/SmallAndLightEnrollment.php deleted file mode 100644 index 4e23cf9cc..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightEnrollment.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SmallAndLightEnrollment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SmallAndLightEnrollment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'seller_sku' => 'string', - 'status' => '\SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollmentStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'seller_sku' => null, - 'status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'marketplace_id' => 'marketplaceId', - 'seller_sku' => 'sellerSKU', - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'marketplace_id' => 'setMarketplaceId', - 'seller_sku' => 'setSellerSku', - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'marketplace_id' => 'getMarketplaceId', - 'seller_sku' => 'getSellerSku', - 'status' => 'getStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['seller_sku'] = $data['seller_sku'] ?? null; - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['seller_sku'] === null) { - $invalidProperties[] = "'seller_sku' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets seller_sku - * - * @return string - */ - public function getSellerSku() - { - return $this->container['seller_sku']; - } - - /** - * Sets seller_sku - * - * @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. - * - * @return self - */ - public function setSellerSku($seller_sku) - { - $this->container['seller_sku'] = $seller_sku; - - return $this; - } - /** - * Gets status - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollmentStatus - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\SmallAndLightEnrollmentStatus $status status - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.php b/lib/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.php deleted file mode 100644 index 81c4e1f6d..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightEnrollmentStatus.php +++ /dev/null @@ -1,87 +0,0 @@ -value = $value; - } - - /** - * Convert the enum value to a string. - * - * @return string - */ - public function __toString() - { - return $this->value; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.php b/lib/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.php deleted file mode 100644 index 12989ee8a..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightFeePreviewRequest.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SmallAndLightFeePreviewRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SmallAndLightFeePreviewRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'marketplace_id' => 'string', - 'items' => '\SellingPartnerApi\Model\SmallAndLightV1\Item[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'marketplace_id' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'marketplace_id' => 'marketplaceId', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'marketplace_id' => 'setMarketplaceId', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'marketplace_id' => 'getMarketplaceId', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['marketplace_id'] === null) { - $invalidProperties[] = "'marketplace_id' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - if ((count($this->container['items']) > 25)) { - $invalidProperties[] = "invalid value for 'items', number of items must be less than or equal to 25."; - } - - return $invalidProperties; - } - - - /** - * Gets marketplace_id - * - * @return string - */ - public function getMarketplaceId() - { - return $this->container['marketplace_id']; - } - - /** - * Sets marketplace_id - * - * @param string $marketplace_id A marketplace identifier. - * - * @return self - */ - public function setMarketplaceId($marketplace_id) - { - $this->container['marketplace_id'] = $marketplace_id; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\Item[] $items A list of items for which to retrieve fee estimates (limit: 25). - * - * @return self - */ - public function setItems($items) - { - - if ((count($items) > 25)) { - throw new \InvalidArgumentException('invalid value for $items when calling SmallAndLightFeePreviewRequest., number of items must be less than or equal to 25.'); - } - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/SmallAndLightV1/SmallAndLightFeePreviews.php b/lib/Model/SmallAndLightV1/SmallAndLightFeePreviews.php deleted file mode 100644 index f775209e1..000000000 --- a/lib/Model/SmallAndLightV1/SmallAndLightFeePreviews.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SmallAndLightFeePreviews extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SmallAndLightFeePreviews'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'data' => '\SellingPartnerApi\Model\SmallAndLightV1\FeePreview[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'data' => 'data' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'data' => 'setData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'data' => 'getData' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['data'] = $data['data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets data - * - * @return \SellingPartnerApi\Model\SmallAndLightV1\FeePreview[]|null - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param \SellingPartnerApi\Model\SmallAndLightV1\FeePreview[]|null $data A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed. - * - * @return self - */ - public function setData($data) - { - $this->container['data'] = $data; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.php b/lib/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.php deleted file mode 100644 index a210b36d8..000000000 --- a/lib/Model/SolicitationsV1/CreateProductReviewAndSellerFeedbackSolicitationResponse.php +++ /dev/null @@ -1,187 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * CreateProductReviewAndSellerFeedbackSolicitationResponse Class Doc Comment - * - * @category Class - * @description The response schema for the createProductReviewAndSellerFeedbackSolicitation operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateProductReviewAndSellerFeedbackSolicitationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateProductReviewAndSellerFeedbackSolicitationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\SolicitationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SolicitationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SolicitationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/Error.php b/lib/Model/SolicitationsV1/Error.php deleted file mode 100644 index 677779b62..000000000 --- a/lib/Model/SolicitationsV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * Error Class Doc Comment - * - * @category Class - * @description Error response returned when the request is unsuccessful. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSchemaResponse.php b/lib/Model/SolicitationsV1/GetSchemaResponse.php deleted file mode 100644 index 50c0ad60e..000000000 --- a/lib/Model/SolicitationsV1/GetSchemaResponse.php +++ /dev/null @@ -1,219 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSchemaResponse Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSchemaResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSchemaResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponseLinks', - 'payload' => 'map[string,object]', - 'errors' => '\SellingPartnerApi\Model\SolicitationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - '_links' => '_links', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - '_links' => 'setLinks', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - '_links' => 'getLinks', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets payload - * - * @return map[string,object]|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param map[string,object]|null $payload A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema. - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SolicitationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SolicitationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSchemaResponseLinks.php b/lib/Model/SolicitationsV1/GetSchemaResponseLinks.php deleted file mode 100644 index e58a8bfb6..000000000 --- a/lib/Model/SolicitationsV1/GetSchemaResponseLinks.php +++ /dev/null @@ -1,164 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSchemaResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSchemaResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSchemaResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\SolicitationsV1\LinkObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\SolicitationsV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\SolicitationsV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionResponse.php b/lib/Model/SolicitationsV1/GetSolicitationActionResponse.php deleted file mode 100644 index 041053429..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionResponse.php +++ /dev/null @@ -1,249 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * 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. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseLinks', - '_embedded' => '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseEmbedded', - 'payload' => '\SellingPartnerApi\Model\SolicitationsV1\SolicitationsAction', - 'errors' => '\SellingPartnerApi\Model\SolicitationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - '_embedded' => null, - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - '_links' => '_links', - '_embedded' => '_embedded', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - '_links' => 'setLinks', - '_embedded' => 'setEmbedded', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - '_links' => 'getLinks', - '_embedded' => 'getEmbedded', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['_embedded'] = $data['_embedded'] ?? null; - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets _embedded - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseEmbedded|null - */ - public function getEmbedded() - { - return $this->container['_embedded']; - } - - /** - * Sets _embedded - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponseEmbedded|null $_embedded _embedded - * - * @return self - */ - public function setEmbedded($_embedded) - { - $this->container['_embedded'] = $_embedded; - - return $this; - } - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\SolicitationsV1\SolicitationsAction|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\SolicitationsV1\SolicitationsAction|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SolicitationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SolicitationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.php b/lib/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.php deleted file mode 100644 index 48eb00999..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionResponseEmbedded.php +++ /dev/null @@ -1,161 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSolicitationActionResponseEmbedded Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionResponseEmbedded extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionResponse__embedded'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'schema' => '\SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponse' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'schema' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'schema' => 'schema' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'schema' => 'setSchema' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'schema' => 'getSchema' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['schema'] = $data['schema'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets schema - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponse|null - */ - public function getSchema() - { - return $this->container['schema']; - } - - /** - * Sets schema - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSchemaResponse|null $schema schema - * - * @return self - */ - public function setSchema($schema) - { - $this->container['schema'] = $schema; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionResponseLinks.php b/lib/Model/SolicitationsV1/GetSolicitationActionResponseLinks.php deleted file mode 100644 index e89ccd06c..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionResponseLinks.php +++ /dev/null @@ -1,196 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSolicitationActionResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\SolicitationsV1\LinkObject', - 'schema' => '\SellingPartnerApi\Model\SolicitationsV1\LinkObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null, - 'schema' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self', - 'schema' => 'schema' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf', - 'schema' => 'setSchema' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf', - 'schema' => 'getSchema' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - $this->container['schema'] = $data['schema'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - if ($this->container['schema'] === null) { - $invalidProperties[] = "'schema' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\SolicitationsV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\SolicitationsV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } - /** - * Gets schema - * - * @return \SellingPartnerApi\Model\SolicitationsV1\LinkObject - */ - public function getSchema() - { - return $this->container['schema']; - } - - /** - * Sets schema - * - * @param \SellingPartnerApi\Model\SolicitationsV1\LinkObject $schema schema - * - * @return self - */ - public function setSchema($schema) - { - $this->container['schema'] = $schema; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.php b/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.php deleted file mode 100644 index db9c024e9..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponse.php +++ /dev/null @@ -1,245 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSolicitationActionsForOrderResponse Class Doc Comment - * - * @category Class - * @description The response schema for the getSolicitationActionsForOrder operation. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionsForOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionsForOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - '_links' => '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseLinks', - '_embedded' => '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseEmbedded', - 'errors' => '\SellingPartnerApi\Model\SolicitationsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - '_links' => null, - '_embedded' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - '_links' => '_links', - '_embedded' => '_embedded', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - '_links' => 'setLinks', - '_embedded' => 'setEmbedded', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - '_links' => 'getLinks', - '_embedded' => 'getEmbedded', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['_links'] = $data['_links'] ?? null; - $this->container['_embedded'] = $data['_embedded'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets _links - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseLinks|null - */ - public function getLinks() - { - return $this->container['_links']; - } - - /** - * Sets _links - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseLinks|null $_links _links - * - * @return self - */ - public function setLinks($_links) - { - $this->container['_links'] = $_links; - - return $this; - } - /** - * Gets _embedded - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseEmbedded|null - */ - public function getEmbedded() - { - return $this->container['_embedded']; - } - - /** - * Sets _embedded - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionsForOrderResponseEmbedded|null $_embedded _embedded - * - * @return self - */ - public function setEmbedded($_embedded) - { - $this->container['_embedded'] = $_embedded; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\SolicitationsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\SolicitationsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.php b/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.php deleted file mode 100644 index 661283e09..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseEmbedded.php +++ /dev/null @@ -1,164 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSolicitationActionsForOrderResponseEmbedded Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionsForOrderResponseEmbedded extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionsForOrderResponse__embedded'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'actions' => '\SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponse[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'actions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'actions' => 'actions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'actions' => 'setActions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'actions' => 'getActions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['actions'] = $data['actions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets actions - * - * @return \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponse[] - */ - public function getActions() - { - return $this->container['actions']; - } - - /** - * Sets actions - * - * @param \SellingPartnerApi\Model\SolicitationsV1\GetSolicitationActionResponse[] $actions actions - * - * @return self - */ - public function setActions($actions) - { - $this->container['actions'] = $actions; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.php b/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.php deleted file mode 100644 index 61f2edb51..000000000 --- a/lib/Model/SolicitationsV1/GetSolicitationActionsForOrderResponseLinks.php +++ /dev/null @@ -1,196 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * GetSolicitationActionsForOrderResponseLinks Class Doc Comment - * - * @category Class - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class GetSolicitationActionsForOrderResponseLinks extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetSolicitationActionsForOrderResponse__links'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'self' => '\SellingPartnerApi\Model\SolicitationsV1\LinkObject', - 'actions' => '\SellingPartnerApi\Model\SolicitationsV1\LinkObject[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'self' => null, - 'actions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'self' => 'self', - 'actions' => 'actions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'self' => 'setSelf', - 'actions' => 'setActions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'self' => 'getSelf', - 'actions' => 'getActions' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['self'] = $data['self'] ?? null; - $this->container['actions'] = $data['actions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['self'] === null) { - $invalidProperties[] = "'self' can't be null"; - } - if ($this->container['actions'] === null) { - $invalidProperties[] = "'actions' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets self - * - * @return \SellingPartnerApi\Model\SolicitationsV1\LinkObject - */ - public function getSelf() - { - return $this->container['self']; - } - - /** - * Sets self - * - * @param \SellingPartnerApi\Model\SolicitationsV1\LinkObject $self self - * - * @return self - */ - public function setSelf($self) - { - $this->container['self'] = $self; - - return $this; - } - /** - * Gets actions - * - * @return \SellingPartnerApi\Model\SolicitationsV1\LinkObject[] - */ - public function getActions() - { - return $this->container['actions']; - } - - /** - * Sets actions - * - * @param \SellingPartnerApi\Model\SolicitationsV1\LinkObject[] $actions Eligible actions for the specified amazonOrderId. - * - * @return self - */ - public function setActions($actions) - { - $this->container['actions'] = $actions; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/LinkObject.php b/lib/Model/SolicitationsV1/LinkObject.php deleted file mode 100644 index d7513940d..000000000 --- a/lib/Model/SolicitationsV1/LinkObject.php +++ /dev/null @@ -1,194 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * LinkObject Class Doc Comment - * - * @category Class - * @description A Link object. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class LinkObject extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LinkObject'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'href' => 'string', - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'href' => null, - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'href' => 'href', - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'href' => 'setHref', - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'href' => 'getHref', - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['href'] = $data['href'] ?? null; - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['href'] === null) { - $invalidProperties[] = "'href' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets href - * - * @return string - */ - public function getHref() - { - return $this->container['href']; - } - - /** - * Sets href - * - * @param string $href A URI for this object. - * - * @return self - */ - public function setHref($href) - { - $this->container['href'] = $href; - - return $this; - } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name An identifier for this object. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/SolicitationsV1/SolicitationsAction.php b/lib/Model/SolicitationsV1/SolicitationsAction.php deleted file mode 100644 index cb43dd4a4..000000000 --- a/lib/Model/SolicitationsV1/SolicitationsAction.php +++ /dev/null @@ -1,165 +0,0 @@ -JSON Hypertext Application Language (HAL) standard. - * - * The version of the OpenAPI document: v1 - * - * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 5.0.1 - */ - -/** - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -namespace SellingPartnerApi\Model\SolicitationsV1; -use ArrayAccess; -use SellingPartnerApi\Model\BaseModel; -use SellingPartnerApi\Model\ModelInterface; - -/** - * SolicitationsAction Class Doc Comment - * - * @category Class - * @description A simple object containing the name of the template. - * @package SellingPartnerApi - * @group - * @implements \ArrayAccess - * @template TKey int|null - * @template TValue mixed|null - */ -class SolicitationsAction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SolicitationsAction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name name - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } -} - - diff --git a/lib/Model/TokensV20210301/CreateRestrictedDataTokenRequest.php b/lib/Model/TokensV20210301/CreateRestrictedDataTokenRequest.php deleted file mode 100644 index ebfd7e808..000000000 --- a/lib/Model/TokensV20210301/CreateRestrictedDataTokenRequest.php +++ /dev/null @@ -1,195 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateRestrictedDataTokenRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateRestrictedDataTokenRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'target_application' => 'string', - 'restricted_resources' => '\SellingPartnerApi\Model\TokensV20210301\RestrictedResource[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'target_application' => null, - 'restricted_resources' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'target_application' => 'targetApplication', - 'restricted_resources' => 'restrictedResources' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'target_application' => 'setTargetApplication', - 'restricted_resources' => 'setRestrictedResources' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'target_application' => 'getTargetApplication', - 'restricted_resources' => 'getRestrictedResources' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['target_application'] = $data['target_application'] ?? null; - $this->container['restricted_resources'] = $data['restricted_resources'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['restricted_resources'] === null) { - $invalidProperties[] = "'restricted_resources' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets target_application - * - * @return string|null - */ - public function getTargetApplication() - { - return $this->container['target_application']; - } - - /** - * Sets target_application - * - * @param string|null $target_application The application ID for the target application to which access is being delegated. - * - * @return self - */ - public function setTargetApplication($target_application) - { - $this->container['target_application'] = $target_application; - - return $this; - } - /** - * Gets restricted_resources - * - * @return \SellingPartnerApi\Model\TokensV20210301\RestrictedResource[] - */ - public function getRestrictedResources() - { - return $this->container['restricted_resources']; - } - - /** - * Sets restricted_resources - * - * @param \SellingPartnerApi\Model\TokensV20210301\RestrictedResource[] $restricted_resources A list of restricted resources. - * Maximum: 50 - * - * @return self - */ - public function setRestrictedResources($restricted_resources) - { - $this->container['restricted_resources'] = $restricted_resources; - - return $this; - } -} - - diff --git a/lib/Model/TokensV20210301/CreateRestrictedDataTokenResponse.php b/lib/Model/TokensV20210301/CreateRestrictedDataTokenResponse.php deleted file mode 100644 index 7bce4af42..000000000 --- a/lib/Model/TokensV20210301/CreateRestrictedDataTokenResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateRestrictedDataTokenResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateRestrictedDataTokenResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'restricted_data_token' => 'string', - 'expires_in' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'restricted_data_token' => null, - 'expires_in' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'restricted_data_token' => 'restrictedDataToken', - 'expires_in' => 'expiresIn' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'restricted_data_token' => 'setRestrictedDataToken', - 'expires_in' => 'setExpiresIn' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'restricted_data_token' => 'getRestrictedDataToken', - 'expires_in' => 'getExpiresIn' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['restricted_data_token'] = $data['restricted_data_token'] ?? null; - $this->container['expires_in'] = $data['expires_in'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets restricted_data_token - * - * @return string|null - */ - public function getRestrictedDataToken() - { - return $this->container['restricted_data_token']; - } - - /** - * Sets restricted_data_token - * - * @param string|null $restricted_data_token A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources. - * - * @return self - */ - public function setRestrictedDataToken($restricted_data_token) - { - $this->container['restricted_data_token'] = $restricted_data_token; - - return $this; - } - /** - * Gets expires_in - * - * @return int|null - */ - public function getExpiresIn() - { - return $this->container['expires_in']; - } - - /** - * Sets expires_in - * - * @param int|null $expires_in The lifetime of the Restricted Data Token, in seconds. - * - * @return self - */ - public function setExpiresIn($expires_in) - { - $this->container['expires_in'] = $expires_in; - - return $this; - } -} - - diff --git a/lib/Model/TokensV20210301/Error.php b/lib/Model/TokensV20210301/Error.php deleted file mode 100644 index d9fe1adb6..000000000 --- a/lib/Model/TokensV20210301/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/TokensV20210301/ErrorList.php b/lib/Model/TokensV20210301/ErrorList.php deleted file mode 100644 index ba1b3d6ec..000000000 --- a/lib/Model/TokensV20210301/ErrorList.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\TokensV20210301\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\TokensV20210301\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\TokensV20210301\Error[]|null $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/TokensV20210301/RestrictedResource.php b/lib/Model/TokensV20210301/RestrictedResource.php deleted file mode 100644 index 5d3234379..000000000 --- a/lib/Model/TokensV20210301/RestrictedResource.php +++ /dev/null @@ -1,282 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class RestrictedResource extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'RestrictedResource'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'method' => 'string', - 'path' => 'string', - 'data_elements' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'method' => null, - 'path' => null, - 'data_elements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'method' => 'method', - 'path' => 'path', - 'data_elements' => 'dataElements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'method' => 'setMethod', - 'path' => 'setPath', - 'data_elements' => 'setDataElements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'method' => 'getMethod', - 'path' => 'getPath', - 'data_elements' => 'getDataElements' - ]; - - - - const METHOD_GET = 'GET'; - const METHOD_PUT = 'PUT'; - const METHOD_POST = 'POST'; - const METHOD_DELETE = 'DELETE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMethodAllowableValues() - { - $baseVals = [ - self::METHOD_GET, - self::METHOD_PUT, - self::METHOD_POST, - self::METHOD_DELETE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['method'] = $data['method'] ?? null; - $this->container['path'] = $data['path'] ?? null; - $this->container['data_elements'] = $data['data_elements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['method'] === null) { - $invalidProperties[] = "'method' can't be null"; - } - $allowedValues = $this->getMethodAllowableValues(); - if ( - !is_null($this->container['method']) && - !in_array(strtoupper($this->container['method']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'method', must be one of '%s'", - $this->container['method'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['path'] === null) { - $invalidProperties[] = "'path' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets method - * - * @return string - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param string $method The HTTP method in the restricted resource. - * - * @return self - */ - public function setMethod($method) - { - $allowedValues = $this->getMethodAllowableValues(); - if (!in_array(strtoupper($method), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'method', must be one of '%s'", - $method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['method'] = $method; - - return $this; - } - /** - * Gets path - * - * @return string - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string $path The path in the restricted resource. Here are some path examples: - * - ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders. - * - ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order. - * - ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order. - * - ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment. - * - ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - /** - * Gets data_elements - * - * @return string[]|null - */ - public function getDataElements() - { - return $this->container['data_elements']; - } - - /** - * Sets data_elements - * - * @param string[]|null $data_elements Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide). Possible values include: - * - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available. - * - **shippingAddress**. This includes information for fulfilling orders. - * - **buyerTaxInformation**. This includes information for issuing tax invoices. - * - * @return self - */ - public function setDataElements($data_elements) - { - $this->container['data_elements'] = $data_elements; - - return $this; - } -} - - diff --git a/lib/Model/UploadsV20201101/CreateUploadDestinationResponse.php b/lib/Model/UploadsV20201101/CreateUploadDestinationResponse.php deleted file mode 100644 index 99f325c59..000000000 --- a/lib/Model/UploadsV20201101/CreateUploadDestinationResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateUploadDestinationResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateUploadDestinationResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\UploadsV20201101\UploadDestination', - 'errors' => '\SellingPartnerApi\Model\UploadsV20201101\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\UploadsV20201101\UploadDestination|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\UploadsV20201101\UploadDestination|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\UploadsV20201101\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\UploadsV20201101\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/UploadsV20201101/Error.php b/lib/Model/UploadsV20201101/Error.php deleted file mode 100644 index d8c369cc9..000000000 --- a/lib/Model/UploadsV20201101/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition in a human-readable form. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/UploadsV20201101/UploadDestination.php b/lib/Model/UploadsV20201101/UploadDestination.php deleted file mode 100644 index 67ecd6652..000000000 --- a/lib/Model/UploadsV20201101/UploadDestination.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class UploadDestination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'UploadDestination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'upload_destination_id' => 'string', - 'url' => 'string', - 'headers' => 'object' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'upload_destination_id' => null, - 'url' => null, - 'headers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'upload_destination_id' => 'uploadDestinationId', - 'url' => 'url', - 'headers' => 'headers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'upload_destination_id' => 'setUploadDestinationId', - 'url' => 'setUrl', - 'headers' => 'setHeaders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'upload_destination_id' => 'getUploadDestinationId', - 'url' => 'getUrl', - 'headers' => 'getHeaders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['upload_destination_id'] = $data['upload_destination_id'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['headers'] = $data['headers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets upload_destination_id - * - * @return string|null - */ - public function getUploadDestinationId() - { - return $this->container['upload_destination_id']; - } - - /** - * Sets upload_destination_id - * - * @param string|null $upload_destination_id The unique identifier for the upload destination. - * - * @return self - */ - public function setUploadDestinationId($upload_destination_id) - { - $this->container['upload_destination_id'] = $upload_destination_id; - - return $this; - } - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL for the upload destination. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Gets headers - * - * @return object|null - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets headers - * - * @param object|null $headers The headers to include in the upload request. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/Error.php b/lib/Model/VendorDirectFulfillmentInventoryV1/Error.php deleted file mode 100644 index 35b76af95..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.php b/lib/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.php deleted file mode 100644 index 4a95d967f..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/InventoryUpdate.php +++ /dev/null @@ -1,228 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InventoryUpdate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InventoryUpdate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\PartyIdentification', - 'is_full_update' => 'bool', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_party' => null, - 'is_full_update' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_party' => 'sellingParty', - 'is_full_update' => 'isFullUpdate', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_party' => 'setSellingParty', - 'is_full_update' => 'setIsFullUpdate', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_party' => 'getSellingParty', - 'is_full_update' => 'getIsFullUpdate', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['is_full_update'] = $data['is_full_update'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['is_full_update'] === null) { - $invalidProperties[] = "'is_full_update' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets is_full_update - * - * @return bool - */ - public function getIsFullUpdate() - { - return $this->container['is_full_update']; - } - - /** - * Sets is_full_update - * - * @param bool $is_full_update When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged. - * - * @return self - */ - public function setIsFullUpdate($is_full_update) - { - $this->container['is_full_update'] = $is_full_update; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemDetails[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemDetails[] $items A list of inventory items with updated details, including quantity available. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.php b/lib/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.php deleted file mode 100644 index 0d66ae32d..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/ItemDetails.php +++ /dev/null @@ -1,252 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'available_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemQuantity', - 'is_obsolete' => 'bool' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'available_quantity' => null, - 'is_obsolete' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'available_quantity' => 'availableQuantity', - 'is_obsolete' => 'isObsolete' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'available_quantity' => 'setAvailableQuantity', - 'is_obsolete' => 'setIsObsolete' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'available_quantity' => 'getAvailableQuantity', - 'is_obsolete' => 'getIsObsolete' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['available_quantity'] = $data['available_quantity'] ?? null; - $this->container['is_obsolete'] = $data['is_obsolete'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['available_quantity'] === null) { - $invalidProperties[] = "'available_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier The buyer selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets available_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemQuantity - */ - public function getAvailableQuantity() - { - return $this->container['available_quantity']; - } - - /** - * Sets available_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\ItemQuantity $available_quantity available_quantity - * - * @return self - */ - public function setAvailableQuantity($available_quantity) - { - $this->container['available_quantity'] = $available_quantity; - - return $this; - } - /** - * Gets is_obsolete - * - * @return bool|null - */ - public function getIsObsolete() - { - return $this->container['is_obsolete']; - } - - /** - * Sets is_obsolete - * - * @param bool|null $is_obsolete When true, the item is permanently unavailable. - * - * @return self - */ - public function setIsObsolete($is_obsolete) - { - $this->container['is_obsolete'] = $is_obsolete; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.php deleted file mode 100644 index 32f81c92a..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/ItemQuantity.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int|null $amount Quantity of units available for a specific item. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the available quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.php deleted file mode 100644 index 5ae0f769d..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/PartyIdentification.php +++ /dev/null @@ -1,164 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.php b/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.php deleted file mode 100644 index 03b3dde28..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInventoryUpdateRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInventoryUpdateRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'inventory' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\InventoryUpdate' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'inventory' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'inventory' => 'inventory' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'inventory' => 'setInventory' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'inventory' => 'getInventory' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['inventory'] = $data['inventory'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets inventory - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\InventoryUpdate|null - */ - public function getInventory() - { - return $this->container['inventory']; - } - - /** - * Sets inventory - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\InventoryUpdate|null $inventory inventory - * - * @return self - */ - public function setInventory($inventory) - { - $this->container['inventory'] = $inventory; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.php b/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.php deleted file mode 100644 index 73f6d1eb1..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/SubmitInventoryUpdateResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInventoryUpdateResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInventoryUpdateResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentInventoryV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.php b/lib/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.php deleted file mode 100644 index 19876b8cc..000000000 --- a/lib/Model/VendorDirectFulfillmentInventoryV1/TransactionReference.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.php b/lib/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.php deleted file mode 100644 index f40adeabd..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/AcknowledgementStatus.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AcknowledgementStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AcknowledgementStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'description' => 'description' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'description' => 'setDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'description' => 'getDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['description'] = $data['description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description Reason for the acknowledgement code. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/Address.php b/lib/Model/VendorDirectFulfillmentOrdersV1/Address.php deleted file mode 100644 index e6a06641c..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/Address.php +++ /dev/null @@ -1,493 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'attention' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'attention' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'attention' => 'attention', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'attention' => 'setAttention', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'attention' => 'getAttention', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['attention'] = $data['attention'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets attention - * - * @return string|null - */ - public function getAttention() - { - return $this->container['attention']; - } - - /** - * Sets attention - * - * @param string|null $attention The attention name of the person at that address. - * - * @return self - */ - public function setAttention($attention) - { - $this->container['attention'] = $attention; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/Error.php b/lib/Model/VendorDirectFulfillmentOrdersV1/Error.php deleted file mode 100644 index 9d035f827..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.php b/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.php deleted file mode 100644 index 4d40edcbb..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrderResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.php b/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.php deleted file mode 100644 index efd920305..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/GetOrdersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetOrdersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetOrdersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderList', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.php deleted file mode 100644 index 923c76bf6..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/GiftDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GiftDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GiftDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'gift_message' => 'string', - 'gift_wrap_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'gift_message' => null, - 'gift_wrap_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'gift_message' => 'giftMessage', - 'gift_wrap_id' => 'giftWrapId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'gift_message' => 'setGiftMessage', - 'gift_wrap_id' => 'setGiftWrapId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'gift_message' => 'getGiftMessage', - 'gift_wrap_id' => 'getGiftWrapId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['gift_message'] = $data['gift_message'] ?? null; - $this->container['gift_wrap_id'] = $data['gift_wrap_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets gift_message - * - * @return string|null - */ - public function getGiftMessage() - { - return $this->container['gift_message']; - } - - /** - * Sets gift_message - * - * @param string|null $gift_message Gift message to be printed in shipment. - * - * @return self - */ - public function setGiftMessage($gift_message) - { - $this->container['gift_message'] = $gift_message; - - return $this; - } - /** - * Gets gift_wrap_id - * - * @return string|null - */ - public function getGiftWrapId() - { - return $this->container['gift_wrap_id']; - } - - /** - * Sets gift_wrap_id - * - * @param string|null $gift_wrap_id Gift wrap identifier for the gift wrapping, if any. - * - * @return self - */ - public function setGiftWrapId($gift_wrap_id) - { - $this->container['gift_wrap_id'] = $gift_wrap_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.php deleted file mode 100644 index b979121a8..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/ItemQuantity.php +++ /dev/null @@ -1,233 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - const UNIT_OF_MEASURE_EACH = 'Each'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_EACH, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int|null $amount Acknowledged quantity. This value should not be zero. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string|null - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string|null $unit_of_measure Unit of measure for the acknowledged quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!is_null($unit_of_measure) &&!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/Money.php b/lib/Model/VendorDirectFulfillmentOrdersV1/Money.php deleted file mode 100644 index 2065cd032..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/Money.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code Three digit currency code in ISO 4217 format. String of length 3. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/Order.php b/lib/Model/VendorDirectFulfillmentOrdersV1/Order.php deleted file mode 100644 index 574439338..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/Order.php +++ /dev/null @@ -1,193 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Order extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Order'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'order_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'order_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'order_details' => 'orderDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'order_details' => 'setOrderDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'order_details' => 'getOrderDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['order_details'] = $data['order_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets order_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetails|null - */ - public function getOrderDetails() - { - return $this->container['order_details']; - } - - /** - * Sets order_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetails|null $order_details order_details - * - * @return self - */ - public function setOrderDetails($order_details) - { - $this->container['order_details'] = $order_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.php deleted file mode 100644 index cd022a567..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderAcknowledgementItem.php +++ /dev/null @@ -1,357 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderAcknowledgementItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderAcknowledgementItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'vendor_order_number' => 'string', - 'acknowledgement_date' => 'string', - 'acknowledgement_status' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\AcknowledgementStatus', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification', - 'item_acknowledgements' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemAcknowledgement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'vendor_order_number' => null, - 'acknowledgement_date' => null, - 'acknowledgement_status' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'item_acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'vendor_order_number' => 'vendorOrderNumber', - 'acknowledgement_date' => 'acknowledgementDate', - 'acknowledgement_status' => 'acknowledgementStatus', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'item_acknowledgements' => 'itemAcknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'vendor_order_number' => 'setVendorOrderNumber', - 'acknowledgement_date' => 'setAcknowledgementDate', - 'acknowledgement_status' => 'setAcknowledgementStatus', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'item_acknowledgements' => 'setItemAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'vendor_order_number' => 'getVendorOrderNumber', - 'acknowledgement_date' => 'getAcknowledgementDate', - 'acknowledgement_status' => 'getAcknowledgementStatus', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'item_acknowledgements' => 'getItemAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['vendor_order_number'] = $data['vendor_order_number'] ?? null; - $this->container['acknowledgement_date'] = $data['acknowledgement_date'] ?? null; - $this->container['acknowledgement_status'] = $data['acknowledgement_status'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['item_acknowledgements'] = $data['item_acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if ($this->container['vendor_order_number'] === null) { - $invalidProperties[] = "'vendor_order_number' can't be null"; - } - if ($this->container['acknowledgement_date'] === null) { - $invalidProperties[] = "'acknowledgement_date' can't be null"; - } - if ($this->container['acknowledgement_status'] === null) { - $invalidProperties[] = "'acknowledgement_status' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['item_acknowledgements'] === null) { - $invalidProperties[] = "'item_acknowledgements' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets vendor_order_number - * - * @return string - */ - public function getVendorOrderNumber() - { - return $this->container['vendor_order_number']; - } - - /** - * Sets vendor_order_number - * - * @param string $vendor_order_number The vendor's order number for this order. - * - * @return self - */ - public function setVendorOrderNumber($vendor_order_number) - { - $this->container['vendor_order_number'] = $vendor_order_number; - - return $this; - } - /** - * Gets acknowledgement_date - * - * @return string - */ - public function getAcknowledgementDate() - { - return $this->container['acknowledgement_date']; - } - - /** - * Sets acknowledgement_date - * - * @param string $acknowledgement_date The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. - * - * @return self - */ - public function setAcknowledgementDate($acknowledgement_date) - { - $this->container['acknowledgement_date'] = $acknowledgement_date; - - return $this; - } - /** - * Gets acknowledgement_status - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\AcknowledgementStatus - */ - public function getAcknowledgementStatus() - { - return $this->container['acknowledgement_status']; - } - - /** - * Sets acknowledgement_status - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\AcknowledgementStatus $acknowledgement_status acknowledgement_status - * - * @return self - */ - public function setAcknowledgementStatus($acknowledgement_status) - { - $this->container['acknowledgement_status'] = $acknowledgement_status; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets item_acknowledgements - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemAcknowledgement[] - */ - public function getItemAcknowledgements() - { - return $this->container['item_acknowledgements']; - } - - /** - * Sets item_acknowledgements - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemAcknowledgement[] $item_acknowledgements Item details including acknowledged quantity. - * - * @return self - */ - public function setItemAcknowledgements($item_acknowledgements) - { - $this->container['item_acknowledgements'] = $item_acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.php deleted file mode 100644 index e51f4ed41..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetails.php +++ /dev/null @@ -1,495 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'customer_order_number' => 'string', - 'order_date' => 'string', - 'order_status' => 'string', - 'shipment_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDetails', - 'tax_total' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetailsTaxTotal', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address', - 'bill_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'customer_order_number' => null, - 'order_date' => null, - 'order_status' => null, - 'shipment_details' => null, - 'tax_total' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'ship_to_party' => null, - 'bill_to_party' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'customer_order_number' => 'customerOrderNumber', - 'order_date' => 'orderDate', - 'order_status' => 'orderStatus', - 'shipment_details' => 'shipmentDetails', - 'tax_total' => 'taxTotal', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'ship_to_party' => 'shipToParty', - 'bill_to_party' => 'billToParty', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'customer_order_number' => 'setCustomerOrderNumber', - 'order_date' => 'setOrderDate', - 'order_status' => 'setOrderStatus', - 'shipment_details' => 'setShipmentDetails', - 'tax_total' => 'setTaxTotal', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'ship_to_party' => 'setShipToParty', - 'bill_to_party' => 'setBillToParty', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'customer_order_number' => 'getCustomerOrderNumber', - 'order_date' => 'getOrderDate', - 'order_status' => 'getOrderStatus', - 'shipment_details' => 'getShipmentDetails', - 'tax_total' => 'getTaxTotal', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'ship_to_party' => 'getShipToParty', - 'bill_to_party' => 'getBillToParty', - 'items' => 'getItems' - ]; - - - - const ORDER_STATUS__NEW = 'NEW'; - const ORDER_STATUS_SHIPPED = 'SHIPPED'; - const ORDER_STATUS_ACCEPTED = 'ACCEPTED'; - const ORDER_STATUS_CANCELLED = 'CANCELLED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOrderStatusAllowableValues() - { - $baseVals = [ - self::ORDER_STATUS__NEW, - self::ORDER_STATUS_SHIPPED, - self::ORDER_STATUS_ACCEPTED, - self::ORDER_STATUS_CANCELLED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['customer_order_number'] = $data['customer_order_number'] ?? null; - $this->container['order_date'] = $data['order_date'] ?? null; - $this->container['order_status'] = $data['order_status'] ?? null; - $this->container['shipment_details'] = $data['shipment_details'] ?? null; - $this->container['tax_total'] = $data['tax_total'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['bill_to_party'] = $data['bill_to_party'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['customer_order_number'] === null) { - $invalidProperties[] = "'customer_order_number' can't be null"; - } - if ($this->container['order_date'] === null) { - $invalidProperties[] = "'order_date' can't be null"; - } - $allowedValues = $this->getOrderStatusAllowableValues(); - if ( - !is_null($this->container['order_status']) && - !in_array(strtoupper($this->container['order_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'order_status', must be one of '%s'", - $this->container['order_status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['shipment_details'] === null) { - $invalidProperties[] = "'shipment_details' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['ship_to_party'] === null) { - $invalidProperties[] = "'ship_to_party' can't be null"; - } - if ($this->container['bill_to_party'] === null) { - $invalidProperties[] = "'bill_to_party' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets customer_order_number - * - * @return string - */ - public function getCustomerOrderNumber() - { - return $this->container['customer_order_number']; - } - - /** - * Sets customer_order_number - * - * @param string $customer_order_number The customer order number. - * - * @return self - */ - public function setCustomerOrderNumber($customer_order_number) - { - $this->container['customer_order_number'] = $customer_order_number; - - return $this; - } - /** - * Gets order_date - * - * @return string - */ - public function getOrderDate() - { - return $this->container['order_date']; - } - - /** - * Sets order_date - * - * @param string $order_date The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. - * - * @return self - */ - public function setOrderDate($order_date) - { - $this->container['order_date'] = $order_date; - - return $this; - } - /** - * Gets order_status - * - * @return string|null - */ - public function getOrderStatus() - { - return $this->container['order_status']; - } - - /** - * Sets order_status - * - * @param string|null $order_status Current status of the order. - * - * @return self - */ - public function setOrderStatus($order_status) - { - $allowedValues = $this->getOrderStatusAllowableValues(); - if (!is_null($order_status) &&!in_array(strtoupper($order_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'order_status', must be one of '%s'", - $order_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['order_status'] = $order_status; - - return $this; - } - /** - * Gets shipment_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDetails - */ - public function getShipmentDetails() - { - return $this->container['shipment_details']; - } - - /** - * Sets shipment_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDetails $shipment_details shipment_details - * - * @return self - */ - public function setShipmentDetails($shipment_details) - { - $this->container['shipment_details'] = $shipment_details; - - return $this; - } - /** - * Gets tax_total - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetailsTaxTotal|null - */ - public function getTaxTotal() - { - return $this->container['tax_total']; - } - - /** - * Sets tax_total - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderDetailsTaxTotal|null $tax_total tax_total - * - * @return self - */ - public function setTaxTotal($tax_total) - { - $this->container['tax_total'] = $tax_total; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets bill_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification - */ - public function getBillToParty() - { - return $this->container['bill_to_party']; - } - - /** - * Sets bill_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\PartyIdentification $bill_to_party bill_to_party - * - * @return self - */ - public function setBillToParty($bill_to_party) - { - $this->container['bill_to_party'] = $bill_to_party; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItem[] $items A list of items in this purchase order. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.php deleted file mode 100644 index 6bcb406ea..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderDetailsTaxTotal.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderDetailsTaxTotal extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderDetails_taxTotal'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_line_item' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_line_item' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_line_item' => 'taxLineItem' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_line_item' => 'setTaxLineItem' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_line_item' => 'getTaxLineItem' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_line_item'] = $data['tax_line_item'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets tax_line_item - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]|null - */ - public function getTaxLineItem() - { - return $this->container['tax_line_item']; - } - - /** - * Sets tax_line_item - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]|null $tax_line_item A list of tax line items. - * - * @return self - */ - public function setTaxLineItem($tax_line_item) - { - $this->container['tax_line_item'] = $tax_line_item; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItem.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItem.php deleted file mode 100644 index bf1caacc6..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItem.php +++ /dev/null @@ -1,431 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'title' => 'string', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity', - 'scheduled_delivery_shipment' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ScheduledDeliveryShipment', - 'gift_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GiftDetails', - 'net_price' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemTaxDetails', - 'total_price' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'title' => null, - 'ordered_quantity' => null, - 'scheduled_delivery_shipment' => null, - 'gift_details' => null, - 'net_price' => null, - 'tax_details' => null, - 'total_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'title' => 'title', - 'ordered_quantity' => 'orderedQuantity', - 'scheduled_delivery_shipment' => 'scheduledDeliveryShipment', - 'gift_details' => 'giftDetails', - 'net_price' => 'netPrice', - 'tax_details' => 'taxDetails', - 'total_price' => 'totalPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'title' => 'setTitle', - 'ordered_quantity' => 'setOrderedQuantity', - 'scheduled_delivery_shipment' => 'setScheduledDeliveryShipment', - 'gift_details' => 'setGiftDetails', - 'net_price' => 'setNetPrice', - 'tax_details' => 'setTaxDetails', - 'total_price' => 'setTotalPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'title' => 'getTitle', - 'ordered_quantity' => 'getOrderedQuantity', - 'scheduled_delivery_shipment' => 'getScheduledDeliveryShipment', - 'gift_details' => 'getGiftDetails', - 'net_price' => 'getNetPrice', - 'tax_details' => 'getTaxDetails', - 'total_price' => 'getTotalPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['scheduled_delivery_shipment'] = $data['scheduled_delivery_shipment'] ?? null; - $this->container['gift_details'] = $data['gift_details'] ?? null; - $this->container['net_price'] = $data['net_price'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['total_price'] = $data['total_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['ordered_quantity'] === null) { - $invalidProperties[] = "'ordered_quantity' can't be null"; - } - if ($this->container['net_price'] === null) { - $invalidProperties[] = "'net_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's standard identification number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title Title for the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets scheduled_delivery_shipment - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ScheduledDeliveryShipment|null - */ - public function getScheduledDeliveryShipment() - { - return $this->container['scheduled_delivery_shipment']; - } - - /** - * Sets scheduled_delivery_shipment - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ScheduledDeliveryShipment|null $scheduled_delivery_shipment scheduled_delivery_shipment - * - * @return self - */ - public function setScheduledDeliveryShipment($scheduled_delivery_shipment) - { - $this->container['scheduled_delivery_shipment'] = $scheduled_delivery_shipment; - - return $this; - } - /** - * Gets gift_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GiftDetails|null - */ - public function getGiftDetails() - { - return $this->container['gift_details']; - } - - /** - * Sets gift_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\GiftDetails|null $gift_details gift_details - * - * @return self - */ - public function setGiftDetails($gift_details) - { - $this->container['gift_details'] = $gift_details; - - return $this; - } - /** - * Gets net_price - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money - */ - public function getNetPrice() - { - return $this->container['net_price']; - } - - /** - * Sets net_price - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money $net_price net_price - * - * @return self - */ - public function setNetPrice($net_price) - { - $this->container['net_price'] = $net_price; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemTaxDetails|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderItemTaxDetails|null $tax_details tax_details - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets total_price - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money|null - */ - public function getTotalPrice() - { - return $this->container['total_price']; - } - - /** - * Sets total_price - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money|null $total_price total_price - * - * @return self - */ - public function setTotalPrice($total_price) - { - $this->container['total_price'] = $total_price; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.php deleted file mode 100644 index e20cb420f..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemAcknowledgement.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemAcknowledgement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemAcknowledgement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'acknowledged_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'acknowledged_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'acknowledged_quantity' => 'acknowledgedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'acknowledged_quantity' => 'setAcknowledgedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'acknowledged_quantity' => 'getAcknowledgedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['acknowledged_quantity'] = $data['acknowledged_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['acknowledged_quantity'] === null) { - $invalidProperties[] = "'acknowledged_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Line item sequence number for the item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's standard identification number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was provided in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets acknowledged_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity - */ - public function getAcknowledgedQuantity() - { - return $this->container['acknowledged_quantity']; - } - - /** - * Sets acknowledged_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ItemQuantity $acknowledged_quantity acknowledged_quantity - * - * @return self - */ - public function setAcknowledgedQuantity($acknowledged_quantity) - { - $this->container['acknowledged_quantity'] = $acknowledged_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.php deleted file mode 100644 index 717e8efb4..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderItemTaxDetails.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemTaxDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItem_taxDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_line_item' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_line_item' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_line_item' => 'taxLineItem' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_line_item' => 'setTaxLineItem' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_line_item' => 'getTaxLineItem' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_line_item'] = $data['tax_line_item'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets tax_line_item - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]|null - */ - public function getTaxLineItem() - { - return $this->container['tax_line_item']; - } - - /** - * Sets tax_line_item - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxDetails[]|null $tax_line_item A list of tax line items. - * - * @return self - */ - public function setTaxLineItem($tax_line_item) - { - $this->container['tax_line_item'] = $tax_line_item; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderList.php b/lib/Model/VendorDirectFulfillmentOrdersV1/OrderList.php deleted file mode 100644 index 64cb4c392..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/OrderList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Pagination', - 'orders' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'orders' => 'orders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'orders' => 'setOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'orders' => 'getOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['orders'] = $data['orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order[]|null - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Order[]|null $orders orders - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/Pagination.php b/lib/Model/VendorDirectFulfillmentOrdersV1/Pagination.php deleted file mode 100644 index 6795876c0..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.php deleted file mode 100644 index 8fdba257a..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address', - 'tax_info' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxRegistrationDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_info' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_info' => 'taxInfo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_info' => 'setTaxInfo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_info' => 'getTaxInfo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_info'] = $data['tax_info'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_info - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxRegistrationDetails|null - */ - public function getTaxInfo() - { - return $this->container['tax_info']; - } - - /** - * Sets tax_info - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TaxRegistrationDetails|null $tax_info tax_info - * - * @return self - */ - public function setTaxInfo($tax_info) - { - $this->container['tax_info'] = $tax_info; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.php b/lib/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.php deleted file mode 100644 index 5a6b44e8c..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/ScheduledDeliveryShipment.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ScheduledDeliveryShipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ScheduledDeliveryShipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduled_delivery_service_type' => 'string', - 'earliest_nominated_delivery_date' => 'string', - 'latest_nominated_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduled_delivery_service_type' => null, - 'earliest_nominated_delivery_date' => null, - 'latest_nominated_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scheduled_delivery_service_type' => 'scheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'earliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'latestNominatedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scheduled_delivery_service_type' => 'setScheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'setEarliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'setLatestNominatedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scheduled_delivery_service_type' => 'getScheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'getEarliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'getLatestNominatedDeliveryDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduled_delivery_service_type'] = $data['scheduled_delivery_service_type'] ?? null; - $this->container['earliest_nominated_delivery_date'] = $data['earliest_nominated_delivery_date'] ?? null; - $this->container['latest_nominated_delivery_date'] = $data['latest_nominated_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets scheduled_delivery_service_type - * - * @return string|null - */ - public function getScheduledDeliveryServiceType() - { - return $this->container['scheduled_delivery_service_type']; - } - - /** - * Sets scheduled_delivery_service_type - * - * @param string|null $scheduled_delivery_service_type Scheduled delivery service type. - * - * @return self - */ - public function setScheduledDeliveryServiceType($scheduled_delivery_service_type) - { - $this->container['scheduled_delivery_service_type'] = $scheduled_delivery_service_type; - - return $this; - } - /** - * Gets earliest_nominated_delivery_date - * - * @return string|null - */ - public function getEarliestNominatedDeliveryDate() - { - return $this->container['earliest_nominated_delivery_date']; - } - - /** - * Sets earliest_nominated_delivery_date - * - * @param string|null $earliest_nominated_delivery_date Earliest nominated delivery date for the scheduled delivery, in ISO 8601 format. - * - * @return self - */ - public function setEarliestNominatedDeliveryDate($earliest_nominated_delivery_date) - { - $this->container['earliest_nominated_delivery_date'] = $earliest_nominated_delivery_date; - - return $this; - } - /** - * Gets latest_nominated_delivery_date - * - * @return string|null - */ - public function getLatestNominatedDeliveryDate() - { - return $this->container['latest_nominated_delivery_date']; - } - - /** - * Sets latest_nominated_delivery_date - * - * @param string|null $latest_nominated_delivery_date Latest nominated delivery date for the scheduled delivery, in ISO 8601 format. - * - * @return self - */ - public function setLatestNominatedDeliveryDate($latest_nominated_delivery_date) - { - $this->container['latest_nominated_delivery_date'] = $latest_nominated_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.php b/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.php deleted file mode 100644 index 5340ad6c0..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDates.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDates extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDates'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'required_ship_date' => 'string', - 'promised_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'required_ship_date' => null, - 'promised_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'required_ship_date' => 'requiredShipDate', - 'promised_delivery_date' => 'promisedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'required_ship_date' => 'setRequiredShipDate', - 'promised_delivery_date' => 'setPromisedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'required_ship_date' => 'getRequiredShipDate', - 'promised_delivery_date' => 'getPromisedDeliveryDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['required_ship_date'] = $data['required_ship_date'] ?? null; - $this->container['promised_delivery_date'] = $data['promised_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['required_ship_date'] === null) { - $invalidProperties[] = "'required_ship_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets required_ship_date - * - * @return string - */ - public function getRequiredShipDate() - { - return $this->container['required_ship_date']; - } - - /** - * Sets required_ship_date - * - * @param string $required_ship_date Time by which the vendor is required to ship the order. - * - * @return self - */ - public function setRequiredShipDate($required_ship_date) - { - $this->container['required_ship_date'] = $required_ship_date; - - return $this; - } - /** - * Gets promised_delivery_date - * - * @return string|null - */ - public function getPromisedDeliveryDate() - { - return $this->container['promised_delivery_date']; - } - - /** - * Sets promised_delivery_date - * - * @param string|null $promised_delivery_date Delivery date promised to the Amazon customer. Must be in ISO 8601 format. - * - * @return self - */ - public function setPromisedDeliveryDate($promised_delivery_date) - { - $this->container['promised_delivery_date'] = $promised_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.php deleted file mode 100644 index cc6a7b8ee..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/ShipmentDetails.php +++ /dev/null @@ -1,351 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_priority_shipment' => 'bool', - 'is_scheduled_delivery_shipment' => 'bool', - 'is_pslip_required' => 'bool', - 'is_gift' => 'bool', - 'ship_method' => 'string', - 'shipment_dates' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDates', - 'message_to_customer' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_priority_shipment' => null, - 'is_scheduled_delivery_shipment' => null, - 'is_pslip_required' => null, - 'is_gift' => null, - 'ship_method' => null, - 'shipment_dates' => null, - 'message_to_customer' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_priority_shipment' => 'isPriorityShipment', - 'is_scheduled_delivery_shipment' => 'isScheduledDeliveryShipment', - 'is_pslip_required' => 'isPslipRequired', - 'is_gift' => 'isGift', - 'ship_method' => 'shipMethod', - 'shipment_dates' => 'shipmentDates', - 'message_to_customer' => 'messageToCustomer' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_priority_shipment' => 'setIsPriorityShipment', - 'is_scheduled_delivery_shipment' => 'setIsScheduledDeliveryShipment', - 'is_pslip_required' => 'setIsPslipRequired', - 'is_gift' => 'setIsGift', - 'ship_method' => 'setShipMethod', - 'shipment_dates' => 'setShipmentDates', - 'message_to_customer' => 'setMessageToCustomer' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_priority_shipment' => 'getIsPriorityShipment', - 'is_scheduled_delivery_shipment' => 'getIsScheduledDeliveryShipment', - 'is_pslip_required' => 'getIsPslipRequired', - 'is_gift' => 'getIsGift', - 'ship_method' => 'getShipMethod', - 'shipment_dates' => 'getShipmentDates', - 'message_to_customer' => 'getMessageToCustomer' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_priority_shipment'] = $data['is_priority_shipment'] ?? null; - $this->container['is_scheduled_delivery_shipment'] = $data['is_scheduled_delivery_shipment'] ?? null; - $this->container['is_pslip_required'] = $data['is_pslip_required'] ?? null; - $this->container['is_gift'] = $data['is_gift'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['shipment_dates'] = $data['shipment_dates'] ?? null; - $this->container['message_to_customer'] = $data['message_to_customer'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_priority_shipment'] === null) { - $invalidProperties[] = "'is_priority_shipment' can't be null"; - } - if ($this->container['is_pslip_required'] === null) { - $invalidProperties[] = "'is_pslip_required' can't be null"; - } - if ($this->container['ship_method'] === null) { - $invalidProperties[] = "'ship_method' can't be null"; - } - if ($this->container['shipment_dates'] === null) { - $invalidProperties[] = "'shipment_dates' can't be null"; - } - if ($this->container['message_to_customer'] === null) { - $invalidProperties[] = "'message_to_customer' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_priority_shipment - * - * @return bool - */ - public function getIsPriorityShipment() - { - return $this->container['is_priority_shipment']; - } - - /** - * Sets is_priority_shipment - * - * @param bool $is_priority_shipment When true, this is a priority shipment. - * - * @return self - */ - public function setIsPriorityShipment($is_priority_shipment) - { - $this->container['is_priority_shipment'] = $is_priority_shipment; - - return $this; - } - /** - * Gets is_scheduled_delivery_shipment - * - * @return bool|null - */ - public function getIsScheduledDeliveryShipment() - { - return $this->container['is_scheduled_delivery_shipment']; - } - - /** - * Sets is_scheduled_delivery_shipment - * - * @param bool|null $is_scheduled_delivery_shipment When true, this order is part of a scheduled delivery program. - * - * @return self - */ - public function setIsScheduledDeliveryShipment($is_scheduled_delivery_shipment) - { - $this->container['is_scheduled_delivery_shipment'] = $is_scheduled_delivery_shipment; - - return $this; - } - /** - * Gets is_pslip_required - * - * @return bool - */ - public function getIsPslipRequired() - { - return $this->container['is_pslip_required']; - } - - /** - * Sets is_pslip_required - * - * @param bool $is_pslip_required When true, a packing slip is required to be sent to the customer. - * - * @return self - */ - public function setIsPslipRequired($is_pslip_required) - { - $this->container['is_pslip_required'] = $is_pslip_required; - - return $this; - } - /** - * Gets is_gift - * - * @return bool|null - */ - public function getIsGift() - { - return $this->container['is_gift']; - } - - /** - * Sets is_gift - * - * @param bool|null $is_gift When true, the order contain a gift. Include the gift message and gift wrap information. - * - * @return self - */ - public function setIsGift($is_gift) - { - $this->container['is_gift'] = $is_gift; - - return $this; - } - /** - * Gets ship_method - * - * @return string - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string $ship_method Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets shipment_dates - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDates - */ - public function getShipmentDates() - { - return $this->container['shipment_dates']; - } - - /** - * Sets shipment_dates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\ShipmentDates $shipment_dates shipment_dates - * - * @return self - */ - public function setShipmentDates($shipment_dates) - { - $this->container['shipment_dates'] = $shipment_dates; - - return $this; - } - /** - * Gets message_to_customer - * - * @return string - */ - public function getMessageToCustomer() - { - return $this->container['message_to_customer']; - } - - /** - * Sets message_to_customer - * - * @param string $message_to_customer Message to customer for order status. - * - * @return self - */ - public function setMessageToCustomer($message_to_customer) - { - $this->container['message_to_customer'] = $message_to_customer; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.php b/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.php deleted file mode 100644 index ea716d14c..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_acknowledgements' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderAcknowledgementItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_acknowledgements' => 'orderAcknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_acknowledgements' => 'setOrderAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_acknowledgements' => 'getOrderAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_acknowledgements'] = $data['order_acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets order_acknowledgements - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderAcknowledgementItem[]|null - */ - public function getOrderAcknowledgements() - { - return $this->container['order_acknowledgements']; - } - - /** - * Sets order_acknowledgements - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\OrderAcknowledgementItem[]|null $order_acknowledgements A list of one or more purchase orders. - * - * @return self - */ - public function setOrderAcknowledgements($order_acknowledgements) - { - $this->container['order_acknowledgements'] = $order_acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.php b/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.php deleted file mode 100644 index f90ae3812..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/SubmitAcknowledgementResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TransactionId', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TransactionId|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\TransactionId|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.php deleted file mode 100644 index 151bd1000..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/TaxDetails.php +++ /dev/null @@ -1,305 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_rate' => 'string', - 'tax_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money', - 'taxable_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_rate' => null, - 'tax_amount' => null, - 'taxable_amount' => null, - 'type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_rate' => 'taxRate', - 'tax_amount' => 'taxAmount', - 'taxable_amount' => 'taxableAmount', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_rate' => 'setTaxRate', - 'tax_amount' => 'setTaxAmount', - 'taxable_amount' => 'setTaxableAmount', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_rate' => 'getTaxRate', - 'tax_amount' => 'getTaxAmount', - 'taxable_amount' => 'getTaxableAmount', - 'type' => 'getType' - ]; - - - - const TYPE_CONSUMPTION = 'CONSUMPTION'; - const TYPE_GST = 'GST'; - const TYPE_MW_ST = 'MwSt.'; - const TYPE_PST = 'PST'; - const TYPE_TOTAL = 'TOTAL'; - const TYPE_TVA = 'TVA'; - const TYPE_VAT = 'VAT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_CONSUMPTION, - self::TYPE_GST, - self::TYPE_MW_ST, - self::TYPE_PST, - self::TYPE_TOTAL, - self::TYPE_TVA, - self::TYPE_VAT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_rate'] = $data['tax_rate'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_amount'] === null) { - $invalidProperties[] = "'tax_amount' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets tax_rate - * - * @return string|null - */ - public function getTaxRate() - { - return $this->container['tax_rate']; - } - - /** - * Sets tax_rate - * - * @param string|null $tax_rate A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setTaxRate($tax_rate) - { - $this->container['tax_rate'] = $tax_rate; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets taxable_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money|null - */ - public function getTaxableAmount() - { - return $this->container['taxable_amount']; - } - - /** - * Sets taxable_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Money|null $taxable_amount taxable_amount - * - * @return self - */ - public function setTaxableAmount($taxable_amount) - { - $this->container['taxable_amount'] = $taxable_amount; - - return $this; - } - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type Tax type. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) &&!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.php deleted file mode 100644 index 47a23f063..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/TaxRegistrationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string', - 'tax_registration_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address', - 'tax_registration_messages' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null, - 'tax_registration_address' => null, - 'tax_registration_messages' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber', - 'tax_registration_address' => 'taxRegistrationAddress', - 'tax_registration_messages' => 'taxRegistrationMessages' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber', - 'tax_registration_address' => 'setTaxRegistrationAddress', - 'tax_registration_messages' => 'setTaxRegistrationMessages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber', - 'tax_registration_address' => 'getTaxRegistrationAddress', - 'tax_registration_messages' => 'getTaxRegistrationMessages' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - $this->container['tax_registration_address'] = $data['tax_registration_address'] ?? null; - $this->container['tax_registration_messages'] = $data['tax_registration_messages'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string|null - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string|null $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!is_null($tax_registration_type) &&!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the party. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } - /** - * Gets tax_registration_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address|null - */ - public function getTaxRegistrationAddress() - { - return $this->container['tax_registration_address']; - } - - /** - * Sets tax_registration_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV1\Address|null $tax_registration_address tax_registration_address - * - * @return self - */ - public function setTaxRegistrationAddress($tax_registration_address) - { - $this->container['tax_registration_address'] = $tax_registration_address; - - return $this; - } - /** - * Gets tax_registration_messages - * - * @return string|null - */ - public function getTaxRegistrationMessages() - { - return $this->container['tax_registration_messages']; - } - - /** - * Sets tax_registration_messages - * - * @param string|null $tax_registration_messages Tax registration message that can be used for additional tax related details. - * - * @return self - */ - public function setTaxRegistrationMessages($tax_registration_messages) - { - $this->container['tax_registration_messages'] = $tax_registration_messages; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV1/TransactionId.php b/lib/Model/VendorDirectFulfillmentOrdersV1/TransactionId.php deleted file mode 100644 index eda7cc357..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV1/TransactionId.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionId extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionId'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.php deleted file mode 100644 index bd930f743..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/AcknowledgementStatus.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AcknowledgementStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AcknowledgementStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'description' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'description' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'description' => 'description' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'description' => 'setDescription' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'description' => 'getDescription' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['description'] = $data['description'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description Reason for the acknowledgement code. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Address.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/Address.php deleted file mode 100644 index 880a3de1d..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Address.php +++ /dev/null @@ -1,493 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'attention' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'attention' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'attention' => 'attention', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'attention' => 'setAttention', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'attention' => 'getAttention', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['attention'] = $data['attention'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets attention - * - * @return string|null - */ - public function getAttention() - { - return $this->container['attention']; - } - - /** - * Sets attention - * - * @param string|null $attention The attention name of the person at that address. - * - * @return self - */ - public function setAttention($attention) - { - $this->container['attention'] = $attention; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.php deleted file mode 100644 index caaad7659..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/BuyerCustomizedInfoDetail.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class BuyerCustomizedInfoDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'buyerCustomizedInfoDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'customized_url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'customized_url' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'customized_url' => 'customizedUrl' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'customized_url' => 'setCustomizedUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'customized_url' => 'getCustomizedUrl' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['customized_url'] = $data['customized_url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets customized_url - * - * @return string|null - */ - public function getCustomizedUrl() - { - return $this->container['customized_url']; - } - - /** - * Sets customized_url - * - * @param string|null $customized_url A [Base 64](https://datatracker.ietf.org/doc/html/rfc4648#section-4) encoded URL using the UTF-8 character set. The URL provides the location of the zip file that specifies the types of customizations or configurations allowed by the vendor, along with types and ranges for the attributes of their products. - * - * @return self - */ - public function setCustomizedUrl($customized_url) - { - $this->container['customized_url'] = $customized_url; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Error.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/Error.php deleted file mode 100644 index 3513cb9d3..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.php deleted file mode 100644 index 1bc921d14..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.php deleted file mode 100644 index a43602295..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/GiftDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GiftDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GiftDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'gift_message' => 'string', - 'gift_wrap_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'gift_message' => null, - 'gift_wrap_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'gift_message' => 'giftMessage', - 'gift_wrap_id' => 'giftWrapId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'gift_message' => 'setGiftMessage', - 'gift_wrap_id' => 'setGiftWrapId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'gift_message' => 'getGiftMessage', - 'gift_wrap_id' => 'getGiftWrapId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['gift_message'] = $data['gift_message'] ?? null; - $this->container['gift_wrap_id'] = $data['gift_wrap_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets gift_message - * - * @return string|null - */ - public function getGiftMessage() - { - return $this->container['gift_message']; - } - - /** - * Sets gift_message - * - * @param string|null $gift_message Gift message to be printed in shipment. - * - * @return self - */ - public function setGiftMessage($gift_message) - { - $this->container['gift_message'] = $gift_message; - - return $this; - } - /** - * Gets gift_wrap_id - * - * @return string|null - */ - public function getGiftWrapId() - { - return $this->container['gift_wrap_id']; - } - - /** - * Sets gift_wrap_id - * - * @param string|null $gift_wrap_id Gift wrap identifier for the gift wrapping, if any. - * - * @return self - */ - public function setGiftWrapId($gift_wrap_id) - { - $this->container['gift_wrap_id'] = $gift_wrap_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.php deleted file mode 100644 index 266c1032c..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ItemQuantity.php +++ /dev/null @@ -1,233 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - const UNIT_OF_MEASURE_EACH = 'Each'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_EACH, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int|null $amount Acknowledged quantity. This value should not be zero. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string|null - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string|null $unit_of_measure Unit of measure for the acknowledged quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!is_null($unit_of_measure) &&!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Money.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/Money.php deleted file mode 100644 index 4eb8a41e9..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Money.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code Three digit currency code in ISO 4217 format. String of length 3. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Order.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/Order.php deleted file mode 100644 index d7d5e67a9..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Order.php +++ /dev/null @@ -1,218 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Order extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Order'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'order_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'order_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'purchase_order_number' => 'purchaseOrderNumber', - 'order_details' => 'orderDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'order_details' => 'setOrderDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'order_details' => 'getOrderDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['order_details'] = $data['order_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets order_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderDetails|null - */ - public function getOrderDetails() - { - return $this->container['order_details']; - } - - /** - * Sets order_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderDetails|null $order_details order_details - * - * @return self - */ - public function setOrderDetails($order_details) - { - $this->container['order_details'] = $order_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.php deleted file mode 100644 index 548899443..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderAcknowledgementItem.php +++ /dev/null @@ -1,357 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderAcknowledgementItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderAcknowledgementItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'vendor_order_number' => 'string', - 'acknowledgement_date' => 'string', - 'acknowledgement_status' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\AcknowledgementStatus', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification', - 'item_acknowledgements' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItemAcknowledgement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'vendor_order_number' => null, - 'acknowledgement_date' => null, - 'acknowledgement_status' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'item_acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'vendor_order_number' => 'vendorOrderNumber', - 'acknowledgement_date' => 'acknowledgementDate', - 'acknowledgement_status' => 'acknowledgementStatus', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'item_acknowledgements' => 'itemAcknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'vendor_order_number' => 'setVendorOrderNumber', - 'acknowledgement_date' => 'setAcknowledgementDate', - 'acknowledgement_status' => 'setAcknowledgementStatus', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'item_acknowledgements' => 'setItemAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'vendor_order_number' => 'getVendorOrderNumber', - 'acknowledgement_date' => 'getAcknowledgementDate', - 'acknowledgement_status' => 'getAcknowledgementStatus', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'item_acknowledgements' => 'getItemAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['vendor_order_number'] = $data['vendor_order_number'] ?? null; - $this->container['acknowledgement_date'] = $data['acknowledgement_date'] ?? null; - $this->container['acknowledgement_status'] = $data['acknowledgement_status'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['item_acknowledgements'] = $data['item_acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if ($this->container['vendor_order_number'] === null) { - $invalidProperties[] = "'vendor_order_number' can't be null"; - } - if ($this->container['acknowledgement_date'] === null) { - $invalidProperties[] = "'acknowledgement_date' can't be null"; - } - if ($this->container['acknowledgement_status'] === null) { - $invalidProperties[] = "'acknowledgement_status' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['item_acknowledgements'] === null) { - $invalidProperties[] = "'item_acknowledgements' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets vendor_order_number - * - * @return string - */ - public function getVendorOrderNumber() - { - return $this->container['vendor_order_number']; - } - - /** - * Sets vendor_order_number - * - * @param string $vendor_order_number The vendor's order number for this order. - * - * @return self - */ - public function setVendorOrderNumber($vendor_order_number) - { - $this->container['vendor_order_number'] = $vendor_order_number; - - return $this; - } - /** - * Gets acknowledgement_date - * - * @return string - */ - public function getAcknowledgementDate() - { - return $this->container['acknowledgement_date']; - } - - /** - * Sets acknowledgement_date - * - * @param string $acknowledgement_date The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. - * - * @return self - */ - public function setAcknowledgementDate($acknowledgement_date) - { - $this->container['acknowledgement_date'] = $acknowledgement_date; - - return $this; - } - /** - * Gets acknowledgement_status - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\AcknowledgementStatus - */ - public function getAcknowledgementStatus() - { - return $this->container['acknowledgement_status']; - } - - /** - * Sets acknowledgement_status - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\AcknowledgementStatus $acknowledgement_status acknowledgement_status - * - * @return self - */ - public function setAcknowledgementStatus($acknowledgement_status) - { - $this->container['acknowledgement_status'] = $acknowledgement_status; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets item_acknowledgements - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItemAcknowledgement[] - */ - public function getItemAcknowledgements() - { - return $this->container['item_acknowledgements']; - } - - /** - * Sets item_acknowledgements - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItemAcknowledgement[] $item_acknowledgements Item details including acknowledged quantity. - * - * @return self - */ - public function setItemAcknowledgements($item_acknowledgements) - { - $this->container['item_acknowledgements'] = $item_acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.php deleted file mode 100644 index f5313f26a..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderDetails.php +++ /dev/null @@ -1,495 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'customer_order_number' => 'string', - 'order_date' => 'string', - 'order_status' => 'string', - 'shipment_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDetails', - 'tax_total' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address', - 'bill_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'customer_order_number' => null, - 'order_date' => null, - 'order_status' => null, - 'shipment_details' => null, - 'tax_total' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'ship_to_party' => null, - 'bill_to_party' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'customer_order_number' => 'customerOrderNumber', - 'order_date' => 'orderDate', - 'order_status' => 'orderStatus', - 'shipment_details' => 'shipmentDetails', - 'tax_total' => 'taxTotal', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'ship_to_party' => 'shipToParty', - 'bill_to_party' => 'billToParty', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'customer_order_number' => 'setCustomerOrderNumber', - 'order_date' => 'setOrderDate', - 'order_status' => 'setOrderStatus', - 'shipment_details' => 'setShipmentDetails', - 'tax_total' => 'setTaxTotal', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'ship_to_party' => 'setShipToParty', - 'bill_to_party' => 'setBillToParty', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'customer_order_number' => 'getCustomerOrderNumber', - 'order_date' => 'getOrderDate', - 'order_status' => 'getOrderStatus', - 'shipment_details' => 'getShipmentDetails', - 'tax_total' => 'getTaxTotal', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'ship_to_party' => 'getShipToParty', - 'bill_to_party' => 'getBillToParty', - 'items' => 'getItems' - ]; - - - - const ORDER_STATUS__NEW = 'NEW'; - const ORDER_STATUS_SHIPPED = 'SHIPPED'; - const ORDER_STATUS_ACCEPTED = 'ACCEPTED'; - const ORDER_STATUS_CANCELLED = 'CANCELLED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getOrderStatusAllowableValues() - { - $baseVals = [ - self::ORDER_STATUS__NEW, - self::ORDER_STATUS_SHIPPED, - self::ORDER_STATUS_ACCEPTED, - self::ORDER_STATUS_CANCELLED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['customer_order_number'] = $data['customer_order_number'] ?? null; - $this->container['order_date'] = $data['order_date'] ?? null; - $this->container['order_status'] = $data['order_status'] ?? null; - $this->container['shipment_details'] = $data['shipment_details'] ?? null; - $this->container['tax_total'] = $data['tax_total'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['bill_to_party'] = $data['bill_to_party'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['customer_order_number'] === null) { - $invalidProperties[] = "'customer_order_number' can't be null"; - } - if ($this->container['order_date'] === null) { - $invalidProperties[] = "'order_date' can't be null"; - } - $allowedValues = $this->getOrderStatusAllowableValues(); - if ( - !is_null($this->container['order_status']) && - !in_array(strtoupper($this->container['order_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'order_status', must be one of '%s'", - $this->container['order_status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['shipment_details'] === null) { - $invalidProperties[] = "'shipment_details' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['ship_to_party'] === null) { - $invalidProperties[] = "'ship_to_party' can't be null"; - } - if ($this->container['bill_to_party'] === null) { - $invalidProperties[] = "'bill_to_party' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets customer_order_number - * - * @return string - */ - public function getCustomerOrderNumber() - { - return $this->container['customer_order_number']; - } - - /** - * Sets customer_order_number - * - * @param string $customer_order_number The customer order number. - * - * @return self - */ - public function setCustomerOrderNumber($customer_order_number) - { - $this->container['customer_order_number'] = $customer_order_number; - - return $this; - } - /** - * Gets order_date - * - * @return string - */ - public function getOrderDate() - { - return $this->container['order_date']; - } - - /** - * Sets order_date - * - * @param string $order_date The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. - * - * @return self - */ - public function setOrderDate($order_date) - { - $this->container['order_date'] = $order_date; - - return $this; - } - /** - * Gets order_status - * - * @return string|null - */ - public function getOrderStatus() - { - return $this->container['order_status']; - } - - /** - * Sets order_status - * - * @param string|null $order_status Current status of the order. - * - * @return self - */ - public function setOrderStatus($order_status) - { - $allowedValues = $this->getOrderStatusAllowableValues(); - if (!is_null($order_status) &&!in_array(strtoupper($order_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'order_status', must be one of '%s'", - $order_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['order_status'] = $order_status; - - return $this; - } - /** - * Gets shipment_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDetails - */ - public function getShipmentDetails() - { - return $this->container['shipment_details']; - } - - /** - * Sets shipment_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDetails $shipment_details shipment_details - * - * @return self - */ - public function setShipmentDetails($shipment_details) - { - $this->container['shipment_details'] = $shipment_details; - - return $this; - } - /** - * Gets tax_total - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails|null - */ - public function getTaxTotal() - { - return $this->container['tax_total']; - } - - /** - * Sets tax_total - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails|null $tax_total tax_total - * - * @return self - */ - public function setTaxTotal($tax_total) - { - $this->container['tax_total'] = $tax_total; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets bill_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification - */ - public function getBillToParty() - { - return $this->container['bill_to_party']; - } - - /** - * Sets bill_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\PartyIdentification $bill_to_party bill_to_party - * - * @return self - */ - public function setBillToParty($bill_to_party) - { - $this->container['bill_to_party'] = $bill_to_party; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderItem[] $items A list of items in this purchase order. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.php deleted file mode 100644 index 9211dd0bd..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItem.php +++ /dev/null @@ -1,460 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'title' => 'string', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity', - 'scheduled_delivery_shipment' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ScheduledDeliveryShipment', - 'gift_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\GiftDetails', - 'net_price' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails', - 'total_price' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money', - 'buyer_customized_info' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\BuyerCustomizedInfoDetail' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'title' => null, - 'ordered_quantity' => null, - 'scheduled_delivery_shipment' => null, - 'gift_details' => null, - 'net_price' => null, - 'tax_details' => null, - 'total_price' => null, - 'buyer_customized_info' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'title' => 'title', - 'ordered_quantity' => 'orderedQuantity', - 'scheduled_delivery_shipment' => 'scheduledDeliveryShipment', - 'gift_details' => 'giftDetails', - 'net_price' => 'netPrice', - 'tax_details' => 'taxDetails', - 'total_price' => 'totalPrice', - 'buyer_customized_info' => 'buyerCustomizedInfo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'title' => 'setTitle', - 'ordered_quantity' => 'setOrderedQuantity', - 'scheduled_delivery_shipment' => 'setScheduledDeliveryShipment', - 'gift_details' => 'setGiftDetails', - 'net_price' => 'setNetPrice', - 'tax_details' => 'setTaxDetails', - 'total_price' => 'setTotalPrice', - 'buyer_customized_info' => 'setBuyerCustomizedInfo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'title' => 'getTitle', - 'ordered_quantity' => 'getOrderedQuantity', - 'scheduled_delivery_shipment' => 'getScheduledDeliveryShipment', - 'gift_details' => 'getGiftDetails', - 'net_price' => 'getNetPrice', - 'tax_details' => 'getTaxDetails', - 'total_price' => 'getTotalPrice', - 'buyer_customized_info' => 'getBuyerCustomizedInfo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['scheduled_delivery_shipment'] = $data['scheduled_delivery_shipment'] ?? null; - $this->container['gift_details'] = $data['gift_details'] ?? null; - $this->container['net_price'] = $data['net_price'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['total_price'] = $data['total_price'] ?? null; - $this->container['buyer_customized_info'] = $data['buyer_customized_info'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['ordered_quantity'] === null) { - $invalidProperties[] = "'ordered_quantity' can't be null"; - } - if ($this->container['net_price'] === null) { - $invalidProperties[] = "'net_price' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's standard identification number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title Title for the item. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets scheduled_delivery_shipment - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ScheduledDeliveryShipment|null - */ - public function getScheduledDeliveryShipment() - { - return $this->container['scheduled_delivery_shipment']; - } - - /** - * Sets scheduled_delivery_shipment - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ScheduledDeliveryShipment|null $scheduled_delivery_shipment scheduled_delivery_shipment - * - * @return self - */ - public function setScheduledDeliveryShipment($scheduled_delivery_shipment) - { - $this->container['scheduled_delivery_shipment'] = $scheduled_delivery_shipment; - - return $this; - } - /** - * Gets gift_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\GiftDetails|null - */ - public function getGiftDetails() - { - return $this->container['gift_details']; - } - - /** - * Sets gift_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\GiftDetails|null $gift_details gift_details - * - * @return self - */ - public function setGiftDetails($gift_details) - { - $this->container['gift_details'] = $gift_details; - - return $this; - } - /** - * Gets net_price - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money - */ - public function getNetPrice() - { - return $this->container['net_price']; - } - - /** - * Sets net_price - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money $net_price net_price - * - * @return self - */ - public function setNetPrice($net_price) - { - $this->container['net_price'] = $net_price; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxItemDetails|null $tax_details tax_details - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets total_price - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money|null - */ - public function getTotalPrice() - { - return $this->container['total_price']; - } - - /** - * Sets total_price - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money|null $total_price total_price - * - * @return self - */ - public function setTotalPrice($total_price) - { - $this->container['total_price'] = $total_price; - - return $this; - } - /** - * Gets buyer_customized_info - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\BuyerCustomizedInfoDetail|null - */ - public function getBuyerCustomizedInfo() - { - return $this->container['buyer_customized_info']; - } - - /** - * Sets buyer_customized_info - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\BuyerCustomizedInfoDetail|null $buyer_customized_info buyer_customized_info - * - * @return self - */ - public function setBuyerCustomizedInfo($buyer_customized_info) - { - $this->container['buyer_customized_info'] = $buyer_customized_info; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.php deleted file mode 100644 index f105211f1..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderItemAcknowledgement.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemAcknowledgement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemAcknowledgement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'acknowledged_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'acknowledged_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'acknowledged_quantity' => 'acknowledgedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'acknowledged_quantity' => 'setAcknowledgedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'acknowledged_quantity' => 'getAcknowledgedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['acknowledged_quantity'] = $data['acknowledged_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['acknowledged_quantity'] === null) { - $invalidProperties[] = "'acknowledged_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Line item sequence number for the item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's standard identification number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was provided in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets acknowledged_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity - */ - public function getAcknowledgedQuantity() - { - return $this->container['acknowledged_quantity']; - } - - /** - * Sets acknowledged_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ItemQuantity $acknowledged_quantity acknowledged_quantity - * - * @return self - */ - public function setAcknowledgedQuantity($acknowledged_quantity) - { - $this->container['acknowledged_quantity'] = $acknowledged_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.php deleted file mode 100644 index f480aa122..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/OrderList.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Pagination', - 'orders' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'pagination' => 'pagination', - 'orders' => 'orders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'pagination' => 'setPagination', - 'orders' => 'setOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'pagination' => 'getPagination', - 'orders' => 'getOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['orders'] = $data['orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order[]|null - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Order[]|null $orders orders - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.php deleted file mode 100644 index 129919a31..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.php deleted file mode 100644 index 4a796cdcd..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address', - 'tax_info' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxRegistrationDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_info' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_info' => 'taxInfo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_info' => 'setTaxInfo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_info' => 'getTaxInfo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_info'] = $data['tax_info'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_info - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxRegistrationDetails|null - */ - public function getTaxInfo() - { - return $this->container['tax_info']; - } - - /** - * Sets tax_info - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxRegistrationDetails|null $tax_info tax_info - * - * @return self - */ - public function setTaxInfo($tax_info) - { - $this->container['tax_info'] = $tax_info; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.php deleted file mode 100644 index da69bbed2..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ScheduledDeliveryShipment.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ScheduledDeliveryShipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ScheduledDeliveryShipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scheduled_delivery_service_type' => 'string', - 'earliest_nominated_delivery_date' => 'string', - 'latest_nominated_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scheduled_delivery_service_type' => null, - 'earliest_nominated_delivery_date' => null, - 'latest_nominated_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scheduled_delivery_service_type' => 'scheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'earliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'latestNominatedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scheduled_delivery_service_type' => 'setScheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'setEarliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'setLatestNominatedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scheduled_delivery_service_type' => 'getScheduledDeliveryServiceType', - 'earliest_nominated_delivery_date' => 'getEarliestNominatedDeliveryDate', - 'latest_nominated_delivery_date' => 'getLatestNominatedDeliveryDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scheduled_delivery_service_type'] = $data['scheduled_delivery_service_type'] ?? null; - $this->container['earliest_nominated_delivery_date'] = $data['earliest_nominated_delivery_date'] ?? null; - $this->container['latest_nominated_delivery_date'] = $data['latest_nominated_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets scheduled_delivery_service_type - * - * @return string|null - */ - public function getScheduledDeliveryServiceType() - { - return $this->container['scheduled_delivery_service_type']; - } - - /** - * Sets scheduled_delivery_service_type - * - * @param string|null $scheduled_delivery_service_type Scheduled delivery service type. - * - * @return self - */ - public function setScheduledDeliveryServiceType($scheduled_delivery_service_type) - { - $this->container['scheduled_delivery_service_type'] = $scheduled_delivery_service_type; - - return $this; - } - /** - * Gets earliest_nominated_delivery_date - * - * @return string|null - */ - public function getEarliestNominatedDeliveryDate() - { - return $this->container['earliest_nominated_delivery_date']; - } - - /** - * Sets earliest_nominated_delivery_date - * - * @param string|null $earliest_nominated_delivery_date Earliest nominated delivery date for the scheduled delivery. Must be in ISO 8601 format. - * - * @return self - */ - public function setEarliestNominatedDeliveryDate($earliest_nominated_delivery_date) - { - $this->container['earliest_nominated_delivery_date'] = $earliest_nominated_delivery_date; - - return $this; - } - /** - * Gets latest_nominated_delivery_date - * - * @return string|null - */ - public function getLatestNominatedDeliveryDate() - { - return $this->container['latest_nominated_delivery_date']; - } - - /** - * Sets latest_nominated_delivery_date - * - * @param string|null $latest_nominated_delivery_date Latest nominated delivery date for the scheduled delivery. Must be in ISO 8601 format. - * - * @return self - */ - public function setLatestNominatedDeliveryDate($latest_nominated_delivery_date) - { - $this->container['latest_nominated_delivery_date'] = $latest_nominated_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.php deleted file mode 100644 index a47cc6cc3..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDates.php +++ /dev/null @@ -1,194 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDates extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDates'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'required_ship_date' => 'string', - 'promised_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'required_ship_date' => null, - 'promised_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'required_ship_date' => 'requiredShipDate', - 'promised_delivery_date' => 'promisedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'required_ship_date' => 'setRequiredShipDate', - 'promised_delivery_date' => 'setPromisedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'required_ship_date' => 'getRequiredShipDate', - 'promised_delivery_date' => 'getPromisedDeliveryDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['required_ship_date'] = $data['required_ship_date'] ?? null; - $this->container['promised_delivery_date'] = $data['promised_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['required_ship_date'] === null) { - $invalidProperties[] = "'required_ship_date' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets required_ship_date - * - * @return string - */ - public function getRequiredShipDate() - { - return $this->container['required_ship_date']; - } - - /** - * Sets required_ship_date - * - * @param string $required_ship_date Time by which the vendor is required to ship the order. Must be in ISO 8601 format. - * - * @return self - */ - public function setRequiredShipDate($required_ship_date) - { - $this->container['required_ship_date'] = $required_ship_date; - - return $this; - } - /** - * Gets promised_delivery_date - * - * @return string|null - */ - public function getPromisedDeliveryDate() - { - return $this->container['promised_delivery_date']; - } - - /** - * Sets promised_delivery_date - * - * @param string|null $promised_delivery_date Delivery date promised to the Amazon customer. Must be in ISO 8601 format. - * - * @return self - */ - public function setPromisedDeliveryDate($promised_delivery_date) - { - $this->container['promised_delivery_date'] = $promised_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.php deleted file mode 100644 index 7f564dcac..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/ShipmentDetails.php +++ /dev/null @@ -1,351 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'is_priority_shipment' => 'bool', - 'is_scheduled_delivery_shipment' => 'bool', - 'is_pslip_required' => 'bool', - 'is_gift' => 'bool', - 'ship_method' => 'string', - 'shipment_dates' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDates', - 'message_to_customer' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'is_priority_shipment' => null, - 'is_scheduled_delivery_shipment' => null, - 'is_pslip_required' => null, - 'is_gift' => null, - 'ship_method' => null, - 'shipment_dates' => null, - 'message_to_customer' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'is_priority_shipment' => 'isPriorityShipment', - 'is_scheduled_delivery_shipment' => 'isScheduledDeliveryShipment', - 'is_pslip_required' => 'isPslipRequired', - 'is_gift' => 'isGift', - 'ship_method' => 'shipMethod', - 'shipment_dates' => 'shipmentDates', - 'message_to_customer' => 'messageToCustomer' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'is_priority_shipment' => 'setIsPriorityShipment', - 'is_scheduled_delivery_shipment' => 'setIsScheduledDeliveryShipment', - 'is_pslip_required' => 'setIsPslipRequired', - 'is_gift' => 'setIsGift', - 'ship_method' => 'setShipMethod', - 'shipment_dates' => 'setShipmentDates', - 'message_to_customer' => 'setMessageToCustomer' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'is_priority_shipment' => 'getIsPriorityShipment', - 'is_scheduled_delivery_shipment' => 'getIsScheduledDeliveryShipment', - 'is_pslip_required' => 'getIsPslipRequired', - 'is_gift' => 'getIsGift', - 'ship_method' => 'getShipMethod', - 'shipment_dates' => 'getShipmentDates', - 'message_to_customer' => 'getMessageToCustomer' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['is_priority_shipment'] = $data['is_priority_shipment'] ?? null; - $this->container['is_scheduled_delivery_shipment'] = $data['is_scheduled_delivery_shipment'] ?? null; - $this->container['is_pslip_required'] = $data['is_pslip_required'] ?? null; - $this->container['is_gift'] = $data['is_gift'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['shipment_dates'] = $data['shipment_dates'] ?? null; - $this->container['message_to_customer'] = $data['message_to_customer'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['is_priority_shipment'] === null) { - $invalidProperties[] = "'is_priority_shipment' can't be null"; - } - if ($this->container['is_pslip_required'] === null) { - $invalidProperties[] = "'is_pslip_required' can't be null"; - } - if ($this->container['ship_method'] === null) { - $invalidProperties[] = "'ship_method' can't be null"; - } - if ($this->container['shipment_dates'] === null) { - $invalidProperties[] = "'shipment_dates' can't be null"; - } - if ($this->container['message_to_customer'] === null) { - $invalidProperties[] = "'message_to_customer' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets is_priority_shipment - * - * @return bool - */ - public function getIsPriorityShipment() - { - return $this->container['is_priority_shipment']; - } - - /** - * Sets is_priority_shipment - * - * @param bool $is_priority_shipment When true, this is a priority shipment. - * - * @return self - */ - public function setIsPriorityShipment($is_priority_shipment) - { - $this->container['is_priority_shipment'] = $is_priority_shipment; - - return $this; - } - /** - * Gets is_scheduled_delivery_shipment - * - * @return bool|null - */ - public function getIsScheduledDeliveryShipment() - { - return $this->container['is_scheduled_delivery_shipment']; - } - - /** - * Sets is_scheduled_delivery_shipment - * - * @param bool|null $is_scheduled_delivery_shipment When true, this order is part of a scheduled delivery program. - * - * @return self - */ - public function setIsScheduledDeliveryShipment($is_scheduled_delivery_shipment) - { - $this->container['is_scheduled_delivery_shipment'] = $is_scheduled_delivery_shipment; - - return $this; - } - /** - * Gets is_pslip_required - * - * @return bool - */ - public function getIsPslipRequired() - { - return $this->container['is_pslip_required']; - } - - /** - * Sets is_pslip_required - * - * @param bool $is_pslip_required When true, a packing slip is required to be sent to the customer. - * - * @return self - */ - public function setIsPslipRequired($is_pslip_required) - { - $this->container['is_pslip_required'] = $is_pslip_required; - - return $this; - } - /** - * Gets is_gift - * - * @return bool|null - */ - public function getIsGift() - { - return $this->container['is_gift']; - } - - /** - * Sets is_gift - * - * @param bool|null $is_gift When true, the order contain a gift. Include the gift message and gift wrap information. - * - * @return self - */ - public function setIsGift($is_gift) - { - $this->container['is_gift'] = $is_gift; - - return $this; - } - /** - * Gets ship_method - * - * @return string - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string $ship_method Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets shipment_dates - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDates - */ - public function getShipmentDates() - { - return $this->container['shipment_dates']; - } - - /** - * Sets shipment_dates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ShipmentDates $shipment_dates shipment_dates - * - * @return self - */ - public function setShipmentDates($shipment_dates) - { - $this->container['shipment_dates'] = $shipment_dates; - - return $this; - } - /** - * Gets message_to_customer - * - * @return string - */ - public function getMessageToCustomer() - { - return $this->container['message_to_customer']; - } - - /** - * Sets message_to_customer - * - * @param string $message_to_customer Message to customer for order status. - * - * @return self - */ - public function setMessageToCustomer($message_to_customer) - { - $this->container['message_to_customer'] = $message_to_customer; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.php deleted file mode 100644 index 3964cf0dc..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_acknowledgements' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderAcknowledgementItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_acknowledgements' => 'orderAcknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_acknowledgements' => 'setOrderAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_acknowledgements' => 'getOrderAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_acknowledgements'] = $data['order_acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets order_acknowledgements - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderAcknowledgementItem[]|null - */ - public function getOrderAcknowledgements() - { - return $this->container['order_acknowledgements']; - } - - /** - * Sets order_acknowledgements - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\OrderAcknowledgementItem[]|null $order_acknowledgements A list of one or more purchase orders. - * - * @return self - */ - public function setOrderAcknowledgements($order_acknowledgements) - { - $this->container['order_acknowledgements'] = $order_acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.php deleted file mode 100644 index 8374a8d55..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/SubmitAcknowledgementResponse.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TransactionId|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\ErrorList|null $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.php deleted file mode 100644 index 154d3246e..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxDetails.php +++ /dev/null @@ -1,305 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_rate' => 'string', - 'tax_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money', - 'taxable_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money', - 'type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_rate' => null, - 'tax_amount' => null, - 'taxable_amount' => null, - 'type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_rate' => 'taxRate', - 'tax_amount' => 'taxAmount', - 'taxable_amount' => 'taxableAmount', - 'type' => 'type' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_rate' => 'setTaxRate', - 'tax_amount' => 'setTaxAmount', - 'taxable_amount' => 'setTaxableAmount', - 'type' => 'setType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_rate' => 'getTaxRate', - 'tax_amount' => 'getTaxAmount', - 'taxable_amount' => 'getTaxableAmount', - 'type' => 'getType' - ]; - - - - const TYPE_CONSUMPTION = 'CONSUMPTION'; - const TYPE_GST = 'GST'; - const TYPE_MW_ST = 'MwSt.'; - const TYPE_PST = 'PST'; - const TYPE_TOTAL = 'TOTAL'; - const TYPE_TVA = 'TVA'; - const TYPE_VAT = 'VAT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_CONSUMPTION, - self::TYPE_GST, - self::TYPE_MW_ST, - self::TYPE_PST, - self::TYPE_TOTAL, - self::TYPE_TVA, - self::TYPE_VAT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_rate'] = $data['tax_rate'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_amount'] === null) { - $invalidProperties[] = "'tax_amount' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets tax_rate - * - * @return string|null - */ - public function getTaxRate() - { - return $this->container['tax_rate']; - } - - /** - * Sets tax_rate - * - * @param string|null $tax_rate A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * - * @return self - */ - public function setTaxRate($tax_rate) - { - $this->container['tax_rate'] = $tax_rate; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets taxable_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money|null - */ - public function getTaxableAmount() - { - return $this->container['taxable_amount']; - } - - /** - * Sets taxable_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Money|null $taxable_amount taxable_amount - * - * @return self - */ - public function setTaxableAmount($taxable_amount) - { - $this->container['taxable_amount'] = $taxable_amount; - - return $this; - } - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type Tax type. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) &&!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.php deleted file mode 100644 index 01c5cedd0..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxItemDetails.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxItemDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxItemDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_line_item' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_line_item' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_line_item' => 'taxLineItem' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_line_item' => 'setTaxLineItem' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_line_item' => 'getTaxLineItem' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_line_item'] = $data['tax_line_item'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets tax_line_item - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxDetails[]|null - */ - public function getTaxLineItem() - { - return $this->container['tax_line_item']; - } - - /** - * Sets tax_line_item - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\TaxDetails[]|null $tax_line_item A list of tax line items. - * - * @return self - */ - public function setTaxLineItem($tax_line_item) - { - $this->container['tax_line_item'] = $tax_line_item; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.php deleted file mode 100644 index 6db2cccda..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TaxRegistrationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string', - 'tax_registration_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address', - 'tax_registration_messages' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null, - 'tax_registration_address' => null, - 'tax_registration_messages' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber', - 'tax_registration_address' => 'taxRegistrationAddress', - 'tax_registration_messages' => 'taxRegistrationMessages' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber', - 'tax_registration_address' => 'setTaxRegistrationAddress', - 'tax_registration_messages' => 'setTaxRegistrationMessages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber', - 'tax_registration_address' => 'getTaxRegistrationAddress', - 'tax_registration_messages' => 'getTaxRegistrationMessages' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - $this->container['tax_registration_address'] = $data['tax_registration_address'] ?? null; - $this->container['tax_registration_messages'] = $data['tax_registration_messages'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string|null - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string|null $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!is_null($tax_registration_type) &&!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the party. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } - /** - * Gets tax_registration_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address|null - */ - public function getTaxRegistrationAddress() - { - return $this->container['tax_registration_address']; - } - - /** - * Sets tax_registration_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentOrdersV20211228\Address|null $tax_registration_address tax_registration_address - * - * @return self - */ - public function setTaxRegistrationAddress($tax_registration_address) - { - $this->container['tax_registration_address'] = $tax_registration_address; - - return $this; - } - /** - * Gets tax_registration_messages - * - * @return string|null - */ - public function getTaxRegistrationMessages() - { - return $this->container['tax_registration_messages']; - } - - /** - * Sets tax_registration_messages - * - * @param string|null $tax_registration_messages Tax registration message that can be used for additional tax related details. - * - * @return self - */ - public function setTaxRegistrationMessages($tax_registration_messages) - { - $this->container['tax_registration_messages'] = $tax_registration_messages; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.php b/lib/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.php deleted file mode 100644 index cd9d733df..000000000 --- a/lib/Model/VendorDirectFulfillmentOrdersV20211228/TransactionId.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionId extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionId'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.php deleted file mode 100644 index af69b68e0..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/AdditionalDetails.php +++ /dev/null @@ -1,270 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdditionalDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdditionalDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'detail' => 'string', - 'language_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'detail' => null, - 'language_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'detail' => 'detail', - 'language_code' => 'languageCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'detail' => 'setDetail', - 'language_code' => 'setLanguageCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'detail' => 'getDetail', - 'language_code' => 'getLanguageCode' - ]; - - - - const TYPE_SUR = 'SUR'; - const TYPE_OCR = 'OCR'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_SUR, - self::TYPE_OCR, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['detail'] = $data['detail'] ?? null; - $this->container['language_code'] = $data['language_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['detail'] === null) { - $invalidProperties[] = "'detail' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type The type of the additional information provided by the selling party. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets detail - * - * @return string - */ - public function getDetail() - { - return $this->container['detail']; - } - - /** - * Sets detail - * - * @param string $detail The detail of the additional information provided by the selling party. - * - * @return self - */ - public function setDetail($detail) - { - $this->container['detail'] = $detail; - - return $this; - } - /** - * Gets language_code - * - * @return string|null - */ - public function getLanguageCode() - { - return $this->container['language_code']; - } - - /** - * Sets language_code - * - * @param string|null $language_code The language code of the additional information detail. - * - * @return self - */ - public function setLanguageCode($language_code) - { - $this->container['language_code'] = $language_code; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/Address.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/Address.php deleted file mode 100644 index 0283ac154..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/Address.php +++ /dev/null @@ -1,470 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['city'] === null) { - $invalidProperties[] = "'city' can't be null"; - } - if ($this->container['state_or_region'] === null) { - $invalidProperties[] = "'state_or_region' can't be null"; - } - if ($this->container['postal_code'] === null) { - $invalidProperties[] = "'postal_code' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string $postal_code The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.php deleted file mode 100644 index 094ca0c34..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/ChargeDetails.php +++ /dev/null @@ -1,280 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'charge_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'charge_amount' => null, - 'tax_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'charge_amount' => 'chargeAmount', - 'tax_details' => 'taxDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'charge_amount' => 'setChargeAmount', - 'tax_details' => 'setTaxDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'charge_amount' => 'getChargeAmount', - 'tax_details' => 'getTaxDetails' - ]; - - - - const TYPE_GIFTWRAP = 'GIFTWRAP'; - const TYPE_FULFILLMENT = 'FULFILLMENT'; - const TYPE_MARKETINGINSERT = 'MARKETINGINSERT'; - const TYPE_PACKAGING = 'PACKAGING'; - const TYPE_LOADING = 'LOADING'; - const TYPE_FREIGHTOUT = 'FREIGHTOUT'; - const TYPE_TAX_COLLECTED_AT_SOURCE = 'TAX_COLLECTED_AT_SOURCE'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_GIFTWRAP, - self::TYPE_FULFILLMENT, - self::TYPE_MARKETINGINSERT, - self::TYPE_PACKAGING, - self::TYPE_LOADING, - self::TYPE_FREIGHTOUT, - self::TYPE_TAX_COLLECTED_AT_SOURCE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['charge_amount'] = $data['charge_amount'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['charge_amount'] === null) { - $invalidProperties[] = "'charge_amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type Type of charge applied. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets charge_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money - */ - public function getChargeAmount() - { - return $this->container['charge_amount']; - } - - /** - * Sets charge_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money $charge_amount charge_amount - * - * @return self - */ - public function setChargeAmount($charge_amount) - { - $this->container['charge_amount'] = $charge_amount; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null $tax_details Individual tax details per line item. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/Error.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/Error.php deleted file mode 100644 index f60f604f7..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.php deleted file mode 100644 index efc26d4e2..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceDetail.php +++ /dev/null @@ -1,527 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoice_number' => 'string', - 'invoice_date' => 'string', - 'reference_number' => 'string', - 'remit_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification', - 'bill_to_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification', - 'ship_to_country_code' => 'string', - 'payment_terms_code' => 'string', - 'invoice_total' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money', - 'tax_totals' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]', - 'additional_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\AdditionalDetails[]', - 'charge_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoice_number' => null, - 'invoice_date' => null, - 'reference_number' => null, - 'remit_to_party' => null, - 'ship_from_party' => null, - 'bill_to_party' => null, - 'ship_to_country_code' => null, - 'payment_terms_code' => null, - 'invoice_total' => null, - 'tax_totals' => null, - 'additional_details' => null, - 'charge_details' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoice_number' => 'invoiceNumber', - 'invoice_date' => 'invoiceDate', - 'reference_number' => 'referenceNumber', - 'remit_to_party' => 'remitToParty', - 'ship_from_party' => 'shipFromParty', - 'bill_to_party' => 'billToParty', - 'ship_to_country_code' => 'shipToCountryCode', - 'payment_terms_code' => 'paymentTermsCode', - 'invoice_total' => 'invoiceTotal', - 'tax_totals' => 'taxTotals', - 'additional_details' => 'additionalDetails', - 'charge_details' => 'chargeDetails', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoice_number' => 'setInvoiceNumber', - 'invoice_date' => 'setInvoiceDate', - 'reference_number' => 'setReferenceNumber', - 'remit_to_party' => 'setRemitToParty', - 'ship_from_party' => 'setShipFromParty', - 'bill_to_party' => 'setBillToParty', - 'ship_to_country_code' => 'setShipToCountryCode', - 'payment_terms_code' => 'setPaymentTermsCode', - 'invoice_total' => 'setInvoiceTotal', - 'tax_totals' => 'setTaxTotals', - 'additional_details' => 'setAdditionalDetails', - 'charge_details' => 'setChargeDetails', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoice_number' => 'getInvoiceNumber', - 'invoice_date' => 'getInvoiceDate', - 'reference_number' => 'getReferenceNumber', - 'remit_to_party' => 'getRemitToParty', - 'ship_from_party' => 'getShipFromParty', - 'bill_to_party' => 'getBillToParty', - 'ship_to_country_code' => 'getShipToCountryCode', - 'payment_terms_code' => 'getPaymentTermsCode', - 'invoice_total' => 'getInvoiceTotal', - 'tax_totals' => 'getTaxTotals', - 'additional_details' => 'getAdditionalDetails', - 'charge_details' => 'getChargeDetails', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoice_number'] = $data['invoice_number'] ?? null; - $this->container['invoice_date'] = $data['invoice_date'] ?? null; - $this->container['reference_number'] = $data['reference_number'] ?? null; - $this->container['remit_to_party'] = $data['remit_to_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['bill_to_party'] = $data['bill_to_party'] ?? null; - $this->container['ship_to_country_code'] = $data['ship_to_country_code'] ?? null; - $this->container['payment_terms_code'] = $data['payment_terms_code'] ?? null; - $this->container['invoice_total'] = $data['invoice_total'] ?? null; - $this->container['tax_totals'] = $data['tax_totals'] ?? null; - $this->container['additional_details'] = $data['additional_details'] ?? null; - $this->container['charge_details'] = $data['charge_details'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['invoice_number'] === null) { - $invalidProperties[] = "'invoice_number' can't be null"; - } - if ($this->container['invoice_date'] === null) { - $invalidProperties[] = "'invoice_date' can't be null"; - } - if ($this->container['remit_to_party'] === null) { - $invalidProperties[] = "'remit_to_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['invoice_total'] === null) { - $invalidProperties[] = "'invoice_total' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets invoice_number - * - * @return string - */ - public function getInvoiceNumber() - { - return $this->container['invoice_number']; - } - - /** - * Sets invoice_number - * - * @param string $invoice_number The unique invoice number. - * - * @return self - */ - public function setInvoiceNumber($invoice_number) - { - $this->container['invoice_number'] = $invoice_number; - - return $this; - } - /** - * Gets invoice_date - * - * @return string - */ - public function getInvoiceDate() - { - return $this->container['invoice_date']; - } - - /** - * Sets invoice_date - * - * @param string $invoice_date Invoice date. Must be in ISO 8601 format. - * - * @return self - */ - public function setInvoiceDate($invoice_date) - { - $this->container['invoice_date'] = $invoice_date; - - return $this; - } - /** - * Gets reference_number - * - * @return string|null - */ - public function getReferenceNumber() - { - return $this->container['reference_number']; - } - - /** - * Sets reference_number - * - * @param string|null $reference_number An additional unique reference number used for regulatory or other purposes. - * - * @return self - */ - public function setReferenceNumber($reference_number) - { - $this->container['reference_number'] = $reference_number; - - return $this; - } - /** - * Gets remit_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification - */ - public function getRemitToParty() - { - return $this->container['remit_to_party']; - } - - /** - * Sets remit_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification $remit_to_party remit_to_party - * - * @return self - */ - public function setRemitToParty($remit_to_party) - { - $this->container['remit_to_party'] = $remit_to_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets bill_to_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification|null - */ - public function getBillToParty() - { - return $this->container['bill_to_party']; - } - - /** - * Sets bill_to_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\PartyIdentification|null $bill_to_party bill_to_party - * - * @return self - */ - public function setBillToParty($bill_to_party) - { - $this->container['bill_to_party'] = $bill_to_party; - - return $this; - } - /** - * Gets ship_to_country_code - * - * @return string|null - */ - public function getShipToCountryCode() - { - return $this->container['ship_to_country_code']; - } - - /** - * Sets ship_to_country_code - * - * @param string|null $ship_to_country_code Ship-to country code. - * - * @return self - */ - public function setShipToCountryCode($ship_to_country_code) - { - $this->container['ship_to_country_code'] = $ship_to_country_code; - - return $this; - } - /** - * Gets payment_terms_code - * - * @return string|null - */ - public function getPaymentTermsCode() - { - return $this->container['payment_terms_code']; - } - - /** - * Sets payment_terms_code - * - * @param string|null $payment_terms_code The payment terms for the invoice. - * - * @return self - */ - public function setPaymentTermsCode($payment_terms_code) - { - $this->container['payment_terms_code'] = $payment_terms_code; - - return $this; - } - /** - * Gets invoice_total - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money - */ - public function getInvoiceTotal() - { - return $this->container['invoice_total']; - } - - /** - * Sets invoice_total - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money $invoice_total invoice_total - * - * @return self - */ - public function setInvoiceTotal($invoice_total) - { - $this->container['invoice_total'] = $invoice_total; - - return $this; - } - /** - * Gets tax_totals - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null - */ - public function getTaxTotals() - { - return $this->container['tax_totals']; - } - - /** - * Sets tax_totals - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null $tax_totals Individual tax details per line item. - * - * @return self - */ - public function setTaxTotals($tax_totals) - { - $this->container['tax_totals'] = $tax_totals; - - return $this; - } - /** - * Gets additional_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\AdditionalDetails[]|null - */ - public function getAdditionalDetails() - { - return $this->container['additional_details']; - } - - /** - * Sets additional_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\AdditionalDetails[]|null $additional_details Additional details provided by the selling party, for tax-related or other purposes. - * - * @return self - */ - public function setAdditionalDetails($additional_details) - { - $this->container['additional_details'] = $additional_details; - - return $this; - } - /** - * Gets charge_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]|null - */ - public function getChargeDetails() - { - return $this->container['charge_details']; - } - - /** - * Sets charge_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]|null $charge_details Total charge amount details for all line items. - * - * @return self - */ - public function setChargeDetails($charge_details) - { - $this->container['charge_details'] = $charge_details; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceItem[] $items Provides the details of the items in this invoice. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.php deleted file mode 100644 index 2b6aa9c50..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/InvoiceItem.php +++ /dev/null @@ -1,434 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'invoiced_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ItemQuantity', - 'net_cost' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money', - 'purchase_order_number' => 'string', - 'vendor_order_number' => 'string', - 'hsn_code' => 'string', - 'tax_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]', - 'charge_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'invoiced_quantity' => null, - 'net_cost' => null, - 'purchase_order_number' => null, - 'vendor_order_number' => null, - 'hsn_code' => null, - 'tax_details' => null, - 'charge_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'invoiced_quantity' => 'invoicedQuantity', - 'net_cost' => 'netCost', - 'purchase_order_number' => 'purchaseOrderNumber', - 'vendor_order_number' => 'vendorOrderNumber', - 'hsn_code' => 'hsnCode', - 'tax_details' => 'taxDetails', - 'charge_details' => 'chargeDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'invoiced_quantity' => 'setInvoicedQuantity', - 'net_cost' => 'setNetCost', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'vendor_order_number' => 'setVendorOrderNumber', - 'hsn_code' => 'setHsnCode', - 'tax_details' => 'setTaxDetails', - 'charge_details' => 'setChargeDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'invoiced_quantity' => 'getInvoicedQuantity', - 'net_cost' => 'getNetCost', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'vendor_order_number' => 'getVendorOrderNumber', - 'hsn_code' => 'getHsnCode', - 'tax_details' => 'getTaxDetails', - 'charge_details' => 'getChargeDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['invoiced_quantity'] = $data['invoiced_quantity'] ?? null; - $this->container['net_cost'] = $data['net_cost'] ?? null; - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['vendor_order_number'] = $data['vendor_order_number'] ?? null; - $this->container['hsn_code'] = $data['hsn_code'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['charge_details'] = $data['charge_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['invoiced_quantity'] === null) { - $invalidProperties[] = "'invoiced_quantity' can't be null"; - } - if ($this->container['net_cost'] === null) { - $invalidProperties[] = "'net_cost' can't be null"; - } - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's standard identification number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets invoiced_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ItemQuantity - */ - public function getInvoicedQuantity() - { - return $this->container['invoiced_quantity']; - } - - /** - * Sets invoiced_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ItemQuantity $invoiced_quantity invoiced_quantity - * - * @return self - */ - public function setInvoicedQuantity($invoiced_quantity) - { - $this->container['invoiced_quantity'] = $invoiced_quantity; - - return $this; - } - /** - * Gets net_cost - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money - */ - public function getNetCost() - { - return $this->container['net_cost']; - } - - /** - * Sets net_cost - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money $net_cost net_cost - * - * @return self - */ - public function setNetCost($net_cost) - { - $this->container['net_cost'] = $net_cost; - - return $this; - } - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets vendor_order_number - * - * @return string|null - */ - public function getVendorOrderNumber() - { - return $this->container['vendor_order_number']; - } - - /** - * Sets vendor_order_number - * - * @param string|null $vendor_order_number The vendor's order number for this order. - * - * @return self - */ - public function setVendorOrderNumber($vendor_order_number) - { - $this->container['vendor_order_number'] = $vendor_order_number; - - return $this; - } - /** - * Gets hsn_code - * - * @return string|null - */ - public function getHsnCode() - { - return $this->container['hsn_code']; - } - - /** - * Sets hsn_code - * - * @param string|null $hsn_code Harmonized System of Nomenclature (HSN) tax code. The HSN number cannot contain alphabets. - * - * @return self - */ - public function setHsnCode($hsn_code) - { - $this->container['hsn_code'] = $hsn_code; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxDetail[]|null $tax_details Individual tax details per line item. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets charge_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]|null - */ - public function getChargeDetails() - { - return $this->container['charge_details']; - } - - /** - * Sets charge_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\ChargeDetails[]|null $charge_details Individual charge details per line item. - * - * @return self - */ - public function setChargeDetails($charge_details) - { - $this->container['charge_details'] = $charge_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.php deleted file mode 100644 index 4f2bc1249..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/ItemQuantity.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Quantity of units available for a specific item. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the available quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/Money.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/Money.php deleted file mode 100644 index 2e9e319b9..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/Money.php +++ /dev/null @@ -1,198 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.php deleted file mode 100644 index a5cb77ec9..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address', - 'tax_registration_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxRegistrationDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_registration_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_registration_details' => 'taxRegistrationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_registration_details' => 'setTaxRegistrationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_registration_details' => 'getTaxRegistrationDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_registration_details'] = $data['tax_registration_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned Identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_registration_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxRegistrationDetail[]|null - */ - public function getTaxRegistrationDetails() - { - return $this->container['tax_registration_details']; - } - - /** - * Sets tax_registration_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TaxRegistrationDetail[]|null $tax_registration_details Tax registration details of the entity. - * - * @return self - */ - public function setTaxRegistrationDetails($tax_registration_details) - { - $this->container['tax_registration_details'] = $tax_registration_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.php deleted file mode 100644 index e54dfcd57..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoiceRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoiceRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoices' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceDetail[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoices' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoices' => 'invoices' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoices' => 'setInvoices' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoices' => 'getInvoices' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoices'] = $data['invoices'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets invoices - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceDetail[]|null - */ - public function getInvoices() - { - return $this->container['invoices']; - } - - /** - * Sets invoices - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\InvoiceDetail[]|null $invoices invoices - * - * @return self - */ - public function setInvoices($invoices) - { - $this->container['invoices'] = $invoices; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.php deleted file mode 100644 index 95db4defd..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/SubmitInvoiceResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoiceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoiceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.php deleted file mode 100644 index 3c61efc38..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxDetail.php +++ /dev/null @@ -1,324 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_type' => 'string', - 'tax_rate' => 'string', - 'tax_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money', - 'taxable_amount' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_type' => null, - 'tax_rate' => null, - 'tax_amount' => null, - 'taxable_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_type' => 'taxType', - 'tax_rate' => 'taxRate', - 'tax_amount' => 'taxAmount', - 'taxable_amount' => 'taxableAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_type' => 'setTaxType', - 'tax_rate' => 'setTaxRate', - 'tax_amount' => 'setTaxAmount', - 'taxable_amount' => 'setTaxableAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_type' => 'getTaxType', - 'tax_rate' => 'getTaxRate', - 'tax_amount' => 'getTaxAmount', - 'taxable_amount' => 'getTaxableAmount' - ]; - - - - const TAX_TYPE_CGST = 'CGST'; - const TAX_TYPE_SGST = 'SGST'; - const TAX_TYPE_CESS = 'CESS'; - const TAX_TYPE_UTGST = 'UTGST'; - const TAX_TYPE_IGST = 'IGST'; - const TAX_TYPE_MW_ST = 'MwSt.'; - const TAX_TYPE_PST = 'PST'; - const TAX_TYPE_TVA = 'TVA'; - const TAX_TYPE_VAT = 'VAT'; - const TAX_TYPE_GST = 'GST'; - const TAX_TYPE_ST = 'ST'; - const TAX_TYPE_CONSUMPTION = 'Consumption'; - const TAX_TYPE_MUTUALLY_DEFINED = 'MutuallyDefined'; - const TAX_TYPE_DOMESTIC_VAT = 'DomesticVAT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxTypeAllowableValues() - { - $baseVals = [ - self::TAX_TYPE_CGST, - self::TAX_TYPE_SGST, - self::TAX_TYPE_CESS, - self::TAX_TYPE_UTGST, - self::TAX_TYPE_IGST, - self::TAX_TYPE_MW_ST, - self::TAX_TYPE_PST, - self::TAX_TYPE_TVA, - self::TAX_TYPE_VAT, - self::TAX_TYPE_GST, - self::TAX_TYPE_ST, - self::TAX_TYPE_CONSUMPTION, - self::TAX_TYPE_MUTUALLY_DEFINED, - self::TAX_TYPE_DOMESTIC_VAT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_type'] = $data['tax_type'] ?? null; - $this->container['tax_rate'] = $data['tax_rate'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_type'] === null) { - $invalidProperties[] = "'tax_type' can't be null"; - } - $allowedValues = $this->getTaxTypeAllowableValues(); - if ( - !is_null($this->container['tax_type']) && - !in_array(strtoupper($this->container['tax_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_type', must be one of '%s'", - $this->container['tax_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_amount'] === null) { - $invalidProperties[] = "'tax_amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_type - * - * @return string - */ - public function getTaxType() - { - return $this->container['tax_type']; - } - - /** - * Sets tax_type - * - * @param string $tax_type Type of the tax applied. - * - * @return self - */ - public function setTaxType($tax_type) - { - $allowedValues = $this->getTaxTypeAllowableValues(); - if (!in_array(strtoupper($tax_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_type', must be one of '%s'", - $tax_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_type'] = $tax_type; - - return $this; - } - /** - * Gets tax_rate - * - * @return string|null - */ - public function getTaxRate() - { - return $this->container['tax_rate']; - } - - /** - * Sets tax_rate - * - * @param string|null $tax_rate A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setTaxRate($tax_rate) - { - $this->container['tax_rate'] = $tax_rate; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets taxable_amount - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money|null - */ - public function getTaxableAmount() - { - return $this->container['taxable_amount']; - } - - /** - * Sets taxable_amount - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Money|null $taxable_amount taxable_amount - * - * @return self - */ - public function setTaxableAmount($taxable_amount) - { - $this->container['taxable_amount'] = $taxable_amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.php deleted file mode 100644 index cb128a876..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/TaxRegistrationDetail.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetail extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string', - 'tax_registration_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address', - 'tax_registration_message' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null, - 'tax_registration_address' => null, - 'tax_registration_message' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber', - 'tax_registration_address' => 'taxRegistrationAddress', - 'tax_registration_message' => 'taxRegistrationMessage' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber', - 'tax_registration_address' => 'setTaxRegistrationAddress', - 'tax_registration_message' => 'setTaxRegistrationMessage' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber', - 'tax_registration_address' => 'getTaxRegistrationAddress', - 'tax_registration_message' => 'getTaxRegistrationMessage' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - $this->container['tax_registration_address'] = $data['tax_registration_address'] ?? null; - $this->container['tax_registration_message'] = $data['tax_registration_message'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string|null - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string|null $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!is_null($tax_registration_type) &&!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the entity. For example, VAT ID, Consumption Tax ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } - /** - * Gets tax_registration_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address|null - */ - public function getTaxRegistrationAddress() - { - return $this->container['tax_registration_address']; - } - - /** - * Sets tax_registration_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentPaymentsV1\Address|null $tax_registration_address tax_registration_address - * - * @return self - */ - public function setTaxRegistrationAddress($tax_registration_address) - { - $this->container['tax_registration_address'] = $tax_registration_address; - - return $this; - } - /** - * Gets tax_registration_message - * - * @return string|null - */ - public function getTaxRegistrationMessage() - { - return $this->container['tax_registration_message']; - } - - /** - * Sets tax_registration_message - * - * @param string|null $tax_registration_message Tax registration message that can be used for additional tax related details. - * - * @return self - */ - public function setTaxRegistrationMessage($tax_registration_message) - { - $this->container['tax_registration_message'] = $tax_registration_message; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.php b/lib/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.php deleted file mode 100644 index 5fb83f2b2..000000000 --- a/lib/Model/VendorDirectFulfillmentPaymentsV1/TransactionReference.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Error.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/Error.php deleted file mode 100644 index ba1a7cf3c..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occured. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.php deleted file mode 100644 index 4914e521a..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.php deleted file mode 100644 index 32f8fdc82..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/GenerateOrderScenarioRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GenerateOrderScenarioRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GenerateOrderScenarioRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'orders' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\OrderScenarioRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'orders' => 'orders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'orders' => 'setOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'orders' => 'getOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['orders'] = $data['orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\OrderScenarioRequest[]|null - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\OrderScenarioRequest[]|null $orders The list of test orders requested as indicated by party identifiers. - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.php deleted file mode 100644 index b0e9324da..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/OrderScenarioRequest.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderScenarioRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderScenarioRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_party' => null, - 'ship_from_party' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.php deleted file mode 100644 index 5e148db05..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Pagination.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token next_token - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.php deleted file mode 100644 index bf5006e75..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/PartyIdentification.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.php deleted file mode 100644 index fb8c04e76..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Scenario.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Scenario extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Scenario'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scenario_id' => 'string', - 'orders' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestOrder[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scenario_id' => null, - 'orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scenario_id' => 'scenarioId', - 'orders' => 'orders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scenario_id' => 'setScenarioId', - 'orders' => 'setOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scenario_id' => 'getScenarioId', - 'orders' => 'getOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scenario_id'] = $data['scenario_id'] ?? null; - $this->container['orders'] = $data['orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['scenario_id'] === null) { - $invalidProperties[] = "'scenario_id' can't be null"; - } - if ($this->container['orders'] === null) { - $invalidProperties[] = "'orders' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets scenario_id - * - * @return string - */ - public function getScenarioId() - { - return $this->container['scenario_id']; - } - - /** - * Sets scenario_id - * - * @param string $scenario_id An identifier that identifies the type of scenario that user can use for testing. - * - * @return self - */ - public function setScenarioId($scenario_id) - { - $this->container['scenario_id'] = $scenario_id; - - return $this; - } - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestOrder[] - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestOrder[] $orders A list of orders that can be used by the caller to test each life cycle or scenario. - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.php deleted file mode 100644 index 8edf8cb93..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestCaseData.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TestCaseData extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TestCaseData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'scenarios' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Scenario[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'scenarios' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'scenarios' => 'scenarios' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'scenarios' => 'setScenarios' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'scenarios' => 'getScenarios' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['scenarios'] = $data['scenarios'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets scenarios - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Scenario[]|null - */ - public function getScenarios() - { - return $this->container['scenarios']; - } - - /** - * Sets scenarios - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Scenario[]|null $scenarios Set of use cases that describes the possible test scenarios. - * - * @return self - */ - public function setScenarios($scenarios) - { - $this->container['scenarios'] = $scenarios; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.php deleted file mode 100644 index a900670e8..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TestOrder.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TestOrder extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TestOrder'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'order_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'order_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'order_id' => 'orderId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'order_id' => 'setOrderId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'order_id' => 'getOrderId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['order_id'] = $data['order_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['order_id'] === null) { - $invalidProperties[] = "'order_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets order_id - * - * @return string - */ - public function getOrderId() - { - return $this->container['order_id']; - } - - /** - * Sets order_id - * - * @param string $order_id An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setOrderId($order_id) - { - $this->container['order_id'] = $order_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.php deleted file mode 100644 index 710b121de..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/Transaction.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Transaction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Transaction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string', - 'status' => 'string', - 'test_case_data' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestCaseData' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null, - 'status' => null, - 'test_case_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId', - 'status' => 'status', - 'test_case_data' => 'testCaseData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId', - 'status' => 'setStatus', - 'test_case_data' => 'setTestCaseData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId', - 'status' => 'getStatus', - 'test_case_data' => 'getTestCaseData' - ]; - - - - const STATUS_FAILURE = 'FAILURE'; - const STATUS_PROCESSING = 'PROCESSING'; - const STATUS_SUCCESS = 'SUCCESS'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_FAILURE, - self::STATUS_PROCESSING, - self::STATUS_SUCCESS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['test_case_data'] = $data['test_case_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transaction_id'] === null) { - $invalidProperties[] = "'transaction_id' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string $transaction_id The unique identifier returned in the response to the generateOrderScenarios request. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status The current processing status of the transaction. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets test_case_data - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestCaseData|null - */ - public function getTestCaseData() - { - return $this->container['test_case_data']; - } - - /** - * Sets test_case_data - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\TestCaseData|null $test_case_data test_case_data - * - * @return self - */ - public function setTestCaseData($test_case_data) - { - $this->container['test_case_data'] = $test_case_data; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.php deleted file mode 100644 index 42ac4a3ee..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionReference.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id transaction_id - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.php b/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.php deleted file mode 100644 index e6e0f84e3..000000000 --- a/lib/Model/VendorDirectFulfillmentSandboxV20211028/TransactionStatus.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_status' => '\SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Transaction' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'transaction_status' => 'transactionStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'transaction_status' => 'setTransactionStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'transaction_status' => 'getTransactionStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_status'] = $data['transaction_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets transaction_status - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Transaction|null - */ - public function getTransactionStatus() - { - return $this->container['transaction_status']; - } - - /** - * Sets transaction_status - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentSandboxV20211028\Transaction|null $transaction_status transaction_status - * - * @return self - */ - public function setTransactionStatus($transaction_status) - { - $this->container['transaction_status'] = $transaction_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Address.php b/lib/Model/VendorDirectFulfillmentShippingV1/Address.php deleted file mode 100644 index 4650a693a..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Address.php +++ /dev/null @@ -1,461 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Container.php b/lib/Model/VendorDirectFulfillmentShippingV1/Container.php deleted file mode 100644 index eefcae271..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Container.php +++ /dev/null @@ -1,533 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Container extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Container'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_type' => 'string', - 'container_identifier' => 'string', - 'tracking_number' => 'string', - 'manifest_id' => 'string', - 'manifest_date' => 'string', - 'ship_method' => 'string', - 'scac_code' => 'string', - 'carrier' => 'string', - 'container_sequence_number' => 'int', - 'dimensions' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Dimensions', - 'weight' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Weight', - 'packed_items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackedItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_type' => null, - 'container_identifier' => null, - 'tracking_number' => null, - 'manifest_id' => null, - 'manifest_date' => null, - 'ship_method' => null, - 'scac_code' => null, - 'carrier' => null, - 'container_sequence_number' => null, - 'dimensions' => null, - 'weight' => null, - 'packed_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_type' => 'containerType', - 'container_identifier' => 'containerIdentifier', - 'tracking_number' => 'trackingNumber', - 'manifest_id' => 'manifestId', - 'manifest_date' => 'manifestDate', - 'ship_method' => 'shipMethod', - 'scac_code' => 'scacCode', - 'carrier' => 'carrier', - 'container_sequence_number' => 'containerSequenceNumber', - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'packed_items' => 'packedItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_type' => 'setContainerType', - 'container_identifier' => 'setContainerIdentifier', - 'tracking_number' => 'setTrackingNumber', - 'manifest_id' => 'setManifestId', - 'manifest_date' => 'setManifestDate', - 'ship_method' => 'setShipMethod', - 'scac_code' => 'setScacCode', - 'carrier' => 'setCarrier', - 'container_sequence_number' => 'setContainerSequenceNumber', - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'packed_items' => 'setPackedItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_type' => 'getContainerType', - 'container_identifier' => 'getContainerIdentifier', - 'tracking_number' => 'getTrackingNumber', - 'manifest_id' => 'getManifestId', - 'manifest_date' => 'getManifestDate', - 'ship_method' => 'getShipMethod', - 'scac_code' => 'getScacCode', - 'carrier' => 'getCarrier', - 'container_sequence_number' => 'getContainerSequenceNumber', - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'packed_items' => 'getPackedItems' - ]; - - - - const CONTAINER_TYPE_CARTON = 'carton'; - const CONTAINER_TYPE_PALLET = 'pallet'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContainerTypeAllowableValues() - { - $baseVals = [ - self::CONTAINER_TYPE_CARTON, - self::CONTAINER_TYPE_PALLET, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_type'] = $data['container_type'] ?? null; - $this->container['container_identifier'] = $data['container_identifier'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['manifest_id'] = $data['manifest_id'] ?? null; - $this->container['manifest_date'] = $data['manifest_date'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['scac_code'] = $data['scac_code'] ?? null; - $this->container['carrier'] = $data['carrier'] ?? null; - $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['packed_items'] = $data['packed_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['container_type'] === null) { - $invalidProperties[] = "'container_type' can't be null"; - } - $allowedValues = $this->getContainerTypeAllowableValues(); - if ( - !is_null($this->container['container_type']) && - !in_array(strtoupper($this->container['container_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'container_type', must be one of '%s'", - $this->container['container_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['container_identifier'] === null) { - $invalidProperties[] = "'container_identifier' can't be null"; - } - if ($this->container['packed_items'] === null) { - $invalidProperties[] = "'packed_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets container_type - * - * @return string - */ - public function getContainerType() - { - return $this->container['container_type']; - } - - /** - * Sets container_type - * - * @param string $container_type The type of container. - * - * @return self - */ - public function setContainerType($container_type) - { - $allowedValues = $this->getContainerTypeAllowableValues(); - if (!in_array(strtoupper($container_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'container_type', must be one of '%s'", - $container_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['container_type'] = $container_type; - - return $this; - } - /** - * Gets container_identifier - * - * @return string - */ - public function getContainerIdentifier() - { - return $this->container['container_identifier']; - } - - /** - * Sets container_identifier - * - * @param string $container_identifier The container identifier. - * - * @return self - */ - public function setContainerIdentifier($container_identifier) - { - $this->container['container_identifier'] = $container_identifier; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number The tracking number. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets manifest_id - * - * @return string|null - */ - public function getManifestId() - { - return $this->container['manifest_id']; - } - - /** - * Sets manifest_id - * - * @param string|null $manifest_id The manifest identifier. - * - * @return self - */ - public function setManifestId($manifest_id) - { - $this->container['manifest_id'] = $manifest_id; - - return $this; - } - /** - * Gets manifest_date - * - * @return string|null - */ - public function getManifestDate() - { - return $this->container['manifest_date']; - } - - /** - * Sets manifest_date - * - * @param string|null $manifest_date The date of the manifest. - * - * @return self - */ - public function setManifestDate($manifest_date) - { - $this->container['manifest_date'] = $manifest_date; - - return $this; - } - /** - * Gets ship_method - * - * @return string|null - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string|null $ship_method The shipment method. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets scac_code - * - * @return string|null - */ - public function getScacCode() - { - return $this->container['scac_code']; - } - - /** - * Sets scac_code - * - * @param string|null $scac_code SCAC code required for NA VOC vendors only. - * - * @return self - */ - public function setScacCode($scac_code) - { - $this->container['scac_code'] = $scac_code; - - return $this; - } - /** - * Gets carrier - * - * @return string|null - */ - public function getCarrier() - { - return $this->container['carrier']; - } - - /** - * Sets carrier - * - * @param string|null $carrier Carrier required for EU VOC vendors only. - * - * @return self - */ - public function setCarrier($carrier) - { - $this->container['carrier'] = $carrier; - - return $this; - } - /** - * Gets container_sequence_number - * - * @return int|null - */ - public function getContainerSequenceNumber() - { - return $this->container['container_sequence_number']; - } - - /** - * Sets container_sequence_number - * - * @param int|null $container_sequence_number An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. - * - * @return self - */ - public function setContainerSequenceNumber($container_sequence_number) - { - $this->container['container_sequence_number'] = $container_sequence_number; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Dimensions|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Dimensions|null $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets packed_items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackedItem[] - */ - public function getPackedItems() - { - return $this->container['packed_items']; - } - - /** - * Sets packed_items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackedItem[] $packed_items A list of packed items. - * - * @return self - */ - public function setPackedItems($packed_items) - { - $this->container['packed_items'] = $packed_items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.php b/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.php deleted file mode 100644 index 89bd4e532..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoice.php +++ /dev/null @@ -1,205 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CustomerInvoice extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CustomerInvoice'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'content' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'content' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'content' => 'content' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'content' => 'setContent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'content' => 'getContent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['content'] = $data['content'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling CustomerInvoice., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content The Base64encoded customer invoice. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.php b/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.php deleted file mode 100644 index ba6fa9cbc..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/CustomerInvoiceList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CustomerInvoiceList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CustomerInvoiceList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination', - 'customer_invoices' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'customer_invoices' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'customer_invoices' => 'customerInvoices' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'customer_invoices' => 'setCustomerInvoices' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'customer_invoices' => 'getCustomerInvoices' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['customer_invoices'] = $data['customer_invoices'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets customer_invoices - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice[]|null - */ - public function getCustomerInvoices() - { - return $this->container['customer_invoices']; - } - - /** - * Sets customer_invoices - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice[]|null $customer_invoices customer_invoices - * - * @return self - */ - public function setCustomerInvoices($customer_invoices) - { - $this->container['customer_invoices'] = $customer_invoices; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Dimensions.php b/lib/Model/VendorDirectFulfillmentShippingV1/Dimensions.php deleted file mode 100644 index d23785b63..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Dimensions.php +++ /dev/null @@ -1,308 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'string', - 'width' => 'string', - 'height' => 'string', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'height' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - const UNIT_OF_MEASURE_IN = 'IN'; - const UNIT_OF_MEASURE_CM = 'CM'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_IN, - self::UNIT_OF_MEASURE_CM, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return string - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param string $length A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return string - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return string - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measure for dimensions. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Error.php b/lib/Model/VendorDirectFulfillmentShippingV1/Error.php deleted file mode 100644 index 41cbf2a0e..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.php deleted file mode 100644 index a4179181b..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoiceResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetCustomerInvoiceResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetCustomerInvoiceResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoice|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.php deleted file mode 100644 index d49e5cf03..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetCustomerInvoicesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetCustomerInvoicesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetCustomerInvoicesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoiceList', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoiceList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\CustomerInvoiceList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.php deleted file mode 100644 index c27f9ba94..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipListResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPackingSlipListResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPackingSlipListResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlipList', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlipList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlipList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.php deleted file mode 100644 index 39b976ab6..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetPackingSlipResponse.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPackingSlipResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPackingSlipResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.php deleted file mode 100644 index 40b4e773b..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelListResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShippingLabelListResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShippingLabelListResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelList', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.php deleted file mode 100644 index 71d2e3244..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/GetShippingLabelResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShippingLabelResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShippingLabelResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Item.php b/lib/Model/VendorDirectFulfillmentShippingV1/Item.php deleted file mode 100644 index 1b4460c63..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Item.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'int', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'shipped_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'shipped_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'shipped_quantity' => 'shippedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'shipped_quantity' => 'setShippedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'shipped_quantity' => 'getShippedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['shipped_quantity'] === null) { - $invalidProperties[] = "'shipped_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return int - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param int $item_sequence_number Item Sequence Number for the item. This must be the same value as sent in order for a given item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets shipped_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity - */ - public function getShippedQuantity() - { - return $this->container['shipped_quantity']; - } - - /** - * Sets shipped_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity $shipped_quantity shipped_quantity - * - * @return self - */ - public function setShippedQuantity($shipped_quantity) - { - $this->container['shipped_quantity'] = $shipped_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.php deleted file mode 100644 index d310cc47b..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ItemQuantity.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the shipped quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/LabelData.php b/lib/Model/VendorDirectFulfillmentShippingV1/LabelData.php deleted file mode 100644 index c5570f8c1..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/LabelData.php +++ /dev/null @@ -1,281 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelData extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_identifier' => 'string', - 'tracking_number' => 'string', - 'ship_method' => 'string', - 'ship_method_name' => 'string', - 'content' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_identifier' => null, - 'tracking_number' => null, - 'ship_method' => null, - 'ship_method_name' => null, - 'content' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_identifier' => 'packageIdentifier', - 'tracking_number' => 'trackingNumber', - 'ship_method' => 'shipMethod', - 'ship_method_name' => 'shipMethodName', - 'content' => 'content' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_identifier' => 'setPackageIdentifier', - 'tracking_number' => 'setTrackingNumber', - 'ship_method' => 'setShipMethod', - 'ship_method_name' => 'setShipMethodName', - 'content' => 'setContent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_identifier' => 'getPackageIdentifier', - 'tracking_number' => 'getTrackingNumber', - 'ship_method' => 'getShipMethod', - 'ship_method_name' => 'getShipMethodName', - 'content' => 'getContent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_identifier'] = $data['package_identifier'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['ship_method_name'] = $data['ship_method_name'] ?? null; - $this->container['content'] = $data['content'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_identifier - * - * @return string|null - */ - public function getPackageIdentifier() - { - return $this->container['package_identifier']; - } - - /** - * Sets package_identifier - * - * @param string|null $package_identifier Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level. - * - * @return self - */ - public function setPackageIdentifier($package_identifier) - { - $this->container['package_identifier'] = $package_identifier; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number Package tracking identifier from the shipping carrier. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets ship_method - * - * @return string|null - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string|null $ship_method Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets ship_method_name - * - * @return string|null - */ - public function getShipMethodName() - { - return $this->container['ship_method_name']; - } - - /** - * Sets ship_method_name - * - * @param string|null $ship_method_name Shipping method name for internal reference. - * - * @return self - */ - public function setShipMethodName($ship_method_name) - { - $this->container['ship_method_name'] = $ship_method_name; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content This field will contain the Base64encoded string of the shipment label content. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/PackedItem.php b/lib/Model/VendorDirectFulfillmentShippingV1/PackedItem.php deleted file mode 100644 index 89f244b8c..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/PackedItem.php +++ /dev/null @@ -1,254 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackedItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackedItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'int', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'packed_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'packed_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'packed_quantity' => 'packedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'packed_quantity' => 'setPackedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'packed_quantity' => 'getPackedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['packed_quantity'] = $data['packed_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['packed_quantity'] === null) { - $invalidProperties[] = "'packed_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return int - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param int $item_sequence_number Item Sequence Number for the item. This must be the same value as sent in the order for a given item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets packed_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity - */ - public function getPackedQuantity() - { - return $this->container['packed_quantity']; - } - - /** - * Sets packed_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ItemQuantity $packed_quantity packed_quantity - * - * @return self - */ - public function setPackedQuantity($packed_quantity) - { - $this->container['packed_quantity'] = $packed_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlip.php b/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlip.php deleted file mode 100644 index f96e3d7f1..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlip.php +++ /dev/null @@ -1,277 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackingSlip extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackingSlip'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'content' => 'string', - 'content_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'content' => null, - 'content_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'content' => 'content', - 'content_type' => 'contentType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'content' => 'setContent', - 'content_type' => 'setContentType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'content' => 'getContent', - 'content_type' => 'getContentType' - ]; - - - - const CONTENT_TYPE_APPLICATION_PDF = 'application/pdf'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContentTypeAllowableValues() - { - $baseVals = [ - self::CONTENT_TYPE_APPLICATION_PDF, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['content'] = $data['content'] ?? null; - $this->container['content_type'] = $data['content_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - $allowedValues = $this->getContentTypeAllowableValues(); - if ( - !is_null($this->container['content_type']) && - !in_array(strtoupper($this->container['content_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'content_type', must be one of '%s'", - $this->container['content_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the shipment that corresponds to the packing slip. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling PackingSlip., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content A Base64encoded string of the packing slip PDF. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - /** - * Gets content_type - * - * @return string|null - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param string|null $content_type The format of the file such as PDF, JPEG etc. - * - * @return self - */ - public function setContentType($content_type) - { - $allowedValues = $this->getContentTypeAllowableValues(); - if (!is_null($content_type) &&!in_array(strtoupper($content_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'content_type', must be one of '%s'", - $content_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['content_type'] = $content_type; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.php b/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.php deleted file mode 100644 index 80e80a616..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/PackingSlipList.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackingSlipList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackingSlipList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination', - 'packing_slips' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'packing_slips' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'packing_slips' => 'packingSlips' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'packing_slips' => 'setPackingSlips' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'packing_slips' => 'getPackingSlips' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['packing_slips'] = $data['packing_slips'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets packing_slips - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip[]|null - */ - public function getPackingSlips() - { - return $this->container['packing_slips']; - } - - /** - * Sets packing_slips - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PackingSlip[]|null $packing_slips packing_slips - * - * @return self - */ - public function setPackingSlips($packing_slips) - { - $this->container['packing_slips'] = $packing_slips; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Pagination.php b/lib/Model/VendorDirectFulfillmentShippingV1/Pagination.php deleted file mode 100644 index 19c00fb59..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.php deleted file mode 100644 index 2c5e3f63c..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address', - 'tax_registration_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TaxRegistrationDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_registration_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_registration_details' => 'taxRegistrationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_registration_details' => 'setTaxRegistrationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_registration_details' => 'getTaxRegistrationDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_registration_details'] = $data['tax_registration_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned Identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_registration_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TaxRegistrationDetails[]|null - */ - public function getTaxRegistrationDetails() - { - return $this->container['tax_registration_details']; - } - - /** - * Sets tax_registration_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TaxRegistrationDetails[]|null $tax_registration_details Tax registration details of the entity. - * - * @return self - */ - public function setTaxRegistrationDetails($tax_registration_details) - { - $this->container['tax_registration_details'] = $tax_registration_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.php deleted file mode 100644 index bd33f19b3..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentConfirmation.php +++ /dev/null @@ -1,330 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentConfirmation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentConfirmation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'shipment_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentDetails', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Item[]', - 'containers' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'shipment_details' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'items' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'shipment_details' => 'shipmentDetails', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'items' => 'items', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'shipment_details' => 'setShipmentDetails', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'items' => 'setItems', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'shipment_details' => 'getShipmentDetails', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'items' => 'getItems', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['shipment_details'] = $data['shipment_details'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['items'] = $data['items'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['shipment_details'] === null) { - $invalidProperties[] = "'shipment_details' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number corresponding to the shipment. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShipmentConfirmation., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets shipment_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentDetails - */ - public function getShipmentDetails() - { - return $this->container['shipment_details']; - } - - /** - * Sets shipment_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentDetails $shipment_details shipment_details - * - * @return self - */ - public function setShipmentDetails($shipment_details) - { - $this->container['shipment_details'] = $shipment_details; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Item[] $items Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]|null $containers Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.php deleted file mode 100644 index 27b01b007..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentDetails.php +++ /dev/null @@ -1,328 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipped_date' => 'string', - 'shipment_status' => 'string', - 'is_priority_shipment' => 'bool', - 'vendor_order_number' => 'string', - 'estimated_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipped_date' => null, - 'shipment_status' => null, - 'is_priority_shipment' => null, - 'vendor_order_number' => null, - 'estimated_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipped_date' => 'shippedDate', - 'shipment_status' => 'shipmentStatus', - 'is_priority_shipment' => 'isPriorityShipment', - 'vendor_order_number' => 'vendorOrderNumber', - 'estimated_delivery_date' => 'estimatedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipped_date' => 'setShippedDate', - 'shipment_status' => 'setShipmentStatus', - 'is_priority_shipment' => 'setIsPriorityShipment', - 'vendor_order_number' => 'setVendorOrderNumber', - 'estimated_delivery_date' => 'setEstimatedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipped_date' => 'getShippedDate', - 'shipment_status' => 'getShipmentStatus', - 'is_priority_shipment' => 'getIsPriorityShipment', - 'vendor_order_number' => 'getVendorOrderNumber', - 'estimated_delivery_date' => 'getEstimatedDeliveryDate' - ]; - - - - const SHIPMENT_STATUS_SHIPPED = 'SHIPPED'; - const SHIPMENT_STATUS_FLOOR_DENIAL = 'FLOOR_DENIAL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentStatusAllowableValues() - { - $baseVals = [ - self::SHIPMENT_STATUS_SHIPPED, - self::SHIPMENT_STATUS_FLOOR_DENIAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipped_date'] = $data['shipped_date'] ?? null; - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['is_priority_shipment'] = $data['is_priority_shipment'] ?? null; - $this->container['vendor_order_number'] = $data['vendor_order_number'] ?? null; - $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipped_date'] === null) { - $invalidProperties[] = "'shipped_date' can't be null"; - } - if ($this->container['shipment_status'] === null) { - $invalidProperties[] = "'shipment_status' can't be null"; - } - $allowedValues = $this->getShipmentStatusAllowableValues(); - if ( - !is_null($this->container['shipment_status']) && - !in_array(strtoupper($this->container['shipment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_status', must be one of '%s'", - $this->container['shipment_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets shipped_date - * - * @return string - */ - public function getShippedDate() - { - return $this->container['shipped_date']; - } - - /** - * Sets shipped_date - * - * @param string $shipped_date This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. Must be in ISO 8601 format. - * - * @return self - */ - public function setShippedDate($shipped_date) - { - $this->container['shipped_date'] = $shipped_date; - - return $this; - } - /** - * Gets shipment_status - * - * @return string - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param string $shipment_status Indicate the shipment status. - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $allowedValues = $this->getShipmentStatusAllowableValues(); - if (!in_array(strtoupper($shipment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_status', must be one of '%s'", - $shipment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets is_priority_shipment - * - * @return bool|null - */ - public function getIsPriorityShipment() - { - return $this->container['is_priority_shipment']; - } - - /** - * Sets is_priority_shipment - * - * @param bool|null $is_priority_shipment Provide the priority of the shipment. - * - * @return self - */ - public function setIsPriorityShipment($is_priority_shipment) - { - $this->container['is_priority_shipment'] = $is_priority_shipment; - - return $this; - } - /** - * Gets vendor_order_number - * - * @return string|null - */ - public function getVendorOrderNumber() - { - return $this->container['vendor_order_number']; - } - - /** - * Sets vendor_order_number - * - * @param string|null $vendor_order_number The vendor order number is a unique identifier generated by a vendor for their reference. - * - * @return self - */ - public function setVendorOrderNumber($vendor_order_number) - { - $this->container['vendor_order_number'] = $vendor_order_number; - - return $this; - } - /** - * Gets estimated_delivery_date - * - * @return string|null - */ - public function getEstimatedDeliveryDate() - { - return $this->container['estimated_delivery_date']; - } - - /** - * Sets estimated_delivery_date - * - * @param string|null $estimated_delivery_date Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. Must be in ISO 8601 format. - * - * @return self - */ - public function setEstimatedDeliveryDate($estimated_delivery_date) - { - $this->container['estimated_delivery_date'] = $estimated_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.php deleted file mode 100644 index 0ae89531b..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShipmentStatusUpdate.php +++ /dev/null @@ -1,269 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentStatusUpdate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentStatusUpdate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'status_update_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'status_update_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'status_update_details' => 'statusUpdateDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'status_update_details' => 'setStatusUpdateDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'status_update_details' => 'getStatusUpdateDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['status_update_details'] = $data['status_update_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['status_update_details'] === null) { - $invalidProperties[] = "'status_update_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the shipment for which to update the shipment status. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShipmentStatusUpdate., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets status_update_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetails - */ - public function getStatusUpdateDetails() - { - return $this->container['status_update_details']; - } - - /** - * Sets status_update_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetails $status_update_details status_update_details - * - * @return self - */ - public function setStatusUpdateDetails($status_update_details) - { - $this->container['status_update_details'] = $status_update_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.php deleted file mode 100644 index 1320124c8..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabel.php +++ /dev/null @@ -1,345 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabel extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabel'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'label_format' => 'string', - 'label_data' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\LabelData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'label_format' => null, - 'label_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'label_format' => 'labelFormat', - 'label_data' => 'labelData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'label_format' => 'setLabelFormat', - 'label_data' => 'setLabelData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'label_format' => 'getLabelFormat', - 'label_data' => 'getLabelData' - ]; - - - - const LABEL_FORMAT_PNG = 'PNG'; - const LABEL_FORMAT_ZPL = 'ZPL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLabelFormatAllowableValues() - { - $baseVals = [ - self::LABEL_FORMAT_PNG, - self::LABEL_FORMAT_ZPL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - $this->container['label_data'] = $data['label_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['label_format'] === null) { - $invalidProperties[] = "'label_format' can't be null"; - } - $allowedValues = $this->getLabelFormatAllowableValues(); - if ( - !is_null($this->container['label_format']) && - !in_array(strtoupper($this->container['label_format']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'label_format', must be one of '%s'", - $this->container['label_format'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['label_data'] === null) { - $invalidProperties[] = "'label_data' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number This field will contain the Purchase Order Number for this order. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShippingLabel., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets label_format - * - * @return string - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param string $label_format Format of the label. - * - * @return self - */ - public function setLabelFormat($label_format) - { - $allowedValues = $this->getLabelFormatAllowableValues(); - if (!in_array(strtoupper($label_format), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'label_format', must be one of '%s'", - $label_format, - implode("', '", $allowedValues) - ) - ); - } - $this->container['label_format'] = $label_format; - - return $this; - } - /** - * Gets label_data - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\LabelData[] - */ - public function getLabelData() - { - return $this->container['label_data']; - } - - /** - * Sets label_data - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\LabelData[] $label_data Provides the details of the packages in this shipment. - * - * @return self - */ - public function setLabelData($label_data) - { - $this->container['label_data'] = $label_data; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.php deleted file mode 100644 index 1a101c5cc..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabelList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabelList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination', - 'shipping_labels' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'shipping_labels' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'shipping_labels' => 'shippingLabels' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'shipping_labels' => 'setShippingLabels' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'shipping_labels' => 'getShippingLabels' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['shipping_labels'] = $data['shipping_labels'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets shipping_labels - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel[]|null - */ - public function getShippingLabels() - { - return $this->container['shipping_labels']; - } - - /** - * Sets shipping_labels - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabel[]|null $shipping_labels shipping_labels - * - * @return self - */ - public function setShippingLabels($shipping_labels) - { - $this->container['shipping_labels'] = $shipping_labels; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.php b/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.php deleted file mode 100644 index 833d2aa9c..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/ShippingLabelRequest.php +++ /dev/null @@ -1,266 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabelRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabelRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification', - 'containers' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the order for which to create a shipping label. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShippingLabelRequest., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Container[]|null $containers A list of the packages in this shipment. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.php b/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.php deleted file mode 100644 index b65fd87f2..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetails.php +++ /dev/null @@ -1,322 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StatusUpdateDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StatusUpdateDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_number' => 'string', - 'status_code' => 'string', - 'reason_code' => 'string', - 'status_date_time' => 'string', - 'status_location_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address', - 'shipment_schedule' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetailsShipmentSchedule' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_number' => null, - 'status_code' => null, - 'reason_code' => null, - 'status_date_time' => null, - 'status_location_address' => null, - 'shipment_schedule' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_number' => 'trackingNumber', - 'status_code' => 'statusCode', - 'reason_code' => 'reasonCode', - 'status_date_time' => 'statusDateTime', - 'status_location_address' => 'statusLocationAddress', - 'shipment_schedule' => 'shipmentSchedule' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_number' => 'setTrackingNumber', - 'status_code' => 'setStatusCode', - 'reason_code' => 'setReasonCode', - 'status_date_time' => 'setStatusDateTime', - 'status_location_address' => 'setStatusLocationAddress', - 'shipment_schedule' => 'setShipmentSchedule' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_number' => 'getTrackingNumber', - 'status_code' => 'getStatusCode', - 'reason_code' => 'getReasonCode', - 'status_date_time' => 'getStatusDateTime', - 'status_location_address' => 'getStatusLocationAddress', - 'shipment_schedule' => 'getShipmentSchedule' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['status_code'] = $data['status_code'] ?? null; - $this->container['reason_code'] = $data['reason_code'] ?? null; - $this->container['status_date_time'] = $data['status_date_time'] ?? null; - $this->container['status_location_address'] = $data['status_location_address'] ?? null; - $this->container['shipment_schedule'] = $data['shipment_schedule'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tracking_number'] === null) { - $invalidProperties[] = "'tracking_number' can't be null"; - } - if ($this->container['status_code'] === null) { - $invalidProperties[] = "'status_code' can't be null"; - } - if ($this->container['reason_code'] === null) { - $invalidProperties[] = "'reason_code' can't be null"; - } - if ($this->container['status_date_time'] === null) { - $invalidProperties[] = "'status_date_time' can't be null"; - } - if ($this->container['status_location_address'] === null) { - $invalidProperties[] = "'status_location_address' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tracking_number - * - * @return string - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string $tracking_number This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets status_code - * - * @return string - */ - public function getStatusCode() - { - return $this->container['status_code']; - } - - /** - * Sets status_code - * - * @param string $status_code Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. - * - * @return self - */ - public function setStatusCode($status_code) - { - $this->container['status_code'] = $status_code; - - return $this; - } - /** - * Gets reason_code - * - * @return string - */ - public function getReasonCode() - { - return $this->container['reason_code']; - } - - /** - * Sets reason_code - * - * @param string $reason_code Provides a reason code for the status of the package that will provide additional information about the transportation status. - * - * @return self - */ - public function setReasonCode($reason_code) - { - $this->container['reason_code'] = $reason_code; - - return $this; - } - /** - * Gets status_date_time - * - * @return string - */ - public function getStatusDateTime() - { - return $this->container['status_date_time']; - } - - /** - * Sets status_date_time - * - * @param string $status_date_time The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setStatusDateTime($status_date_time) - { - $this->container['status_date_time'] = $status_date_time; - - return $this; - } - /** - * Gets status_location_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address - */ - public function getStatusLocationAddress() - { - return $this->container['status_location_address']; - } - - /** - * Sets status_location_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address $status_location_address status_location_address - * - * @return self - */ - public function setStatusLocationAddress($status_location_address) - { - $this->container['status_location_address'] = $status_location_address; - - return $this; - } - /** - * Gets shipment_schedule - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetailsShipmentSchedule|null - */ - public function getShipmentSchedule() - { - return $this->container['shipment_schedule']; - } - - /** - * Sets shipment_schedule - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\StatusUpdateDetailsShipmentSchedule|null $shipment_schedule shipment_schedule - * - * @return self - */ - public function setShipmentSchedule($shipment_schedule) - { - $this->container['shipment_schedule'] = $shipment_schedule; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.php b/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.php deleted file mode 100644 index 76bf79469..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/StatusUpdateDetailsShipmentSchedule.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StatusUpdateDetailsShipmentSchedule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StatusUpdateDetails_shipmentSchedule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'estimated_delivery_date_time' => 'string', - 'appt_window_start_date_time' => 'string', - 'appt_window_end_date_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'estimated_delivery_date_time' => null, - 'appt_window_start_date_time' => null, - 'appt_window_end_date_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'estimated_delivery_date_time' => 'estimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'apptWindowStartDateTime', - 'appt_window_end_date_time' => 'apptWindowEndDateTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'estimated_delivery_date_time' => 'setEstimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'setApptWindowStartDateTime', - 'appt_window_end_date_time' => 'setApptWindowEndDateTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'estimated_delivery_date_time' => 'getEstimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'getApptWindowStartDateTime', - 'appt_window_end_date_time' => 'getApptWindowEndDateTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['estimated_delivery_date_time'] = $data['estimated_delivery_date_time'] ?? null; - $this->container['appt_window_start_date_time'] = $data['appt_window_start_date_time'] ?? null; - $this->container['appt_window_end_date_time'] = $data['appt_window_end_date_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets estimated_delivery_date_time - * - * @return string|null - */ - public function getEstimatedDeliveryDateTime() - { - return $this->container['estimated_delivery_date_time']; - } - - /** - * Sets estimated_delivery_date_time - * - * @param string|null $estimated_delivery_date_time Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setEstimatedDeliveryDateTime($estimated_delivery_date_time) - { - $this->container['estimated_delivery_date_time'] = $estimated_delivery_date_time; - - return $this; - } - /** - * Gets appt_window_start_date_time - * - * @return string|null - */ - public function getApptWindowStartDateTime() - { - return $this->container['appt_window_start_date_time']; - } - - /** - * Sets appt_window_start_date_time - * - * @param string|null $appt_window_start_date_time This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setApptWindowStartDateTime($appt_window_start_date_time) - { - $this->container['appt_window_start_date_time'] = $appt_window_start_date_time; - - return $this; - } - /** - * Gets appt_window_end_date_time - * - * @return string|null - */ - public function getApptWindowEndDateTime() - { - return $this->container['appt_window_end_date_time']; - } - - /** - * Sets appt_window_end_date_time - * - * @param string|null $appt_window_end_date_time This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setApptWindowEndDateTime($appt_window_end_date_time) - { - $this->container['appt_window_end_date_time'] = $appt_window_end_date_time; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.php deleted file mode 100644 index 2d8b53b25..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsRequest.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentConfirmationsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentConfirmationsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_confirmations' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentConfirmation[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_confirmations' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_confirmations' => 'shipmentConfirmations' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_confirmations' => 'setShipmentConfirmations' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_confirmations' => 'getShipmentConfirmations' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_confirmations'] = $data['shipment_confirmations'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_confirmations - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentConfirmation[]|null - */ - public function getShipmentConfirmations() - { - return $this->container['shipment_confirmations']; - } - - /** - * Sets shipment_confirmations - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentConfirmation[]|null $shipment_confirmations shipment_confirmations - * - * @return self - */ - public function setShipmentConfirmations($shipment_confirmations) - { - $this->container['shipment_confirmations'] = $shipment_confirmations; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.php deleted file mode 100644 index 8af8dd33f..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentConfirmationsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentConfirmationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentConfirmationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.php deleted file mode 100644 index 51973654e..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesRequest.php +++ /dev/null @@ -1,170 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentStatusUpdatesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentStatusUpdatesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_status_updates' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentStatusUpdate[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_status_updates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_status_updates' => 'shipmentStatusUpdates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_status_updates' => 'setShipmentStatusUpdates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_status_updates' => 'getShipmentStatusUpdates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_status_updates'] = $data['shipment_status_updates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['shipment_status_updates']) && (count($this->container['shipment_status_updates']) < 1)) { - $invalidProperties[] = "invalid value for 'shipment_status_updates', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets shipment_status_updates - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentStatusUpdate[]|null - */ - public function getShipmentStatusUpdates() - { - return $this->container['shipment_status_updates']; - } - - /** - * Sets shipment_status_updates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShipmentStatusUpdate[]|null $shipment_status_updates shipment_status_updates - * - * @return self - */ - public function setShipmentStatusUpdates($shipment_status_updates) - { - - - if (!is_null($shipment_status_updates) && (count($shipment_status_updates) < 1)) { - throw new \InvalidArgumentException('invalid length for $shipment_status_updates when calling SubmitShipmentStatusUpdatesRequest., number of items must be greater than or equal to 1.'); - } - $this->container['shipment_status_updates'] = $shipment_status_updates; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.php deleted file mode 100644 index 55f424cfd..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShipmentStatusUpdatesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentStatusUpdatesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentStatusUpdatesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.php deleted file mode 100644 index d2e7d3112..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsRequest.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShippingLabelsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShippingLabelsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_label_requests' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_label_requests' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_label_requests' => 'shippingLabelRequests' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipping_label_requests' => 'setShippingLabelRequests' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipping_label_requests' => 'getShippingLabelRequests' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_label_requests'] = $data['shipping_label_requests'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipping_label_requests - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelRequest[]|null - */ - public function getShippingLabelRequests() - { - return $this->container['shipping_label_requests']; - } - - /** - * Sets shipping_label_requests - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\ShippingLabelRequest[]|null $shipping_label_requests shipping_label_requests - * - * @return self - */ - public function setShippingLabelRequests($shipping_label_requests) - { - $this->container['shipping_label_requests'] = $shipping_label_requests; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.php b/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.php deleted file mode 100644 index bc3d4e5cb..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/SubmitShippingLabelsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShippingLabelsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShippingLabelsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.php b/lib/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.php deleted file mode 100644 index c742b7abc..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/TaxRegistrationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string', - 'tax_registration_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address', - 'tax_registration_messages' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null, - 'tax_registration_address' => null, - 'tax_registration_messages' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber', - 'tax_registration_address' => 'taxRegistrationAddress', - 'tax_registration_messages' => 'taxRegistrationMessages' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber', - 'tax_registration_address' => 'setTaxRegistrationAddress', - 'tax_registration_messages' => 'setTaxRegistrationMessages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber', - 'tax_registration_address' => 'getTaxRegistrationAddress', - 'tax_registration_messages' => 'getTaxRegistrationMessages' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - $this->container['tax_registration_address'] = $data['tax_registration_address'] ?? null; - $this->container['tax_registration_messages'] = $data['tax_registration_messages'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string|null - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string|null $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!is_null($tax_registration_type) &&!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the party. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } - /** - * Gets tax_registration_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address|null - */ - public function getTaxRegistrationAddress() - { - return $this->container['tax_registration_address']; - } - - /** - * Sets tax_registration_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV1\Address|null $tax_registration_address tax_registration_address - * - * @return self - */ - public function setTaxRegistrationAddress($tax_registration_address) - { - $this->container['tax_registration_address'] = $tax_registration_address; - - return $this; - } - /** - * Gets tax_registration_messages - * - * @return string|null - */ - public function getTaxRegistrationMessages() - { - return $this->container['tax_registration_messages']; - } - - /** - * Sets tax_registration_messages - * - * @param string|null $tax_registration_messages Tax registration message that can be used for additional tax related details. - * - * @return self - */ - public function setTaxRegistrationMessages($tax_registration_messages) - { - $this->container['tax_registration_messages'] = $tax_registration_messages; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/TransactionReference.php b/lib/Model/VendorDirectFulfillmentShippingV1/TransactionReference.php deleted file mode 100644 index baed465cf..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/TransactionReference.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV1/Weight.php b/lib/Model/VendorDirectFulfillmentShippingV1/Weight.php deleted file mode 100644 index 4888cedf0..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV1/Weight.php +++ /dev/null @@ -1,242 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit_of_measure' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit_of_measure' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit_of_measure' => 'unitOfMeasure', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit_of_measure' => 'setUnitOfMeasure', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit_of_measure' => 'getUnitOfMeasure', - 'value' => 'getValue' - ]; - - - - const UNIT_OF_MEASURE_KG = 'KG'; - const UNIT_OF_MEASURE_LB = 'LB'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_KG, - self::UNIT_OF_MEASURE_LB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measurement. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Address.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Address.php deleted file mode 100644 index 467e72754..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Address.php +++ /dev/null @@ -1,461 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Container.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Container.php deleted file mode 100644 index ae54751a6..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Container.php +++ /dev/null @@ -1,533 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Container extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Container'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_type' => 'string', - 'container_identifier' => 'string', - 'tracking_number' => 'string', - 'manifest_id' => 'string', - 'manifest_date' => 'string', - 'ship_method' => 'string', - 'scac_code' => 'string', - 'carrier' => 'string', - 'container_sequence_number' => 'int', - 'dimensions' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Dimensions', - 'weight' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Weight', - 'packed_items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackedItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_type' => null, - 'container_identifier' => null, - 'tracking_number' => null, - 'manifest_id' => null, - 'manifest_date' => null, - 'ship_method' => null, - 'scac_code' => null, - 'carrier' => null, - 'container_sequence_number' => null, - 'dimensions' => null, - 'weight' => null, - 'packed_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_type' => 'containerType', - 'container_identifier' => 'containerIdentifier', - 'tracking_number' => 'trackingNumber', - 'manifest_id' => 'manifestId', - 'manifest_date' => 'manifestDate', - 'ship_method' => 'shipMethod', - 'scac_code' => 'scacCode', - 'carrier' => 'carrier', - 'container_sequence_number' => 'containerSequenceNumber', - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'packed_items' => 'packedItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_type' => 'setContainerType', - 'container_identifier' => 'setContainerIdentifier', - 'tracking_number' => 'setTrackingNumber', - 'manifest_id' => 'setManifestId', - 'manifest_date' => 'setManifestDate', - 'ship_method' => 'setShipMethod', - 'scac_code' => 'setScacCode', - 'carrier' => 'setCarrier', - 'container_sequence_number' => 'setContainerSequenceNumber', - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'packed_items' => 'setPackedItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_type' => 'getContainerType', - 'container_identifier' => 'getContainerIdentifier', - 'tracking_number' => 'getTrackingNumber', - 'manifest_id' => 'getManifestId', - 'manifest_date' => 'getManifestDate', - 'ship_method' => 'getShipMethod', - 'scac_code' => 'getScacCode', - 'carrier' => 'getCarrier', - 'container_sequence_number' => 'getContainerSequenceNumber', - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'packed_items' => 'getPackedItems' - ]; - - - - const CONTAINER_TYPE_CARTON = 'Carton'; - const CONTAINER_TYPE_PALLET = 'Pallet'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContainerTypeAllowableValues() - { - $baseVals = [ - self::CONTAINER_TYPE_CARTON, - self::CONTAINER_TYPE_PALLET, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_type'] = $data['container_type'] ?? null; - $this->container['container_identifier'] = $data['container_identifier'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['manifest_id'] = $data['manifest_id'] ?? null; - $this->container['manifest_date'] = $data['manifest_date'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['scac_code'] = $data['scac_code'] ?? null; - $this->container['carrier'] = $data['carrier'] ?? null; - $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['packed_items'] = $data['packed_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['container_type'] === null) { - $invalidProperties[] = "'container_type' can't be null"; - } - $allowedValues = $this->getContainerTypeAllowableValues(); - if ( - !is_null($this->container['container_type']) && - !in_array(strtoupper($this->container['container_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'container_type', must be one of '%s'", - $this->container['container_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['container_identifier'] === null) { - $invalidProperties[] = "'container_identifier' can't be null"; - } - if ($this->container['packed_items'] === null) { - $invalidProperties[] = "'packed_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets container_type - * - * @return string - */ - public function getContainerType() - { - return $this->container['container_type']; - } - - /** - * Sets container_type - * - * @param string $container_type The type of container. - * - * @return self - */ - public function setContainerType($container_type) - { - $allowedValues = $this->getContainerTypeAllowableValues(); - if (!in_array(strtoupper($container_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'container_type', must be one of '%s'", - $container_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['container_type'] = $container_type; - - return $this; - } - /** - * Gets container_identifier - * - * @return string - */ - public function getContainerIdentifier() - { - return $this->container['container_identifier']; - } - - /** - * Sets container_identifier - * - * @param string $container_identifier The container identifier. - * - * @return self - */ - public function setContainerIdentifier($container_identifier) - { - $this->container['container_identifier'] = $container_identifier; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number The tracking number. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets manifest_id - * - * @return string|null - */ - public function getManifestId() - { - return $this->container['manifest_id']; - } - - /** - * Sets manifest_id - * - * @param string|null $manifest_id The manifest identifier. - * - * @return self - */ - public function setManifestId($manifest_id) - { - $this->container['manifest_id'] = $manifest_id; - - return $this; - } - /** - * Gets manifest_date - * - * @return string|null - */ - public function getManifestDate() - { - return $this->container['manifest_date']; - } - - /** - * Sets manifest_date - * - * @param string|null $manifest_date The date of the manifest. - * - * @return self - */ - public function setManifestDate($manifest_date) - { - $this->container['manifest_date'] = $manifest_date; - - return $this; - } - /** - * Gets ship_method - * - * @return string|null - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string|null $ship_method The shipment method. This property is required when calling the submitShipmentConfirmations operation, and optional otherwise. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets scac_code - * - * @return string|null - */ - public function getScacCode() - { - return $this->container['scac_code']; - } - - /** - * Sets scac_code - * - * @param string|null $scac_code SCAC code required for NA VOC vendors only. - * - * @return self - */ - public function setScacCode($scac_code) - { - $this->container['scac_code'] = $scac_code; - - return $this; - } - /** - * Gets carrier - * - * @return string|null - */ - public function getCarrier() - { - return $this->container['carrier']; - } - - /** - * Sets carrier - * - * @param string|null $carrier Carrier required for EU VOC vendors only. - * - * @return self - */ - public function setCarrier($carrier) - { - $this->container['carrier'] = $carrier; - - return $this; - } - /** - * Gets container_sequence_number - * - * @return int|null - */ - public function getContainerSequenceNumber() - { - return $this->container['container_sequence_number']; - } - - /** - * Sets container_sequence_number - * - * @param int|null $container_sequence_number An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. - * - * @return self - */ - public function setContainerSequenceNumber($container_sequence_number) - { - $this->container['container_sequence_number'] = $container_sequence_number; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Dimensions|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Dimensions|null $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets packed_items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackedItem[] - */ - public function getPackedItems() - { - return $this->container['packed_items']; - } - - /** - * Sets packed_items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackedItem[] $packed_items A list of packed items. - * - * @return self - */ - public function setPackedItems($packed_items) - { - $this->container['packed_items'] = $packed_items; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.php deleted file mode 100644 index 535d1d2cf..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/CreateShippingLabelsRequest.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreateShippingLabelsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreateShippingLabelsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'containers' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_party' => null, - 'ship_from_party' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null $containers A list of the packages in this shipment. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.php deleted file mode 100644 index 341eb8f19..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoice.php +++ /dev/null @@ -1,230 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CustomerInvoice extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CustomerInvoice'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'content' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'content' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'purchase_order_number' => 'purchaseOrderNumber', - 'content' => 'content' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'content' => 'setContent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'content' => 'getContent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['content'] = $data['content'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling CustomerInvoice., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content The Base64encoded customer invoice. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.php deleted file mode 100644 index 8f3a9a9a1..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/CustomerInvoiceList.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CustomerInvoiceList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CustomerInvoiceList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination', - 'customer_invoices' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'customer_invoices' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'pagination' => 'pagination', - 'customer_invoices' => 'customerInvoices' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'pagination' => 'setPagination', - 'customer_invoices' => 'setCustomerInvoices' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'pagination' => 'getPagination', - 'customer_invoices' => 'getCustomerInvoices' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['customer_invoices'] = $data['customer_invoices'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets customer_invoices - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice[]|null - */ - public function getCustomerInvoices() - { - return $this->container['customer_invoices']; - } - - /** - * Sets customer_invoices - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\CustomerInvoice[]|null $customer_invoices customer_invoices - * - * @return self - */ - public function setCustomerInvoices($customer_invoices) - { - $this->container['customer_invoices'] = $customer_invoices; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.php deleted file mode 100644 index ded6b40b4..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Dimensions.php +++ /dev/null @@ -1,308 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'string', - 'width' => 'string', - 'height' => 'string', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'height' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - const UNIT_OF_MEASURE_IN = 'IN'; - const UNIT_OF_MEASURE_CM = 'CM'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_IN, - self::UNIT_OF_MEASURE_CM, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return string - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param string $length A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return string - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return string - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measure for dimensions. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Error.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Error.php deleted file mode 100644 index 0fe45adb4..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.php deleted file mode 100644 index f8addcacd..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Item.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Item.php deleted file mode 100644 index 4eef1f75f..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Item.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'int', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'shipped_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'shipped_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'shipped_quantity' => 'shippedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'shipped_quantity' => 'setShippedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'shipped_quantity' => 'getShippedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['shipped_quantity'] === null) { - $invalidProperties[] = "'shipped_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return int - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param int $item_sequence_number Item Sequence Number for the item. This must be the same value as sent in order for a given item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets shipped_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity - */ - public function getShippedQuantity() - { - return $this->container['shipped_quantity']; - } - - /** - * Sets shipped_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity $shipped_quantity shipped_quantity - * - * @return self - */ - public function setShippedQuantity($shipped_quantity) - { - $this->container['shipped_quantity'] = $shipped_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.php deleted file mode 100644 index 626f4e020..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ItemQuantity.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the shipped quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/LabelData.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/LabelData.php deleted file mode 100644 index a84304a59..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/LabelData.php +++ /dev/null @@ -1,281 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelData extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'package_identifier' => 'string', - 'tracking_number' => 'string', - 'ship_method' => 'string', - 'ship_method_name' => 'string', - 'content' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'package_identifier' => null, - 'tracking_number' => null, - 'ship_method' => null, - 'ship_method_name' => null, - 'content' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'package_identifier' => 'packageIdentifier', - 'tracking_number' => 'trackingNumber', - 'ship_method' => 'shipMethod', - 'ship_method_name' => 'shipMethodName', - 'content' => 'content' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'package_identifier' => 'setPackageIdentifier', - 'tracking_number' => 'setTrackingNumber', - 'ship_method' => 'setShipMethod', - 'ship_method_name' => 'setShipMethodName', - 'content' => 'setContent' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'package_identifier' => 'getPackageIdentifier', - 'tracking_number' => 'getTrackingNumber', - 'ship_method' => 'getShipMethod', - 'ship_method_name' => 'getShipMethodName', - 'content' => 'getContent' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['package_identifier'] = $data['package_identifier'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['ship_method'] = $data['ship_method'] ?? null; - $this->container['ship_method_name'] = $data['ship_method_name'] ?? null; - $this->container['content'] = $data['content'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets package_identifier - * - * @return string|null - */ - public function getPackageIdentifier() - { - return $this->container['package_identifier']; - } - - /** - * Sets package_identifier - * - * @param string|null $package_identifier Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level. - * - * @return self - */ - public function setPackageIdentifier($package_identifier) - { - $this->container['package_identifier'] = $package_identifier; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number Package tracking identifier from the shipping carrier. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets ship_method - * - * @return string|null - */ - public function getShipMethod() - { - return $this->container['ship_method']; - } - - /** - * Sets ship_method - * - * @param string|null $ship_method Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation. - * - * @return self - */ - public function setShipMethod($ship_method) - { - $this->container['ship_method'] = $ship_method; - - return $this; - } - /** - * Gets ship_method_name - * - * @return string|null - */ - public function getShipMethodName() - { - return $this->container['ship_method_name']; - } - - /** - * Sets ship_method_name - * - * @param string|null $ship_method_name Shipping method name for internal reference. - * - * @return self - */ - public function setShipMethodName($ship_method_name) - { - $this->container['ship_method_name'] = $ship_method_name; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content This field will contain the Base64encoded string of the shipment label content. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.php deleted file mode 100644 index cdb153119..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackedItem.php +++ /dev/null @@ -1,283 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackedItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackedItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'int', - 'buyer_product_identifier' => 'string', - 'piece_number' => 'int', - 'vendor_product_identifier' => 'string', - 'packed_quantity' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'piece_number' => null, - 'vendor_product_identifier' => null, - 'packed_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'piece_number' => 'pieceNumber', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'packed_quantity' => 'packedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'piece_number' => 'setPieceNumber', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'packed_quantity' => 'setPackedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'piece_number' => 'getPieceNumber', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'packed_quantity' => 'getPackedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['piece_number'] = $data['piece_number'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['packed_quantity'] = $data['packed_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['packed_quantity'] === null) { - $invalidProperties[] = "'packed_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return int - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param int $item_sequence_number Item Sequence Number for the item. This must be the same value as sent in the order for a given item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets piece_number - * - * @return int|null - */ - public function getPieceNumber() - { - return $this->container['piece_number']; - } - - /** - * Sets piece_number - * - * @param int|null $piece_number The piece number of the item in this container. This is required when the item is split across different containers. - * - * @return self - */ - public function setPieceNumber($piece_number) - { - $this->container['piece_number'] = $piece_number; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets packed_quantity - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity - */ - public function getPackedQuantity() - { - return $this->container['packed_quantity']; - } - - /** - * Sets packed_quantity - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ItemQuantity $packed_quantity packed_quantity - * - * @return self - */ - public function setPackedQuantity($packed_quantity) - { - $this->container['packed_quantity'] = $packed_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.php deleted file mode 100644 index 874a4b84a..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlip.php +++ /dev/null @@ -1,302 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackingSlip extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackingSlip'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'content' => 'string', - 'content_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'content' => null, - 'content_type' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'purchase_order_number' => 'purchaseOrderNumber', - 'content' => 'content', - 'content_type' => 'contentType' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'content' => 'setContent', - 'content_type' => 'setContentType' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'content' => 'getContent', - 'content_type' => 'getContentType' - ]; - - - - const CONTENT_TYPE_APPLICATION_PDF = 'application/pdf'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContentTypeAllowableValues() - { - $baseVals = [ - self::CONTENT_TYPE_APPLICATION_PDF, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['content'] = $data['content'] ?? null; - $this->container['content_type'] = $data['content_type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['content'] === null) { - $invalidProperties[] = "'content' can't be null"; - } - $allowedValues = $this->getContentTypeAllowableValues(); - if ( - !is_null($this->container['content_type']) && - !in_array(strtoupper($this->container['content_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'content_type', must be one of '%s'", - $this->container['content_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the shipment that the packing slip is for. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling PackingSlip., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets content - * - * @return string - */ - public function getContent() - { - return $this->container['content']; - } - - /** - * Sets content - * - * @param string $content A Base64encoded string of the packing slip PDF. - * - * @return self - */ - public function setContent($content) - { - $this->container['content'] = $content; - - return $this; - } - /** - * Gets content_type - * - * @return string|null - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param string|null $content_type The format of the file such as PDF, JPEG etc. - * - * @return self - */ - public function setContentType($content_type) - { - $allowedValues = $this->getContentTypeAllowableValues(); - if (!is_null($content_type) &&!in_array(strtoupper($content_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'content_type', must be one of '%s'", - $content_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['content_type'] = $content_type; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.php deleted file mode 100644 index 6d5d073cb..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/PackingSlipList.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackingSlipList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackingSlipList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination', - 'packing_slips' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'packing_slips' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'pagination' => 'pagination', - 'packing_slips' => 'packingSlips' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'pagination' => 'setPagination', - 'packing_slips' => 'setPackingSlips' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'pagination' => 'getPagination', - 'packing_slips' => 'getPackingSlips' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['packing_slips'] = $data['packing_slips'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets packing_slips - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip[]|null - */ - public function getPackingSlips() - { - return $this->container['packing_slips']; - } - - /** - * Sets packing_slips - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PackingSlip[]|null $packing_slips packing_slips - * - * @return self - */ - public function setPackingSlips($packing_slips) - { - $this->container['packing_slips'] = $packing_slips; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Pagination.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Pagination.php deleted file mode 100644 index 7ea20eb48..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.php deleted file mode 100644 index 8cfcd69fc..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address', - 'tax_registration_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TaxRegistrationDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_registration_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_registration_details' => 'taxRegistrationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_registration_details' => 'setTaxRegistrationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_registration_details' => 'getTaxRegistrationDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_registration_details'] = $data['tax_registration_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned Identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_registration_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TaxRegistrationDetails[]|null - */ - public function getTaxRegistrationDetails() - { - return $this->container['tax_registration_details']; - } - - /** - * Sets tax_registration_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\TaxRegistrationDetails[]|null $tax_registration_details Tax registration details of the entity. - * - * @return self - */ - public function setTaxRegistrationDetails($tax_registration_details) - { - $this->container['tax_registration_details'] = $tax_registration_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.php deleted file mode 100644 index 69db4bd7c..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentConfirmation.php +++ /dev/null @@ -1,330 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentConfirmation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentConfirmation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'shipment_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentDetails', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'items' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Item[]', - 'containers' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'shipment_details' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'items' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'shipment_details' => 'shipmentDetails', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'items' => 'items', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'shipment_details' => 'setShipmentDetails', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'items' => 'setItems', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'shipment_details' => 'getShipmentDetails', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'items' => 'getItems', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['shipment_details'] = $data['shipment_details'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['items'] = $data['items'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['shipment_details'] === null) { - $invalidProperties[] = "'shipment_details' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number corresponding to the shipment. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShipmentConfirmation., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets shipment_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentDetails - */ - public function getShipmentDetails() - { - return $this->container['shipment_details']; - } - - /** - * Sets shipment_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentDetails $shipment_details shipment_details - * - * @return self - */ - public function setShipmentDetails($shipment_details) - { - $this->container['shipment_details'] = $shipment_details; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Item[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Item[] $items Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null $containers Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.php deleted file mode 100644 index 06f87c4af..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentDetails.php +++ /dev/null @@ -1,328 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipped_date' => 'string', - 'shipment_status' => 'string', - 'is_priority_shipment' => 'bool', - 'vendor_order_number' => 'string', - 'estimated_delivery_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipped_date' => null, - 'shipment_status' => null, - 'is_priority_shipment' => null, - 'vendor_order_number' => null, - 'estimated_delivery_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipped_date' => 'shippedDate', - 'shipment_status' => 'shipmentStatus', - 'is_priority_shipment' => 'isPriorityShipment', - 'vendor_order_number' => 'vendorOrderNumber', - 'estimated_delivery_date' => 'estimatedDeliveryDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipped_date' => 'setShippedDate', - 'shipment_status' => 'setShipmentStatus', - 'is_priority_shipment' => 'setIsPriorityShipment', - 'vendor_order_number' => 'setVendorOrderNumber', - 'estimated_delivery_date' => 'setEstimatedDeliveryDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipped_date' => 'getShippedDate', - 'shipment_status' => 'getShipmentStatus', - 'is_priority_shipment' => 'getIsPriorityShipment', - 'vendor_order_number' => 'getVendorOrderNumber', - 'estimated_delivery_date' => 'getEstimatedDeliveryDate' - ]; - - - - const SHIPMENT_STATUS_SHIPPED = 'SHIPPED'; - const SHIPMENT_STATUS_FLOOR_DENIAL = 'FLOOR_DENIAL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentStatusAllowableValues() - { - $baseVals = [ - self::SHIPMENT_STATUS_SHIPPED, - self::SHIPMENT_STATUS_FLOOR_DENIAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipped_date'] = $data['shipped_date'] ?? null; - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['is_priority_shipment'] = $data['is_priority_shipment'] ?? null; - $this->container['vendor_order_number'] = $data['vendor_order_number'] ?? null; - $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipped_date'] === null) { - $invalidProperties[] = "'shipped_date' can't be null"; - } - if ($this->container['shipment_status'] === null) { - $invalidProperties[] = "'shipment_status' can't be null"; - } - $allowedValues = $this->getShipmentStatusAllowableValues(); - if ( - !is_null($this->container['shipment_status']) && - !in_array(strtoupper($this->container['shipment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_status', must be one of '%s'", - $this->container['shipment_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets shipped_date - * - * @return string - */ - public function getShippedDate() - { - return $this->container['shipped_date']; - } - - /** - * Sets shipped_date - * - * @param string $shipped_date This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setShippedDate($shipped_date) - { - $this->container['shipped_date'] = $shipped_date; - - return $this; - } - /** - * Gets shipment_status - * - * @return string - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param string $shipment_status Indicate the shipment status. - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $allowedValues = $this->getShipmentStatusAllowableValues(); - if (!in_array(strtoupper($shipment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_status', must be one of '%s'", - $shipment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets is_priority_shipment - * - * @return bool|null - */ - public function getIsPriorityShipment() - { - return $this->container['is_priority_shipment']; - } - - /** - * Sets is_priority_shipment - * - * @param bool|null $is_priority_shipment Provide the priority of the shipment. - * - * @return self - */ - public function setIsPriorityShipment($is_priority_shipment) - { - $this->container['is_priority_shipment'] = $is_priority_shipment; - - return $this; - } - /** - * Gets vendor_order_number - * - * @return string|null - */ - public function getVendorOrderNumber() - { - return $this->container['vendor_order_number']; - } - - /** - * Sets vendor_order_number - * - * @param string|null $vendor_order_number The vendor order number is a unique identifier generated by a vendor for their reference. - * - * @return self - */ - public function setVendorOrderNumber($vendor_order_number) - { - $this->container['vendor_order_number'] = $vendor_order_number; - - return $this; - } - /** - * Gets estimated_delivery_date - * - * @return string|null - */ - public function getEstimatedDeliveryDate() - { - return $this->container['estimated_delivery_date']; - } - - /** - * Sets estimated_delivery_date - * - * @param string|null $estimated_delivery_date Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setEstimatedDeliveryDate($estimated_delivery_date) - { - $this->container['estimated_delivery_date'] = $estimated_delivery_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.php deleted file mode 100644 index af71ee322..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentSchedule.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentSchedule extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentSchedule'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'estimated_delivery_date_time' => 'string', - 'appt_window_start_date_time' => 'string', - 'appt_window_end_date_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'estimated_delivery_date_time' => null, - 'appt_window_start_date_time' => null, - 'appt_window_end_date_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'estimated_delivery_date_time' => 'estimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'apptWindowStartDateTime', - 'appt_window_end_date_time' => 'apptWindowEndDateTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'estimated_delivery_date_time' => 'setEstimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'setApptWindowStartDateTime', - 'appt_window_end_date_time' => 'setApptWindowEndDateTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'estimated_delivery_date_time' => 'getEstimatedDeliveryDateTime', - 'appt_window_start_date_time' => 'getApptWindowStartDateTime', - 'appt_window_end_date_time' => 'getApptWindowEndDateTime' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['estimated_delivery_date_time'] = $data['estimated_delivery_date_time'] ?? null; - $this->container['appt_window_start_date_time'] = $data['appt_window_start_date_time'] ?? null; - $this->container['appt_window_end_date_time'] = $data['appt_window_end_date_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets estimated_delivery_date_time - * - * @return string|null - */ - public function getEstimatedDeliveryDateTime() - { - return $this->container['estimated_delivery_date_time']; - } - - /** - * Sets estimated_delivery_date_time - * - * @param string|null $estimated_delivery_date_time Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setEstimatedDeliveryDateTime($estimated_delivery_date_time) - { - $this->container['estimated_delivery_date_time'] = $estimated_delivery_date_time; - - return $this; - } - /** - * Gets appt_window_start_date_time - * - * @return string|null - */ - public function getApptWindowStartDateTime() - { - return $this->container['appt_window_start_date_time']; - } - - /** - * Sets appt_window_start_date_time - * - * @param string|null $appt_window_start_date_time This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setApptWindowStartDateTime($appt_window_start_date_time) - { - $this->container['appt_window_start_date_time'] = $appt_window_start_date_time; - - return $this; - } - /** - * Gets appt_window_end_date_time - * - * @return string|null - */ - public function getApptWindowEndDateTime() - { - return $this->container['appt_window_end_date_time']; - } - - /** - * Sets appt_window_end_date_time - * - * @param string|null $appt_window_end_date_time This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setApptWindowEndDateTime($appt_window_end_date_time) - { - $this->container['appt_window_end_date_time'] = $appt_window_end_date_time; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.php deleted file mode 100644 index 8c42ed676..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShipmentStatusUpdate.php +++ /dev/null @@ -1,269 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentStatusUpdate extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentStatusUpdate'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'status_update_details' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\StatusUpdateDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'status_update_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'status_update_details' => 'statusUpdateDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'status_update_details' => 'setStatusUpdateDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'status_update_details' => 'getStatusUpdateDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['status_update_details'] = $data['status_update_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['status_update_details'] === null) { - $invalidProperties[] = "'status_update_details' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the shipment for which to update the shipment status. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShipmentStatusUpdate., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets status_update_details - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\StatusUpdateDetails - */ - public function getStatusUpdateDetails() - { - return $this->container['status_update_details']; - } - - /** - * Sets status_update_details - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\StatusUpdateDetails $status_update_details status_update_details - * - * @return self - */ - public function setStatusUpdateDetails($status_update_details) - { - $this->container['status_update_details'] = $status_update_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.php deleted file mode 100644 index db40a0a6a..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabel.php +++ /dev/null @@ -1,370 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabel extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabel'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'label_format' => 'string', - 'label_data' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\LabelData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'label_format' => null, - 'label_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'label_format' => 'labelFormat', - 'label_data' => 'labelData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'label_format' => 'setLabelFormat', - 'label_data' => 'setLabelData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'label_format' => 'getLabelFormat', - 'label_data' => 'getLabelData' - ]; - - - - const LABEL_FORMAT_PNG = 'PNG'; - const LABEL_FORMAT_ZPL = 'ZPL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLabelFormatAllowableValues() - { - $baseVals = [ - self::LABEL_FORMAT_PNG, - self::LABEL_FORMAT_ZPL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - $this->container['label_data'] = $data['label_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['label_format'] === null) { - $invalidProperties[] = "'label_format' can't be null"; - } - $allowedValues = $this->getLabelFormatAllowableValues(); - if ( - !is_null($this->container['label_format']) && - !in_array(strtoupper($this->container['label_format']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'label_format', must be one of '%s'", - $this->container['label_format'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['label_data'] === null) { - $invalidProperties[] = "'label_data' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number This field will contain the Purchase Order Number for this order. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShippingLabel., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets label_format - * - * @return string - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param string $label_format Format of the label. - * - * @return self - */ - public function setLabelFormat($label_format) - { - $allowedValues = $this->getLabelFormatAllowableValues(); - if (!in_array(strtoupper($label_format), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'label_format', must be one of '%s'", - $label_format, - implode("', '", $allowedValues) - ) - ); - } - $this->container['label_format'] = $label_format; - - return $this; - } - /** - * Gets label_data - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\LabelData[] - */ - public function getLabelData() - { - return $this->container['label_data']; - } - - /** - * Sets label_data - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\LabelData[] $label_data Provides the details of the packages in this shipment. - * - * @return self - */ - public function setLabelData($label_data) - { - $this->container['label_data'] = $label_data; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.php deleted file mode 100644 index 7e5c34aa9..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelList.php +++ /dev/null @@ -1,215 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabelList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabelList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination', - 'shipping_labels' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'shipping_labels' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'pagination' => 'pagination', - 'shipping_labels' => 'shippingLabels' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'pagination' => 'setPagination', - 'shipping_labels' => 'setShippingLabels' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'pagination' => 'getPagination', - 'shipping_labels' => 'getShippingLabels' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['shipping_labels'] = $data['shipping_labels'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets shipping_labels - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel[]|null - */ - public function getShippingLabels() - { - return $this->container['shipping_labels']; - } - - /** - * Sets shipping_labels - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabel[]|null $shipping_labels shipping_labels - * - * @return self - */ - public function setShippingLabels($shipping_labels) - { - $this->container['shipping_labels'] = $shipping_labels; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.php deleted file mode 100644 index ddf0af4fb..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/ShippingLabelRequest.php +++ /dev/null @@ -1,266 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShippingLabelRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShippingLabelRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification', - 'containers' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'containers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'containers' => 'containers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'containers' => 'setContainers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'containers' => 'getContainers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if (!preg_match("/^[a-zA-Z0-9]+$/", $this->container['purchase_order_number'])) { - $invalidProperties[] = "invalid value for 'purchase_order_number', must be conform to the pattern /^[a-zA-Z0-9]+$/."; - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number Purchase order number of the order for which to create a shipping label. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - - if ((!preg_match("/^[a-zA-Z0-9]+$/", $purchase_order_number))) { - throw new \InvalidArgumentException("invalid value for $purchase_order_number when calling ShippingLabelRequest., must conform to the pattern /^[a-zA-Z0-9]+$/."); - } - - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Container[]|null $containers A list of the packages in this shipment. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.php deleted file mode 100644 index 5c3aca345..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/StatusUpdateDetails.php +++ /dev/null @@ -1,322 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class StatusUpdateDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'StatusUpdateDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tracking_number' => 'string', - 'status_code' => 'string', - 'reason_code' => 'string', - 'status_date_time' => 'string', - 'status_location_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address', - 'shipment_schedule' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentSchedule' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tracking_number' => null, - 'status_code' => null, - 'reason_code' => null, - 'status_date_time' => null, - 'status_location_address' => null, - 'shipment_schedule' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tracking_number' => 'trackingNumber', - 'status_code' => 'statusCode', - 'reason_code' => 'reasonCode', - 'status_date_time' => 'statusDateTime', - 'status_location_address' => 'statusLocationAddress', - 'shipment_schedule' => 'shipmentSchedule' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tracking_number' => 'setTrackingNumber', - 'status_code' => 'setStatusCode', - 'reason_code' => 'setReasonCode', - 'status_date_time' => 'setStatusDateTime', - 'status_location_address' => 'setStatusLocationAddress', - 'shipment_schedule' => 'setShipmentSchedule' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tracking_number' => 'getTrackingNumber', - 'status_code' => 'getStatusCode', - 'reason_code' => 'getReasonCode', - 'status_date_time' => 'getStatusDateTime', - 'status_location_address' => 'getStatusLocationAddress', - 'shipment_schedule' => 'getShipmentSchedule' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['status_code'] = $data['status_code'] ?? null; - $this->container['reason_code'] = $data['reason_code'] ?? null; - $this->container['status_date_time'] = $data['status_date_time'] ?? null; - $this->container['status_location_address'] = $data['status_location_address'] ?? null; - $this->container['shipment_schedule'] = $data['shipment_schedule'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tracking_number'] === null) { - $invalidProperties[] = "'tracking_number' can't be null"; - } - if ($this->container['status_code'] === null) { - $invalidProperties[] = "'status_code' can't be null"; - } - if ($this->container['reason_code'] === null) { - $invalidProperties[] = "'reason_code' can't be null"; - } - if ($this->container['status_date_time'] === null) { - $invalidProperties[] = "'status_date_time' can't be null"; - } - if ($this->container['status_location_address'] === null) { - $invalidProperties[] = "'status_location_address' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tracking_number - * - * @return string - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string $tracking_number This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets status_code - * - * @return string - */ - public function getStatusCode() - { - return $this->container['status_code']; - } - - /** - * Sets status_code - * - * @param string $status_code Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer. - * - * @return self - */ - public function setStatusCode($status_code) - { - $this->container['status_code'] = $status_code; - - return $this; - } - /** - * Gets reason_code - * - * @return string - */ - public function getReasonCode() - { - return $this->container['reason_code']; - } - - /** - * Sets reason_code - * - * @param string $reason_code Provides a reason code for the status of the package that will provide additional information about the transportation status. - * - * @return self - */ - public function setReasonCode($reason_code) - { - $this->container['reason_code'] = $reason_code; - - return $this; - } - /** - * Gets status_date_time - * - * @return string - */ - public function getStatusDateTime() - { - return $this->container['status_date_time']; - } - - /** - * Sets status_date_time - * - * @param string $status_date_time The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00. - * - * @return self - */ - public function setStatusDateTime($status_date_time) - { - $this->container['status_date_time'] = $status_date_time; - - return $this; - } - /** - * Gets status_location_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address - */ - public function getStatusLocationAddress() - { - return $this->container['status_location_address']; - } - - /** - * Sets status_location_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address $status_location_address status_location_address - * - * @return self - */ - public function setStatusLocationAddress($status_location_address) - { - $this->container['status_location_address'] = $status_location_address; - - return $this; - } - /** - * Gets shipment_schedule - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentSchedule|null - */ - public function getShipmentSchedule() - { - return $this->container['shipment_schedule']; - } - - /** - * Sets shipment_schedule - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentSchedule|null $shipment_schedule shipment_schedule - * - * @return self - */ - public function setShipmentSchedule($shipment_schedule) - { - $this->container['shipment_schedule'] = $shipment_schedule; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.php deleted file mode 100644 index 4cc5cb687..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentConfirmationsRequest.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentConfirmationsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentConfirmationsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_confirmations' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentConfirmation[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_confirmations' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_confirmations' => 'shipmentConfirmations' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_confirmations' => 'setShipmentConfirmations' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_confirmations' => 'getShipmentConfirmations' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_confirmations'] = $data['shipment_confirmations'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_confirmations - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentConfirmation[]|null - */ - public function getShipmentConfirmations() - { - return $this->container['shipment_confirmations']; - } - - /** - * Sets shipment_confirmations - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentConfirmation[]|null $shipment_confirmations shipment_confirmations - * - * @return self - */ - public function setShipmentConfirmations($shipment_confirmations) - { - $this->container['shipment_confirmations'] = $shipment_confirmations; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.php deleted file mode 100644 index 358957df6..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShipmentStatusUpdatesRequest.php +++ /dev/null @@ -1,170 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentStatusUpdatesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentStatusUpdatesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_status_updates' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentStatusUpdate[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_status_updates' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_status_updates' => 'shipmentStatusUpdates' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_status_updates' => 'setShipmentStatusUpdates' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_status_updates' => 'getShipmentStatusUpdates' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_status_updates'] = $data['shipment_status_updates'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['shipment_status_updates']) && (count($this->container['shipment_status_updates']) < 1)) { - $invalidProperties[] = "invalid value for 'shipment_status_updates', number of items must be greater than or equal to 1."; - } - - return $invalidProperties; - } - - - /** - * Gets shipment_status_updates - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentStatusUpdate[]|null - */ - public function getShipmentStatusUpdates() - { - return $this->container['shipment_status_updates']; - } - - /** - * Sets shipment_status_updates - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShipmentStatusUpdate[]|null $shipment_status_updates shipment_status_updates - * - * @return self - */ - public function setShipmentStatusUpdates($shipment_status_updates) - { - - - if (!is_null($shipment_status_updates) && (count($shipment_status_updates) < 1)) { - throw new \InvalidArgumentException('invalid length for $shipment_status_updates when calling SubmitShipmentStatusUpdatesRequest., number of items must be greater than or equal to 1.'); - } - $this->container['shipment_status_updates'] = $shipment_status_updates; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.php deleted file mode 100644 index 1b8849449..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/SubmitShippingLabelsRequest.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShippingLabelsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShippingLabelsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipping_label_requests' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelRequest[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipping_label_requests' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipping_label_requests' => 'shippingLabelRequests' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipping_label_requests' => 'setShippingLabelRequests' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipping_label_requests' => 'getShippingLabelRequests' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipping_label_requests'] = $data['shipping_label_requests'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipping_label_requests - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelRequest[]|null - */ - public function getShippingLabelRequests() - { - return $this->container['shipping_label_requests']; - } - - /** - * Sets shipping_label_requests - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\ShippingLabelRequest[]|null $shipping_label_requests shipping_label_requests - * - * @return self - */ - public function setShippingLabelRequests($shipping_label_requests) - { - $this->container['shipping_label_requests'] = $shipping_label_requests; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.php deleted file mode 100644 index 866c0a950..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/TaxRegistrationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string', - 'tax_registration_address' => '\SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address', - 'tax_registration_messages' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null, - 'tax_registration_address' => null, - 'tax_registration_messages' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber', - 'tax_registration_address' => 'taxRegistrationAddress', - 'tax_registration_messages' => 'taxRegistrationMessages' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber', - 'tax_registration_address' => 'setTaxRegistrationAddress', - 'tax_registration_messages' => 'setTaxRegistrationMessages' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber', - 'tax_registration_address' => 'getTaxRegistrationAddress', - 'tax_registration_messages' => 'getTaxRegistrationMessages' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - $this->container['tax_registration_address'] = $data['tax_registration_address'] ?? null; - $this->container['tax_registration_messages'] = $data['tax_registration_messages'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string|null - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string|null $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!is_null($tax_registration_type) &&!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the party. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } - /** - * Gets tax_registration_address - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address|null - */ - public function getTaxRegistrationAddress() - { - return $this->container['tax_registration_address']; - } - - /** - * Sets tax_registration_address - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentShippingV20211228\Address|null $tax_registration_address tax_registration_address - * - * @return self - */ - public function setTaxRegistrationAddress($tax_registration_address) - { - $this->container['tax_registration_address'] = $tax_registration_address; - - return $this; - } - /** - * Gets tax_registration_messages - * - * @return string|null - */ - public function getTaxRegistrationMessages() - { - return $this->container['tax_registration_messages']; - } - - /** - * Sets tax_registration_messages - * - * @param string|null $tax_registration_messages Tax registration message that can be used for additional tax related details. - * - * @return self - */ - public function setTaxRegistrationMessages($tax_registration_messages) - { - $this->container['tax_registration_messages'] = $tax_registration_messages; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.php deleted file mode 100644 index db2e74263..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/TransactionReference.php +++ /dev/null @@ -1,186 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentShippingV20211228/Weight.php b/lib/Model/VendorDirectFulfillmentShippingV20211228/Weight.php deleted file mode 100644 index e92909402..000000000 --- a/lib/Model/VendorDirectFulfillmentShippingV20211228/Weight.php +++ /dev/null @@ -1,242 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit_of_measure' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit_of_measure' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit_of_measure' => 'unitOfMeasure', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit_of_measure' => 'setUnitOfMeasure', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit_of_measure' => 'getUnitOfMeasure', - 'value' => 'getValue' - ]; - - - - const UNIT_OF_MEASURE_KG = 'KG'; - const UNIT_OF_MEASURE_LB = 'LB'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_KG, - self::UNIT_OF_MEASURE_LB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measurement. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV1/Error.php b/lib/Model/VendorDirectFulfillmentTransactionsV1/Error.php deleted file mode 100644 index 440ef3ece..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.php b/lib/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.php deleted file mode 100644 index c5df2fbbe..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV1/GetTransactionResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTransactionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTransactionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\TransactionStatus', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\TransactionStatus|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\TransactionStatus|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV1/Transaction.php b/lib/Model/VendorDirectFulfillmentTransactionsV1/Transaction.php deleted file mode 100644 index 98a399387..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV1/Transaction.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Transaction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Transaction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string', - 'status' => 'string', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null, - 'status' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId', - 'status' => 'status', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId', - 'status' => 'setStatus', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId', - 'status' => 'getStatus', - 'errors' => 'getErrors' - ]; - - - - const STATUS_FAILURE = 'Failure'; - const STATUS_PROCESSING = 'Processing'; - const STATUS_SUCCESS = 'Success'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_FAILURE, - self::STATUS_PROCESSING, - self::STATUS_SUCCESS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transaction_id'] === null) { - $invalidProperties[] = "'transaction_id' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string $transaction_id The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Current processing status of the transaction. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.php b/lib/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.php deleted file mode 100644 index 5db4c6084..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV1/TransactionStatus.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_status' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Transaction' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_status' => 'transactionStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_status' => 'setTransactionStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_status' => 'getTransactionStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_status'] = $data['transaction_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_status - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Transaction|null - */ - public function getTransactionStatus() - { - return $this->container['transaction_status']; - } - - /** - * Sets transaction_status - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV1\Transaction|null $transaction_status transaction_status - * - * @return self - */ - public function setTransactionStatus($transaction_status) - { - $this->container['transaction_status'] = $transaction_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Error.php b/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Error.php deleted file mode 100644 index 96a21b079..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Error.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.php b/lib/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.php deleted file mode 100644 index 37aa6e7eb..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/ErrorList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ErrorList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ErrorList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; - } - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error[] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Error[] $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.php b/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.php deleted file mode 100644 index cbc08d6e0..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/Transaction.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Transaction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Transaction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string', - 'status' => 'string', - 'errors' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null, - 'status' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId', - 'status' => 'status', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId', - 'status' => 'setStatus', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId', - 'status' => 'getStatus', - 'errors' => 'getErrors' - ]; - - - - const STATUS_FAILURE = 'Failure'; - const STATUS_PROCESSING = 'Processing'; - const STATUS_SUCCESS = 'Success'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_FAILURE, - self::STATUS_PROCESSING, - self::STATUS_SUCCESS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transaction_id'] === null) { - $invalidProperties[] = "'transaction_id' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string $transaction_id The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Current processing status of the transaction. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\ErrorList|null $errors errors - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.php b/lib/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.php deleted file mode 100644 index 9d0705635..000000000 --- a/lib/Model/VendorDirectFulfillmentTransactionsV20211228/TransactionStatus.php +++ /dev/null @@ -1,187 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_status' => '\SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Transaction' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'transaction_status' => 'transactionStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'transaction_status' => 'setTransactionStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'transaction_status' => 'getTransactionStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_status'] = $data['transaction_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets transaction_status - * - * @return \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Transaction|null - */ - public function getTransactionStatus() - { - return $this->container['transaction_status']; - } - - /** - * Sets transaction_status - * - * @param \SellingPartnerApi\Model\VendorDirectFulfillmentTransactionsV20211228\Transaction|null $transaction_status transaction_status - * - * @return self - */ - public function setTransactionStatus($transaction_status) - { - $this->container['transaction_status'] = $transaction_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/AdditionalDetails.php b/lib/Model/VendorInvoicesV1/AdditionalDetails.php deleted file mode 100644 index dc99d8b3d..000000000 --- a/lib/Model/VendorInvoicesV1/AdditionalDetails.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AdditionalDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AdditionalDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'detail' => 'string', - 'language_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'detail' => null, - 'language_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'detail' => 'detail', - 'language_code' => 'languageCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'detail' => 'setDetail', - 'language_code' => 'setLanguageCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'detail' => 'getDetail', - 'language_code' => 'getLanguageCode' - ]; - - - - const TYPE_SUR = 'SUR'; - const TYPE_OCR = 'OCR'; - const TYPE_CARTON_COUNT = 'CartonCount'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_SUR, - self::TYPE_OCR, - self::TYPE_CARTON_COUNT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['detail'] = $data['detail'] ?? null; - $this->container['language_code'] = $data['language_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['detail'] === null) { - $invalidProperties[] = "'detail' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type The type of the additional information provided by the selling party. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets detail - * - * @return string - */ - public function getDetail() - { - return $this->container['detail']; - } - - /** - * Sets detail - * - * @param string $detail The detail of the additional information provided by the selling party. - * - * @return self - */ - public function setDetail($detail) - { - $this->container['detail'] = $detail; - - return $this; - } - /** - * Gets language_code - * - * @return string|null - */ - public function getLanguageCode() - { - return $this->container['language_code']; - } - - /** - * Sets language_code - * - * @param string|null $language_code The language code of the additional information detail. - * - * @return self - */ - public function setLanguageCode($language_code) - { - $this->container['language_code'] = $language_code; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/Address.php b/lib/Model/VendorInvoicesV1/Address.php deleted file mode 100644 index 73fd6c474..000000000 --- a/lib/Model/VendorInvoicesV1/Address.php +++ /dev/null @@ -1,469 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_or_zip_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_or_zip_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_or_zip_code' => 'postalOrZipCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_or_zip_code' => 'setPostalOrZipCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_or_zip_code' => 'getPostalOrZipCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_or_zip_code'] = $data['postal_or_zip_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ((mb_strlen($this->container['country_code']) > 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be smaller than or equal to 2."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of street address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_or_zip_code - * - * @return string|null - */ - public function getPostalOrZipCode() - { - return $this->container['postal_or_zip_code']; - } - - /** - * Sets postal_or_zip_code - * - * @param string|null $postal_or_zip_code The postal or zip code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalOrZipCode($postal_or_zip_code) - { - $this->container['postal_or_zip_code'] = $postal_or_zip_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - if ((mb_strlen($country_code) > 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Address., must be smaller than or equal to 2.'); - } - - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/AllowanceDetails.php b/lib/Model/VendorInvoicesV1/AllowanceDetails.php deleted file mode 100644 index f4cd8920e..000000000 --- a/lib/Model/VendorInvoicesV1/AllowanceDetails.php +++ /dev/null @@ -1,307 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AllowanceDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AllowanceDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'description' => 'string', - 'allowance_amount' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'description' => null, - 'allowance_amount' => null, - 'tax_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'description' => 'description', - 'allowance_amount' => 'allowanceAmount', - 'tax_details' => 'taxDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'description' => 'setDescription', - 'allowance_amount' => 'setAllowanceAmount', - 'tax_details' => 'setTaxDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'description' => 'getDescription', - 'allowance_amount' => 'getAllowanceAmount', - 'tax_details' => 'getTaxDetails' - ]; - - - - const TYPE_DISCOUNT = 'Discount'; - const TYPE_DISCOUNT_INCENTIVE = 'DiscountIncentive'; - const TYPE_DEFECTIVE = 'Defective'; - const TYPE_PROMOTIONAL = 'Promotional'; - const TYPE_UNSALEABLE_MERCHANDISE = 'UnsaleableMerchandise'; - const TYPE_SPECIAL = 'Special'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_DISCOUNT, - self::TYPE_DISCOUNT_INCENTIVE, - self::TYPE_DEFECTIVE, - self::TYPE_PROMOTIONAL, - self::TYPE_UNSALEABLE_MERCHANDISE, - self::TYPE_SPECIAL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['allowance_amount'] = $data['allowance_amount'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['allowance_amount'] === null) { - $invalidProperties[] = "'allowance_amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type Type of the allowance applied. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description Description of the allowance. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets allowance_amount - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money - */ - public function getAllowanceAmount() - { - return $this->container['allowance_amount']; - } - - /** - * Sets allowance_amount - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money $allowance_amount allowance_amount - * - * @return self - */ - public function setAllowanceAmount($allowance_amount) - { - $this->container['allowance_amount'] = $allowance_amount; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null $tax_details Tax amount details applied on this allowance. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/ChargeDetails.php b/lib/Model/VendorInvoicesV1/ChargeDetails.php deleted file mode 100644 index d48666582..000000000 --- a/lib/Model/VendorInvoicesV1/ChargeDetails.php +++ /dev/null @@ -1,317 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ChargeDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ChargeDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'description' => 'string', - 'charge_amount' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'description' => null, - 'charge_amount' => null, - 'tax_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'description' => 'description', - 'charge_amount' => 'chargeAmount', - 'tax_details' => 'taxDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'description' => 'setDescription', - 'charge_amount' => 'setChargeAmount', - 'tax_details' => 'setTaxDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'description' => 'getDescription', - 'charge_amount' => 'getChargeAmount', - 'tax_details' => 'getTaxDetails' - ]; - - - - const TYPE_FREIGHT = 'Freight'; - const TYPE_PACKING = 'Packing'; - const TYPE_DUTY = 'Duty'; - const TYPE_SERVICE = 'Service'; - const TYPE_SMALL_ORDER = 'SmallOrder'; - const TYPE_INSURANCE_PLACEMENT_COST = 'InsurancePlacementCost'; - const TYPE_INSURANCE_FEE = 'InsuranceFee'; - const TYPE_SPECIAL_HANDLING_SERVICE = 'SpecialHandlingService'; - const TYPE_COLLECTION_AND_RECYCLING_SERVICE = 'CollectionAndRecyclingService'; - const TYPE_ENVIRONMENTAL_PROTECTION_SERVICE = 'EnvironmentalProtectionService'; - const TYPE_TAX_COLLECTED_AT_SOURCE = 'TaxCollectedAtSource'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_FREIGHT, - self::TYPE_PACKING, - self::TYPE_DUTY, - self::TYPE_SERVICE, - self::TYPE_SMALL_ORDER, - self::TYPE_INSURANCE_PLACEMENT_COST, - self::TYPE_INSURANCE_FEE, - self::TYPE_SPECIAL_HANDLING_SERVICE, - self::TYPE_COLLECTION_AND_RECYCLING_SERVICE, - self::TYPE_ENVIRONMENTAL_PROTECTION_SERVICE, - self::TYPE_TAX_COLLECTED_AT_SOURCE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['charge_amount'] = $data['charge_amount'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['type'] === null) { - $invalidProperties[] = "'type' can't be null"; - } - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['charge_amount'] === null) { - $invalidProperties[] = "'charge_amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string $type Type of the charge applied. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets description - * - * @return string|null - */ - public function getDescription() - { - return $this->container['description']; - } - - /** - * Sets description - * - * @param string|null $description Description of the charge. - * - * @return self - */ - public function setDescription($description) - { - $this->container['description'] = $description; - - return $this; - } - /** - * Gets charge_amount - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money - */ - public function getChargeAmount() - { - return $this->container['charge_amount']; - } - - /** - * Sets charge_amount - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money $charge_amount charge_amount - * - * @return self - */ - public function setChargeAmount($charge_amount) - { - $this->container['charge_amount'] = $charge_amount; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null $tax_details Tax amount details applied on this charge. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/CreditNoteDetails.php b/lib/Model/VendorInvoicesV1/CreditNoteDetails.php deleted file mode 100644 index d250674c3..000000000 --- a/lib/Model/VendorInvoicesV1/CreditNoteDetails.php +++ /dev/null @@ -1,336 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CreditNoteDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CreditNoteDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'reference_invoice_number' => 'string', - 'debit_note_number' => 'string', - 'returns_reference_number' => 'string', - 'goods_return_date' => 'string', - 'rma_id' => 'string', - 'coop_reference_number' => 'string', - 'consignors_reference_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'reference_invoice_number' => null, - 'debit_note_number' => null, - 'returns_reference_number' => null, - 'goods_return_date' => null, - 'rma_id' => null, - 'coop_reference_number' => null, - 'consignors_reference_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'reference_invoice_number' => 'referenceInvoiceNumber', - 'debit_note_number' => 'debitNoteNumber', - 'returns_reference_number' => 'returnsReferenceNumber', - 'goods_return_date' => 'goodsReturnDate', - 'rma_id' => 'rmaId', - 'coop_reference_number' => 'coopReferenceNumber', - 'consignors_reference_number' => 'consignorsReferenceNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'reference_invoice_number' => 'setReferenceInvoiceNumber', - 'debit_note_number' => 'setDebitNoteNumber', - 'returns_reference_number' => 'setReturnsReferenceNumber', - 'goods_return_date' => 'setGoodsReturnDate', - 'rma_id' => 'setRmaId', - 'coop_reference_number' => 'setCoopReferenceNumber', - 'consignors_reference_number' => 'setConsignorsReferenceNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'reference_invoice_number' => 'getReferenceInvoiceNumber', - 'debit_note_number' => 'getDebitNoteNumber', - 'returns_reference_number' => 'getReturnsReferenceNumber', - 'goods_return_date' => 'getGoodsReturnDate', - 'rma_id' => 'getRmaId', - 'coop_reference_number' => 'getCoopReferenceNumber', - 'consignors_reference_number' => 'getConsignorsReferenceNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['reference_invoice_number'] = $data['reference_invoice_number'] ?? null; - $this->container['debit_note_number'] = $data['debit_note_number'] ?? null; - $this->container['returns_reference_number'] = $data['returns_reference_number'] ?? null; - $this->container['goods_return_date'] = $data['goods_return_date'] ?? null; - $this->container['rma_id'] = $data['rma_id'] ?? null; - $this->container['coop_reference_number'] = $data['coop_reference_number'] ?? null; - $this->container['consignors_reference_number'] = $data['consignors_reference_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets reference_invoice_number - * - * @return string|null - */ - public function getReferenceInvoiceNumber() - { - return $this->container['reference_invoice_number']; - } - - /** - * Sets reference_invoice_number - * - * @param string|null $reference_invoice_number Original Invoice Number when sending a credit note relating to an existing invoice. One Invoice only to be processed per Credit Note. This is mandatory for AP Credit Notes. - * - * @return self - */ - public function setReferenceInvoiceNumber($reference_invoice_number) - { - $this->container['reference_invoice_number'] = $reference_invoice_number; - - return $this; - } - /** - * Gets debit_note_number - * - * @return string|null - */ - public function getDebitNoteNumber() - { - return $this->container['debit_note_number']; - } - - /** - * Sets debit_note_number - * - * @param string|null $debit_note_number Debit Note Number as generated by Amazon. Recommended for Returns and COOP Credit Notes. - * - * @return self - */ - public function setDebitNoteNumber($debit_note_number) - { - $this->container['debit_note_number'] = $debit_note_number; - - return $this; - } - /** - * Gets returns_reference_number - * - * @return string|null - */ - public function getReturnsReferenceNumber() - { - return $this->container['returns_reference_number']; - } - - /** - * Sets returns_reference_number - * - * @param string|null $returns_reference_number Identifies the Returns Notice Number. Mandatory for all Returns Credit Notes. - * - * @return self - */ - public function setReturnsReferenceNumber($returns_reference_number) - { - $this->container['returns_reference_number'] = $returns_reference_number; - - return $this; - } - /** - * Gets goods_return_date - * - * @return string|null - */ - public function getGoodsReturnDate() - { - return $this->container['goods_return_date']; - } - - /** - * Sets goods_return_date - * - * @param string|null $goods_return_date Defines a date and time according to ISO8601. - * - * @return self - */ - public function setGoodsReturnDate($goods_return_date) - { - $this->container['goods_return_date'] = $goods_return_date; - - return $this; - } - /** - * Gets rma_id - * - * @return string|null - */ - public function getRmaId() - { - return $this->container['rma_id']; - } - - /** - * Sets rma_id - * - * @param string|null $rma_id Identifies the Returned Merchandise Authorization ID, if generated. - * - * @return self - */ - public function setRmaId($rma_id) - { - $this->container['rma_id'] = $rma_id; - - return $this; - } - /** - * Gets coop_reference_number - * - * @return string|null - */ - public function getCoopReferenceNumber() - { - return $this->container['coop_reference_number']; - } - - /** - * Sets coop_reference_number - * - * @param string|null $coop_reference_number Identifies the COOP reference used for COOP agreement. Failure to provide the COOP reference number or the Debit Note number may lead to a rejection of the Credit Note. - * - * @return self - */ - public function setCoopReferenceNumber($coop_reference_number) - { - $this->container['coop_reference_number'] = $coop_reference_number; - - return $this; - } - /** - * Gets consignors_reference_number - * - * @return string|null - */ - public function getConsignorsReferenceNumber() - { - return $this->container['consignors_reference_number']; - } - - /** - * Sets consignors_reference_number - * - * @param string|null $consignors_reference_number Identifies the consignor reference number (VRET number), if generated by Amazon. - * - * @return self - */ - public function setConsignorsReferenceNumber($consignors_reference_number) - { - $this->container['consignors_reference_number'] = $consignors_reference_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/Error.php b/lib/Model/VendorInvoicesV1/Error.php deleted file mode 100644 index cfa152f18..000000000 --- a/lib/Model/VendorInvoicesV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/Invoice.php b/lib/Model/VendorInvoicesV1/Invoice.php deleted file mode 100644 index 0ddea49af..000000000 --- a/lib/Model/VendorInvoicesV1/Invoice.php +++ /dev/null @@ -1,626 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Invoice extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Invoice'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoice_type' => 'string', - 'id' => 'string', - 'reference_number' => 'string', - 'date' => 'string', - 'remit_to_party' => '\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification', - 'bill_to_party' => '\SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification', - 'payment_terms' => '\SellingPartnerApi\Model\VendorInvoicesV1\PaymentTerms', - 'invoice_total' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money', - 'tax_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]', - 'additional_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\AdditionalDetails[]', - 'charge_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]', - 'allowance_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]', - 'items' => '\SellingPartnerApi\Model\VendorInvoicesV1\InvoiceItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoice_type' => null, - 'id' => null, - 'reference_number' => null, - 'date' => null, - 'remit_to_party' => null, - 'ship_to_party' => null, - 'ship_from_party' => null, - 'bill_to_party' => null, - 'payment_terms' => null, - 'invoice_total' => null, - 'tax_details' => null, - 'additional_details' => null, - 'charge_details' => null, - 'allowance_details' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoice_type' => 'invoiceType', - 'id' => 'id', - 'reference_number' => 'referenceNumber', - 'date' => 'date', - 'remit_to_party' => 'remitToParty', - 'ship_to_party' => 'shipToParty', - 'ship_from_party' => 'shipFromParty', - 'bill_to_party' => 'billToParty', - 'payment_terms' => 'paymentTerms', - 'invoice_total' => 'invoiceTotal', - 'tax_details' => 'taxDetails', - 'additional_details' => 'additionalDetails', - 'charge_details' => 'chargeDetails', - 'allowance_details' => 'allowanceDetails', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoice_type' => 'setInvoiceType', - 'id' => 'setId', - 'reference_number' => 'setReferenceNumber', - 'date' => 'setDate', - 'remit_to_party' => 'setRemitToParty', - 'ship_to_party' => 'setShipToParty', - 'ship_from_party' => 'setShipFromParty', - 'bill_to_party' => 'setBillToParty', - 'payment_terms' => 'setPaymentTerms', - 'invoice_total' => 'setInvoiceTotal', - 'tax_details' => 'setTaxDetails', - 'additional_details' => 'setAdditionalDetails', - 'charge_details' => 'setChargeDetails', - 'allowance_details' => 'setAllowanceDetails', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoice_type' => 'getInvoiceType', - 'id' => 'getId', - 'reference_number' => 'getReferenceNumber', - 'date' => 'getDate', - 'remit_to_party' => 'getRemitToParty', - 'ship_to_party' => 'getShipToParty', - 'ship_from_party' => 'getShipFromParty', - 'bill_to_party' => 'getBillToParty', - 'payment_terms' => 'getPaymentTerms', - 'invoice_total' => 'getInvoiceTotal', - 'tax_details' => 'getTaxDetails', - 'additional_details' => 'getAdditionalDetails', - 'charge_details' => 'getChargeDetails', - 'allowance_details' => 'getAllowanceDetails', - 'items' => 'getItems' - ]; - - - - const INVOICE_TYPE_INVOICE = 'Invoice'; - const INVOICE_TYPE_CREDIT_NOTE = 'CreditNote'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getInvoiceTypeAllowableValues() - { - $baseVals = [ - self::INVOICE_TYPE_INVOICE, - self::INVOICE_TYPE_CREDIT_NOTE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoice_type'] = $data['invoice_type'] ?? null; - $this->container['id'] = $data['id'] ?? null; - $this->container['reference_number'] = $data['reference_number'] ?? null; - $this->container['date'] = $data['date'] ?? null; - $this->container['remit_to_party'] = $data['remit_to_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['bill_to_party'] = $data['bill_to_party'] ?? null; - $this->container['payment_terms'] = $data['payment_terms'] ?? null; - $this->container['invoice_total'] = $data['invoice_total'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['additional_details'] = $data['additional_details'] ?? null; - $this->container['charge_details'] = $data['charge_details'] ?? null; - $this->container['allowance_details'] = $data['allowance_details'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['invoice_type'] === null) { - $invalidProperties[] = "'invoice_type' can't be null"; - } - $allowedValues = $this->getInvoiceTypeAllowableValues(); - if ( - !is_null($this->container['invoice_type']) && - !in_array(strtoupper($this->container['invoice_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'invoice_type', must be one of '%s'", - $this->container['invoice_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } - if ($this->container['remit_to_party'] === null) { - $invalidProperties[] = "'remit_to_party' can't be null"; - } - if ($this->container['invoice_total'] === null) { - $invalidProperties[] = "'invoice_total' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets invoice_type - * - * @return string - */ - public function getInvoiceType() - { - return $this->container['invoice_type']; - } - - /** - * Sets invoice_type - * - * @param string $invoice_type Identifies the type of invoice. - * - * @return self - */ - public function setInvoiceType($invoice_type) - { - $allowedValues = $this->getInvoiceTypeAllowableValues(); - if (!in_array(strtoupper($invoice_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'invoice_type', must be one of '%s'", - $invoice_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['invoice_type'] = $invoice_type; - - return $this; - } - /** - * Gets id - * - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string $id Unique number relating to the charges defined in this document. This will be invoice number if the document type is Invoice or CreditNote number if the document type is Credit Note. Failure to provide this reference will result in a rejection. - * - * @return self - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - /** - * Gets reference_number - * - * @return string|null - */ - public function getReferenceNumber() - { - return $this->container['reference_number']; - } - - /** - * Sets reference_number - * - * @param string|null $reference_number An additional unique reference number used for regulatory or other purposes. - * - * @return self - */ - public function setReferenceNumber($reference_number) - { - $this->container['reference_number'] = $reference_number; - - return $this; - } - /** - * Gets date - * - * @return string - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param string $date Defines a date and time according to ISO8601. - * - * @return self - */ - public function setDate($date) - { - $this->container['date'] = $date; - - return $this; - } - /** - * Gets remit_to_party - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification - */ - public function getRemitToParty() - { - return $this->container['remit_to_party']; - } - - /** - * Sets remit_to_party - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification $remit_to_party remit_to_party - * - * @return self - */ - public function setRemitToParty($remit_to_party) - { - $this->container['remit_to_party'] = $remit_to_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets bill_to_party - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null - */ - public function getBillToParty() - { - return $this->container['bill_to_party']; - } - - /** - * Sets bill_to_party - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\PartyIdentification|null $bill_to_party bill_to_party - * - * @return self - */ - public function setBillToParty($bill_to_party) - { - $this->container['bill_to_party'] = $bill_to_party; - - return $this; - } - /** - * Gets payment_terms - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\PaymentTerms|null - */ - public function getPaymentTerms() - { - return $this->container['payment_terms']; - } - - /** - * Sets payment_terms - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\PaymentTerms|null $payment_terms payment_terms - * - * @return self - */ - public function setPaymentTerms($payment_terms) - { - $this->container['payment_terms'] = $payment_terms; - - return $this; - } - /** - * Gets invoice_total - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money - */ - public function getInvoiceTotal() - { - return $this->container['invoice_total']; - } - - /** - * Sets invoice_total - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money $invoice_total invoice_total - * - * @return self - */ - public function setInvoiceTotal($invoice_total) - { - $this->container['invoice_total'] = $invoice_total; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null $tax_details Total tax amount details for all line items. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets additional_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\AdditionalDetails[]|null - */ - public function getAdditionalDetails() - { - return $this->container['additional_details']; - } - - /** - * Sets additional_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\AdditionalDetails[]|null $additional_details Additional details provided by the selling party, for tax related or other purposes. - * - * @return self - */ - public function setAdditionalDetails($additional_details) - { - $this->container['additional_details'] = $additional_details; - - return $this; - } - /** - * Gets charge_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]|null - */ - public function getChargeDetails() - { - return $this->container['charge_details']; - } - - /** - * Sets charge_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]|null $charge_details Total charge amount details for all line items. - * - * @return self - */ - public function setChargeDetails($charge_details) - { - $this->container['charge_details'] = $charge_details; - - return $this; - } - /** - * Gets allowance_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]|null - */ - public function getAllowanceDetails() - { - return $this->container['allowance_details']; - } - - /** - * Sets allowance_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]|null $allowance_details Total allowance amount details for all line items. - * - * @return self - */ - public function setAllowanceDetails($allowance_details) - { - $this->container['allowance_details'] = $allowance_details; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\InvoiceItem[]|null - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\InvoiceItem[]|null $items The list of invoice items. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/InvoiceItem.php b/lib/Model/VendorInvoicesV1/InvoiceItem.php deleted file mode 100644 index cd6499a88..000000000 --- a/lib/Model/VendorInvoicesV1/InvoiceItem.php +++ /dev/null @@ -1,461 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InvoiceItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InvoiceItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'int', - 'amazon_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'invoiced_quantity' => '\SellingPartnerApi\Model\VendorInvoicesV1\ItemQuantity', - 'net_cost' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money', - 'purchase_order_number' => 'string', - 'hsn_code' => 'string', - 'credit_note_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\CreditNoteDetails', - 'tax_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]', - 'charge_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]', - 'allowance_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'amazon_product_identifier' => null, - 'vendor_product_identifier' => null, - 'invoiced_quantity' => null, - 'net_cost' => null, - 'purchase_order_number' => null, - 'hsn_code' => null, - 'credit_note_details' => null, - 'tax_details' => null, - 'charge_details' => null, - 'allowance_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'amazon_product_identifier' => 'amazonProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'invoiced_quantity' => 'invoicedQuantity', - 'net_cost' => 'netCost', - 'purchase_order_number' => 'purchaseOrderNumber', - 'hsn_code' => 'hsnCode', - 'credit_note_details' => 'creditNoteDetails', - 'tax_details' => 'taxDetails', - 'charge_details' => 'chargeDetails', - 'allowance_details' => 'allowanceDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'amazon_product_identifier' => 'setAmazonProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'invoiced_quantity' => 'setInvoicedQuantity', - 'net_cost' => 'setNetCost', - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'hsn_code' => 'setHsnCode', - 'credit_note_details' => 'setCreditNoteDetails', - 'tax_details' => 'setTaxDetails', - 'charge_details' => 'setChargeDetails', - 'allowance_details' => 'setAllowanceDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'amazon_product_identifier' => 'getAmazonProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'invoiced_quantity' => 'getInvoicedQuantity', - 'net_cost' => 'getNetCost', - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'hsn_code' => 'getHsnCode', - 'credit_note_details' => 'getCreditNoteDetails', - 'tax_details' => 'getTaxDetails', - 'charge_details' => 'getChargeDetails', - 'allowance_details' => 'getAllowanceDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['amazon_product_identifier'] = $data['amazon_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['invoiced_quantity'] = $data['invoiced_quantity'] ?? null; - $this->container['net_cost'] = $data['net_cost'] ?? null; - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['hsn_code'] = $data['hsn_code'] ?? null; - $this->container['credit_note_details'] = $data['credit_note_details'] ?? null; - $this->container['tax_details'] = $data['tax_details'] ?? null; - $this->container['charge_details'] = $data['charge_details'] ?? null; - $this->container['allowance_details'] = $data['allowance_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['invoiced_quantity'] === null) { - $invalidProperties[] = "'invoiced_quantity' can't be null"; - } - if ($this->container['net_cost'] === null) { - $invalidProperties[] = "'net_cost' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return int - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param int $item_sequence_number Unique number related to this line item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets amazon_product_identifier - * - * @return string|null - */ - public function getAmazonProductIdentifier() - { - return $this->container['amazon_product_identifier']; - } - - /** - * Sets amazon_product_identifier - * - * @param string|null $amazon_product_identifier Amazon Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setAmazonProductIdentifier($amazon_product_identifier) - { - $this->container['amazon_product_identifier'] = $amazon_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identifier of the item. Should be the same as was provided in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets invoiced_quantity - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\ItemQuantity - */ - public function getInvoicedQuantity() - { - return $this->container['invoiced_quantity']; - } - - /** - * Sets invoiced_quantity - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\ItemQuantity $invoiced_quantity invoiced_quantity - * - * @return self - */ - public function setInvoicedQuantity($invoiced_quantity) - { - $this->container['invoiced_quantity'] = $invoiced_quantity; - - return $this; - } - /** - * Gets net_cost - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money - */ - public function getNetCost() - { - return $this->container['net_cost']; - } - - /** - * Sets net_cost - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money $net_cost net_cost - * - * @return self - */ - public function setNetCost($net_cost) - { - $this->container['net_cost'] = $net_cost; - - return $this; - } - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets hsn_code - * - * @return string|null - */ - public function getHsnCode() - { - return $this->container['hsn_code']; - } - - /** - * Sets hsn_code - * - * @param string|null $hsn_code HSN Tax code. The HSN number cannot contain alphabets. - * - * @return self - */ - public function setHsnCode($hsn_code) - { - $this->container['hsn_code'] = $hsn_code; - - return $this; - } - /** - * Gets credit_note_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\CreditNoteDetails|null - */ - public function getCreditNoteDetails() - { - return $this->container['credit_note_details']; - } - - /** - * Sets credit_note_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\CreditNoteDetails|null $credit_note_details credit_note_details - * - * @return self - */ - public function setCreditNoteDetails($credit_note_details) - { - $this->container['credit_note_details'] = $credit_note_details; - - return $this; - } - /** - * Gets tax_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null - */ - public function getTaxDetails() - { - return $this->container['tax_details']; - } - - /** - * Sets tax_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TaxDetails[]|null $tax_details Individual tax details per line item. - * - * @return self - */ - public function setTaxDetails($tax_details) - { - $this->container['tax_details'] = $tax_details; - - return $this; - } - /** - * Gets charge_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]|null - */ - public function getChargeDetails() - { - return $this->container['charge_details']; - } - - /** - * Sets charge_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\ChargeDetails[]|null $charge_details Individual charge details per line item. - * - * @return self - */ - public function setChargeDetails($charge_details) - { - $this->container['charge_details'] = $charge_details; - - return $this; - } - /** - * Gets allowance_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]|null - */ - public function getAllowanceDetails() - { - return $this->container['allowance_details']; - } - - /** - * Sets allowance_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\AllowanceDetails[]|null $allowance_details Individual allowance details per line item. - * - * @return self - */ - public function setAllowanceDetails($allowance_details) - { - $this->container['allowance_details'] = $allowance_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/ItemQuantity.php b/lib/Model/VendorInvoicesV1/ItemQuantity.php deleted file mode 100644 index cbcae89e8..000000000 --- a/lib/Model/VendorInvoicesV1/ItemQuantity.php +++ /dev/null @@ -1,270 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string', - 'unit_size' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null, - 'unit_size' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure', - 'unit_size' => 'unitSize' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure', - 'unit_size' => 'setUnitSize' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure', - 'unit_size' => 'getUnitSize' - ]; - - - - const UNIT_OF_MEASURE_CASES = 'Cases'; - const UNIT_OF_MEASURE_EACHES = 'Eaches'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_CASES, - self::UNIT_OF_MEASURE_EACHES, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['unit_size'] = $data['unit_size'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Quantity of an item. This value should not be zero. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets unit_size - * - * @return int|null - */ - public function getUnitSize() - { - return $this->container['unit_size']; - } - - /** - * Sets unit_size - * - * @param int|null $unit_size The case size, if the unit of measure value is Cases. - * - * @return self - */ - public function setUnitSize($unit_size) - { - $this->container['unit_size'] = $unit_size; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/Money.php b/lib/Model/VendorInvoicesV1/Money.php deleted file mode 100644 index a64bac2b3..000000000 --- a/lib/Model/VendorInvoicesV1/Money.php +++ /dev/null @@ -1,192 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code Three-digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/PartyIdentification.php b/lib/Model/VendorInvoicesV1/PartyIdentification.php deleted file mode 100644 index 4d85ab915..000000000 --- a/lib/Model/VendorInvoicesV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorInvoicesV1\Address', - 'tax_registration_details' => '\SellingPartnerApi\Model\VendorInvoicesV1\TaxRegistrationDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_registration_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_registration_details' => 'taxRegistrationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_registration_details' => 'setTaxRegistrationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_registration_details' => 'getTaxRegistrationDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_registration_details'] = $data['tax_registration_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_registration_details - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TaxRegistrationDetails[]|null - */ - public function getTaxRegistrationDetails() - { - return $this->container['tax_registration_details']; - } - - /** - * Sets tax_registration_details - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TaxRegistrationDetails[]|null $tax_registration_details Tax registration details of the party. - * - * @return self - */ - public function setTaxRegistrationDetails($tax_registration_details) - { - $this->container['tax_registration_details'] = $tax_registration_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/PaymentTerms.php b/lib/Model/VendorInvoicesV1/PaymentTerms.php deleted file mode 100644 index 28ac937f2..000000000 --- a/lib/Model/VendorInvoicesV1/PaymentTerms.php +++ /dev/null @@ -1,302 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PaymentTerms extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PaymentTerms'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'discount_percent' => 'string', - 'discount_due_days' => 'float', - 'net_due_days' => 'float' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'discount_percent' => null, - 'discount_due_days' => null, - 'net_due_days' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'discount_percent' => 'discountPercent', - 'discount_due_days' => 'discountDueDays', - 'net_due_days' => 'netDueDays' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'discount_percent' => 'setDiscountPercent', - 'discount_due_days' => 'setDiscountDueDays', - 'net_due_days' => 'setNetDueDays' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'discount_percent' => 'getDiscountPercent', - 'discount_due_days' => 'getDiscountDueDays', - 'net_due_days' => 'getNetDueDays' - ]; - - - - const TYPE_BASIC = 'Basic'; - const TYPE_END_OF_MONTH = 'EndOfMonth'; - const TYPE_FIXED_DATE = 'FixedDate'; - const TYPE_PROXIMO = 'Proximo'; - const TYPE_PAYMENT_DUE_UPON_RECEIPT_OF_INVOICE = 'PaymentDueUponReceiptOfInvoice'; - const TYPE_LETTEROF_CREDIT = 'LetterofCredit'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - $baseVals = [ - self::TYPE_BASIC, - self::TYPE_END_OF_MONTH, - self::TYPE_FIXED_DATE, - self::TYPE_PROXIMO, - self::TYPE_PAYMENT_DUE_UPON_RECEIPT_OF_INVOICE, - self::TYPE_LETTEROF_CREDIT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['discount_percent'] = $data['discount_percent'] ?? null; - $this->container['discount_due_days'] = $data['discount_due_days'] ?? null; - $this->container['net_due_days'] = $data['net_due_days'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getTypeAllowableValues(); - if ( - !is_null($this->container['type']) && - !in_array(strtoupper($this->container['type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type The payment term type for the invoice. - * - * @return self - */ - public function setType($type) - { - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) &&!in_array(strtoupper($type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['type'] = $type; - - return $this; - } - /** - * Gets discount_percent - * - * @return string|null - */ - public function getDiscountPercent() - { - return $this->container['discount_percent']; - } - - /** - * Sets discount_percent - * - * @param string|null $discount_percent A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setDiscountPercent($discount_percent) - { - $this->container['discount_percent'] = $discount_percent; - - return $this; - } - /** - * Gets discount_due_days - * - * @return float|null - */ - public function getDiscountDueDays() - { - return $this->container['discount_due_days']; - } - - /** - * Sets discount_due_days - * - * @param float|null $discount_due_days The number of calendar days from the Base date (Invoice date) until the discount is no longer valid. - * - * @return self - */ - public function setDiscountDueDays($discount_due_days) - { - $this->container['discount_due_days'] = $discount_due_days; - - return $this; - } - /** - * Gets net_due_days - * - * @return float|null - */ - public function getNetDueDays() - { - return $this->container['net_due_days']; - } - - /** - * Sets net_due_days - * - * @param float|null $net_due_days The number of calendar days from the base date (invoice date) until the total amount on the invoice is due. - * - * @return self - */ - public function setNetDueDays($net_due_days) - { - $this->container['net_due_days'] = $net_due_days; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/SubmitInvoicesRequest.php b/lib/Model/VendorInvoicesV1/SubmitInvoicesRequest.php deleted file mode 100644 index f0e02a3e6..000000000 --- a/lib/Model/VendorInvoicesV1/SubmitInvoicesRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoicesRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoicesRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'invoices' => '\SellingPartnerApi\Model\VendorInvoicesV1\Invoice[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'invoices' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'invoices' => 'invoices' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'invoices' => 'setInvoices' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'invoices' => 'getInvoices' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['invoices'] = $data['invoices'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets invoices - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Invoice[]|null - */ - public function getInvoices() - { - return $this->container['invoices']; - } - - /** - * Sets invoices - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Invoice[]|null $invoices invoices - * - * @return self - */ - public function setInvoices($invoices) - { - $this->container['invoices'] = $invoices; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/SubmitInvoicesResponse.php b/lib/Model/VendorInvoicesV1/SubmitInvoicesResponse.php deleted file mode 100644 index b4c9a512c..000000000 --- a/lib/Model/VendorInvoicesV1/SubmitInvoicesResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitInvoicesResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitInvoicesResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorInvoicesV1\TransactionId', - 'errors' => '\SellingPartnerApi\Model\VendorInvoicesV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\TransactionId|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\TransactionId|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/TaxDetails.php b/lib/Model/VendorInvoicesV1/TaxDetails.php deleted file mode 100644 index 3d8f01cbe..000000000 --- a/lib/Model/VendorInvoicesV1/TaxDetails.php +++ /dev/null @@ -1,324 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_type' => 'string', - 'tax_rate' => 'string', - 'tax_amount' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money', - 'taxable_amount' => '\SellingPartnerApi\Model\VendorInvoicesV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_type' => null, - 'tax_rate' => null, - 'tax_amount' => null, - 'taxable_amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_type' => 'taxType', - 'tax_rate' => 'taxRate', - 'tax_amount' => 'taxAmount', - 'taxable_amount' => 'taxableAmount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_type' => 'setTaxType', - 'tax_rate' => 'setTaxRate', - 'tax_amount' => 'setTaxAmount', - 'taxable_amount' => 'setTaxableAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_type' => 'getTaxType', - 'tax_rate' => 'getTaxRate', - 'tax_amount' => 'getTaxAmount', - 'taxable_amount' => 'getTaxableAmount' - ]; - - - - const TAX_TYPE_CGST = 'CGST'; - const TAX_TYPE_SGST = 'SGST'; - const TAX_TYPE_CESS = 'CESS'; - const TAX_TYPE_UTGST = 'UTGST'; - const TAX_TYPE_IGST = 'IGST'; - const TAX_TYPE_MW_ST = 'MwSt.'; - const TAX_TYPE_PST = 'PST'; - const TAX_TYPE_TVA = 'TVA'; - const TAX_TYPE_VAT = 'VAT'; - const TAX_TYPE_GST = 'GST'; - const TAX_TYPE_ST = 'ST'; - const TAX_TYPE_CONSUMPTION = 'Consumption'; - const TAX_TYPE_MUTUALLY_DEFINED = 'MutuallyDefined'; - const TAX_TYPE_DOMESTIC_VAT = 'DomesticVAT'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxTypeAllowableValues() - { - $baseVals = [ - self::TAX_TYPE_CGST, - self::TAX_TYPE_SGST, - self::TAX_TYPE_CESS, - self::TAX_TYPE_UTGST, - self::TAX_TYPE_IGST, - self::TAX_TYPE_MW_ST, - self::TAX_TYPE_PST, - self::TAX_TYPE_TVA, - self::TAX_TYPE_VAT, - self::TAX_TYPE_GST, - self::TAX_TYPE_ST, - self::TAX_TYPE_CONSUMPTION, - self::TAX_TYPE_MUTUALLY_DEFINED, - self::TAX_TYPE_DOMESTIC_VAT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_type'] = $data['tax_type'] ?? null; - $this->container['tax_rate'] = $data['tax_rate'] ?? null; - $this->container['tax_amount'] = $data['tax_amount'] ?? null; - $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_type'] === null) { - $invalidProperties[] = "'tax_type' can't be null"; - } - $allowedValues = $this->getTaxTypeAllowableValues(); - if ( - !is_null($this->container['tax_type']) && - !in_array(strtoupper($this->container['tax_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_type', must be one of '%s'", - $this->container['tax_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_amount'] === null) { - $invalidProperties[] = "'tax_amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_type - * - * @return string - */ - public function getTaxType() - { - return $this->container['tax_type']; - } - - /** - * Sets tax_type - * - * @param string $tax_type Type of the tax applied. - * - * @return self - */ - public function setTaxType($tax_type) - { - $allowedValues = $this->getTaxTypeAllowableValues(); - if (!in_array(strtoupper($tax_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_type', must be one of '%s'", - $tax_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_type'] = $tax_type; - - return $this; - } - /** - * Gets tax_rate - * - * @return string|null - */ - public function getTaxRate() - { - return $this->container['tax_rate']; - } - - /** - * Sets tax_rate - * - * @param string|null $tax_rate A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setTaxRate($tax_rate) - { - $this->container['tax_rate'] = $tax_rate; - - return $this; - } - /** - * Gets tax_amount - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money - */ - public function getTaxAmount() - { - return $this->container['tax_amount']; - } - - /** - * Sets tax_amount - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money $tax_amount tax_amount - * - * @return self - */ - public function setTaxAmount($tax_amount) - { - $this->container['tax_amount'] = $tax_amount; - - return $this; - } - /** - * Gets taxable_amount - * - * @return \SellingPartnerApi\Model\VendorInvoicesV1\Money|null - */ - public function getTaxableAmount() - { - return $this->container['taxable_amount']; - } - - /** - * Sets taxable_amount - * - * @param \SellingPartnerApi\Model\VendorInvoicesV1\Money|null $taxable_amount taxable_amount - * - * @return self - */ - public function setTaxableAmount($taxable_amount) - { - $this->container['taxable_amount'] = $taxable_amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/TaxRegistrationDetails.php b/lib/Model/VendorInvoicesV1/TaxRegistrationDetails.php deleted file mode 100644 index 9a6ec09f3..000000000 --- a/lib/Model/VendorInvoicesV1/TaxRegistrationDetails.php +++ /dev/null @@ -1,241 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_registration_type'] === null) { - $invalidProperties[] = "'tax_registration_type' can't be null"; - } - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string $tax_registration_type The tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number The tax registration number for the entity. For example, VAT ID, Consumption Tax ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorInvoicesV1/TransactionId.php b/lib/Model/VendorInvoicesV1/TransactionId.php deleted file mode 100644 index 7647159b7..000000000 --- a/lib/Model/VendorInvoicesV1/TransactionId.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionId extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionId'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/AcknowledgementStatusDetails.php b/lib/Model/VendorOrdersV1/AcknowledgementStatusDetails.php deleted file mode 100644 index 6531a0f79..000000000 --- a/lib/Model/VendorOrdersV1/AcknowledgementStatusDetails.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class AcknowledgementStatusDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'AcknowledgementStatusDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'acknowledgement_date' => 'string', - 'accepted_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'rejected_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'acknowledgement_date' => null, - 'accepted_quantity' => null, - 'rejected_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'acknowledgement_date' => 'acknowledgementDate', - 'accepted_quantity' => 'acceptedQuantity', - 'rejected_quantity' => 'rejectedQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'acknowledgement_date' => 'setAcknowledgementDate', - 'accepted_quantity' => 'setAcceptedQuantity', - 'rejected_quantity' => 'setRejectedQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'acknowledgement_date' => 'getAcknowledgementDate', - 'accepted_quantity' => 'getAcceptedQuantity', - 'rejected_quantity' => 'getRejectedQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['acknowledgement_date'] = $data['acknowledgement_date'] ?? null; - $this->container['accepted_quantity'] = $data['accepted_quantity'] ?? null; - $this->container['rejected_quantity'] = $data['rejected_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets acknowledgement_date - * - * @return string|null - */ - public function getAcknowledgementDate() - { - return $this->container['acknowledgement_date']; - } - - /** - * Sets acknowledgement_date - * - * @param string|null $acknowledgement_date The date when the line item was confirmed by vendor. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setAcknowledgementDate($acknowledgement_date) - { - $this->container['acknowledgement_date'] = $acknowledgement_date; - - return $this; - } - /** - * Gets accepted_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getAcceptedQuantity() - { - return $this->container['accepted_quantity']; - } - - /** - * Sets accepted_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $accepted_quantity accepted_quantity - * - * @return self - */ - public function setAcceptedQuantity($accepted_quantity) - { - $this->container['accepted_quantity'] = $accepted_quantity; - - return $this; - } - /** - * Gets rejected_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getRejectedQuantity() - { - return $this->container['rejected_quantity']; - } - - /** - * Sets rejected_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $rejected_quantity rejected_quantity - * - * @return self - */ - public function setRejectedQuantity($rejected_quantity) - { - $this->container['rejected_quantity'] = $rejected_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/Address.php b/lib/Model/VendorOrdersV1/Address.php deleted file mode 100644 index 4bea4d1a2..000000000 --- a/lib/Model/VendorOrdersV1/Address.php +++ /dev/null @@ -1,469 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - if ((mb_strlen($this->container['country_code']) > 2)) { - $invalidProperties[] = "invalid value for 'country_code', the character length must be smaller than or equal to 2."; - } - - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - if ((mb_strlen($country_code) > 2)) { - throw new \InvalidArgumentException('invalid length for $country_code when calling Address., must be smaller than or equal to 2.'); - } - - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/Error.php b/lib/Model/VendorOrdersV1/Error.php deleted file mode 100644 index f5ac7c5b2..000000000 --- a/lib/Model/VendorOrdersV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/GetPurchaseOrderResponse.php b/lib/Model/VendorOrdersV1/GetPurchaseOrderResponse.php deleted file mode 100644 index d7ab488a1..000000000 --- a/lib/Model/VendorOrdersV1/GetPurchaseOrderResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPurchaseOrderResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPurchaseOrderResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorOrdersV1\Order', - 'errors' => '\SellingPartnerApi\Model\VendorOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Order|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Order|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/GetPurchaseOrdersResponse.php b/lib/Model/VendorOrdersV1/GetPurchaseOrdersResponse.php deleted file mode 100644 index c81e5c776..000000000 --- a/lib/Model/VendorOrdersV1/GetPurchaseOrdersResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPurchaseOrdersResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPurchaseOrdersResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderList', - 'errors' => '\SellingPartnerApi\Model\VendorOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderList|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderList|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.php b/lib/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.php deleted file mode 100644 index e217774e7..000000000 --- a/lib/Model/VendorOrdersV1/GetPurchaseOrdersStatusResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetPurchaseOrdersStatusResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetPurchaseOrdersStatusResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderListStatus', - 'errors' => '\SellingPartnerApi\Model\VendorOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderListStatus|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderListStatus|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/ImportDetails.php b/lib/Model/VendorOrdersV1/ImportDetails.php deleted file mode 100644 index cffc3b704..000000000 --- a/lib/Model/VendorOrdersV1/ImportDetails.php +++ /dev/null @@ -1,410 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImportDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImportDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'method_of_payment' => 'string', - 'international_commercial_terms' => 'string', - 'port_of_delivery' => 'string', - 'import_containers' => 'string', - 'shipping_instructions' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'method_of_payment' => null, - 'international_commercial_terms' => null, - 'port_of_delivery' => null, - 'import_containers' => null, - 'shipping_instructions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'method_of_payment' => 'methodOfPayment', - 'international_commercial_terms' => 'internationalCommercialTerms', - 'port_of_delivery' => 'portOfDelivery', - 'import_containers' => 'importContainers', - 'shipping_instructions' => 'shippingInstructions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'method_of_payment' => 'setMethodOfPayment', - 'international_commercial_terms' => 'setInternationalCommercialTerms', - 'port_of_delivery' => 'setPortOfDelivery', - 'import_containers' => 'setImportContainers', - 'shipping_instructions' => 'setShippingInstructions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'method_of_payment' => 'getMethodOfPayment', - 'international_commercial_terms' => 'getInternationalCommercialTerms', - 'port_of_delivery' => 'getPortOfDelivery', - 'import_containers' => 'getImportContainers', - 'shipping_instructions' => 'getShippingInstructions' - ]; - - - - const METHOD_OF_PAYMENT_PAID_BY_BUYER = 'PaidByBuyer'; - const METHOD_OF_PAYMENT_COLLECT_ON_DELIVERY = 'CollectOnDelivery'; - const METHOD_OF_PAYMENT_DEFINED_BY_BUYER_AND_SELLER = 'DefinedByBuyerAndSeller'; - const METHOD_OF_PAYMENT_FOB_PORT_OF_CALL = 'FOBPortOfCall'; - const METHOD_OF_PAYMENT_PREPAID_BY_SELLER = 'PrepaidBySeller'; - const METHOD_OF_PAYMENT_PAID_BY_SELLER = 'PaidBySeller'; - - - const INTERNATIONAL_COMMERCIAL_TERMS_EX_WORKS = 'ExWorks'; - const INTERNATIONAL_COMMERCIAL_TERMS_FREE_CARRIER = 'FreeCarrier'; - const INTERNATIONAL_COMMERCIAL_TERMS_FREE_ON_BOARD = 'FreeOnBoard'; - const INTERNATIONAL_COMMERCIAL_TERMS_FREE_ALONG_SIDE_SHIP = 'FreeAlongSideShip'; - const INTERNATIONAL_COMMERCIAL_TERMS_CARRIAGE_PAID_TO = 'CarriagePaidTo'; - const INTERNATIONAL_COMMERCIAL_TERMS_COST_AND_FREIGHT = 'CostAndFreight'; - const INTERNATIONAL_COMMERCIAL_TERMS_CARRIAGE_AND_INSURANCE_PAID_TO = 'CarriageAndInsurancePaidTo'; - const INTERNATIONAL_COMMERCIAL_TERMS_COST_INSURANCE_AND_FREIGHT = 'CostInsuranceAndFreight'; - const INTERNATIONAL_COMMERCIAL_TERMS_DELIVERED_AT_TERMINAL = 'DeliveredAtTerminal'; - const INTERNATIONAL_COMMERCIAL_TERMS_DELIVERED_AT_PLACE = 'DeliveredAtPlace'; - const INTERNATIONAL_COMMERCIAL_TERMS_DELIVER_DUTY_PAID = 'DeliverDutyPaid'; - const INTERNATIONAL_COMMERCIAL_TERMS_OTHER = 'Other'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMethodOfPaymentAllowableValues() - { - $baseVals = [ - self::METHOD_OF_PAYMENT_PAID_BY_BUYER, - self::METHOD_OF_PAYMENT_COLLECT_ON_DELIVERY, - self::METHOD_OF_PAYMENT_DEFINED_BY_BUYER_AND_SELLER, - self::METHOD_OF_PAYMENT_FOB_PORT_OF_CALL, - self::METHOD_OF_PAYMENT_PREPAID_BY_SELLER, - self::METHOD_OF_PAYMENT_PAID_BY_SELLER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getInternationalCommercialTermsAllowableValues() - { - $baseVals = [ - self::INTERNATIONAL_COMMERCIAL_TERMS_EX_WORKS, - self::INTERNATIONAL_COMMERCIAL_TERMS_FREE_CARRIER, - self::INTERNATIONAL_COMMERCIAL_TERMS_FREE_ON_BOARD, - self::INTERNATIONAL_COMMERCIAL_TERMS_FREE_ALONG_SIDE_SHIP, - self::INTERNATIONAL_COMMERCIAL_TERMS_CARRIAGE_PAID_TO, - self::INTERNATIONAL_COMMERCIAL_TERMS_COST_AND_FREIGHT, - self::INTERNATIONAL_COMMERCIAL_TERMS_CARRIAGE_AND_INSURANCE_PAID_TO, - self::INTERNATIONAL_COMMERCIAL_TERMS_COST_INSURANCE_AND_FREIGHT, - self::INTERNATIONAL_COMMERCIAL_TERMS_DELIVERED_AT_TERMINAL, - self::INTERNATIONAL_COMMERCIAL_TERMS_DELIVERED_AT_PLACE, - self::INTERNATIONAL_COMMERCIAL_TERMS_DELIVER_DUTY_PAID, - self::INTERNATIONAL_COMMERCIAL_TERMS_OTHER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['method_of_payment'] = $data['method_of_payment'] ?? null; - $this->container['international_commercial_terms'] = $data['international_commercial_terms'] ?? null; - $this->container['port_of_delivery'] = $data['port_of_delivery'] ?? null; - $this->container['import_containers'] = $data['import_containers'] ?? null; - $this->container['shipping_instructions'] = $data['shipping_instructions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getMethodOfPaymentAllowableValues(); - if ( - !is_null($this->container['method_of_payment']) && - !in_array(strtoupper($this->container['method_of_payment']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'method_of_payment', must be one of '%s'", - $this->container['method_of_payment'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getInternationalCommercialTermsAllowableValues(); - if ( - !is_null($this->container['international_commercial_terms']) && - !in_array(strtoupper($this->container['international_commercial_terms']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'international_commercial_terms', must be one of '%s'", - $this->container['international_commercial_terms'], - implode("', '", $allowedValues) - ); - } - - if (!is_null($this->container['port_of_delivery']) && (mb_strlen($this->container['port_of_delivery']) > 64)) { - $invalidProperties[] = "invalid value for 'port_of_delivery', the character length must be smaller than or equal to 64."; - } - - if (!is_null($this->container['import_containers']) && (mb_strlen($this->container['import_containers']) > 64)) { - $invalidProperties[] = "invalid value for 'import_containers', the character length must be smaller than or equal to 64."; - } - - return $invalidProperties; - } - - - /** - * Gets method_of_payment - * - * @return string|null - */ - public function getMethodOfPayment() - { - return $this->container['method_of_payment']; - } - - /** - * Sets method_of_payment - * - * @param string|null $method_of_payment If the recipient requests, contains the shipment method of payment. This is for import PO's only. - * - * @return self - */ - public function setMethodOfPayment($method_of_payment) - { - $allowedValues = $this->getMethodOfPaymentAllowableValues(); - if (!is_null($method_of_payment) &&!in_array(strtoupper($method_of_payment), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'method_of_payment', must be one of '%s'", - $method_of_payment, - implode("', '", $allowedValues) - ) - ); - } - $this->container['method_of_payment'] = $method_of_payment; - - return $this; - } - /** - * Gets international_commercial_terms - * - * @return string|null - */ - public function getInternationalCommercialTerms() - { - return $this->container['international_commercial_terms']; - } - - /** - * Sets international_commercial_terms - * - * @param string|null $international_commercial_terms Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only. - * - * @return self - */ - public function setInternationalCommercialTerms($international_commercial_terms) - { - $allowedValues = $this->getInternationalCommercialTermsAllowableValues(); - if (!is_null($international_commercial_terms) &&!in_array(strtoupper($international_commercial_terms), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'international_commercial_terms', must be one of '%s'", - $international_commercial_terms, - implode("', '", $allowedValues) - ) - ); - } - $this->container['international_commercial_terms'] = $international_commercial_terms; - - return $this; - } - /** - * Gets port_of_delivery - * - * @return string|null - */ - public function getPortOfDelivery() - { - return $this->container['port_of_delivery']; - } - - /** - * Sets port_of_delivery - * - * @param string|null $port_of_delivery The port where goods on an import purchase order must be delivered by the vendor. This should only be specified when the internationalCommercialTerms is FOB. - * - * @return self - */ - public function setPortOfDelivery($port_of_delivery) - { - if (!is_null($port_of_delivery) && (mb_strlen($port_of_delivery) > 64)) { - throw new \InvalidArgumentException('invalid length for $port_of_delivery when calling ImportDetails., must be smaller than or equal to 64.'); - } - - $this->container['port_of_delivery'] = $port_of_delivery; - - return $this; - } - /** - * Gets import_containers - * - * @return string|null - */ - public function getImportContainers() - { - return $this->container['import_containers']; - } - - /** - * Sets import_containers - * - * @param string|null $import_containers Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if the shipment has multiple containers. HC signifies a high-capacity container. Free-text field, limited to 64 characters. The format will be a comma-delimited list containing values of the type: $NUMBER_OF_CONTAINERS_OF_THIS_TYPE-$CONTAINER_TYPE. The list of values for the container type is: 40'(40-foot container), 40'HC (40-foot high-capacity container), 45', 45'HC, 30', 30'HC, 20', 20'HC. - * - * @return self - */ - public function setImportContainers($import_containers) - { - if (!is_null($import_containers) && (mb_strlen($import_containers) > 64)) { - throw new \InvalidArgumentException('invalid length for $import_containers when calling ImportDetails., must be smaller than or equal to 64.'); - } - - $this->container['import_containers'] = $import_containers; - - return $this; - } - /** - * Gets shipping_instructions - * - * @return string|null - */ - public function getShippingInstructions() - { - return $this->container['shipping_instructions']; - } - - /** - * Sets shipping_instructions - * - * @param string|null $shipping_instructions Special instructions regarding the shipment. This field is for import purchase orders. - * - * @return self - */ - public function setShippingInstructions($shipping_instructions) - { - $this->container['shipping_instructions'] = $shipping_instructions; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/ItemQuantity.php b/lib/Model/VendorOrdersV1/ItemQuantity.php deleted file mode 100644 index f73dc6164..000000000 --- a/lib/Model/VendorOrdersV1/ItemQuantity.php +++ /dev/null @@ -1,264 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string', - 'unit_size' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null, - 'unit_size' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure', - 'unit_size' => 'unitSize' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure', - 'unit_size' => 'setUnitSize' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure', - 'unit_size' => 'getUnitSize' - ]; - - - - const UNIT_OF_MEASURE_CASES = 'Cases'; - const UNIT_OF_MEASURE_EACHES = 'Eaches'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_CASES, - self::UNIT_OF_MEASURE_EACHES, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['unit_size'] = $data['unit_size'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int|null $amount Acknowledged quantity. This value should not be zero. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string|null - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string|null $unit_of_measure Unit of measure for the acknowledged quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!is_null($unit_of_measure) &&!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets unit_size - * - * @return int|null - */ - public function getUnitSize() - { - return $this->container['unit_size']; - } - - /** - * Sets unit_size - * - * @param int|null $unit_size The case size, in the event that we ordered using cases. - * - * @return self - */ - public function setUnitSize($unit_size) - { - $this->container['unit_size'] = $unit_size; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/Money.php b/lib/Model/VendorOrdersV1/Money.php deleted file mode 100644 index e481c979f..000000000 --- a/lib/Model/VendorOrdersV1/Money.php +++ /dev/null @@ -1,200 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if (!is_null($this->container['currency_code']) && (mb_strlen($this->container['currency_code']) > 3)) { - $invalidProperties[] = "invalid value for 'currency_code', the character length must be smaller than or equal to 3."; - } - - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string|null - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string|null $currency_code Three digit currency code in ISO 4217 format. String of length 3. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - if (!is_null($currency_code) && (mb_strlen($currency_code) > 3)) { - throw new \InvalidArgumentException('invalid length for $currency_code when calling Money., must be smaller than or equal to 3.'); - } - - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string|null - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string|null $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/Order.php b/lib/Model/VendorOrdersV1/Order.php deleted file mode 100644 index 4f09646d4..000000000 --- a/lib/Model/VendorOrdersV1/Order.php +++ /dev/null @@ -1,271 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Order extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Order'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'purchase_order_state' => 'string', - 'order_details' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'purchase_order_state' => null, - 'order_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'purchase_order_state' => 'purchaseOrderState', - 'order_details' => 'orderDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'purchase_order_state' => 'setPurchaseOrderState', - 'order_details' => 'setOrderDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'purchase_order_state' => 'getPurchaseOrderState', - 'order_details' => 'getOrderDetails' - ]; - - - - const PURCHASE_ORDER_STATE__NEW = 'New'; - const PURCHASE_ORDER_STATE_ACKNOWLEDGED = 'Acknowledged'; - const PURCHASE_ORDER_STATE_CLOSED = 'Closed'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPurchaseOrderStateAllowableValues() - { - $baseVals = [ - self::PURCHASE_ORDER_STATE__NEW, - self::PURCHASE_ORDER_STATE_ACKNOWLEDGED, - self::PURCHASE_ORDER_STATE_CLOSED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['purchase_order_state'] = $data['purchase_order_state'] ?? null; - $this->container['order_details'] = $data['order_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if ($this->container['purchase_order_state'] === null) { - $invalidProperties[] = "'purchase_order_state' can't be null"; - } - $allowedValues = $this->getPurchaseOrderStateAllowableValues(); - if ( - !is_null($this->container['purchase_order_state']) && - !in_array(strtoupper($this->container['purchase_order_state']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'purchase_order_state', must be one of '%s'", - $this->container['purchase_order_state'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets purchase_order_state - * - * @return string - */ - public function getPurchaseOrderState() - { - return $this->container['purchase_order_state']; - } - - /** - * Sets purchase_order_state - * - * @param string $purchase_order_state This field will contain the current state of the purchase order. - * - * @return self - */ - public function setPurchaseOrderState($purchase_order_state) - { - $allowedValues = $this->getPurchaseOrderStateAllowableValues(); - if (!in_array(strtoupper($purchase_order_state), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'purchase_order_state', must be one of '%s'", - $purchase_order_state, - implode("', '", $allowedValues) - ) - ); - } - $this->container['purchase_order_state'] = $purchase_order_state; - - return $this; - } - /** - * Gets order_details - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderDetails|null - */ - public function getOrderDetails() - { - return $this->container['order_details']; - } - - /** - * Sets order_details - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderDetails|null $order_details order_details - * - * @return self - */ - public function setOrderDetails($order_details) - { - $this->container['order_details'] = $order_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderAcknowledgement.php b/lib/Model/VendorOrdersV1/OrderAcknowledgement.php deleted file mode 100644 index 92500fda7..000000000 --- a/lib/Model/VendorOrdersV1/OrderAcknowledgement.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderAcknowledgement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderAcknowledgement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'acknowledgement_date' => 'string', - 'items' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgementItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'selling_party' => null, - 'acknowledgement_date' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'selling_party' => 'sellingParty', - 'acknowledgement_date' => 'acknowledgementDate', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'selling_party' => 'setSellingParty', - 'acknowledgement_date' => 'setAcknowledgementDate', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'selling_party' => 'getSellingParty', - 'acknowledgement_date' => 'getAcknowledgementDate', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['acknowledgement_date'] = $data['acknowledgement_date'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['acknowledgement_date'] === null) { - $invalidProperties[] = "'acknowledgement_date' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The purchase order number. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets acknowledgement_date - * - * @return string - */ - public function getAcknowledgementDate() - { - return $this->container['acknowledgement_date']; - } - - /** - * Sets acknowledgement_date - * - * @param string $acknowledgement_date The date and time when the purchase order is acknowledged, in ISO-8601 date/time format. - * - * @return self - */ - public function setAcknowledgementDate($acknowledgement_date) - { - $this->container['acknowledgement_date'] = $acknowledgement_date; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgementItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgementItem[] $items A list of the items being acknowledged with associated details. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderAcknowledgementItem.php b/lib/Model/VendorOrdersV1/OrderAcknowledgementItem.php deleted file mode 100644 index f1f384d91..000000000 --- a/lib/Model/VendorOrdersV1/OrderAcknowledgementItem.php +++ /dev/null @@ -1,371 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderAcknowledgementItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderAcknowledgementItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'amazon_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'net_cost' => '\SellingPartnerApi\Model\VendorOrdersV1\Money', - 'list_price' => '\SellingPartnerApi\Model\VendorOrdersV1\Money', - 'discount_multiplier' => 'string', - 'item_acknowledgements' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItemAcknowledgement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'amazon_product_identifier' => null, - 'vendor_product_identifier' => null, - 'ordered_quantity' => null, - 'net_cost' => null, - 'list_price' => null, - 'discount_multiplier' => null, - 'item_acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'amazon_product_identifier' => 'amazonProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'ordered_quantity' => 'orderedQuantity', - 'net_cost' => 'netCost', - 'list_price' => 'listPrice', - 'discount_multiplier' => 'discountMultiplier', - 'item_acknowledgements' => 'itemAcknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'amazon_product_identifier' => 'setAmazonProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'ordered_quantity' => 'setOrderedQuantity', - 'net_cost' => 'setNetCost', - 'list_price' => 'setListPrice', - 'discount_multiplier' => 'setDiscountMultiplier', - 'item_acknowledgements' => 'setItemAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'amazon_product_identifier' => 'getAmazonProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'ordered_quantity' => 'getOrderedQuantity', - 'net_cost' => 'getNetCost', - 'list_price' => 'getListPrice', - 'discount_multiplier' => 'getDiscountMultiplier', - 'item_acknowledgements' => 'getItemAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['amazon_product_identifier'] = $data['amazon_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['net_cost'] = $data['net_cost'] ?? null; - $this->container['list_price'] = $data['list_price'] ?? null; - $this->container['discount_multiplier'] = $data['discount_multiplier'] ?? null; - $this->container['item_acknowledgements'] = $data['item_acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['ordered_quantity'] === null) { - $invalidProperties[] = "'ordered_quantity' can't be null"; - } - if ($this->container['item_acknowledgements'] === null) { - $invalidProperties[] = "'item_acknowledgements' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string|null - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string|null $item_sequence_number Line item sequence number for the item. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets amazon_product_identifier - * - * @return string|null - */ - public function getAmazonProductIdentifier() - { - return $this->container['amazon_product_identifier']; - } - - /** - * Sets amazon_product_identifier - * - * @param string|null $amazon_product_identifier Amazon Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setAmazonProductIdentifier($amazon_product_identifier) - { - $this->container['amazon_product_identifier'] = $amazon_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets net_cost - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getNetCost() - { - return $this->container['net_cost']; - } - - /** - * Sets net_cost - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $net_cost net_cost - * - * @return self - */ - public function setNetCost($net_cost) - { - $this->container['net_cost'] = $net_cost; - - return $this; - } - /** - * Gets list_price - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getListPrice() - { - return $this->container['list_price']; - } - - /** - * Sets list_price - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $list_price list_price - * - * @return self - */ - public function setListPrice($list_price) - { - $this->container['list_price'] = $list_price; - - return $this; - } - /** - * Gets discount_multiplier - * - * @return string|null - */ - public function getDiscountMultiplier() - { - return $this->container['discount_multiplier']; - } - - /** - * Sets discount_multiplier - * - * @param string|null $discount_multiplier The discount multiplier that should be applied to the price if a vendor sells books with a list price. This is a multiplier factor to arrive at a final discounted price. A multiplier of .90 would be the factor if a 10% discount is given. - * - * @return self - */ - public function setDiscountMultiplier($discount_multiplier) - { - $this->container['discount_multiplier'] = $discount_multiplier; - - return $this; - } - /** - * Gets item_acknowledgements - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItemAcknowledgement[] - */ - public function getItemAcknowledgements() - { - return $this->container['item_acknowledgements']; - } - - /** - * Sets item_acknowledgements - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItemAcknowledgement[] $item_acknowledgements This is used to indicate acknowledged quantity. - * - * @return self - */ - public function setItemAcknowledgements($item_acknowledgements) - { - $this->container['item_acknowledgements'] = $item_acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderDetails.php b/lib/Model/VendorOrdersV1/OrderDetails.php deleted file mode 100644 index e0da952bb..000000000 --- a/lib/Model/VendorOrdersV1/OrderDetails.php +++ /dev/null @@ -1,644 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_date' => 'string', - 'purchase_order_changed_date' => 'string', - 'purchase_order_state_changed_date' => 'string', - 'purchase_order_type' => 'string', - 'import_details' => '\SellingPartnerApi\Model\VendorOrdersV1\ImportDetails', - 'deal_code' => 'string', - 'payment_method' => 'string', - 'buying_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'selling_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'bill_to_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'ship_window' => 'string', - 'delivery_window' => 'string', - 'items' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_date' => null, - 'purchase_order_changed_date' => null, - 'purchase_order_state_changed_date' => null, - 'purchase_order_type' => null, - 'import_details' => null, - 'deal_code' => null, - 'payment_method' => null, - 'buying_party' => null, - 'selling_party' => null, - 'ship_to_party' => null, - 'bill_to_party' => null, - 'ship_window' => null, - 'delivery_window' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_date' => 'purchaseOrderDate', - 'purchase_order_changed_date' => 'purchaseOrderChangedDate', - 'purchase_order_state_changed_date' => 'purchaseOrderStateChangedDate', - 'purchase_order_type' => 'purchaseOrderType', - 'import_details' => 'importDetails', - 'deal_code' => 'dealCode', - 'payment_method' => 'paymentMethod', - 'buying_party' => 'buyingParty', - 'selling_party' => 'sellingParty', - 'ship_to_party' => 'shipToParty', - 'bill_to_party' => 'billToParty', - 'ship_window' => 'shipWindow', - 'delivery_window' => 'deliveryWindow', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_date' => 'setPurchaseOrderDate', - 'purchase_order_changed_date' => 'setPurchaseOrderChangedDate', - 'purchase_order_state_changed_date' => 'setPurchaseOrderStateChangedDate', - 'purchase_order_type' => 'setPurchaseOrderType', - 'import_details' => 'setImportDetails', - 'deal_code' => 'setDealCode', - 'payment_method' => 'setPaymentMethod', - 'buying_party' => 'setBuyingParty', - 'selling_party' => 'setSellingParty', - 'ship_to_party' => 'setShipToParty', - 'bill_to_party' => 'setBillToParty', - 'ship_window' => 'setShipWindow', - 'delivery_window' => 'setDeliveryWindow', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_date' => 'getPurchaseOrderDate', - 'purchase_order_changed_date' => 'getPurchaseOrderChangedDate', - 'purchase_order_state_changed_date' => 'getPurchaseOrderStateChangedDate', - 'purchase_order_type' => 'getPurchaseOrderType', - 'import_details' => 'getImportDetails', - 'deal_code' => 'getDealCode', - 'payment_method' => 'getPaymentMethod', - 'buying_party' => 'getBuyingParty', - 'selling_party' => 'getSellingParty', - 'ship_to_party' => 'getShipToParty', - 'bill_to_party' => 'getBillToParty', - 'ship_window' => 'getShipWindow', - 'delivery_window' => 'getDeliveryWindow', - 'items' => 'getItems' - ]; - - - - const PURCHASE_ORDER_TYPE_REGULAR_ORDER = 'RegularOrder'; - const PURCHASE_ORDER_TYPE_CONSIGNED_ORDER = 'ConsignedOrder'; - const PURCHASE_ORDER_TYPE_NEW_PRODUCT_INTRODUCTION = 'NewProductIntroduction'; - const PURCHASE_ORDER_TYPE_RUSH_ORDER = 'RushOrder'; - - - const PAYMENT_METHOD_INVOICE = 'Invoice'; - const PAYMENT_METHOD_CONSIGNMENT = 'Consignment'; - const PAYMENT_METHOD_CREDIT_CARD = 'CreditCard'; - const PAYMENT_METHOD_PREPAID = 'Prepaid'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPurchaseOrderTypeAllowableValues() - { - $baseVals = [ - self::PURCHASE_ORDER_TYPE_REGULAR_ORDER, - self::PURCHASE_ORDER_TYPE_CONSIGNED_ORDER, - self::PURCHASE_ORDER_TYPE_NEW_PRODUCT_INTRODUCTION, - self::PURCHASE_ORDER_TYPE_RUSH_ORDER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPaymentMethodAllowableValues() - { - $baseVals = [ - self::PAYMENT_METHOD_INVOICE, - self::PAYMENT_METHOD_CONSIGNMENT, - self::PAYMENT_METHOD_CREDIT_CARD, - self::PAYMENT_METHOD_PREPAID, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_date'] = $data['purchase_order_date'] ?? null; - $this->container['purchase_order_changed_date'] = $data['purchase_order_changed_date'] ?? null; - $this->container['purchase_order_state_changed_date'] = $data['purchase_order_state_changed_date'] ?? null; - $this->container['purchase_order_type'] = $data['purchase_order_type'] ?? null; - $this->container['import_details'] = $data['import_details'] ?? null; - $this->container['deal_code'] = $data['deal_code'] ?? null; - $this->container['payment_method'] = $data['payment_method'] ?? null; - $this->container['buying_party'] = $data['buying_party'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['bill_to_party'] = $data['bill_to_party'] ?? null; - $this->container['ship_window'] = $data['ship_window'] ?? null; - $this->container['delivery_window'] = $data['delivery_window'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_date'] === null) { - $invalidProperties[] = "'purchase_order_date' can't be null"; - } - if ($this->container['purchase_order_state_changed_date'] === null) { - $invalidProperties[] = "'purchase_order_state_changed_date' can't be null"; - } - $allowedValues = $this->getPurchaseOrderTypeAllowableValues(); - if ( - !is_null($this->container['purchase_order_type']) && - !in_array(strtoupper($this->container['purchase_order_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'purchase_order_type', must be one of '%s'", - $this->container['purchase_order_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getPaymentMethodAllowableValues(); - if ( - !is_null($this->container['payment_method']) && - !in_array(strtoupper($this->container['payment_method']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'payment_method', must be one of '%s'", - $this->container['payment_method'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_date - * - * @return string - */ - public function getPurchaseOrderDate() - { - return $this->container['purchase_order_date']; - } - - /** - * Sets purchase_order_date - * - * @param string $purchase_order_date The date the purchase order was placed. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setPurchaseOrderDate($purchase_order_date) - { - $this->container['purchase_order_date'] = $purchase_order_date; - - return $this; - } - /** - * Gets purchase_order_changed_date - * - * @return string|null - */ - public function getPurchaseOrderChangedDate() - { - return $this->container['purchase_order_changed_date']; - } - - /** - * Sets purchase_order_changed_date - * - * @param string|null $purchase_order_changed_date The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than 'purchaseOrderDate'. This means the PO data was changed on that date and vendors are required to fulfill the updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setPurchaseOrderChangedDate($purchase_order_changed_date) - { - $this->container['purchase_order_changed_date'] = $purchase_order_changed_date; - - return $this; - } - /** - * Gets purchase_order_state_changed_date - * - * @return string - */ - public function getPurchaseOrderStateChangedDate() - { - return $this->container['purchase_order_state_changed_date']; - } - - /** - * Sets purchase_order_state_changed_date - * - * @param string $purchase_order_state_changed_date The date when current purchase order state was changed. Current purchase order state is available in the field 'purchaseOrderState'. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setPurchaseOrderStateChangedDate($purchase_order_state_changed_date) - { - $this->container['purchase_order_state_changed_date'] = $purchase_order_state_changed_date; - - return $this; - } - /** - * Gets purchase_order_type - * - * @return string|null - */ - public function getPurchaseOrderType() - { - return $this->container['purchase_order_type']; - } - - /** - * Sets purchase_order_type - * - * @param string|null $purchase_order_type Type of purchase order. - * - * @return self - */ - public function setPurchaseOrderType($purchase_order_type) - { - $allowedValues = $this->getPurchaseOrderTypeAllowableValues(); - if (!is_null($purchase_order_type) &&!in_array(strtoupper($purchase_order_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'purchase_order_type', must be one of '%s'", - $purchase_order_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['purchase_order_type'] = $purchase_order_type; - - return $this; - } - /** - * Gets import_details - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ImportDetails|null - */ - public function getImportDetails() - { - return $this->container['import_details']; - } - - /** - * Sets import_details - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ImportDetails|null $import_details import_details - * - * @return self - */ - public function setImportDetails($import_details) - { - $this->container['import_details'] = $import_details; - - return $this; - } - /** - * Gets deal_code - * - * @return string|null - */ - public function getDealCode() - { - return $this->container['deal_code']; - } - - /** - * Sets deal_code - * - * @param string|null $deal_code If requested by the recipient, this field will contain a promotional/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order. - * - * @return self - */ - public function setDealCode($deal_code) - { - $this->container['deal_code'] = $deal_code; - - return $this; - } - /** - * Gets payment_method - * - * @return string|null - */ - public function getPaymentMethod() - { - return $this->container['payment_method']; - } - - /** - * Sets payment_method - * - * @param string|null $payment_method Payment method used. - * - * @return self - */ - public function setPaymentMethod($payment_method) - { - $allowedValues = $this->getPaymentMethodAllowableValues(); - if (!is_null($payment_method) &&!in_array(strtoupper($payment_method), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'payment_method', must be one of '%s'", - $payment_method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['payment_method'] = $payment_method; - - return $this; - } - /** - * Gets buying_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null - */ - public function getBuyingParty() - { - return $this->container['buying_party']; - } - - /** - * Sets buying_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null $buying_party buying_party - * - * @return self - */ - public function setBuyingParty($buying_party) - { - $this->container['buying_party'] = $buying_party; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets bill_to_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null - */ - public function getBillToParty() - { - return $this->container['bill_to_party']; - } - - /** - * Sets bill_to_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification|null $bill_to_party bill_to_party - * - * @return self - */ - public function setBillToParty($bill_to_party) - { - $this->container['bill_to_party'] = $bill_to_party; - - return $this; - } - /** - * Gets ship_window - * - * @return string|null - */ - public function getShipWindow() - { - return $this->container['ship_window']; - } - - /** - * Sets ship_window - * - * @param string|null $ship_window Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). - * - * @return self - */ - public function setShipWindow($ship_window) - { - $this->container['ship_window'] = $ship_window; - - return $this; - } - /** - * Gets delivery_window - * - * @return string|null - */ - public function getDeliveryWindow() - { - return $this->container['delivery_window']; - } - - /** - * Sets delivery_window - * - * @param string|null $delivery_window Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). - * - * @return self - */ - public function setDeliveryWindow($delivery_window) - { - $this->container['delivery_window'] = $delivery_window; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItem[] $items A list of items in this purchase order. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItem.php b/lib/Model/VendorOrdersV1/OrderItem.php deleted file mode 100644 index 6d09bf89e..000000000 --- a/lib/Model/VendorOrdersV1/OrderItem.php +++ /dev/null @@ -1,344 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'amazon_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'is_back_order_allowed' => 'bool', - 'net_cost' => '\SellingPartnerApi\Model\VendorOrdersV1\Money', - 'list_price' => '\SellingPartnerApi\Model\VendorOrdersV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'amazon_product_identifier' => null, - 'vendor_product_identifier' => null, - 'ordered_quantity' => null, - 'is_back_order_allowed' => null, - 'net_cost' => null, - 'list_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'amazon_product_identifier' => 'amazonProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'ordered_quantity' => 'orderedQuantity', - 'is_back_order_allowed' => 'isBackOrderAllowed', - 'net_cost' => 'netCost', - 'list_price' => 'listPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'amazon_product_identifier' => 'setAmazonProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'ordered_quantity' => 'setOrderedQuantity', - 'is_back_order_allowed' => 'setIsBackOrderAllowed', - 'net_cost' => 'setNetCost', - 'list_price' => 'setListPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'amazon_product_identifier' => 'getAmazonProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'ordered_quantity' => 'getOrderedQuantity', - 'is_back_order_allowed' => 'getIsBackOrderAllowed', - 'net_cost' => 'getNetCost', - 'list_price' => 'getListPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['amazon_product_identifier'] = $data['amazon_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['is_back_order_allowed'] = $data['is_back_order_allowed'] ?? null; - $this->container['net_cost'] = $data['net_cost'] ?? null; - $this->container['list_price'] = $data['list_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['ordered_quantity'] === null) { - $invalidProperties[] = "'ordered_quantity' can't be null"; - } - if ($this->container['is_back_order_allowed'] === null) { - $invalidProperties[] = "'is_back_order_allowed' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets amazon_product_identifier - * - * @return string|null - */ - public function getAmazonProductIdentifier() - { - return $this->container['amazon_product_identifier']; - } - - /** - * Sets amazon_product_identifier - * - * @param string|null $amazon_product_identifier Amazon Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setAmazonProductIdentifier($amazon_product_identifier) - { - $this->container['amazon_product_identifier'] = $amazon_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets is_back_order_allowed - * - * @return bool - */ - public function getIsBackOrderAllowed() - { - return $this->container['is_back_order_allowed']; - } - - /** - * Sets is_back_order_allowed - * - * @param bool $is_back_order_allowed When true, we will accept backorder confirmations for this item. - * - * @return self - */ - public function setIsBackOrderAllowed($is_back_order_allowed) - { - $this->container['is_back_order_allowed'] = $is_back_order_allowed; - - return $this; - } - /** - * Gets net_cost - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getNetCost() - { - return $this->container['net_cost']; - } - - /** - * Sets net_cost - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $net_cost net_cost - * - * @return self - */ - public function setNetCost($net_cost) - { - $this->container['net_cost'] = $net_cost; - - return $this; - } - /** - * Gets list_price - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getListPrice() - { - return $this->container['list_price']; - } - - /** - * Sets list_price - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $list_price list_price - * - * @return self - */ - public function setListPrice($list_price) - { - $this->container['list_price'] = $list_price; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItemAcknowledgement.php b/lib/Model/VendorOrdersV1/OrderItemAcknowledgement.php deleted file mode 100644 index 5ca17e8fc..000000000 --- a/lib/Model/VendorOrdersV1/OrderItemAcknowledgement.php +++ /dev/null @@ -1,375 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemAcknowledgement extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemAcknowledgement'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'acknowledgement_code' => 'string', - 'acknowledged_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'scheduled_ship_date' => 'string', - 'scheduled_delivery_date' => 'string', - 'rejection_reason' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'acknowledgement_code' => null, - 'acknowledged_quantity' => null, - 'scheduled_ship_date' => null, - 'scheduled_delivery_date' => null, - 'rejection_reason' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'acknowledgement_code' => 'acknowledgementCode', - 'acknowledged_quantity' => 'acknowledgedQuantity', - 'scheduled_ship_date' => 'scheduledShipDate', - 'scheduled_delivery_date' => 'scheduledDeliveryDate', - 'rejection_reason' => 'rejectionReason' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'acknowledgement_code' => 'setAcknowledgementCode', - 'acknowledged_quantity' => 'setAcknowledgedQuantity', - 'scheduled_ship_date' => 'setScheduledShipDate', - 'scheduled_delivery_date' => 'setScheduledDeliveryDate', - 'rejection_reason' => 'setRejectionReason' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'acknowledgement_code' => 'getAcknowledgementCode', - 'acknowledged_quantity' => 'getAcknowledgedQuantity', - 'scheduled_ship_date' => 'getScheduledShipDate', - 'scheduled_delivery_date' => 'getScheduledDeliveryDate', - 'rejection_reason' => 'getRejectionReason' - ]; - - - - const ACKNOWLEDGEMENT_CODE_ACCEPTED = 'Accepted'; - const ACKNOWLEDGEMENT_CODE_BACKORDERED = 'Backordered'; - const ACKNOWLEDGEMENT_CODE_REJECTED = 'Rejected'; - - - const REJECTION_REASON_TEMPORARILY_UNAVAILABLE = 'TemporarilyUnavailable'; - const REJECTION_REASON_INVALID_PRODUCT_IDENTIFIER = 'InvalidProductIdentifier'; - const REJECTION_REASON_OBSOLETE_PRODUCT = 'ObsoleteProduct'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getAcknowledgementCodeAllowableValues() - { - $baseVals = [ - self::ACKNOWLEDGEMENT_CODE_ACCEPTED, - self::ACKNOWLEDGEMENT_CODE_BACKORDERED, - self::ACKNOWLEDGEMENT_CODE_REJECTED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRejectionReasonAllowableValues() - { - $baseVals = [ - self::REJECTION_REASON_TEMPORARILY_UNAVAILABLE, - self::REJECTION_REASON_INVALID_PRODUCT_IDENTIFIER, - self::REJECTION_REASON_OBSOLETE_PRODUCT, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['acknowledgement_code'] = $data['acknowledgement_code'] ?? null; - $this->container['acknowledged_quantity'] = $data['acknowledged_quantity'] ?? null; - $this->container['scheduled_ship_date'] = $data['scheduled_ship_date'] ?? null; - $this->container['scheduled_delivery_date'] = $data['scheduled_delivery_date'] ?? null; - $this->container['rejection_reason'] = $data['rejection_reason'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['acknowledgement_code'] === null) { - $invalidProperties[] = "'acknowledgement_code' can't be null"; - } - $allowedValues = $this->getAcknowledgementCodeAllowableValues(); - if ( - !is_null($this->container['acknowledgement_code']) && - !in_array(strtoupper($this->container['acknowledgement_code']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'acknowledgement_code', must be one of '%s'", - $this->container['acknowledgement_code'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['acknowledged_quantity'] === null) { - $invalidProperties[] = "'acknowledged_quantity' can't be null"; - } - $allowedValues = $this->getRejectionReasonAllowableValues(); - if ( - !is_null($this->container['rejection_reason']) && - !in_array(strtoupper($this->container['rejection_reason']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'rejection_reason', must be one of '%s'", - $this->container['rejection_reason'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets acknowledgement_code - * - * @return string - */ - public function getAcknowledgementCode() - { - return $this->container['acknowledgement_code']; - } - - /** - * Sets acknowledgement_code - * - * @param string $acknowledgement_code This indicates the acknowledgement code. - * - * @return self - */ - public function setAcknowledgementCode($acknowledgement_code) - { - $allowedValues = $this->getAcknowledgementCodeAllowableValues(); - if (!in_array(strtoupper($acknowledgement_code), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'acknowledgement_code', must be one of '%s'", - $acknowledgement_code, - implode("', '", $allowedValues) - ) - ); - } - $this->container['acknowledgement_code'] = $acknowledgement_code; - - return $this; - } - /** - * Gets acknowledged_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity - */ - public function getAcknowledgedQuantity() - { - return $this->container['acknowledged_quantity']; - } - - /** - * Sets acknowledged_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity $acknowledged_quantity acknowledged_quantity - * - * @return self - */ - public function setAcknowledgedQuantity($acknowledged_quantity) - { - $this->container['acknowledged_quantity'] = $acknowledged_quantity; - - return $this; - } - /** - * Gets scheduled_ship_date - * - * @return string|null - */ - public function getScheduledShipDate() - { - return $this->container['scheduled_ship_date']; - } - - /** - * Sets scheduled_ship_date - * - * @param string|null $scheduled_ship_date Estimated ship date per line item. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setScheduledShipDate($scheduled_ship_date) - { - $this->container['scheduled_ship_date'] = $scheduled_ship_date; - - return $this; - } - /** - * Gets scheduled_delivery_date - * - * @return string|null - */ - public function getScheduledDeliveryDate() - { - return $this->container['scheduled_delivery_date']; - } - - /** - * Sets scheduled_delivery_date - * - * @param string|null $scheduled_delivery_date Estimated delivery date per line item. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setScheduledDeliveryDate($scheduled_delivery_date) - { - $this->container['scheduled_delivery_date'] = $scheduled_delivery_date; - - return $this; - } - /** - * Gets rejection_reason - * - * @return string|null - */ - public function getRejectionReason() - { - return $this->container['rejection_reason']; - } - - /** - * Sets rejection_reason - * - * @param string|null $rejection_reason Indicates the reason for rejection. - * - * @return self - */ - public function setRejectionReason($rejection_reason) - { - $allowedValues = $this->getRejectionReasonAllowableValues(); - if (!is_null($rejection_reason) &&!in_array(strtoupper($rejection_reason), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'rejection_reason', must be one of '%s'", - $rejection_reason, - implode("', '", $allowedValues) - ) - ); - } - $this->container['rejection_reason'] = $rejection_reason; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItemStatus.php b/lib/Model/VendorOrdersV1/OrderItemStatus.php deleted file mode 100644 index 46fae4192..000000000 --- a/lib/Model/VendorOrdersV1/OrderItemStatus.php +++ /dev/null @@ -1,367 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'net_cost' => '\SellingPartnerApi\Model\VendorOrdersV1\Money', - 'list_price' => '\SellingPartnerApi\Model\VendorOrdersV1\Money', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusOrderedQuantity', - 'acknowledgement_status' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusAcknowledgementStatus', - 'receiving_status' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusReceivingStatus' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'net_cost' => null, - 'list_price' => null, - 'ordered_quantity' => null, - 'acknowledgement_status' => null, - 'receiving_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'net_cost' => 'netCost', - 'list_price' => 'listPrice', - 'ordered_quantity' => 'orderedQuantity', - 'acknowledgement_status' => 'acknowledgementStatus', - 'receiving_status' => 'receivingStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'net_cost' => 'setNetCost', - 'list_price' => 'setListPrice', - 'ordered_quantity' => 'setOrderedQuantity', - 'acknowledgement_status' => 'setAcknowledgementStatus', - 'receiving_status' => 'setReceivingStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'net_cost' => 'getNetCost', - 'list_price' => 'getListPrice', - 'ordered_quantity' => 'getOrderedQuantity', - 'acknowledgement_status' => 'getAcknowledgementStatus', - 'receiving_status' => 'getReceivingStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['net_cost'] = $data['net_cost'] ?? null; - $this->container['list_price'] = $data['list_price'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['acknowledgement_status'] = $data['acknowledgement_status'] ?? null; - $this->container['receiving_status'] = $data['receiving_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer's Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets net_cost - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getNetCost() - { - return $this->container['net_cost']; - } - - /** - * Sets net_cost - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $net_cost net_cost - * - * @return self - */ - public function setNetCost($net_cost) - { - $this->container['net_cost'] = $net_cost; - - return $this; - } - /** - * Gets list_price - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Money|null - */ - public function getListPrice() - { - return $this->container['list_price']; - } - - /** - * Sets list_price - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Money|null $list_price list_price - * - * @return self - */ - public function setListPrice($list_price) - { - $this->container['list_price'] = $list_price; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusOrderedQuantity|null - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusOrderedQuantity|null $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets acknowledgement_status - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusAcknowledgementStatus|null - */ - public function getAcknowledgementStatus() - { - return $this->container['acknowledgement_status']; - } - - /** - * Sets acknowledgement_status - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusAcknowledgementStatus|null $acknowledgement_status acknowledgement_status - * - * @return self - */ - public function setAcknowledgementStatus($acknowledgement_status) - { - $this->container['acknowledgement_status'] = $acknowledgement_status; - - return $this; - } - /** - * Gets receiving_status - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusReceivingStatus|null - */ - public function getReceivingStatus() - { - return $this->container['receiving_status']; - } - - /** - * Sets receiving_status - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatusReceivingStatus|null $receiving_status receiving_status - * - * @return self - */ - public function setReceivingStatus($receiving_status) - { - $this->container['receiving_status'] = $receiving_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.php b/lib/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.php deleted file mode 100644 index 73e35611e..000000000 --- a/lib/Model/VendorOrdersV1/OrderItemStatusAcknowledgementStatus.php +++ /dev/null @@ -1,297 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemStatusAcknowledgementStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemStatus_acknowledgementStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'confirmation_status' => 'string', - 'accepted_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'rejected_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'acknowledgement_status_details' => '\SellingPartnerApi\Model\VendorOrdersV1\AcknowledgementStatusDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'confirmation_status' => null, - 'accepted_quantity' => null, - 'rejected_quantity' => null, - 'acknowledgement_status_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'confirmation_status' => 'confirmationStatus', - 'accepted_quantity' => 'acceptedQuantity', - 'rejected_quantity' => 'rejectedQuantity', - 'acknowledgement_status_details' => 'acknowledgementStatusDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'confirmation_status' => 'setConfirmationStatus', - 'accepted_quantity' => 'setAcceptedQuantity', - 'rejected_quantity' => 'setRejectedQuantity', - 'acknowledgement_status_details' => 'setAcknowledgementStatusDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'confirmation_status' => 'getConfirmationStatus', - 'accepted_quantity' => 'getAcceptedQuantity', - 'rejected_quantity' => 'getRejectedQuantity', - 'acknowledgement_status_details' => 'getAcknowledgementStatusDetails' - ]; - - - - const CONFIRMATION_STATUS_ACCEPTED = 'ACCEPTED'; - const CONFIRMATION_STATUS_PARTIALLY_ACCEPTED = 'PARTIALLY_ACCEPTED'; - const CONFIRMATION_STATUS_REJECTED = 'REJECTED'; - const CONFIRMATION_STATUS_UNCONFIRMED = 'UNCONFIRMED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getConfirmationStatusAllowableValues() - { - $baseVals = [ - self::CONFIRMATION_STATUS_ACCEPTED, - self::CONFIRMATION_STATUS_PARTIALLY_ACCEPTED, - self::CONFIRMATION_STATUS_REJECTED, - self::CONFIRMATION_STATUS_UNCONFIRMED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['confirmation_status'] = $data['confirmation_status'] ?? null; - $this->container['accepted_quantity'] = $data['accepted_quantity'] ?? null; - $this->container['rejected_quantity'] = $data['rejected_quantity'] ?? null; - $this->container['acknowledgement_status_details'] = $data['acknowledgement_status_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getConfirmationStatusAllowableValues(); - if ( - !is_null($this->container['confirmation_status']) && - !in_array(strtoupper($this->container['confirmation_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'confirmation_status', must be one of '%s'", - $this->container['confirmation_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets confirmation_status - * - * @return string|null - */ - public function getConfirmationStatus() - { - return $this->container['confirmation_status']; - } - - /** - * Sets confirmation_status - * - * @param string|null $confirmation_status Confirmation status of line item. - * - * @return self - */ - public function setConfirmationStatus($confirmation_status) - { - $allowedValues = $this->getConfirmationStatusAllowableValues(); - if (!is_null($confirmation_status) &&!in_array(strtoupper($confirmation_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'confirmation_status', must be one of '%s'", - $confirmation_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['confirmation_status'] = $confirmation_status; - - return $this; - } - /** - * Gets accepted_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getAcceptedQuantity() - { - return $this->container['accepted_quantity']; - } - - /** - * Sets accepted_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $accepted_quantity accepted_quantity - * - * @return self - */ - public function setAcceptedQuantity($accepted_quantity) - { - $this->container['accepted_quantity'] = $accepted_quantity; - - return $this; - } - /** - * Gets rejected_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getRejectedQuantity() - { - return $this->container['rejected_quantity']; - } - - /** - * Sets rejected_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $rejected_quantity rejected_quantity - * - * @return self - */ - public function setRejectedQuantity($rejected_quantity) - { - $this->container['rejected_quantity'] = $rejected_quantity; - - return $this; - } - /** - * Gets acknowledgement_status_details - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\AcknowledgementStatusDetails[]|null - */ - public function getAcknowledgementStatusDetails() - { - return $this->container['acknowledgement_status_details']; - } - - /** - * Sets acknowledgement_status_details - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\AcknowledgementStatusDetails[]|null $acknowledgement_status_details Details of item quantity confirmed. - * - * @return self - */ - public function setAcknowledgementStatusDetails($acknowledgement_status_details) - { - $this->container['acknowledgement_status_details'] = $acknowledgement_status_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.php b/lib/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.php deleted file mode 100644 index 54ee473f8..000000000 --- a/lib/Model/VendorOrdersV1/OrderItemStatusOrderedQuantity.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemStatusOrderedQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemStatus_orderedQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'ordered_quantity_details' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderedQuantityDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ordered_quantity' => null, - 'ordered_quantity_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ordered_quantity' => 'orderedQuantity', - 'ordered_quantity_details' => 'orderedQuantityDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ordered_quantity' => 'setOrderedQuantity', - 'ordered_quantity_details' => 'setOrderedQuantityDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ordered_quantity' => 'getOrderedQuantity', - 'ordered_quantity_details' => 'getOrderedQuantityDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['ordered_quantity_details'] = $data['ordered_quantity_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets ordered_quantity_details - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderedQuantityDetails[]|null - */ - public function getOrderedQuantityDetails() - { - return $this->container['ordered_quantity_details']; - } - - /** - * Sets ordered_quantity_details - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderedQuantityDetails[]|null $ordered_quantity_details Details of item quantity ordered. - * - * @return self - */ - public function setOrderedQuantityDetails($ordered_quantity_details) - { - $this->container['ordered_quantity_details'] = $ordered_quantity_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.php b/lib/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.php deleted file mode 100644 index c6d055069..000000000 --- a/lib/Model/VendorOrdersV1/OrderItemStatusReceivingStatus.php +++ /dev/null @@ -1,266 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderItemStatusReceivingStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderItemStatus_receivingStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'receive_status' => 'string', - 'received_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'last_receive_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'receive_status' => null, - 'received_quantity' => null, - 'last_receive_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'receive_status' => 'receiveStatus', - 'received_quantity' => 'receivedQuantity', - 'last_receive_date' => 'lastReceiveDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'receive_status' => 'setReceiveStatus', - 'received_quantity' => 'setReceivedQuantity', - 'last_receive_date' => 'setLastReceiveDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'receive_status' => 'getReceiveStatus', - 'received_quantity' => 'getReceivedQuantity', - 'last_receive_date' => 'getLastReceiveDate' - ]; - - - - const RECEIVE_STATUS_NOT_RECEIVED = 'NOT_RECEIVED'; - const RECEIVE_STATUS_PARTIALLY_RECEIVED = 'PARTIALLY_RECEIVED'; - const RECEIVE_STATUS_RECEIVED = 'RECEIVED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getReceiveStatusAllowableValues() - { - $baseVals = [ - self::RECEIVE_STATUS_NOT_RECEIVED, - self::RECEIVE_STATUS_PARTIALLY_RECEIVED, - self::RECEIVE_STATUS_RECEIVED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['receive_status'] = $data['receive_status'] ?? null; - $this->container['received_quantity'] = $data['received_quantity'] ?? null; - $this->container['last_receive_date'] = $data['last_receive_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getReceiveStatusAllowableValues(); - if ( - !is_null($this->container['receive_status']) && - !in_array(strtoupper($this->container['receive_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'receive_status', must be one of '%s'", - $this->container['receive_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets receive_status - * - * @return string|null - */ - public function getReceiveStatus() - { - return $this->container['receive_status']; - } - - /** - * Sets receive_status - * - * @param string|null $receive_status Receive status of the line item. - * - * @return self - */ - public function setReceiveStatus($receive_status) - { - $allowedValues = $this->getReceiveStatusAllowableValues(); - if (!is_null($receive_status) &&!in_array(strtoupper($receive_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'receive_status', must be one of '%s'", - $receive_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['receive_status'] = $receive_status; - - return $this; - } - /** - * Gets received_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getReceivedQuantity() - { - return $this->container['received_quantity']; - } - - /** - * Sets received_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $received_quantity received_quantity - * - * @return self - */ - public function setReceivedQuantity($received_quantity) - { - $this->container['received_quantity'] = $received_quantity; - - return $this; - } - /** - * Gets last_receive_date - * - * @return string|null - */ - public function getLastReceiveDate() - { - return $this->container['last_receive_date']; - } - - /** - * Sets last_receive_date - * - * @param string|null $last_receive_date The date when the most recent item was received at the buyer's warehouse. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setLastReceiveDate($last_receive_date) - { - $this->container['last_receive_date'] = $last_receive_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderList.php b/lib/Model/VendorOrdersV1/OrderList.php deleted file mode 100644 index 4207b225c..000000000 --- a/lib/Model/VendorOrdersV1/OrderList.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderList extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderList'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorOrdersV1\Pagination', - 'orders' => '\SellingPartnerApi\Model\VendorOrdersV1\Order[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'orders' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'orders' => 'orders' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'orders' => 'setOrders' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'orders' => 'getOrders' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['orders'] = $data['orders'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets orders - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Order[]|null - */ - public function getOrders() - { - return $this->container['orders']; - } - - /** - * Sets orders - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Order[]|null $orders orders - * - * @return self - */ - public function setOrders($orders) - { - $this->container['orders'] = $orders; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderListStatus.php b/lib/Model/VendorOrdersV1/OrderListStatus.php deleted file mode 100644 index 9e8ea74a6..000000000 --- a/lib/Model/VendorOrdersV1/OrderListStatus.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderListStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderListStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorOrdersV1\Pagination', - 'orders_status' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderStatus[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'orders_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'orders_status' => 'ordersStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'orders_status' => 'setOrdersStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'orders_status' => 'getOrdersStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['orders_status'] = $data['orders_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets orders_status - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderStatus[]|null - */ - public function getOrdersStatus() - { - return $this->container['orders_status']; - } - - /** - * Sets orders_status - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderStatus[]|null $orders_status orders_status - * - * @return self - */ - public function setOrdersStatus($orders_status) - { - $this->container['orders_status'] = $orders_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderStatus.php b/lib/Model/VendorOrdersV1/OrderStatus.php deleted file mode 100644 index 463de4969..000000000 --- a/lib/Model/VendorOrdersV1/OrderStatus.php +++ /dev/null @@ -1,398 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'purchase_order_status' => 'string', - 'purchase_order_date' => 'string', - 'last_updated_date' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification', - 'item_status' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatus[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'purchase_order_status' => null, - 'purchase_order_date' => null, - 'last_updated_date' => null, - 'selling_party' => null, - 'ship_to_party' => null, - 'item_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'purchase_order_status' => 'purchaseOrderStatus', - 'purchase_order_date' => 'purchaseOrderDate', - 'last_updated_date' => 'lastUpdatedDate', - 'selling_party' => 'sellingParty', - 'ship_to_party' => 'shipToParty', - 'item_status' => 'itemStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'purchase_order_status' => 'setPurchaseOrderStatus', - 'purchase_order_date' => 'setPurchaseOrderDate', - 'last_updated_date' => 'setLastUpdatedDate', - 'selling_party' => 'setSellingParty', - 'ship_to_party' => 'setShipToParty', - 'item_status' => 'setItemStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'purchase_order_status' => 'getPurchaseOrderStatus', - 'purchase_order_date' => 'getPurchaseOrderDate', - 'last_updated_date' => 'getLastUpdatedDate', - 'selling_party' => 'getSellingParty', - 'ship_to_party' => 'getShipToParty', - 'item_status' => 'getItemStatus' - ]; - - - - const PURCHASE_ORDER_STATUS_OPEN = 'OPEN'; - const PURCHASE_ORDER_STATUS_CLOSED = 'CLOSED'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPurchaseOrderStatusAllowableValues() - { - $baseVals = [ - self::PURCHASE_ORDER_STATUS_OPEN, - self::PURCHASE_ORDER_STATUS_CLOSED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['purchase_order_status'] = $data['purchase_order_status'] ?? null; - $this->container['purchase_order_date'] = $data['purchase_order_date'] ?? null; - $this->container['last_updated_date'] = $data['last_updated_date'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['item_status'] = $data['item_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['purchase_order_number'] === null) { - $invalidProperties[] = "'purchase_order_number' can't be null"; - } - if ($this->container['purchase_order_status'] === null) { - $invalidProperties[] = "'purchase_order_status' can't be null"; - } - $allowedValues = $this->getPurchaseOrderStatusAllowableValues(); - if ( - !is_null($this->container['purchase_order_status']) && - !in_array(strtoupper($this->container['purchase_order_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'purchase_order_status', must be one of '%s'", - $this->container['purchase_order_status'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['purchase_order_date'] === null) { - $invalidProperties[] = "'purchase_order_date' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_to_party'] === null) { - $invalidProperties[] = "'ship_to_party' can't be null"; - } - if ($this->container['item_status'] === null) { - $invalidProperties[] = "'item_status' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string $purchase_order_number The buyer's purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets purchase_order_status - * - * @return string - */ - public function getPurchaseOrderStatus() - { - return $this->container['purchase_order_status']; - } - - /** - * Sets purchase_order_status - * - * @param string $purchase_order_status The status of the buyer's purchase order for this order. - * - * @return self - */ - public function setPurchaseOrderStatus($purchase_order_status) - { - $allowedValues = $this->getPurchaseOrderStatusAllowableValues(); - if (!in_array(strtoupper($purchase_order_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'purchase_order_status', must be one of '%s'", - $purchase_order_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['purchase_order_status'] = $purchase_order_status; - - return $this; - } - /** - * Gets purchase_order_date - * - * @return string - */ - public function getPurchaseOrderDate() - { - return $this->container['purchase_order_date']; - } - - /** - * Sets purchase_order_date - * - * @param string $purchase_order_date The date the purchase order was placed. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setPurchaseOrderDate($purchase_order_date) - { - $this->container['purchase_order_date'] = $purchase_order_date; - - return $this; - } - /** - * Gets last_updated_date - * - * @return string|null - */ - public function getLastUpdatedDate() - { - return $this->container['last_updated_date']; - } - - /** - * Sets last_updated_date - * - * @param string|null $last_updated_date The date when the purchase order was last updated. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setLastUpdatedDate($last_updated_date) - { - $this->container['last_updated_date'] = $last_updated_date; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\PartyIdentification $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets item_status - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatus[] - */ - public function getItemStatus() - { - return $this->container['item_status']; - } - - /** - * Sets item_status - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderItemStatus[] $item_status Detailed description of items order status. - * - * @return self - */ - public function setItemStatus($item_status) - { - $this->container['item_status'] = $item_status; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/OrderedQuantityDetails.php b/lib/Model/VendorOrdersV1/OrderedQuantityDetails.php deleted file mode 100644 index e9c9c3dee..000000000 --- a/lib/Model/VendorOrdersV1/OrderedQuantityDetails.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class OrderedQuantityDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'OrderedQuantityDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'updated_date' => 'string', - 'ordered_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity', - 'cancelled_quantity' => '\SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'updated_date' => null, - 'ordered_quantity' => null, - 'cancelled_quantity' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'updated_date' => 'updatedDate', - 'ordered_quantity' => 'orderedQuantity', - 'cancelled_quantity' => 'cancelledQuantity' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'updated_date' => 'setUpdatedDate', - 'ordered_quantity' => 'setOrderedQuantity', - 'cancelled_quantity' => 'setCancelledQuantity' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'updated_date' => 'getUpdatedDate', - 'ordered_quantity' => 'getOrderedQuantity', - 'cancelled_quantity' => 'getCancelledQuantity' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['updated_date'] = $data['updated_date'] ?? null; - $this->container['ordered_quantity'] = $data['ordered_quantity'] ?? null; - $this->container['cancelled_quantity'] = $data['cancelled_quantity'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets updated_date - * - * @return string|null - */ - public function getUpdatedDate() - { - return $this->container['updated_date']; - } - - /** - * Sets updated_date - * - * @param string|null $updated_date The date when the line item quantity was updated by buyer. Must be in ISO-8601 date/time format. - * - * @return self - */ - public function setUpdatedDate($updated_date) - { - $this->container['updated_date'] = $updated_date; - - return $this; - } - /** - * Gets ordered_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getOrderedQuantity() - { - return $this->container['ordered_quantity']; - } - - /** - * Sets ordered_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $ordered_quantity ordered_quantity - * - * @return self - */ - public function setOrderedQuantity($ordered_quantity) - { - $this->container['ordered_quantity'] = $ordered_quantity; - - return $this; - } - /** - * Gets cancelled_quantity - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null - */ - public function getCancelledQuantity() - { - return $this->container['cancelled_quantity']; - } - - /** - * Sets cancelled_quantity - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\ItemQuantity|null $cancelled_quantity cancelled_quantity - * - * @return self - */ - public function setCancelledQuantity($cancelled_quantity) - { - $this->container['cancelled_quantity'] = $cancelled_quantity; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/Pagination.php b/lib/Model/VendorOrdersV1/Pagination.php deleted file mode 100644 index 1e6d9a00e..000000000 --- a/lib/Model/VendorOrdersV1/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more purchase order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/PartyIdentification.php b/lib/Model/VendorOrdersV1/PartyIdentification.php deleted file mode 100644 index d3327d3fe..000000000 --- a/lib/Model/VendorOrdersV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'party_id' => 'string', - 'address' => '\SellingPartnerApi\Model\VendorOrdersV1\Address', - 'tax_info' => '\SellingPartnerApi\Model\VendorOrdersV1\TaxRegistrationDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'party_id' => null, - 'address' => null, - 'tax_info' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'party_id' => 'partyId', - 'address' => 'address', - 'tax_info' => 'taxInfo' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'party_id' => 'setPartyId', - 'address' => 'setAddress', - 'tax_info' => 'setTaxInfo' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'party_id' => 'getPartyId', - 'address' => 'getAddress', - 'tax_info' => 'getTaxInfo' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['tax_info'] = $data['tax_info'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets tax_info - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\TaxRegistrationDetails|null - */ - public function getTaxInfo() - { - return $this->container['tax_info']; - } - - /** - * Sets tax_info - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\TaxRegistrationDetails|null $tax_info tax_info - * - * @return self - */ - public function setTaxInfo($tax_info) - { - $this->container['tax_info'] = $tax_info; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/SubmitAcknowledgementRequest.php b/lib/Model/VendorOrdersV1/SubmitAcknowledgementRequest.php deleted file mode 100644 index 9463c3eaa..000000000 --- a/lib/Model/VendorOrdersV1/SubmitAcknowledgementRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'acknowledgements' => '\SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgement[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'acknowledgements' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'acknowledgements' => 'acknowledgements' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'acknowledgements' => 'setAcknowledgements' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'acknowledgements' => 'getAcknowledgements' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['acknowledgements'] = $data['acknowledgements'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets acknowledgements - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgement[]|null - */ - public function getAcknowledgements() - { - return $this->container['acknowledgements']; - } - - /** - * Sets acknowledgements - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\OrderAcknowledgement[]|null $acknowledgements acknowledgements - * - * @return self - */ - public function setAcknowledgements($acknowledgements) - { - $this->container['acknowledgements'] = $acknowledgements; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/SubmitAcknowledgementResponse.php b/lib/Model/VendorOrdersV1/SubmitAcknowledgementResponse.php deleted file mode 100644 index cdb06f6ec..000000000 --- a/lib/Model/VendorOrdersV1/SubmitAcknowledgementResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitAcknowledgementResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitAcknowledgementResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorOrdersV1\TransactionId', - 'errors' => '\SellingPartnerApi\Model\VendorOrdersV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\TransactionId|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\TransactionId|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorOrdersV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/TaxRegistrationDetails.php b/lib/Model/VendorOrdersV1/TaxRegistrationDetails.php deleted file mode 100644 index 2748e9807..000000000 --- a/lib/Model/VendorOrdersV1/TaxRegistrationDetails.php +++ /dev/null @@ -1,241 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_registration_type'] === null) { - $invalidProperties[] = "'tax_registration_type' can't be null"; - } - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the entity. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorOrdersV1/TransactionId.php b/lib/Model/VendorOrdersV1/TransactionId.php deleted file mode 100644 index bb7151172..000000000 --- a/lib/Model/VendorOrdersV1/TransactionId.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionId extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionId'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Address.php b/lib/Model/VendorShippingV1/Address.php deleted file mode 100644 index 3da9e4cbe..000000000 --- a/lib/Model/VendorShippingV1/Address.php +++ /dev/null @@ -1,461 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Address extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Address'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'address_line1' => 'string', - 'address_line2' => 'string', - 'address_line3' => 'string', - 'city' => 'string', - 'county' => 'string', - 'district' => 'string', - 'state_or_region' => 'string', - 'postal_code' => 'string', - 'country_code' => 'string', - 'phone' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'address_line1' => null, - 'address_line2' => null, - 'address_line3' => null, - 'city' => null, - 'county' => null, - 'district' => null, - 'state_or_region' => null, - 'postal_code' => null, - 'country_code' => null, - 'phone' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'address_line1' => 'addressLine1', - 'address_line2' => 'addressLine2', - 'address_line3' => 'addressLine3', - 'city' => 'city', - 'county' => 'county', - 'district' => 'district', - 'state_or_region' => 'stateOrRegion', - 'postal_code' => 'postalCode', - 'country_code' => 'countryCode', - 'phone' => 'phone' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'address_line1' => 'setAddressLine1', - 'address_line2' => 'setAddressLine2', - 'address_line3' => 'setAddressLine3', - 'city' => 'setCity', - 'county' => 'setCounty', - 'district' => 'setDistrict', - 'state_or_region' => 'setStateOrRegion', - 'postal_code' => 'setPostalCode', - 'country_code' => 'setCountryCode', - 'phone' => 'setPhone' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'address_line1' => 'getAddressLine1', - 'address_line2' => 'getAddressLine2', - 'address_line3' => 'getAddressLine3', - 'city' => 'getCity', - 'county' => 'getCounty', - 'district' => 'getDistrict', - 'state_or_region' => 'getStateOrRegion', - 'postal_code' => 'getPostalCode', - 'country_code' => 'getCountryCode', - 'phone' => 'getPhone' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['address_line1'] = $data['address_line1'] ?? null; - $this->container['address_line2'] = $data['address_line2'] ?? null; - $this->container['address_line3'] = $data['address_line3'] ?? null; - $this->container['city'] = $data['city'] ?? null; - $this->container['county'] = $data['county'] ?? null; - $this->container['district'] = $data['district'] ?? null; - $this->container['state_or_region'] = $data['state_or_region'] ?? null; - $this->container['postal_code'] = $data['postal_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['address_line1'] === null) { - $invalidProperties[] = "'address_line1' can't be null"; - } - if ($this->container['country_code'] === null) { - $invalidProperties[] = "'country_code' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The name of the person, business or institution at that address. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets address_line1 - * - * @return string - */ - public function getAddressLine1() - { - return $this->container['address_line1']; - } - - /** - * Sets address_line1 - * - * @param string $address_line1 First line of the address. - * - * @return self - */ - public function setAddressLine1($address_line1) - { - $this->container['address_line1'] = $address_line1; - - return $this; - } - /** - * Gets address_line2 - * - * @return string|null - */ - public function getAddressLine2() - { - return $this->container['address_line2']; - } - - /** - * Sets address_line2 - * - * @param string|null $address_line2 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine2($address_line2) - { - $this->container['address_line2'] = $address_line2; - - return $this; - } - /** - * Gets address_line3 - * - * @return string|null - */ - public function getAddressLine3() - { - return $this->container['address_line3']; - } - - /** - * Sets address_line3 - * - * @param string|null $address_line3 Additional street address information, if required. - * - * @return self - */ - public function setAddressLine3($address_line3) - { - $this->container['address_line3'] = $address_line3; - - return $this; - } - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city where the person, business or institution is located. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - /** - * Gets county - * - * @return string|null - */ - public function getCounty() - { - return $this->container['county']; - } - - /** - * Sets county - * - * @param string|null $county The county where person, business or institution is located. - * - * @return self - */ - public function setCounty($county) - { - $this->container['county'] = $county; - - return $this; - } - /** - * Gets district - * - * @return string|null - */ - public function getDistrict() - { - return $this->container['district']; - } - - /** - * Sets district - * - * @param string|null $district The district where person, business or institution is located. - * - * @return self - */ - public function setDistrict($district) - { - $this->container['district'] = $district; - - return $this; - } - /** - * Gets state_or_region - * - * @return string|null - */ - public function getStateOrRegion() - { - return $this->container['state_or_region']; - } - - /** - * Sets state_or_region - * - * @param string|null $state_or_region The state or region where person, business or institution is located. - * - * @return self - */ - public function setStateOrRegion($state_or_region) - { - $this->container['state_or_region'] = $state_or_region; - - return $this; - } - /** - * Gets postal_code - * - * @return string|null - */ - public function getPostalCode() - { - return $this->container['postal_code']; - } - - /** - * Sets postal_code - * - * @param string|null $postal_code The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. - * - * @return self - */ - public function setPostalCode($postal_code) - { - $this->container['postal_code'] = $postal_code; - - return $this; - } - /** - * Gets country_code - * - * @return string - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string $country_code The two digit country code in ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The phone number of the person, business or institution located at that address. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/CarrierDetails.php b/lib/Model/VendorShippingV1/CarrierDetails.php deleted file mode 100644 index c455fec3d..000000000 --- a/lib/Model/VendorShippingV1/CarrierDetails.php +++ /dev/null @@ -1,277 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CarrierDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CarrierDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'code' => 'string', - 'phone' => 'string', - 'email' => 'string', - 'shipment_reference_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'code' => null, - 'phone' => null, - 'email' => null, - 'shipment_reference_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'code' => 'code', - 'phone' => 'phone', - 'email' => 'email', - 'shipment_reference_number' => 'shipmentReferenceNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'code' => 'setCode', - 'phone' => 'setPhone', - 'email' => 'setEmail', - 'shipment_reference_number' => 'setShipmentReferenceNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'code' => 'getCode', - 'phone' => 'getPhone', - 'email' => 'getEmail', - 'shipment_reference_number' => 'getShipmentReferenceNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['code'] = $data['code'] ?? null; - $this->container['phone'] = $data['phone'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['shipment_reference_number'] = $data['shipment_reference_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The field is used to represent the carrier used for performing the shipment. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Gets code - * - * @return string|null - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string|null $code Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets phone - * - * @return string|null - */ - public function getPhone() - { - return $this->container['phone']; - } - - /** - * Sets phone - * - * @param string|null $phone The field is used to represent the Carrier contact number. - * - * @return self - */ - public function setPhone($phone) - { - $this->container['phone'] = $phone; - - return $this; - } - /** - * Gets email - * - * @return string|null - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * - * @param string|null $email The field is used to represent the carrier Email id. - * - * @return self - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - /** - * Gets shipment_reference_number - * - * @return string|null - */ - public function getShipmentReferenceNumber() - { - return $this->container['shipment_reference_number']; - } - - /** - * Sets shipment_reference_number - * - * @param string|null $shipment_reference_number The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations. - * - * @return self - */ - public function setShipmentReferenceNumber($shipment_reference_number) - { - $this->container['shipment_reference_number'] = $shipment_reference_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Carton.php b/lib/Model/VendorShippingV1/Carton.php deleted file mode 100644 index 918c55b61..000000000 --- a/lib/Model/VendorShippingV1/Carton.php +++ /dev/null @@ -1,313 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Carton extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Carton'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carton_identifiers' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]', - 'carton_sequence_number' => 'string', - 'dimensions' => '\SellingPartnerApi\Model\VendorShippingV1\Dimensions', - 'weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'tracking_number' => 'string', - 'items' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carton_identifiers' => null, - 'carton_sequence_number' => null, - 'dimensions' => null, - 'weight' => null, - 'tracking_number' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carton_identifiers' => 'cartonIdentifiers', - 'carton_sequence_number' => 'cartonSequenceNumber', - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'tracking_number' => 'trackingNumber', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carton_identifiers' => 'setCartonIdentifiers', - 'carton_sequence_number' => 'setCartonSequenceNumber', - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'tracking_number' => 'setTrackingNumber', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carton_identifiers' => 'getCartonIdentifiers', - 'carton_sequence_number' => 'getCartonSequenceNumber', - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'tracking_number' => 'getTrackingNumber', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carton_identifiers'] = $data['carton_identifiers'] ?? null; - $this->container['carton_sequence_number'] = $data['carton_sequence_number'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carton_sequence_number'] === null) { - $invalidProperties[] = "'carton_sequence_number' can't be null"; - } - if ($this->container['items'] === null) { - $invalidProperties[] = "'items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carton_identifiers - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]|null - */ - public function getCartonIdentifiers() - { - return $this->container['carton_identifiers']; - } - - /** - * Sets carton_identifiers - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]|null $carton_identifiers A list of carton identifiers. - * - * @return self - */ - public function setCartonIdentifiers($carton_identifiers) - { - $this->container['carton_identifiers'] = $carton_identifiers; - - return $this; - } - /** - * Gets carton_sequence_number - * - * @return string - */ - public function getCartonSequenceNumber() - { - return $this->container['carton_sequence_number']; - } - - /** - * Sets carton_sequence_number - * - * @param string $carton_sequence_number Carton sequence number for the carton. The first carton will be 001, the second 002, and so on. This number is used as a reference to refer to this carton from the pallet level. - * - * @return self - */ - public function setCartonSequenceNumber($carton_sequence_number) - { - $this->container['carton_sequence_number'] = $carton_sequence_number; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number This is required to be provided for every carton in the small parcel shipments. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerItem[] - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerItem[] $items A list of container item details. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/CartonReferenceDetails.php b/lib/Model/VendorShippingV1/CartonReferenceDetails.php deleted file mode 100644 index b18289f2d..000000000 --- a/lib/Model/VendorShippingV1/CartonReferenceDetails.php +++ /dev/null @@ -1,193 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CartonReferenceDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'CartonReferenceDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'carton_count' => 'int', - 'carton_reference_numbers' => 'string[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'carton_count' => null, - 'carton_reference_numbers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'carton_count' => 'cartonCount', - 'carton_reference_numbers' => 'cartonReferenceNumbers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'carton_count' => 'setCartonCount', - 'carton_reference_numbers' => 'setCartonReferenceNumbers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'carton_count' => 'getCartonCount', - 'carton_reference_numbers' => 'getCartonReferenceNumbers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['carton_count'] = $data['carton_count'] ?? null; - $this->container['carton_reference_numbers'] = $data['carton_reference_numbers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['carton_reference_numbers'] === null) { - $invalidProperties[] = "'carton_reference_numbers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets carton_count - * - * @return int|null - */ - public function getCartonCount() - { - return $this->container['carton_count']; - } - - /** - * Sets carton_count - * - * @param int|null $carton_count Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet. - * - * @return self - */ - public function setCartonCount($carton_count) - { - $this->container['carton_count'] = $carton_count; - - return $this; - } - /** - * Gets carton_reference_numbers - * - * @return string[] - */ - public function getCartonReferenceNumbers() - { - return $this->container['carton_reference_numbers']; - } - - /** - * Sets carton_reference_numbers - * - * @param string[] $carton_reference_numbers Array of reference numbers for the carton that are part of this pallet/shipment. Please provide the cartonSequenceNumber from the 'cartons' segment to refer to that carton's details here. - * - * @return self - */ - public function setCartonReferenceNumbers($carton_reference_numbers) - { - $this->container['carton_reference_numbers'] = $carton_reference_numbers; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/CollectFreightPickupDetails.php b/lib/Model/VendorShippingV1/CollectFreightPickupDetails.php deleted file mode 100644 index 5adba84b5..000000000 --- a/lib/Model/VendorShippingV1/CollectFreightPickupDetails.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class CollectFreightPickupDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'collectFreightPickupDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'requested_pick_up' => 'string', - 'scheduled_pick_up' => 'string', - 'carrier_assignment_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'requested_pick_up' => null, - 'scheduled_pick_up' => null, - 'carrier_assignment_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'requested_pick_up' => 'requestedPickUp', - 'scheduled_pick_up' => 'scheduledPickUp', - 'carrier_assignment_date' => 'carrierAssignmentDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'requested_pick_up' => 'setRequestedPickUp', - 'scheduled_pick_up' => 'setScheduledPickUp', - 'carrier_assignment_date' => 'setCarrierAssignmentDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'requested_pick_up' => 'getRequestedPickUp', - 'scheduled_pick_up' => 'getScheduledPickUp', - 'carrier_assignment_date' => 'getCarrierAssignmentDate' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['requested_pick_up'] = $data['requested_pick_up'] ?? null; - $this->container['scheduled_pick_up'] = $data['scheduled_pick_up'] ?? null; - $this->container['carrier_assignment_date'] = $data['carrier_assignment_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets requested_pick_up - * - * @return string|null - */ - public function getRequestedPickUp() - { - return $this->container['requested_pick_up']; - } - - /** - * Sets requested_pick_up - * - * @param string|null $requested_pick_up Date on which the items can be picked up from vendor warehouse by Buyer used for WePay/Collect vendors. - * - * @return self - */ - public function setRequestedPickUp($requested_pick_up) - { - $this->container['requested_pick_up'] = $requested_pick_up; - - return $this; - } - /** - * Gets scheduled_pick_up - * - * @return string|null - */ - public function getScheduledPickUp() - { - return $this->container['scheduled_pick_up']; - } - - /** - * Sets scheduled_pick_up - * - * @param string|null $scheduled_pick_up Date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay/Collect vendors. - * - * @return self - */ - public function setScheduledPickUp($scheduled_pick_up) - { - $this->container['scheduled_pick_up'] = $scheduled_pick_up; - - return $this; - } - /** - * Gets carrier_assignment_date - * - * @return string|null - */ - public function getCarrierAssignmentDate() - { - return $this->container['carrier_assignment_date']; - } - - /** - * Sets carrier_assignment_date - * - * @param string|null $carrier_assignment_date Date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay/Collect vendors. - * - * @return self - */ - public function setCarrierAssignmentDate($carrier_assignment_date) - { - $this->container['carrier_assignment_date'] = $carrier_assignment_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ContainerIdentification.php b/lib/Model/VendorShippingV1/ContainerIdentification.php deleted file mode 100644 index 42292f1c0..000000000 --- a/lib/Model/VendorShippingV1/ContainerIdentification.php +++ /dev/null @@ -1,246 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContainerIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContainerIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_identification_type' => 'string', - 'container_identification_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_identification_type' => null, - 'container_identification_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_identification_type' => 'containerIdentificationType', - 'container_identification_number' => 'containerIdentificationNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_identification_type' => 'setContainerIdentificationType', - 'container_identification_number' => 'setContainerIdentificationNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_identification_type' => 'getContainerIdentificationType', - 'container_identification_number' => 'getContainerIdentificationNumber' - ]; - - - - const CONTAINER_IDENTIFICATION_TYPE_SSCC = 'SSCC'; - const CONTAINER_IDENTIFICATION_TYPE_AMZNCC = 'AMZNCC'; - const CONTAINER_IDENTIFICATION_TYPE_GTIN = 'GTIN'; - const CONTAINER_IDENTIFICATION_TYPE_BPS = 'BPS'; - const CONTAINER_IDENTIFICATION_TYPE_CID = 'CID'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContainerIdentificationTypeAllowableValues() - { - $baseVals = [ - self::CONTAINER_IDENTIFICATION_TYPE_SSCC, - self::CONTAINER_IDENTIFICATION_TYPE_AMZNCC, - self::CONTAINER_IDENTIFICATION_TYPE_GTIN, - self::CONTAINER_IDENTIFICATION_TYPE_BPS, - self::CONTAINER_IDENTIFICATION_TYPE_CID, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_identification_type'] = $data['container_identification_type'] ?? null; - $this->container['container_identification_number'] = $data['container_identification_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['container_identification_type'] === null) { - $invalidProperties[] = "'container_identification_type' can't be null"; - } - $allowedValues = $this->getContainerIdentificationTypeAllowableValues(); - if ( - !is_null($this->container['container_identification_type']) && - !in_array(strtoupper($this->container['container_identification_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'container_identification_type', must be one of '%s'", - $this->container['container_identification_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['container_identification_number'] === null) { - $invalidProperties[] = "'container_identification_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets container_identification_type - * - * @return string - */ - public function getContainerIdentificationType() - { - return $this->container['container_identification_type']; - } - - /** - * Sets container_identification_type - * - * @param string $container_identification_type The container identification type. - * - * @return self - */ - public function setContainerIdentificationType($container_identification_type) - { - $allowedValues = $this->getContainerIdentificationTypeAllowableValues(); - if (!in_array(strtoupper($container_identification_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'container_identification_type', must be one of '%s'", - $container_identification_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['container_identification_type'] = $container_identification_type; - - return $this; - } - /** - * Gets container_identification_number - * - * @return string - */ - public function getContainerIdentificationNumber() - { - return $this->container['container_identification_number']; - } - - /** - * Sets container_identification_number - * - * @param string $container_identification_number Container identification number that adheres to the definition of the container identification type. - * - * @return self - */ - public function setContainerIdentificationNumber($container_identification_number) - { - $this->container['container_identification_number'] = $container_identification_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ContainerItem.php b/lib/Model/VendorShippingV1/ContainerItem.php deleted file mode 100644 index 87d3ecdcb..000000000 --- a/lib/Model/VendorShippingV1/ContainerItem.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContainerItem extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContainerItem'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_reference' => 'string', - 'shipped_quantity' => '\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity', - 'item_details' => '\SellingPartnerApi\Model\VendorShippingV1\ItemDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_reference' => null, - 'shipped_quantity' => null, - 'item_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_reference' => 'itemReference', - 'shipped_quantity' => 'shippedQuantity', - 'item_details' => 'itemDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_reference' => 'setItemReference', - 'shipped_quantity' => 'setShippedQuantity', - 'item_details' => 'setItemDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_reference' => 'getItemReference', - 'shipped_quantity' => 'getShippedQuantity', - 'item_details' => 'getItemDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_reference'] = $data['item_reference'] ?? null; - $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; - $this->container['item_details'] = $data['item_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_reference'] === null) { - $invalidProperties[] = "'item_reference' can't be null"; - } - if ($this->container['shipped_quantity'] === null) { - $invalidProperties[] = "'shipped_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_reference - * - * @return string - */ - public function getItemReference() - { - return $this->container['item_reference']; - } - - /** - * Sets item_reference - * - * @param string $item_reference The reference number for the item. Please provide the itemSequenceNumber from the 'items' segment to refer to that item's details here. - * - * @return self - */ - public function setItemReference($item_reference) - { - $this->container['item_reference'] = $item_reference; - - return $this; - } - /** - * Gets shipped_quantity - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity - */ - public function getShippedQuantity() - { - return $this->container['shipped_quantity']; - } - - /** - * Sets shipped_quantity - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity $shipped_quantity shipped_quantity - * - * @return self - */ - public function setShippedQuantity($shipped_quantity) - { - $this->container['shipped_quantity'] = $shipped_quantity; - - return $this; - } - /** - * Gets item_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemDetails|null - */ - public function getItemDetails() - { - return $this->container['item_details']; - } - - /** - * Sets item_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemDetails|null $item_details item_details - * - * @return self - */ - public function setItemDetails($item_details) - { - $this->container['item_details'] = $item_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ContainerSequenceNumbers.php b/lib/Model/VendorShippingV1/ContainerSequenceNumbers.php deleted file mode 100644 index 5a3e414a8..000000000 --- a/lib/Model/VendorShippingV1/ContainerSequenceNumbers.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ContainerSequenceNumbers extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ContainerSequenceNumbers'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_sequence_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_sequence_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_sequence_number' => 'containerSequenceNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_sequence_number' => 'setContainerSequenceNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_sequence_number' => 'getContainerSequenceNumber' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets container_sequence_number - * - * @return string|null - */ - public function getContainerSequenceNumber() - { - return $this->container['container_sequence_number']; - } - - /** - * Sets container_sequence_number - * - * @param string|null $container_sequence_number A list of containers shipped - * - * @return self - */ - public function setContainerSequenceNumber($container_sequence_number) - { - $this->container['container_sequence_number'] = $container_sequence_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Containers.php b/lib/Model/VendorShippingV1/Containers.php deleted file mode 100644 index f1f74509a..000000000 --- a/lib/Model/VendorShippingV1/Containers.php +++ /dev/null @@ -1,472 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Containers extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'containers'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_type' => 'string', - 'container_sequence_number' => 'string', - 'container_identifiers' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]', - 'tracking_number' => 'string', - 'dimensions' => '\SellingPartnerApi\Model\VendorShippingV1\Dimensions', - 'weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'tier' => 'int', - 'block' => 'int', - 'inner_containers_details' => '\SellingPartnerApi\Model\VendorShippingV1\InnerContainersDetails', - 'packed_items' => '\SellingPartnerApi\Model\VendorShippingV1\PackedItems[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_type' => null, - 'container_sequence_number' => null, - 'container_identifiers' => null, - 'tracking_number' => null, - 'dimensions' => null, - 'weight' => null, - 'tier' => null, - 'block' => null, - 'inner_containers_details' => null, - 'packed_items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_type' => 'containerType', - 'container_sequence_number' => 'containerSequenceNumber', - 'container_identifiers' => 'containerIdentifiers', - 'tracking_number' => 'trackingNumber', - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'tier' => 'tier', - 'block' => 'block', - 'inner_containers_details' => 'innerContainersDetails', - 'packed_items' => 'packedItems' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_type' => 'setContainerType', - 'container_sequence_number' => 'setContainerSequenceNumber', - 'container_identifiers' => 'setContainerIdentifiers', - 'tracking_number' => 'setTrackingNumber', - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'tier' => 'setTier', - 'block' => 'setBlock', - 'inner_containers_details' => 'setInnerContainersDetails', - 'packed_items' => 'setPackedItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_type' => 'getContainerType', - 'container_sequence_number' => 'getContainerSequenceNumber', - 'container_identifiers' => 'getContainerIdentifiers', - 'tracking_number' => 'getTrackingNumber', - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'tier' => 'getTier', - 'block' => 'getBlock', - 'inner_containers_details' => 'getInnerContainersDetails', - 'packed_items' => 'getPackedItems' - ]; - - - - const CONTAINER_TYPE_CARTON = 'carton'; - const CONTAINER_TYPE_PALLET = 'pallet'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getContainerTypeAllowableValues() - { - $baseVals = [ - self::CONTAINER_TYPE_CARTON, - self::CONTAINER_TYPE_PALLET, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_type'] = $data['container_type'] ?? null; - $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; - $this->container['container_identifiers'] = $data['container_identifiers'] ?? null; - $this->container['tracking_number'] = $data['tracking_number'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['tier'] = $data['tier'] ?? null; - $this->container['block'] = $data['block'] ?? null; - $this->container['inner_containers_details'] = $data['inner_containers_details'] ?? null; - $this->container['packed_items'] = $data['packed_items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['container_type'] === null) { - $invalidProperties[] = "'container_type' can't be null"; - } - $allowedValues = $this->getContainerTypeAllowableValues(); - if ( - !is_null($this->container['container_type']) && - !in_array(strtoupper($this->container['container_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'container_type', must be one of '%s'", - $this->container['container_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['container_identifiers'] === null) { - $invalidProperties[] = "'container_identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets container_type - * - * @return string - */ - public function getContainerType() - { - return $this->container['container_type']; - } - - /** - * Sets container_type - * - * @param string $container_type The type of container. - * - * @return self - */ - public function setContainerType($container_type) - { - $allowedValues = $this->getContainerTypeAllowableValues(); - if (!in_array(strtoupper($container_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'container_type', must be one of '%s'", - $container_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['container_type'] = $container_type; - - return $this; - } - /** - * Gets container_sequence_number - * - * @return string|null - */ - public function getContainerSequenceNumber() - { - return $this->container['container_sequence_number']; - } - - /** - * Sets container_sequence_number - * - * @param string|null $container_sequence_number An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. - * - * @return self - */ - public function setContainerSequenceNumber($container_sequence_number) - { - $this->container['container_sequence_number'] = $container_sequence_number; - - return $this; - } - /** - * Gets container_identifiers - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[] - */ - public function getContainerIdentifiers() - { - return $this->container['container_identifiers']; - } - - /** - * Sets container_identifiers - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[] $container_identifiers A list of carton identifiers. - * - * @return self - */ - public function setContainerIdentifiers($container_identifiers) - { - $this->container['container_identifiers'] = $container_identifiers; - - return $this; - } - /** - * Gets tracking_number - * - * @return string|null - */ - public function getTrackingNumber() - { - return $this->container['tracking_number']; - } - - /** - * Sets tracking_number - * - * @param string|null $tracking_number The tracking number used for identifying the shipment. - * - * @return self - */ - public function setTrackingNumber($tracking_number) - { - $this->container['tracking_number'] = $tracking_number; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets tier - * - * @return int|null - */ - public function getTier() - { - return $this->container['tier']; - } - - /** - * Sets tier - * - * @param int|null $tier Number of layers per pallet. - * - * @return self - */ - public function setTier($tier) - { - $this->container['tier'] = $tier; - - return $this; - } - /** - * Gets block - * - * @return int|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param int|null $block Number of cartons per layer on the pallet. - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } - /** - * Gets inner_containers_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\InnerContainersDetails|null - */ - public function getInnerContainersDetails() - { - return $this->container['inner_containers_details']; - } - - /** - * Sets inner_containers_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\InnerContainersDetails|null $inner_containers_details inner_containers_details - * - * @return self - */ - public function setInnerContainersDetails($inner_containers_details) - { - $this->container['inner_containers_details'] = $inner_containers_details; - - return $this; - } - /** - * Gets packed_items - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PackedItems[]|null - */ - public function getPackedItems() - { - return $this->container['packed_items']; - } - - /** - * Sets packed_items - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PackedItems[]|null $packed_items A list of packed items. - * - * @return self - */ - public function setPackedItems($packed_items) - { - $this->container['packed_items'] = $packed_items; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Dimensions.php b/lib/Model/VendorShippingV1/Dimensions.php deleted file mode 100644 index a92c192fb..000000000 --- a/lib/Model/VendorShippingV1/Dimensions.php +++ /dev/null @@ -1,312 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Dimensions extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Dimensions'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'length' => 'string', - 'width' => 'string', - 'height' => 'string', - 'unit_of_measure' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'length' => null, - 'width' => null, - 'height' => null, - 'unit_of_measure' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'length' => 'length', - 'width' => 'width', - 'height' => 'height', - 'unit_of_measure' => 'unitOfMeasure' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'length' => 'setLength', - 'width' => 'setWidth', - 'height' => 'setHeight', - 'unit_of_measure' => 'setUnitOfMeasure' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'length' => 'getLength', - 'width' => 'getWidth', - 'height' => 'getHeight', - 'unit_of_measure' => 'getUnitOfMeasure' - ]; - - - - const UNIT_OF_MEASURE_IN = 'In'; - const UNIT_OF_MEASURE_FT = 'Ft'; - const UNIT_OF_MEASURE_METER = 'Meter'; - const UNIT_OF_MEASURE_YARD = 'Yard'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_IN, - self::UNIT_OF_MEASURE_FT, - self::UNIT_OF_MEASURE_METER, - self::UNIT_OF_MEASURE_YARD, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['length'] = $data['length'] ?? null; - $this->container['width'] = $data['width'] ?? null; - $this->container['height'] = $data['height'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['length'] === null) { - $invalidProperties[] = "'length' can't be null"; - } - if ($this->container['width'] === null) { - $invalidProperties[] = "'width' can't be null"; - } - if ($this->container['height'] === null) { - $invalidProperties[] = "'height' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets length - * - * @return string - */ - public function getLength() - { - return $this->container['length']; - } - - /** - * Sets length - * - * @param string $length A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setLength($length) - { - $this->container['length'] = $length; - - return $this; - } - /** - * Gets width - * - * @return string - */ - public function getWidth() - { - return $this->container['width']; - } - - /** - * Sets width - * - * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setWidth($width) - { - $this->container['width'] = $width; - - return $this; - } - /** - * Gets height - * - * @return string - */ - public function getHeight() - { - return $this->container['height']; - } - - /** - * Sets height - * - * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setHeight($height) - { - $this->container['height'] = $height; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measure for dimensions. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Duration.php b/lib/Model/VendorShippingV1/Duration.php deleted file mode 100644 index cfa5f291d..000000000 --- a/lib/Model/VendorShippingV1/Duration.php +++ /dev/null @@ -1,240 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Duration extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Duration'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'duration_unit' => 'string', - 'duration_value' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'duration_unit' => null, - 'duration_value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'duration_unit' => 'durationUnit', - 'duration_value' => 'durationValue' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'duration_unit' => 'setDurationUnit', - 'duration_value' => 'setDurationValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'duration_unit' => 'getDurationUnit', - 'duration_value' => 'getDurationValue' - ]; - - - - const DURATION_UNIT_DAYS = 'Days'; - const DURATION_UNIT_MONTHS = 'Months'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getDurationUnitAllowableValues() - { - $baseVals = [ - self::DURATION_UNIT_DAYS, - self::DURATION_UNIT_MONTHS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['duration_unit'] = $data['duration_unit'] ?? null; - $this->container['duration_value'] = $data['duration_value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['duration_unit'] === null) { - $invalidProperties[] = "'duration_unit' can't be null"; - } - $allowedValues = $this->getDurationUnitAllowableValues(); - if ( - !is_null($this->container['duration_unit']) && - !in_array(strtoupper($this->container['duration_unit']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'duration_unit', must be one of '%s'", - $this->container['duration_unit'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['duration_value'] === null) { - $invalidProperties[] = "'duration_value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets duration_unit - * - * @return string - */ - public function getDurationUnit() - { - return $this->container['duration_unit']; - } - - /** - * Sets duration_unit - * - * @param string $duration_unit Unit for duration. - * - * @return self - */ - public function setDurationUnit($duration_unit) - { - $allowedValues = $this->getDurationUnitAllowableValues(); - if (!in_array(strtoupper($duration_unit), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'duration_unit', must be one of '%s'", - $duration_unit, - implode("', '", $allowedValues) - ) - ); - } - $this->container['duration_unit'] = $duration_unit; - - return $this; - } - /** - * Gets duration_value - * - * @return int - */ - public function getDurationValue() - { - return $this->container['duration_value']; - } - - /** - * Sets duration_value - * - * @param int $duration_value Value for the duration in terms of the durationUnit. - * - * @return self - */ - public function setDurationValue($duration_value) - { - $this->container['duration_value'] = $duration_value; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Error.php b/lib/Model/VendorShippingV1/Error.php deleted file mode 100644 index ff53b2f8a..000000000 --- a/lib/Model/VendorShippingV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Expiry.php b/lib/Model/VendorShippingV1/Expiry.php deleted file mode 100644 index 75e9470b0..000000000 --- a/lib/Model/VendorShippingV1/Expiry.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Expiry extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Expiry'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'manufacturer_date' => 'string', - 'expiry_date' => 'string', - 'expiry_after_duration' => '\SellingPartnerApi\Model\VendorShippingV1\Duration' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'manufacturer_date' => null, - 'expiry_date' => null, - 'expiry_after_duration' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'manufacturer_date' => 'manufacturerDate', - 'expiry_date' => 'expiryDate', - 'expiry_after_duration' => 'expiryAfterDuration' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'manufacturer_date' => 'setManufacturerDate', - 'expiry_date' => 'setExpiryDate', - 'expiry_after_duration' => 'setExpiryAfterDuration' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'manufacturer_date' => 'getManufacturerDate', - 'expiry_date' => 'getExpiryDate', - 'expiry_after_duration' => 'getExpiryAfterDuration' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['manufacturer_date'] = $data['manufacturer_date'] ?? null; - $this->container['expiry_date'] = $data['expiry_date'] ?? null; - $this->container['expiry_after_duration'] = $data['expiry_after_duration'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets manufacturer_date - * - * @return string|null - */ - public function getManufacturerDate() - { - return $this->container['manufacturer_date']; - } - - /** - * Sets manufacturer_date - * - * @param string|null $manufacturer_date Production, packaging or assembly date determined by the manufacturer. Its meaning is determined based on the trade item context. - * - * @return self - */ - public function setManufacturerDate($manufacturer_date) - { - $this->container['manufacturer_date'] = $manufacturer_date; - - return $this; - } - /** - * Gets expiry_date - * - * @return string|null - */ - public function getExpiryDate() - { - return $this->container['expiry_date']; - } - - /** - * Sets expiry_date - * - * @param string|null $expiry_date The date that determines the limit of consumption or use of a product. Its meaning is determined based on the trade item context. - * - * @return self - */ - public function setExpiryDate($expiry_date) - { - $this->container['expiry_date'] = $expiry_date; - - return $this; - } - /** - * Gets expiry_after_duration - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Duration|null - */ - public function getExpiryAfterDuration() - { - return $this->container['expiry_after_duration']; - } - - /** - * Sets expiry_after_duration - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Duration|null $expiry_after_duration expiry_after_duration - * - * @return self - */ - public function setExpiryAfterDuration($expiry_after_duration) - { - $this->container['expiry_after_duration'] = $expiry_after_duration; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/GetShipmentDetailsResponse.php b/lib/Model/VendorShippingV1/GetShipmentDetailsResponse.php deleted file mode 100644 index a202a7c99..000000000 --- a/lib/Model/VendorShippingV1/GetShipmentDetailsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentDetailsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentDetailsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorShippingV1\ShipmentDetails', - 'errors' => '\SellingPartnerApi\Model\VendorShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ShipmentDetails|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ShipmentDetails|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/GetShipmentLabels.php b/lib/Model/VendorShippingV1/GetShipmentLabels.php deleted file mode 100644 index 3273d7178..000000000 --- a/lib/Model/VendorShippingV1/GetShipmentLabels.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetShipmentLabels extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetShipmentLabels'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorShippingV1\TransportationLabels', - 'errors' => '\SellingPartnerApi\Model\VendorShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransportationLabels|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransportationLabels|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ImportDetails.php b/lib/Model/VendorShippingV1/ImportDetails.php deleted file mode 100644 index e9c076785..000000000 --- a/lib/Model/VendorShippingV1/ImportDetails.php +++ /dev/null @@ -1,443 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ImportDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ImportDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'method_of_payment' => 'string', - 'seal_number' => 'string', - 'route' => '\SellingPartnerApi\Model\VendorShippingV1\Route', - 'import_containers' => 'string', - 'billable_weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'estimated_ship_by_date' => 'string', - 'handling_instructions' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'method_of_payment' => null, - 'seal_number' => null, - 'route' => null, - 'import_containers' => null, - 'billable_weight' => null, - 'estimated_ship_by_date' => null, - 'handling_instructions' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'method_of_payment' => 'methodOfPayment', - 'seal_number' => 'sealNumber', - 'route' => 'route', - 'import_containers' => 'importContainers', - 'billable_weight' => 'billableWeight', - 'estimated_ship_by_date' => 'estimatedShipByDate', - 'handling_instructions' => 'handlingInstructions' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'method_of_payment' => 'setMethodOfPayment', - 'seal_number' => 'setSealNumber', - 'route' => 'setRoute', - 'import_containers' => 'setImportContainers', - 'billable_weight' => 'setBillableWeight', - 'estimated_ship_by_date' => 'setEstimatedShipByDate', - 'handling_instructions' => 'setHandlingInstructions' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'method_of_payment' => 'getMethodOfPayment', - 'seal_number' => 'getSealNumber', - 'route' => 'getRoute', - 'import_containers' => 'getImportContainers', - 'billable_weight' => 'getBillableWeight', - 'estimated_ship_by_date' => 'getEstimatedShipByDate', - 'handling_instructions' => 'getHandlingInstructions' - ]; - - - - const METHOD_OF_PAYMENT_PAID_BY_BUYER = 'PaidByBuyer'; - const METHOD_OF_PAYMENT_COLLECT_ON_DELIVERY = 'CollectOnDelivery'; - const METHOD_OF_PAYMENT_DEFINED_BY_BUYER_AND_SELLER = 'DefinedByBuyerAndSeller'; - const METHOD_OF_PAYMENT_FOB_PORT_OF_CALL = 'FOBPortOfCall'; - const METHOD_OF_PAYMENT_PREPAID_BY_SELLER = 'PrepaidBySeller'; - const METHOD_OF_PAYMENT_PAID_BY_SELLER = 'PaidBySeller'; - - - const HANDLING_INSTRUCTIONS_OVERSIZED = 'Oversized'; - const HANDLING_INSTRUCTIONS_FRAGILE = 'Fragile'; - const HANDLING_INSTRUCTIONS_FOOD = 'Food'; - const HANDLING_INSTRUCTIONS_HANDLE_WITH_CARE = 'HandleWithCare'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMethodOfPaymentAllowableValues() - { - $baseVals = [ - self::METHOD_OF_PAYMENT_PAID_BY_BUYER, - self::METHOD_OF_PAYMENT_COLLECT_ON_DELIVERY, - self::METHOD_OF_PAYMENT_DEFINED_BY_BUYER_AND_SELLER, - self::METHOD_OF_PAYMENT_FOB_PORT_OF_CALL, - self::METHOD_OF_PAYMENT_PREPAID_BY_SELLER, - self::METHOD_OF_PAYMENT_PAID_BY_SELLER, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getHandlingInstructionsAllowableValues() - { - $baseVals = [ - self::HANDLING_INSTRUCTIONS_OVERSIZED, - self::HANDLING_INSTRUCTIONS_FRAGILE, - self::HANDLING_INSTRUCTIONS_FOOD, - self::HANDLING_INSTRUCTIONS_HANDLE_WITH_CARE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['method_of_payment'] = $data['method_of_payment'] ?? null; - $this->container['seal_number'] = $data['seal_number'] ?? null; - $this->container['route'] = $data['route'] ?? null; - $this->container['import_containers'] = $data['import_containers'] ?? null; - $this->container['billable_weight'] = $data['billable_weight'] ?? null; - $this->container['estimated_ship_by_date'] = $data['estimated_ship_by_date'] ?? null; - $this->container['handling_instructions'] = $data['handling_instructions'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getMethodOfPaymentAllowableValues(); - if ( - !is_null($this->container['method_of_payment']) && - !in_array(strtoupper($this->container['method_of_payment']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'method_of_payment', must be one of '%s'", - $this->container['method_of_payment'], - implode("', '", $allowedValues) - ); - } - - if (!is_null($this->container['import_containers']) && (mb_strlen($this->container['import_containers']) > 64)) { - $invalidProperties[] = "invalid value for 'import_containers', the character length must be smaller than or equal to 64."; - } - - $allowedValues = $this->getHandlingInstructionsAllowableValues(); - if ( - !is_null($this->container['handling_instructions']) && - !in_array(strtoupper($this->container['handling_instructions']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'handling_instructions', must be one of '%s'", - $this->container['handling_instructions'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets method_of_payment - * - * @return string|null - */ - public function getMethodOfPayment() - { - return $this->container['method_of_payment']; - } - - /** - * Sets method_of_payment - * - * @param string|null $method_of_payment This is used for import purchase orders only. If the recipient requests, this field will contain the shipment method of payment. - * - * @return self - */ - public function setMethodOfPayment($method_of_payment) - { - $allowedValues = $this->getMethodOfPaymentAllowableValues(); - if (!is_null($method_of_payment) &&!in_array(strtoupper($method_of_payment), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'method_of_payment', must be one of '%s'", - $method_of_payment, - implode("', '", $allowedValues) - ) - ); - } - $this->container['method_of_payment'] = $method_of_payment; - - return $this; - } - /** - * Gets seal_number - * - * @return string|null - */ - public function getSealNumber() - { - return $this->container['seal_number']; - } - - /** - * Sets seal_number - * - * @param string|null $seal_number The container's seal number. - * - * @return self - */ - public function setSealNumber($seal_number) - { - $this->container['seal_number'] = $seal_number; - - return $this; - } - /** - * Gets route - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Route|null - */ - public function getRoute() - { - return $this->container['route']; - } - - /** - * Sets route - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Route|null $route route - * - * @return self - */ - public function setRoute($route) - { - $this->container['route'] = $route; - - return $this; - } - /** - * Gets import_containers - * - * @return string|null - */ - public function getImportContainers() - { - return $this->container['import_containers']; - } - - /** - * Sets import_containers - * - * @param string|null $import_containers Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if shipment has multiple containers. - * - * @return self - */ - public function setImportContainers($import_containers) - { - if (!is_null($import_containers) && (mb_strlen($import_containers) > 64)) { - throw new \InvalidArgumentException('invalid length for $import_containers when calling ImportDetails., must be smaller than or equal to 64.'); - } - - $this->container['import_containers'] = $import_containers; - - return $this; - } - /** - * Gets billable_weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getBillableWeight() - { - return $this->container['billable_weight']; - } - - /** - * Sets billable_weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $billable_weight billable_weight - * - * @return self - */ - public function setBillableWeight($billable_weight) - { - $this->container['billable_weight'] = $billable_weight; - - return $this; - } - /** - * Gets estimated_ship_by_date - * - * @return string|null - */ - public function getEstimatedShipByDate() - { - return $this->container['estimated_ship_by_date']; - } - - /** - * Sets estimated_ship_by_date - * - * @param string|null $estimated_ship_by_date Date on which the shipment is expected to be shipped. This value should not be in the past and not more than 60 days out in the future. - * - * @return self - */ - public function setEstimatedShipByDate($estimated_ship_by_date) - { - $this->container['estimated_ship_by_date'] = $estimated_ship_by_date; - - return $this; - } - /** - * Gets handling_instructions - * - * @return string|null - */ - public function getHandlingInstructions() - { - return $this->container['handling_instructions']; - } - - /** - * Sets handling_instructions - * - * @param string|null $handling_instructions Identification of the instructions on how specified item/carton/pallet should be handled. - * - * @return self - */ - public function setHandlingInstructions($handling_instructions) - { - $allowedValues = $this->getHandlingInstructionsAllowableValues(); - if (!is_null($handling_instructions) &&!in_array(strtoupper($handling_instructions), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'handling_instructions', must be one of '%s'", - $handling_instructions, - implode("', '", $allowedValues) - ) - ); - } - $this->container['handling_instructions'] = $handling_instructions; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/InnerContainersDetails.php b/lib/Model/VendorShippingV1/InnerContainersDetails.php deleted file mode 100644 index 1b789c108..000000000 --- a/lib/Model/VendorShippingV1/InnerContainersDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InnerContainersDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'InnerContainersDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'container_count' => 'int', - 'container_sequence_numbers' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerSequenceNumbers[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'container_count' => null, - 'container_sequence_numbers' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'container_count' => 'containerCount', - 'container_sequence_numbers' => 'containerSequenceNumbers' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'container_count' => 'setContainerCount', - 'container_sequence_numbers' => 'setContainerSequenceNumbers' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'container_count' => 'getContainerCount', - 'container_sequence_numbers' => 'getContainerSequenceNumbers' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['container_count'] = $data['container_count'] ?? null; - $this->container['container_sequence_numbers'] = $data['container_sequence_numbers'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets container_count - * - * @return int|null - */ - public function getContainerCount() - { - return $this->container['container_count']; - } - - /** - * Sets container_count - * - * @param int|null $container_count Total containers as part of the shipment - * - * @return self - */ - public function setContainerCount($container_count) - { - $this->container['container_count'] = $container_count; - - return $this; - } - /** - * Gets container_sequence_numbers - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerSequenceNumbers[]|null - */ - public function getContainerSequenceNumbers() - { - return $this->container['container_sequence_numbers']; - } - - /** - * Sets container_sequence_numbers - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerSequenceNumbers[]|null $container_sequence_numbers Container sequence numbers that are involved in this shipment. - * - * @return self - */ - public function setContainerSequenceNumbers($container_sequence_numbers) - { - $this->container['container_sequence_numbers'] = $container_sequence_numbers; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Item.php b/lib/Model/VendorShippingV1/Item.php deleted file mode 100644 index 39194b98e..000000000 --- a/lib/Model/VendorShippingV1/Item.php +++ /dev/null @@ -1,284 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Item extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Item'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'amazon_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'shipped_quantity' => '\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity', - 'item_details' => '\SellingPartnerApi\Model\VendorShippingV1\ItemDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'amazon_product_identifier' => null, - 'vendor_product_identifier' => null, - 'shipped_quantity' => null, - 'item_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'amazon_product_identifier' => 'amazonProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'shipped_quantity' => 'shippedQuantity', - 'item_details' => 'itemDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'amazon_product_identifier' => 'setAmazonProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'shipped_quantity' => 'setShippedQuantity', - 'item_details' => 'setItemDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'amazon_product_identifier' => 'getAmazonProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'shipped_quantity' => 'getShippedQuantity', - 'item_details' => 'getItemDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['amazon_product_identifier'] = $data['amazon_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; - $this->container['item_details'] = $data['item_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['shipped_quantity'] === null) { - $invalidProperties[] = "'shipped_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets amazon_product_identifier - * - * @return string|null - */ - public function getAmazonProductIdentifier() - { - return $this->container['amazon_product_identifier']; - } - - /** - * Sets amazon_product_identifier - * - * @param string|null $amazon_product_identifier Buyer Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setAmazonProductIdentifier($amazon_product_identifier) - { - $this->container['amazon_product_identifier'] = $amazon_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets shipped_quantity - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity - */ - public function getShippedQuantity() - { - return $this->container['shipped_quantity']; - } - - /** - * Sets shipped_quantity - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity $shipped_quantity shipped_quantity - * - * @return self - */ - public function setShippedQuantity($shipped_quantity) - { - $this->container['shipped_quantity'] = $shipped_quantity; - - return $this; - } - /** - * Gets item_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemDetails|null - */ - public function getItemDetails() - { - return $this->container['item_details']; - } - - /** - * Sets item_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemDetails|null $item_details item_details - * - * @return self - */ - public function setItemDetails($item_details) - { - $this->container['item_details'] = $item_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ItemDetails.php b/lib/Model/VendorShippingV1/ItemDetails.php deleted file mode 100644 index 33e6c0703..000000000 --- a/lib/Model/VendorShippingV1/ItemDetails.php +++ /dev/null @@ -1,326 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'lot_number' => 'string', - 'expiry' => '\SellingPartnerApi\Model\VendorShippingV1\Expiry', - 'maximum_retail_price' => '\SellingPartnerApi\Model\VendorShippingV1\Money', - 'handling_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'lot_number' => null, - 'expiry' => null, - 'maximum_retail_price' => null, - 'handling_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'lot_number' => 'lotNumber', - 'expiry' => 'expiry', - 'maximum_retail_price' => 'maximumRetailPrice', - 'handling_code' => 'handlingCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'lot_number' => 'setLotNumber', - 'expiry' => 'setExpiry', - 'maximum_retail_price' => 'setMaximumRetailPrice', - 'handling_code' => 'setHandlingCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'lot_number' => 'getLotNumber', - 'expiry' => 'getExpiry', - 'maximum_retail_price' => 'getMaximumRetailPrice', - 'handling_code' => 'getHandlingCode' - ]; - - - - const HANDLING_CODE_OVERSIZED = 'Oversized'; - const HANDLING_CODE_FRAGILE = 'Fragile'; - const HANDLING_CODE_FOOD = 'Food'; - const HANDLING_CODE_HANDLE_WITH_CARE = 'HandleWithCare'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getHandlingCodeAllowableValues() - { - $baseVals = [ - self::HANDLING_CODE_OVERSIZED, - self::HANDLING_CODE_FRAGILE, - self::HANDLING_CODE_FOOD, - self::HANDLING_CODE_HANDLE_WITH_CARE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['lot_number'] = $data['lot_number'] ?? null; - $this->container['expiry'] = $data['expiry'] ?? null; - $this->container['maximum_retail_price'] = $data['maximum_retail_price'] ?? null; - $this->container['handling_code'] = $data['handling_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getHandlingCodeAllowableValues(); - if ( - !is_null($this->container['handling_code']) && - !in_array(strtoupper($this->container['handling_code']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'handling_code', must be one of '%s'", - $this->container['handling_code'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets lot_number - * - * @return string|null - */ - public function getLotNumber() - { - return $this->container['lot_number']; - } - - /** - * Sets lot_number - * - * @param string|null $lot_number The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. - * - * @return self - */ - public function setLotNumber($lot_number) - { - $this->container['lot_number'] = $lot_number; - - return $this; - } - /** - * Gets expiry - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Expiry|null - */ - public function getExpiry() - { - return $this->container['expiry']; - } - - /** - * Sets expiry - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Expiry|null $expiry expiry - * - * @return self - */ - public function setExpiry($expiry) - { - $this->container['expiry'] = $expiry; - - return $this; - } - /** - * Gets maximum_retail_price - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Money|null - */ - public function getMaximumRetailPrice() - { - return $this->container['maximum_retail_price']; - } - - /** - * Sets maximum_retail_price - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Money|null $maximum_retail_price maximum_retail_price - * - * @return self - */ - public function setMaximumRetailPrice($maximum_retail_price) - { - $this->container['maximum_retail_price'] = $maximum_retail_price; - - return $this; - } - /** - * Gets handling_code - * - * @return string|null - */ - public function getHandlingCode() - { - return $this->container['handling_code']; - } - - /** - * Sets handling_code - * - * @param string|null $handling_code Identification of the instructions on how specified item/carton/pallet should be handled. - * - * @return self - */ - public function setHandlingCode($handling_code) - { - $allowedValues = $this->getHandlingCodeAllowableValues(); - if (!is_null($handling_code) &&!in_array(strtoupper($handling_code), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'handling_code', must be one of '%s'", - $handling_code, - implode("', '", $allowedValues) - ) - ); - } - $this->container['handling_code'] = $handling_code; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ItemQuantity.php b/lib/Model/VendorShippingV1/ItemQuantity.php deleted file mode 100644 index 53101fd9b..000000000 --- a/lib/Model/VendorShippingV1/ItemQuantity.php +++ /dev/null @@ -1,270 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ItemQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ItemQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string', - 'unit_size' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null, - 'unit_size' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure', - 'unit_size' => 'unitSize' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure', - 'unit_size' => 'setUnitSize' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure', - 'unit_size' => 'getUnitSize' - ]; - - - - const UNIT_OF_MEASURE_CASES = 'Cases'; - const UNIT_OF_MEASURE_EACHES = 'Eaches'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_CASES, - self::UNIT_OF_MEASURE_EACHES, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['unit_size'] = $data['unit_size'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the shipped quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets unit_size - * - * @return int|null - */ - public function getUnitSize() - { - return $this->container['unit_size']; - } - - /** - * Sets unit_size - * - * @param int|null $unit_size The case size, in the event that we ordered using cases. Otherwise, 1. - * - * @return self - */ - public function setUnitSize($unit_size) - { - $this->container['unit_size'] = $unit_size; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/LabelData.php b/lib/Model/VendorShippingV1/LabelData.php deleted file mode 100644 index 458a49cf1..000000000 --- a/lib/Model/VendorShippingV1/LabelData.php +++ /dev/null @@ -1,320 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LabelData extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LabelData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_sequence_number' => 'int', - 'label_format' => 'string', - 'carrier_code' => 'string', - 'tracking_id' => 'string', - 'label' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_sequence_number' => null, - 'label_format' => null, - 'carrier_code' => null, - 'tracking_id' => null, - 'label' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_sequence_number' => 'labelSequenceNumber', - 'label_format' => 'labelFormat', - 'carrier_code' => 'carrierCode', - 'tracking_id' => 'trackingId', - 'label' => 'label' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_sequence_number' => 'setLabelSequenceNumber', - 'label_format' => 'setLabelFormat', - 'carrier_code' => 'setCarrierCode', - 'tracking_id' => 'setTrackingId', - 'label' => 'setLabel' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_sequence_number' => 'getLabelSequenceNumber', - 'label_format' => 'getLabelFormat', - 'carrier_code' => 'getCarrierCode', - 'tracking_id' => 'getTrackingId', - 'label' => 'getLabel' - ]; - - - - const LABEL_FORMAT_PDF = 'PDF'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLabelFormatAllowableValues() - { - $baseVals = [ - self::LABEL_FORMAT_PDF, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_sequence_number'] = $data['label_sequence_number'] ?? null; - $this->container['label_format'] = $data['label_format'] ?? null; - $this->container['carrier_code'] = $data['carrier_code'] ?? null; - $this->container['tracking_id'] = $data['tracking_id'] ?? null; - $this->container['label'] = $data['label'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getLabelFormatAllowableValues(); - if ( - !is_null($this->container['label_format']) && - !in_array(strtoupper($this->container['label_format']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'label_format', must be one of '%s'", - $this->container['label_format'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets label_sequence_number - * - * @return int|null - */ - public function getLabelSequenceNumber() - { - return $this->container['label_sequence_number']; - } - - /** - * Sets label_sequence_number - * - * @param int|null $label_sequence_number Label list sequence number - * - * @return self - */ - public function setLabelSequenceNumber($label_sequence_number) - { - $this->container['label_sequence_number'] = $label_sequence_number; - - return $this; - } - /** - * Gets label_format - * - * @return string|null - */ - public function getLabelFormat() - { - return $this->container['label_format']; - } - - /** - * Sets label_format - * - * @param string|null $label_format Type of the label format like PDF - * - * @return self - */ - public function setLabelFormat($label_format) - { - $allowedValues = $this->getLabelFormatAllowableValues(); - if (!is_null($label_format) &&!in_array(strtoupper($label_format), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'label_format', must be one of '%s'", - $label_format, - implode("', '", $allowedValues) - ) - ); - } - $this->container['label_format'] = $label_format; - - return $this; - } - /** - * Gets carrier_code - * - * @return string|null - */ - public function getCarrierCode() - { - return $this->container['carrier_code']; - } - - /** - * Sets carrier_code - * - * @param string|null $carrier_code Unique identification for the carrier like UPS,DHL,USPS..etc - * - * @return self - */ - public function setCarrierCode($carrier_code) - { - $this->container['carrier_code'] = $carrier_code; - - return $this; - } - /** - * Gets tracking_id - * - * @return string|null - */ - public function getTrackingId() - { - return $this->container['tracking_id']; - } - - /** - * Sets tracking_id - * - * @param string|null $tracking_id Tracking Id for the transportation. - * - * @return self - */ - public function setTrackingId($tracking_id) - { - $this->container['tracking_id'] = $tracking_id; - - return $this; - } - /** - * Gets label - * - * @return string|null - */ - public function getLabel() - { - return $this->container['label']; - } - - /** - * Sets label - * - * @param string|null $label Label created as part of the transportation and it is base64 encoded - * - * @return self - */ - public function setLabel($label) - { - $this->container['label'] = $label; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Location.php b/lib/Model/VendorShippingV1/Location.php deleted file mode 100644 index be4b7e742..000000000 --- a/lib/Model/VendorShippingV1/Location.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Location extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Location'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'type' => 'string', - 'location_code' => 'string', - 'country_code' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'type' => null, - 'location_code' => null, - 'country_code' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'type' => 'type', - 'location_code' => 'locationCode', - 'country_code' => 'countryCode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'type' => 'setType', - 'location_code' => 'setLocationCode', - 'country_code' => 'setCountryCode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'type' => 'getType', - 'location_code' => 'getLocationCode', - 'country_code' => 'getCountryCode' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['location_code'] = $data['location_code'] ?? null; - $this->container['country_code'] = $data['country_code'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type Type of location identification. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - /** - * Gets location_code - * - * @return string|null - */ - public function getLocationCode() - { - return $this->container['location_code']; - } - - /** - * Sets location_code - * - * @param string|null $location_code Location code. - * - * @return self - */ - public function setLocationCode($location_code) - { - $this->container['location_code'] = $location_code; - - return $this; - } - /** - * Gets country_code - * - * @return string|null - */ - public function getCountryCode() - { - return $this->container['country_code']; - } - - /** - * Sets country_code - * - * @param string|null $country_code The two digit country code. In ISO 3166-1 alpha-2 format. - * - * @return self - */ - public function setCountryCode($country_code) - { - $this->container['country_code'] = $country_code; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Money.php b/lib/Model/VendorShippingV1/Money.php deleted file mode 100644 index 33a7b640d..000000000 --- a/lib/Model/VendorShippingV1/Money.php +++ /dev/null @@ -1,198 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Money extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Money'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'currency_code' => 'string', - 'amount' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'currency_code' => null, - 'amount' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'currency_code' => 'currencyCode', - 'amount' => 'amount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'currency_code' => 'setCurrencyCode', - 'amount' => 'setAmount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'currency_code' => 'getCurrencyCode', - 'amount' => 'getAmount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['currency_code'] = $data['currency_code'] ?? null; - $this->container['amount'] = $data['amount'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['currency_code'] === null) { - $invalidProperties[] = "'currency_code' can't be null"; - } - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets currency_code - * - * @return string - */ - public function getCurrencyCode() - { - return $this->container['currency_code']; - } - - /** - * Sets currency_code - * - * @param string $currency_code Three digit currency code in ISO 4217 format. - * - * @return self - */ - public function setCurrencyCode($currency_code) - { - $this->container['currency_code'] = $currency_code; - - return $this; - } - /** - * Gets amount - * - * @return string - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string $amount A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PackageItemDetails.php b/lib/Model/VendorShippingV1/PackageItemDetails.php deleted file mode 100644 index 7bcc40108..000000000 --- a/lib/Model/VendorShippingV1/PackageItemDetails.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackageItemDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackageItemDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'lot_number' => 'string', - 'expiry' => '\SellingPartnerApi\Model\VendorShippingV1\Expiry' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'lot_number' => null, - 'expiry' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'lot_number' => 'lotNumber', - 'expiry' => 'expiry' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'lot_number' => 'setLotNumber', - 'expiry' => 'setExpiry' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'lot_number' => 'getLotNumber', - 'expiry' => 'getExpiry' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['lot_number'] = $data['lot_number'] ?? null; - $this->container['expiry'] = $data['expiry'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets lot_number - * - * @return string|null - */ - public function getLotNumber() - { - return $this->container['lot_number']; - } - - /** - * Sets lot_number - * - * @param string|null $lot_number The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. - * - * @return self - */ - public function setLotNumber($lot_number) - { - $this->container['lot_number'] = $lot_number; - - return $this; - } - /** - * Gets expiry - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Expiry|null - */ - public function getExpiry() - { - return $this->container['expiry']; - } - - /** - * Sets expiry - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Expiry|null $expiry expiry - * - * @return self - */ - public function setExpiry($expiry) - { - $this->container['expiry'] = $expiry; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PackedItems.php b/lib/Model/VendorShippingV1/PackedItems.php deleted file mode 100644 index 8cc59d8f6..000000000 --- a/lib/Model/VendorShippingV1/PackedItems.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackedItems extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PackedItems'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'packed_quantity' => '\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity', - 'item_details' => '\SellingPartnerApi\Model\VendorShippingV1\PackageItemDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'packed_quantity' => null, - 'item_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'packed_quantity' => 'packedQuantity', - 'item_details' => 'itemDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'packed_quantity' => 'setPackedQuantity', - 'item_details' => 'setItemDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'packed_quantity' => 'getPackedQuantity', - 'item_details' => 'getItemDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['packed_quantity'] = $data['packed_quantity'] ?? null; - $this->container['item_details'] = $data['item_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string|null - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string|null $item_sequence_number Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Buyer Standard Identification Number (ASIN) of an item. - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets packed_quantity - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity|null - */ - public function getPackedQuantity() - { - return $this->container['packed_quantity']; - } - - /** - * Sets packed_quantity - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity|null $packed_quantity packed_quantity - * - * @return self - */ - public function setPackedQuantity($packed_quantity) - { - $this->container['packed_quantity'] = $packed_quantity; - - return $this; - } - /** - * Gets item_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PackageItemDetails|null - */ - public function getItemDetails() - { - return $this->container['item_details']; - } - - /** - * Sets item_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PackageItemDetails|null $item_details item_details - * - * @return self - */ - public function setItemDetails($item_details) - { - $this->container['item_details'] = $item_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PackedQuantity.php b/lib/Model/VendorShippingV1/PackedQuantity.php deleted file mode 100644 index 702732f1d..000000000 --- a/lib/Model/VendorShippingV1/PackedQuantity.php +++ /dev/null @@ -1,270 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PackedQuantity extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'packedQuantity'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'amount' => 'int', - 'unit_of_measure' => 'string', - 'unit_size' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'amount' => null, - 'unit_of_measure' => null, - 'unit_size' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'amount' => 'amount', - 'unit_of_measure' => 'unitOfMeasure', - 'unit_size' => 'unitSize' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'amount' => 'setAmount', - 'unit_of_measure' => 'setUnitOfMeasure', - 'unit_size' => 'setUnitSize' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'amount' => 'getAmount', - 'unit_of_measure' => 'getUnitOfMeasure', - 'unit_size' => 'getUnitSize' - ]; - - - - const UNIT_OF_MEASURE_CASES = 'Cases'; - const UNIT_OF_MEASURE_EACHES = 'Eaches'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_CASES, - self::UNIT_OF_MEASURE_EACHES, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['amount'] = $data['amount'] ?? null; - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['unit_size'] = $data['unit_size'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['amount'] === null) { - $invalidProperties[] = "'amount' can't be null"; - } - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets amount - * - * @return int - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param int $amount Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. - * - * @return self - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure Unit of measure for the shipped quantity. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets unit_size - * - * @return int|null - */ - public function getUnitSize() - { - return $this->container['unit_size']; - } - - /** - * Sets unit_size - * - * @param int|null $unit_size The case size, in the event that we ordered using cases. Otherwise, 1. - * - * @return self - */ - public function setUnitSize($unit_size) - { - $this->container['unit_size'] = $unit_size; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Pagination.php b/lib/Model/VendorShippingV1/Pagination.php deleted file mode 100644 index e620a4549..000000000 --- a/lib/Model/VendorShippingV1/Pagination.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pagination extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pagination'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'next_token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'next_token' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'next_token' => 'nextToken' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'next_token' => 'setNextToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'next_token' => 'getNextToken' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['next_token'] = $data['next_token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets next_token - * - * @return string|null - */ - public function getNextToken() - { - return $this->container['next_token']; - } - - /** - * Sets next_token - * - * @param string|null $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. - * - * @return self - */ - public function setNextToken($next_token) - { - $this->container['next_token'] = $next_token; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Pallet.php b/lib/Model/VendorShippingV1/Pallet.php deleted file mode 100644 index 3f95a9bdc..000000000 --- a/lib/Model/VendorShippingV1/Pallet.php +++ /dev/null @@ -1,339 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Pallet extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Pallet'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pallet_identifiers' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[]', - 'tier' => 'int', - 'block' => 'int', - 'dimensions' => '\SellingPartnerApi\Model\VendorShippingV1\Dimensions', - 'weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'carton_reference_details' => '\SellingPartnerApi\Model\VendorShippingV1\CartonReferenceDetails', - 'items' => '\SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pallet_identifiers' => null, - 'tier' => null, - 'block' => null, - 'dimensions' => null, - 'weight' => null, - 'carton_reference_details' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pallet_identifiers' => 'palletIdentifiers', - 'tier' => 'tier', - 'block' => 'block', - 'dimensions' => 'dimensions', - 'weight' => 'weight', - 'carton_reference_details' => 'cartonReferenceDetails', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pallet_identifiers' => 'setPalletIdentifiers', - 'tier' => 'setTier', - 'block' => 'setBlock', - 'dimensions' => 'setDimensions', - 'weight' => 'setWeight', - 'carton_reference_details' => 'setCartonReferenceDetails', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pallet_identifiers' => 'getPalletIdentifiers', - 'tier' => 'getTier', - 'block' => 'getBlock', - 'dimensions' => 'getDimensions', - 'weight' => 'getWeight', - 'carton_reference_details' => 'getCartonReferenceDetails', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pallet_identifiers'] = $data['pallet_identifiers'] ?? null; - $this->container['tier'] = $data['tier'] ?? null; - $this->container['block'] = $data['block'] ?? null; - $this->container['dimensions'] = $data['dimensions'] ?? null; - $this->container['weight'] = $data['weight'] ?? null; - $this->container['carton_reference_details'] = $data['carton_reference_details'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['pallet_identifiers'] === null) { - $invalidProperties[] = "'pallet_identifiers' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets pallet_identifiers - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[] - */ - public function getPalletIdentifiers() - { - return $this->container['pallet_identifiers']; - } - - /** - * Sets pallet_identifiers - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerIdentification[] $pallet_identifiers A list of pallet identifiers. - * - * @return self - */ - public function setPalletIdentifiers($pallet_identifiers) - { - $this->container['pallet_identifiers'] = $pallet_identifiers; - - return $this; - } - /** - * Gets tier - * - * @return int|null - */ - public function getTier() - { - return $this->container['tier']; - } - - /** - * Sets tier - * - * @param int|null $tier Number of layers per pallet. Only applicable to container type Pallet. - * - * @return self - */ - public function setTier($tier) - { - $this->container['tier'] = $tier; - - return $this; - } - /** - * Gets block - * - * @return int|null - */ - public function getBlock() - { - return $this->container['block']; - } - - /** - * Sets block - * - * @param int|null $block Number of cartons per layer on the pallet. Only applicable to container type Pallet. - * - * @return self - */ - public function setBlock($block) - { - $this->container['block'] = $block; - - return $this; - } - /** - * Gets dimensions - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null - */ - public function getDimensions() - { - return $this->container['dimensions']; - } - - /** - * Sets dimensions - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Dimensions|null $dimensions dimensions - * - * @return self - */ - public function setDimensions($dimensions) - { - $this->container['dimensions'] = $dimensions; - - return $this; - } - /** - * Gets weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getWeight() - { - return $this->container['weight']; - } - - /** - * Sets weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $weight weight - * - * @return self - */ - public function setWeight($weight) - { - $this->container['weight'] = $weight; - - return $this; - } - /** - * Gets carton_reference_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\CartonReferenceDetails|null - */ - public function getCartonReferenceDetails() - { - return $this->container['carton_reference_details']; - } - - /** - * Sets carton_reference_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\CartonReferenceDetails|null $carton_reference_details carton_reference_details - * - * @return self - */ - public function setCartonReferenceDetails($carton_reference_details) - { - $this->container['carton_reference_details'] = $carton_reference_details; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]|null - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ContainerItem[]|null $items A list of container item details. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PartyIdentification.php b/lib/Model/VendorShippingV1/PartyIdentification.php deleted file mode 100644 index fbc07eb13..000000000 --- a/lib/Model/VendorShippingV1/PartyIdentification.php +++ /dev/null @@ -1,222 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PartyIdentification extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PartyIdentification'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'address' => '\SellingPartnerApi\Model\VendorShippingV1\Address', - 'party_id' => 'string', - 'tax_registration_details' => '\SellingPartnerApi\Model\VendorShippingV1\TaxRegistrationDetails[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'address' => null, - 'party_id' => null, - 'tax_registration_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'address' => 'address', - 'party_id' => 'partyId', - 'tax_registration_details' => 'taxRegistrationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'address' => 'setAddress', - 'party_id' => 'setPartyId', - 'tax_registration_details' => 'setTaxRegistrationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'address' => 'getAddress', - 'party_id' => 'getPartyId', - 'tax_registration_details' => 'getTaxRegistrationDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['address'] = $data['address'] ?? null; - $this->container['party_id'] = $data['party_id'] ?? null; - $this->container['tax_registration_details'] = $data['tax_registration_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['party_id'] === null) { - $invalidProperties[] = "'party_id' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets address - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Address|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Address|null $address address - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - /** - * Gets party_id - * - * @return string - */ - public function getPartyId() - { - return $this->container['party_id']; - } - - /** - * Sets party_id - * - * @param string $party_id Assigned identification for the party. - * - * @return self - */ - public function setPartyId($party_id) - { - $this->container['party_id'] = $party_id; - - return $this; - } - /** - * Gets tax_registration_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TaxRegistrationDetails[]|null - */ - public function getTaxRegistrationDetails() - { - return $this->container['tax_registration_details']; - } - - /** - * Sets tax_registration_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TaxRegistrationDetails[]|null $tax_registration_details Tax registration details of the entity. - * - * @return self - */ - public function setTaxRegistrationDetails($tax_registration_details) - { - $this->container['tax_registration_details'] = $tax_registration_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PurchaseOrderItemDetails.php b/lib/Model/VendorShippingV1/PurchaseOrderItemDetails.php deleted file mode 100644 index 4637aace8..000000000 --- a/lib/Model/VendorShippingV1/PurchaseOrderItemDetails.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseOrderItemDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseOrderItemDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'maximum_retail_price' => '\SellingPartnerApi\Model\VendorShippingV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'maximum_retail_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'maximum_retail_price' => 'maximumRetailPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'maximum_retail_price' => 'setMaximumRetailPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'maximum_retail_price' => 'getMaximumRetailPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['maximum_retail_price'] = $data['maximum_retail_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets maximum_retail_price - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Money|null - */ - public function getMaximumRetailPrice() - { - return $this->container['maximum_retail_price']; - } - - /** - * Sets maximum_retail_price - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Money|null $maximum_retail_price maximum_retail_price - * - * @return self - */ - public function setMaximumRetailPrice($maximum_retail_price) - { - $this->container['maximum_retail_price'] = $maximum_retail_price; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PurchaseOrderItems.php b/lib/Model/VendorShippingV1/PurchaseOrderItems.php deleted file mode 100644 index 5081c5ebd..000000000 --- a/lib/Model/VendorShippingV1/PurchaseOrderItems.php +++ /dev/null @@ -1,284 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseOrderItems extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'PurchaseOrderItems'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'item_sequence_number' => 'string', - 'buyer_product_identifier' => 'string', - 'vendor_product_identifier' => 'string', - 'shipped_quantity' => '\SellingPartnerApi\Model\VendorShippingV1\ItemQuantity', - 'maximum_retail_price' => '\SellingPartnerApi\Model\VendorShippingV1\Money' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'item_sequence_number' => null, - 'buyer_product_identifier' => null, - 'vendor_product_identifier' => null, - 'shipped_quantity' => null, - 'maximum_retail_price' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'item_sequence_number' => 'itemSequenceNumber', - 'buyer_product_identifier' => 'buyerProductIdentifier', - 'vendor_product_identifier' => 'vendorProductIdentifier', - 'shipped_quantity' => 'shippedQuantity', - 'maximum_retail_price' => 'maximumRetailPrice' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'item_sequence_number' => 'setItemSequenceNumber', - 'buyer_product_identifier' => 'setBuyerProductIdentifier', - 'vendor_product_identifier' => 'setVendorProductIdentifier', - 'shipped_quantity' => 'setShippedQuantity', - 'maximum_retail_price' => 'setMaximumRetailPrice' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'item_sequence_number' => 'getItemSequenceNumber', - 'buyer_product_identifier' => 'getBuyerProductIdentifier', - 'vendor_product_identifier' => 'getVendorProductIdentifier', - 'shipped_quantity' => 'getShippedQuantity', - 'maximum_retail_price' => 'getMaximumRetailPrice' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; - $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; - $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; - $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; - $this->container['maximum_retail_price'] = $data['maximum_retail_price'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['item_sequence_number'] === null) { - $invalidProperties[] = "'item_sequence_number' can't be null"; - } - if ($this->container['shipped_quantity'] === null) { - $invalidProperties[] = "'shipped_quantity' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets item_sequence_number - * - * @return string - */ - public function getItemSequenceNumber() - { - return $this->container['item_sequence_number']; - } - - /** - * Sets item_sequence_number - * - * @param string $item_sequence_number Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. - * - * @return self - */ - public function setItemSequenceNumber($item_sequence_number) - { - $this->container['item_sequence_number'] = $item_sequence_number; - - return $this; - } - /** - * Gets buyer_product_identifier - * - * @return string|null - */ - public function getBuyerProductIdentifier() - { - return $this->container['buyer_product_identifier']; - } - - /** - * Sets buyer_product_identifier - * - * @param string|null $buyer_product_identifier Amazon Standard Identification Number (ASIN) for a SKU - * - * @return self - */ - public function setBuyerProductIdentifier($buyer_product_identifier) - { - $this->container['buyer_product_identifier'] = $buyer_product_identifier; - - return $this; - } - /** - * Gets vendor_product_identifier - * - * @return string|null - */ - public function getVendorProductIdentifier() - { - return $this->container['vendor_product_identifier']; - } - - /** - * Sets vendor_product_identifier - * - * @param string|null $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. - * - * @return self - */ - public function setVendorProductIdentifier($vendor_product_identifier) - { - $this->container['vendor_product_identifier'] = $vendor_product_identifier; - - return $this; - } - /** - * Gets shipped_quantity - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity - */ - public function getShippedQuantity() - { - return $this->container['shipped_quantity']; - } - - /** - * Sets shipped_quantity - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ItemQuantity $shipped_quantity shipped_quantity - * - * @return self - */ - public function setShippedQuantity($shipped_quantity) - { - $this->container['shipped_quantity'] = $shipped_quantity; - - return $this; - } - /** - * Gets maximum_retail_price - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Money|null - */ - public function getMaximumRetailPrice() - { - return $this->container['maximum_retail_price']; - } - - /** - * Sets maximum_retail_price - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Money|null $maximum_retail_price maximum_retail_price - * - * @return self - */ - public function setMaximumRetailPrice($maximum_retail_price) - { - $this->container['maximum_retail_price'] = $maximum_retail_price; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/PurchaseOrders.php b/lib/Model/VendorShippingV1/PurchaseOrders.php deleted file mode 100644 index 4a25e9858..000000000 --- a/lib/Model/VendorShippingV1/PurchaseOrders.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class PurchaseOrders extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'purchaseOrders'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'purchase_order_number' => 'string', - 'purchase_order_date' => 'string', - 'ship_window' => 'string', - 'items' => '\SellingPartnerApi\Model\VendorShippingV1\PurchaseOrderItems[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'purchase_order_number' => null, - 'purchase_order_date' => null, - 'ship_window' => null, - 'items' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'purchase_order_number' => 'purchaseOrderNumber', - 'purchase_order_date' => 'purchaseOrderDate', - 'ship_window' => 'shipWindow', - 'items' => 'items' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'purchase_order_number' => 'setPurchaseOrderNumber', - 'purchase_order_date' => 'setPurchaseOrderDate', - 'ship_window' => 'setShipWindow', - 'items' => 'setItems' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'purchase_order_number' => 'getPurchaseOrderNumber', - 'purchase_order_date' => 'getPurchaseOrderDate', - 'ship_window' => 'getShipWindow', - 'items' => 'getItems' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; - $this->container['purchase_order_date'] = $data['purchase_order_date'] ?? null; - $this->container['ship_window'] = $data['ship_window'] ?? null; - $this->container['items'] = $data['items'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets purchase_order_number - * - * @return string|null - */ - public function getPurchaseOrderNumber() - { - return $this->container['purchase_order_number']; - } - - /** - * Sets purchase_order_number - * - * @param string|null $purchase_order_number Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. - * - * @return self - */ - public function setPurchaseOrderNumber($purchase_order_number) - { - $this->container['purchase_order_number'] = $purchase_order_number; - - return $this; - } - /** - * Gets purchase_order_date - * - * @return string|null - */ - public function getPurchaseOrderDate() - { - return $this->container['purchase_order_date']; - } - - /** - * Sets purchase_order_date - * - * @param string|null $purchase_order_date Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. - * - * @return self - */ - public function setPurchaseOrderDate($purchase_order_date) - { - $this->container['purchase_order_date'] = $purchase_order_date; - - return $this; - } - /** - * Gets ship_window - * - * @return string|null - */ - public function getShipWindow() - { - return $this->container['ship_window']; - } - - /** - * Sets ship_window - * - * @param string|null $ship_window Date range in which shipment is expected for these purchase orders. - * - * @return self - */ - public function setShipWindow($ship_window) - { - $this->container['ship_window'] = $ship_window; - - return $this; - } - /** - * Gets items - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PurchaseOrderItems[]|null - */ - public function getItems() - { - return $this->container['items']; - } - - /** - * Sets items - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PurchaseOrderItems[]|null $items A list of the items that are associated to the PO in this transport and their associated details. - * - * @return self - */ - public function setItems($items) - { - $this->container['items'] = $items; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Route.php b/lib/Model/VendorShippingV1/Route.php deleted file mode 100644 index 44903f7f3..000000000 --- a/lib/Model/VendorShippingV1/Route.php +++ /dev/null @@ -1,165 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Route extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Route'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'stops' => '\SellingPartnerApi\Model\VendorShippingV1\Stop[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'stops' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'stops' => 'stops' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'stops' => 'setStops' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'stops' => 'getStops' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['stops'] = $data['stops'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['stops'] === null) { - $invalidProperties[] = "'stops' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets stops - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Stop[] - */ - public function getStops() - { - return $this->container['stops']; - } - - /** - * Sets stops - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Stop[] $stops stops - * - * @return self - */ - public function setStops($stops) - { - $this->container['stops'] = $stops; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Shipment.php b/lib/Model/VendorShippingV1/Shipment.php deleted file mode 100644 index ee66358a7..000000000 --- a/lib/Model/VendorShippingV1/Shipment.php +++ /dev/null @@ -1,866 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Shipment extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Shipment'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'vendor_shipment_identifier' => 'string', - 'transaction_type' => 'string', - 'buyer_reference_number' => 'string', - 'transaction_date' => 'string', - 'current_shipment_status' => 'string', - 'currentshipment_status_date' => 'string', - 'shipment_status_details' => '\SellingPartnerApi\Model\VendorShippingV1\ShipmentStatusDetails[]', - 'shipment_create_date' => 'string', - 'shipment_confirm_date' => 'string', - 'package_label_create_date' => 'string', - 'shipment_freight_term' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'shipment_measurements' => '\SellingPartnerApi\Model\VendorShippingV1\TransportShipmentMeasurements', - 'collect_freight_pickup_details' => '\SellingPartnerApi\Model\VendorShippingV1\CollectFreightPickupDetails', - 'purchase_orders' => '\SellingPartnerApi\Model\VendorShippingV1\PurchaseOrders[]', - 'import_details' => '\SellingPartnerApi\Model\VendorShippingV1\ImportDetails', - 'containers' => '\SellingPartnerApi\Model\VendorShippingV1\Containers[]', - 'transportation_details' => '\SellingPartnerApi\Model\VendorShippingV1\TransportationDetails' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'vendor_shipment_identifier' => null, - 'transaction_type' => null, - 'buyer_reference_number' => null, - 'transaction_date' => null, - 'current_shipment_status' => null, - 'currentshipment_status_date' => null, - 'shipment_status_details' => null, - 'shipment_create_date' => null, - 'shipment_confirm_date' => null, - 'package_label_create_date' => null, - 'shipment_freight_term' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'ship_to_party' => null, - 'shipment_measurements' => null, - 'collect_freight_pickup_details' => null, - 'purchase_orders' => null, - 'import_details' => null, - 'containers' => null, - 'transportation_details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'vendor_shipment_identifier' => 'vendorShipmentIdentifier', - 'transaction_type' => 'transactionType', - 'buyer_reference_number' => 'buyerReferenceNumber', - 'transaction_date' => 'transactionDate', - 'current_shipment_status' => 'currentShipmentStatus', - 'currentshipment_status_date' => 'currentshipmentStatusDate', - 'shipment_status_details' => 'shipmentStatusDetails', - 'shipment_create_date' => 'shipmentCreateDate', - 'shipment_confirm_date' => 'shipmentConfirmDate', - 'package_label_create_date' => 'packageLabelCreateDate', - 'shipment_freight_term' => 'shipmentFreightTerm', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'ship_to_party' => 'shipToParty', - 'shipment_measurements' => 'shipmentMeasurements', - 'collect_freight_pickup_details' => 'collectFreightPickupDetails', - 'purchase_orders' => 'purchaseOrders', - 'import_details' => 'importDetails', - 'containers' => 'containers', - 'transportation_details' => 'transportationDetails' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'vendor_shipment_identifier' => 'setVendorShipmentIdentifier', - 'transaction_type' => 'setTransactionType', - 'buyer_reference_number' => 'setBuyerReferenceNumber', - 'transaction_date' => 'setTransactionDate', - 'current_shipment_status' => 'setCurrentShipmentStatus', - 'currentshipment_status_date' => 'setCurrentshipmentStatusDate', - 'shipment_status_details' => 'setShipmentStatusDetails', - 'shipment_create_date' => 'setShipmentCreateDate', - 'shipment_confirm_date' => 'setShipmentConfirmDate', - 'package_label_create_date' => 'setPackageLabelCreateDate', - 'shipment_freight_term' => 'setShipmentFreightTerm', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'ship_to_party' => 'setShipToParty', - 'shipment_measurements' => 'setShipmentMeasurements', - 'collect_freight_pickup_details' => 'setCollectFreightPickupDetails', - 'purchase_orders' => 'setPurchaseOrders', - 'import_details' => 'setImportDetails', - 'containers' => 'setContainers', - 'transportation_details' => 'setTransportationDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'vendor_shipment_identifier' => 'getVendorShipmentIdentifier', - 'transaction_type' => 'getTransactionType', - 'buyer_reference_number' => 'getBuyerReferenceNumber', - 'transaction_date' => 'getTransactionDate', - 'current_shipment_status' => 'getCurrentShipmentStatus', - 'currentshipment_status_date' => 'getCurrentshipmentStatusDate', - 'shipment_status_details' => 'getShipmentStatusDetails', - 'shipment_create_date' => 'getShipmentCreateDate', - 'shipment_confirm_date' => 'getShipmentConfirmDate', - 'package_label_create_date' => 'getPackageLabelCreateDate', - 'shipment_freight_term' => 'getShipmentFreightTerm', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'ship_to_party' => 'getShipToParty', - 'shipment_measurements' => 'getShipmentMeasurements', - 'collect_freight_pickup_details' => 'getCollectFreightPickupDetails', - 'purchase_orders' => 'getPurchaseOrders', - 'import_details' => 'getImportDetails', - 'containers' => 'getContainers', - 'transportation_details' => 'getTransportationDetails' - ]; - - - - const TRANSACTION_TYPE__NEW = 'New'; - const TRANSACTION_TYPE_CANCEL = 'Cancel'; - - - const CURRENT_SHIPMENT_STATUS_CREATED = 'Created'; - const CURRENT_SHIPMENT_STATUS_TRANSPORTATION_REQUESTED = 'TransportationRequested'; - const CURRENT_SHIPMENT_STATUS_CARRIER_ASSIGNED = 'CarrierAssigned'; - const CURRENT_SHIPMENT_STATUS_SHIPPED = 'Shipped'; - - - const SHIPMENT_FREIGHT_TERM_COLLECT = 'Collect'; - const SHIPMENT_FREIGHT_TERM_PREPAID = 'Prepaid'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTransactionTypeAllowableValues() - { - $baseVals = [ - self::TRANSACTION_TYPE__NEW, - self::TRANSACTION_TYPE_CANCEL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCurrentShipmentStatusAllowableValues() - { - $baseVals = [ - self::CURRENT_SHIPMENT_STATUS_CREATED, - self::CURRENT_SHIPMENT_STATUS_TRANSPORTATION_REQUESTED, - self::CURRENT_SHIPMENT_STATUS_CARRIER_ASSIGNED, - self::CURRENT_SHIPMENT_STATUS_SHIPPED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentFreightTermAllowableValues() - { - $baseVals = [ - self::SHIPMENT_FREIGHT_TERM_COLLECT, - self::SHIPMENT_FREIGHT_TERM_PREPAID, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['vendor_shipment_identifier'] = $data['vendor_shipment_identifier'] ?? null; - $this->container['transaction_type'] = $data['transaction_type'] ?? null; - $this->container['buyer_reference_number'] = $data['buyer_reference_number'] ?? null; - $this->container['transaction_date'] = $data['transaction_date'] ?? null; - $this->container['current_shipment_status'] = $data['current_shipment_status'] ?? null; - $this->container['currentshipment_status_date'] = $data['currentshipment_status_date'] ?? null; - $this->container['shipment_status_details'] = $data['shipment_status_details'] ?? null; - $this->container['shipment_create_date'] = $data['shipment_create_date'] ?? null; - $this->container['shipment_confirm_date'] = $data['shipment_confirm_date'] ?? null; - $this->container['package_label_create_date'] = $data['package_label_create_date'] ?? null; - $this->container['shipment_freight_term'] = $data['shipment_freight_term'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['shipment_measurements'] = $data['shipment_measurements'] ?? null; - $this->container['collect_freight_pickup_details'] = $data['collect_freight_pickup_details'] ?? null; - $this->container['purchase_orders'] = $data['purchase_orders'] ?? null; - $this->container['import_details'] = $data['import_details'] ?? null; - $this->container['containers'] = $data['containers'] ?? null; - $this->container['transportation_details'] = $data['transportation_details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['vendor_shipment_identifier'] === null) { - $invalidProperties[] = "'vendor_shipment_identifier' can't be null"; - } - if ($this->container['transaction_type'] === null) { - $invalidProperties[] = "'transaction_type' can't be null"; - } - $allowedValues = $this->getTransactionTypeAllowableValues(); - if ( - !is_null($this->container['transaction_type']) && - !in_array(strtoupper($this->container['transaction_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'transaction_type', must be one of '%s'", - $this->container['transaction_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['transaction_date'] === null) { - $invalidProperties[] = "'transaction_date' can't be null"; - } - $allowedValues = $this->getCurrentShipmentStatusAllowableValues(); - if ( - !is_null($this->container['current_shipment_status']) && - !in_array(strtoupper($this->container['current_shipment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'current_shipment_status', must be one of '%s'", - $this->container['current_shipment_status'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getShipmentFreightTermAllowableValues(); - if ( - !is_null($this->container['shipment_freight_term']) && - !in_array(strtoupper($this->container['shipment_freight_term']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_freight_term', must be one of '%s'", - $this->container['shipment_freight_term'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['ship_to_party'] === null) { - $invalidProperties[] = "'ship_to_party' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets vendor_shipment_identifier - * - * @return string - */ - public function getVendorShipmentIdentifier() - { - return $this->container['vendor_shipment_identifier']; - } - - /** - * Sets vendor_shipment_identifier - * - * @param string $vendor_shipment_identifier Unique Transportation ID created by Vendor (Should not be used over the last 365 days). - * - * @return self - */ - public function setVendorShipmentIdentifier($vendor_shipment_identifier) - { - $this->container['vendor_shipment_identifier'] = $vendor_shipment_identifier; - - return $this; - } - /** - * Gets transaction_type - * - * @return string - */ - public function getTransactionType() - { - return $this->container['transaction_type']; - } - - /** - * Sets transaction_type - * - * @param string $transaction_type Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. - * - * @return self - */ - public function setTransactionType($transaction_type) - { - $allowedValues = $this->getTransactionTypeAllowableValues(); - if (!in_array(strtoupper($transaction_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'transaction_type', must be one of '%s'", - $transaction_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['transaction_type'] = $transaction_type; - - return $this; - } - /** - * Gets buyer_reference_number - * - * @return string|null - */ - public function getBuyerReferenceNumber() - { - return $this->container['buyer_reference_number']; - } - - /** - * Sets buyer_reference_number - * - * @param string|null $buyer_reference_number The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. - * - * @return self - */ - public function setBuyerReferenceNumber($buyer_reference_number) - { - $this->container['buyer_reference_number'] = $buyer_reference_number; - - return $this; - } - /** - * Gets transaction_date - * - * @return string - */ - public function getTransactionDate() - { - return $this->container['transaction_date']; - } - - /** - * Sets transaction_date - * - * @param string $transaction_date Date on which the transportation request was submitted. - * - * @return self - */ - public function setTransactionDate($transaction_date) - { - $this->container['transaction_date'] = $transaction_date; - - return $this; - } - /** - * Gets current_shipment_status - * - * @return string|null - */ - public function getCurrentShipmentStatus() - { - return $this->container['current_shipment_status']; - } - - /** - * Sets current_shipment_status - * - * @param string|null $current_shipment_status Indicates the current shipment status. - * - * @return self - */ - public function setCurrentShipmentStatus($current_shipment_status) - { - $allowedValues = $this->getCurrentShipmentStatusAllowableValues(); - if (!is_null($current_shipment_status) &&!in_array(strtoupper($current_shipment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'current_shipment_status', must be one of '%s'", - $current_shipment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['current_shipment_status'] = $current_shipment_status; - - return $this; - } - /** - * Gets currentshipment_status_date - * - * @return string|null - */ - public function getCurrentshipmentStatusDate() - { - return $this->container['currentshipment_status_date']; - } - - /** - * Sets currentshipment_status_date - * - * @param string|null $currentshipment_status_date Date and time when the last status was updated. - * - * @return self - */ - public function setCurrentshipmentStatusDate($currentshipment_status_date) - { - $this->container['currentshipment_status_date'] = $currentshipment_status_date; - - return $this; - } - /** - * Gets shipment_status_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ShipmentStatusDetails[]|null - */ - public function getShipmentStatusDetails() - { - return $this->container['shipment_status_details']; - } - - /** - * Sets shipment_status_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ShipmentStatusDetails[]|null $shipment_status_details Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response. - * - * @return self - */ - public function setShipmentStatusDetails($shipment_status_details) - { - $this->container['shipment_status_details'] = $shipment_status_details; - - return $this; - } - /** - * Gets shipment_create_date - * - * @return string|null - */ - public function getShipmentCreateDate() - { - return $this->container['shipment_create_date']; - } - - /** - * Sets shipment_create_date - * - * @param string|null $shipment_create_date The date and time of the shipment request created by vendor. - * - * @return self - */ - public function setShipmentCreateDate($shipment_create_date) - { - $this->container['shipment_create_date'] = $shipment_create_date; - - return $this; - } - /** - * Gets shipment_confirm_date - * - * @return string|null - */ - public function getShipmentConfirmDate() - { - return $this->container['shipment_confirm_date']; - } - - /** - * Sets shipment_confirm_date - * - * @param string|null $shipment_confirm_date The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. - * - * @return self - */ - public function setShipmentConfirmDate($shipment_confirm_date) - { - $this->container['shipment_confirm_date'] = $shipment_confirm_date; - - return $this; - } - /** - * Gets package_label_create_date - * - * @return string|null - */ - public function getPackageLabelCreateDate() - { - return $this->container['package_label_create_date']; - } - - /** - * Sets package_label_create_date - * - * @param string|null $package_label_create_date The date and time of the package label created for the shipment by buyer. - * - * @return self - */ - public function setPackageLabelCreateDate($package_label_create_date) - { - $this->container['package_label_create_date'] = $package_label_create_date; - - return $this; - } - /** - * Gets shipment_freight_term - * - * @return string|null - */ - public function getShipmentFreightTerm() - { - return $this->container['shipment_freight_term']; - } - - /** - * Sets shipment_freight_term - * - * @param string|null $shipment_freight_term Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. - * - * @return self - */ - public function setShipmentFreightTerm($shipment_freight_term) - { - $allowedValues = $this->getShipmentFreightTermAllowableValues(); - if (!is_null($shipment_freight_term) &&!in_array(strtoupper($shipment_freight_term), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_freight_term', must be one of '%s'", - $shipment_freight_term, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_freight_term'] = $shipment_freight_term; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets shipment_measurements - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransportShipmentMeasurements|null - */ - public function getShipmentMeasurements() - { - return $this->container['shipment_measurements']; - } - - /** - * Sets shipment_measurements - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransportShipmentMeasurements|null $shipment_measurements shipment_measurements - * - * @return self - */ - public function setShipmentMeasurements($shipment_measurements) - { - $this->container['shipment_measurements'] = $shipment_measurements; - - return $this; - } - /** - * Gets collect_freight_pickup_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\CollectFreightPickupDetails|null - */ - public function getCollectFreightPickupDetails() - { - return $this->container['collect_freight_pickup_details']; - } - - /** - * Sets collect_freight_pickup_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\CollectFreightPickupDetails|null $collect_freight_pickup_details collect_freight_pickup_details - * - * @return self - */ - public function setCollectFreightPickupDetails($collect_freight_pickup_details) - { - $this->container['collect_freight_pickup_details'] = $collect_freight_pickup_details; - - return $this; - } - /** - * Gets purchase_orders - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PurchaseOrders[]|null - */ - public function getPurchaseOrders() - { - return $this->container['purchase_orders']; - } - - /** - * Sets purchase_orders - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PurchaseOrders[]|null $purchase_orders Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) - * - * @return self - */ - public function setPurchaseOrders($purchase_orders) - { - $this->container['purchase_orders'] = $purchase_orders; - - return $this; - } - /** - * Gets import_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ImportDetails|null - */ - public function getImportDetails() - { - return $this->container['import_details']; - } - - /** - * Sets import_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ImportDetails|null $import_details import_details - * - * @return self - */ - public function setImportDetails($import_details) - { - $this->container['import_details'] = $import_details; - - return $this; - } - /** - * Gets containers - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Containers[]|null - */ - public function getContainers() - { - return $this->container['containers']; - } - - /** - * Sets containers - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Containers[]|null $containers A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. - * - * @return self - */ - public function setContainers($containers) - { - $this->container['containers'] = $containers; - - return $this; - } - /** - * Gets transportation_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransportationDetails|null - */ - public function getTransportationDetails() - { - return $this->container['transportation_details']; - } - - /** - * Sets transportation_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransportationDetails|null $transportation_details transportation_details - * - * @return self - */ - public function setTransportationDetails($transportation_details) - { - $this->container['transportation_details'] = $transportation_details; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ShipmentConfirmation.php b/lib/Model/VendorShippingV1/ShipmentConfirmation.php deleted file mode 100644 index 194e44fbd..000000000 --- a/lib/Model/VendorShippingV1/ShipmentConfirmation.php +++ /dev/null @@ -1,790 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentConfirmation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentConfirmation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_identifier' => 'string', - 'shipment_confirmation_type' => 'string', - 'shipment_type' => 'string', - 'shipment_structure' => 'string', - 'transportation_details' => '\SellingPartnerApi\Model\VendorShippingV1\TransportationDetails', - 'amazon_reference_number' => 'string', - 'shipment_confirmation_date' => 'string', - 'shipped_date' => 'string', - 'estimated_delivery_date' => 'string', - 'selling_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'shipment_measurements' => '\SellingPartnerApi\Model\VendorShippingV1\ShipmentMeasurements', - 'import_details' => '\SellingPartnerApi\Model\VendorShippingV1\ImportDetails', - 'shipped_items' => '\SellingPartnerApi\Model\VendorShippingV1\Item[]', - 'cartons' => '\SellingPartnerApi\Model\VendorShippingV1\Carton[]', - 'pallets' => '\SellingPartnerApi\Model\VendorShippingV1\Pallet[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_identifier' => null, - 'shipment_confirmation_type' => null, - 'shipment_type' => null, - 'shipment_structure' => null, - 'transportation_details' => null, - 'amazon_reference_number' => null, - 'shipment_confirmation_date' => null, - 'shipped_date' => null, - 'estimated_delivery_date' => null, - 'selling_party' => null, - 'ship_from_party' => null, - 'ship_to_party' => null, - 'shipment_measurements' => null, - 'import_details' => null, - 'shipped_items' => null, - 'cartons' => null, - 'pallets' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_identifier' => 'shipmentIdentifier', - 'shipment_confirmation_type' => 'shipmentConfirmationType', - 'shipment_type' => 'shipmentType', - 'shipment_structure' => 'shipmentStructure', - 'transportation_details' => 'transportationDetails', - 'amazon_reference_number' => 'amazonReferenceNumber', - 'shipment_confirmation_date' => 'shipmentConfirmationDate', - 'shipped_date' => 'shippedDate', - 'estimated_delivery_date' => 'estimatedDeliveryDate', - 'selling_party' => 'sellingParty', - 'ship_from_party' => 'shipFromParty', - 'ship_to_party' => 'shipToParty', - 'shipment_measurements' => 'shipmentMeasurements', - 'import_details' => 'importDetails', - 'shipped_items' => 'shippedItems', - 'cartons' => 'cartons', - 'pallets' => 'pallets' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_identifier' => 'setShipmentIdentifier', - 'shipment_confirmation_type' => 'setShipmentConfirmationType', - 'shipment_type' => 'setShipmentType', - 'shipment_structure' => 'setShipmentStructure', - 'transportation_details' => 'setTransportationDetails', - 'amazon_reference_number' => 'setAmazonReferenceNumber', - 'shipment_confirmation_date' => 'setShipmentConfirmationDate', - 'shipped_date' => 'setShippedDate', - 'estimated_delivery_date' => 'setEstimatedDeliveryDate', - 'selling_party' => 'setSellingParty', - 'ship_from_party' => 'setShipFromParty', - 'ship_to_party' => 'setShipToParty', - 'shipment_measurements' => 'setShipmentMeasurements', - 'import_details' => 'setImportDetails', - 'shipped_items' => 'setShippedItems', - 'cartons' => 'setCartons', - 'pallets' => 'setPallets' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_identifier' => 'getShipmentIdentifier', - 'shipment_confirmation_type' => 'getShipmentConfirmationType', - 'shipment_type' => 'getShipmentType', - 'shipment_structure' => 'getShipmentStructure', - 'transportation_details' => 'getTransportationDetails', - 'amazon_reference_number' => 'getAmazonReferenceNumber', - 'shipment_confirmation_date' => 'getShipmentConfirmationDate', - 'shipped_date' => 'getShippedDate', - 'estimated_delivery_date' => 'getEstimatedDeliveryDate', - 'selling_party' => 'getSellingParty', - 'ship_from_party' => 'getShipFromParty', - 'ship_to_party' => 'getShipToParty', - 'shipment_measurements' => 'getShipmentMeasurements', - 'import_details' => 'getImportDetails', - 'shipped_items' => 'getShippedItems', - 'cartons' => 'getCartons', - 'pallets' => 'getPallets' - ]; - - - - const SHIPMENT_CONFIRMATION_TYPE_ORIGINAL = 'Original'; - const SHIPMENT_CONFIRMATION_TYPE_REPLACE = 'Replace'; - - - const SHIPMENT_TYPE_TRUCK_LOAD = 'TruckLoad'; - const SHIPMENT_TYPE_LESS_THAN_TRUCK_LOAD = 'LessThanTruckLoad'; - const SHIPMENT_TYPE_SMALL_PARCEL = 'SmallParcel'; - - - const SHIPMENT_STRUCTURE_PALLETIZED_ASSORTMENT_CASE = 'PalletizedAssortmentCase'; - const SHIPMENT_STRUCTURE_LOOSE_ASSORTMENT_CASE = 'LooseAssortmentCase'; - const SHIPMENT_STRUCTURE_PALLET_OF_ITEMS = 'PalletOfItems'; - const SHIPMENT_STRUCTURE_PALLETIZED_STANDARD_CASE = 'PalletizedStandardCase'; - const SHIPMENT_STRUCTURE_LOOSE_STANDARD_CASE = 'LooseStandardCase'; - const SHIPMENT_STRUCTURE_MASTER_PALLET = 'MasterPallet'; - const SHIPMENT_STRUCTURE_MASTER_CASE = 'MasterCase'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentConfirmationTypeAllowableValues() - { - $baseVals = [ - self::SHIPMENT_CONFIRMATION_TYPE_ORIGINAL, - self::SHIPMENT_CONFIRMATION_TYPE_REPLACE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentTypeAllowableValues() - { - $baseVals = [ - self::SHIPMENT_TYPE_TRUCK_LOAD, - self::SHIPMENT_TYPE_LESS_THAN_TRUCK_LOAD, - self::SHIPMENT_TYPE_SMALL_PARCEL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentStructureAllowableValues() - { - $baseVals = [ - self::SHIPMENT_STRUCTURE_PALLETIZED_ASSORTMENT_CASE, - self::SHIPMENT_STRUCTURE_LOOSE_ASSORTMENT_CASE, - self::SHIPMENT_STRUCTURE_PALLET_OF_ITEMS, - self::SHIPMENT_STRUCTURE_PALLETIZED_STANDARD_CASE, - self::SHIPMENT_STRUCTURE_LOOSE_STANDARD_CASE, - self::SHIPMENT_STRUCTURE_MASTER_PALLET, - self::SHIPMENT_STRUCTURE_MASTER_CASE, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_identifier'] = $data['shipment_identifier'] ?? null; - $this->container['shipment_confirmation_type'] = $data['shipment_confirmation_type'] ?? null; - $this->container['shipment_type'] = $data['shipment_type'] ?? null; - $this->container['shipment_structure'] = $data['shipment_structure'] ?? null; - $this->container['transportation_details'] = $data['transportation_details'] ?? null; - $this->container['amazon_reference_number'] = $data['amazon_reference_number'] ?? null; - $this->container['shipment_confirmation_date'] = $data['shipment_confirmation_date'] ?? null; - $this->container['shipped_date'] = $data['shipped_date'] ?? null; - $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['shipment_measurements'] = $data['shipment_measurements'] ?? null; - $this->container['import_details'] = $data['import_details'] ?? null; - $this->container['shipped_items'] = $data['shipped_items'] ?? null; - $this->container['cartons'] = $data['cartons'] ?? null; - $this->container['pallets'] = $data['pallets'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['shipment_identifier'] === null) { - $invalidProperties[] = "'shipment_identifier' can't be null"; - } - if ($this->container['shipment_confirmation_type'] === null) { - $invalidProperties[] = "'shipment_confirmation_type' can't be null"; - } - $allowedValues = $this->getShipmentConfirmationTypeAllowableValues(); - if ( - !is_null($this->container['shipment_confirmation_type']) && - !in_array(strtoupper($this->container['shipment_confirmation_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_confirmation_type', must be one of '%s'", - $this->container['shipment_confirmation_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getShipmentTypeAllowableValues(); - if ( - !is_null($this->container['shipment_type']) && - !in_array(strtoupper($this->container['shipment_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_type', must be one of '%s'", - $this->container['shipment_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getShipmentStructureAllowableValues(); - if ( - !is_null($this->container['shipment_structure']) && - !in_array(strtoupper($this->container['shipment_structure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_structure', must be one of '%s'", - $this->container['shipment_structure'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['shipment_confirmation_date'] === null) { - $invalidProperties[] = "'shipment_confirmation_date' can't be null"; - } - if ($this->container['selling_party'] === null) { - $invalidProperties[] = "'selling_party' can't be null"; - } - if ($this->container['ship_from_party'] === null) { - $invalidProperties[] = "'ship_from_party' can't be null"; - } - if ($this->container['ship_to_party'] === null) { - $invalidProperties[] = "'ship_to_party' can't be null"; - } - if ($this->container['shipped_items'] === null) { - $invalidProperties[] = "'shipped_items' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets shipment_identifier - * - * @return string - */ - public function getShipmentIdentifier() - { - return $this->container['shipment_identifier']; - } - - /** - * Sets shipment_identifier - * - * @param string $shipment_identifier Unique shipment ID (not used over the last 365 days). - * - * @return self - */ - public function setShipmentIdentifier($shipment_identifier) - { - $this->container['shipment_identifier'] = $shipment_identifier; - - return $this; - } - /** - * Gets shipment_confirmation_type - * - * @return string - */ - public function getShipmentConfirmationType() - { - return $this->container['shipment_confirmation_type']; - } - - /** - * Sets shipment_confirmation_type - * - * @param string $shipment_confirmation_type Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation. If replacing an existing shipment confirmation, be sure to provide the identical shipmentIdentifier and sellingParty information as in the previous confirmation. - * - * @return self - */ - public function setShipmentConfirmationType($shipment_confirmation_type) - { - $allowedValues = $this->getShipmentConfirmationTypeAllowableValues(); - if (!in_array(strtoupper($shipment_confirmation_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_confirmation_type', must be one of '%s'", - $shipment_confirmation_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_confirmation_type'] = $shipment_confirmation_type; - - return $this; - } - /** - * Gets shipment_type - * - * @return string|null - */ - public function getShipmentType() - { - return $this->container['shipment_type']; - } - - /** - * Sets shipment_type - * - * @param string|null $shipment_type The type of shipment. - * - * @return self - */ - public function setShipmentType($shipment_type) - { - $allowedValues = $this->getShipmentTypeAllowableValues(); - if (!is_null($shipment_type) &&!in_array(strtoupper($shipment_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_type', must be one of '%s'", - $shipment_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_type'] = $shipment_type; - - return $this; - } - /** - * Gets shipment_structure - * - * @return string|null - */ - public function getShipmentStructure() - { - return $this->container['shipment_structure']; - } - - /** - * Sets shipment_structure - * - * @param string|null $shipment_structure Shipment hierarchical structure. - * - * @return self - */ - public function setShipmentStructure($shipment_structure) - { - $allowedValues = $this->getShipmentStructureAllowableValues(); - if (!is_null($shipment_structure) &&!in_array(strtoupper($shipment_structure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_structure', must be one of '%s'", - $shipment_structure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_structure'] = $shipment_structure; - - return $this; - } - /** - * Gets transportation_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransportationDetails|null - */ - public function getTransportationDetails() - { - return $this->container['transportation_details']; - } - - /** - * Sets transportation_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransportationDetails|null $transportation_details transportation_details - * - * @return self - */ - public function setTransportationDetails($transportation_details) - { - $this->container['transportation_details'] = $transportation_details; - - return $this; - } - /** - * Gets amazon_reference_number - * - * @return string|null - */ - public function getAmazonReferenceNumber() - { - return $this->container['amazon_reference_number']; - } - - /** - * Sets amazon_reference_number - * - * @param string|null $amazon_reference_number The Amazon Reference Number is a unique identifier generated by Amazon for all Collect/WePay shipments when you submit a routing request. This field is mandatory for Collect/WePay shipments. - * - * @return self - */ - public function setAmazonReferenceNumber($amazon_reference_number) - { - $this->container['amazon_reference_number'] = $amazon_reference_number; - - return $this; - } - /** - * Gets shipment_confirmation_date - * - * @return string - */ - public function getShipmentConfirmationDate() - { - return $this->container['shipment_confirmation_date']; - } - - /** - * Sets shipment_confirmation_date - * - * @param string $shipment_confirmation_date Date on which the shipment confirmation was submitted. - * - * @return self - */ - public function setShipmentConfirmationDate($shipment_confirmation_date) - { - $this->container['shipment_confirmation_date'] = $shipment_confirmation_date; - - return $this; - } - /** - * Gets shipped_date - * - * @return string|null - */ - public function getShippedDate() - { - return $this->container['shipped_date']; - } - - /** - * Sets shipped_date - * - * @param string|null $shipped_date The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. - * - * @return self - */ - public function setShippedDate($shipped_date) - { - $this->container['shipped_date'] = $shipped_date; - - return $this; - } - /** - * Gets estimated_delivery_date - * - * @return string|null - */ - public function getEstimatedDeliveryDate() - { - return $this->container['estimated_delivery_date']; - } - - /** - * Sets estimated_delivery_date - * - * @param string|null $estimated_delivery_date The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. - * - * @return self - */ - public function setEstimatedDeliveryDate($estimated_delivery_date) - { - $this->container['estimated_delivery_date'] = $estimated_delivery_date; - - return $this; - } - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets shipment_measurements - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ShipmentMeasurements|null - */ - public function getShipmentMeasurements() - { - return $this->container['shipment_measurements']; - } - - /** - * Sets shipment_measurements - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ShipmentMeasurements|null $shipment_measurements shipment_measurements - * - * @return self - */ - public function setShipmentMeasurements($shipment_measurements) - { - $this->container['shipment_measurements'] = $shipment_measurements; - - return $this; - } - /** - * Gets import_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ImportDetails|null - */ - public function getImportDetails() - { - return $this->container['import_details']; - } - - /** - * Sets import_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ImportDetails|null $import_details import_details - * - * @return self - */ - public function setImportDetails($import_details) - { - $this->container['import_details'] = $import_details; - - return $this; - } - /** - * Gets shipped_items - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Item[] - */ - public function getShippedItems() - { - return $this->container['shipped_items']; - } - - /** - * Sets shipped_items - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Item[] $shipped_items A list of the items in this shipment and their associated details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. - * - * @return self - */ - public function setShippedItems($shipped_items) - { - $this->container['shipped_items'] = $shipped_items; - - return $this; - } - /** - * Gets cartons - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Carton[]|null - */ - public function getCartons() - { - return $this->container['cartons']; - } - - /** - * Sets cartons - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Carton[]|null $cartons A list of the cartons in this shipment. - * - * @return self - */ - public function setCartons($cartons) - { - $this->container['cartons'] = $cartons; - - return $this; - } - /** - * Gets pallets - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Pallet[]|null - */ - public function getPallets() - { - return $this->container['pallets']; - } - - /** - * Sets pallets - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Pallet[]|null $pallets A list of the pallets in this shipment. - * - * @return self - */ - public function setPallets($pallets) - { - $this->container['pallets'] = $pallets; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ShipmentDetails.php b/lib/Model/VendorShippingV1/ShipmentDetails.php deleted file mode 100644 index e2a434f7b..000000000 --- a/lib/Model/VendorShippingV1/ShipmentDetails.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorShippingV1\Pagination', - 'shipments' => '\SellingPartnerApi\Model\VendorShippingV1\Shipment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'shipments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'shipments' => 'shipments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'shipments' => 'setShipments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'shipments' => 'getShipments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['shipments'] = $data['shipments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets shipments - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Shipment[]|null - */ - public function getShipments() - { - return $this->container['shipments']; - } - - /** - * Sets shipments - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Shipment[]|null $shipments shipments - * - * @return self - */ - public function setShipments($shipments) - { - $this->container['shipments'] = $shipments; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ShipmentInformation.php b/lib/Model/VendorShippingV1/ShipmentInformation.php deleted file mode 100644 index 8fddb0d82..000000000 --- a/lib/Model/VendorShippingV1/ShipmentInformation.php +++ /dev/null @@ -1,409 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentInformation extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentInformation'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'vendor_details' => '\SellingPartnerApi\Model\VendorShippingV1\VendorDetails', - 'buyer_reference_number' => 'string', - 'ship_to_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'ship_from_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'warehouse_id' => 'string', - 'master_tracking_id' => 'string', - 'total_label_count' => 'int', - 'ship_mode' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'vendor_details' => null, - 'buyer_reference_number' => null, - 'ship_to_party' => null, - 'ship_from_party' => null, - 'warehouse_id' => null, - 'master_tracking_id' => null, - 'total_label_count' => null, - 'ship_mode' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'vendor_details' => 'vendorDetails', - 'buyer_reference_number' => 'buyerReferenceNumber', - 'ship_to_party' => 'shipToParty', - 'ship_from_party' => 'shipFromParty', - 'warehouse_id' => 'warehouseId', - 'master_tracking_id' => 'masterTrackingId', - 'total_label_count' => 'totalLabelCount', - 'ship_mode' => 'shipMode' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'vendor_details' => 'setVendorDetails', - 'buyer_reference_number' => 'setBuyerReferenceNumber', - 'ship_to_party' => 'setShipToParty', - 'ship_from_party' => 'setShipFromParty', - 'warehouse_id' => 'setWarehouseId', - 'master_tracking_id' => 'setMasterTrackingId', - 'total_label_count' => 'setTotalLabelCount', - 'ship_mode' => 'setShipMode' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'vendor_details' => 'getVendorDetails', - 'buyer_reference_number' => 'getBuyerReferenceNumber', - 'ship_to_party' => 'getShipToParty', - 'ship_from_party' => 'getShipFromParty', - 'warehouse_id' => 'getWarehouseId', - 'master_tracking_id' => 'getMasterTrackingId', - 'total_label_count' => 'getTotalLabelCount', - 'ship_mode' => 'getShipMode' - ]; - - - - const SHIP_MODE_SMALL_PARCEL = 'SmallParcel'; - const SHIP_MODE_LTL = 'LTL'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipModeAllowableValues() - { - $baseVals = [ - self::SHIP_MODE_SMALL_PARCEL, - self::SHIP_MODE_LTL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['vendor_details'] = $data['vendor_details'] ?? null; - $this->container['buyer_reference_number'] = $data['buyer_reference_number'] ?? null; - $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; - $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; - $this->container['warehouse_id'] = $data['warehouse_id'] ?? null; - $this->container['master_tracking_id'] = $data['master_tracking_id'] ?? null; - $this->container['total_label_count'] = $data['total_label_count'] ?? null; - $this->container['ship_mode'] = $data['ship_mode'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getShipModeAllowableValues(); - if ( - !is_null($this->container['ship_mode']) && - !in_array(strtoupper($this->container['ship_mode']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'ship_mode', must be one of '%s'", - $this->container['ship_mode'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets vendor_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\VendorDetails|null - */ - public function getVendorDetails() - { - return $this->container['vendor_details']; - } - - /** - * Sets vendor_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\VendorDetails|null $vendor_details vendor_details - * - * @return self - */ - public function setVendorDetails($vendor_details) - { - $this->container['vendor_details'] = $vendor_details; - - return $this; - } - /** - * Gets buyer_reference_number - * - * @return string|null - */ - public function getBuyerReferenceNumber() - { - return $this->container['buyer_reference_number']; - } - - /** - * Sets buyer_reference_number - * - * @param string|null $buyer_reference_number Buyer Reference number which is a unique number. - * - * @return self - */ - public function setBuyerReferenceNumber($buyer_reference_number) - { - $this->container['buyer_reference_number'] = $buyer_reference_number; - - return $this; - } - /** - * Gets ship_to_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null - */ - public function getShipToParty() - { - return $this->container['ship_to_party']; - } - - /** - * Sets ship_to_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null $ship_to_party ship_to_party - * - * @return self - */ - public function setShipToParty($ship_to_party) - { - $this->container['ship_to_party'] = $ship_to_party; - - return $this; - } - /** - * Gets ship_from_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null - */ - public function getShipFromParty() - { - return $this->container['ship_from_party']; - } - - /** - * Sets ship_from_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null $ship_from_party ship_from_party - * - * @return self - */ - public function setShipFromParty($ship_from_party) - { - $this->container['ship_from_party'] = $ship_from_party; - - return $this; - } - /** - * Gets warehouse_id - * - * @return string|null - */ - public function getWarehouseId() - { - return $this->container['warehouse_id']; - } - - /** - * Sets warehouse_id - * - * @param string|null $warehouse_id Vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer / Carrier. - * - * @return self - */ - public function setWarehouseId($warehouse_id) - { - $this->container['warehouse_id'] = $warehouse_id; - - return $this; - } - /** - * Gets master_tracking_id - * - * @return string|null - */ - public function getMasterTrackingId() - { - return $this->container['master_tracking_id']; - } - - /** - * Sets master_tracking_id - * - * @param string|null $master_tracking_id Unique Id with which the shipment can be tracked for Small Parcels. - * - * @return self - */ - public function setMasterTrackingId($master_tracking_id) - { - $this->container['master_tracking_id'] = $master_tracking_id; - - return $this; - } - /** - * Gets total_label_count - * - * @return int|null - */ - public function getTotalLabelCount() - { - return $this->container['total_label_count']; - } - - /** - * Sets total_label_count - * - * @param int|null $total_label_count Number of Labels that are created as part of this shipment. - * - * @return self - */ - public function setTotalLabelCount($total_label_count) - { - $this->container['total_label_count'] = $total_label_count; - - return $this; - } - /** - * Gets ship_mode - * - * @return string|null - */ - public function getShipMode() - { - return $this->container['ship_mode']; - } - - /** - * Sets ship_mode - * - * @param string|null $ship_mode Type of shipment whether it is Small Parcel - * - * @return self - */ - public function setShipMode($ship_mode) - { - $allowedValues = $this->getShipModeAllowableValues(); - if (!is_null($ship_mode) &&!in_array(strtoupper($ship_mode), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'ship_mode', must be one of '%s'", - $ship_mode, - implode("', '", $allowedValues) - ) - ); - } - $this->container['ship_mode'] = $ship_mode; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ShipmentMeasurements.php b/lib/Model/VendorShippingV1/ShipmentMeasurements.php deleted file mode 100644 index 0edc028b9..000000000 --- a/lib/Model/VendorShippingV1/ShipmentMeasurements.php +++ /dev/null @@ -1,249 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentMeasurements extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentMeasurements'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'gross_shipment_weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'shipment_volume' => '\SellingPartnerApi\Model\VendorShippingV1\Volume', - 'carton_count' => 'int', - 'pallet_count' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'gross_shipment_weight' => null, - 'shipment_volume' => null, - 'carton_count' => null, - 'pallet_count' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'gross_shipment_weight' => 'grossShipmentWeight', - 'shipment_volume' => 'shipmentVolume', - 'carton_count' => 'cartonCount', - 'pallet_count' => 'palletCount' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'gross_shipment_weight' => 'setGrossShipmentWeight', - 'shipment_volume' => 'setShipmentVolume', - 'carton_count' => 'setCartonCount', - 'pallet_count' => 'setPalletCount' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'gross_shipment_weight' => 'getGrossShipmentWeight', - 'shipment_volume' => 'getShipmentVolume', - 'carton_count' => 'getCartonCount', - 'pallet_count' => 'getPalletCount' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['gross_shipment_weight'] = $data['gross_shipment_weight'] ?? null; - $this->container['shipment_volume'] = $data['shipment_volume'] ?? null; - $this->container['carton_count'] = $data['carton_count'] ?? null; - $this->container['pallet_count'] = $data['pallet_count'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets gross_shipment_weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getGrossShipmentWeight() - { - return $this->container['gross_shipment_weight']; - } - - /** - * Sets gross_shipment_weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $gross_shipment_weight gross_shipment_weight - * - * @return self - */ - public function setGrossShipmentWeight($gross_shipment_weight) - { - $this->container['gross_shipment_weight'] = $gross_shipment_weight; - - return $this; - } - /** - * Gets shipment_volume - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Volume|null - */ - public function getShipmentVolume() - { - return $this->container['shipment_volume']; - } - - /** - * Sets shipment_volume - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Volume|null $shipment_volume shipment_volume - * - * @return self - */ - public function setShipmentVolume($shipment_volume) - { - $this->container['shipment_volume'] = $shipment_volume; - - return $this; - } - /** - * Gets carton_count - * - * @return int|null - */ - public function getCartonCount() - { - return $this->container['carton_count']; - } - - /** - * Sets carton_count - * - * @param int|null $carton_count Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. - * - * @return self - */ - public function setCartonCount($carton_count) - { - $this->container['carton_count'] = $carton_count; - - return $this; - } - /** - * Gets pallet_count - * - * @return int|null - */ - public function getPalletCount() - { - return $this->container['pallet_count']; - } - - /** - * Sets pallet_count - * - * @param int|null $pallet_count Number of pallets present in the shipment. Provide the palletCount only for palletized shipments. - * - * @return self - */ - public function setPalletCount($pallet_count) - { - $this->container['pallet_count'] = $pallet_count; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/ShipmentStatusDetails.php b/lib/Model/VendorShippingV1/ShipmentStatusDetails.php deleted file mode 100644 index 8989b8c90..000000000 --- a/lib/Model/VendorShippingV1/ShipmentStatusDetails.php +++ /dev/null @@ -1,239 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class ShipmentStatusDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'ShipmentStatusDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_status' => 'string', - 'shipment_status_date' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_status' => null, - 'shipment_status_date' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_status' => 'shipmentStatus', - 'shipment_status_date' => 'shipmentStatusDate' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_status' => 'setShipmentStatus', - 'shipment_status_date' => 'setShipmentStatusDate' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_status' => 'getShipmentStatus', - 'shipment_status_date' => 'getShipmentStatusDate' - ]; - - - - const SHIPMENT_STATUS_CREATED = 'Created'; - const SHIPMENT_STATUS_TRANSPORTATION_REQUESTED = 'TransportationRequested'; - const SHIPMENT_STATUS_CARRIER_ASSIGNED = 'CarrierAssigned'; - const SHIPMENT_STATUS_SHIPPED = 'Shipped'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipmentStatusAllowableValues() - { - $baseVals = [ - self::SHIPMENT_STATUS_CREATED, - self::SHIPMENT_STATUS_TRANSPORTATION_REQUESTED, - self::SHIPMENT_STATUS_CARRIER_ASSIGNED, - self::SHIPMENT_STATUS_SHIPPED, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_status'] = $data['shipment_status'] ?? null; - $this->container['shipment_status_date'] = $data['shipment_status_date'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getShipmentStatusAllowableValues(); - if ( - !is_null($this->container['shipment_status']) && - !in_array(strtoupper($this->container['shipment_status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'shipment_status', must be one of '%s'", - $this->container['shipment_status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets shipment_status - * - * @return string|null - */ - public function getShipmentStatus() - { - return $this->container['shipment_status']; - } - - /** - * Sets shipment_status - * - * @param string|null $shipment_status Current status of the shipment on whether it is picked up or scheduled. - * - * @return self - */ - public function setShipmentStatus($shipment_status) - { - $allowedValues = $this->getShipmentStatusAllowableValues(); - if (!is_null($shipment_status) &&!in_array(strtoupper($shipment_status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'shipment_status', must be one of '%s'", - $shipment_status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['shipment_status'] = $shipment_status; - - return $this; - } - /** - * Gets shipment_status_date - * - * @return string|null - */ - public function getShipmentStatusDate() - { - return $this->container['shipment_status_date']; - } - - /** - * Sets shipment_status_date - * - * @param string|null $shipment_status_date Date and time on last status update received for the shipment - * - * @return self - */ - public function setShipmentStatusDate($shipment_status_date) - { - $this->container['shipment_status_date'] = $shipment_status_date; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Stop.php b/lib/Model/VendorShippingV1/Stop.php deleted file mode 100644 index b6c2c9c77..000000000 --- a/lib/Model/VendorShippingV1/Stop.php +++ /dev/null @@ -1,298 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Stop extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Stop'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'function_code' => 'string', - 'location_identification' => '\SellingPartnerApi\Model\VendorShippingV1\Location', - 'arrival_time' => 'string', - 'departure_time' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'function_code' => null, - 'location_identification' => null, - 'arrival_time' => null, - 'departure_time' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'function_code' => 'functionCode', - 'location_identification' => 'locationIdentification', - 'arrival_time' => 'arrivalTime', - 'departure_time' => 'departureTime' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'function_code' => 'setFunctionCode', - 'location_identification' => 'setLocationIdentification', - 'arrival_time' => 'setArrivalTime', - 'departure_time' => 'setDepartureTime' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'function_code' => 'getFunctionCode', - 'location_identification' => 'getLocationIdentification', - 'arrival_time' => 'getArrivalTime', - 'departure_time' => 'getDepartureTime' - ]; - - - - const FUNCTION_CODE_PORT_OF_DISCHARGE = 'PortOfDischarge'; - const FUNCTION_CODE_FREIGHT_PAYABLE_AT = 'FreightPayableAt'; - const FUNCTION_CODE_PORT_OF_LOADING = 'PortOfLoading'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFunctionCodeAllowableValues() - { - $baseVals = [ - self::FUNCTION_CODE_PORT_OF_DISCHARGE, - self::FUNCTION_CODE_FREIGHT_PAYABLE_AT, - self::FUNCTION_CODE_PORT_OF_LOADING, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['function_code'] = $data['function_code'] ?? null; - $this->container['location_identification'] = $data['location_identification'] ?? null; - $this->container['arrival_time'] = $data['arrival_time'] ?? null; - $this->container['departure_time'] = $data['departure_time'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['function_code'] === null) { - $invalidProperties[] = "'function_code' can't be null"; - } - $allowedValues = $this->getFunctionCodeAllowableValues(); - if ( - !is_null($this->container['function_code']) && - !in_array(strtoupper($this->container['function_code']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'function_code', must be one of '%s'", - $this->container['function_code'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets function_code - * - * @return string - */ - public function getFunctionCode() - { - return $this->container['function_code']; - } - - /** - * Sets function_code - * - * @param string $function_code Provide the function code. - * - * @return self - */ - public function setFunctionCode($function_code) - { - $allowedValues = $this->getFunctionCodeAllowableValues(); - if (!in_array(strtoupper($function_code), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'function_code', must be one of '%s'", - $function_code, - implode("', '", $allowedValues) - ) - ); - } - $this->container['function_code'] = $function_code; - - return $this; - } - /** - * Gets location_identification - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Location|null - */ - public function getLocationIdentification() - { - return $this->container['location_identification']; - } - - /** - * Sets location_identification - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Location|null $location_identification location_identification - * - * @return self - */ - public function setLocationIdentification($location_identification) - { - $this->container['location_identification'] = $location_identification; - - return $this; - } - /** - * Gets arrival_time - * - * @return string|null - */ - public function getArrivalTime() - { - return $this->container['arrival_time']; - } - - /** - * Sets arrival_time - * - * @param string|null $arrival_time Date and time of the arrival of the cargo. - * - * @return self - */ - public function setArrivalTime($arrival_time) - { - $this->container['arrival_time'] = $arrival_time; - - return $this; - } - /** - * Gets departure_time - * - * @return string|null - */ - public function getDepartureTime() - { - return $this->container['departure_time']; - } - - /** - * Sets departure_time - * - * @param string|null $departure_time Date and time of the departure of the cargo. - * - * @return self - */ - public function setDepartureTime($departure_time) - { - $this->container['departure_time'] = $departure_time; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.php b/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.php deleted file mode 100644 index 8bbe71ec7..000000000 --- a/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsRequest.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentConfirmationsRequest extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentConfirmationsRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipment_confirmations' => '\SellingPartnerApi\Model\VendorShippingV1\ShipmentConfirmation[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipment_confirmations' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipment_confirmations' => 'shipmentConfirmations' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipment_confirmations' => 'setShipmentConfirmations' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipment_confirmations' => 'getShipmentConfirmations' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipment_confirmations'] = $data['shipment_confirmations'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipment_confirmations - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ShipmentConfirmation[]|null - */ - public function getShipmentConfirmations() - { - return $this->container['shipment_confirmations']; - } - - /** - * Sets shipment_confirmations - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ShipmentConfirmation[]|null $shipment_confirmations shipment_confirmations - * - * @return self - */ - public function setShipmentConfirmations($shipment_confirmations) - { - $this->container['shipment_confirmations'] = $shipment_confirmations; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.php b/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.php deleted file mode 100644 index 80cc824d2..000000000 --- a/lib/Model/VendorShippingV1/SubmitShipmentConfirmationsResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipmentConfirmationsResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipmentConfirmationsResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorShippingV1\TransactionReference', - 'errors' => '\SellingPartnerApi\Model\VendorShippingV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransactionReference|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransactionReference|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/SubmitShipments.php b/lib/Model/VendorShippingV1/SubmitShipments.php deleted file mode 100644 index 05a18beb0..000000000 --- a/lib/Model/VendorShippingV1/SubmitShipments.php +++ /dev/null @@ -1,162 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class SubmitShipments extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SubmitShipments'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'shipments' => '\SellingPartnerApi\Model\VendorShippingV1\Shipment[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'shipments' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'shipments' => 'shipments' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'shipments' => 'setShipments' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'shipments' => 'getShipments' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['shipments'] = $data['shipments'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets shipments - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Shipment[]|null - */ - public function getShipments() - { - return $this->container['shipments']; - } - - /** - * Sets shipments - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Shipment[]|null $shipments shipments - * - * @return self - */ - public function setShipments($shipments) - { - $this->container['shipments'] = $shipments; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TaxRegistrationDetails.php b/lib/Model/VendorShippingV1/TaxRegistrationDetails.php deleted file mode 100644 index 9399f6205..000000000 --- a/lib/Model/VendorShippingV1/TaxRegistrationDetails.php +++ /dev/null @@ -1,241 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TaxRegistrationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TaxRegistrationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'tax_registration_type' => 'string', - 'tax_registration_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'tax_registration_type' => null, - 'tax_registration_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'tax_registration_type' => 'taxRegistrationType', - 'tax_registration_number' => 'taxRegistrationNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'tax_registration_type' => 'setTaxRegistrationType', - 'tax_registration_number' => 'setTaxRegistrationNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'tax_registration_type' => 'getTaxRegistrationType', - 'tax_registration_number' => 'getTaxRegistrationNumber' - ]; - - - - const TAX_REGISTRATION_TYPE_VAT = 'VAT'; - const TAX_REGISTRATION_TYPE_GST = 'GST'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTaxRegistrationTypeAllowableValues() - { - $baseVals = [ - self::TAX_REGISTRATION_TYPE_VAT, - self::TAX_REGISTRATION_TYPE_GST, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['tax_registration_type'] = $data['tax_registration_type'] ?? null; - $this->container['tax_registration_number'] = $data['tax_registration_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['tax_registration_type'] === null) { - $invalidProperties[] = "'tax_registration_type' can't be null"; - } - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if ( - !is_null($this->container['tax_registration_type']) && - !in_array(strtoupper($this->container['tax_registration_type']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $this->container['tax_registration_type'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['tax_registration_number'] === null) { - $invalidProperties[] = "'tax_registration_number' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets tax_registration_type - * - * @return string - */ - public function getTaxRegistrationType() - { - return $this->container['tax_registration_type']; - } - - /** - * Sets tax_registration_type - * - * @param string $tax_registration_type Tax registration type for the entity. - * - * @return self - */ - public function setTaxRegistrationType($tax_registration_type) - { - $allowedValues = $this->getTaxRegistrationTypeAllowableValues(); - if (!in_array(strtoupper($tax_registration_type), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'tax_registration_type', must be one of '%s'", - $tax_registration_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['tax_registration_type'] = $tax_registration_type; - - return $this; - } - /** - * Gets tax_registration_number - * - * @return string - */ - public function getTaxRegistrationNumber() - { - return $this->container['tax_registration_number']; - } - - /** - * Sets tax_registration_number - * - * @param string $tax_registration_number Tax registration number for the entity. For example, VAT ID. - * - * @return self - */ - public function setTaxRegistrationNumber($tax_registration_number) - { - $this->container['tax_registration_number'] = $tax_registration_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TransactionReference.php b/lib/Model/VendorShippingV1/TransactionReference.php deleted file mode 100644 index ab6b462f8..000000000 --- a/lib/Model/VendorShippingV1/TransactionReference.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionReference extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionReference'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string|null - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string|null $transaction_id GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TransportLabel.php b/lib/Model/VendorShippingV1/TransportLabel.php deleted file mode 100644 index ad843b043..000000000 --- a/lib/Model/VendorShippingV1/TransportLabel.php +++ /dev/null @@ -1,219 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportLabel extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'transportLabel'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'label_create_date_time' => 'string', - 'shipment_information' => '\SellingPartnerApi\Model\VendorShippingV1\ShipmentInformation', - 'label_data' => '\SellingPartnerApi\Model\VendorShippingV1\LabelData[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'label_create_date_time' => null, - 'shipment_information' => null, - 'label_data' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'label_create_date_time' => 'labelCreateDateTime', - 'shipment_information' => 'shipmentInformation', - 'label_data' => 'labelData' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'label_create_date_time' => 'setLabelCreateDateTime', - 'shipment_information' => 'setShipmentInformation', - 'label_data' => 'setLabelData' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'label_create_date_time' => 'getLabelCreateDateTime', - 'shipment_information' => 'getShipmentInformation', - 'label_data' => 'getLabelData' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['label_create_date_time'] = $data['label_create_date_time'] ?? null; - $this->container['shipment_information'] = $data['shipment_information'] ?? null; - $this->container['label_data'] = $data['label_data'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets label_create_date_time - * - * @return string|null - */ - public function getLabelCreateDateTime() - { - return $this->container['label_create_date_time']; - } - - /** - * Sets label_create_date_time - * - * @param string|null $label_create_date_time Date on which label is created. - * - * @return self - */ - public function setLabelCreateDateTime($label_create_date_time) - { - $this->container['label_create_date_time'] = $label_create_date_time; - - return $this; - } - /** - * Gets shipment_information - * - * @return \SellingPartnerApi\Model\VendorShippingV1\ShipmentInformation|null - */ - public function getShipmentInformation() - { - return $this->container['shipment_information']; - } - - /** - * Sets shipment_information - * - * @param \SellingPartnerApi\Model\VendorShippingV1\ShipmentInformation|null $shipment_information shipment_information - * - * @return self - */ - public function setShipmentInformation($shipment_information) - { - $this->container['shipment_information'] = $shipment_information; - - return $this; - } - /** - * Gets label_data - * - * @return \SellingPartnerApi\Model\VendorShippingV1\LabelData[]|null - */ - public function getLabelData() - { - return $this->container['label_data']; - } - - /** - * Sets label_data - * - * @param \SellingPartnerApi\Model\VendorShippingV1\LabelData[]|null $label_data Indicates the label data,format and type associated . - * - * @return self - */ - public function setLabelData($label_data) - { - $this->container['label_data'] = $label_data; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TransportShipmentMeasurements.php b/lib/Model/VendorShippingV1/TransportShipmentMeasurements.php deleted file mode 100644 index 458003592..000000000 --- a/lib/Model/VendorShippingV1/TransportShipmentMeasurements.php +++ /dev/null @@ -1,278 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportShipmentMeasurements extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportShipmentMeasurements'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'total_carton_count' => 'int', - 'total_pallet_stackable' => 'int', - 'total_pallet_non_stackable' => 'int', - 'shipment_weight' => '\SellingPartnerApi\Model\VendorShippingV1\Weight', - 'shipment_volume' => '\SellingPartnerApi\Model\VendorShippingV1\Volume' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'total_carton_count' => null, - 'total_pallet_stackable' => null, - 'total_pallet_non_stackable' => null, - 'shipment_weight' => null, - 'shipment_volume' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'total_carton_count' => 'totalCartonCount', - 'total_pallet_stackable' => 'totalPalletStackable', - 'total_pallet_non_stackable' => 'totalPalletNonStackable', - 'shipment_weight' => 'shipmentWeight', - 'shipment_volume' => 'shipmentVolume' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'total_carton_count' => 'setTotalCartonCount', - 'total_pallet_stackable' => 'setTotalPalletStackable', - 'total_pallet_non_stackable' => 'setTotalPalletNonStackable', - 'shipment_weight' => 'setShipmentWeight', - 'shipment_volume' => 'setShipmentVolume' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'total_carton_count' => 'getTotalCartonCount', - 'total_pallet_stackable' => 'getTotalPalletStackable', - 'total_pallet_non_stackable' => 'getTotalPalletNonStackable', - 'shipment_weight' => 'getShipmentWeight', - 'shipment_volume' => 'getShipmentVolume' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['total_carton_count'] = $data['total_carton_count'] ?? null; - $this->container['total_pallet_stackable'] = $data['total_pallet_stackable'] ?? null; - $this->container['total_pallet_non_stackable'] = $data['total_pallet_non_stackable'] ?? null; - $this->container['shipment_weight'] = $data['shipment_weight'] ?? null; - $this->container['shipment_volume'] = $data['shipment_volume'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets total_carton_count - * - * @return int|null - */ - public function getTotalCartonCount() - { - return $this->container['total_carton_count']; - } - - /** - * Sets total_carton_count - * - * @param int|null $total_carton_count Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. - * - * @return self - */ - public function setTotalCartonCount($total_carton_count) - { - $this->container['total_carton_count'] = $total_carton_count; - - return $this; - } - /** - * Gets total_pallet_stackable - * - * @return int|null - */ - public function getTotalPalletStackable() - { - return $this->container['total_pallet_stackable']; - } - - /** - * Sets total_pallet_stackable - * - * @param int|null $total_pallet_stackable Total number of Stackable Pallets present in the shipment. - * - * @return self - */ - public function setTotalPalletStackable($total_pallet_stackable) - { - $this->container['total_pallet_stackable'] = $total_pallet_stackable; - - return $this; - } - /** - * Gets total_pallet_non_stackable - * - * @return int|null - */ - public function getTotalPalletNonStackable() - { - return $this->container['total_pallet_non_stackable']; - } - - /** - * Sets total_pallet_non_stackable - * - * @param int|null $total_pallet_non_stackable Total number of Non Stackable Pallets present in the shipment. - * - * @return self - */ - public function setTotalPalletNonStackable($total_pallet_non_stackable) - { - $this->container['total_pallet_non_stackable'] = $total_pallet_non_stackable; - - return $this; - } - /** - * Gets shipment_weight - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Weight|null - */ - public function getShipmentWeight() - { - return $this->container['shipment_weight']; - } - - /** - * Sets shipment_weight - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Weight|null $shipment_weight shipment_weight - * - * @return self - */ - public function setShipmentWeight($shipment_weight) - { - $this->container['shipment_weight'] = $shipment_weight; - - return $this; - } - /** - * Gets shipment_volume - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Volume|null - */ - public function getShipmentVolume() - { - return $this->container['shipment_volume']; - } - - /** - * Sets shipment_volume - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Volume|null $shipment_volume shipment_volume - * - * @return self - */ - public function setShipmentVolume($shipment_volume) - { - $this->container['shipment_volume'] = $shipment_volume; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TransportationDetails.php b/lib/Model/VendorShippingV1/TransportationDetails.php deleted file mode 100644 index 98d6d0c5b..000000000 --- a/lib/Model/VendorShippingV1/TransportationDetails.php +++ /dev/null @@ -1,427 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportationDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransportationDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'ship_mode' => 'string', - 'transportation_mode' => 'string', - 'shipped_date' => 'string', - 'estimated_delivery_date' => 'string', - 'shipment_delivery_date' => 'string', - 'carrier_details' => '\SellingPartnerApi\Model\VendorShippingV1\CarrierDetails', - 'bill_of_lading_number' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'ship_mode' => null, - 'transportation_mode' => null, - 'shipped_date' => null, - 'estimated_delivery_date' => null, - 'shipment_delivery_date' => null, - 'carrier_details' => null, - 'bill_of_lading_number' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'ship_mode' => 'shipMode', - 'transportation_mode' => 'transportationMode', - 'shipped_date' => 'shippedDate', - 'estimated_delivery_date' => 'estimatedDeliveryDate', - 'shipment_delivery_date' => 'shipmentDeliveryDate', - 'carrier_details' => 'carrierDetails', - 'bill_of_lading_number' => 'billOfLadingNumber' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'ship_mode' => 'setShipMode', - 'transportation_mode' => 'setTransportationMode', - 'shipped_date' => 'setShippedDate', - 'estimated_delivery_date' => 'setEstimatedDeliveryDate', - 'shipment_delivery_date' => 'setShipmentDeliveryDate', - 'carrier_details' => 'setCarrierDetails', - 'bill_of_lading_number' => 'setBillOfLadingNumber' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'ship_mode' => 'getShipMode', - 'transportation_mode' => 'getTransportationMode', - 'shipped_date' => 'getShippedDate', - 'estimated_delivery_date' => 'getEstimatedDeliveryDate', - 'shipment_delivery_date' => 'getShipmentDeliveryDate', - 'carrier_details' => 'getCarrierDetails', - 'bill_of_lading_number' => 'getBillOfLadingNumber' - ]; - - - - const SHIP_MODE_TRUCK_LOAD = 'TruckLoad'; - const SHIP_MODE_LESS_THAN_TRUCK_LOAD = 'LessThanTruckLoad'; - const SHIP_MODE_SMALL_PARCEL = 'SmallParcel'; - - - const TRANSPORTATION_MODE_ROAD = 'Road'; - const TRANSPORTATION_MODE_AIR = 'Air'; - const TRANSPORTATION_MODE_OCEAN = 'Ocean'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getShipModeAllowableValues() - { - $baseVals = [ - self::SHIP_MODE_TRUCK_LOAD, - self::SHIP_MODE_LESS_THAN_TRUCK_LOAD, - self::SHIP_MODE_SMALL_PARCEL, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTransportationModeAllowableValues() - { - $baseVals = [ - self::TRANSPORTATION_MODE_ROAD, - self::TRANSPORTATION_MODE_AIR, - self::TRANSPORTATION_MODE_OCEAN, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['ship_mode'] = $data['ship_mode'] ?? null; - $this->container['transportation_mode'] = $data['transportation_mode'] ?? null; - $this->container['shipped_date'] = $data['shipped_date'] ?? null; - $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; - $this->container['shipment_delivery_date'] = $data['shipment_delivery_date'] ?? null; - $this->container['carrier_details'] = $data['carrier_details'] ?? null; - $this->container['bill_of_lading_number'] = $data['bill_of_lading_number'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - $allowedValues = $this->getShipModeAllowableValues(); - if ( - !is_null($this->container['ship_mode']) && - !in_array(strtoupper($this->container['ship_mode']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'ship_mode', must be one of '%s'", - $this->container['ship_mode'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getTransportationModeAllowableValues(); - if ( - !is_null($this->container['transportation_mode']) && - !in_array(strtoupper($this->container['transportation_mode']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'transportation_mode', must be one of '%s'", - $this->container['transportation_mode'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets ship_mode - * - * @return string|null - */ - public function getShipMode() - { - return $this->container['ship_mode']; - } - - /** - * Sets ship_mode - * - * @param string|null $ship_mode The type of shipment. - * - * @return self - */ - public function setShipMode($ship_mode) - { - $allowedValues = $this->getShipModeAllowableValues(); - if (!is_null($ship_mode) &&!in_array(strtoupper($ship_mode), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'ship_mode', must be one of '%s'", - $ship_mode, - implode("', '", $allowedValues) - ) - ); - } - $this->container['ship_mode'] = $ship_mode; - - return $this; - } - /** - * Gets transportation_mode - * - * @return string|null - */ - public function getTransportationMode() - { - return $this->container['transportation_mode']; - } - - /** - * Sets transportation_mode - * - * @param string|null $transportation_mode The mode of transportation for this shipment. - * - * @return self - */ - public function setTransportationMode($transportation_mode) - { - $allowedValues = $this->getTransportationModeAllowableValues(); - if (!is_null($transportation_mode) &&!in_array(strtoupper($transportation_mode), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'transportation_mode', must be one of '%s'", - $transportation_mode, - implode("', '", $allowedValues) - ) - ); - } - $this->container['transportation_mode'] = $transportation_mode; - - return $this; - } - /** - * Gets shipped_date - * - * @return string|null - */ - public function getShippedDate() - { - return $this->container['shipped_date']; - } - - /** - * Sets shipped_date - * - * @param string|null $shipped_date Date when shipment is performed by the Vendor to Buyer - * - * @return self - */ - public function setShippedDate($shipped_date) - { - $this->container['shipped_date'] = $shipped_date; - - return $this; - } - /** - * Gets estimated_delivery_date - * - * @return string|null - */ - public function getEstimatedDeliveryDate() - { - return $this->container['estimated_delivery_date']; - } - - /** - * Sets estimated_delivery_date - * - * @param string|null $estimated_delivery_date Estimated Date on which shipment will be delivered from Vendor to Buyer - * - * @return self - */ - public function setEstimatedDeliveryDate($estimated_delivery_date) - { - $this->container['estimated_delivery_date'] = $estimated_delivery_date; - - return $this; - } - /** - * Gets shipment_delivery_date - * - * @return string|null - */ - public function getShipmentDeliveryDate() - { - return $this->container['shipment_delivery_date']; - } - - /** - * Sets shipment_delivery_date - * - * @param string|null $shipment_delivery_date Date on which shipment will be delivered from Vendor to Buyer - * - * @return self - */ - public function setShipmentDeliveryDate($shipment_delivery_date) - { - $this->container['shipment_delivery_date'] = $shipment_delivery_date; - - return $this; - } - /** - * Gets carrier_details - * - * @return \SellingPartnerApi\Model\VendorShippingV1\CarrierDetails|null - */ - public function getCarrierDetails() - { - return $this->container['carrier_details']; - } - - /** - * Sets carrier_details - * - * @param \SellingPartnerApi\Model\VendorShippingV1\CarrierDetails|null $carrier_details carrier_details - * - * @return self - */ - public function setCarrierDetails($carrier_details) - { - $this->container['carrier_details'] = $carrier_details; - - return $this; - } - /** - * Gets bill_of_lading_number - * - * @return string|null - */ - public function getBillOfLadingNumber() - { - return $this->container['bill_of_lading_number']; - } - - /** - * Sets bill_of_lading_number - * - * @param string|null $bill_of_lading_number Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field. - * - * @return self - */ - public function setBillOfLadingNumber($bill_of_lading_number) - { - $this->container['bill_of_lading_number'] = $bill_of_lading_number; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/TransportationLabels.php b/lib/Model/VendorShippingV1/TransportationLabels.php deleted file mode 100644 index d93a59a14..000000000 --- a/lib/Model/VendorShippingV1/TransportationLabels.php +++ /dev/null @@ -1,190 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransportationLabels extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'transportationLabels'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'pagination' => '\SellingPartnerApi\Model\VendorShippingV1\Pagination', - 'transport_labels' => '\SellingPartnerApi\Model\VendorShippingV1\TransportLabel[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'pagination' => null, - 'transport_labels' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'pagination' => 'pagination', - 'transport_labels' => 'transportLabels' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'pagination' => 'setPagination', - 'transport_labels' => 'setTransportLabels' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'pagination' => 'getPagination', - 'transport_labels' => 'getTransportLabels' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['pagination'] = $data['pagination'] ?? null; - $this->container['transport_labels'] = $data['transport_labels'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets pagination - * - * @return \SellingPartnerApi\Model\VendorShippingV1\Pagination|null - */ - public function getPagination() - { - return $this->container['pagination']; - } - - /** - * Sets pagination - * - * @param \SellingPartnerApi\Model\VendorShippingV1\Pagination|null $pagination pagination - * - * @return self - */ - public function setPagination($pagination) - { - $this->container['pagination'] = $pagination; - - return $this; - } - /** - * Gets transport_labels - * - * @return \SellingPartnerApi\Model\VendorShippingV1\TransportLabel[]|null - */ - public function getTransportLabels() - { - return $this->container['transport_labels']; - } - - /** - * Sets transport_labels - * - * @param \SellingPartnerApi\Model\VendorShippingV1\TransportLabel[]|null $transport_labels transport_labels - * - * @return self - */ - public function setTransportLabels($transport_labels) - { - $this->container['transport_labels'] = $transport_labels; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/VendorDetails.php b/lib/Model/VendorShippingV1/VendorDetails.php deleted file mode 100644 index 93e8aa7ed..000000000 --- a/lib/Model/VendorShippingV1/VendorDetails.php +++ /dev/null @@ -1,191 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class VendorDetails extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'VendorDetails'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'selling_party' => '\SellingPartnerApi\Model\VendorShippingV1\PartyIdentification', - 'vendor_shipment_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'selling_party' => null, - 'vendor_shipment_id' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'selling_party' => 'sellingParty', - 'vendor_shipment_id' => 'vendorShipmentId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'selling_party' => 'setSellingParty', - 'vendor_shipment_id' => 'setVendorShipmentId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'selling_party' => 'getSellingParty', - 'vendor_shipment_id' => 'getVendorShipmentId' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['selling_party'] = $data['selling_party'] ?? null; - $this->container['vendor_shipment_id'] = $data['vendor_shipment_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets selling_party - * - * @return \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null - */ - public function getSellingParty() - { - return $this->container['selling_party']; - } - - /** - * Sets selling_party - * - * @param \SellingPartnerApi\Model\VendorShippingV1\PartyIdentification|null $selling_party selling_party - * - * @return self - */ - public function setSellingParty($selling_party) - { - $this->container['selling_party'] = $selling_party; - - return $this; - } - /** - * Gets vendor_shipment_id - * - * @return string|null - */ - public function getVendorShipmentId() - { - return $this->container['vendor_shipment_id']; - } - - /** - * Sets vendor_shipment_id - * - * @param string|null $vendor_shipment_id Unique vendor shipment id which is not used in last 365 days - * - * @return self - */ - public function setVendorShipmentId($vendor_shipment_id) - { - $this->container['vendor_shipment_id'] = $vendor_shipment_id; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Volume.php b/lib/Model/VendorShippingV1/Volume.php deleted file mode 100644 index 1b87e1236..000000000 --- a/lib/Model/VendorShippingV1/Volume.php +++ /dev/null @@ -1,246 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Volume extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Volume'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit_of_measure' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit_of_measure' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit_of_measure' => 'unitOfMeasure', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit_of_measure' => 'setUnitOfMeasure', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit_of_measure' => 'getUnitOfMeasure', - 'value' => 'getValue' - ]; - - - - const UNIT_OF_MEASURE_CU_FT = 'CuFt'; - const UNIT_OF_MEASURE_CU_IN = 'CuIn'; - const UNIT_OF_MEASURE_CU_M = 'CuM'; - const UNIT_OF_MEASURE_CU_Y = 'CuY'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_CU_FT, - self::UNIT_OF_MEASURE_CU_IN, - self::UNIT_OF_MEASURE_CU_M, - self::UNIT_OF_MEASURE_CU_Y, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measurement. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/VendorShippingV1/Weight.php b/lib/Model/VendorShippingV1/Weight.php deleted file mode 100644 index 3a8e57a7e..000000000 --- a/lib/Model/VendorShippingV1/Weight.php +++ /dev/null @@ -1,246 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Weight extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Weight'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'unit_of_measure' => 'string', - 'value' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'unit_of_measure' => null, - 'value' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'unit_of_measure' => 'unitOfMeasure', - 'value' => 'value' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'unit_of_measure' => 'setUnitOfMeasure', - 'value' => 'setValue' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'unit_of_measure' => 'getUnitOfMeasure', - 'value' => 'getValue' - ]; - - - - const UNIT_OF_MEASURE_G = 'G'; - const UNIT_OF_MEASURE_KG = 'Kg'; - const UNIT_OF_MEASURE_OZ = 'Oz'; - const UNIT_OF_MEASURE_LB = 'Lb'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitOfMeasureAllowableValues() - { - $baseVals = [ - self::UNIT_OF_MEASURE_G, - self::UNIT_OF_MEASURE_KG, - self::UNIT_OF_MEASURE_OZ, - self::UNIT_OF_MEASURE_LB, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; - $this->container['value'] = $data['value'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['unit_of_measure'] === null) { - $invalidProperties[] = "'unit_of_measure' can't be null"; - } - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if ( - !is_null($this->container['unit_of_measure']) && - !in_array(strtoupper($this->container['unit_of_measure']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $this->container['unit_of_measure'], - implode("', '", $allowedValues) - ); - } - - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets unit_of_measure - * - * @return string - */ - public function getUnitOfMeasure() - { - return $this->container['unit_of_measure']; - } - - /** - * Sets unit_of_measure - * - * @param string $unit_of_measure The unit of measurement. - * - * @return self - */ - public function setUnitOfMeasure($unit_of_measure) - { - $allowedValues = $this->getUnitOfMeasureAllowableValues(); - if (!in_array(strtoupper($unit_of_measure), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_of_measure', must be one of '%s'", - $unit_of_measure, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_of_measure'] = $unit_of_measure; - - return $this; - } - /** - * Gets value - * - * @return string - */ - public function getValue() - { - return $this->container['value']; - } - - /** - * Sets value - * - * @param string $value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. - * **Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. - * - * @return self - */ - public function setValue($value) - { - $this->container['value'] = $value; - - return $this; - } -} - - diff --git a/lib/Model/VendorTransactionStatusV1/Error.php b/lib/Model/VendorTransactionStatusV1/Error.php deleted file mode 100644 index 9f05f4f84..000000000 --- a/lib/Model/VendorTransactionStatusV1/Error.php +++ /dev/null @@ -1,226 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Error extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Error'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'code' => 'string', - 'message' => 'string', - 'details' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'code' => null, - 'message' => null, - 'details' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'details' => 'details' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'details' => 'setDetails' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'details' => 'getDetails' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['code'] = $data['code'] ?? null; - $this->container['message'] = $data['message'] ?? null; - $this->container['details'] = $data['details'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['code'] === null) { - $invalidProperties[] = "'code' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - return $invalidProperties; - } - - - /** - * Gets code - * - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * - * @param string $code An error code that identifies the type of error that occurred. - * - * @return self - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A message that describes the error condition. - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - /** - * Gets details - * - * @return string|null - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param string|null $details Additional details that can help the caller understand or fix the issue. - * - * @return self - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } -} - - diff --git a/lib/Model/VendorTransactionStatusV1/GetTransactionResponse.php b/lib/Model/VendorTransactionStatusV1/GetTransactionResponse.php deleted file mode 100644 index 695fe322d..000000000 --- a/lib/Model/VendorTransactionStatusV1/GetTransactionResponse.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class GetTransactionResponse extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'GetTransactionResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'payload' => '\SellingPartnerApi\Model\VendorTransactionStatusV1\TransactionStatus', - 'errors' => '\SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'payload' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'headers' => 'headers', - 'payload' => 'payload', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'headers' => 'setHeaders', - 'payload' => 'setPayload', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'headers' => 'getHeaders', - 'payload' => 'getPayload', - 'errors' => 'getErrors' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['payload'] = $data['payload'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - /** - * Gets API response headers - * - * @return array[string] - */ - public function getHeaders() - { - return $this->container['headers']; - } - - /** - * Sets API response headers (only relevant to response models) - * - * @param array[string => string] $headers Associative array of response headers. - * - * @return self - */ - public function setHeaders($headers) - { - $this->container['headers'] = $headers; - return $this; - } - - /** - * Gets payload - * - * @return \SellingPartnerApi\Model\VendorTransactionStatusV1\TransactionStatus|null - */ - public function getPayload() - { - return $this->container['payload']; - } - - /** - * Sets payload - * - * @param \SellingPartnerApi\Model\VendorTransactionStatusV1\TransactionStatus|null $payload payload - * - * @return self - */ - public function setPayload($payload) - { - $this->container['payload'] = $payload; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorTransactionStatusV1/Transaction.php b/lib/Model/VendorTransactionStatusV1/Transaction.php deleted file mode 100644 index 415bb4985..000000000 --- a/lib/Model/VendorTransactionStatusV1/Transaction.php +++ /dev/null @@ -1,272 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class Transaction extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'Transaction'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_id' => 'string', - 'status' => 'string', - 'errors' => '\SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_id' => null, - 'status' => null, - 'errors' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_id' => 'transactionId', - 'status' => 'status', - 'errors' => 'errors' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_id' => 'setTransactionId', - 'status' => 'setStatus', - 'errors' => 'setErrors' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_id' => 'getTransactionId', - 'status' => 'getStatus', - 'errors' => 'getErrors' - ]; - - - - const STATUS_FAILURE = 'Failure'; - const STATUS_PROCESSING = 'Processing'; - const STATUS_SUCCESS = 'Success'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - $baseVals = [ - self::STATUS_FAILURE, - self::STATUS_PROCESSING, - self::STATUS_SUCCESS, - ]; - - // This is necessary because Amazon does not consistently capitalize their - // enum values, so we do case-insensitive enum value validation in ObjectSerializer - return array_map(function ($val) { return strtoupper($val); }, $baseVals); - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_id'] = $data['transaction_id'] ?? null; - $this->container['status'] = $data['status'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - if ($this->container['transaction_id'] === null) { - $invalidProperties[] = "'transaction_id' can't be null"; - } - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; - } - $allowedValues = $this->getStatusAllowableValues(); - if ( - !is_null($this->container['status']) && - !in_array(strtoupper($this->container['status']), $allowedValues, true) - ) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - - /** - * Gets transaction_id - * - * @return string - */ - public function getTransactionId() - { - return $this->container['transaction_id']; - } - - /** - * Sets transaction_id - * - * @param string $transaction_id The unique identifier returned in the 'transactionId' field in response to the post request of a specific transaction. - * - * @return self - */ - public function setTransactionId($transaction_id) - { - $this->container['transaction_id'] = $transaction_id; - - return $this; - } - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Current processing status of the transaction. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array(strtoupper($status), $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - /** - * Gets errors - * - * @return \SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]|null - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * - * @param \SellingPartnerApi\Model\VendorTransactionStatusV1\Error[]|null $errors A list of error responses returned when a request is unsuccessful. - * - * @return self - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } -} - - diff --git a/lib/Model/VendorTransactionStatusV1/TransactionStatus.php b/lib/Model/VendorTransactionStatusV1/TransactionStatus.php deleted file mode 100644 index 1669b91f5..000000000 --- a/lib/Model/VendorTransactionStatusV1/TransactionStatus.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TransactionStatus extends BaseModel implements ModelInterface, ArrayAccess, \JsonSerializable, \IteratorAggregate -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'TransactionStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'transaction_status' => '\SellingPartnerApi\Model\VendorTransactionStatusV1\Transaction' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'transaction_status' => null - ]; - - - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'transaction_status' => 'transactionStatus' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'transaction_status' => 'setTransactionStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'transaction_status' => 'getTransactionStatus' - ]; - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['transaction_status'] = $data['transaction_status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - return $invalidProperties; - } - - - /** - * Gets transaction_status - * - * @return \SellingPartnerApi\Model\VendorTransactionStatusV1\Transaction|null - */ - public function getTransactionStatus() - { - return $this->container['transaction_status']; - } - - /** - * Sets transaction_status - * - * @param \SellingPartnerApi\Model\VendorTransactionStatusV1\Transaction|null $transaction_status transaction_status - * - * @return self - */ - public function setTransactionStatus($transaction_status) - { - $this->container['transaction_status'] = $transaction_status; - - return $this; - } -} - - diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php deleted file mode 100644 index 7be986939..000000000 --- a/lib/ObjectSerializer.php +++ /dev/null @@ -1,395 +0,0 @@ -format('Y-m-d') : $data->format(self::$dateTimeFormat); - } - - if (is_array($data)) { - foreach ($data as $property => $value) { - $data[$property] = self::sanitizeForSerialization($value); - } - return $data; - } - - if (is_object($data)) { - $values = []; - if ($data instanceof ModelInterface) { - $formats = $data::openAPIFormats(); - foreach ($data::openAPITypes() as $property => $openAPIType) { - $getter = $data::getters()[$property]; - $value = $data->$getter(); - if ($value !== null) { - $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIType, $formats[$property]); - } - } - } else if (is_callable([$data, 'getAllowableEnumValues'])) { - $callable = [$data, 'getAllowableEnumValues']; - $allowedEnumTypes = $callable(); - $enumVal = strtoupper((string)$data->value); - if (!in_array($enumVal, $allowedEnumTypes, true)) { - $imploded = implode("', '", $allowedEnumTypes); - throw new \InvalidArgumentException("Invalid value for enum '$type', must be one of: '$imploded'"); - } - - return self::sanitizeForSerialization($data->value); - } else { - foreach($data as $property => $value) { - $values[$property] = self::sanitizeForSerialization($value); - } - } - return (object)$values; - } else { - return (string)$data; - } - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param string $filename filename to be sanitized - * - * @return string the sanitized filename - */ - public static function sanitizeFilename($filename) - { - if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { - return $match[1]; - } else { - return $filename; - } - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the path, by url-encoding. - * - * @param string $value a string which will be part of the path - * @param bool $isPath if true, slashes in $value will not be encoded - * - * @return string the serialized object - */ - public static function toPathValue($value, $isPath = false) - { - $encoded = rawurlencode(self::toString($value)); - if ($isPath) { - $encoded = str_replace('%2F', '/', $encoded); - } - return $encoded; - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the query, by imploding comma-separated if it's an object. - * If it's a string, pass through unchanged. It will be url-encoded - * later. - * - * @param string[]|string|DateTime $object an object to be serialized to a string - * - * @return string the serialized object - */ - public static function toQueryValue($object) - { - if (is_array($object)) { - return implode(',', $object); - } else { - return self::toString($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 - * - * @param string $value a string which will be part of the header - * - * @return string the header string - */ - public static function toHeaderValue($value) - { - $callable = [$value, 'toHeaderValue']; - if (is_callable($callable)) { - return $callable(); - } - - return self::toString($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 - * - * @param string|\SplFileObject $value the value of the form parameter - * - * @return string the form string - */ - public static function toFormValue($value) - { - if ($value instanceof \SplFileObject) { - return $value->getRealPath(); - } else { - return self::toString($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 boolean, convert it to "true" or "false". - * - * @param string|bool|DateTime $value the value of the parameter - * - * @return string the header string - */ - public static function toString($value) - { - if ($value instanceof DateTime) { // datetime in ISO8601 format - return $value->format(self::$dateTimeFormat); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; - } else { - return $value; - } - } - - /** - * Serialize an array to a string. - * - * @param array $collection collection to serialize to a string - * @param string $style the format use for serialization (csv, - * ssv, tsv, pipes, multi) - * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array - * - * @return string - */ - public static function serializeCollection(array $collection, $style, $allowCollectionFormatMulti = false) - { - if ($allowCollectionFormatMulti && ('multi' === $style)) { - // http_build_query() almost does the job for us. We just - // need to fix the result of multidimensional arrays. - return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); - } - switch ($style) { - case 'pipeDelimited': - case 'pipes': - return implode('|', $collection); - - case 'tsv': - return implode("\t", $collection); - - case 'spaceDelimited': - case 'ssv': - return implode(' ', $collection); - - case 'simple': - case 'csv': - // Deliberate fall through. CSV is default format. - default: - return implode(',', $collection); - } - } - - /** - * 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 - * @param string[] $httpHeaders HTTP headers - * @param string $discriminator discriminator if polymorphism is used - * - * @return object|array|null a single or an array of $class instances - */ - public static function deserialize($data, $class, $httpHeaders = null) - { - if (null === $data) { - return null; - } - - if (strcasecmp(substr($class, -2), '[]') === 0) { - $data = is_string($data) ? json_decode($data) : $data; - - if (!is_array($data)) { - throw new \InvalidArgumentException("Invalid array '$class'"); - } - - $subClass = substr($class, 0, -2); - $values = []; - foreach ($data as $key => $value) { - $values[] = self::deserialize($value, $subClass, null); - } - return $values; - } - - if (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] - $data = is_string($data) ? json_decode($data, true) : $data; - settype($data, 'array'); - $inner = substr($class, 4, -1); - $deserialized = []; - if (strrpos($inner, ",") !== false) { - $subClass_array = explode(',', $inner, 2); - $subClass = $subClass_array[1]; - foreach ($data as $key => $value) { - $deserialized[$key] = self::deserialize($value, $subClass, null); - } - } - return $deserialized; - } - - if ($class === 'object') { - settype($data, 'array'); - return $data; - } - - if ($class === '\DateTime') { - // 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 - // what is meant. The invalid empty string is probably to - // be interpreted as a missing field/value. Let's handle - // this graceful. - if (!empty($data)) { - try { - return new DateTime($data); - } catch (\Exception $exception) { - // Some API's return a date-time with too high nanosecond - // precision for php's DateTime to handle. This conversion - // (string -> unix timestamp -> DateTime) is a workaround - // for the problem. - return (new DateTime())->setTimestamp(strtotime($data)); - } - } else { - return null; - } - } - - // Sometimes Amazon returns empty objects instead of empty strings - if ($class === 'string' && gettype($data) === 'object' && json_encode($data) === '{}') { - return ''; - } - - /** @psalm-suppress ParadoxicalCondition */ - if (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { - // Boolean value "false" will get parsed to 1 instead of 0 by default - if (($class === 'bool' || $class === 'boolean') && $data === 'false') { - $data = false; - } - - settype($data, $class); - return $data; - } - - if ($class === '\SplFileObject') { - /** @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::getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); - } else { - $filename = tempnam(Configuration::getTempFolderPath(), ''); - } - - $file = fopen($filename, 'w'); - while ($chunk = $data->read(200)) { - fwrite($file, $chunk); - } - fclose($file); - - return new \SplFileObject($filename, 'r'); - } elseif (method_exists($class, 'getAllowableEnumValues')) { - if (!in_array($data, $class::getAllowableEnumValues(), true)) { - $imploded = implode("', '", $class::getAllowableEnumValues()); - throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); - } - return new $class($data); - } else { - $data = is_string($data) ? json_decode($data) : $data; - // 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 = '\SellingPartnerApi\Model\\' . $data->{$discriminator}; - if (is_subclass_of($subclass, $class)) { - $class = $subclass; - } - } - - /** @var ModelInterface $instance */ - $instance = new $class(); - foreach ($instance::openAPITypes() as $property => $type) { - $propertySetter = $instance::setters()[$property]; - - if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) { - continue; - } - - if (isset($data->{$instance::attributeMap()[$property]})) { - $propertyValue = $data->{$instance::attributeMap()[$property]}; - $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); - } - - if ($httpHeaders !== null) { - $instance->setHeaders($httpHeaders); - } - } - return $instance; - } - } -} diff --git a/lib/ReportType.php b/lib/ReportType.php deleted file mode 100644 index fb8287aa3..000000000 --- a/lib/ReportType.php +++ /dev/null @@ -1,878 +0,0 @@ - ContentType::JSON, - 'name' => 'GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Vendor Retail Analytics reports - public const GET_VENDOR_SALES_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_SALES_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_SALES_DIAGNOSTIC_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_SALES_DIAGNOSTIC_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_TRAFFIC_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_TRAFFIC_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_INVENTORY_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_INVENTORY_REPORT', - 'requested' => true, - 'scheduled' => false, - 'restricted' => false, - ]; - public const GET_VENDOR_FORECASTING_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_FORECASTING_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_DEMAND_FORECAST_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_DEMAND_FORECAST_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Seller Retail Analytics reports - public const GET_SALES_AND_TRAFFIC_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_SALES_AND_TRAFFIC_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Inventory reports - public const GET_FLAT_FILE_OPEN_LISTINGS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_OPEN_LISTINGS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_ALL_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_ALL_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_INACTIVE_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_INACTIVE_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_DATA_LITE = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_DATA_LITE', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_LISTINGS_DATA_LITER = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_DATA_LITER', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANT_CANCELLED_LISTINGS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_CANCELLED_LISTINGS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MERCHANTS_LISTINGS_FYP_REPORT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANTS_LISTINGS_FYP_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_MERCHANT_LISTINGS_DEFECT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MERCHANT_LISTINGS_DEFECT_DATA', - 'restricted' => false, - ]; - public const GET_PAN_EU_OFFER_STATUS = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_PAN_EU_OFFER_STATUS', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_MFN_PAN_EU_OFFER_STATUS = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_MFN_PAN_EU_OFFER_STATUS', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FLAT_FILE_GEO_OPPORTUNITIES = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_GEO_OPPORTUNITIES', - 'restricted' => false, - ]; - public const GET_REFERRAL_FEE_PREVIEW_REPORT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_REFERRAL_FEE_PREVIEW_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Order reports - public const GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_ORDER_REPORT_DATA_INVOICING = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_ORDER_REPORT_DATA_INVOICING', - 'restricted' => true, - 'requested' => false, - 'scheduled' => true, - ]; - public const GET_ORDER_REPORT_DATA_TAX = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_ORDER_REPORT_DATA_TAX', - 'restricted' => true, - 'requested' => false, - 'scheduled' => true, ]; - public const GET_ORDER_REPORT_DATA_SHIPPING = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_ORDER_REPORT_DATA_SHIPPING', - 'restricted' => true, - 'requested' => false, - 'scheduled' => true, - ]; - public const GET_FLAT_FILE_ORDER_REPORT_DATA_INVOICING = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ORDER_REPORT_DATA_INVOICING', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_FLAT_FILE_ORDER_REPORT_DATA_TAX = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ORDER_REPORT_DATA_TAX', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Order tracking reports - public const GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_XML_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - // Pending order reports - public const GET_FLAT_FILE_PENDING_ORDERS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_PENDING_ORDERS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_PENDING_ORDERS_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_PENDING_ORDERS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_CONVERGED_FLAT_FILE_PENDING_ORDERS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_CONVERGED_FLAT_FILE_PENDING_ORDERS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Returns reports - public const GET_XML_RETURNS_DATA_BY_RETURN_DATE = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_RETURNS_DATA_BY_RETURN_DATE', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_XML_MFN_PRIME_RETURNS_REPORT = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_MFN_PRIME_RETURNS_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_CSV_MFN_PRIME_RETURNS_REPORT = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_CSV_MFN_PRIME_RETURNS_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_XML_MFN_SKU_RETURN_ATTRIBUTES_REPORT = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_MFN_SKU_RETURN_ATTRIBUTES_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_FLAT_FILE_MFN_SKU_RETURN_ATTRIBUTES_REPORT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_MFN_SKU_RETURN_ATTRIBUTES_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Performance reports - public const GET_SELLER_FEEDBACK_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_SELLER_FEEDBACK_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_V1_SELLER_PERFORMANCE_REPORT = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_V1_SELLER_PERFORMANCE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_V2_SELLER_PERFORMANCE_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_V2_SELLER_PERFORMANCE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_PROMOTION_PERFORMANCE_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_PROMOTION_PERFORMANCE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_COUPON_PERFORMANCE_REPORT = [ - 'contentType' => ContentType::JSON, - 'name' => 'GET_COUPON_PERFORMANCE_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Settlement reports - public const GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE', - 'restricted' => false, - 'requested' => false, - 'scheduled' => false, - ]; - public const GET_V2_SETTLEMENT_REPORT_DATA_XML = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_V2_SETTLEMENT_REPORT_DATA_XML', - 'restricted' => false, - 'requested' => false, - 'scheduled' => false, - ]; - public const GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2 = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2', - 'restricted' => false, - 'requested' => false, - 'scheduled' => false, - ]; - - - // FBA sales reports - public const GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_AMAZON_FULFILLED_SHIPMENTS_DATA_INVOICING = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_AMAZON_FULFILLED_SHIPMENTS_DATA_INVOICING', - 'restricted' => true, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_AMAZON_FULFILLED_SHIPMENTS_DATA_TAX = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_AMAZON_FULFILLED_SHIPMENTS_DATA_TAX', - 'restricted' => true, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_SALES_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_SALES_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_REMOTE_FULFILLMENT_ELIGIBILITY = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_REMOTE_FULFILLMENT_ELIGIBILITY', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - // FBA inventory reports - public const GET_AFN_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_AFN_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_AFN_INVENTORY_DATA_BY_COUNTRY = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_AFN_INVENTORY_DATA_BY_COUNTRY', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_LEDGER_SUMMARY_VIEW_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_LEDGER_SUMMARY_VIEW_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_LEDGER_DETAIL_VIEW_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_LEDGER_DETAIL_VIEW_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_RESERVED_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_RESERVED_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_INVENTORY_HEALTH_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_INVENTORY_HEALTH_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_MYI_ALL_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_MYI_ALL_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_INBOUND_NONCOMPLIANCE_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_INBOUND_NONCOMPLIANCE_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_STRANDED_INVENTORY_UI_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_STRANDED_INVENTORY_UI_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_STRANDED_INVENTORY_LOADER_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_STRANDED_INVENTORY_LOADER_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_INVENTORY_AGED_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_INVENTORY_AGED_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_EXCESS_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_EXCESS_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_STORAGE_FEE_CHARGES_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_STORAGE_FEE_CHARGES_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_PRODUCT_EXCHANGE_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_PRODUCT_EXCHANGE_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_INVENTORY_PLANNING_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_INVENTORY_PLANNING_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_OVERAGE_FEE_CHARGES_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_OVERAGE_FEE_CHARGES_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // FBA payments reports - public const GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_REIMBURSEMENTS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_REIMBURSEMENTS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // FBA customer concessions reports - public const GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // FBA removals reports - public const GET_FBA_RECOMMENDED_REMOVAL_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_RECOMMENDED_REMOVAL_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // FBA small and light reports - public const GET_FBA_UNO_INVENTORY_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FBA_UNO_INVENTORY_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Tax reports - public const GET_FLAT_FILE_SALES_TAX_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_SALES_TAX_DATA', - 'restricted' => false, - 'requested' => false, - 'scheduled' => false, - ]; - public const SC_VAT_TAX_REPORT = [ - 'contentType' => ContentType::CSV, - 'name' => 'SC_VAT_TAX_REPORT', - 'restricted' => true, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_VAT_TRANSACTION_DATA = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_VAT_TRANSACTION_DATA', - 'restricted' => true, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_GST_MTR_B2B_CUSTOM = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_GST_MTR_B2B_CUSTOM', - 'restricted' => true, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_GST_MTR_B2C_CUSTOM = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_GST_MTR_B2C_CUSTOM', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_GST_STR_ADHOC = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_GST_STR_ADHOC', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Invoice data reports - public const GET_FLAT_FILE_VAT_INVOICE_DATA_REPORT = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_FLAT_FILE_VAT_INVOICE_DATA_REPORT', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - public const GET_XML_VAT_INVOICE_DATA_REPORT = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_VAT_INVOICE_DATA_REPORT', - 'restricted' => true, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Browse tree report - public const GET_XML_BROWSE_TREE_DATA = [ - 'contentType' => ContentType::XML, - 'name' => 'GET_XML_BROWSE_TREE_DATA', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Easy ship reports - public const GET_EASYSHIP_DOCUMENTS = [ - 'contentType' => ContentType::PDF, - 'name' => 'GET_EASYSHIP_DOCUMENTS', - 'restricted' => true, - ]; - public const GET_EASYSHIP_PICKEDUP = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_EASYSHIP_PICKEDUP', - 'restricted' => false, - ]; - public const GET_EASYSHIP_WAITING_FOR_PICKUP = [ - 'contentType' => ContentType::TAB, - 'name' => 'GET_EASYSHIP_WAITING_FOR_PICKUP', - 'restricted' => false, - ]; - - - // Amazon business reports - public const RFQD_BULK_DOWNLOAD = [ - 'contentType' => ContentType::XLSX, - 'name' => 'RFQD_BULK_DOWNLOAD', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - public const FEE_DISCOUNTS_REPORT = [ - 'contentType' => ContentType::XLSX, - 'name' => 'FEE_DISCOUNTS_REPORT', - 'restricted' => false, - 'requested' => true, - 'scheduled' => true, - ]; - - - // Amazon pay report - public const GET_FLAT_FILE_OFFAMAZONPAYMENTS_SANDBOX_SETTLEMENT_DATA = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_FLAT_FILE_OFFAMAZONPAYMENTS_SANDBOX_SETTLEMENT_DATA', - 'restricted' => false, - ]; - - - // B2B product opportunities reports - public const GET_B2B_PRODUCT_OPPORTUNITIES_RECOMMENDED_FOR_YOU = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_B2B_PRODUCT_OPPORTUNITIES_RECOMMENDED_FOR_YOU', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - public const GET_B2B_PRODUCT_OPPORTUNITIES_NOT_YET_ON_AMAZON = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_B2B_PRODUCT_OPPORTUNITIES_NOT_YET_ON_AMAZON', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - - - // Regulatory compliance reports - const GET_EPR_MONTHLY_REPORTS = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_EPR_MONTHLY_REPORTS', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - const GET_EPR_QUARTERLY_REPORTS = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_EPR_QUARTERLY_REPORTS', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; - const GET_EPR_ANNUAL_REPORTS = [ - 'contentType' => ContentType::CSV, - 'name' => 'GET_EPR_ANNUAL_REPORTS', - 'restricted' => false, - 'requested' => true, - 'scheduled' => false, - ]; -} diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index 6e5e83a84..000000000 --- a/phpunit.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - lib - - - - - test - - - diff --git a/resources/apis.json b/resources/apis.json new file mode 100644 index 000000000..fa363c3f4 --- /dev/null +++ b/resources/apis.json @@ -0,0 +1,429 @@ +{ + "seller": { + "application-management": { + "name": "Application Management", + "versions": [ + { + "version": "2023-11-30", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/application-management-api-model/application_2023-11-30.json" + } + ] + }, + "a-plus-content": { + "name": "A Plus Content", + "versions": [ + { + "version": "2020-11-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/aplus-content-api-model/aplusContent_2020-11-01.json" + } + ] + }, + "authorization": { + "name": "Authorization", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/authorization-api-model/authorization.json", + "deprecated": true + } + ] + }, + "catalog-items": { + "name": "Catalog Items", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItemsV0.json" + }, + { + "version": "2020-12-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItems_2020-12-01.json" + }, + { + "version": "2022-04-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItems_2022-04-01.json" + } + ] + }, + "data-kiosk": { + "name": "Data Kiosk", + "versions": [ + { + "version": "2023-11-15", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/data-kiosk-api-model/dataKiosk_2023-11-15.json" + } + ] + }, + "easy-ship": { + "name": "Easy Ship", + "versions": [ + { + "version": "2022-03-23", + "url": "https://github.com/amzn/selling-partner-api-models/raw/main/models/easy-ship-model/easyShip_2022-03-23.json" + } + ] + }, + "fba-inbound-eligibility": { + "name": "FBA Inbound Eligibility", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fba-inbound-eligibility-api-model/fbaInbound.json" + } + ] + }, + "fba-inbound": { + "name": "FBA Inbound", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fulfillment-inbound-api-model/fulfillmentInboundV0.json" + } + ] + }, + "fba-inventory": { + "name": "FBA Inventory", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fba-inventory-api-model/fbaInventory.json" + } + ] + }, + "fba-outbound": { + "name": "FBA Outbound", + "versions": [ + { + "version": "2020-07-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fulfillment-outbound-api-model/fulfillmentOutbound_2020-07-01.json" + } + ] + }, + "fba-small-and-light": { + "name": "FBA Small and Light", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fba-small-and-light-api-model/fbaSmallandLight.json", + "deprecated": true + } + ] + }, + "feeds": { + "name": "Feeds", + "versions": [ + { + "version": "2021-06-30", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/feeds-api-model/feeds_2021-06-30.json" + } + ] + }, + "finances": { + "name": "Finances", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/finances-api-model/financesV0.json" + } + ] + }, + "listings-restrictions": { + "name": "Listings Restrictions", + "versions": [ + { + "version": "2021-08-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/listings-restrictions-api-model/listingsRestrictions_2021-08-01.json" + } + ] + }, + "listings-items": { + "name": "Listings Items", + "versions": [ + { + "version": "2020-09-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/listings-items-api-model/listingsItems_2020-09-01.json" + }, + { + "version": "2021-08-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/listings-items-api-model/listingsItems_2021-08-01.json" + } + ] + }, + "merchant-fulfillment": { + "name": "Merchant Fulfillment", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/merchant-fulfillment-api-model/merchantFulfillmentV0.json" + } + ] + }, + "messaging": { + "name": "Messaging", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/messaging-api-model/messaging.json" + } + ] + }, + "notifications": { + "name": "Notifications", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/notifications-api-model/notifications.json" + } + ] + }, + "orders": { + "name": "Orders", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/orders-api-model/ordersV0.json" + } + ] + }, + "product-fees": { + "name": "Product Fees", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/product-fees-api-model/productFeesV0.json" + } + ] + }, + "product-pricing": { + "name": "Product Pricing", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/product-pricing-api-model/productPricingV0.json" + }, + { + "version": "2022-05-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/product-pricing-api-model/productPricing_2022-05-01.json" + } + ] + }, + "product-type-definitions": { + "name": "Product Type Definitions", + "versions": [ + { + "version": "2020-09-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/product-type-definitions-api-model/definitionsProductTypes_2020-09-01.json" + } + ] + }, + "replenishment": { + "name": "Replenishment", + "versions": [ + { + "version": "2022-11-07", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/replenishment-api-model/replenishment-2022-11-07.json" + } + ] + }, + "reports": { + "name": "Reports", + "versions": [ + { + "version": "2021-06-30", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/reports-api-model/reports_2021-06-30.json" + } + ] + }, + "sales": { + "name": "Sales", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/sales-api-model/sales.json" + } + ] + }, + "sellers": { + "name": "Sellers", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/sellers-api-model/sellers.json" + } + ] + }, + "services": { + "name": "Services", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/services-api-model/services.json" + } + ] + }, + "shipment-invoicing": { + "name": "Shipment Invoicing", + "versions": [ + { + "version": 0, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/shipment-invoicing-api-model/shipmentInvoicingV0.json" + } + ] + }, + "shipping": { + "name": "Shipping", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/shipping-api-model/shipping.json", + "deprecated": true + }, + { + "version": 2, + "url": "https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-model", + "selector": "code[data-lang='json']" + } + ] + }, + "solicitations": { + "name": "Solicitations", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/solicitations-api-model/solicitations.json" + } + ] + }, + "supply-sources": { + "name": "Supply Sources", + "versions": [ + { + "version": "2020-07-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/supply-sources-api-model/supplySources_2020-07-01.json" + } + ] + }, + "tokens": { + "name": "Tokens", + "versions": [ + { + "version": "2021-03-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/tokens-api-model/tokens_2021-03-01.json" + } + ] + }, + "uploads": { + "name": "Uploads", + "versions": [ + { + "version": "2020-11-01", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/uploads-api-model/uploads_2020-11-01.json" + } + ] + } + }, + "vendor": { + "direct-fulfillment-inventory": { + "name": "Direct Fulfillment Inventory", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-inventory-api-model/vendorDirectFulfillmentInventoryV1.json" + } + ] + }, + "direct-fulfillment-orders": { + "name": "Direct Fulfillment Orders", + "versions": [ + { + "version": "2021-12-28", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-orders-api-model/vendorDirectFulfillmentOrders_2021-12-28.json" + }, + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-orders-api-model/vendorDirectFulfillmentOrdersV1.json" + } + ] + }, + "direct-fulfillment-payment": { + "name": "Direct Fulfillment Payment", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-payments-api-model/vendorDirectFulfillmentPaymentsV1.json" + } + ] + }, + "direct-fulfillment-sandbox": { + "name": "Direct Fulfillment Sandbox", + "versions": [ + { + "version": "2021-10-28", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-sandbox-test-data-api-model/vendorDirectFulfillmentSandboxData_2021-10-28.json" + } + ] + }, + "direct-fulfillment-shipping": { + "name": "Direct Fulfillment Shipping", + "versions": [ + { + "version": "2021-12-28", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-shipping-api-model/vendorDirectFulfillmentShipping_2021-12-28.json" + }, + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-shipping-api-model/vendorDirectFulfillmentShippingV1.json" + } + ] + }, + "direct-fulfillment-transactions": { + "name": "Direct Fulfillment Transactions", + "versions": [ + { + "version": "2021-12-28", + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-transactions-api-model/vendorDirectFulfillmentTransactions_2021-12-28.json" + }, + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-direct-fulfillment-transactions-api-model/vendorDirectFulfillmentTransactionsV1.json" + } + ] + }, + "invoices": { + "name": "Invoices", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-invoices-api-model/vendorInvoices.json" + } + ] + }, + "orders": { + "name": "Orders", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-orders-api-model/vendorOrders.json" + } + ] + }, + "shipments": { + "name": "Shipments", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-shipments-api-model/vendorShipments.json" + } + ] + }, + "transaction-status": { + "name": "Transaction Status", + "versions": [ + { + "version": 1, + "url": "https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/vendor-transaction-status-api-model/vendorTransactionStatus.json" + } + ] + } + } +} diff --git a/resources/feeds.json b/resources/feeds.json new file mode 100644 index 000000000..b3ec68dab --- /dev/null +++ b/resources/feeds.json @@ -0,0 +1,36 @@ +{ + "JSON_LISTINGS_FEED": "application/json", + "POST_PRODUCT_DATA": "text/xml", + "POST_INVENTORY_AVAILABILITY_DATA": "text/xml", + "POST_PRODUCT_OVERRIDES_DATA": "text/xml", + "POST_PRODUCT_PRICING_DATA": "text/xml", + "POST_PRODUCT_IMAGE_DATA": "text/xml", + "POST_PRODUCT_RELATIONSHIP_DATA": "text/xml", + "POST_FLAT_FILE_INVLOADER_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_LISTINGS_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_BOOKLOADER_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA": "text/tab-separated-values", + "POST_UIEE_BOOKLOADER_DATA": "text/plain", + "POST_STD_ACES_DATA": "text/xml", + "POST_ORDER_ACKNOWLEDGEMENT_DATA": "text/xml", + "POST_PAYMENT_ADJUSTMENT_DATA": "text/xml", + "POST_ORDER_FULFILLMENT_DATA": "text/xml", + "POST_INVOICE_CONFIRMATION_DATA": "text/xml", + "POST_EXPECTED_SHIP_DATE_SOD": "text/xml", + "POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_FULFILLMENT_DATA": "text/tab-separated-values", + "POST_EXPECTED_SHIP_DATE_SOD_FLAT_FILE": "text/tab-separated-values", + "POST_FULFILLMENT_ORDER_REQUEST_DATA": "text/xml", + "POST_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA": "text/xml", + "POST_FBA_INBOUND_CARTON_CONTENTS": "text/xml", + "POST_FLAT_FILE_FULFILLMENT_ORDER_REQUEST_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA": "text/tab-separated-values", + "POST_FLAT_FILE_FBA_CREATE_INBOUND_PLAN": "text/tab-separated-values", + "POST_FLAT_FILE_FBA_UPDATE_INBOUND_PLAN": "text/tab-separated-values", + "POST_FLAT_FILE_FBA_CREATE_REMOVAL": "text/tab-separated-values", + "RFQ_UPLOAD_FEED": "text/tab-separated-values", + "POST_EASYSHIP_DOCUMENTS": "text/tab-separated-values", + "UPLOAD_VAT_INVOICE": "application/pdf" +} diff --git a/resources/generator-config.json b/resources/generator-config.json new file mode 100644 index 000000000..06ff42cd1 --- /dev/null +++ b/resources/generator-config.json @@ -0,0 +1,10 @@ +{ + "version": "6.0.0", + "type": "openapi", + "outputDir": "src", + "force": true, + "connectorName": "SellingPartnerApi", + "namespace": "SellingPartnerApi", + "baseResourceNamespace": "SellingPartnerApi", + "resourceNamespaceSuffix": null +} \ No newline at end of file diff --git a/resources/metadata/middleware.json b/resources/metadata/middleware.json new file mode 100644 index 000000000..29acda797 --- /dev/null +++ b/resources/metadata/middleware.json @@ -0,0 +1,8 @@ +{ + "/reports/2021-06-30/documents/{reportDocumentId}": { + "get": { + "request": ["RestrictedReport"], + "response": [] + } + } +} diff --git a/resources/metadata/modifications.json b/resources/metadata/modifications.json new file mode 100644 index 000000000..f860aaa67 --- /dev/null +++ b/resources/metadata/modifications.json @@ -0,0 +1,19 @@ +{ + "/reports/2021-06-30/documents/{reportDocumentId}": [ + { + "action": "merge", + "path": "paths./reports/2021-06-30/documents/{reportDocumentId}.get.parameters", + "value": [ + { + "name": "reportType", + "in": "query", + "description": "The report type of the report document.", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + ] +} diff --git a/resources/metadata/restricted.json b/resources/metadata/restricted.json new file mode 100644 index 000000000..870135cf9 --- /dev/null +++ b/resources/metadata/restricted.json @@ -0,0 +1,178 @@ +{ + "/easyShip/2022-03-23/packages/bulk": { + "genericPath": true, + "operations": { + "post": [] + } + }, + "/mfn/v0/shipments/{shipmentId}": { + "genericPath": true, + "operations": { + "get": [], + "delete": [] + } + }, + "/mfn/v0/shipments/{shipmentId}/cancel": { + "genericPath": true, + "operations": { + "put": [] + } + }, + "/mfn/v0/shipments": { + "genericPath": true, + "operations": { + "post": [] + } + }, + "/orders/v0/orders": { + "genericPath": true, + "operations": { + "get": ["buyerInfo", "shippingAddress"] + } + }, + "/orders/v0/orders/{orderId}": { + "genericPath": true, + "operations": { + "get": ["buyerInfo", "shippingAddress"] + } + }, + "/orders/v0/orders/{orderId}/orderItems": { + "genericPath": true, + "operations": { + "get": ["buyerInfo"] + } + }, + "/orders/v0/orders/{orderId}/regulatedInfo": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/orders/v0/orders/{orderId}/address": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/orders/v0/orders/{orderId}/buyerInfo": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/orders/v0/orders/{orderId}/orderItems/buyerInfo": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/reports/2021-06-30/documents/{reportDocumentId}": { + "genericPath": false, + "operations": { + "get": [] + } + }, + "/fba/outbound/brazil/v0/shipments/{shipmentId}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/shipping/v1/shipments/{shipmentId}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/orders/v1/purchaseOrders": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/v1/shippingLabels/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/v1/packingSlips/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/v1/packingSlips": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/v1/customerInvoices/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/v1/customerInvoices": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [], + "post": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/packingSlips": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/packingSlips/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/customerInvoices": { + "genericPath": true, + "operations": { + "get": [] + } + }, + "/vendor/directFulfillment/shipping/2021-12-28/customerInvoices/{purchaseOrderNumber}": { + "genericPath": true, + "operations": { + "get": [] + } + } +} diff --git a/resources/metadata/scopes.json b/resources/metadata/scopes.json new file mode 100644 index 000000000..0e4007787 --- /dev/null +++ b/resources/metadata/scopes.json @@ -0,0 +1,17 @@ +{ + "/authorization/v1/authorizationCode": { + "get": "sellingpartnerapi::migration" + }, + "/notifications/v1/subscriptions/{notificationType}/{subscriptionId}": { + "get": "sellingpartnerapi::notifications", + "delete": "sellingpartnerapi::notifications" + }, + "/notifications/v1/destinations": { + "get": "sellingpartnerapi::notifications", + "post": "sellingpartnerapi::notifications" + }, + "/notifications/v1/destinations/{destinationId}": { + "get": "sellingpartnerapi::notifications", + "delete": "sellingpartnerapi::notifications" + } +} diff --git a/resources/metadata/traits.json b/resources/metadata/traits.json new file mode 100644 index 000000000..c4c30e906 --- /dev/null +++ b/resources/metadata/traits.json @@ -0,0 +1,15 @@ +{ + "seller": { + "feeds": { + "2021-06-30": { + "FeedDocument": ["DownloadsDocument"], + "CreateFeedDocumentResponse": ["UploadsDocument"] + } + }, + "reports": { + "2021-06-30": { + "ReportDocument": ["DownloadsDocument"] + } + } + } +} diff --git a/resources/models/raw/.gitignore b/resources/models/raw/.gitignore new file mode 100644 index 000000000..d6b7ef32c --- /dev/null +++ b/resources/models/raw/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/resources/models/seller/a-plus-content/v2020-11-01.json b/resources/models/seller/a-plus-content/v2020-11-01.json new file mode 100644 index 000000000..8f5f52c63 --- /dev/null +++ b/resources/models/seller/a-plus-content/v2020-11-01.json @@ -0,0 +1,4022 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for A+ Content Management", + "description": "With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-11-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/aplus\/2020-11-01\/contentDocuments": { + "get": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Returns a list of all A+ Content documents assigned to a selling partner. This operation returns only the metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+ Content documents.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "searchContentDocuments", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.", + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SearchContentDocumentsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Creates a new A+ Content document.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "createContentDocument", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "The content document request details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "postContentDocumentRequest" + } + }, + "\/aplus\/2020-11-01\/contentDocuments\/{contentReferenceKey}": { + "get": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Returns an A+ Content document, if available.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getContentDocument", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "includedDataSet", + "in": "query", + "description": "The set of A+ Content data types to include in the response.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "CONTENTS", + "METADATA" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CONTENTS", + "description": "The contents of the content document." + }, + { + "value": "METADATA", + "description": "The metadata of the content document." + } + ] + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetContentDocumentResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Updates an existing A+ Content document.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "updateContentDocument", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "The content document request details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "postContentDocumentRequest" + } + }, + "\/aplus\/2020-11-01\/contentDocuments\/{contentReferenceKey}\/asins": { + "get": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the asinSet parameter, the operation returns all ASINs related to the content document.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "listContentDocumentAsinRelations", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "includedDataSet", + "in": "query", + "description": "The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata.", + "style": "form", + "explode": false, + "schema": { + "minItems": 0, + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "METADATA" + ], + "x-docgen-enum-table-extension": [ + { + "value": "METADATA", + "description": "The metadata of the content document." + } + ] + } + } + }, + { + "name": "asinSet", + "in": "query", + "description": "The set of ASINs.", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "minLength": 10, + "type": "string" + } + } + }, + { + "name": "pageToken", + "in": "query", + "description": "A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.", + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListContentDocumentAsinRelationsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Replaces all ASINs related to the specified A+ Content document, if available. This may add or remove ASINs, depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content document from that ASIN.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "postContentDocumentAsinRelations", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "The content document ASIN relations request details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentAsinRelationsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentAsinRelationsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "postContentDocumentAsinRelationsRequest" + } + }, + "\/aplus\/2020-11-01\/contentAsinValidations": { + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Checks if the A+ Content document is valid for use on a set of ASINs.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "validateContentDocumentAsinRelations", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "asinSet", + "in": "query", + "description": "The set of ASINs.", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "minLength": 10, + "type": "string" + } + } + } + ], + "requestBody": { + "description": "The content document request details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ValidateContentDocumentAsinRelationsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "postContentDocumentRequest" + } + }, + "\/aplus\/2020-11-01\/contentPublishRecords": { + "get": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Searches for A+ Content publishing records, if available.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "searchContentPublishRecords", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "asin", + "in": "query", + "description": "The Amazon Standard Identification Number (ASIN).", + "required": true, + "schema": { + "minLength": 10, + "type": "string" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.", + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SearchContentPublishRecordsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/aplus\/2020-11-01\/contentDocuments\/{contentReferenceKey}\/approvalSubmissions": { + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Submits an A+ Content document for review, approval, and publishing.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "postContentDocumentApprovalSubmission", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentApprovalSubmissionResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/aplus\/2020-11-01\/contentDocuments\/{contentReferenceKey}\/suspendSubmissions": { + "post": { + "tags": [ + "APlusContentV20201101" + ], + "description": "Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN relations.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 10 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "postContentDocumentSuspendSubmission", + "parameters": [ + { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PostContentDocumentSuspendSubmissionResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "410": { + "description": "The specified resource no longer exists.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "AplusResponse": { + "type": "object", + "properties": { + "warnings": { + "$ref": "#\/components\/schemas\/MessageSet" + } + }, + "description": "The base response data for all A+ Content operations when a request is successful or partially successful. Individual operations may extend this with additional data." + }, + "AplusPaginatedResponse": { + "description": "The base response data for paginated A+ Content operations. Individual operations may extend this with additional data. If nextPageToken is not returned, there are no more pages to return.", + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + }, + { + "type": "object", + "properties": { + "nextPageToken": { + "$ref": "#\/components\/schemas\/PageToken" + } + } + } + ] + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "The error response for when a request is unsuccessful." + }, + "MessageSet": { + "uniqueItems": true, + "type": "array", + "description": "A set of messages to the user, such as warnings or comments.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "minLength": 1, + "type": "string", + "description": "The code that identifies the type of error condition." + }, + "message": { + "minLength": 1, + "type": "string", + "description": "A human readable description of the error condition." + }, + "details": { + "minLength": 1, + "type": "string", + "description": "Additional information, if available, to clarify the error condition." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ContentMetadataRecordList": { + "uniqueItems": false, + "type": "array", + "description": "A list of A+ Content metadata records.", + "items": { + "$ref": "#\/components\/schemas\/ContentMetadataRecord" + } + }, + "ContentMetadataRecord": { + "required": [ + "contentMetadata", + "contentReferenceKey" + ], + "type": "object", + "properties": { + "contentReferenceKey": { + "$ref": "#\/components\/schemas\/ContentReferenceKey" + }, + "contentMetadata": { + "$ref": "#\/components\/schemas\/ContentMetadata" + } + }, + "description": "The metadata for an A+ Content document, with additional information for content management." + }, + "ContentMetadata": { + "required": [ + "badgeSet", + "marketplaceId", + "name", + "status", + "updateTime" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "The A+ Content document name." + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "status": { + "$ref": "#\/components\/schemas\/ContentStatus" + }, + "badgeSet": { + "$ref": "#\/components\/schemas\/ContentBadgeSet" + }, + "updateTime": { + "type": "string", + "description": "The approximate age of the A+ Content document and metadata.", + "format": "date-time" + } + }, + "description": "The metadata of an A+ Content document." + }, + "ContentType": { + "type": "string", + "description": "The A+ Content document type.", + "enum": [ + "EBC", + "EMC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "EBC", + "description": "A+ Content published through the A+ Content Manager in Seller Central." + }, + { + "value": "EMC", + "description": "A+ Content published through the A+ Content Manager in Vendor Central." + } + ] + }, + "ContentSubType": { + "minLength": 1, + "type": "string", + "description": "The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time." + }, + "ContentStatus": { + "type": "string", + "description": "The submission status of the content document.", + "enum": [ + "APPROVED", + "DRAFT", + "REJECTED", + "SUBMITTED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "APPROVED", + "description": "The content is approved and will be published to applied ASINs." + }, + { + "value": "DRAFT", + "description": "The content has not yet been submitted for approval." + }, + { + "value": "REJECTED", + "description": "The content has been rejected in moderation and needs to be revised and resubmitted based on the rejection reasons provided." + }, + { + "value": "SUBMITTED", + "description": "The content has been submitted for approval and is currently waiting for moderation." + } + ] + }, + "ContentBadgeSet": { + "uniqueItems": true, + "type": "array", + "description": "The set of content badges.", + "items": { + "$ref": "#\/components\/schemas\/ContentBadge" + } + }, + "ContentBadge": { + "type": "string", + "description": "A flag that provides additional information about an A+ Content document.", + "enum": [ + "BULK", + "GENERATED", + "LAUNCHPAD", + "PREMIUM", + "STANDARD" + ], + "x-docgen-enum-table-extension": [ + { + "value": "BULK", + "description": "This content is applied to ASINs in bulk." + }, + { + "value": "GENERATED", + "description": "This content is generated by an automated process. If any user modifies this content, it will lose the GENERATED badge." + }, + { + "value": "LAUNCHPAD", + "description": "Launchpad content." + }, + { + "value": "PREMIUM", + "description": "Premium content" + }, + { + "value": "STANDARD", + "description": "Standard content." + } + ] + }, + "AsinBadgeSet": { + "uniqueItems": true, + "type": "array", + "description": "The set of ASIN badges.", + "items": { + "$ref": "#\/components\/schemas\/AsinBadge" + } + }, + "AsinBadge": { + "type": "string", + "description": "A flag that provides additional information about an ASIN. This is contextual and may change depending on the request that generated it.", + "enum": [ + "BRAND_NOT_ELIGIBLE", + "CATALOG_NOT_FOUND", + "CONTENT_NOT_PUBLISHED", + "CONTENT_PUBLISHED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "BRAND_NOT_ELIGIBLE", + "description": "This ASIN is not part of the current user's brand. If the current user corrects their brand registration to include this ASIN, it will lose the `BrandNotEligible` badge." + }, + { + "value": "CATALOG_NOT_FOUND", + "description": "This ASIN was not found in the Amazon catalog. If any user creates or restores this ASIN, it will lose the `CatalogNotFound` badge." + }, + { + "value": "CONTENT_NOT_PUBLISHED", + "description": "This ASIN does not have the specified A+ Content published to it. If the current user publishes the specified content for this ASIN, it will lose the `ContentNotPublished` badge." + }, + { + "value": "CONTENT_PUBLISHED", + "description": "This ASIN has the specified A+ Content published to it. If the current user suspends the specified content for this ASIN, it will lose the `ContentPublished` badge." + } + ] + }, + "MarketplaceId": { + "minLength": 1, + "type": "string", + "description": "The identifier for the marketplace where the A+ Content is published." + }, + "LanguageTag": { + "minLength": 5, + "type": "string", + "description": "The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags.\n**Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$" + }, + "AsinSet": { + "uniqueItems": true, + "type": "array", + "description": "The set of ASINs.", + "items": { + "$ref": "#\/components\/schemas\/Asin" + } + }, + "Asin": { + "minLength": 10, + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + "AsinMetadataSet": { + "uniqueItems": true, + "type": "array", + "description": "The set of ASIN metadata.", + "items": { + "$ref": "#\/components\/schemas\/AsinMetadata" + } + }, + "AsinMetadata": { + "required": [ + "asin" + ], + "type": "object", + "properties": { + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "badgeSet": { + "$ref": "#\/components\/schemas\/AsinBadgeSet" + }, + "parent": { + "$ref": "#\/components\/schemas\/Asin" + }, + "title": { + "minLength": 1, + "type": "string", + "description": "The title for the ASIN in the Amazon catalog." + }, + "imageUrl": { + "minLength": 1, + "type": "string", + "description": "The default image for the ASIN in the Amazon catalog." + }, + "contentReferenceKeySet": { + "$ref": "#\/components\/schemas\/ContentReferenceKeySet" + } + }, + "description": "The A+ Content ASIN with additional metadata for content management. If you don't include the `includedDataSet` parameter in a call to the listContentDocumentAsinRelations operation, the related ASINs are returned without metadata." + }, + "PublishRecordList": { + "uniqueItems": false, + "type": "array", + "description": "A list of A+ Content publishing records.", + "items": { + "$ref": "#\/components\/schemas\/PublishRecord" + } + }, + "PublishRecord": { + "required": [ + "asin", + "contentReferenceKey", + "contentType", + "locale", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "locale": { + "$ref": "#\/components\/schemas\/LanguageTag" + }, + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "contentType": { + "$ref": "#\/components\/schemas\/ContentType" + }, + "contentSubType": { + "$ref": "#\/components\/schemas\/ContentSubType" + }, + "contentReferenceKey": { + "$ref": "#\/components\/schemas\/ContentReferenceKey" + } + }, + "description": "The full context for an A+ Content publishing event." + }, + "ContentReferenceKeySet": { + "uniqueItems": true, + "type": "array", + "description": "A set of content reference keys.", + "items": { + "$ref": "#\/components\/schemas\/ContentReferenceKey" + } + }, + "ContentReferenceKey": { + "minLength": 1, + "type": "string", + "description": "A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier." + }, + "PageToken": { + "minLength": 1, + "type": "string", + "description": "A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter." + }, + "ImageCropSpecification": { + "required": [ + "size" + ], + "type": "object", + "properties": { + "size": { + "$ref": "#\/components\/schemas\/ImageDimensions" + }, + "offset": { + "$ref": "#\/components\/schemas\/ImageOffsets" + } + }, + "description": "The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0)." + }, + "ImageDimensions": { + "required": [ + "height", + "width" + ], + "type": "object", + "properties": { + "width": { + "$ref": "#\/components\/schemas\/IntegerWithUnits" + }, + "height": { + "$ref": "#\/components\/schemas\/IntegerWithUnits" + } + }, + "description": "The dimensions extending from the top left corner of the cropped image, or the top left corner of the original image if there is no cropping. Only `pixels` is allowed as the units value for ImageDimensions." + }, + "ImageOffsets": { + "required": [ + "x", + "y" + ], + "type": "object", + "properties": { + "x": { + "$ref": "#\/components\/schemas\/IntegerWithUnits" + }, + "y": { + "$ref": "#\/components\/schemas\/IntegerWithUnits" + } + }, + "description": "The top left corner of the cropped image, specified in the original image's coordinate space." + }, + "IntegerWithUnits": { + "required": [ + "units", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "integer", + "description": "The dimension value." + }, + "units": { + "type": "string", + "description": "The unit of measurement." + } + }, + "description": "A whole number dimension and its unit of measurement. For example, this can represent 100 pixels." + }, + "ContentRecord": { + "required": [ + "contentReferenceKey" + ], + "type": "object", + "properties": { + "contentReferenceKey": { + "$ref": "#\/components\/schemas\/ContentReferenceKey" + }, + "contentMetadata": { + "$ref": "#\/components\/schemas\/ContentMetadata" + }, + "contentDocument": { + "$ref": "#\/components\/schemas\/ContentDocument" + } + }, + "description": "A content document with additional information for content management." + }, + "ContentDocument": { + "required": [ + "contentModuleList", + "contentType", + "locale", + "name" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "The A+ Content document name." + }, + "contentType": { + "$ref": "#\/components\/schemas\/ContentType" + }, + "contentSubType": { + "$ref": "#\/components\/schemas\/ContentSubType" + }, + "locale": { + "$ref": "#\/components\/schemas\/LanguageTag" + }, + "contentModuleList": { + "$ref": "#\/components\/schemas\/ContentModuleList" + } + }, + "description": "The A+ Content document. This is the enhanced content that is published to product detail pages." + }, + "ContentModuleList": { + "maxItems": 100, + "minItems": 1, + "uniqueItems": false, + "type": "array", + "description": "A list of A+ Content modules.", + "items": { + "$ref": "#\/components\/schemas\/ContentModule" + } + }, + "ContentModule": { + "required": [ + "contentModuleType" + ], + "type": "object", + "properties": { + "contentModuleType": { + "$ref": "#\/components\/schemas\/ContentModuleType" + }, + "standardCompanyLogo": { + "$ref": "#\/components\/schemas\/StandardCompanyLogoModule" + }, + "standardComparisonTable": { + "$ref": "#\/components\/schemas\/StandardComparisonTableModule" + }, + "standardFourImageText": { + "$ref": "#\/components\/schemas\/StandardFourImageTextModule" + }, + "standardFourImageTextQuadrant": { + "$ref": "#\/components\/schemas\/StandardFourImageTextQuadrantModule" + }, + "standardHeaderImageText": { + "$ref": "#\/components\/schemas\/StandardHeaderImageTextModule" + }, + "standardImageSidebar": { + "$ref": "#\/components\/schemas\/StandardImageSidebarModule" + }, + "standardImageTextOverlay": { + "$ref": "#\/components\/schemas\/StandardImageTextOverlayModule" + }, + "standardMultipleImageText": { + "$ref": "#\/components\/schemas\/StandardMultipleImageTextModule" + }, + "standardProductDescription": { + "$ref": "#\/components\/schemas\/StandardProductDescriptionModule" + }, + "standardSingleImageHighlights": { + "$ref": "#\/components\/schemas\/StandardSingleImageHighlightsModule" + }, + "standardSingleImageSpecsDetail": { + "$ref": "#\/components\/schemas\/StandardSingleImageSpecsDetailModule" + }, + "standardSingleSideImage": { + "$ref": "#\/components\/schemas\/StandardSingleSideImageModule" + }, + "standardTechSpecs": { + "$ref": "#\/components\/schemas\/StandardTechSpecsModule" + }, + "standardText": { + "$ref": "#\/components\/schemas\/StandardTextModule" + }, + "standardThreeImageText": { + "$ref": "#\/components\/schemas\/StandardThreeImageTextModule" + } + }, + "description": "An A+ Content module. An A+ Content document is composed of content modules. The contentModuleType property selects which content module types to use." + }, + "ContentModuleType": { + "type": "string", + "description": "The type of A+ Content module.", + "enum": [ + "STANDARD_COMPANY_LOGO", + "STANDARD_COMPARISON_TABLE", + "STANDARD_FOUR_IMAGE_TEXT", + "STANDARD_FOUR_IMAGE_TEXT_QUADRANT", + "STANDARD_HEADER_IMAGE_TEXT", + "STANDARD_IMAGE_SIDEBAR", + "STANDARD_IMAGE_TEXT_OVERLAY", + "STANDARD_MULTIPLE_IMAGE_TEXT", + "STANDARD_PRODUCT_DESCRIPTION", + "STANDARD_SINGLE_IMAGE_HIGHLIGHTS", + "STANDARD_SINGLE_IMAGE_SPECS_DETAIL", + "STANDARD_SINGLE_SIDE_IMAGE", + "STANDARD_TECH_SPECS", + "STANDARD_TEXT", + "STANDARD_THREE_IMAGE_TEXT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "STANDARD_COMPANY_LOGO", + "description": "The standard company logo image." + }, + { + "value": "STANDARD_COMPARISON_TABLE", + "description": "The standard product comparison table or chart." + }, + { + "value": "STANDARD_FOUR_IMAGE_TEXT", + "description": "Four standard images with text, presented across a single row." + }, + { + "value": "STANDARD_FOUR_IMAGE_TEXT_QUADRANT", + "description": "Four standard images with text, presented on a grid of four quadrants." + }, + { + "value": "STANDARD_HEADER_IMAGE_TEXT", + "description": "Standard headline text, an image, and body text." + }, + { + "value": "STANDARD_IMAGE_SIDEBAR", + "description": "Two images, two paragraphs, and two bulleted lists. One image is smaller and is displayed in the sidebar." + }, + { + "value": "STANDARD_IMAGE_TEXT_OVERLAY", + "description": "A standard background image with a floating text box." + }, + { + "value": "STANDARD_MULTIPLE_IMAGE_TEXT", + "description": "Standard images with text, presented one at a time. The user clicks on thumbnails to view each block." + }, + { + "value": "STANDARD_PRODUCT_DESCRIPTION", + "description": "Standard product description text." + }, + { + "value": "STANDARD_SINGLE_IMAGE_HIGHLIGHTS", + "description": "A standard image with several paragraphs and a bulleted list." + }, + { + "value": "STANDARD_SINGLE_IMAGE_SPECS_DETAIL", + "description": "A standard image with paragraphs and a bulleted list, and extra space for technical details." + }, + { + "value": "STANDARD_SINGLE_SIDE_IMAGE", + "description": "A standard headline and body text with an image on the side." + }, + { + "value": "STANDARD_TECH_SPECS", + "description": "The standard table of technical feature names and definitions." + }, + { + "value": "STANDARD_TEXT", + "description": "Standard headline and body text." + }, + { + "value": "STANDARD_THREE_IMAGE_TEXT", + "description": "Three standard images with text, presented across one row." + } + ] + }, + "StandardCompanyLogoModule": { + "required": [ + "companyLogo" + ], + "type": "object", + "properties": { + "companyLogo": { + "$ref": "#\/components\/schemas\/ImageComponent" + } + }, + "description": "The standard company logo image." + }, + "StandardComparisonTableModule": { + "type": "object", + "properties": { + "productColumns": { + "maxItems": 6, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/StandardComparisonProductBlock" + } + }, + "metricRowLabels": { + "maxItems": 10, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/PlainTextItem" + } + } + }, + "description": "The standard product comparison table." + }, + "StandardFourImageTextModule": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "block1": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block2": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block3": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block4": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "Four standard images with text, presented across a single row." + }, + "StandardFourImageTextQuadrantModule": { + "required": [ + "block1", + "block2", + "block3", + "block4" + ], + "type": "object", + "properties": { + "block1": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block2": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block3": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block4": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "Four standard images with text, presented on a grid of four quadrants." + }, + "StandardHeaderImageTextModule": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "block": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "Standard headline text, an image, and body text." + }, + "StandardImageSidebarModule": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "imageCaptionBlock": { + "$ref": "#\/components\/schemas\/StandardImageCaptionBlock" + }, + "descriptionTextBlock": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "descriptionListBlock": { + "$ref": "#\/components\/schemas\/StandardTextListBlock" + }, + "sidebarImageTextBlock": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "sidebarListBlock": { + "$ref": "#\/components\/schemas\/StandardTextListBlock" + } + }, + "description": "Two images, two paragraphs, and two bulleted lists. One image is smaller and displayed in the sidebar." + }, + "StandardImageTextOverlayModule": { + "required": [ + "overlayColorType" + ], + "type": "object", + "properties": { + "overlayColorType": { + "$ref": "#\/components\/schemas\/ColorType" + }, + "block": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "A standard background image with a floating text box." + }, + "StandardMultipleImageTextModule": { + "type": "object", + "properties": { + "blocks": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/StandardImageTextCaptionBlock" + } + } + }, + "description": "Standard images with text, presented one at a time. The user clicks on thumbnails to view each block." + }, + "StandardProductDescriptionModule": { + "required": [ + "body" + ], + "type": "object", + "properties": { + "body": { + "$ref": "#\/components\/schemas\/ParagraphComponent" + } + }, + "description": "Standard product description text." + }, + "StandardSingleImageHighlightsModule": { + "type": "object", + "properties": { + "image": { + "$ref": "#\/components\/schemas\/ImageComponent" + }, + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "textBlock1": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "textBlock2": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "textBlock3": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "bulletedListBlock": { + "$ref": "#\/components\/schemas\/StandardHeaderTextListBlock" + } + }, + "description": "A standard image with several paragraphs and a bulleted list." + }, + "StandardSingleImageSpecsDetailModule": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "image": { + "$ref": "#\/components\/schemas\/ImageComponent" + }, + "descriptionHeadline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "descriptionBlock1": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "descriptionBlock2": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + }, + "specificationHeadline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "specificationListBlock": { + "$ref": "#\/components\/schemas\/StandardHeaderTextListBlock" + }, + "specificationTextBlock": { + "$ref": "#\/components\/schemas\/StandardTextBlock" + } + }, + "description": "A standard image with paragraphs and a bulleted list, and extra space for technical details." + }, + "StandardSingleSideImageModule": { + "required": [ + "imagePositionType" + ], + "type": "object", + "properties": { + "imagePositionType": { + "$ref": "#\/components\/schemas\/PositionType" + }, + "block": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "A standard headline and body text with an image on the side." + }, + "StandardTechSpecsModule": { + "required": [ + "specificationList" + ], + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "specificationList": { + "maxItems": 16, + "minItems": 4, + "type": "array", + "description": "The specification list.", + "items": { + "$ref": "#\/components\/schemas\/StandardTextPairBlock" + } + }, + "tableCount": { + "maximum": 2, + "minimum": 1, + "type": "integer", + "description": "The number of tables to present. Features are evenly divided between the tables." + } + }, + "description": "The standard table of technical feature names and definitions." + }, + "StandardTextModule": { + "required": [ + "body" + ], + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "body": { + "$ref": "#\/components\/schemas\/ParagraphComponent" + } + }, + "description": "A standard headline and body text." + }, + "StandardThreeImageTextModule": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "block1": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block2": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "block3": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + } + }, + "description": "Three standard images with text, presented across a single row." + }, + "StandardComparisonProductBlock": { + "required": [ + "position" + ], + "type": "object", + "properties": { + "position": { + "maximum": 6, + "minimum": 1, + "type": "integer", + "description": "The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module." + }, + "image": { + "$ref": "#\/components\/schemas\/ImageComponent" + }, + "title": { + "maxLength": 80, + "minLength": 1, + "type": "string", + "description": "The comparison product title." + }, + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "highlight": { + "type": "boolean", + "description": "Determines whether this block of content is visually highlighted." + }, + "metrics": { + "maxItems": 10, + "minItems": 0, + "type": "array", + "description": "Comparison metrics for the product.", + "items": { + "$ref": "#\/components\/schemas\/PlainTextItem" + } + } + }, + "description": "The A+ Content standard comparison product block." + }, + "StandardHeaderTextListBlock": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "block": { + "$ref": "#\/components\/schemas\/StandardTextListBlock" + } + }, + "description": "The A+ standard fixed-length list of text, with a related headline." + }, + "StandardTextListBlock": { + "required": [ + "textList" + ], + "type": "object", + "properties": { + "textList": { + "maxItems": 8, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/TextItem" + } + } + }, + "description": "The A+ Content standard fixed length list of text, usually presented as bullet points." + }, + "StandardImageTextCaptionBlock": { + "type": "object", + "properties": { + "block": { + "$ref": "#\/components\/schemas\/StandardImageTextBlock" + }, + "caption": { + "$ref": "#\/components\/schemas\/TextComponent" + } + }, + "description": "The A+ Content standard image and text block, with a related caption. The caption may not display on all devices." + }, + "StandardImageCaptionBlock": { + "type": "object", + "properties": { + "image": { + "$ref": "#\/components\/schemas\/ImageComponent" + }, + "caption": { + "$ref": "#\/components\/schemas\/TextComponent" + } + }, + "description": "The A+ Content standard image and caption block." + }, + "StandardImageTextBlock": { + "type": "object", + "properties": { + "image": { + "$ref": "#\/components\/schemas\/ImageComponent" + }, + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "body": { + "$ref": "#\/components\/schemas\/ParagraphComponent" + } + }, + "description": "The A+ Content standard image and text box block." + }, + "StandardTextBlock": { + "type": "object", + "properties": { + "headline": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "body": { + "$ref": "#\/components\/schemas\/ParagraphComponent" + } + }, + "description": "The A+ Content standard text box block, comprised of a paragraph with a headline." + }, + "StandardTextPairBlock": { + "type": "object", + "properties": { + "label": { + "$ref": "#\/components\/schemas\/TextComponent" + }, + "description": { + "$ref": "#\/components\/schemas\/TextComponent" + } + }, + "description": "The A+ Content standard label and description block, comprised of a pair of text components." + }, + "TextItem": { + "required": [ + "position", + "text" + ], + "type": "object", + "properties": { + "position": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "description": "The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection." + }, + "text": { + "$ref": "#\/components\/schemas\/TextComponent" + } + }, + "description": "Rich positional text, usually presented as a collection of bullet points." + }, + "PlainTextItem": { + "required": [ + "position", + "value" + ], + "type": "object", + "properties": { + "position": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "description": "The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection." + }, + "value": { + "maxLength": 250, + "minLength": 1, + "type": "string", + "description": "The actual plain text." + } + }, + "description": "Plain positional text, used in collections of brief labels and descriptors." + }, + "ImageComponent": { + "required": [ + "altText", + "imageCropSpecification", + "uploadDestinationId" + ], + "type": "object", + "properties": { + "uploadDestinationId": { + "minLength": 1, + "type": "string", + "description": "This identifier is provided by the Selling Partner API for Uploads." + }, + "imageCropSpecification": { + "$ref": "#\/components\/schemas\/ImageCropSpecification" + }, + "altText": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "The alternative text for the image." + } + }, + "description": "A reference to an image, hosted in the A+ Content media library." + }, + "ParagraphComponent": { + "required": [ + "textList" + ], + "type": "object", + "properties": { + "textList": { + "maxItems": 100, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/TextComponent" + } + } + }, + "description": "A list of rich text content, usually presented in a text box." + }, + "TextComponent": { + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "maxLength": 10000, + "minLength": 1, + "type": "string", + "description": "The actual plain text." + }, + "decoratorSet": { + "$ref": "#\/components\/schemas\/DecoratorSet" + } + }, + "description": "Rich text content." + }, + "ColorType": { + "type": "string", + "description": "The relative color scheme of content.", + "enum": [ + "DARK", + "LIGHT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DARK", + "description": "Dark grey, semi-opaque shaded background for light text overlay box." + }, + { + "value": "LIGHT", + "description": "White, semi-opaque shaded background for dark text overlay box." + } + ] + }, + "PositionType": { + "type": "string", + "description": "The relative positioning of content.", + "enum": [ + "LEFT", + "RIGHT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LEFT", + "description": "Indicates that the content is to be positioned on the left side of the module." + }, + { + "value": "RIGHT", + "description": "Indicates that the content is to be positioned on the right side of the module." + } + ] + }, + "DecoratorSet": { + "uniqueItems": true, + "type": "array", + "description": "A set of content decorators.", + "items": { + "$ref": "#\/components\/schemas\/Decorator" + } + }, + "Decorator": { + "type": "object", + "properties": { + "type": { + "$ref": "#\/components\/schemas\/DecoratorType" + }, + "offset": { + "maximum": 10000, + "minimum": 0, + "type": "integer", + "description": "The starting character of this decorator within the content string. Use zero for the first character." + }, + "length": { + "maximum": 10000, + "minimum": 0, + "type": "integer", + "description": "The number of content characters to alter with this decorator. Decorators such as line breaks can have zero length and fit between characters." + }, + "depth": { + "maximum": 100, + "minimum": 0, + "type": "integer", + "description": "The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths." + } + }, + "description": "A decorator applied to a content string value in order to create rich text." + }, + "DecoratorType": { + "type": "string", + "description": "The type of rich text decorator.", + "enum": [ + "LIST_ITEM", + "LIST_ORDERED", + "LIST_UNORDERED", + "STYLE_BOLD", + "STYLE_ITALIC", + "STYLE_LINEBREAK", + "STYLE_PARAGRAPH", + "STYLE_UNDERLINE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LIST_ITEM", + "description": "Formatted list item, used in either numbered or bulleted lists, inside the list enclosure." + }, + { + "value": "LIST_ORDERED", + "description": "Numbered list enclosure." + }, + { + "value": "LIST_UNORDERED", + "description": "Bulleted list enclosure." + }, + { + "value": "STYLE_BOLD", + "description": "Bold text formatting." + }, + { + "value": "STYLE_ITALIC", + "description": "Italic text formatting." + }, + { + "value": "STYLE_LINEBREAK", + "description": "New line of text." + }, + { + "value": "STYLE_PARAGRAPH", + "description": "Paragraph text formatting." + }, + { + "value": "STYLE_UNDERLINE", + "description": "Underline text formatting." + } + ] + }, + "SearchContentDocumentsResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusPaginatedResponse" + }, + { + "required": [ + "contentMetadataRecords" + ], + "type": "object", + "properties": { + "contentMetadataRecords": { + "$ref": "#\/components\/schemas\/ContentMetadataRecordList" + } + } + } + ] + }, + "GetContentDocumentResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + }, + { + "required": [ + "contentRecord" + ], + "type": "object", + "properties": { + "contentRecord": { + "$ref": "#\/components\/schemas\/ContentRecord" + } + } + } + ] + }, + "PostContentDocumentRequest": { + "required": [ + "contentDocument" + ], + "type": "object", + "properties": { + "contentDocument": { + "$ref": "#\/components\/schemas\/ContentDocument" + } + } + }, + "PostContentDocumentResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + }, + { + "required": [ + "contentReferenceKey" + ], + "type": "object", + "properties": { + "contentReferenceKey": { + "$ref": "#\/components\/schemas\/ContentReferenceKey" + } + } + } + ] + }, + "ListContentDocumentAsinRelationsResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusPaginatedResponse" + }, + { + "required": [ + "asinMetadataSet" + ], + "type": "object", + "properties": { + "asinMetadataSet": { + "$ref": "#\/components\/schemas\/AsinMetadataSet" + } + } + } + ] + }, + "PostContentDocumentAsinRelationsRequest": { + "required": [ + "asinSet" + ], + "type": "object", + "properties": { + "asinSet": { + "$ref": "#\/components\/schemas\/AsinSet" + } + } + }, + "PostContentDocumentAsinRelationsResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + } + ] + }, + "ValidateContentDocumentAsinRelationsResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + }, + { + "$ref": "#\/components\/schemas\/ErrorList" + } + ] + }, + "SearchContentPublishRecordsResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusPaginatedResponse" + }, + { + "required": [ + "publishRecordList" + ], + "type": "object", + "properties": { + "publishRecordList": { + "$ref": "#\/components\/schemas\/PublishRecordList" + } + } + } + ] + }, + "PostContentDocumentApprovalSubmissionResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + } + ] + }, + "PostContentDocumentSuspendSubmissionResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/AplusResponse" + } + ] + } + }, + "parameters": { + "contentReferenceKey": { + "name": "contentReferenceKey", + "in": "path", + "description": "The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. ", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + "marketplaceId": { + "name": "marketplaceId", + "in": "query", + "description": "The identifier for the marketplace where the A+ Content is published.", + "required": true, + "schema": { + "minLength": 1, + "type": "string" + } + }, + "pageToken": { + "name": "pageToken", + "in": "query", + "description": "A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations.", + "schema": { + "minLength": 1, + "type": "string" + } + }, + "asinSet": { + "name": "asinSet", + "in": "query", + "description": "The set of ASINs.", + "style": "form", + "explode": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "minLength": 10, + "type": "string" + } + } + }, + "asin": { + "name": "asin", + "in": "query", + "description": "The Amazon Standard Identification Number (ASIN).", + "required": true, + "schema": { + "minLength": 10, + "type": "string" + } + }, + "getContentDocumentIncludedDataSet": { + "name": "includedDataSet", + "in": "query", + "description": "The set of A+ data types to include in the response.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "CONTENTS", + "METADATA" + ] + } + } + }, + "listContentDocumentAsinRelationsIncludedDataSet": { + "name": "includedDataSet", + "in": "query", + "description": "The set of A+ data types to include in the response.", + "style": "form", + "explode": false, + "schema": { + "minItems": 0, + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "METADATA" + ] + } + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/application-management/v2023-11-30.json b/resources/models/seller/application-management/v2023-11-30.json new file mode 100644 index 000000000..10fd49662 --- /dev/null +++ b/resources/models/seller/application-management/v2023-11-30.json @@ -0,0 +1,251 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Application Management", + "description": "The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2023-11-30" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/applications\/2023-11-30\/clientSecret": { + "post": { + "tags": [ + "ApplicationManagementV20231130" + ], + "description": "Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https:\/\/developer-docs.amazon.com\/sp-api\/v0\/docs\/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "rotateApplicationClientSecret", + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {} + }, + "400": { + "description": "The application has not enrolled for programmatic rotations. Please visit your developer console to enroll.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "array of errors", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/authorization/v1.json b/resources/models/seller/authorization/v1.json new file mode 100644 index 000000000..d4f550db7 --- /dev/null +++ b/resources/models/seller/authorization/v1.json @@ -0,0 +1,368 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Authorization", + "description": "The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/authorization\/v1\/authorizationCode": { + "get": { + "tags": [ + "AuthorizationV1" + ], + "summary": "Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization.", + "description": "With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller's behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getAuthorizationCode", + "parameters": [ + { + "name": "sellingPartnerId", + "in": "query", + "description": "The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore.", + "required": true, + "allowEmptyValue": false, + "schema": { + "type": "string" + } + }, + { + "name": "developerId", + "in": "query", + "description": "Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central.", + "required": true, + "allowEmptyValue": false, + "schema": { + "type": "string" + } + }, + { + "name": "mwsAuthToken", + "in": "query", + "description": "The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore.", + "required": true, + "allowEmptyValue": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "authorizationCode": "ANDMxqpCmqWHJeyzdbMH" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "mwsAuthToken": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAuthorizationCodeResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetAuthorizationCodeResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/AuthorizationCode" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the GetAuthorizationCode operation." + }, + "AuthorizationCode": { + "type": "object", + "properties": { + "authorizationCode": { + "type": "string", + "description": "A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API." + } + }, + "description": "A Login with Amazon (LWA) authorization code." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/catalog-items/v0.json b/resources/models/seller/catalog-items/v0.json new file mode 100644 index 000000000..29643e785 --- /dev/null +++ b/resources/models/seller/catalog-items/v0.json @@ -0,0 +1,2036 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Catalog Items", + "description": "The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/catalog\/v0\/items": { + "get": { + "tags": [ + "CatalogItemsV0" + ], + "description": "Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](doc:catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. \n_Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.", + "operationId": "listCatalogItems", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for which items are returned.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Query", + "in": "query", + "description": "Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'.", + "schema": { + "type": "string" + } + }, + { + "name": "QueryContextId", + "in": "query", + "description": "An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.", + "schema": { + "type": "string" + } + }, + { + "name": "SellerSKU", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "UPC", + "in": "query", + "description": "A 12-digit bar code used for retail packaging.", + "schema": { + "type": "string" + } + }, + { + "name": "EAN", + "in": "query", + "description": "A European article number that uniquely identifies the catalog item, manufacturer, and its attributes.", + "schema": { + "type": "string" + } + }, + { + "name": "ISBN", + "in": "query", + "description": "The unique commercial book identifier used to identify books internationally.", + "schema": { + "type": "string" + } + }, + { + "name": "JAN", + "in": "query", + "description": "A Japanese article number that uniquely identifies the product, manufacturer, and its attributes.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_200" + }, + "SellerSKU": { + "value": "SKU_200" + } + } + }, + "response": { + "payload": { + "Items": [ + { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "A00551Q3CA" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "AttributeSets": [ + { + "Actor": [ + "actor1", + "actor2" + ], + "Artist": [ + "Artist1", + "Artist2" + ], + "Author": [ + "Author1", + "Author2" + ], + "Director": [ + "Director1", + "Director2" + ], + "DisplaySize": { + "Units": "inches", + "value": 52 + }, + "Feature": [ + "Feature1", + "Feature2" + ], + "Format": [ + "Format1", + "Format2" + ], + "GemType": [ + "Gem1", + "Gem2" + ], + "MaterialType": [ + "MaterialType1", + "MaterialType2" + ], + "MediaType": [ + "MediaType1", + "MediaType2" + ], + "OperatingSystem": [ + "OperatingSystem1", + "OperatingSystem2" + ], + "Platform": [ + "Platform1", + "Platform2" + ], + "AspectRatio": "4:3", + "AudienceRating": "4.5", + "BackFinding": "BackFinding", + "BandMaterialType": "BandMaterialType", + "Binding": "Health and Beauty", + "BlurayRegion": "BlurayRegion", + "Brand": "Nature Made", + "CeroAgeRating": "CeroAgeRating", + "ChainType": "ChainType", + "ClaspType": "ClaspType", + "Color": "Full Strength Mini", + "CpuManufacturer": "CpuManufacturer", + "CpuSpeed": {}, + "CpuType": "CpuType", + "Department": "Department", + "Edition": "1", + "EpisodeSequence": "5", + "EsrbAgeRating": "9.5", + "Flavor": "031604028657", + "Genre": "Genre", + "GolfClubFlex": "GolfClubFlex", + "GolfClubLoft": { + "Units": "mm", + "value": 100 + }, + "HandOrientation": "HandOrientation", + "HardDiskInterface": "HardDiskInterface", + "HardDiskSize": { + "Units": "cm", + "value": 10 + }, + "HardwarePlatform": "HardwarePlatform", + "HazardousMaterialType": "HazardousMaterialType", + "ItemDimensions": { + "Height": { + "value": 4.5, + "Units": "mm" + }, + "Length": { + "value": 1.44, + "Units": "inches" + }, + "Width": { + "value": 2.44, + "Units": "cm" + }, + "Weight": { + "value": 0.16, + "Units": "pounds" + } + }, + "IsAdultProduct": false, + "IsAutographed": true, + "IsEligibleForTradeIn": false, + "IsMemorabilia": true, + "IssuesPerYear": "12", + "ItemPartNumber": "3YUIUIR439534", + "Label": "Pharmavite", + "Languages": [ + { + "Name": "Tamil", + "Type": "published", + "AudioFormat": "TSV" + }, + { + "Name": "English", + "Type": "unknown", + "AudioFormat": "ESV" + } + ], + "LegalDisclaimer": "LegalDisclaimer", + "ListPrice": { + "Amount": 10.99, + "CurrencyCode": "USD" + }, + "Manufacturer": "Pharmavite", + "ManufacturerMaximumAge": { + "Units": "age", + "value": 60 + }, + "ManufacturerMinimumAge": { + "Units": "age", + "value": 10 + }, + "ManufacturerPartsWarrantyDescription": "ManufacturerPartsWarrantyDescription", + "MetalStamp": "MetalStamp", + "MetalType": "MetalType", + "Model": "2865" + } + ], + "Relationships": [ + { + "Edition": "1", + "GolfClubFlex": "GolfClubFlex", + "Size": "Small", + "GolfClubLoft": { + "Units": "meters", + "value": 11 + }, + "TotalDiamondWeight": { + "Units": "ss", + "value": 234 + }, + "TotalGemWeight": { + "Units": "ee", + "value": 544 + } + }, + { + "Color": "Black", + "Flavor": "Grape", + "HandOrientation": "Left", + "HardwarePlatform": "Windows" + }, + { + "MetalType": "Steel", + "Model": "5.0", + "ProductTypeSubcategory": "Electronics" + } + ] + }, + { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogItemsResponse" + } + } + } + } + } + } + }, + "\/catalog\/v0\/items\/{asin}": { + "get": { + "tags": [ + "CatalogItemsV0" + ], + "description": "Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](doc:catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. \n_Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.", + "operationId": "getCatalogItem", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "asin", + "in": "path", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_200" + }, + "asin": { + "value": "ASIN_200" + } + } + }, + "response": { + "payload": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "AttributeSets": [ + { + "NumberOfDiscs": 11, + "NumberOfIssues": 12, + "NumberOfItems": 1, + "NumberOfPages": 234, + "NumberOfTracks": 104, + "OpticalZoom": { + "Units": "nm", + "value": 101 + }, + "PackageDimensions": { + "Height": { + "value": 5.44, + "Units": "mm" + }, + "Length": { + "value": 4.5, + "Units": "inches" + }, + "Width": { + "value": 2.44, + "Units": "cm" + }, + "Weight": { + "value": 0.16, + "Units": "pounds" + } + }, + "Creator": [ + { + "Role": "someRole", + "value": "4.5" + }, + { + "Role": "someRole2", + "value": "45.5" + } + ], + "PackageQuantity": 1, + "PartNumber": "2865", + "PegiRating": "PegiRating", + "ProcessorCount": 23, + "ProductGroup": "Health and Beauty", + "ProductTypeName": "HEALTH_PERSONAL_CARE", + "ProductTypeSubcategory": "ProductTypeSubcategory", + "PublicationDate": "2012-07-27", + "Publisher": "Pharmavite", + "RegionCode": "RegionCode", + "ReleaseDate": "ReleaseDate", + "RingSize": "RingSize", + "RunningTime": { + "Units": "minutes", + "value": 131 + }, + "ShaftMaterial": "ShaftMaterial", + "Scent": "Scent", + "SeasonSequence": "Publisher", + "SeikodoProductCode": "SeikodoProductCode", + "Size": "Size", + "SizePerPearl": "SizePerPearl", + "SmallImage": { + "URL": "http:\/\/g-ecx.images-amazon.com\/images\/G\/01\/x-site\/icons\/no-img-sm._CB1535416344_.gif", + "Height": { + "Units": "pixels", + "value": 40 + }, + "Width": { + "Units": "pixels", + "value": 60 + } + }, + "Studio": "Pharmavite", + "SubscriptionLength": { + "Units": "months", + "value": 12 + }, + "SystemMemorySize": { + "Units": "GB", + "value": 256 + }, + "SystemMemoryType": "SystemMemoryType", + "TheatricalReleaseDate": "2020-11-11", + "Title": "Nature Made Super B Complex Full Strength Softgel, 60 Count", + "TotalDiamondWeight": { + "Units": "gms", + "value": 22 + }, + "TotalGemWeight": { + "Units": "carat", + "value": 23 + }, + "Warranty": "Warranty", + "WeeeTaxValue": { + "Amount": 11.99, + "CurrencyCode": "EUR" + } + } + ], + "Relationships": [ + { + "RingSize": "1", + "ShaftMaterial": "Asbestos", + "Scent": "Happy", + "PackageQuantity": 102 + }, + { + "SizePerPearl": "2", + "GemType": [ + "Gemmy1", + "Gemmy2" + ], + "OperatingSystem": [ + "WIN", + "MAC" + ], + "MaterialType": [ + "Steel", + "Nickel" + ], + "ItemDimensions": { + "Height": { + "value": 4.5, + "Units": "mm" + }, + "Length": { + "value": 1.44, + "Units": "inches" + }, + "Width": { + "value": 2.44, + "Units": "cm" + }, + "Weight": { + "value": 0.16, + "Units": "pounds" + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCatalogItemResponse" + } + } + } + } + } + } + }, + "\/catalog\/v0\/categories": { + "get": { + "tags": [ + "CatalogItemsV0" + ], + "description": "Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listCatalogCategories", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "ASIN", + "in": "query", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "schema": { + "type": "string" + } + }, + { + "name": "SellerSKU", + "in": "query", + "description": "Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_200" + }, + "ASIN": { + "value": "asin_200" + } + } + }, + "response": { + "payload": [ + { + "ProductCategoryId": "26752675", + "ProductCategoryName": "Project Management", + "parent": {} + }, + { + "ProductCategoryId": "468220445", + "ProductCategoryName": "Art", + "parent": {} + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_400" + }, + "ASIN": { + "value": "ASIN_TO_TEST" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListCatalogCategoriesResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ListCatalogItemsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListMatchingItemsResponse" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "ListMatchingItemsResponse": { + "type": "object", + "properties": { + "Items": { + "$ref": "#\/components\/schemas\/ItemList" + } + } + }, + "ItemList": { + "type": "array", + "description": "A list of items.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "GetCatalogItemResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Item" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "Item": { + "required": [ + "Identifiers" + ], + "type": "object", + "properties": { + "Identifiers": { + "$ref": "#\/components\/schemas\/IdentifierType" + }, + "AttributeSets": { + "$ref": "#\/components\/schemas\/AttributeSetList" + }, + "Relationships": { + "$ref": "#\/components\/schemas\/RelationshipList" + }, + "SalesRankings": { + "$ref": "#\/components\/schemas\/SalesRankList" + } + }, + "description": "An item in the Amazon catalog." + }, + "IdentifierType": { + "type": "object", + "properties": { + "MarketplaceASIN": { + "$ref": "#\/components\/schemas\/ASINIdentifier" + }, + "SKUIdentifier": { + "$ref": "#\/components\/schemas\/SellerSKUIdentifier" + } + } + }, + "ASINIdentifier": { + "required": [ + "ASIN", + "MarketplaceId" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + } + } + }, + "SellerSKUIdentifier": { + "required": [ + "MarketplaceId", + "SellerId", + "SellerSKU" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "SellerId": { + "type": "string", + "description": "The seller identifier submitted for the operation." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + } + } + }, + "AttributeSetList": { + "type": "array", + "description": "A list of attributes for the item.", + "items": { + "$ref": "#\/components\/schemas\/AttributeSetListType" + } + }, + "AttributeSetListType": { + "type": "object", + "properties": { + "Actor": { + "type": "array", + "description": "The actor attributes of the item.", + "items": { + "type": "string" + } + }, + "Artist": { + "type": "array", + "description": "The artist attributes of the item.", + "items": { + "type": "string" + } + }, + "AspectRatio": { + "type": "string", + "description": "The aspect ratio attribute of the item." + }, + "AudienceRating": { + "type": "string", + "description": "The audience rating attribute of the item." + }, + "Author": { + "type": "array", + "description": "The author attributes of the item.", + "items": { + "type": "string" + } + }, + "BackFinding": { + "type": "string", + "description": "The back finding attribute of the item." + }, + "BandMaterialType": { + "type": "string", + "description": "The band material type attribute of the item." + }, + "Binding": { + "type": "string", + "description": "The binding attribute of the item." + }, + "BlurayRegion": { + "type": "string", + "description": "The Bluray region attribute of the item." + }, + "Brand": { + "type": "string", + "description": "The brand attribute of the item." + }, + "CeroAgeRating": { + "type": "string", + "description": "The CERO age rating attribute of the item." + }, + "ChainType": { + "type": "string", + "description": "The chain type attribute of the item." + }, + "ClaspType": { + "type": "string", + "description": "The clasp type attribute of the item." + }, + "Color": { + "type": "string", + "description": "The color attribute of the item." + }, + "CpuManufacturer": { + "type": "string", + "description": "The CPU manufacturer attribute of the item." + }, + "CpuSpeed": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "CpuType": { + "type": "string", + "description": "The CPU type attribute of the item." + }, + "Creator": { + "type": "array", + "description": "The creator attributes of the item.", + "items": { + "$ref": "#\/components\/schemas\/CreatorType" + } + }, + "Department": { + "type": "string", + "description": "The department attribute of the item." + }, + "Director": { + "type": "array", + "description": "The director attributes of the item.", + "items": { + "type": "string" + } + }, + "DisplaySize": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Edition": { + "type": "string", + "description": "The edition attribute of the item." + }, + "EpisodeSequence": { + "type": "string", + "description": "The episode sequence attribute of the item." + }, + "EsrbAgeRating": { + "type": "string", + "description": "The ESRB age rating attribute of the item." + }, + "Feature": { + "type": "array", + "description": "The feature attributes of the item", + "items": { + "type": "string" + } + }, + "Flavor": { + "type": "string", + "description": "The flavor attribute of the item." + }, + "Format": { + "type": "array", + "description": "The format attributes of the item.", + "items": { + "type": "string" + } + }, + "GemType": { + "type": "array", + "description": "The gem type attributes of the item.", + "items": { + "type": "string" + } + }, + "Genre": { + "type": "string", + "description": "The genre attribute of the item." + }, + "GolfClubFlex": { + "type": "string", + "description": "The golf club flex attribute of the item." + }, + "GolfClubLoft": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "HandOrientation": { + "type": "string", + "description": "The hand orientation attribute of the item." + }, + "HardDiskInterface": { + "type": "string", + "description": "The hard disk interface attribute of the item." + }, + "HardDiskSize": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "HardwarePlatform": { + "type": "string", + "description": "The hardware platform attribute of the item." + }, + "HazardousMaterialType": { + "type": "string", + "description": "The hazardous material type attribute of the item." + }, + "ItemDimensions": { + "$ref": "#\/components\/schemas\/DimensionType" + }, + "IsAdultProduct": { + "type": "boolean", + "description": "The adult product attribute of the item." + }, + "IsAutographed": { + "type": "boolean", + "description": "The autographed attribute of the item." + }, + "IsEligibleForTradeIn": { + "type": "boolean", + "description": "The is eligible for trade in attribute of the item." + }, + "IsMemorabilia": { + "type": "boolean", + "description": "The is memorabilia attribute of the item." + }, + "IssuesPerYear": { + "type": "string", + "description": "The issues per year attribute of the item." + }, + "ItemPartNumber": { + "type": "string", + "description": "The item part number attribute of the item." + }, + "Label": { + "type": "string", + "description": "The label attribute of the item." + }, + "Languages": { + "type": "array", + "description": "The languages attribute of the item.", + "items": { + "$ref": "#\/components\/schemas\/LanguageType" + } + }, + "LegalDisclaimer": { + "type": "string", + "description": "The legal disclaimer attribute of the item." + }, + "ListPrice": { + "$ref": "#\/components\/schemas\/Price" + }, + "Manufacturer": { + "type": "string", + "description": "The manufacturer attribute of the item." + }, + "ManufacturerMaximumAge": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "ManufacturerMinimumAge": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "ManufacturerPartsWarrantyDescription": { + "type": "string", + "description": "The manufacturer parts warranty description attribute of the item." + }, + "MaterialType": { + "type": "array", + "description": "The material type attributes of the item.", + "items": { + "type": "string" + } + }, + "MaximumResolution": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "MediaType": { + "type": "array", + "description": "The media type attributes of the item.", + "items": { + "type": "string" + } + }, + "MetalStamp": { + "type": "string", + "description": "The metal stamp attribute of the item." + }, + "MetalType": { + "type": "string", + "description": "The metal type attribute of the item." + }, + "Model": { + "type": "string", + "description": "The model attribute of the item." + }, + "NumberOfDiscs": { + "type": "integer", + "description": "The number of discs attribute of the item." + }, + "NumberOfIssues": { + "type": "integer", + "description": "The number of issues attribute of the item." + }, + "NumberOfItems": { + "type": "integer", + "description": "The number of items attribute of the item." + }, + "NumberOfPages": { + "type": "integer", + "description": "The number of pages attribute of the item." + }, + "NumberOfTracks": { + "type": "integer", + "description": "The number of tracks attribute of the item." + }, + "OperatingSystem": { + "type": "array", + "description": "The operating system attributes of the item.", + "items": { + "type": "string" + } + }, + "OpticalZoom": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "PackageDimensions": { + "$ref": "#\/components\/schemas\/DimensionType" + }, + "PackageQuantity": { + "type": "integer", + "description": "The package quantity attribute of the item." + }, + "PartNumber": { + "type": "string", + "description": "The part number attribute of the item." + }, + "PegiRating": { + "type": "string", + "description": "The PEGI rating attribute of the item." + }, + "Platform": { + "type": "array", + "description": "The platform attributes of the item.", + "items": { + "type": "string" + } + }, + "ProcessorCount": { + "type": "integer", + "description": "The processor count attribute of the item." + }, + "ProductGroup": { + "type": "string", + "description": "The product group attribute of the item." + }, + "ProductTypeName": { + "type": "string", + "description": "The product type name attribute of the item." + }, + "ProductTypeSubcategory": { + "type": "string", + "description": "The product type subcategory attribute of the item." + }, + "PublicationDate": { + "type": "string", + "description": "The publication date attribute of the item." + }, + "Publisher": { + "type": "string", + "description": "The publisher attribute of the item." + }, + "RegionCode": { + "type": "string", + "description": "The region code attribute of the item." + }, + "ReleaseDate": { + "type": "string", + "description": "The release date attribute of the item." + }, + "RingSize": { + "type": "string", + "description": "The ring size attribute of the item." + }, + "RunningTime": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "ShaftMaterial": { + "type": "string", + "description": "The shaft material attribute of the item." + }, + "Scent": { + "type": "string", + "description": "The scent attribute of the item." + }, + "SeasonSequence": { + "type": "string", + "description": "The season sequence attribute of the item." + }, + "SeikodoProductCode": { + "type": "string", + "description": "The Seikodo product code attribute of the item." + }, + "Size": { + "type": "string", + "description": "The size attribute of the item." + }, + "SizePerPearl": { + "type": "string", + "description": "The size per pearl attribute of the item." + }, + "SmallImage": { + "$ref": "#\/components\/schemas\/Image" + }, + "Studio": { + "type": "string", + "description": "The studio attribute of the item." + }, + "SubscriptionLength": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "SystemMemorySize": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "SystemMemoryType": { + "type": "string", + "description": "The system memory type attribute of the item." + }, + "TheatricalReleaseDate": { + "type": "string", + "description": "The theatrical release date attribute of the item." + }, + "Title": { + "type": "string", + "description": "The title attribute of the item." + }, + "TotalDiamondWeight": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "TotalGemWeight": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Warranty": { + "type": "string", + "description": "The warranty attribute of the item." + }, + "WeeeTaxValue": { + "$ref": "#\/components\/schemas\/Price" + } + }, + "description": "The attributes of the item." + }, + "DecimalWithUnits": { + "type": "object", + "properties": { + "value": { + "type": "number", + "description": "The decimal value." + }, + "Units": { + "type": "string", + "description": "The unit of the decimal value." + } + }, + "description": "The decimal value and unit." + }, + "CreatorType": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "The value of the attribute." + }, + "Role": { + "type": "string", + "description": "The role of the value." + } + }, + "description": "The creator type attribute of an item." + }, + "DimensionType": { + "type": "object", + "properties": { + "Height": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Length": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Width": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Weight": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + } + }, + "description": "The dimension type attribute of an item." + }, + "LanguageType": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "The name attribute of the item." + }, + "Type": { + "type": "string", + "description": "The type attribute of the item." + }, + "AudioFormat": { + "type": "string", + "description": "The audio format attribute of the item." + } + }, + "description": "The language type attribute of an item." + }, + "Image": { + "type": "object", + "properties": { + "URL": { + "type": "string", + "description": "The image URL attribute of the item." + }, + "Height": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "Width": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + } + }, + "description": "The image attribute of the item." + }, + "Price": { + "type": "object", + "properties": { + "Amount": { + "type": "number", + "description": "The amount." + }, + "CurrencyCode": { + "type": "string", + "description": "The currency code of the amount." + } + }, + "description": "The price attribute of the item." + }, + "RelationshipList": { + "type": "array", + "description": "A list of variation relationship information, if applicable for the item.", + "items": { + "$ref": "#\/components\/schemas\/RelationshipType" + } + }, + "RelationshipType": { + "type": "object", + "properties": { + "Identifiers": { + "$ref": "#\/components\/schemas\/IdentifierType" + }, + "Color": { + "type": "string", + "description": "The color variation of the item." + }, + "Edition": { + "type": "string", + "description": "The edition variation of the item." + }, + "Flavor": { + "type": "string", + "description": "The flavor variation of the item." + }, + "GemType": { + "type": "array", + "description": "The gem type variations of the item.", + "items": { + "type": "string" + } + }, + "GolfClubFlex": { + "type": "string", + "description": "The golf club flex variation of an item." + }, + "HandOrientation": { + "type": "string", + "description": "The hand orientation variation of an item." + }, + "HardwarePlatform": { + "type": "string", + "description": "The hardware platform variation of an item." + }, + "MaterialType": { + "type": "array", + "description": "The material type variations of an item.", + "items": { + "type": "string" + } + }, + "MetalType": { + "type": "string", + "description": "The metal type variation of an item." + }, + "Model": { + "type": "string", + "description": "The model variation of an item." + }, + "OperatingSystem": { + "type": "array", + "description": "The operating system variations of an item.", + "items": { + "type": "string" + } + }, + "ProductTypeSubcategory": { + "type": "string", + "description": "The product type subcategory variation of an item." + }, + "RingSize": { + "type": "string", + "description": "The ring size variation of an item." + }, + "ShaftMaterial": { + "type": "string", + "description": "The shaft material variation of an item." + }, + "Scent": { + "type": "string", + "description": "The scent variation of an item." + }, + "Size": { + "type": "string", + "description": "The size variation of an item." + }, + "SizePerPearl": { + "type": "string", + "description": "The size per pearl variation of an item." + }, + "GolfClubLoft": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "TotalDiamondWeight": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "TotalGemWeight": { + "$ref": "#\/components\/schemas\/DecimalWithUnits" + }, + "PackageQuantity": { + "type": "integer", + "description": "The package quantity variation of an item." + }, + "ItemDimensions": { + "$ref": "#\/components\/schemas\/DimensionType" + } + }, + "description": "Specific variations of the item." + }, + "SalesRankList": { + "type": "array", + "description": "A list of sales rank information for the item by category.", + "items": { + "$ref": "#\/components\/schemas\/SalesRankType" + } + }, + "SalesRankType": { + "required": [ + "ProductCategoryId", + "Rank" + ], + "type": "object", + "properties": { + "ProductCategoryId": { + "type": "string", + "description": "Identifies the item category from which the sales rank is taken." + }, + "Rank": { + "type": "integer", + "description": "The sales rank of the item within the item category.", + "format": "int32" + } + } + }, + "ListCatalogCategoriesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListOfCategories" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "ListOfCategories": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Categories" + } + }, + "Categories": { + "type": "object", + "properties": { + "ProductCategoryId": { + "type": "string", + "description": "The identifier for the product category (or browse node)." + }, + "ProductCategoryName": { + "type": "string", + "description": "The name of the product category (or browse node)." + }, + "parent": { + "type": "object", + "properties": {}, + "description": "The parent product category." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/catalog-items/v2020-12-01.json b/resources/models/seller/catalog-items/v2020-12-01.json new file mode 100644 index 000000000..198a53723 --- /dev/null +++ b/resources/models/seller/catalog-items/v2020-12-01.json @@ -0,0 +1,1803 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Catalog Items", + "description": "The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog.\n\nFor more information, see the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2020-12-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-12-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/catalog\/2020-12-01\/items": { + "get": { + "tags": [ + "CatalogItemsV20201201" + ], + "description": "Search for and return a list of Amazon catalog items and associated information.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "searchCatalogItems", + "parameters": [ + { + "name": "keywords", + "in": "query", + "description": "A comma-delimited list of words or item identifiers to search the Amazon catalog for.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "shoes" + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "includedData", + "in": "query", + "description": "A comma-delimited list of data sets to include in the response. Default: summaries.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "identifiers", + "images", + "productTypes", + "salesRanks", + "summaries", + "variations", + "vendorDetails" + ], + "x-docgen-enum-table-extension": [ + { + "value": "identifiers", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers." + }, + { + "value": "images", + "description": "Images for an item in the Amazon catalog. All image variants are provided to brand owners; a thumbnail of the \"MAIN\" image variant is provided otherwise." + }, + { + "value": "productTypes", + "description": "Product types associated with the Amazon catalog item." + }, + { + "value": "salesRanks", + "description": "Sales ranks of an Amazon catalog item." + }, + { + "value": "summaries", + "description": "Summary details of an Amazon catalog item." + }, + { + "value": "variations", + "description": "Variation details of an Amazon catalog item (variation relationships)." + }, + { + "value": "vendorDetails", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only." + } + ] + } + }, + "example": "summaries" + }, + { + "name": "brandNames", + "in": "query", + "description": "A comma-delimited list of brand names to limit the search to.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "Beautiful Boats" + }, + { + "name": "classificationIds", + "in": "query", + "description": "A comma-delimited list of classification identifiers to limit the search to.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "12345678" + }, + { + "name": "pageSize", + "in": "query", + "description": "Number of results to be returned per page.", + "schema": { + "maximum": 20, + "type": "integer", + "default": 10 + }, + "example": 9 + }, + { + "name": "pageToken", + "in": "query", + "description": "A token to fetch a certain page when there are multiple pages worth of results.", + "schema": { + "type": "string" + }, + "example": "sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234" + }, + { + "name": "keywordsLocale", + "in": "query", + "description": "The language the keywords are provided in. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + }, + { + "name": "locale", + "in": "query", + "description": "Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ItemSearchResults" + }, + "example": { + "numberOfResults": 3097, + "pagination": { + "nextPage": "xsdflkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjl234", + "previousPage": "ilkjsdflkj234lkjds234234lkjl234lksjdflkj234234lkjsfsdflkj333d" + }, + "refinements": { + "brands": [ + { + "numberOfResults": 1, + "brandName": "Truly Teague" + }, + { + "numberOfResults": 20, + "brandName": "Always Awesome Apparel" + } + ], + "categories": [ + { + "numberOfResults": 300, + "displayName": "Electronics", + "classificationId": "493964" + }, + { + "numberOfResults": 4000, + "displayName": "Tools & Home Improvement", + "classificationId": "468240" + } + ] + }, + "items": [ + { + "asin": "B07N4M94X4", + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "type": "ean", + "identifier": "0887276302195" + }, + { + "type": "upc", + "identifier": "887276302195" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "ranks": [ + { + "title": "OLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/6463520011", + "rank": 3 + }, + { + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 1544 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "Samsung Electronics", + "browseNode": "6463520011", + "colorName": "Black", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "sizeName": "82-Inch", + "styleName": "TV only" + } + ], + "variations": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "asins": [ + "B08J7TQ9FL" + ], + "type": "PARENT" + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "categoryCode": "50400100", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productGroup": "Home Entertainment", + "replenishmentCategory": "NEW_PRODUCT", + "subcategoryCode": "50400150" + } + ] + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "keywords": { + "value": [ + "red", + "polo", + "shirt" + ] + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + }, + "includedData": { + "value": [ + "summaries" + ] + } + } + }, + "response": { + "numberOfResults": 12247, + "pagination": { + "nextToken": "9HkIVcuuPmX_bm51o3-igBfN45pxW4Ru7ElIM6GCECYCuXJKzT26f-AlJJZYjIPp8wkOEmQdma1wt_JvE7qiRmNsKy7hH" + }, + "refinements": { + "brands": [ + { + "numberOfResults": 91, + "brandName": "Polo Ralph Lauren" + }, + { + "numberOfResults": 79, + "brandName": "Eddie Bauer" + }, + { + "numberOfResults": 46, + "brandName": "Cutter & Buck" + }, + { + "numberOfResults": 39, + "brandName": "FILA" + }, + { + "numberOfResults": 37, + "brandName": "Orvis" + } + ], + "classifications": [ + { + "numberOfResults": 1243, + "displayName": "Clothing, Shoes & Jewelry", + "classificationId": "7141124011" + }, + { + "numberOfResults": 126, + "displayName": "Sports & Outdoors", + "classificationId": "3375301" + } + ] + }, + "items": [ + { + "asin": "B002N36Q3M", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "Fred Perry", + "colorName": "Wht\/Brt Red\/Nvy", + "itemName": "Fred Perry Men's Twin Tipped Polo Shirt-M1200, WHT\/BRT RED\/NVY, X-Large", + "manufacturer": "Fred Perry Men's Apparel", + "modelNumber": "M1200", + "sizeName": "X-Large", + "styleName": "Twin Tipped Polo Shirt-m1200" + } + ] + }, + { + "asin": "B002N3ABSI", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "Fred Perry", + "colorName": "White\/Bright Red\/Navy", + "itemName": "Fred Perry Men's Twin Tipped Polo, White\/Bright Red\/Navy, SM", + "manufacturer": "Fred Perry Apparel Mens", + "modelNumber": "M1200-748", + "sizeName": "SM", + "styleName": "Twin Tipped Fred Perry Polo" + } + ] + }, + { + "asin": "B01N5B3598", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "NHL", + "colorName": "Red", + "itemName": "NHL New Jersey Devils Men's Polo, Small, Red", + "manufacturer": "Knight's Apparel", + "modelNumber": "H0MEE3ZAMZ", + "sizeName": "Small" + } + ] + }, + { + "asin": "B00HIVDUXI", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "adidas", + "colorName": "Bold Red\/White", + "itemName": "Adidas Golf Men's Puremotion Textured Stripe Polo, Bold Red\/White, Large", + "manufacturer": "TaylorMade - Adidas Golf Apparel", + "modelNumber": "TM3010S4", + "sizeName": "Large" + } + ] + }, + { + "asin": "B005ZZ12YS", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "RALPH LAUREN", + "colorName": "Black \/ Red Pony", + "itemName": "Polo Ralph Lauren Men's Long-sleeved T-shirt \/ Sleepwear \/ Thermal in Black, Red Pony (Large \/ L)", + "sizeName": "Large" + } + ] + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/catalog\/2020-12-01\/items\/{asin}": { + "get": { + "tags": [ + "CatalogItemsV20201201" + ], + "description": "Retrieves details for an item in the Amazon catalog.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCatalogItem", + "parameters": [ + { + "name": "asin", + "in": "path", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "includedData", + "in": "query", + "description": "A comma-delimited list of data sets to include in the response. Default: summaries.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "attributes", + "identifiers", + "images", + "productTypes", + "salesRanks", + "summaries", + "variations", + "vendorDetails" + ], + "x-docgen-enum-table-extension": [ + { + "value": "attributes", + "description": "A JSON object containing structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related Amazon product type definitions available in the Selling Partner API for Product Type Definitions." + }, + { + "value": "identifiers", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers." + }, + { + "value": "images", + "description": "Images for an item in the Amazon catalog. All image variants are provided to brand owners. Otherwise, a thumbnail of the \"MAIN\" image variant is provided." + }, + { + "value": "productTypes", + "description": "Product types associated with the Amazon catalog item." + }, + { + "value": "salesRanks", + "description": "Sales ranks of an Amazon catalog item." + }, + { + "value": "summaries", + "description": "Summary details of an Amazon catalog item." + }, + { + "value": "variations", + "description": "Variation details of an Amazon catalog item (variation relationships)." + }, + { + "value": "vendorDetails", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only." + } + ] + } + }, + "example": "summaries" + }, + { + "name": "locale", + "in": "query", + "description": "Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Item" + }, + "example": { + "asin": "B07N4M94X4", + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "type": "ean", + "identifier": "0887276302195" + }, + { + "type": "upc", + "identifier": "887276302195" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "ranks": [ + { + "title": "OLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/6463520011", + "rank": 3 + }, + { + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 1544 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "Samsung Electronics", + "browseNode": "6463520011", + "colorName": "Black", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "sizeName": "82-Inch", + "styleName": "TV only" + } + ], + "variations": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "asins": [ + "B08J7TQ9FL" + ], + "type": "PARENT" + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "categoryCode": "50400100", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productGroup": "Home Entertainment", + "replenishmentCategory": "NEW_PRODUCT", + "subcategoryCode": "50400150" + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "B07N4M94X4" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + }, + "includedData": { + "value": [ + "identifiers", + "images", + "productTypes", + "salesRanks", + "summaries", + "variations", + "vendorDetails" + ] + } + } + }, + "response": { + "asin": "B07N4M94X4", + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "identifierType": "ean", + "identifier": "0887276302195" + }, + { + "identifierType": "upc", + "identifier": "887276302195" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "ranks": [ + { + "title": "OLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/6463520011", + "rank": 3 + }, + { + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 1544 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandName": "Samsung Electronics", + "browseNode": "6463520011", + "colorName": "Black", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "sizeName": "82-Inch", + "styleName": "TV only" + } + ], + "variations": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "asins": [ + "B08J7TQ9FL" + ], + "variationType": "CHILD" + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "categoryCode": "50400100", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productGroup": "Home Entertainment", + "replenishmentCategory": "NEW_PRODUCT", + "subcategoryCode": "50400150" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Item": { + "required": [ + "asin" + ], + "type": "object", + "properties": { + "asin": { + "$ref": "#\/components\/schemas\/ItemAsin" + }, + "attributes": { + "$ref": "#\/components\/schemas\/ItemAttributes" + }, + "identifiers": { + "$ref": "#\/components\/schemas\/ItemIdentifiers" + }, + "images": { + "$ref": "#\/components\/schemas\/ItemImages" + }, + "productTypes": { + "$ref": "#\/components\/schemas\/ItemProductTypes" + }, + "salesRanks": { + "$ref": "#\/components\/schemas\/ItemSalesRanks" + }, + "summaries": { + "$ref": "#\/components\/schemas\/ItemSummaries" + }, + "variations": { + "$ref": "#\/components\/schemas\/ItemVariations" + }, + "vendorDetails": { + "$ref": "#\/components\/schemas\/ItemVendorDetails" + } + }, + "description": "An item in the Amazon catalog." + }, + "ItemAsin": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog." + }, + "ItemAttributes": { + "type": "object", + "additionalProperties": true, + "description": "A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related product type definitions available in the Selling Partner API for Product Type Definitions." + }, + "ItemIdentifiers": { + "type": "array", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.", + "items": { + "$ref": "#\/components\/schemas\/ItemIdentifiersByMarketplace" + } + }, + "ItemIdentifiersByMarketplace": { + "required": [ + "identifiers", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "identifiers": { + "type": "array", + "description": "Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemIdentifier" + } + } + }, + "description": "Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace." + }, + "ItemIdentifier": { + "required": [ + "identifier", + "identifierType" + ], + "type": "object", + "properties": { + "identifierType": { + "type": "string", + "description": "Type of identifier, such as UPC, EAN, or ISBN." + }, + "identifier": { + "type": "string", + "description": "Identifier." + } + }, + "description": "Identifier associated with the item in the Amazon catalog, such as a UPC or EAN identifier." + }, + "ItemImages": { + "type": "array", + "description": "Images for an item in the Amazon catalog. All image variants are provided to brand owners. Otherwise, a thumbnail of the \"MAIN\" image variant is provided.", + "items": { + "$ref": "#\/components\/schemas\/ItemImagesByMarketplace" + } + }, + "ItemImagesByMarketplace": { + "required": [ + "images", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "images": { + "type": "array", + "description": "Images for an item in the Amazon catalog for the indicated Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemImage" + } + } + }, + "description": "Images for an item in the Amazon catalog for the indicated Amazon marketplace." + }, + "ItemImage": { + "required": [ + "height", + "link", + "variant", + "width" + ], + "type": "object", + "properties": { + "variant": { + "type": "string", + "description": "Variant of the image, such as MAIN or PT01.", + "example": "MAIN", + "enum": [ + "MAIN", + "PT01", + "PT02", + "PT03", + "PT04", + "PT05", + "PT06", + "PT07", + "PT08", + "SWCH" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MAIN", + "description": "Main image for the item." + }, + { + "value": "PT01", + "description": "Other image #1 for the item." + }, + { + "value": "PT02", + "description": "Other image #2 for the item." + }, + { + "value": "PT03", + "description": "Other image #3 for the item." + }, + { + "value": "PT04", + "description": "Other image #4 for the item." + }, + { + "value": "PT05", + "description": "Other image #5 for the item." + }, + { + "value": "PT06", + "description": "Other image #6 for the item." + }, + { + "value": "PT07", + "description": "Other image #7 for the item." + }, + { + "value": "PT08", + "description": "Other image #8 for the item." + }, + { + "value": "SWCH", + "description": "Swatch image for the item." + } + ] + }, + "link": { + "type": "string", + "description": "Link, or URL, for the image." + }, + "height": { + "type": "integer", + "description": "Height of the image in pixels." + }, + "width": { + "type": "integer", + "description": "Width of the image in pixels." + } + }, + "description": "Image for an item in the Amazon catalog." + }, + "ItemProductTypes": { + "type": "array", + "description": "Product types associated with the Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemProductTypeByMarketplace" + } + }, + "ItemProductTypeByMarketplace": { + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "productType": { + "type": "string", + "description": "Name of the product type associated with the Amazon catalog item.", + "example": "LUGGAGE" + } + }, + "description": "Product type associated with the Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemSalesRanks": { + "type": "array", + "description": "Sales ranks of an Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemSalesRanksByMarketplace" + } + }, + "ItemSalesRanksByMarketplace": { + "required": [ + "marketplaceId", + "ranks" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "ranks": { + "type": "array", + "description": "Sales ranks of an Amazon catalog item for an Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemSalesRank" + } + } + }, + "description": "Sales ranks of an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemSalesRank": { + "required": [ + "rank", + "title" + ], + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Title, or name, of the sales rank." + }, + "link": { + "type": "string", + "description": "Corresponding Amazon retail website link, or URL, for the sales rank." + }, + "rank": { + "type": "integer", + "description": "Sales rank value." + } + }, + "description": "Sales rank of an Amazon catalog item." + }, + "ItemSummaries": { + "type": "array", + "description": "Summary details of an Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemSummaryByMarketplace" + } + }, + "ItemSummaryByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "brandName": { + "type": "string", + "description": "Name of the brand associated with an Amazon catalog item." + }, + "browseNode": { + "type": "string", + "description": "Identifier of the browse node associated with an Amazon catalog item." + }, + "colorName": { + "type": "string", + "description": "Name of the color associated with an Amazon catalog item." + }, + "itemName": { + "type": "string", + "description": "Name, or title, associated with an Amazon catalog item." + }, + "manufacturer": { + "type": "string", + "description": "Name of the manufacturer associated with an Amazon catalog item." + }, + "modelNumber": { + "type": "string", + "description": "Model number associated with an Amazon catalog item." + }, + "sizeName": { + "type": "string", + "description": "Name of the size associated with an Amazon catalog item." + }, + "styleName": { + "type": "string", + "description": "Name of the style associated with an Amazon catalog item." + } + }, + "description": "Summary details of an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemVariations": { + "type": "array", + "description": "Variation details by marketplace for an Amazon catalog item (variation relationships).", + "items": { + "$ref": "#\/components\/schemas\/ItemVariationsByMarketplace" + } + }, + "ItemVariationsByMarketplace": { + "required": [ + "asins", + "marketplaceId", + "variationType" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "asins": { + "type": "array", + "description": "Identifiers (ASINs) of the related items.", + "items": { + "type": "string" + } + }, + "variationType": { + "type": "string", + "description": "Type of variation relationship of the Amazon catalog item in the request to the related item(s): \"PARENT\" or \"CHILD\".", + "example": "PARENT", + "enum": [ + "PARENT", + "CHILD" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PARENT", + "description": "The Amazon catalog item in the request is a variation parent of the related item(s) indicated by ASIN." + }, + { + "value": "CHILD", + "description": "The Amazon catalog item in the request is a variation child of the related item identified by ASIN." + } + ] + } + }, + "description": "Variation details for the Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemVendorDetails": { + "type": "array", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only.", + "items": { + "$ref": "#\/components\/schemas\/ItemVendorDetailsByMarketplace" + } + }, + "ItemVendorDetailsByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "brandCode": { + "type": "string", + "description": "Brand code associated with an Amazon catalog item." + }, + "categoryCode": { + "type": "string", + "description": "Product category associated with an Amazon catalog item." + }, + "manufacturerCode": { + "type": "string", + "description": "Manufacturer code associated with an Amazon catalog item." + }, + "manufacturerCodeParent": { + "type": "string", + "description": "Parent vendor code of the manufacturer code." + }, + "productGroup": { + "type": "string", + "description": "Product group associated with an Amazon catalog item." + }, + "replenishmentCategory": { + "type": "string", + "description": "Replenishment category associated with an Amazon catalog item.", + "enum": [ + "ALLOCATED", + "BASIC_REPLENISHMENT", + "IN_SEASON", + "LIMITED_REPLENISHMENT", + "MANUFACTURER_OUT_OF_STOCK", + "NEW_PRODUCT", + "NON_REPLENISHABLE", + "NON_STOCKUPABLE", + "OBSOLETE", + "PLANNED_REPLENISHMENT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ALLOCATED", + "description": "Indicates non-automated purchasing of inventory that has been allocated to Amazon by the vendor." + }, + { + "value": "BASIC_REPLENISHMENT", + "description": "Indicates non-automated purchasing of inventory." + }, + { + "value": "IN_SEASON", + "description": "Indicates non-automated purchasing of inventory for seasonal items." + }, + { + "value": "LIMITED_REPLENISHMENT", + "description": "Holding queue replenishment status before an item is NEW_PRODUCT." + }, + { + "value": "MANUFACTURER_OUT_OF_STOCK", + "description": "Indicates vendor is out of stock for a longer period of time and cannot backorder." + }, + { + "value": "NEW_PRODUCT", + "description": "Indicates a new item that Amazon does not yet stock in inventory." + }, + { + "value": "NON_REPLENISHABLE", + "description": "Indicates assortment parent used for detail page display, not actual items." + }, + { + "value": "NON_STOCKUPABLE", + "description": "Indicates drop ship inventory that Amazon does not stock in its fulfillment centers." + }, + { + "value": "OBSOLETE", + "description": "Indicates item is obsolete and should not be ordered." + }, + { + "value": "PLANNED_REPLENISHMENT", + "description": "Indicates active items that should be automatically ordered." + } + ] + }, + "subcategoryCode": { + "type": "string", + "description": "Product subcategory associated with an Amazon catalog item." + } + }, + "description": "Vendor details associated with an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemSearchResults": { + "required": [ + "items", + "numberOfResults", + "pagination", + "refinements" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "The estimated total number of products matched by the search query (only results up to the page count limit will be returned per request regardless of the number found).\n\nNote: The maximum number of items (ASINs) that can be returned and paged through is 1000." + }, + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "refinements": { + "$ref": "#\/components\/schemas\/Refinements" + }, + "items": { + "type": "array", + "description": "A list of items from the Amazon catalog.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + } + }, + "description": "Items in the Amazon catalog and search related metadata." + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A token that can be used to fetch the next page." + }, + "previousToken": { + "type": "string", + "description": "A token that can be used to fetch the previous page." + } + }, + "description": "When a request produces a response that exceeds the pageSize, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the nextToken value or the previousToken value as the pageToken parameter in the next request. When you receive the last page, there will be no nextToken key in the pagination object." + }, + "Refinements": { + "required": [ + "brands", + "classifications" + ], + "type": "object", + "properties": { + "brands": { + "type": "array", + "description": "Brand search refinements.", + "items": { + "$ref": "#\/components\/schemas\/BrandRefinement" + } + }, + "classifications": { + "type": "array", + "description": "Classification search refinements.", + "items": { + "$ref": "#\/components\/schemas\/ClassificationRefinement" + } + } + }, + "description": "Search refinements." + }, + "BrandRefinement": { + "required": [ + "brandName", + "numberOfResults" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "The estimated number of results that would still be returned if refinement key applied." + }, + "brandName": { + "type": "string", + "description": "Brand name. For display and can be used as a search refinement." + } + }, + "description": "Description of a brand that can be used to get more fine-grained search results." + }, + "ClassificationRefinement": { + "required": [ + "classificationId", + "displayName", + "numberOfResults" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "The estimated number of results that would still be returned if refinement key applied." + }, + "displayName": { + "type": "string", + "description": "Display name for the classification." + }, + "classificationId": { + "type": "string", + "description": "Identifier for the classification that can be used for search refinement purposes." + } + }, + "description": "Description of a classification that can be used to get more fine-grained search results." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/catalog-items/v2022-04-01.json b/resources/models/seller/catalog-items/v2022-04-01.json new file mode 100644 index 000000000..55d5c735c --- /dev/null +++ b/resources/models/seller/catalog-items/v2022-04-01.json @@ -0,0 +1,4085 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Catalog Items", + "description": "The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog.\n\nFor more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2022-04-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/catalog\/2022-04-01\/items": { + "get": { + "tags": [ + "CatalogItemsV20220401" + ], + "description": "Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords.\n\n**Usage Plans:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "searchCatalogItems", + "parameters": [ + { + "name": "identifiers", + "in": "query", + "description": "A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + }, + "example": "shoes" + }, + { + "name": "identifiersType", + "in": "query", + "description": "Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided.", + "schema": { + "type": "string", + "enum": [ + "ASIN", + "EAN", + "GTIN", + "ISBN", + "JAN", + "MINSAN", + "SKU", + "UPC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASIN", + "description": "Amazon Standard Identification Number." + }, + { + "value": "EAN", + "description": "European Article Number." + }, + { + "value": "GTIN", + "description": "Global Trade Item Number." + }, + { + "value": "ISBN", + "description": "International Standard Book Number." + }, + { + "value": "JAN", + "description": "Japanese Article Number." + }, + { + "value": "MINSAN", + "description": "Minsan Code." + }, + { + "value": "SKU", + "description": "Stock Keeping Unit, a seller-specified identifier for an Amazon listing. **Note:** Must be accompanied by `sellerId`." + }, + { + "value": "UPC", + "description": "Universal Product Code." + } + ] + }, + "example": "ASIN", + "x-docgen-enum-table-extension": [ + { + "value": "ASIN", + "description": "Amazon Standard Identification Number." + }, + { + "value": "EAN", + "description": "European Article Number." + }, + { + "value": "GTIN", + "description": "Global Trade Item Number." + }, + { + "value": "ISBN", + "description": "International Standard Book Number." + }, + { + "value": "JAN", + "description": "Japanese Article Number." + }, + { + "value": "MINSAN", + "description": "Minsan Code." + }, + { + "value": "SKU", + "description": "Stock Keeping Unit, a seller-specified identifier for an Amazon listing. **Note:** Must be accompanied by `sellerId`." + }, + { + "value": "UPC", + "description": "Universal Product Code." + } + ] + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "includedData", + "in": "query", + "description": "A comma-delimited list of data sets to include in the response. Default: `summaries`.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "attributes", + "dimensions", + "identifiers", + "images", + "productTypes", + "relationships", + "salesRanks", + "summaries", + "vendorDetails" + ], + "x-docgen-enum-table-extension": [ + { + "value": "attributes", + "description": "A JSON object containing structured item attribute data keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions available in the Selling Partner API for Product Type Definitions." + }, + { + "value": "dimensions", + "description": "Dimensions for an item in the Amazon catalog." + }, + { + "value": "identifiers", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers." + }, + { + "value": "images", + "description": "Images for an item in the Amazon catalog." + }, + { + "value": "productTypes", + "description": "Product types associated with the Amazon catalog item." + }, + { + "value": "relationships", + "description": "Relationship details of an Amazon catalog item (for example, variations)." + }, + { + "value": "salesRanks", + "description": "Sales ranks of an Amazon catalog item." + }, + { + "value": "summaries", + "description": "Summary details of an Amazon catalog item. Refer to the `attributes` of an Amazon catalog item for more details." + }, + { + "value": "vendorDetails", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only." + } + ] + }, + "default": "[\"summaries\"]" + }, + "example": "summaries" + }, + { + "name": "locale", + "in": "query", + "description": "Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + }, + { + "name": "sellerId", + "in": "query", + "description": "A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`.", + "schema": { + "type": "string" + } + }, + { + "name": "keywords", + "in": "query", + "description": "A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + }, + "example": "shoes" + }, + { + "name": "brandNames", + "in": "query", + "description": "A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "Beautiful Boats" + }, + { + "name": "classificationIds", + "in": "query", + "description": "A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "12345678" + }, + { + "name": "pageSize", + "in": "query", + "description": "Number of results to be returned per page.", + "schema": { + "maximum": 20, + "type": "integer", + "default": 10 + }, + "example": 9 + }, + { + "name": "pageToken", + "in": "query", + "description": "A token to fetch a certain page when there are multiple pages worth of results.", + "schema": { + "type": "string" + }, + "example": "sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234" + }, + { + "name": "keywordsLocale", + "in": "query", + "description": "The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ItemSearchResults" + }, + "example": { + "numberOfResults": 1, + "pagination": { + "nextToken": "xsdflkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjl234", + "previousToken": "ilkjsdflkj234lkjds234234lkjl234lksjdflkj234234lkjsfsdflkj333d" + }, + "refinements": { + "brands": [ + { + "numberOfResults": 1, + "brandName": "SAMSUNG" + } + ], + "classifications": [ + { + "numberOfResults": 1, + "displayName": "Electronics", + "classificationId": "493964" + } + ] + }, + "items": [ + { + "asin": "B07N4M94X4", + "attributes": { + "total_hdmi_ports": [ + { + "value": 4, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "resolution": [ + { + "language_tag": "en_US", + "value": "4K", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_weight": [ + { + "unit": "pounds", + "value": 107.6, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_subcategory": [ + { + "value": "50400120", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "bullet_point": [ + { + "language_tag": "en_US", + "value": "SMART TV WITH UNIVERSAL GUIDE: Simple on-screen Guide is an easy way to find streaming content and live TV shows", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "100% COLOR VOLUME WITH QUANTUM DOTS: Powered by Quantum dots, Samsung\u2019s 4K QLED TV offers over a billion shades of brilliant color and 100% color volume for exceptional depth of detail that will draw you in to the picture for the best 4K TV experience", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "QUANTUM PROCESSOR 4K: Intelligently powered processor instantly upscales content to 4K for sharp detail and refined color", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "QUANTUM HDR 4X: 4K depth of detail with high dynamic range powered by HDR10+ delivers the lightest to darkest colors, scene by scene, for amazing picture realism", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "AMBIENT MODE: Customizes and complements your living space by turning a blank screen of this big screen TV into enticing visuals including d\u00e9cor, info, photos and artwork", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "SMART TV FEATURES: OneRemote to control all compatible devices, Bixby voice command, on-screen universal guide, SmartThings to control compatible home appliances and devices, smart speaker expandability with Alexa and Google Assistant compatibility, and more", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_dimensions": [ + { + "width": { + "unit": "inches", + "value": 72.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "height": { + "unit": "inches", + "value": 41.4 + }, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "brand": [ + { + "language_tag": "en_US", + "value": "SAMSUNG", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "control_method": [ + { + "value": "voice", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_package_dimensions": [ + { + "length": { + "unit": "centimeters", + "value": 26.67 + }, + "width": { + "unit": "centimeters", + "value": 121.92 + }, + "height": { + "unit": "centimeters", + "value": 203.2 + }, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "image_aspect_ratio": [ + { + "language_tag": "en_US", + "value": "16:9", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "part_number": [ + { + "value": "QN82Q60RAFXZA", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "includes_remote": [ + { + "value": true, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "style": [ + { + "language_tag": "en_US", + "value": "TV only", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_type_name": [ + { + "language_tag": "en_US", + "value": "TV", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "battery": [ + { + "cell_composition": [ + { + "value": "alkaline" + } + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "image_contrast_ratio": [ + { + "language_tag": "en_US", + "value": "QLED 4K", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "manufacturer": [ + { + "language_tag": "en_US", + "value": "Samsung", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "number_of_boxes": [ + { + "value": 1, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "total_usb_ports": [ + { + "value": 2, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "model_number": [ + { + "value": "QN82Q60RAFXZA", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "supplier_declared_dg_hz_regulation": [ + { + "value": "not_applicable", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "num_batteries": [ + { + "quantity": 2, + "type": "aaa", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "california_proposition_65": [ + { + "compliance_type": "on_product_combined_cancer_reproductive", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "compliance_type": "chemical", + "chemical_names": [ + "di_2_ethylhexyl_phthalate_dehp" + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "display": [ + { + "resolution_maximum": [ + { + "unit": "pixels", + "language_tag": "en_US", + "value": "3840 x 2160" + } + ], + "size": [ + { + "unit": "inches", + "value": 82 + } + ], + "type": [ + { + "language_tag": "en_US", + "value": "QLED" + } + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_name": [ + { + "language_tag": "en_US", + "value": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "list_price": [ + { + "currency": "USD", + "value": 3799.99, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "batteries_required": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "includes_rechargable_battery": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_site_launch_date": [ + { + "value": "2019-03-11T08:00:01.000Z", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_category": [ + { + "value": "50400100", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "batteries_included": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "connectivity_technology": [ + { + "language_tag": "en_US", + "value": "Bluetooth", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "USB", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Wireless", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "HDMI", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "included_components": [ + { + "language_tag": "en_US", + "value": "QLED Standard Smart Remote", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Power Cable", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Stand", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Samsung Smart Control", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "specification_met": [ + { + "language_tag": "en_US", + "value": "", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "parental_control_technology": [ + { + "value": "V-Chip", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "power_consumption": [ + { + "unit": "watts", + "value": 120, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "cpsia_cautionary_statement": [ + { + "value": "no_warning_applicable", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_type_keyword": [ + { + "value": "qled-televisions", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "number_of_items": [ + { + "value": 1, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "warranty_description": [ + { + "language_tag": "en_US", + "value": "1 year manufacturer", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "max_resolution": [ + { + "unit": "pixels", + "value": 8.3, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "color": [ + { + "language_tag": "en_US", + "value": "Black", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "screen_surface_description": [ + { + "language_tag": "en_US", + "value": "Flat", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_package_weight": [ + { + "unit": "kilograms", + "value": 62.142, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "speaker_type": [ + { + "language_tag": "en_US", + "value": "2CH", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "supported_internet_services": [ + { + "language_tag": "en_US", + "value": "Amazon Instant Video", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "YouTube", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Netflix", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Hulu", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Browser", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "tuner_technology": [ + { + "language_tag": "en_US", + "value": "Analog Tuner", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "controller_type": [ + { + "language_tag": "en_US", + "value": "SmartThings", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Voice Control", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "special_feature": [ + { + "language_tag": "en_US", + "value": "100% Color Volume with Quantum Dot; Quantum Processor 4K; Ambient Mode; Quantum HDR 4X; Real Game Enhancer", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "wireless_communication_technology": [ + { + "language_tag": "en_US", + "value": "Wi-Fi::Wi-Fi Direct::Bluetooth", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "model_year": [ + { + "value": 2019, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "power_source_type": [ + { + "language_tag": "en_US", + "value": "Corded Electric", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "street_date": [ + { + "value": "2019-03-21T00:00:01Z", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "mounting_type": [ + { + "language_tag": "en_US", + "value": "Table Mount", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Wall Mount", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "refresh_rate": [ + { + "unit": "hertz", + "language_tag": "en_US", + "value": "120", + "marketplace_id": "ATVPDKIKX0DER" + } + ] + }, + "dimensions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "item": { + "height": { + "unit": "inches", + "value": 41.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "weight": { + "unit": "pounds", + "value": 107.6 + }, + "width": { + "unit": "inches", + "value": 72.4 + } + }, + "package": { + "height": { + "unit": "inches", + "value": 10.49999998929 + }, + "length": { + "unit": "inches", + "value": 79.9999999184 + }, + "weight": { + "unit": "kilograms", + "value": 62.142 + }, + "width": { + "unit": "inches", + "value": 47.99999995104 + } + } + } + ], + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "identifier": "0887276302195", + "identifierType": "EAN" + }, + { + "identifier": "00887276302195", + "identifierType": "GTIN" + }, + { + "identifier": "887276302195", + "identifierType": "UPC" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/91uohwV+k3L.jpg", + "height": 1707, + "width": 2560 + }, + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/81w2rTVShlL.jpg", + "height": 2560, + "width": 2560 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41Px9eq9tkL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT02", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51NTNhdhPyL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT03", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51o4zpL+A3L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71ux2k9GAZL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61UUX63yw1L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61LwHkljX-L.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51wJTQty3PL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61uvoB4VvoL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51ZexIO628L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/7121MGd2ncL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61QK+JBMrGL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61ECcGlG4IL.jpg", + "height": 1080, + "width": 1920 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/31TxwfqvB5L.jpg", + "height": 281, + "width": 500 + }, + { + "variant": "PT09", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41B5vgmp4IL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT10", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51S5IY3AV0L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT11", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41-6bmPtUlL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT12", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41s9Q6gWJ7L.jpg", + "height": 448, + "width": 500 + }, + { + "variant": "PT13", + "link": "https:\/\/m.media-amazon.com\/images\/I\/519nG0mRzuL.jpg", + "height": 314, + "width": 500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71sHhrGMc7L.jpg", + "height": 1097, + "width": 1500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41CH6gKtU5L.jpg", + "height": 366, + "width": 500 + }, + { + "variant": "PT15", + "link": "https:\/\/m.media-amazon.com\/images\/I\/21-s7QYrTxL.jpg", + "height": 500, + "width": 175 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "classificationRanks": [ + { + "classificationId": "21489946011", + "title": "QLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/21489946011", + "rank": 113 + } + ], + "displayGroupRanks": [ + { + "websiteDisplayGroup": "ce_display_on_website", + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 72855 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brand": "SAMSUNG", + "browseClassification": { + "displayName": "QLED TVs", + "classificationId": "21489946011" + }, + "color": "Black", + "itemClassification": "BASE_PRODUCT", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "packageQuantity": 1, + "partNumber": "QN82Q60RAFXZA", + "size": "82-Inch", + "style": "TV only", + "websiteDisplayGroup": "home_theater_display_on_website", + "websiteDisplayGroupName": "Home Theater" + } + ], + "relationships": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "relationships": [ + { + "type": "VARIATION", + "parentAsins": [ + "B08J7TQ9FL" + ], + "variationTheme": { + "attributes": [ + "color", + "size" + ], + "theme": "SIZE_NAME\/COLOR_NAME" + } + } + ] + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productCategory": { + "displayName": "Televisions", + "value": "50400100" + }, + "productGroup": "Home Entertainment", + "productSubcategory": { + "displayName": "Plasma TVs", + "value": "50400120" + }, + "replenishmentCategory": "OBSOLETE" + } + ] + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "keywords": { + "value": [ + "samsung", + "tv" + ] + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + }, + "includedData": { + "value": [ + "dimensions", + "identifiers", + "images", + "productTypes", + "relationships", + "salesRanks", + "summaries", + "vendorDetails" + ] + } + } + }, + "response": { + "numberOfResults": 1, + "pagination": { + "nextToken": "xsdflkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjl234", + "previousToken": "ilkjsdflkj234lkjds234234lkjl234lksjdflkj234234lkjsfsdflkj333d" + }, + "refinements": { + "brands": [ + { + "numberOfResults": 1, + "brandName": "SAMSUNG" + } + ], + "classifications": [ + { + "numberOfResults": 1, + "displayName": "Electronics", + "classificationId": "493964" + } + ] + }, + "items": [ + { + "asin": "B07N4M94X4", + "dimensions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "item": { + "height": { + "unit": "inches", + "value": 41.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "weight": { + "unit": "pounds", + "value": 107.6 + }, + "width": { + "unit": "inches", + "value": 72.4 + } + }, + "package": { + "height": { + "unit": "inches", + "value": 10.49999998929 + }, + "length": { + "unit": "inches", + "value": 79.9999999184 + }, + "weight": { + "unit": "kilograms", + "value": 62.142 + }, + "width": { + "unit": "inches", + "value": 47.99999995104 + } + } + } + ], + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "identifier": "0887276302195", + "identifierType": "EAN" + }, + { + "identifier": "00887276302195", + "identifierType": "GTIN" + }, + { + "identifier": "887276302195", + "identifierType": "UPC" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/91uohwV+k3L.jpg", + "height": 1707, + "width": 2560 + }, + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/81w2rTVShlL.jpg", + "height": 2560, + "width": 2560 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41Px9eq9tkL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT02", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51NTNhdhPyL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT03", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51o4zpL+A3L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71ux2k9GAZL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61UUX63yw1L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61LwHkljX-L.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51wJTQty3PL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61uvoB4VvoL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51ZexIO628L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/7121MGd2ncL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61QK+JBMrGL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61ECcGlG4IL.jpg", + "height": 1080, + "width": 1920 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/31TxwfqvB5L.jpg", + "height": 281, + "width": 500 + }, + { + "variant": "PT09", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41B5vgmp4IL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT10", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51S5IY3AV0L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT11", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41-6bmPtUlL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT12", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41s9Q6gWJ7L.jpg", + "height": 448, + "width": 500 + }, + { + "variant": "PT13", + "link": "https:\/\/m.media-amazon.com\/images\/I\/519nG0mRzuL.jpg", + "height": 314, + "width": 500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71sHhrGMc7L.jpg", + "height": 1097, + "width": 1500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41CH6gKtU5L.jpg", + "height": 366, + "width": 500 + }, + { + "variant": "PT15", + "link": "https:\/\/m.media-amazon.com\/images\/I\/21-s7QYrTxL.jpg", + "height": 500, + "width": 175 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "classificationRanks": [ + { + "classificationId": "21489946011", + "title": "QLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/21489946011", + "rank": 113 + } + ], + "displayGroupRanks": [ + { + "websiteDisplayGroup": "ce_display_on_website", + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 72855 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brand": "SAMSUNG", + "browseClassification": { + "displayName": "QLED TVs", + "classificationId": "21489946011" + }, + "color": "Black", + "itemClassification": "BASE_PRODUCT", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "packageQuantity": 1, + "partNumber": "QN82Q60RAFXZA", + "size": "82-Inch", + "style": "TV only", + "websiteDisplayGroup": "home_theater_display_on_website", + "websiteDisplayGroupName": "Home Theater" + } + ], + "relationships": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "relationships": [ + { + "type": "VARIATION", + "parentAsins": [ + "B08J7TQ9FL" + ], + "variationTheme": { + "attributes": [ + "color", + "size" + ], + "theme": "SIZE_NAME\/COLOR_NAME" + } + } + ] + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productCategory": { + "displayName": "Televisions", + "value": "50400100" + }, + "productGroup": "Home Entertainment", + "productSubcategory": { + "displayName": "Plasma TVs", + "value": "50400120" + }, + "replenishmentCategory": "OBSOLETE" + } + ] + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/catalog\/2022-04-01\/items\/{asin}": { + "get": { + "tags": [ + "CatalogItemsV20220401" + ], + "description": "Retrieves details for an item in the Amazon catalog.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCatalogItem", + "parameters": [ + { + "name": "asin", + "in": "path", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "includedData", + "in": "query", + "description": "A comma-delimited list of data sets to include in the response. Default: `summaries`.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "attributes", + "dimensions", + "identifiers", + "images", + "productTypes", + "relationships", + "salesRanks", + "summaries", + "vendorDetails" + ], + "x-docgen-enum-table-extension": [ + { + "value": "attributes", + "description": "A JSON object containing structured item attribute data keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions available in the Selling Partner API for Product Type Definitions." + }, + { + "value": "dimensions", + "description": "Dimensions for an item in the Amazon catalog." + }, + { + "value": "identifiers", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers." + }, + { + "value": "images", + "description": "Images for an item in the Amazon catalog." + }, + { + "value": "productTypes", + "description": "Product types associated with the Amazon catalog item." + }, + { + "value": "salesRanks", + "description": "Sales ranks of an Amazon catalog item." + }, + { + "value": "summaries", + "description": "Summary details of an Amazon catalog item. Refer to the \"attributes\" of an Amazon catalog item for more details." + }, + { + "value": "relationships", + "description": "Relationship details of an Amazon catalog item (for example, variations)." + }, + { + "value": "vendorDetails", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only." + } + ] + }, + "default": "[\"summaries\"]" + }, + "example": "summaries" + }, + { + "name": "locale", + "in": "query", + "description": "Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Item" + }, + "example": { + "asin": "B07N4M94X4", + "attributes": { + "total_hdmi_ports": [ + { + "value": 4, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "resolution": [ + { + "language_tag": "en_US", + "value": "4K", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_weight": [ + { + "unit": "pounds", + "value": 107.6, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_subcategory": [ + { + "value": "50400120", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "bullet_point": [ + { + "language_tag": "en_US", + "value": "SMART TV WITH UNIVERSAL GUIDE: Simple on-screen Guide is an easy way to find streaming content and live TV shows", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "100% COLOR VOLUME WITH QUANTUM DOTS: Powered by Quantum dots, Samsung\u2019s 4K QLED TV offers over a billion shades of brilliant color and 100% color volume for exceptional depth of detail that will draw you in to the picture for the best 4K TV experience", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "QUANTUM PROCESSOR 4K: Intelligently powered processor instantly upscales content to 4K for sharp detail and refined color", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "QUANTUM HDR 4X: 4K depth of detail with high dynamic range powered by HDR10+ delivers the lightest to darkest colors, scene by scene, for amazing picture realism", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "AMBIENT MODE: Customizes and complements your living space by turning a blank screen of this big screen TV into enticing visuals including d\u00e9cor, info, photos and artwork", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "SMART TV FEATURES: OneRemote to control all compatible devices, Bixby voice command, on-screen universal guide, SmartThings to control compatible home appliances and devices, smart speaker expandability with Alexa and Google Assistant compatibility, and more", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_dimensions": [ + { + "width": { + "unit": "inches", + "value": 72.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "height": { + "unit": "inches", + "value": 41.4 + }, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "brand": [ + { + "language_tag": "en_US", + "value": "SAMSUNG", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "control_method": [ + { + "value": "voice", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_package_dimensions": [ + { + "length": { + "unit": "centimeters", + "value": 26.67 + }, + "width": { + "unit": "centimeters", + "value": 121.92 + }, + "height": { + "unit": "centimeters", + "value": 203.2 + }, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "image_aspect_ratio": [ + { + "language_tag": "en_US", + "value": "16:9", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "part_number": [ + { + "value": "QN82Q60RAFXZA", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "includes_remote": [ + { + "value": true, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "style": [ + { + "language_tag": "en_US", + "value": "TV only", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_type_name": [ + { + "language_tag": "en_US", + "value": "TV", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "battery": [ + { + "cell_composition": [ + { + "value": "alkaline" + } + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "image_contrast_ratio": [ + { + "language_tag": "en_US", + "value": "QLED 4K", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "manufacturer": [ + { + "language_tag": "en_US", + "value": "Samsung", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "number_of_boxes": [ + { + "value": 1, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "total_usb_ports": [ + { + "value": 2, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "model_number": [ + { + "value": "QN82Q60RAFXZA", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "supplier_declared_dg_hz_regulation": [ + { + "value": "not_applicable", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "num_batteries": [ + { + "quantity": 2, + "type": "aaa", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "california_proposition_65": [ + { + "compliance_type": "on_product_combined_cancer_reproductive", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "compliance_type": "chemical", + "chemical_names": [ + "di_2_ethylhexyl_phthalate_dehp" + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "display": [ + { + "resolution_maximum": [ + { + "unit": "pixels", + "language_tag": "en_US", + "value": "3840 x 2160" + } + ], + "size": [ + { + "unit": "inches", + "value": 82 + } + ], + "type": [ + { + "language_tag": "en_US", + "value": "QLED" + } + ], + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_name": [ + { + "language_tag": "en_US", + "value": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "list_price": [ + { + "currency": "USD", + "value": 3799.99, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "batteries_required": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "includes_rechargable_battery": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_site_launch_date": [ + { + "value": "2019-03-11T08:00:01.000Z", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "product_category": [ + { + "value": "50400100", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "batteries_included": [ + { + "value": false, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "connectivity_technology": [ + { + "language_tag": "en_US", + "value": "Bluetooth", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "USB", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Wireless", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "HDMI", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "included_components": [ + { + "language_tag": "en_US", + "value": "QLED Standard Smart Remote", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Power Cable", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Stand", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Samsung Smart Control", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "specification_met": [ + { + "language_tag": "en_US", + "value": "", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "parental_control_technology": [ + { + "value": "V-Chip", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "power_consumption": [ + { + "unit": "watts", + "value": 120, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "cpsia_cautionary_statement": [ + { + "value": "no_warning_applicable", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_type_keyword": [ + { + "value": "qled-televisions", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "number_of_items": [ + { + "value": 1, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "warranty_description": [ + { + "language_tag": "en_US", + "value": "1 year manufacturer", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "max_resolution": [ + { + "unit": "pixels", + "value": 8.3, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "color": [ + { + "language_tag": "en_US", + "value": "Black", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "screen_surface_description": [ + { + "language_tag": "en_US", + "value": "Flat", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "item_package_weight": [ + { + "unit": "kilograms", + "value": 62.142, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "speaker_type": [ + { + "language_tag": "en_US", + "value": "2CH", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "supported_internet_services": [ + { + "language_tag": "en_US", + "value": "Amazon Instant Video", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "YouTube", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Netflix", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Hulu", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Browser", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "tuner_technology": [ + { + "language_tag": "en_US", + "value": "Analog Tuner", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "controller_type": [ + { + "language_tag": "en_US", + "value": "SmartThings", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Voice Control", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "special_feature": [ + { + "language_tag": "en_US", + "value": "100% Color Volume with Quantum Dot; Quantum Processor 4K; Ambient Mode; Quantum HDR 4X; Real Game Enhancer", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "wireless_communication_technology": [ + { + "language_tag": "en_US", + "value": "Wi-Fi::Wi-Fi Direct::Bluetooth", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "model_year": [ + { + "value": 2019, + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "power_source_type": [ + { + "language_tag": "en_US", + "value": "Corded Electric", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "street_date": [ + { + "value": "2019-03-21T00:00:01Z", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "mounting_type": [ + { + "language_tag": "en_US", + "value": "Table Mount", + "marketplace_id": "ATVPDKIKX0DER" + }, + { + "language_tag": "en_US", + "value": "Wall Mount", + "marketplace_id": "ATVPDKIKX0DER" + } + ], + "refresh_rate": [ + { + "unit": "hertz", + "language_tag": "en_US", + "value": "120", + "marketplace_id": "ATVPDKIKX0DER" + } + ] + }, + "dimensions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "item": { + "height": { + "unit": "inches", + "value": 41.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "weight": { + "unit": "pounds", + "value": 107.6 + }, + "width": { + "unit": "inches", + "value": 72.4 + } + }, + "package": { + "height": { + "unit": "inches", + "value": 10.49999998929 + }, + "length": { + "unit": "inches", + "value": 79.9999999184 + }, + "weight": { + "unit": "kilograms", + "value": 62.142 + }, + "width": { + "unit": "inches", + "value": 47.99999995104 + } + } + } + ], + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "identifier": "0887276302195", + "identifierType": "EAN" + }, + { + "identifier": "00887276302195", + "identifierType": "GTIN" + }, + { + "identifier": "887276302195", + "identifierType": "UPC" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/91uohwV+k3L.jpg", + "height": 1707, + "width": 2560 + }, + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/81w2rTVShlL.jpg", + "height": 2560, + "width": 2560 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41Px9eq9tkL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT02", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51NTNhdhPyL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT03", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51o4zpL+A3L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71ux2k9GAZL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61UUX63yw1L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61LwHkljX-L.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51wJTQty3PL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61uvoB4VvoL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51ZexIO628L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/7121MGd2ncL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61QK+JBMrGL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61ECcGlG4IL.jpg", + "height": 1080, + "width": 1920 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/31TxwfqvB5L.jpg", + "height": 281, + "width": 500 + }, + { + "variant": "PT09", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41B5vgmp4IL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT10", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51S5IY3AV0L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT11", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41-6bmPtUlL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT12", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41s9Q6gWJ7L.jpg", + "height": 448, + "width": 500 + }, + { + "variant": "PT13", + "link": "https:\/\/m.media-amazon.com\/images\/I\/519nG0mRzuL.jpg", + "height": 314, + "width": 500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71sHhrGMc7L.jpg", + "height": 1097, + "width": 1500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41CH6gKtU5L.jpg", + "height": 366, + "width": 500 + }, + { + "variant": "PT15", + "link": "https:\/\/m.media-amazon.com\/images\/I\/21-s7QYrTxL.jpg", + "height": 500, + "width": 175 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "classificationRanks": [ + { + "classificationId": "21489946011", + "title": "QLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/21489946011", + "rank": 113 + } + ], + "displayGroupRanks": [ + { + "websiteDisplayGroup": "ce_display_on_website", + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 72855 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brand": "SAMSUNG", + "browseClassification": { + "displayName": "QLED TVs", + "classificationId": "21489946011" + }, + "color": "Black", + "itemClassification": "BASE_PRODUCT", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "packageQuantity": 1, + "partNumber": "QN82Q60RAFXZA", + "size": "82-Inch", + "style": "TV only", + "websiteDisplayGroup": "home_theater_display_on_website", + "websiteDisplayGroupName": "Home Theater" + } + ], + "relationships": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "relationships": [ + { + "type": "VARIATION", + "parentAsins": [ + "B08J7TQ9FL" + ], + "variationTheme": { + "attributes": [ + "color", + "size" + ], + "theme": "SIZE_NAME\/COLOR_NAME" + } + } + ] + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productCategory": { + "displayName": "Televisions", + "value": "50400100" + }, + "productGroup": "Home Entertainment", + "productSubcategory": { + "displayName": "Plasma TVs", + "value": "50400120" + }, + "replenishmentCategory": "OBSOLETE" + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "B07N4M94X4" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + }, + "includedData": { + "value": [ + "dimensions", + "identifiers", + "images", + "productTypes", + "relationships", + "salesRanks", + "summaries", + "vendorDetails" + ] + } + } + }, + "response": { + "asin": "B07N4M94X4", + "dimensions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "item": { + "height": { + "unit": "inches", + "value": 41.4 + }, + "length": { + "unit": "inches", + "value": 2.4 + }, + "weight": { + "unit": "pounds", + "value": 107.6 + }, + "width": { + "unit": "inches", + "value": 72.4 + } + }, + "package": { + "height": { + "unit": "inches", + "value": 10.49999998929 + }, + "length": { + "unit": "inches", + "value": 79.9999999184 + }, + "weight": { + "unit": "kilograms", + "value": 62.142 + }, + "width": { + "unit": "inches", + "value": 47.99999995104 + } + } + } + ], + "identifiers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "identifiers": [ + { + "identifier": "0887276302195", + "identifierType": "EAN" + }, + { + "identifier": "00887276302195", + "identifierType": "GTIN" + }, + { + "identifier": "887276302195", + "identifierType": "UPC" + } + ] + } + ], + "images": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "images": [ + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/91uohwV+k3L.jpg", + "height": 1707, + "width": 2560 + }, + { + "variant": "MAIN", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51DZzp3w3vL.jpg", + "height": 333, + "width": 500 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/81w2rTVShlL.jpg", + "height": 2560, + "width": 2560 + }, + { + "variant": "PT01", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41Px9eq9tkL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT02", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51NTNhdhPyL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT03", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51o4zpL+A3L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71ux2k9GAZL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT04", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61UUX63yw1L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61LwHkljX-L.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT05", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51wJTQty3PL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61uvoB4VvoL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT06", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51ZexIO628L.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/7121MGd2ncL.jpg", + "height": 1000, + "width": 1000 + }, + { + "variant": "PT07", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61QK+JBMrGL.jpg", + "height": 500, + "width": 500 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61ECcGlG4IL.jpg", + "height": 1080, + "width": 1920 + }, + { + "variant": "PT08", + "link": "https:\/\/m.media-amazon.com\/images\/I\/31TxwfqvB5L.jpg", + "height": 281, + "width": 500 + }, + { + "variant": "PT09", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41B5vgmp4IL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT10", + "link": "https:\/\/m.media-amazon.com\/images\/I\/51S5IY3AV0L.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT11", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41-6bmPtUlL.jpg", + "height": 375, + "width": 500 + }, + { + "variant": "PT12", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41s9Q6gWJ7L.jpg", + "height": 448, + "width": 500 + }, + { + "variant": "PT13", + "link": "https:\/\/m.media-amazon.com\/images\/I\/519nG0mRzuL.jpg", + "height": 314, + "width": 500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/71sHhrGMc7L.jpg", + "height": 1097, + "width": 1500 + }, + { + "variant": "PT14", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41CH6gKtU5L.jpg", + "height": 366, + "width": 500 + }, + { + "variant": "PT15", + "link": "https:\/\/m.media-amazon.com\/images\/I\/21-s7QYrTxL.jpg", + "height": 500, + "width": 175 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EEGL", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/61i3dsKD09L.jpg", + "height": 1375, + "width": 370 + }, + { + "variant": "EGUS", + "link": "https:\/\/m.media-amazon.com\/images\/I\/41E7ku-qdGL.jpg", + "height": 500, + "width": 135 + } + ] + } + ], + "productTypes": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "productType": "TELEVISION" + } + ], + "salesRanks": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "classificationRanks": [ + { + "classificationId": "21489946011", + "title": "QLED TVs", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics\/21489946011", + "rank": 113 + } + ], + "displayGroupRanks": [ + { + "websiteDisplayGroup": "ce_display_on_website", + "title": "Electronics", + "link": "http:\/\/www.amazon.com\/gp\/bestsellers\/electronics", + "rank": 72855 + } + ] + } + ], + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brand": "SAMSUNG", + "browseClassification": { + "displayName": "QLED TVs", + "classificationId": "21489946011" + }, + "color": "Black", + "itemClassification": "BASE_PRODUCT", + "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", + "manufacturer": "Samsung", + "modelNumber": "QN82Q60RAFXZA", + "packageQuantity": 1, + "partNumber": "QN82Q60RAFXZA", + "size": "82-Inch", + "style": "TV only", + "websiteDisplayGroup": "home_theater_display_on_website", + "websiteDisplayGroupName": "Home Theater" + } + ], + "relationships": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "relationships": [ + { + "type": "VARIATION", + "parentAsins": [ + "B08J7TQ9FL" + ], + "variationTheme": { + "attributes": [ + "color", + "size" + ], + "theme": "SIZE_NAME\/COLOR_NAME" + } + } + ] + } + ], + "vendorDetails": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "brandCode": "SAMF9", + "manufacturerCode": "SAMF9", + "manufacturerCodeParent": "SAMF9", + "productCategory": { + "displayName": "Televisions", + "value": "50400100" + }, + "productGroup": "Home Entertainment", + "productSubcategory": { + "displayName": "Plasma TVs", + "value": "50400120" + }, + "replenishmentCategory": "OBSOLETE" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Item": { + "required": [ + "asin" + ], + "type": "object", + "properties": { + "asin": { + "$ref": "#\/components\/schemas\/ItemAsin" + }, + "attributes": { + "$ref": "#\/components\/schemas\/ItemAttributes" + }, + "dimensions": { + "$ref": "#\/components\/schemas\/ItemDimensions" + }, + "identifiers": { + "$ref": "#\/components\/schemas\/ItemIdentifiers" + }, + "images": { + "$ref": "#\/components\/schemas\/ItemImages" + }, + "productTypes": { + "$ref": "#\/components\/schemas\/ItemProductTypes" + }, + "relationships": { + "$ref": "#\/components\/schemas\/ItemRelationships" + }, + "salesRanks": { + "$ref": "#\/components\/schemas\/ItemSalesRanks" + }, + "summaries": { + "$ref": "#\/components\/schemas\/ItemSummaries" + }, + "vendorDetails": { + "$ref": "#\/components\/schemas\/ItemVendorDetails" + } + }, + "description": "An item in the Amazon catalog." + }, + "ItemAsin": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog." + }, + "ItemAttributes": { + "type": "object", + "additionalProperties": true, + "description": "A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions." + }, + "ItemBrowseClassification": { + "required": [ + "classificationId", + "displayName" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name for the classification." + }, + "classificationId": { + "type": "string", + "description": "Identifier of the classification (browse node identifier)." + } + }, + "description": "Classification (browse node) associated with an Amazon catalog item." + }, + "ItemContributor": { + "required": [ + "role", + "value" + ], + "type": "object", + "properties": { + "role": { + "$ref": "#\/components\/schemas\/ItemContributorRole" + }, + "value": { + "type": "string", + "description": "Name of the contributor, such as Jane Austen." + } + }, + "description": "Individual contributor to the creation of an item, such as an author or actor." + }, + "ItemContributorRole": { + "required": [ + "value" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the role in the requested locale, such as Author or Actor." + }, + "value": { + "type": "string", + "description": "Role value for the Amazon catalog item, such as author or actor." + } + }, + "description": "Role of an individual contributor in the creation of an item, such as author or actor." + }, + "Dimension": { + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "Measurement unit of the dimension value." + }, + "value": { + "type": "number", + "description": "Numeric dimension value." + } + }, + "description": "Individual dimension value of an Amazon catalog item or item package." + }, + "Dimensions": { + "type": "object", + "properties": { + "height": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "length": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "weight": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "width": { + "$ref": "#\/components\/schemas\/Dimension" + } + }, + "description": "Dimensions of an Amazon catalog item or item in its packaging." + }, + "ItemDimensions": { + "type": "array", + "description": "Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemDimensionsByMarketplace" + } + }, + "ItemDimensionsByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "item": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "package": { + "$ref": "#\/components\/schemas\/Dimensions" + } + }, + "description": "Dimensions associated with the item in the Amazon catalog for the indicated Amazon marketplace." + }, + "ItemIdentifiers": { + "type": "array", + "description": "Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.", + "items": { + "$ref": "#\/components\/schemas\/ItemIdentifiersByMarketplace" + } + }, + "ItemIdentifiersByMarketplace": { + "required": [ + "identifiers", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "identifiers": { + "type": "array", + "description": "Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemIdentifier" + } + } + }, + "description": "Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace." + }, + "ItemIdentifier": { + "required": [ + "identifier", + "identifierType" + ], + "type": "object", + "properties": { + "identifierType": { + "type": "string", + "description": "Type of identifier, such as UPC, EAN, or ISBN." + }, + "identifier": { + "type": "string", + "description": "Identifier." + } + }, + "description": "Identifier associated with the item in the Amazon catalog, such as a UPC or EAN identifier." + }, + "ItemImages": { + "type": "array", + "description": "Images for an item in the Amazon catalog.", + "items": { + "$ref": "#\/components\/schemas\/ItemImagesByMarketplace" + } + }, + "ItemImagesByMarketplace": { + "required": [ + "images", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "images": { + "type": "array", + "description": "Images for an item in the Amazon catalog for the indicated Amazon marketplace.", + "items": { + "$ref": "#\/components\/schemas\/ItemImage" + } + } + }, + "description": "Images for an item in the Amazon catalog for the indicated Amazon marketplace." + }, + "ItemImage": { + "required": [ + "height", + "link", + "variant", + "width" + ], + "type": "object", + "properties": { + "variant": { + "type": "string", + "description": "Variant of the image, such as `MAIN` or `PT01`.", + "example": "MAIN", + "enum": [ + "MAIN", + "PT01", + "PT02", + "PT03", + "PT04", + "PT05", + "PT06", + "PT07", + "PT08", + "SWCH" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MAIN", + "description": "Main image for the item." + }, + { + "value": "PT01", + "description": "Other image #1 for the item." + }, + { + "value": "PT02", + "description": "Other image #2 for the item." + }, + { + "value": "PT03", + "description": "Other image #3 for the item." + }, + { + "value": "PT04", + "description": "Other image #4 for the item." + }, + { + "value": "PT05", + "description": "Other image #5 for the item." + }, + { + "value": "PT06", + "description": "Other image #6 for the item." + }, + { + "value": "PT07", + "description": "Other image #7 for the item." + }, + { + "value": "PT08", + "description": "Other image #8 for the item." + }, + { + "value": "SWCH", + "description": "Swatch image for the item." + } + ] + }, + "link": { + "type": "string", + "description": "Link, or URL, for the image." + }, + "height": { + "type": "integer", + "description": "Height of the image in pixels." + }, + "width": { + "type": "integer", + "description": "Width of the image in pixels." + } + }, + "description": "Image for an item in the Amazon catalog." + }, + "ItemProductTypes": { + "type": "array", + "description": "Product types associated with the Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemProductTypeByMarketplace" + } + }, + "ItemProductTypeByMarketplace": { + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "productType": { + "type": "string", + "description": "Name of the product type associated with the Amazon catalog item.", + "example": "LUGGAGE" + } + }, + "description": "Product type associated with the Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemSalesRanks": { + "type": "array", + "description": "Sales ranks of an Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemSalesRanksByMarketplace" + } + }, + "ItemSalesRanksByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "classificationRanks": { + "type": "array", + "description": "Sales ranks of an Amazon catalog item for an Amazon marketplace by classification.", + "items": { + "$ref": "#\/components\/schemas\/ItemClassificationSalesRank" + } + }, + "displayGroupRanks": { + "type": "array", + "description": "Sales ranks of an Amazon catalog item for an Amazon marketplace by website display group.", + "items": { + "$ref": "#\/components\/schemas\/ItemDisplayGroupSalesRank" + } + } + }, + "description": "Sales ranks of an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemClassificationSalesRank": { + "required": [ + "classificationId", + "rank", + "title" + ], + "type": "object", + "properties": { + "classificationId": { + "type": "string", + "description": "Identifier of the classification associated with the sales rank." + }, + "title": { + "type": "string", + "description": "Title, or name, of the sales rank." + }, + "link": { + "type": "string", + "description": "Corresponding Amazon retail website link, or URL, for the sales rank." + }, + "rank": { + "type": "integer", + "description": "Sales rank value." + } + }, + "description": "Sales rank of an Amazon catalog item by classification." + }, + "ItemDisplayGroupSalesRank": { + "required": [ + "rank", + "title", + "websiteDisplayGroup" + ], + "type": "object", + "properties": { + "websiteDisplayGroup": { + "type": "string", + "description": "Name of the website display group associated with the sales rank" + }, + "title": { + "type": "string", + "description": "Title, or name, of the sales rank." + }, + "link": { + "type": "string", + "description": "Corresponding Amazon retail website link, or URL, for the sales rank." + }, + "rank": { + "type": "integer", + "description": "Sales rank value." + } + }, + "description": "Sales rank of an Amazon catalog item by website display group." + }, + "ItemSummaries": { + "type": "array", + "description": "Summary details of an Amazon catalog item.", + "items": { + "$ref": "#\/components\/schemas\/ItemSummaryByMarketplace" + } + }, + "ItemSummaryByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "adultProduct": { + "type": "boolean", + "description": "Identifies an Amazon catalog item is intended for an adult audience or is sexual in nature." + }, + "autographed": { + "type": "boolean", + "description": "Identifies an Amazon catalog item is autographed by a player or celebrity." + }, + "brand": { + "type": "string", + "description": "Name of the brand associated with an Amazon catalog item." + }, + "browseClassification": { + "$ref": "#\/components\/schemas\/ItemBrowseClassification" + }, + "color": { + "type": "string", + "description": "Name of the color associated with an Amazon catalog item." + }, + "contributors": { + "type": "array", + "description": "Individual contributors to the creation of an item, such as the authors or actors.", + "items": { + "$ref": "#\/components\/schemas\/ItemContributor" + } + }, + "itemClassification": { + "type": "string", + "description": "Classification type associated with the Amazon catalog item.", + "enum": [ + "BASE_PRODUCT", + "OTHER", + "PRODUCT_BUNDLE", + "VARIATION_PARENT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "BASE_PRODUCT", + "description": "Represents a standard standalone or a variation child item in the Amazon catalog." + }, + { + "value": "OTHER", + "description": "Represents an item in the Amazon catalog that is not `BASE_PRODUCT`, `PRODUCT_BUNDLE`, or `VARIATION_PARENT`." + }, + { + "value": "PRODUCT_BUNDLE", + "description": "Represents a parent Amazon catalog item representing a bundle of items." + }, + { + "value": "VARIATION_PARENT", + "description": "Represents a parent Amazon catalog item grouping child items into a variation family." + } + ] + }, + "itemName": { + "type": "string", + "description": "Name, or title, associated with an Amazon catalog item." + }, + "manufacturer": { + "type": "string", + "description": "Name of the manufacturer associated with an Amazon catalog item." + }, + "memorabilia": { + "type": "boolean", + "description": "Identifies an Amazon catalog item is memorabilia valued for its connection with historical events, culture, or entertainment." + }, + "modelNumber": { + "type": "string", + "description": "Model number associated with an Amazon catalog item." + }, + "packageQuantity": { + "type": "integer", + "description": "Quantity of an Amazon catalog item in one package." + }, + "partNumber": { + "type": "string", + "description": "Part number associated with an Amazon catalog item." + }, + "releaseDate": { + "type": "string", + "description": "First date on which an Amazon catalog item is shippable to customers.", + "format": "date" + }, + "size": { + "type": "string", + "description": "Name of the size associated with an Amazon catalog item." + }, + "style": { + "type": "string", + "description": "Name of the style associated with an Amazon catalog item." + }, + "tradeInEligible": { + "type": "boolean", + "description": "Identifies an Amazon catalog item is eligible for trade-in." + }, + "websiteDisplayGroup": { + "type": "string", + "description": "Identifier of the website display group associated with an Amazon catalog item." + }, + "websiteDisplayGroupName": { + "type": "string", + "description": "Display name of the website display group associated with an Amazon catalog item." + } + }, + "description": "Summary details of an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemVariationTheme": { + "type": "object", + "properties": { + "attributes": { + "type": "array", + "description": "Names of the Amazon catalog item attributes associated with the variation theme.", + "items": { + "type": "string" + } + }, + "theme": { + "type": "string", + "description": "Variation theme indicating the combination of Amazon item catalog attributes that define the variation family.", + "example": "COLOR_NAME\/STYLE_NAME" + } + }, + "description": "Variation theme indicating the combination of Amazon item catalog attributes that define the variation family." + }, + "ItemRelationships": { + "type": "array", + "description": "Relationships by marketplace for an Amazon catalog item (for example, variations).", + "items": { + "$ref": "#\/components\/schemas\/ItemRelationshipsByMarketplace" + } + }, + "ItemRelationshipsByMarketplace": { + "required": [ + "marketplaceId", + "relationships" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "relationships": { + "type": "array", + "description": "Relationships for the item.", + "items": { + "$ref": "#\/components\/schemas\/ItemRelationship" + } + } + }, + "description": "Relationship details for the Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemRelationship": { + "required": [ + "type" + ], + "type": "object", + "properties": { + "childAsins": { + "type": "array", + "description": "Identifiers (ASINs) of the related items that are children of this item.", + "items": { + "type": "string" + } + }, + "parentAsins": { + "type": "array", + "description": "Identifiers (ASINs) of the related items that are parents of this item.", + "items": { + "type": "string" + } + }, + "variationTheme": { + "$ref": "#\/components\/schemas\/ItemVariationTheme" + }, + "type": { + "type": "string", + "description": "Type of relationship.", + "example": "VARIATION", + "enum": [ + "VARIATION", + "PACKAGE_HIERARCHY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VARIATION", + "description": "The Amazon catalog item in the request is a variation parent or variation child of the related item(s) indicated by ASIN." + }, + { + "value": "PACKAGE_HIERARCHY", + "description": "The Amazon catalog item in the request is a package container or is contained by the related item(s) indicated by ASIN." + } + ] + } + }, + "description": "Relationship details for an Amazon catalog item." + }, + "ItemVendorDetailsCategory": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Display name of the product category or subcategory" + }, + "value": { + "type": "string", + "description": "Value (code) of the product category or subcategory." + } + }, + "description": "Product category or subcategory associated with an Amazon catalog item." + }, + "ItemVendorDetails": { + "type": "array", + "description": "Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only.", + "items": { + "$ref": "#\/components\/schemas\/ItemVendorDetailsByMarketplace" + } + }, + "ItemVendorDetailsByMarketplace": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "brandCode": { + "type": "string", + "description": "Brand code associated with an Amazon catalog item." + }, + "manufacturerCode": { + "type": "string", + "description": "Manufacturer code associated with an Amazon catalog item." + }, + "manufacturerCodeParent": { + "type": "string", + "description": "Parent vendor code of the manufacturer code." + }, + "productCategory": { + "$ref": "#\/components\/schemas\/ItemVendorDetailsCategory" + }, + "productGroup": { + "type": "string", + "description": "Product group associated with an Amazon catalog item." + }, + "productSubcategory": { + "$ref": "#\/components\/schemas\/ItemVendorDetailsCategory" + }, + "replenishmentCategory": { + "type": "string", + "description": "Replenishment category associated with an Amazon catalog item.", + "enum": [ + "ALLOCATED", + "BASIC_REPLENISHMENT", + "IN_SEASON", + "LIMITED_REPLENISHMENT", + "MANUFACTURER_OUT_OF_STOCK", + "NEW_PRODUCT", + "NON_REPLENISHABLE", + "NON_STOCKUPABLE", + "OBSOLETE", + "PLANNED_REPLENISHMENT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ALLOCATED", + "description": "Indicates non-automated purchasing of inventory that has been allocated to Amazon by the vendor." + }, + { + "value": "BASIC_REPLENISHMENT", + "description": "Indicates non-automated purchasing of inventory." + }, + { + "value": "IN_SEASON", + "description": "Indicates non-automated purchasing of inventory for seasonal items." + }, + { + "value": "LIMITED_REPLENISHMENT", + "description": "Holding queue replenishment status before an item is `NEW_PRODUCT`." + }, + { + "value": "MANUFACTURER_OUT_OF_STOCK", + "description": "Indicates vendor is out of stock for a longer period of time and cannot backorder." + }, + { + "value": "NEW_PRODUCT", + "description": "Indicates a new item that Amazon does not yet stock in inventory." + }, + { + "value": "NON_REPLENISHABLE", + "description": "Indicates assortment parent used for detail page display, not actual items." + }, + { + "value": "NON_STOCKUPABLE", + "description": "Indicates drop ship inventory that Amazon does not stock in its fulfillment centers." + }, + { + "value": "OBSOLETE", + "description": "Indicates item is obsolete and should not be ordered." + }, + { + "value": "PLANNED_REPLENISHMENT", + "description": "Indicates active items that should be automatically ordered." + } + ] + } + }, + "description": "Vendor details associated with an Amazon catalog item for the indicated Amazon marketplace." + }, + "ItemSearchResults": { + "required": [ + "items", + "numberOfResults", + "pagination", + "refinements" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "For `identifiers`-based searches, the total number of Amazon catalog items found. For `keywords`-based searches, the estimated total number of Amazon catalog items matched by the search query (only results up to the page count limit will be returned per request regardless of the number found).\n\nNote: The maximum number of items (ASINs) that can be returned and paged through is 1000." + }, + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "refinements": { + "$ref": "#\/components\/schemas\/Refinements" + }, + "items": { + "type": "array", + "description": "A list of items from the Amazon catalog.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + } + }, + "description": "Items in the Amazon catalog and search related metadata." + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A token that can be used to fetch the next page." + }, + "previousToken": { + "type": "string", + "description": "A token that can be used to fetch the previous page." + } + }, + "description": "When a request produces a response that exceeds the `pageSize`, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. When you receive the last page, there will be no `nextToken` key in the pagination object." + }, + "Refinements": { + "required": [ + "brands", + "classifications" + ], + "type": "object", + "properties": { + "brands": { + "type": "array", + "description": "Brand search refinements.", + "items": { + "$ref": "#\/components\/schemas\/BrandRefinement" + } + }, + "classifications": { + "type": "array", + "description": "Classification search refinements.", + "items": { + "$ref": "#\/components\/schemas\/ClassificationRefinement" + } + } + }, + "description": "Search refinements." + }, + "BrandRefinement": { + "required": [ + "brandName", + "numberOfResults" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "The estimated number of results that would still be returned if refinement key applied." + }, + "brandName": { + "type": "string", + "description": "Brand name. For display and can be used as a search refinement." + } + }, + "description": "Description of a brand that can be used to get more fine-grained search results." + }, + "ClassificationRefinement": { + "required": [ + "classificationId", + "displayName", + "numberOfResults" + ], + "type": "object", + "properties": { + "numberOfResults": { + "type": "integer", + "description": "The estimated number of results that would still be returned if refinement key applied." + }, + "displayName": { + "type": "string", + "description": "Display name for the classification." + }, + "classificationId": { + "type": "string", + "description": "Identifier for the classification that can be used for search refinement purposes." + } + }, + "description": "Description of a classification that can be used to get more fine-grained search results." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/data-kiosk/v2023-11-15.json b/resources/models/seller/data-kiosk/v2023-11-15.json new file mode 100644 index 000000000..5d97423fb --- /dev/null +++ b/resources/models/seller/data-kiosk/v2023-11-15.json @@ -0,0 +1,1658 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Data Kiosk", + "description": "The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2023-11-15" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/dataKiosk\/2023-11-15\/queries": { + "get": { + "tags": [ + "DataKioskV20231115" + ], + "description": "Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getQueries", + "parameters": [ + { + "name": "processingStatuses", + "in": "query", + "description": "A list of processing statuses used to filter queries.", + "style": "form", + "explode": false, + "schema": { + "minItems": 1, + "type": "array", + "items": { + "type": "string", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The query was cancelled before it began processing." + }, + { + "value": "DONE", + "description": "The query has completed processing." + }, + { + "value": "FATAL", + "description": "The query was aborted due to a fatal error." + }, + { + "value": "IN_PROGRESS", + "description": "The query is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The query has not yet started processing. It may be waiting for another `IN_PROGRESS` query." + } + ] + } + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The maximum number of queries to return in a single call.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "default": 10 + } + }, + { + "name": "createdSince", + "in": "query", + "description": "The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdUntil", + "in": "query", + "description": "The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "paginationToken", + "in": "query", + "description": "A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetQueriesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "processingStatuses": { + "value": [ + "IN_QUEUE", + "IN_PROGRESS" + ] + } + } + }, + "response": { + "pagination": { + "nextToken": "VGhpcyB0b2tlbiBpcyBvcGFxdWUgYW5kIGludGVudGlvbmFsbHkgb2JmdXNjYXRlZA==" + }, + "queries": [ + { + "queryId": "QueryId1", + "query": "query {sampleQuery(startDate:\"2022-03-12\" endDate:\"2022-03-20\" marketplaceIds:[\"ATVPDKIKX0DER\"]){sales{date averageSellingPrice{amount currencyCode}}}}", + "createdTime": "2019-12-10T13:47:20.677Z", + "processingStatus": "IN_PROGRESS", + "processingStartTime": "2019-12-10T13:47:20.677Z", + "processingEndTime": "2019-12-12T13:47:20.677Z" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "processingStatuses": { + "value": [ + "INVALID_STATUS", + "IN_PROGRESS" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value '[INVALID_STATUS]' at 'processingStatuses' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy enum value set: [DONE, FATAL, IN_PROGRESS, CANCELLED, IN_QUEUE]]", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "DataKioskV20231115" + ], + "description": "Creates a Data Kiosk query request.\n\n**Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createQuery", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateQuerySpecification" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateQueryResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "query": "query {sampleQuery(startDate:\"2022-03-12\" endDate:\"2022-03-20\" marketplaceIds:[\"ATVPDKIKX0DER\"]){sales{date averageSellingPrice{amount currencyCode}}}}" + } + } + } + }, + "response": { + "queryId": "QueryId1" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "query": "query {invalidSampleQuery(startDate:\"2022-03-12\" endDate:\"2022-03-20\" marketplaceIds:[\"ATVPDKIKX0DER\"]){sales{date averageSellingPrice{amount currencyCode}}}}" + } + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/dataKiosk\/2023-11-15\/queries\/{queryId}": { + "get": { + "tags": [ + "DataKioskV20231115" + ], + "description": "Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2.0 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getQuery", + "parameters": [ + { + "name": "queryId", + "in": "path", + "description": "The query identifier.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Query" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "queryId": { + "value": "QueryId1" + } + } + }, + "response": { + "queryId": "QueryId1", + "query": "query {sampleQuery(startDate:\"2022-03-12\" endDate:\"2022-03-20\" marketplaceIds:[\"ATVPDKIKX0DER\"]){sales{date averageSellingPrice{amount currencyCode}}}}", + "createdTime": "2019-12-10T13:47:20.677Z", + "processingStatus": "IN_PROGRESS", + "processingStartTime": "2019-12-10T13:47:20.677Z", + "processingEndTime": "2019-12-12T13:47:20.677Z" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "queryId": { + "value": "InvalidQueryId1" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The provided queryId was not found." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "delete": { + "tags": [ + "DataKioskV20231115" + ], + "description": "Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelQuery", + "parameters": [ + { + "name": "queryId", + "in": "path", + "description": "The identifier for the query. This identifier is unique only in combination with a selling partner account ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "queryId": { + "value": "QueryId1" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/dataKiosk\/2023-11-15\/documents\/{documentId}": { + "get": { + "tags": [ + "DataKioskV20231115" + ], + "description": "Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getDocument", + "parameters": [ + { + "name": "documentId", + "in": "path", + "description": "The identifier for the Data Kiosk document.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDocumentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "documentId": { + "value": "0356cf79-b8b0-4226-b4b9-0ee058ea5760" + } + } + }, + "response": { + "documentId": "0356cf79-b8b0-4226-b4b9-0ee058ea5760", + "documentUrl": "https:\/\/d34o8swod1owfl.cloudfront.net\/QUERY_DATA_OUTPUT_DOC.txt" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "documentId": { + "value": "InvalidDocumentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The provided documentId was not found." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "Query": { + "required": [ + "createdTime", + "processingStatus", + "query", + "queryId" + ], + "type": "object", + "properties": { + "queryId": { + "type": "string", + "description": "The query identifier. This identifier is unique only in combination with a selling partner account ID." + }, + "query": { + "type": "string", + "description": "The submitted query." + }, + "createdTime": { + "type": "string", + "description": "The date and time when the query was created, in ISO 8601 date time format.", + "format": "date-time" + }, + "processingStatus": { + "type": "string", + "description": "The processing status of the query.", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The query was cancelled before it began processing." + }, + { + "value": "DONE", + "description": "The query has completed processing." + }, + { + "value": "FATAL", + "description": "The query was aborted due to a fatal error." + }, + { + "value": "IN_PROGRESS", + "description": "The query is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The query has not yet started processing. It may be waiting for another `IN_PROGRESS` query." + } + ] + }, + "processingStartTime": { + "type": "string", + "description": "The date and time when the query processing started, in ISO 8601 date time format.", + "format": "date-time" + }, + "processingEndTime": { + "type": "string", + "description": "The date and time when the query processing completed, in ISO 8601 date time format.", + "format": "date-time" + }, + "dataDocumentId": { + "type": "string", + "description": "The data document identifier. This identifier is only present when there is data available as a result of the query. This identifier is unique only in combination with a selling partner account ID. Pass this identifier into the `getDocument` operation to get the information required to retrieve the data document's contents." + }, + "errorDocumentId": { + "type": "string", + "description": "The error document identifier. This identifier is only present when an error occurs during query processing. This identifier is unique only in combination with a selling partner account ID. Pass this identifier into the `getDocument` operation to get the information required to retrieve the error document's contents." + }, + "pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A token that can be used to fetch the next page of results." + } + }, + "description": "When a query produces results that are not included in the data document, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass a `CreateQuerySpecification` object with `paginationToken` set to this object's `nextToken` and with `query` set to this object's `query` in the subsequent `createQuery` request. When there are no more pages to fetch, the `nextToken` field will be absent." + } + }, + "description": "Detailed information about the query." + }, + "QueryList": { + "type": "array", + "description": "A list of queries.", + "items": { + "$ref": "#\/components\/schemas\/Query" + } + }, + "CreateQuerySpecification": { + "required": [ + "query" + ], + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The GraphQL query to submit. A query must be at most 8000 characters after unnecessary whitespace is removed." + }, + "paginationToken": { + "type": "string", + "description": "A token to fetch a certain page of query results when there are multiple pages of query results available. The value of this token must be fetched from the `pagination.nextToken` field of the `Query` object, and the `query` field for this object must also be set to the `query` field of the same `Query` object. A `Query` object can be retrieved from either the `getQueries` or `getQuery` operation. In the absence of this token value, the first page of query results will be requested." + } + }, + "description": "Information required to create the query." + }, + "CreateQueryResponse": { + "required": [ + "queryId" + ], + "type": "object", + "properties": { + "queryId": { + "type": "string", + "description": "The identifier for the query. This identifier is unique only in combination with a selling partner account ID." + } + }, + "description": "The response for the `createQuery` operation." + }, + "GetQueriesResponse": { + "required": [ + "queries" + ], + "type": "object", + "properties": { + "queries": { + "$ref": "#\/components\/schemas\/QueryList" + }, + "pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A token that can be used to fetch the next page of results." + } + }, + "description": "When a request has results that are not included in this response, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass the `nextToken` as the `paginationToken` query parameter in the subsequent `getQueries` request. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. When there are no more pages to fetch, the `nextToken` field will be absent." + } + }, + "description": "The response for the `getQueries` operation." + }, + "GetDocumentResponse": { + "required": [ + "documentId", + "documentUrl" + ], + "type": "object", + "properties": { + "documentId": { + "type": "string", + "description": "The identifier for the Data Kiosk document. This identifier is unique only in combination with a selling partner account ID." + }, + "documentUrl": { + "type": "string", + "description": "A presigned URL that can be used to retrieve the Data Kiosk document. This URL expires after 5 minutes. If the Data Kiosk document is compressed, the `Content-Encoding` header will indicate the compression algorithm.\n\n**Note:** Most HTTP clients are capable of automatically decompressing downloaded files based on the `Content-Encoding` header." + } + }, + "description": "The response for the `getDocument` operation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/easy-ship/v2022-03-23.json b/resources/models/seller/easy-ship/v2022-03-23.json new file mode 100644 index 000000000..6b518abfa --- /dev/null +++ b/resources/models/seller/easy-ship/v2022-03-23.json @@ -0,0 +1,2338 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Easy Ship", + "description": "The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders.\n\nYour Easy Ship applications can:\n\n* Get available time slots for packages to be scheduled for delivery.\n\n* Schedule, reschedule, and cancel Easy Ship orders.\n\n* Print labels, invoices, and warranties.\n\nSee the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2022-03-23" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/easyShip\/2022-03-23\/timeSlot": { + "post": { + "tags": [ + "EasyShipV20220323" + ], + "description": "Returns time slots available for Easy Ship orders to be scheduled based on the package weight and dimensions that the seller specifies.\n\nThis operation is available for scheduled and unscheduled orders based on marketplace support. See **Get Time Slots** in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table).\n\nThis operation can return time slots that have either pickup or drop-off handover methods - see **Supported Handover Methods** in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listHandoverSlots", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListHandoverSlotsRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListHandoverSlotsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "amazonOrderId": "931-2308757-7991048", + "marketplaceId": "A21TJRUUN4KGV", + "packageDimensions": { + "length": 15, + "width": 10, + "height": 12, + "unit": "Cm", + "identifier": "test" + }, + "packageWeight": { + "value": 50, + "unit": "G" + } + } + } + }, + "response": { + "amazonOrderId": "931-2308757-7991048", + "timeSlots": [ + { + "handoverMethod": "Pickup", + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + }, + { + "handoverMethod": "Pickup", + "slotId": "AQef4K2CAAAAAGdIAEAAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-10T02:00:00Z", + "endTime": "2022-03-10T04:30:00Z" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "amazonOrderId": "", + "marketplaceId": "A21TJRUUN4KGV", + "packageDimensions": { + "length": 15, + "width": 10, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 50, + "unit": "G" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Request has missing or invalid parameters and cannot be parsed.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "amazonOrderId": "931-2308757-7991048", + "marketplaceId": "", + "packageDimensions": { + "length": 15, + "width": 10, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 50, + "unit": "G" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "ResourceNotFound", + "message": "The specified resource (for example, `AmazonOrderId` or `MarketplaceId`) does not exist." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "ListHandoverSlotsRequest" + } + }, + "\/easyShip\/2022-03-23\/package": { + "get": { + "tags": [ + "EasyShipV20220323" + ], + "description": "Returns information about a package, including dimensions, weight, time slot information for handover, invoice and item information, and status.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getScheduledPackage", + "parameters": [ + { + "name": "amazonOrderId", + "in": "query", + "description": "An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.", + "required": true, + "schema": { + "maxLength": 255, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "An identifier for the marketplace in which the seller is selling.", + "required": true, + "schema": { + "maxLength": 255, + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Package" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "903-1713775-3598252" + }, + "marketplaceId": { + "value": "A21TJRUUN4KGV" + } + } + }, + "response": { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageDimensions": { + "length": 12, + "width": 12, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 23, + "unit": "G" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + }, + "packageStatus": "Scheduled" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "903-1713775-1111111" + } + } + }, + "response": { + "errors": [ + { + "code": "ResourceNotFound", + "message": "The specified resource (for example, `AmazonOrderId` or `MarketplaceId`) does not exist." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "EasyShipV20220323" + ], + "description": "Schedules an Easy Ship order and returns the scheduled package information.\n\nThis operation does the following:\n\n* Specifies the time slot and handover method for the order to be scheduled for delivery.\n\n* Updates the Easy Ship order status.\n\n* Generates a shipping label and an invoice. Calling `createScheduledPackage` also generates a warranty document if you specify a `SerialNumber` value. To get these documents, see [How to get invoice, shipping label, and warranty documents](doc:easyship-api-v2022-03-23-use-case-guide).\n\n* Shows the status of Easy Ship orders when you call the `getOrders` operation of the Selling Partner API for Orders and examine the `EasyShipShipmentStatus` property in the response body.\n\nSee the **Shipping Label**, **Invoice**, and **Warranty** columns in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which documents are supported in each marketplace.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createScheduledPackage", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateScheduledPackageRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Package" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "amazonOrderId": "903-1713775-3598252", + "marketplaceId": "A21TJRUUN4KGV", + "packageDetails": { + "packageDimensions": { + "length": 12, + "width": 12, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 23, + "unit": "G" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + } + } + }, + "response": { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageDimensions": { + "length": 12, + "width": 12, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 23, + "unit": "G" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + }, + "packageStatus": "ReadyForPickup" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "amazonOrderId": "903-1713775-3598252", + "packageDetails": { + "packageTimeSlot": { + "slotId": "", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Request has missing or invalid parameters and cannot be parsed." + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "amazonOrderId": "", + "packageDetails": { + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "ResourceNotFound", + "message": "The specified resource (for example, `AmazonOrderId` or `MarketplaceId`) does not exist." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "CreateScheduledPackageRequest" + }, + "patch": { + "tags": [ + "EasyShipV20220323" + ], + "description": "Updates the time slot for handing over the package indicated by the specified `scheduledPackageId`. You can get the new `slotId` value for the time slot by calling the `listHandoverSlots` operation before making another `patch` call.\n\nSee the **Update Package** column in the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) to see which marketplaces this operation is supported in.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateScheduledPackages", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduledPackagesRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Packages" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "marketplaceId": "A21TJRUUN4KGV", + "updatePackageDetailsList": [ + { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + ] + } + } + }, + "response": { + "packages": [ + { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageDimensions": { + "length": 12, + "width": 12, + "height": 12, + "unit": "Cm" + }, + "packageWeight": { + "value": 23, + "unit": "G" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + }, + "packageIdentifier": "Scheduled", + "packageStatus": "ReadyForPickup" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "", + "updatePackageDetailsList": [ + { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageTimeSlot": { + "slotId": "", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Request has missing or invalid parameters and cannot be parsed." + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "A21TJRUUN4KGV", + "updatePackageDetailsList": [ + { + "scheduledPackageId": { + "amazonOrderId": "", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "ResourceNotFound", + "message": "The specified resource (for example, `AmazonOrderId` or `MarketplaceId`) does not exist." + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "A21TJRUUN4KGV", + "updatePackageDetailsList": [ + { + "scheduledPackageId": { + "amazonOrderId": "905-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + } + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "ScheduleWindowExpired", + "message": "The selected time slot has expired." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "UpdateScheduledPackagesRequest" + } + }, + "\/easyShip\/2022-03-23\/packages\/bulk": { + "post": { + "tags": [ + "EasyShipV20220323" + ], + "description": "This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the associated shipping labels, along with other compliance documents according to the marketplace (refer to the [marketplace document support table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table)).\n\nDevelopers calling this operation may optionally assign a `packageDetails` object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time slot is not provided, Amazon will then pick the earliest time slot possible. \n\nRegarding the shipping label's file format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly.\n\nThis operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file containing the generated shipping labels and the other documents enabled for your marketplace. If at least an order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an entry for each order we couldn't process. Each entry is composed of an error message describing the reason of the failure, so that sellers can take action.\n\nThe table below displays the supported request and burst maximum rates:\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createScheduledPackageBulk", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateScheduledPackagesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateScheduledPackagesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "A2XZLSVIQ0F4JT", + "orderScheduleDetailsList": [ + { + "amazonOrderId": "903-1713775-3598252", + "packageDetails": { + "packageItems": [ + { + "orderItemId": "6195931986885", + "orderItemSerialNumbers": [ + "ABCDE1234", + "56789FGHI" + ] + } + ], + "packageTimeSlot": { + "slotId": "AQc48yxSAAAAADZG0qQAAAAA6kkAAAAAAAA=", + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z", + "handoverMethod": "Pickup" + }, + "packageIdentifier": "1ab0f06a-9149-87e0-aba9-7098117872d6" + } + }, + { + "amazonOrderId": "903-5645781-4567521" + }, + { + "amazonOrderId": "951-9026094-1233333" + } + ], + "labelFormat": "ZPL" + } + } + } + }, + "response": { + "scheduledPackages": [ + { + "scheduledPackageId": { + "amazonOrderId": "903-1713775-3598252", + "packageId": "1ab0f06a-9149-87e0-aba9-7098117872d6" + }, + "packageTimeSlot": { + "startTime": "2022-03-09T23:30:00Z", + "endTime": "2022-03-10T02:00:00Z" + }, + "packageDimensions": { + "length": 5.905511805, + "width": 3.6220472404, + "height": 3.4645669256, + "unit": "IN", + "identifier": "IN_SuggestedContainerDimension" + }, + "packageWeight": { + "value": 11.466, + "unit": "ounces" + }, + "packageStatus": "ReadyForPickup", + "trackingDetails": { + "trackingId": "1652969339691" + } + }, + { + "scheduledPackageId": { + "amazonOrderId": "903-5645781-4567521", + "packageId": "80c06e53-3d96-f13f-30ca-85b50b1cb4ce" + }, + "packageTimeSlot": { + "startTime": "2022-05-21T06:08:52.036Z", + "endTime": "2022-05-21T10:08:52.036Z" + }, + "packageDimensions": { + "length": 5.905511805, + "width": 3.6220472404, + "height": 3.4645669256, + "unit": "IN", + "identifier": "IN_SuggestedContainerDimension" + }, + "packageWeight": { + "value": 11.466, + "unit": "ounces" + }, + "packageStatus": "ReadyForPickup", + "trackingDetails": { + "trackingId": "1652969339693" + } + } + ], + "rejectedOrders": [ + { + "amazonOrderId": "951-9026094-1233333", + "error": { + "code": "InvalidInput", + "message": "Couldn't find the order details for 951-9026094-1233333" + } + } + ], + "printableDocumentsUrl": "https:\/\/www.amazon.com\/documents.zip" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "A2XZLSVIQ0F4JT", + "labelFormat": "ZPL" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Request has missing or invalid parameters and cannot be parsed." + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "an-invalid-marketplace-id", + "orderScheduleDetailsList": [ + { + "amazonOrderId": "903-1713775-3598200" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Request has missing or invalid parameters and cannot be parsed." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned..", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "CreateScheduledPackagesRequest" + } + } + }, + "components": { + "schemas": { + "PackageIdentifier": { + "type": "string", + "description": "Optional seller-created identifier that is printed on the shipping label to help the seller identify the package." + }, + "PackageStatus": { + "type": "string", + "description": "The status of the package.", + "enum": [ + "ReadyForPickup", + "PickedUp", + "AtOriginFC", + "AtDestinationFC", + "Delivered", + "Rejected", + "Undeliverable", + "ReturnedToSeller", + "LostInTransit", + "LabelCanceled", + "DamagedInTransit", + "OutForDelivery" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ReadyForPickup", + "description": "The package is ready for pickup." + }, + { + "value": "PickedUp", + "description": "The package has been picked up." + }, + { + "value": "AtOriginFC", + "description": "The package is at its origin fulfillment center." + }, + { + "value": "AtDestinationFC", + "description": "The package is at its destination fulfillment center." + }, + { + "value": "Delivered", + "description": "The package has been delivered." + }, + { + "value": "Rejected", + "description": "The package has been rejected." + }, + { + "value": "Undeliverable", + "description": "The package is not deliverable." + }, + { + "value": "ReturnedToSeller", + "description": "The package has been returned to the seller." + }, + { + "value": "LostInTransit", + "description": "The package has been lost in transit." + }, + { + "value": "LabelCanceled", + "description": "The package's label has been canceled." + }, + { + "value": "DamagedInTransit", + "description": "The package has been damaged in transit." + }, + { + "value": "OutForDelivery", + "description": "The package is out for delivery." + } + ] + }, + "PackageId": { + "type": "string", + "description": "An Amazon-defined identifier for the scheduled package." + }, + "TrackingDetails": { + "type": "object", + "properties": { + "trackingId": { + "$ref": "#\/components\/schemas\/String" + } + }, + "description": "Representation of tracking metadata." + }, + "HandoverMethod": { + "type": "string", + "description": "Identifies the method by which a seller will hand a package over to Amazon Logistics.", + "enum": [ + "Pickup", + "Dropoff" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Pickup", + "description": "An Amazon Logistics carrier will pickup the package(s) from the seller's pickup address." + }, + { + "value": "Dropoff", + "description": "Seller will need to drop off the package(s) to a designated location." + } + ] + }, + "OrderScheduleDetails": { + "required": [ + "amazonOrderId" + ], + "type": "object", + "properties": { + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "packageDetails": { + "$ref": "#\/components\/schemas\/PackageDetails" + } + }, + "description": "This object allows users to specify an order to be scheduled. Only the amazonOrderId is required. " + }, + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship." + }, + "Dimension": { + "minimum": 0.01, + "type": "number", + "description": "The numerical value of the specified dimension.", + "format": "float" + }, + "Dimensions": { + "type": "object", + "properties": { + "length": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "width": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "height": { + "$ref": "#\/components\/schemas\/Dimension" + }, + "unit": { + "$ref": "#\/components\/schemas\/UnitOfLength" + }, + "identifier": { + "$ref": "#\/components\/schemas\/String" + } + }, + "description": "The dimensions of the scheduled package." + }, + "ListHandoverSlotsRequest": { + "required": [ + "amazonOrderId", + "marketplaceId", + "packageDimensions", + "packageWeight" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/String" + }, + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "packageDimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "packageWeight": { + "$ref": "#\/components\/schemas\/Weight" + } + }, + "description": "The request schema for the `listHandoverSlots` operation." + }, + "ListHandoverSlotsResponse": { + "required": [ + "amazonOrderId", + "timeSlots" + ], + "type": "object", + "properties": { + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "timeSlots": { + "$ref": "#\/components\/schemas\/TimeSlots" + } + }, + "description": "The response schema for the `listHandoverSlots` operation." + }, + "InvoiceData": { + "required": [ + "invoiceNumber" + ], + "type": "object", + "properties": { + "invoiceNumber": { + "$ref": "#\/components\/schemas\/String" + }, + "invoiceDate": { + "$ref": "#\/components\/schemas\/DateTime" + } + }, + "description": "Invoice number and date." + }, + "Item": { + "type": "object", + "properties": { + "orderItemId": { + "$ref": "#\/components\/schemas\/OrderItemId" + }, + "orderItemSerialNumbers": { + "$ref": "#\/components\/schemas\/OrderItemSerialNumbers" + } + }, + "description": "Item identifier and serial number information." + }, + "Items": { + "maxItems": 500, + "type": "array", + "description": "A list of items contained in the package.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "OrderItemId": { + "maxLength": 255, + "type": "string", + "description": "The Amazon-defined order item identifier." + }, + "OrderItemSerialNumber": { + "maxLength": 255, + "type": "string", + "description": "A serial number for an item associated with the `OrderItemId` value." + }, + "OrderItemSerialNumbers": { + "maxItems": 100, + "type": "array", + "description": "A list of serial numbers for the items associated with the `OrderItemId` value.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemSerialNumber" + } + }, + "Package": { + "required": [ + "packageDimensions", + "packageTimeSlot", + "packageWeight", + "scheduledPackageId" + ], + "type": "object", + "properties": { + "scheduledPackageId": { + "$ref": "#\/components\/schemas\/ScheduledPackageId" + }, + "packageDimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "packageWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "packageItems": { + "$ref": "#\/components\/schemas\/Items" + }, + "packageTimeSlot": { + "$ref": "#\/components\/schemas\/TimeSlot" + }, + "packageIdentifier": { + "$ref": "#\/components\/schemas\/PackageIdentifier" + }, + "invoice": { + "$ref": "#\/components\/schemas\/InvoiceData" + }, + "packageStatus": { + "$ref": "#\/components\/schemas\/PackageStatus" + }, + "trackingDetails": { + "$ref": "#\/components\/schemas\/TrackingDetails" + } + }, + "description": "A package. This object contains all the details of the scheduled Easy Ship package including the package identifier, physical attributes such as dimensions and weight, selected time slot to handover the package to carrier, status of the package, and tracking\/invoice details." + }, + "Packages": { + "required": [ + "packages" + ], + "type": "object", + "properties": { + "packages": { + "maxItems": 500, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Package" + } + } + }, + "description": "A list of packages." + }, + "PackageDetails": { + "required": [ + "packageTimeSlot" + ], + "type": "object", + "properties": { + "packageItems": { + "$ref": "#\/components\/schemas\/Items" + }, + "packageTimeSlot": { + "$ref": "#\/components\/schemas\/TimeSlot" + }, + "packageIdentifier": { + "$ref": "#\/components\/schemas\/PackageIdentifier" + } + }, + "description": "Package details. Includes `packageItems`, `packageTimeSlot`, and `packageIdentifier`." + }, + "RejectedOrder": { + "required": [ + "amazonOrderId" + ], + "type": "object", + "properties": { + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "error": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "description": "A order which we couldn't schedule on your behalf. It contains its id, and information on the error." + }, + "TimeSlot": { + "required": [ + "slotId" + ], + "type": "object", + "properties": { + "slotId": { + "$ref": "#\/components\/schemas\/String" + }, + "startTime": { + "$ref": "#\/components\/schemas\/DateTime" + }, + "endTime": { + "$ref": "#\/components\/schemas\/DateTime" + }, + "handoverMethod": { + "$ref": "#\/components\/schemas\/HandoverMethod" + } + }, + "description": "A time window to hand over an Easy Ship package to Amazon Logistics." + }, + "TimeSlots": { + "maxItems": 500, + "minItems": 1, + "type": "array", + "description": "A list of time slots.", + "items": { + "$ref": "#\/components\/schemas\/TimeSlot" + } + }, + "ScheduledPackageId": { + "required": [ + "amazonOrderId" + ], + "type": "object", + "properties": { + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "packageId": { + "$ref": "#\/components\/schemas\/PackageId" + } + }, + "description": "Identifies the scheduled package to be updated." + }, + "CreateScheduledPackageRequest": { + "required": [ + "amazonOrderId", + "marketplaceId", + "packageDetails" + ], + "type": "object", + "properties": { + "amazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/String" + }, + "packageDetails": { + "$ref": "#\/components\/schemas\/PackageDetails" + } + }, + "description": "The request schema for the `createScheduledPackage` operation." + }, + "UpdateScheduledPackagesRequest": { + "required": [ + "marketplaceId", + "updatePackageDetailsList" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/String" + }, + "updatePackageDetailsList": { + "$ref": "#\/components\/schemas\/UpdatePackageDetailsList" + } + }, + "description": "The request schema for the `updateScheduledPackages` operation." + }, + "UpdatePackageDetails": { + "required": [ + "packageTimeSlot", + "scheduledPackageId" + ], + "type": "object", + "properties": { + "scheduledPackageId": { + "$ref": "#\/components\/schemas\/ScheduledPackageId" + }, + "packageTimeSlot": { + "$ref": "#\/components\/schemas\/TimeSlot" + } + }, + "description": "Request to update the time slot of a package." + }, + "UpdatePackageDetailsList": { + "maxItems": 500, + "minItems": 1, + "type": "array", + "description": "A list of package update details.", + "items": { + "$ref": "#\/components\/schemas\/UpdatePackageDetails" + } + }, + "String": { + "maxLength": 255, + "minLength": 1, + "type": "string", + "description": "A string of up to 255 characters." + }, + "DateTime": { + "type": "string", + "description": "A datetime value in ISO 8601 format.", + "format": "date-time" + }, + "UnitOfLength": { + "type": "string", + "description": "The unit of measurement used to measure the length.", + "enum": [ + "Cm" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cm", + "description": "Centimeters" + } + ] + }, + "UnitOfWeight": { + "type": "string", + "description": "The unit of measurement used to measure the weight.", + "enum": [ + "Grams", + "G" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Grams", + "description": "Grams" + }, + { + "value": "G", + "description": "Grams" + } + ] + }, + "CreateScheduledPackagesRequest": { + "required": [ + "labelFormat", + "marketplaceId", + "orderScheduleDetailsList" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/String" + }, + "orderScheduleDetailsList": { + "minItems": 1, + "type": "array", + "description": "An array allowing users to specify orders to be scheduled.", + "items": { + "$ref": "#\/components\/schemas\/OrderScheduleDetails" + } + }, + "labelFormat": { + "$ref": "#\/components\/schemas\/LabelFormat" + } + }, + "description": "The request body for the POST \/easyShip\/2022-03-23\/packages\/bulk API." + }, + "CreateScheduledPackagesResponse": { + "type": "object", + "properties": { + "scheduledPackages": { + "maxItems": 100, + "type": "array", + "description": "A list of packages. Refer to the `Package` object.", + "items": { + "$ref": "#\/components\/schemas\/Package" + } + }, + "rejectedOrders": { + "type": "array", + "description": "A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error.", + "items": { + "$ref": "#\/components\/schemas\/RejectedOrder" + } + }, + "printableDocumentsUrl": { + "$ref": "#\/components\/schemas\/URL" + } + }, + "description": "The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn't schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace." + }, + "URL": { + "type": "string", + "description": "A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace." + }, + "LabelFormat": { + "type": "string", + "description": "The file format in which the shipping label will be created.", + "enum": [ + "PDF", + "ZPL" + ] + }, + "Weight": { + "type": "object", + "properties": { + "value": { + "$ref": "#\/components\/schemas\/WeightValue" + }, + "unit": { + "$ref": "#\/components\/schemas\/UnitOfWeight" + } + }, + "description": "The weight of the scheduled package" + }, + "WeightValue": { + "minimum": 11, + "type": "number", + "description": "The weight of the package.", + "format": "float" + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "Code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.", + "enum": [ + "InvalidInput", + "InvalidTimeSlotId", + "ScheduledPackageAlreadyExists", + "ScheduleWindowExpired", + "RetryableAfterGettingNewSlots", + "TimeSlotNotAvailable", + "ResourceNotFound", + "InvalidOrderState", + "RegionNotSupported", + "OrderNotEligibleForRescheduling", + "InternalServerError" + ], + "x-docgen-enum-table-extension": [ + { + "value": "InvalidInput", + "description": "HTTP status code 400. Request has missing or invalid parameters and cannot be processed." + }, + { + "value": "InvalidTimeSlotId", + "description": "HTTP status code 400. The specified time slot identifier is not valid." + }, + { + "value": "ScheduledPackageAlreadyExists", + "description": "HTTP status code 400. The order has already been scheduled." + }, + { + "value": "ScheduleWindowExpired", + "description": "HTTP status code 400. The selected time slot has expired. Try calling `listHandoverSlots` again to get a new time slot." + }, + { + "value": "RetryableAfterGettingNewSlots", + "description": "HTTP status code 400. Order scheduling has failed because of an issue with the selected time slot. If you see this error, request a new time slot and try to schedule again." + }, + { + "value": "TimeSlotNotAvailable", + "description": "HTTP status code 404. No time slot is available due to various factors such as: invalid weight and dimension parameters, or the available slots are only available after the expected cancellation date." + }, + { + "value": "ResourceNotFound", + "description": "HTTP status code 404. The specified resource (for example, `amazonOrderId` or `marketplaceId`) does not exist." + }, + { + "value": "InvalidOrderState", + "description": "HTTP status code 404. The request cannot be applied to the order in its current state. For example, you cannot cancel an order which has not yet been scheduled or which has already been canceled." + }, + { + "value": "RegionNotSupported", + "description": "HTTP status code 404. Amazon Easy Ship is not supported in the specified marketplace." + }, + { + "value": "OrderNotEligibleForRescheduling", + "description": "HTTP status code 405. Order is not eligible for rescheduling." + }, + { + "value": "InternalServerError", + "description": "HTTP status code 500. There was an internal service failure." + } + ] + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/fba-inbound-eligibility/v1.json b/resources/models/seller/fba-inbound-eligibility/v1.json new file mode 100644 index 000000000..627f435c9 --- /dev/null +++ b/resources/models/seller/fba-inbound-eligibility/v1.json @@ -0,0 +1,719 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for FBA Inbound Eligibilty", + "description": "With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/fba\/inbound\/v1\/eligibility\/itemPreview": { + "get": { + "tags": [ + "FBAInboundEligibilityV1" + ], + "description": "This operation gets an eligibility preview for an item that you specify. You can specify the type of eligibility preview that you want (INBOUND or COMMINGLING). For INBOUND previews, you can specify the marketplace in which you want to determine the item's eligibility.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getItemEligibilityPreview", + "parameters": [ + { + "name": "marketplaceIds", + "in": "query", + "description": "The identifier for the marketplace in which you want to determine eligibility. Required only when program=INBOUND.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "asin", + "in": "query", + "description": "The ASIN of the item for which you want an eligibility preview.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "program", + "in": "query", + "description": "The program that you want to check eligibility against.", + "required": true, + "schema": { + "type": "string", + "enum": [ + "INBOUND", + "COMMINGLING" + ] + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "asin": "TEST_CASE_200", + "marketplaceId": "TEST_CASE_200", + "program": "INBOUND", + "isEligibleForProgram": true + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_401" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_403" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_404" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_429" + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_500" + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemEligibilityPreviewResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "TEST_CASE_503" + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + } + } + } + }, + "components": { + "schemas": { + "GetItemEligibilityPreviewResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ItemEligibilityPreview" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getItemEligibilityPreview operation." + }, + "ItemEligibilityPreview": { + "required": [ + "asin", + "isEligibleForProgram", + "program" + ], + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The ASIN for which eligibility was determined." + }, + "marketplaceId": { + "type": "string", + "description": "The marketplace for which eligibility was determined." + }, + "program": { + "type": "string", + "description": "The program for which eligibility was determined.", + "enum": [ + "INBOUND", + "COMMINGLING" + ], + "x-docgen-enum-table-extension": [ + { + "value": "INBOUND", + "description": "Inbound shipment." + }, + { + "value": "COMMINGLING", + "description": "Using the manufacturer barcode for FBA inventory tracking." + } + ] + }, + "isEligibleForProgram": { + "type": "boolean", + "description": "Indicates if the item is eligible for the program." + }, + "ineligibilityReasonList": { + "type": "array", + "description": "Potential Ineligibility Reason Codes.", + "items": { + "type": "string", + "description": "Potential Ineligibility Reason Codes.", + "enum": [ + "FBA_INB_0004", + "FBA_INB_0006", + "FBA_INB_0007", + "FBA_INB_0008", + "FBA_INB_0009", + "FBA_INB_0010", + "FBA_INB_0011", + "FBA_INB_0012", + "FBA_INB_0013", + "FBA_INB_0014", + "FBA_INB_0015", + "FBA_INB_0016", + "FBA_INB_0017", + "FBA_INB_0018", + "FBA_INB_0019", + "FBA_INB_0034", + "FBA_INB_0035", + "FBA_INB_0036", + "FBA_INB_0037", + "FBA_INB_0038", + "FBA_INB_0050", + "FBA_INB_0051", + "FBA_INB_0053", + "FBA_INB_0055", + "FBA_INB_0056", + "FBA_INB_0059", + "FBA_INB_0065", + "FBA_INB_0066", + "FBA_INB_0067", + "FBA_INB_0068", + "FBA_INB_0095", + "FBA_INB_0097", + "FBA_INB_0098", + "FBA_INB_0099", + "FBA_INB_0100", + "FBA_INB_0103", + "FBA_INB_0104", + "FBA_INB_0197", + "UNKNOWN_INB_ERROR_CODE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FBA_INB_0004", + "description": "Missing package dimensions. This product is missing necessary information; dimensions need to be provided in the manufacturer's original packaging." + }, + { + "value": "FBA_INB_0006", + "description": "The SKU for this product is unknown or cannot be found." + }, + { + "value": "FBA_INB_0007", + "description": "Product Under Dangerous Goods (Hazmat) Review. We do not have enough information to determine what the product is or comes with to enable us to complete our dangerous goods review. Until you provide the necessary information, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. You will need to add more details to the product listings, such as a clear title, bullet points, description, and image. The review process takes 4 business days." + }, + { + "value": "FBA_INB_0008", + "description": "Product Under Dangerous Goods (Hazmat) Review. We require detailed battery information to correctly classify the product, and until you provide the necessary information, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. Download an exemption sheet for battery and battery-powered products available in multiple languages in \"Upload dangerous goods documents: safety data sheet (SDS) or exemption sheet\" in Seller Central and follow instructions to submit it through the same page. The review process takes 4 business days." + }, + { + "value": "FBA_INB_0009", + "description": "Product Under Dangerous Goods (Hazmat) Review. We do not have enough dangerous goods information to correctly classify the product and until you provide the necessary information, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. Please provide a Safety Data Sheet (SDS) through \"Upload dangerous goods documents: safety data sheet (SDS) or exemption sheet\" in Seller Central, and make sure the SDS complies with all the requirements. The review process takes 4 business days." + }, + { + "value": "FBA_INB_0010", + "description": "Product Under Dangerous Goods (Hazmat) Review. The dangerous goods information is mismatched and so the product cannot be correctly classified. Until you provide the necessary information, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. Please provide compliant documents through \"Upload dangerous goods documents: safety data sheet (SDS) or exemption sheet\" in Seller Central, and make sure it complies with all the requirements. The review process takes 4 business days, the product will remain unfulfillable until review process is complete." + }, + { + "value": "FBA_INB_0011", + "description": "Product Under Dangerous Goods (Hazmat) Review. We have incomplete, inaccurate or conflicting dangerous goods information and cannot correctly classify the product. Until you provide the necessary information, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. Please provide compliant documents through \"Upload dangerous goods documents: safety data sheet (SDS) or exemption sheet\" in Seller Central, and make sure it complies with all the requirements. The review process takes 4 business days and the product will remain unfulfillable until the review process is complete." + }, + { + "value": "FBA_INB_0012", + "description": "Product Under Dangerous Goods (Hazmat) Review. We have determined there is conflicting product information (title, bullet points, images, or product description) within the product detail pages or with other offers for the product. Until the conflicting information is corrected, the products will not be available for sale and you will not be able to send more units to Amazon fulfillment centers. We need you to confirm the information on the product detail page The review process takes 4 business days." + }, + { + "value": "FBA_INB_0013", + "description": "Product Under Dangerous Goods (Hazmat) Review. Additional information is required in order to complete the Hazmat review process." + }, + { + "value": "FBA_INB_0014", + "description": "Product Under Dangerous Goods (Hazmat) Review. The product has been identified as possible dangerous goods. The review process generally takes 4 - 7 business days and until the review process is complete the product is unfulfillable and cannot be received at Amazon fulfilment centers or ordered by customers. For more information about dangerous goods please see \"Dangerous goods identification guide (hazmat)\"\" help page in Seller Central." + }, + { + "value": "FBA_INB_0015", + "description": "Dangerous goods (Hazmat). The product is regulated as unfulfillable and not eligible for sale with Amazon. We ask that you refrain from sending additional units in new shipments. We will need to dispose of your dangerous goods inventory in accordance with the terms of the Amazon Business Services Agreement. If you have questions or concerns, please contact Seller Support within five business days of this notice. For more information about dangerous goods please see \u201cDangerous goods identification guide (hazmat)\u201d help page in Seller Central." + }, + { + "value": "FBA_INB_0016", + "description": "Dangerous goods (Hazmat). The product is regulated as a fulfillable dangerous good (Hazmat). You may need to be in the FBA dangerous good (Hazmat) program to be able to sell your product. For more information on the FBA dangerous good (Hazmat) program please contact Seller Support. For more information about dangerous goods please see the \"Dangerous goods identification guide (hazmat)\" help page in Seller Central." + }, + { + "value": "FBA_INB_0017", + "description": "This product does not exist in the destination marketplace catalog. The necessary product information will need to be provided before it can be inbounded." + }, + { + "value": "FBA_INB_0018", + "description": "Product missing category. This product must have a category specified before it can be sent to Amazon." + }, + { + "value": "FBA_INB_0019", + "description": "This product must have a title before it can be sent to Amazon." + }, + { + "value": "FBA_INB_0034", + "description": "Product cannot be stickerless, commingled. This product must be removed. You can send in new inventory by creating a new listing for this product that requires product labels." + }, + { + "value": "FBA_INB_0035", + "description": "Expiration-dated\/lot-controlled product needs to be labeled. This product requires labeling to be received at our fulfillment centers." + }, + { + "value": "FBA_INB_0036", + "description": "Expiration-dated or lot-controlled product needs to be commingled. This product cannot be shipped to Amazon without being commingled. This error condition cannot be corrected from here. This product must be removed." + }, + { + "value": "FBA_INB_0037", + "description": "This product is not eligible to be shipped to our fulfillment center. You do not have all the required tax documents. If you have already filed documents please wait up to 48 hours for the data to propagate." + }, + { + "value": "FBA_INB_0038", + "description": "Parent ASIN cannot be fulfilled by Amazon. You can send this product by creating a listing against the child ASIN." + }, + { + "value": "FBA_INB_0050", + "description": "There is currently no fulfillment center in the destination country capable of receiving this product. Please delete this product from the shipment or contact Seller Support if you believe this is an error." + }, + { + "value": "FBA_INB_0051", + "description": "This product has been blocked by FBA and cannot currently be sent to Amazon for fulfillment." + }, + { + "value": "FBA_INB_0053", + "description": "Product is not eligible in the destination marketplace. This product is not eligible either because the required shipping option is not available or because the product is too large or too heavy." + }, + { + "value": "FBA_INB_0055", + "description": "Product unfulfillable due to media region restrictions. This product has a region code restricted for this marketplace. This product must be removed." + }, + { + "value": "FBA_INB_0056", + "description": "Product is ineligible for inbound. Used non-media goods cannot be shipped to Amazon." + }, + { + "value": "FBA_INB_0059", + "description": "Unknown Exception. This product must be removed at this time." + }, + { + "value": "FBA_INB_0065", + "description": "Product cannot be stickerless, commingled. This product must be removed. You can send in new inventory by creating a new listing for this product that requires product labels." + }, + { + "value": "FBA_INB_0066", + "description": "Unknown Exception. This product must be removed at this time." + }, + { + "value": "FBA_INB_0067", + "description": "Product ineligible for freight shipping. This item is ineligible for freight shipping with our Global Shipping Service. This item must be removed." + }, + { + "value": "FBA_INB_0068", + "description": "Account not configured for expiration-dated or lot-controlled products. Please contact TAM if you would like to configure your account to handle expiration-dated or lot-controlled inventory. Once configured, you will be able to send in this product." + }, + { + "value": "FBA_INB_0095", + "description": "The barcode (UPC\/EAN\/JAN\/ISBN) for this product is associated with more than one product in our fulfillment system. This product must be removed. You can send in new inventory by creating a new listing for this product that requires product labels." + }, + { + "value": "FBA_INB_0097", + "description": "Fully regulated dangerous good." + }, + { + "value": "FBA_INB_0098", + "description": "Merchant is not authorized to send item to destination marketplace." + }, + { + "value": "FBA_INB_0099", + "description": "Seller account previously terminated." + }, + { + "value": "FBA_INB_0100", + "description": "You do not have the required tax information to send inventory to fulfillment centers in Mexico." + }, + { + "value": "FBA_INB_0103", + "description": "This is an expiration-dated\/lot-controlled product that cannot be handled at this time." + }, + { + "value": "FBA_INB_0104", + "description": "Item Requires Manufacturer Barcode. Only NEW products can be stored in our fulfillment centers without product labels." + }, + { + "value": "FBA_INB_0197", + "description": "Item requires safety and compliance documentation. Orders for this product cannot be fulfilled by FBA without required safety and compliance documentation." + }, + { + "value": "UNKNOWN_INB_ERROR_CODE", + "description": "Unknown Ineligibility Reason." + } + ] + } + } + }, + "description": "The response object which contains the ASIN, marketplaceId if required, eligibility program, the eligibility status (boolean), and a list of ineligibility reason codes." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/fba-inbound/v0.json b/resources/models/seller/fba-inbound/v0.json new file mode 100644 index 000000000..ca80d8ff5 --- /dev/null +++ b/resources/models/seller/fba-inbound/v0.json @@ -0,0 +1,7641 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Fulfillment Inbound", + "description": "The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/fba\/inbound\/v0\/itemsGuidance": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns information that lets a seller know if Amazon recommends sending an item to a given marketplace. In some cases, Amazon provides guidance for why a given SellerSKU or ASIN is not recommended for shipment to Amazon's fulfillment network. Sellers may still ship items that are not recommended, at their discretion.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getInboundGuidance", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace where the product would be stored.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "SellerSKUList", + "in": "query", + "description": "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. ", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ASINList", + "in": "query", + "description": "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.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "MarketplaceId" + }, + "SellerSKUList": { + "value": [ + "sku1", + "sku2" + ] + } + } + }, + "response": { + "payload": { + "SKUInboundGuidanceList": [ + { + "SellerSKU": "SellerSKU", + "ASIN": "ASIN", + "InboundGuidance": "InboundNotRecommended", + "GuidanceReasonList": [ + "SlowMovingASIN" + ] + } + ], + "InvalidSKUList": [ + { + "SellerSKU": "SellerSKU", + "ErrorReason": "DoesNotExist" + } + ], + "ASINInboundGuidanceList": [ + { + "ASIN": "ASIN", + "InboundGuidance": "InboundNotRecommended", + "GuidanceReasonList": [ + "SlowMovingASIN" + ] + } + ], + "InvalidASINList": [ + { + "ASIN": "ASIN", + "ErrorReason": "DoesNotExist" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "BADVALUE" + }, + "SellerSKUList": { + "value": [ + "sku1", + "sku2" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "MarketplaceId is incorrect" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/plans": { + "post": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items can be optimally placed in Amazon's fulfillment network\u2014for example, positioning inventory closer to the customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center destination if the two shipment plans require different processing\u2014for example, items that require labels must be shipped separately from stickerless, commingled inventory.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createInboundShipmentPlan", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipFromAddress": { + "Name": "Name", + "AddressLine1": "123 any st", + "AddressLine2": "AddressLine2", + "DistrictOrCounty": "Washtenaw", + "City": "Ann Arbor", + "StateOrProvinceCode": "MI", + "CountryCode": "US", + "PostalCode": "48188" + }, + "LabelPrepPreference": "SELLER_LABEL", + "ShipToCountryCode": "ShipToCountryCode", + "ShipToCountrySubdivisionCode": "ShipToCountrySubdivisionCode", + "InboundShipmentPlanRequestItems": [ + { + "SellerSKU": "SellerSKU", + "ASIN": "ASIN", + "Condition": "NewItem", + "Quantity": 1, + "QuantityInCase": 1, + "PrepDetailsList": [ + { + "PrepInstruction": "Polybagging", + "PrepOwner": "AMAZON" + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "InboundShipmentPlans": [ + { + "ShipmentId": "ShipmentId", + "DestinationFulfillmentCenterId": "ABE2", + "ShipToAddress": { + "Name": "John Doe", + "AddressLine1": "123 any s", + "AddressLine2": "", + "DistrictOrCounty": "Wayne", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "CountryCode": "US", + "PostalCode": "48110" + }, + "LabelPrepType": "NO_LABEL", + "Items": [ + { + "SellerSKU": "SellerSKU", + "FulfillmentNetworkSKU": "FulfillmentNetworkSKU", + "Quantity": 10, + "PrepDetailsList": [ + { + "PrepInstruction": "Polybagging", + "PrepOwner": "AMAZON" + } + ] + } + ], + "EstimatedBoxContentsFee": { + "TotalUnits": 10, + "FeePerUnit": { + "CurrencyCode": "USD", + "Value": 10 + }, + "TotalFee": { + "CurrencyCode": "USD", + "Value": 10 + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipFromAddress": { + "Name": "BADBAD NAME", + "AddressLine1": "BADAddressLine1", + "AddressLine2": "BADAddressLine2", + "DistrictOrCounty": "BADDistrictOrCounty", + "City": "BADCity", + "StateOrProvinceCode": "BADStateOrProvinceCode", + "CountryCode": "BADCountryCode", + "PostalCode": "BADPostalCodeg" + }, + "LabelPrepPreference": "BADSELLER_LABEL", + "ShipToCountryCode": "BADShipToCountryCode", + "ShipToCountrySubdivisionCode": "BADShipToCountrySubdivisionCode", + "InboundShipmentPlanRequestItems": [ + { + "SellerSKU": "BADSellerSKU", + "ASIN": "BADASIN", + "Condition": "BADNewItem", + "Quantity": 0, + "QuantityInCase": 0, + "PrepDetailsList": [ + { + "PrepInstruction": "BADPolybagging", + "PrepOwner": "BADAMAZON" + } + ] + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Invalid data. Please check details" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}": { + "put": { + "tags": [ + "FBAInboundV0" + ], + "description": "Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new items is not supported.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateInboundShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "MarketplaceId": "ATVPDKIKX0DER", + "InboundShipmentHeader": { + "ShipmentName": "Shipment for FBA15DJCQ1ZF", + "ShipFromAddress": { + "Name": "Uma Test", + "AddressLine1": "123 any st", + "AddressLine2": "", + "DistrictOrCounty": "Washtenaw", + "City": "Ann Arbor", + "StateOrProvinceCode": "CO", + "CountryCode": "US", + "PostalCode": "48104" + }, + "DestinationFulfillmentCenterId": "ABE2", + "ShipmentStatus": "WORKING", + "LabelPrepPreference": "SELLER_LABEL" + }, + "InboundShipmentItems": [ + { + "SellerSKU": "PSMM-TEST-SKU-Apr-03_21_17_20-0379", + "QuantityShipped": 1 + } + ] + } + } + } + }, + "response": { + "payload": { + "ShipmentId": "FBA15DJCQ1ZF" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "MarketplaceId": "BADID", + "InboundShipmentHeader": { + "ShipmentName": "Shipment for FBA15DJCQ1ZF", + "ShipFromAddress": { + "Name": "Uma Test", + "AddressLine1": "123 any st", + "AddressLine2": "", + "DistrictOrCounty": "Washtenaw", + "City": "Ann Arbor", + "StateOrProvinceCode": "CO", + "CountryCode": "US", + "PostalCode": "48104" + }, + "DestinationFulfillmentCenterId": "ABE2", + "ShipmentStatus": "WORKING", + "LabelPrepPreference": "SELLER_LABEL" + }, + "InboundShipmentItems": [ + { + "SellerSKU": "PSMM-TEST-SKU-Apr-03_21_17_20-0379", + "QuantityShipped": 1 + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createInboundShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "InboundShipmentHeader": { + "ShipmentName": "43545345", + "ShipFromAddress": { + "Name": "35435345", + "AddressLine1": "123 any st", + "DistrictOrCounty": "Washtenaw", + "City": "Ann Arbor", + "StateOrProvinceCode": "Test", + "CountryCode": "US", + "PostalCode": "48103" + }, + "DestinationFulfillmentCenterId": "AEB2", + "AreCasesRequired": true, + "ShipmentStatus": "WORKING", + "LabelPrepPreference": "SELLER_LABEL", + "IntendedBoxContentsSource": "NONE" + }, + "InboundShipmentItems": [ + { + "ShipmentId": "345453", + "SellerSKU": "34534545", + "FulfillmentNetworkSKU": "435435435", + "QuantityShipped": 0, + "QuantityReceived": 0, + "QuantityInCase": 0, + "ReleaseDate": "2020-04-23", + "PrepDetailsList": [ + { + "PrepInstruction": "Polybagging", + "PrepOwner": "AMAZON" + } + ] + } + ], + "MarketplaceId": "MarketplaceId" + } + } + } + }, + "response": { + "payload": { + "ShipmentId": "ShipmentId" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "MarketplaceId": "BADATVPDKIKX0DER", + "InboundShipmentHeader": { + "ShipmentName": "Shipment for FBA15DJCQ1ZF", + "ShipFromAddress": { + "Name": "Uma Test", + "AddressLine1": "123 any st", + "AddressLine2": "", + "DistrictOrCounty": "Washtenaw", + "City": "Ann Arbor", + "StateOrProvinceCode": "MI", + "CountryCode": "US", + "PostalCode": "48103" + }, + "DestinationFulfillmentCenterId": "ABE2", + "ShipmentStatus": "WORKING", + "LabelPrepPreference": "SELLER_LABEL" + }, + "InboundShipmentItems": [ + { + "ShipmentId": "FBA15DJCQ1ZF", + "SellerSKU": "PSMM-TEST-SKU-Apr-03_21_17_20-0379", + "FulfillmentNetworkSKU": "X0014ENQ7B", + "QuantityShipped": 1, + "QuantityReceived": 1, + "QuantityInCase": 1, + "ReleaseDate": "2020-02-27" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InboundShipmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/preorder": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order. \n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPreorderInfo", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace the shipment is tied to.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + }, + "MarketplaceId": { + "value": "MarketplaceId1" + } + } + }, + "response": { + "payload": { + "ShipmentContainsPreorderableItems": true, + "ShipmentConfirmedForPreorder": true, + "NeedByDate": "2020-04-23", + "ConfirmedFulfillableDate": "2020-04-23" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADshipmentId1" + }, + "MarketplaceId": { + "value": "BADMarketplaceId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/preorder\/confirm": { + "put": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns information needed to confirm a shipment for pre-order. Call this operation after calling the getPreorderInfo operation to get the NeedByDate value and other pre-order information about the shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "confirmPreorder", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "NeedByDate", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "format": "date" + } + }, + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace the shipment is tied to.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + }, + "NeedByDate": { + "value": "2020-10-10" + }, + "MarketplaceId": { + "value": "MarketplaceId1" + } + } + }, + "response": { + "payload": { + "ConfirmedNeedByDate": "2020-04-23", + "ConfirmedFulfillableDate": "2020-04-23" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADshipmentId1" + }, + "NeedByDate": { + "value": "2020-10-10" + }, + "MarketplaceId": { + "value": "BADMarketplaceId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/prepInstructions": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPrepInstructions", + "parameters": [ + { + "name": "ShipToCountryCode", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "format": "[A-Z]{2}" + } + }, + { + "name": "SellerSKUList", + "in": "query", + "description": "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.\n\nNote: 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.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ASINList", + "in": "query", + "description": "A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions.\n\nNote: 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.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "ShipToCountryCode": { + "value": "US" + }, + "ASINList": { + "value": [ + "ASIN1" + ] + } + } + }, + "response": { + "payload": { + "SKUPrepInstructionsList": [ + { + "SellerSKU": "SellerSKU", + "ASIN": "ASIN1", + "BarcodeInstruction": "RequiresFNSKULabel", + "PrepGuidance": "ConsultHelpDocuments", + "PrepInstructionList": [ + "Polybagging" + ], + "AmazonPrepFeesDetailsList": [ + { + "PrepInstruction": "Polybagging", + "FeePerUnit": { + "CurrencyCode": "USD", + "Value": 10 + } + } + ] + } + ], + "InvalidSKUList": [ + { + "SellerSKU": "SellerSKU", + "ErrorReason": "DoesNotExist" + } + ], + "ASINPrepInstructionsList": [ + { + "ASIN": "ASIN1", + "BarcodeInstruction": "RequiresFNSKULabel", + "PrepGuidance": "ConsultHelpDocuments", + "PrepInstructionList": [ + "Polybagging" + ] + } + ], + "InvalidASINList": [ + { + "ASIN": "ASIN1", + "ErrorReason": "DoesNotExist" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "ShipToCountryCode": { + "value": "US" + }, + "ASINList": { + "value": [ + "BADASIN" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/transport": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns current transportation information about an inbound shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getTransportDetails", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "TransportContent": { + "TransportHeader": { + "SellerId": "A3O2V2ZBRHE3NZ", + "ShipmentId": "FBA15DJCPTRK", + "IsPartnered": true, + "ShipmentType": "SP" + }, + "TransportDetails": { + "PartneredSmallParcelData": { + "PackageList": [ + { + "Dimensions": { + "Length": 11, + "Width": 11, + "Height": 11, + "Unit": "IN" + }, + "Weight": { + "Value": 11, + "Unit": "pounds" + }, + "CarrierName": "UNITED_PARCEL_SERVICE_INC", + "PackageStatus": "SHIPPED" + } + ] + } + }, + "TransportResult": { + "TransportStatus": "WORKING" + } + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADshipmentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResponse" + } + } + } + } + } + }, + "put": { + "tags": [ + "FBAInboundV0" + ], + "description": "Sends transportation information to Amazon about an inbound shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "putTransportDetails", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + }, + "body": { + "value": { + "IsPartnered": true, + "ShipmentType": "SP", + "TransportDetails": { + "PartneredSmallParcelData": { + "PackageList": [ + { + "Dimensions": { + "Length": 11, + "Width": 11, + "Height": 11, + "Unit": "inches" + }, + "Weight": { + "Value": 11, + "Unit": "pounds" + } + } + ], + "CarrierName": "string" + }, + "NonPartneredSmallParcelData": { + "CarrierName": "USPS", + "PackageList": [ + { + "TrackingId": "werwrwerwrwrer" + } + ] + }, + "PartneredLtlData": { + "Contact": { + "Name": "Test1", + "Phone": "234-343-3434", + "Email": "abc@test.com", + "Fax": "234-343-3434" + }, + "BoxCount": 1, + "SellerFreightClass": "50", + "FreightReadyDate": "2020-03-27", + "PalletList": [ + { + "Dimensions": { + "Length": 13, + "Width": 13, + "Height": 13, + "Unit": "inches" + }, + "Weight": { + "Value": 13, + "Unit": "pounds" + }, + "IsStacked": true + } + ], + "TotalWeight": { + "Value": 13, + "Unit": "pounds" + }, + "SellerDeclaredValue": { + "CurrencyCode": "USD", + "Value": 20 + } + }, + "NonPartneredLtlData": { + "CarrierName": "USPS", + "ProNumber": "3746274" + } + } + } + } + } + }, + "response": { + "payload": { + "TransportResult": { + "TransportStatus": "WORKING" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADshipmentId1" + }, + "body": { + "value": { + "IsPartnered": true, + "ShipmentType": "SP", + "TransportDetails": { + "PartneredSmallParcelData": { + "PackageList": [ + { + "Dimensions": { + "Length": 11, + "Width": 11, + "Height": 11, + "Unit": "inches" + }, + "Weight": { + "Value": 11, + "Unit": "pounds" + } + } + ], + "CarrierName": "string" + }, + "NonPartneredSmallParcelData": { + "CarrierName": "USPS", + "PackageList": [ + { + "TrackingId": "werwrwerwrwrer" + } + ] + }, + "PartneredLtlData": { + "Contact": { + "Name": "Test1", + "Phone": "234-343-3434", + "Email": "abc@test.com", + "Fax": "234-343-3434" + }, + "BoxCount": 1, + "SellerFreightClass": "50", + "FreightReadyDate": "2020-03-27", + "PalletList": [ + { + "Dimensions": { + "Length": 13, + "Width": 13, + "Height": 13, + "Unit": "inches" + }, + "Weight": { + "Value": 13, + "Unit": "pounds" + }, + "IsStacked": true + } + ], + "TotalWeight": { + "Value": 13, + "Unit": "pounds" + }, + "SellerDeclaredValue": { + "CurrencyCode": "USD", + "Value": 20 + } + }, + "NonPartneredLtlData": { + "CarrierName": "USPS", + "ProNumber": "3746274" + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PutTransportDetailsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/transport\/void": { + "post": { + "tags": [ + "FBAInboundV0" + ], + "description": "Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier.\n\nTo be successful, you must call this operation before the VoidDeadline date that is returned by the getTransportDetails operation.\n\nImportant: The VoidDeadline date is 24 hours after you confirm a Small Parcel shipment transportation request or one hour after you confirm a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment transportation request. After the void deadline passes, your account will be charged for the shipping cost.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "voidTransport", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "TransportResult": { + "TransportStatus": "VOIDING" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "badshipmentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/VoidTransportResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/transport\/estimate": { + "post": { + "tags": [ + "FBAInboundV0" + ], + "description": "Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier.\n\nPrior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide Amazon with the transportation information for the inbound shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "estimateTransport", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "TransportResult": { + "TransportStatus": "ESTIMATING" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BadshipmentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/EstimateTransportResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/transport\/confirm": { + "post": { + "tags": [ + "FBAInboundV0" + ], + "description": "Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment.\n\nPrior to calling the confirmTransport operation, you should call the getTransportDetails operation to get the Amazon-partnered shipping estimate.\n\nImportant: After confirming the transportation request, if the seller decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller has 24 hours after confirming a transportation request to void the transportation request. For a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment, the seller has one hour after confirming a transportation request to void it. After the grace period has expired the seller's account will be charged for the shipping cost.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "confirmTransport", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "TransportResult": { + "TransportStatus": "CONFIRMING" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADshipmentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmTransportResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/labels": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns package\/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getLabels", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "PageType", + "in": "query", + "description": "The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.", + "required": true, + "schema": { + "type": "string", + "enum": [ + "PackageLabel_Letter_2", + "PackageLabel_Letter_4", + "PackageLabel_Letter_6", + "PackageLabel_Letter_6_CarrierLeft", + "PackageLabel_A4_2", + "PackageLabel_A4_4", + "PackageLabel_Plain_Paper", + "PackageLabel_Plain_Paper_CarrierBottom", + "PackageLabel_Thermal", + "PackageLabel_Thermal_Unified", + "PackageLabel_Thermal_NonPCP", + "PackageLabel_Thermal_No_Carrier_Rotation" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PackageLabel_Letter_2", + "description": "Two labels per US Letter label sheet. This is the only valid value for Amazon-partnered shipments in the US that use United Parcel Service (UPS) as the carrier. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_4", + "description": "Four labels per US Letter label sheet. This is the only valid value for non-Amazon-partnered shipments in the US. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_6", + "description": "Six labels per US Letter label sheet. This is the only valid value for non-Amazon-partnered shipments in the US. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_6_CarrierLeft", + "description": "PackageLabel_Letter_6_CarrierLeft" + }, + { + "value": "PackageLabel_A4_2", + "description": "Two labels per A4 label sheet." + }, + { + "value": "PackageLabel_A4_4", + "description": "Four labels per A4 label sheet." + }, + { + "value": "PackageLabel_Plain_Paper", + "description": "One label per sheet of US Letter paper. Only for non-Amazon-partnered shipments. " + }, + { + "value": "PackageLabel_Plain_Paper_CarrierBottom", + "description": "PackageLabel_Plain_Paper_CarrierBottom" + }, + { + "value": "PackageLabel_Thermal", + "description": "For use of a thermal printer. Supports Amazon-partnered shipments with UPS." + }, + { + "value": "PackageLabel_Thermal_Unified", + "description": "For use of a thermal printer. Supports shipments with ATS." + }, + { + "value": "PackageLabel_Thermal_NonPCP", + "description": "For use of a thermal printer. Supports non-Amazon-partnered shipments." + }, + { + "value": "PackageLabel_Thermal_No_Carrier_Rotation", + "description": "For use of a thermal printer. Supports Amazon-partnered shipments with DHL." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "PackageLabel_Letter_2", + "description": "Two labels per US Letter label sheet. This is the only valid value for Amazon-partnered shipments in the US that use United Parcel Service (UPS) as the carrier. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_4", + "description": "Four labels per US Letter label sheet. This is the only valid value for non-Amazon-partnered shipments in the US. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_6", + "description": "Six labels per US Letter label sheet. This is the only valid value for non-Amazon-partnered shipments in the US. Supported in Canada and the US." + }, + { + "value": "PackageLabel_Letter_6_CarrierLeft", + "description": "PackageLabel_Letter_6_CarrierLeft" + }, + { + "value": "PackageLabel_A4_2", + "description": "Two labels per A4 label sheet." + }, + { + "value": "PackageLabel_A4_4", + "description": "Four labels per A4 label sheet." + }, + { + "value": "PackageLabel_Plain_Paper", + "description": "One label per sheet of US Letter paper. Only for non-Amazon-partnered shipments. " + }, + { + "value": "PackageLabel_Plain_Paper_CarrierBottom", + "description": "PackageLabel_Plain_Paper_CarrierBottom" + }, + { + "value": "PackageLabel_Thermal", + "description": "For use of a thermal printer. Supports Amazon-partnered shipments with UPS." + }, + { + "value": "PackageLabel_Thermal_Unified", + "description": "For use of a thermal printer. Supports shipments with ATS." + }, + { + "value": "PackageLabel_Thermal_NonPCP", + "description": "For use of a thermal printer. Supports non-Amazon-partnered shipments." + }, + { + "value": "PackageLabel_Thermal_No_Carrier_Rotation", + "description": "For use of a thermal printer. Supports Amazon-partnered shipments with DHL." + } + ] + }, + { + "name": "LabelType", + "in": "query", + "description": "The type of labels requested. ", + "required": true, + "schema": { + "type": "string", + "enum": [ + "BARCODE_2D", + "UNIQUE", + "PALLET" + ], + "x-docgen-enum-table-extension": [ + { + "value": "BARCODE_2D", + "description": "This option is provided only for shipments where 2D Barcodes will be applied to all packages. Amazon strongly recommends using the UNIQUE option to get package labels instead of the BARCODE_2D option." + }, + { + "value": "UNIQUE", + "description": "Document data for printing unique shipping labels and carrier labels for an inbound shipment." + }, + { + "value": "PALLET", + "description": "Document data for printing pallet labels for a Less Than Truckload\/Full Truckload (LTL\/FTL) inbound shipment." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "BARCODE_2D", + "description": "This option is provided only for shipments where 2D Barcodes will be applied to all packages. Amazon strongly recommends using the UNIQUE option to get package labels instead of the BARCODE_2D option." + }, + { + "value": "UNIQUE", + "description": "Document data for printing unique shipping labels and carrier labels for an inbound shipment." + }, + { + "value": "PALLET", + "description": "Document data for printing pallet labels for a Less Than Truckload\/Full Truckload (LTL\/FTL) inbound shipment." + } + ] + }, + { + "name": "NumberOfPackages", + "in": "query", + "description": "The number of packages in the shipment.", + "schema": { + "type": "integer" + } + }, + { + "name": "PackageLabelsToPrint", + "in": "query", + "description": "A list of identifiers that specify packages for which you want package labels printed.\n\nMust match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 999, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "NumberOfPallets", + "in": "query", + "description": "The number of pallets in the shipment. This returns four identical labels for each pallet.", + "schema": { + "type": "integer" + } + }, + { + "name": "PageSize", + "in": "query", + "description": "The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.", + "schema": { + "type": "integer" + } + }, + { + "name": "PageStartIndex", + "in": "query", + "description": "The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments.", + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "348975493" + }, + "PageType": { + "value": "PackageLabel_Letter_2" + }, + "LabelType": { + "value": "BARCODE_2D" + } + } + }, + "response": { + "payload": { + "DownloadURL": "http:\/\/www.labels.url.com" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BADVALUE" + }, + "PageType": { + "value": "PackageLabel_Letter_2" + }, + "LabelType": { + "value": "BARCODE_2D" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetLabelsResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/billOfLading": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns a bill of lading for a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload\/Full Truckload (LTL\/FTL) inbound shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getBillOfLading", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId" + } + } + }, + "response": { + "payload": { + "DownloadURL": "http:\/\/bill-of.lading.url.com" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "badid1" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetBillOfLadingResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns a list of inbound shipments based on criteria that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipments", + "parameters": [ + { + "name": "ShipmentStatusList", + "in": "query", + "description": "A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "WORKING", + "READY_TO_SHIP", + "SHIPPED", + "RECEIVING", + "CANCELLED", + "DELETED", + "CLOSED", + "ERROR", + "IN_TRANSIT", + "DELIVERED", + "CHECKED_IN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "WORKING", + "description": "The shipment was created by the seller, but has not yet shipped." + }, + { + "value": "READY_TO_SHIP", + "description": "The seller has printed box labels (for Small parcel shipments) or pallet labels (for Less Than Truckload shipments)." + }, + { + "value": "SHIPPED", + "description": "The shipment was picked up by the carrier." + }, + { + "value": "RECEIVING", + "description": "The shipment has arrived at the fulfillment center, but not all items have been marked as received." + }, + { + "value": "CANCELLED", + "description": "The shipment was cancelled by the seller after the shipment was sent to the fulfillment center." + }, + { + "value": "DELETED", + "description": "The shipment was cancelled by the seller before the shipment was sent to the fulfillment center." + }, + { + "value": "CLOSED", + "description": "The shipment has arrived at the fulfillment center and all items have been marked as received." + }, + { + "value": "ERROR", + "description": "There was an error with the shipment and it was not processed by Amazon." + }, + { + "value": "IN_TRANSIT", + "description": "The carrier has notified the fulfillment center that it is aware of the shipment." + }, + { + "value": "DELIVERED", + "description": "The shipment was delivered by the carrier to the fulfillment center." + }, + { + "value": "CHECKED_IN", + "description": "The shipment was checked-in at the receiving dock of the fulfillment center." + } + ] + } + } + }, + { + "name": "ShipmentIdList", + "in": "query", + "description": "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.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "LastUpdatedAfter", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "LastUpdatedBefore", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "QueryType", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "enum": [ + "SHIPMENT", + "DATE_RANGE", + "NEXT_TOKEN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPMENT", + "description": "Returns shipments based on the shipment information provided by the ShipmentStatusList or ShipmentIdList parameters." + }, + { + "value": "DATE_RANGE", + "description": "Returns shipments based on the date range information provided by the LastUpdatedAfter and LastUpdatedBefore parameters." + }, + { + "value": "NEXT_TOKEN", + "description": "Returns shipments by using NextToken to continue returning items specified in a previous request." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "SHIPMENT", + "description": "Returns shipments based on the shipment information provided by the ShipmentStatusList or ShipmentIdList parameters." + }, + { + "value": "DATE_RANGE", + "description": "Returns shipments based on the date range information provided by the LastUpdatedAfter and LastUpdatedBefore parameters." + }, + { + "value": "NEXT_TOKEN", + "description": "Returns shipments by using NextToken to continue returning items specified in a previous request." + } + ] + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response to your previous request.", + "schema": { + "type": "string" + } + }, + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace where the product would be stored.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "QueryType": { + "value": "SHIPMENT" + } + } + }, + "response": { + "payload": { + "ShipmentData": [ + { + "ShipmentId": "FBA15DJ9S3J5", + "ShipmentName": "FBA (2\/11\/20, 11:18 AM) - 1", + "ShipFromAddress": { + "Name": "vungu+naperfectUS", + "AddressLine1": "501 Fairview Ave N", + "City": "Seattle", + "StateOrProvinceCode": "WA", + "CountryCode": "US", + "PostalCode": "98109" + }, + "DestinationFulfillmentCenterId": "MKC6", + "ShipmentStatus": "SHIPPED", + "LabelPrepType": "SELLER_LABEL", + "BoxContentsSource": "INTERACTIVE" + } + ], + "NextToken": "AAAAAAAAAADwtRhfSFJXzbRgKc+wYysmXwEAAAAAAACLuoztkDYG\/ClQt9ELs4kYW6MrmpJdFf1QQYk6hSIZSsy5ipek26YvTwmkD9i4cbQny1EWwuuU88wghPxa7770q5R+YYCuP4pYWVy3AVAzWzAib6BRlDr4B0msx6sOKcYCy6ms4J021964JOS9nZhRBGfJ86d96S91rhJPli55+r7Jp+VHPly2FCJ2mAuC53sGTsNP108IUuPdbZqq2myWZ5U+EggLjhRBvXhHFFxRclETG7XfyX46A9nCKKhJYEjDFmMPQoQPtqSuxtMAUMDLPs4MttashstL96Oiu79VYhjV84L13mdMNZS6g21HKgU5E6CDivHvsgS5kC7joXHrXGjwpXMeLcfJqwg+DocBFiU2NELMEbfksrIGXVVjFqiLxHtTiDBsuDxDLbYeVepW0E9oA\/ppbZJK4c0nDbgT3WSxxfsgpmAZ42O6iVMhW\/KVlJZFDjKsmmHATcq5S5c=" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "BADATVPDKIKX0DER" + }, + "QueryType": { + "value": "BADSHIPMENT" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentsResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipments\/{shipmentId}\/items": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns a list of items in a specified inbound shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipmentItemsByShipmentId", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "A shipment identifier used for selecting items in a specific inbound shipment.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace where the product would be stored.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "shipmentId": { + "value": "FBA15DJ9SVVD" + } + } + }, + "response": { + "payload": { + "ItemData": [ + { + "ShipmentId": "FBA15DF2763D", + "SellerSKU": "CR-47K6-H6QN", + "FulfillmentNetworkSKU": "X0014BIZ8T", + "QuantityShipped": 4, + "QuantityReceived": 0, + "QuantityInCase": 0, + "ReleaseDate": "2013-05-29", + "PrepDetailsList": [ + { + "PrepInstruction": "Labeling", + "PrepOwner": "SELLER" + }, + { + "PrepInstruction": "Polybagging", + "PrepOwner": "SELLER" + } + ] + } + ], + "NextToken": "AAAAAAAAAABtqoY6CcWi1L8mJB7Nnt2gaQEAAAAAAAD6ehPTas9PliWJK6+QPwRpOgJJTgQphGOQ+9o1k7PBrBe5GrNyGDQYBmz2D4yDT4FVSHVhpbKi8Mgrw3tfRTLrkcMQOn5CvEySS5ePVzv8WhjCDxM9FGwBzoeDWLKx9OEy29XlAFkeBdwaxOAxEMF97uQkxGhUQS5sGeXdSAXNXMgCoOXMgw+JlsgzIq3Byt\/yObIt8z9T0GPk440bqiQZl3ceVEiLX2g2LAa5qNwJBtCgYtizJsYSu\/tX9zbR0Fe13bSqTOUEAXykYvQSTYCbuEPC3UFukVLobuP0lW+WZzZxcbWRxEzBTHnlgorzdsCc4cBnWVhTdp5nxTPeiYGbda9KilRFXtVl1vgXCHq5npDNV9yULsgjAqFPDBaz8YMlKoJgCe2E1GmbHzenJW21IHcIo3gtmujx+ib3Y9j23SwCfEbsUR9OrFNvGxiZ0VS7qYzm+fvElsU9jBx1PFrOigHnGD71Yq+y" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "BADATVPDKIKX0DER" + }, + "shipmentId": { + "value": "BADFBA15DJ9SVVD" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + } + } + } + }, + "\/fba\/inbound\/v0\/shipmentItems": { + "get": { + "tags": [ + "FBAInboundV0" + ], + "description": "Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipmentItems", + "parameters": [ + { + "name": "LastUpdatedAfter", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "LastUpdatedBefore", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "QueryType", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "enum": [ + "DATE_RANGE", + "NEXT_TOKEN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DATE_RANGE", + "description": "Returns items based on the date range information provided by the LastUpdatedAfter and LastUpdatedBefore parameters." + }, + { + "value": "NEXT_TOKEN", + "description": "Returns items by using NextToken to continue returning items specified in a previous request." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "DATE_RANGE", + "description": "Returns items based on the date range information provided by the LastUpdatedAfter and LastUpdatedBefore parameters." + }, + { + "value": "NEXT_TOKEN", + "description": "Returns items by using NextToken to continue returning items specified in a previous request." + } + ] + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response to your previous request.", + "schema": { + "type": "string" + } + }, + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace where the product would be stored.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "QueryType": { + "value": "SHIPMENT" + }, + "NextToken": { + "value": "NextToken" + } + } + }, + "response": { + "payload": { + "ItemData": [ + { + "ShipmentId": "FBA15DF2763D", + "SellerSKU": "CR-47K6-H6QN", + "FulfillmentNetworkSKU": "X0014BIZ8T", + "QuantityShipped": 4, + "QuantityReceived": 0, + "QuantityInCase": 0, + "ReleaseDate": "2013-05-29", + "PrepDetailsList": [ + { + "PrepInstruction": "Labeling", + "PrepOwner": "SELLER" + }, + { + "PrepInstruction": "Polybagging", + "PrepOwner": "SELLER" + } + ] + } + ], + "NextToken": "AAAAAAAAAABtqoY6CcWi1L8mJB7Nnt2gaQEAAAAAAAD6ehPTas9PliWJK6QPwRpOgJJTgQphGOQ9o1k7PBrBe5GrNyGDQYBmz2D4yDT4FVSHVhpbKi8Mgrw3tfRTLrkcMQOn5CvEySS5ePVzv8WhjCDxM9FGwBzoeDWLKx9OEy29XlAFkeBdwaxOAxEMF97uQkxGhUQS5sGeXdSAXNXMgCoOXMgwJlsgzIq3BytyObIt8z9T0GPk440bqiQZl3ceVEiLX2g2LAa5qNwJBtCgYtizJsYSutX9zbR0Fe13bSqTOUEAXykYvQSTYCbuEPC3UFukVLobuP0lWWZzZxcbWRxEzBTHnlgorzdsCc4cBnWVhTdp5nxTPeiYGbda9KilRFXtVl1vgXCHq5npDNV9yULsgjAqFPDBaz8YMlKoJgCe2E1GmbHzenJW21IHcIo3gtmujxib3Y9j23SwCfEbsUR9OrFNvGxiZ0VS7qYzmfvElsU9jBx1PFrOigHnGD71Yq" + } + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "QueryType": { + "value": "SHIPMENT" + }, + "NextToken": { + "value": "AAAAAAAAAABtqoY6CcWi1L8mJB7Nnt2gaQEAAAAAAAD6ehPTas9PliWJK6QPwRpOgJJTgQphGOQ9o1k7PBrBe5GrNyGDQYBmz2D4yDT4FVSHVhpbKi8Mgrw3tfRTLrkcMQOn5CvEySS5ePVzv8WhjCDxM9FGwBzoeDWLKx9OEy29XlAFkeBdwaxOAxEMF97uQkxGhUQS5sGeXdSAXNXMgCoOXMgwJlsgzIq3BytyObIt8z9T0GPk440bqiQZl3ceVEiLX2g2LAa5qNwJBtCgYtizJsYSutX9zbR0Fe13bSqTOUEAXykYvQSTYCbuEPC3UFukVLobuP0lWWZzZxcbWRxEzBTHnlgorzdsCc4cBnWVhTdp5nxTPeiYGbda9KilRFXtVl1vgXCHq5npDNV9yULsgjAqFPDBaz8YMlKoJgCe2E1GmbHzenJW21IHcIo3gtmujxib3Y9j23SwCfEbsUR9OrFNvGxiZ0VS7qYzmfvElsU9jBx1PFrOigHnGD71Yq" + } + } + }, + "response": { + "payload": { + "ItemData": [ + { + "ShipmentId": "FBA15DF2763D", + "SellerSKU": "CR-47K6-H6QN", + "FulfillmentNetworkSKU": "X0014BIZ8T", + "QuantityShipped": 4, + "QuantityReceived": 0, + "QuantityInCase": 0, + "ReleaseDate": "2013-05-29", + "PrepDetailsList": [ + { + "PrepInstruction": "Labeling", + "PrepOwner": "SELLER" + }, + { + "PrepInstruction": "Polybagging", + "PrepOwner": "SELLER" + } + ] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "BADATVPDKIKX0DER" + }, + "QueryType": { + "value": "BADSHIPMENT" + }, + "NextToken": { + "value": "BADNextToken" + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Data is invalid. Please check." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "ASINInboundGuidance": { + "required": [ + "ASIN", + "InboundGuidance" + ], + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "InboundGuidance": { + "$ref": "#\/components\/schemas\/InboundGuidance" + }, + "GuidanceReasonList": { + "$ref": "#\/components\/schemas\/GuidanceReasonList" + } + }, + "description": "Reasons why a given ASIN is not recommended for shipment to Amazon's fulfillment network." + }, + "ASINInboundGuidanceList": { + "type": "array", + "description": "A list of ASINs and their associated inbound guidance.", + "items": { + "$ref": "#\/components\/schemas\/ASINInboundGuidance" + } + }, + "ASINPrepInstructions": { + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "BarcodeInstruction": { + "$ref": "#\/components\/schemas\/BarcodeInstruction" + }, + "PrepGuidance": { + "$ref": "#\/components\/schemas\/PrepGuidance" + }, + "PrepInstructionList": { + "$ref": "#\/components\/schemas\/PrepInstructionList" + } + }, + "description": "Item preparation instructions to help with item sourcing decisions." + }, + "ASINPrepInstructionsList": { + "type": "array", + "description": "A list of item preparation instructions.", + "items": { + "$ref": "#\/components\/schemas\/ASINPrepInstructions" + } + }, + "Address": { + "required": [ + "AddressLine1", + "City", + "CountryCode", + "Name", + "PostalCode", + "StateOrProvinceCode" + ], + "type": "object", + "properties": { + "Name": { + "maxLength": 50, + "type": "string", + "description": "Name of the individual or business." + }, + "AddressLine1": { + "maxLength": 180, + "type": "string", + "description": "The street address information." + }, + "AddressLine2": { + "maxLength": 60, + "type": "string", + "description": "Additional street address information, if required." + }, + "DistrictOrCounty": { + "maxLength": 25, + "type": "string", + "description": "The district or county." + }, + "City": { + "maxLength": 30, + "type": "string", + "description": "The city." + }, + "StateOrProvinceCode": { + "type": "string", + "description": "The state or province code.\n\nIf state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan." + }, + "CountryCode": { + "type": "string", + "description": "The country code in two-character ISO 3166-1 alpha-2 format." + }, + "PostalCode": { + "maxLength": 30, + "type": "string", + "description": "The postal code.\n\nIf postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan." + } + } + }, + "AmazonPrepFeesDetails": { + "type": "object", + "properties": { + "PrepInstruction": { + "$ref": "#\/components\/schemas\/PrepInstruction" + }, + "FeePerUnit": { + "$ref": "#\/components\/schemas\/Amount" + } + }, + "description": "The fees for Amazon to prep goods for shipment." + }, + "AmazonPrepFeesDetailsList": { + "type": "array", + "description": "A list of preparation instructions and fees for Amazon to prep goods for shipment.", + "items": { + "$ref": "#\/components\/schemas\/AmazonPrepFeesDetails" + } + }, + "Amount": { + "required": [ + "CurrencyCode", + "Value" + ], + "type": "object", + "properties": { + "CurrencyCode": { + "$ref": "#\/components\/schemas\/CurrencyCode" + }, + "Value": { + "$ref": "#\/components\/schemas\/BigDecimalType" + } + }, + "description": "The monetary value." + }, + "BarcodeInstruction": { + "type": "string", + "description": "Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.", + "enum": [ + "RequiresFNSKULabel", + "CanUseOriginalBarcode", + "MustProvideSellerSKU" + ], + "x-docgen-enum-table-extension": [ + { + "value": "RequiresFNSKULabel", + "description": "Indicates that a scannable FBA product label must be applied to the item. Cover any original bar codes on the item." + }, + { + "value": "CanUseOriginalBarcode", + "description": "Indicates that the item does not require a scannable FBA product label. The original manufacturer's bar code can be used." + }, + { + "value": "MustProvideSellerSKU", + "description": "Amazon is unable to return labeling requirements. To get labeling requirements for items, call the getPrepInstructions operation." + } + ] + }, + "BigDecimalType": { + "type": "number", + "format": "double" + }, + "BoxContentsFeeDetails": { + "type": "object", + "properties": { + "TotalUnits": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "FeePerUnit": { + "$ref": "#\/components\/schemas\/Amount" + }, + "TotalFee": { + "$ref": "#\/components\/schemas\/Amount" + } + }, + "description": "The manual processing fee per unit and total fee for a shipment." + }, + "BoxContentsSource": { + "type": "string", + "description": "Where the seller provided box contents information for a shipment.", + "enum": [ + "NONE", + "FEED", + "2D_BARCODE", + "INTERACTIVE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NONE", + "description": "There is no box contents information for this shipment. Amazon will manually process the box contents information. This may incur a fee." + }, + { + "value": "FEED", + "description": "Box contents information is provided through the _POST_FBA_INBOUND_CARTON_CONTENTS_ feed." + }, + { + "value": "2D_BARCODE", + "description": "Box contents information is provided by a barcode on the shipment. For more information, see Using 2D barcodes for box content information on Seller Central." + }, + { + "value": "INTERACTIVE", + "description": "Box contents information is provided by an interactive source, such as a web tool." + } + ] + }, + "Condition": { + "type": "string", + "description": "The condition of the item.", + "enum": [ + "NewItem", + "NewWithWarranty", + "NewOEM", + "NewOpenBox", + "UsedLikeNew", + "UsedVeryGood", + "UsedGood", + "UsedAcceptable", + "UsedPoor", + "UsedRefurbished", + "CollectibleLikeNew", + "CollectibleVeryGood", + "CollectibleGood", + "CollectibleAcceptable", + "CollectiblePoor", + "RefurbishedWithWarranty", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NewItem", + "description": "NewItem" + }, + { + "value": "NewWithWarranty", + "description": "NewWithWarranty" + }, + { + "value": "NewOEM", + "description": "NewOEM" + }, + { + "value": "NewOpenBox", + "description": "NewOpenBox" + }, + { + "value": "UsedLikeNew", + "description": "UsedLikeNew" + }, + { + "value": "UsedVeryGood", + "description": "UsedVeryGood" + }, + { + "value": "UsedGood", + "description": "UsedGood" + }, + { + "value": "UsedAcceptable", + "description": "UsedAcceptable" + }, + { + "value": "UsedPoor", + "description": "UsedPoor" + }, + { + "value": "UsedRefurbished", + "description": "UsedRefurbished" + }, + { + "value": "CollectibleLikeNew", + "description": "CollectibleLikeNew" + }, + { + "value": "CollectibleVeryGood", + "description": "CollectibleVeryGood" + }, + { + "value": "CollectibleGood", + "description": "CollectibleGood" + }, + { + "value": "CollectibleAcceptable", + "description": "CollectibleAcceptable" + }, + { + "value": "CollectiblePoor", + "description": "CollectiblePoor" + }, + { + "value": "RefurbishedWithWarranty", + "description": "RefurbishedWithWarranty" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "ConfirmPreorderResult": { + "type": "object", + "properties": { + "ConfirmedNeedByDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "ConfirmedFulfillableDate": { + "$ref": "#\/components\/schemas\/DateStringType" + } + } + }, + "ConfirmPreorderResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ConfirmPreorderResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the confirmPreorder operation." + }, + "CommonTransportResult": { + "type": "object", + "properties": { + "TransportResult": { + "$ref": "#\/components\/schemas\/TransportResult" + } + } + }, + "ConfirmTransportResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CommonTransportResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the confirmTransport operation." + }, + "Contact": { + "required": [ + "Email", + "Name", + "Phone" + ], + "type": "object", + "properties": { + "Name": { + "maxLength": 50, + "type": "string", + "description": "The name of the contact person." + }, + "Phone": { + "maxLength": 20, + "type": "string", + "description": "The phone number of the contact person." + }, + "Email": { + "maxLength": 50, + "type": "string", + "description": "The email address of the contact person." + }, + "Fax": { + "maxLength": 20, + "type": "string", + "description": "The fax number of the contact person." + } + }, + "description": "Contact information for the person in the seller's organization who is responsible for a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment." + }, + "CreateInboundShipmentPlanRequest": { + "required": [ + "InboundShipmentPlanRequestItems", + "LabelPrepPreference", + "ShipFromAddress" + ], + "type": "object", + "properties": { + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "LabelPrepPreference": { + "$ref": "#\/components\/schemas\/LabelPrepPreference" + }, + "ShipToCountryCode": { + "type": "string", + "description": "The two-character country code for the country where the inbound shipment is to be sent.\n\nNote: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error.\n\n Values:\n\n ShipToCountryCode values for North America:\n * CA \u2013 Canada\n * MX - Mexico\n * US - United States\n\nShipToCountryCode values for MCI sellers in Europe:\n * DE \u2013 Germany\n * ES \u2013 Spain\n * FR \u2013 France\n * GB \u2013 United Kingdom\n * IT \u2013 Italy\n\nDefault: The country code for the seller's home marketplace." + }, + "ShipToCountrySubdivisionCode": { + "type": "string", + "description": "The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, \"IN-MH\". In full ISO 3166-2 format.\n\nNote: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error." + }, + "InboundShipmentPlanRequestItems": { + "$ref": "#\/components\/schemas\/InboundShipmentPlanRequestItemList" + } + }, + "description": "The request schema for the createInboundShipmentPlan operation." + }, + "CreateInboundShipmentPlanResult": { + "type": "object", + "properties": { + "InboundShipmentPlans": { + "$ref": "#\/components\/schemas\/InboundShipmentPlanList" + } + } + }, + "CreateInboundShipmentPlanResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CreateInboundShipmentPlanResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createInboundShipmentPlan operation." + }, + "InboundShipmentRequest": { + "required": [ + "InboundShipmentHeader", + "InboundShipmentItems", + "MarketplaceId" + ], + "type": "object", + "properties": { + "InboundShipmentHeader": { + "$ref": "#\/components\/schemas\/InboundShipmentHeader" + }, + "InboundShipmentItems": { + "$ref": "#\/components\/schemas\/InboundShipmentItemList" + }, + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier. Specifies the marketplace where the product would be stored." + } + }, + "description": "The request schema for an inbound shipment." + }, + "InboundShipmentResult": { + "required": [ + "ShipmentId" + ], + "type": "object", + "properties": { + "ShipmentId": { + "type": "string", + "description": "The shipment identifier submitted in the request." + } + } + }, + "InboundShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/InboundShipmentResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for this operation." + }, + "CurrencyCode": { + "type": "string", + "description": "The currency code.", + "enum": [ + "USD", + "GBP" + ], + "x-docgen-enum-table-extension": [ + { + "value": "USD", + "description": "United States Dollar." + }, + { + "value": "GBP", + "description": "British pound sterling." + } + ] + }, + "DateStringType": { + "type": "string", + "format": "date" + }, + "Dimensions": { + "required": [ + "Height", + "Length", + "Unit", + "Width" + ], + "type": "object", + "properties": { + "Length": { + "$ref": "#\/components\/schemas\/BigDecimalType" + }, + "Width": { + "$ref": "#\/components\/schemas\/BigDecimalType" + }, + "Height": { + "$ref": "#\/components\/schemas\/BigDecimalType" + }, + "Unit": { + "$ref": "#\/components\/schemas\/UnitOfMeasurement" + } + }, + "description": "The dimension values and unit of measurement." + }, + "ErrorReason": { + "type": "string", + "description": "The reason that the ASIN is invalid.", + "enum": [ + "DoesNotExist", + "InvalidASIN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DoesNotExist", + "description": "Indicates that the ASIN is not included in the Amazon product catalog for any of the marketplaces that the seller participates in." + }, + { + "value": "InvalidASIN", + "description": "The ASIN is invalid." + } + ] + }, + "EstimateTransportResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CommonTransportResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the estimateTransport operation." + }, + "GetBillOfLadingResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/BillOfLadingDownloadURL" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getBillOfLading operation." + }, + "GetInboundGuidanceResult": { + "type": "object", + "properties": { + "SKUInboundGuidanceList": { + "$ref": "#\/components\/schemas\/SKUInboundGuidanceList" + }, + "InvalidSKUList": { + "$ref": "#\/components\/schemas\/InvalidSKUList" + }, + "ASINInboundGuidanceList": { + "$ref": "#\/components\/schemas\/ASINInboundGuidanceList" + }, + "InvalidASINList": { + "$ref": "#\/components\/schemas\/InvalidASINList" + } + } + }, + "GetInboundGuidanceResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetInboundGuidanceResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getInboundGuidance operation." + }, + "LabelDownloadURL": { + "type": "object", + "properties": { + "DownloadURL": { + "type": "string", + "description": "URL to download the label for the package. Note: The URL will only be valid for 15 seconds" + } + } + }, + "BillOfLadingDownloadURL": { + "type": "object", + "properties": { + "DownloadURL": { + "type": "string", + "description": "URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds" + } + } + }, + "GetLabelsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/LabelDownloadURL" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getLabels operation." + }, + "GetPreorderInfoResult": { + "type": "object", + "properties": { + "ShipmentContainsPreorderableItems": { + "type": "boolean", + "description": "Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help." + }, + "ShipmentConfirmedForPreorder": { + "type": "boolean", + "description": "Indicates whether this shipment has been confirmed for pre-order." + }, + "NeedByDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "ConfirmedFulfillableDate": { + "$ref": "#\/components\/schemas\/DateStringType" + } + } + }, + "GetPreorderInfoResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetPreorderInfoResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPreorderInfo operation." + }, + "GetPrepInstructionsResult": { + "type": "object", + "properties": { + "SKUPrepInstructionsList": { + "$ref": "#\/components\/schemas\/SKUPrepInstructionsList" + }, + "InvalidSKUList": { + "$ref": "#\/components\/schemas\/InvalidSKUList" + }, + "ASINPrepInstructionsList": { + "$ref": "#\/components\/schemas\/ASINPrepInstructionsList" + }, + "InvalidASINList": { + "$ref": "#\/components\/schemas\/InvalidASINList" + } + } + }, + "GetPrepInstructionsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetPrepInstructionsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPrepInstructions operation." + }, + "GetTransportDetailsResult": { + "type": "object", + "properties": { + "TransportContent": { + "$ref": "#\/components\/schemas\/TransportContent" + } + } + }, + "GetTransportDetailsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetTransportDetailsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getTransportDetails operation." + }, + "GuidanceReason": { + "type": "string", + "description": "A reason for the current inbound guidance for an item.", + "enum": [ + "SlowMovingASIN", + "NoApplicableGuidance" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SlowMovingASIN", + "description": "The ASIN is well stocked and\/or not selling quickly." + }, + { + "value": "NoApplicableGuidance", + "description": "No applicable guidance." + } + ] + }, + "GuidanceReasonList": { + "type": "array", + "description": "A list of inbound guidance reason information.", + "items": { + "$ref": "#\/components\/schemas\/GuidanceReason" + } + }, + "InboundGuidance": { + "type": "string", + "description": "Specific inbound guidance for an item.", + "enum": [ + "InboundNotRecommended", + "InboundOK" + ], + "x-docgen-enum-table-extension": [ + { + "value": "InboundNotRecommended", + "description": "Shipping this item to Amazon's fulfillment network is not recommended." + }, + { + "value": "InboundOK", + "description": "Shipping this item to Amazon's fulfillment network should not cause any problems." + } + ] + }, + "InboundShipmentHeader": { + "required": [ + "DestinationFulfillmentCenterId", + "LabelPrepPreference", + "ShipFromAddress", + "ShipmentName", + "ShipmentStatus" + ], + "type": "object", + "properties": { + "ShipmentName": { + "type": "string", + "description": "The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created." + }, + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "DestinationFulfillmentCenterId": { + "type": "string", + "description": "The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation." + }, + "AreCasesRequired": { + "type": "boolean", + "description": "Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes.\n\nPossible values:\n\ntrue - All boxes in the shipment must be case packed.\n\nfalse - All boxes in the shipment must be individually packed.\n\nNote: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error." + }, + "ShipmentStatus": { + "$ref": "#\/components\/schemas\/ShipmentStatus" + }, + "LabelPrepPreference": { + "$ref": "#\/components\/schemas\/LabelPrepPreference" + }, + "IntendedBoxContentsSource": { + "$ref": "#\/components\/schemas\/IntendedBoxContentsSource" + } + }, + "description": "Inbound shipment information used to create and update inbound shipments." + }, + "InboundShipmentInfo": { + "required": [ + "AreCasesRequired", + "ShipFromAddress" + ], + "type": "object", + "properties": { + "ShipmentId": { + "type": "string", + "description": "The shipment identifier submitted in the request." + }, + "ShipmentName": { + "type": "string", + "description": "The name for the inbound shipment." + }, + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "DestinationFulfillmentCenterId": { + "type": "string", + "description": "An Amazon fulfillment center identifier created by Amazon." + }, + "ShipmentStatus": { + "$ref": "#\/components\/schemas\/ShipmentStatus" + }, + "LabelPrepType": { + "$ref": "#\/components\/schemas\/LabelPrepType" + }, + "AreCasesRequired": { + "type": "boolean", + "description": "Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed." + }, + "ConfirmedNeedByDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "BoxContentsSource": { + "$ref": "#\/components\/schemas\/BoxContentsSource" + }, + "EstimatedBoxContentsFee": { + "$ref": "#\/components\/schemas\/BoxContentsFeeDetails" + } + }, + "description": "Information about the seller's inbound shipments. Returned by the listInboundShipments operation." + }, + "InboundShipmentItem": { + "required": [ + "QuantityShipped", + "SellerSKU" + ], + "type": "object", + "properties": { + "ShipmentId": { + "type": "string", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation." + }, + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "FulfillmentNetworkSKU": { + "type": "string", + "description": "Amazon's fulfillment network SKU of the item." + }, + "QuantityShipped": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "QuantityReceived": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "QuantityInCase": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "ReleaseDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "PrepDetailsList": { + "$ref": "#\/components\/schemas\/PrepDetailsList" + } + }, + "description": "Item information for an inbound shipment. Submitted with a call to the createInboundShipment or updateInboundShipment operation." + }, + "InboundShipmentItemList": { + "type": "array", + "description": "A list of inbound shipment item information.", + "items": { + "$ref": "#\/components\/schemas\/InboundShipmentItem" + } + }, + "InboundShipmentList": { + "type": "array", + "description": "A list of inbound shipment information.", + "items": { + "$ref": "#\/components\/schemas\/InboundShipmentInfo" + } + }, + "InboundShipmentPlan": { + "required": [ + "DestinationFulfillmentCenterId", + "Items", + "LabelPrepType", + "ShipToAddress", + "ShipmentId" + ], + "type": "object", + "properties": { + "ShipmentId": { + "type": "string", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation." + }, + "DestinationFulfillmentCenterId": { + "type": "string", + "description": "An Amazon fulfillment center identifier created by Amazon." + }, + "ShipToAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "LabelPrepType": { + "$ref": "#\/components\/schemas\/LabelPrepType" + }, + "Items": { + "$ref": "#\/components\/schemas\/InboundShipmentPlanItemList" + }, + "EstimatedBoxContentsFee": { + "$ref": "#\/components\/schemas\/BoxContentsFeeDetails" + } + }, + "description": "Inbound shipment information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation." + }, + "InboundShipmentPlanItem": { + "required": [ + "FulfillmentNetworkSKU", + "Quantity", + "SellerSKU" + ], + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "FulfillmentNetworkSKU": { + "type": "string", + "description": "Amazon's fulfillment network SKU of the item." + }, + "Quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "PrepDetailsList": { + "$ref": "#\/components\/schemas\/PrepDetailsList" + } + }, + "description": "Item information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation." + }, + "InboundShipmentPlanItemList": { + "type": "array", + "description": "A list of inbound shipment plan item information.", + "items": { + "$ref": "#\/components\/schemas\/InboundShipmentPlanItem" + } + }, + "InboundShipmentPlanList": { + "type": "array", + "description": "A list of inbound shipment plan information", + "items": { + "$ref": "#\/components\/schemas\/InboundShipmentPlan" + } + }, + "InboundShipmentPlanRequestItem": { + "required": [ + "ASIN", + "Condition", + "Quantity", + "SellerSKU" + ], + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "Condition": { + "$ref": "#\/components\/schemas\/Condition" + }, + "Quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "QuantityInCase": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "PrepDetailsList": { + "$ref": "#\/components\/schemas\/PrepDetailsList" + } + }, + "description": "Item information for creating an inbound shipment plan. Submitted with a call to the createInboundShipmentPlan operation." + }, + "InboundShipmentPlanRequestItemList": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/InboundShipmentPlanRequestItem" + } + }, + "IntendedBoxContentsSource": { + "type": "string", + "description": "How the seller intends to provide box contents information for a shipment. Leaving this field blank is equivalent to selecting `NONE`, which will incur a fee if the seller does not provide box contents information.", + "enum": [ + "NONE", + "FEED", + "2D_BARCODE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NONE", + "description": "There is no box content information for this shipment. Amazon will manually process the box contents. This will incur a fee if the seller does not provide box contents information." + }, + { + "value": "FEED", + "description": "Box content information is provided through the _POST_FBA_INBOUND_CARTON_CONTENTS_ feed." + }, + { + "value": "2D_BARCODE", + "description": "Box content information is provided by a barcode on the shipment." + } + ] + }, + "InvalidASIN": { + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "ErrorReason": { + "$ref": "#\/components\/schemas\/ErrorReason" + } + } + }, + "InvalidASINList": { + "type": "array", + "description": "A list of invalid ASIN values and the reasons they are invalid.", + "items": { + "$ref": "#\/components\/schemas\/InvalidASIN" + } + }, + "InvalidSKU": { + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "ErrorReason": { + "$ref": "#\/components\/schemas\/ErrorReason" + } + } + }, + "InvalidSKUList": { + "type": "array", + "description": "A list of invalid SKU values and the reason they are invalid.", + "items": { + "$ref": "#\/components\/schemas\/InvalidSKU" + } + }, + "LabelPrepPreference": { + "type": "string", + "description": "The preference for label preparation for an inbound shipment.", + "enum": [ + "SELLER_LABEL", + "AMAZON_LABEL_ONLY", + "AMAZON_LABEL_PREFERRED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SELLER_LABEL", + "description": "The seller labels the items in the inbound shipment when labels are required." + }, + { + "value": "AMAZON_LABEL_ONLY", + "description": "Amazon attempts to label the items in the inbound shipment when labels are required. If Amazon determines that it does not have the information required to successfully label an item, that item is not included in the inbound shipment plan." + }, + { + "value": "AMAZON_LABEL_PREFERRED", + "description": "Amazon attempts to label the items in the inbound shipment when labels are required. If Amazon determines that it does not have the information required to successfully label an item, that item is included in the inbound shipment plan and the seller must label it." + } + ] + }, + "LabelPrepType": { + "type": "string", + "description": "The type of label preparation that is required for the inbound shipment.", + "enum": [ + "NO_LABEL", + "SELLER_LABEL", + "AMAZON_LABEL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NO_LABEL", + "description": "No label preparation is required. All items in this shipment will be handled as stickerless, commingled inventory." + }, + { + "value": "SELLER_LABEL", + "description": "Label preparation by the seller is required." + }, + { + "value": "AMAZON_LABEL", + "description": "Label preparation by Amazon is required.\n\n Note: AMAZON_LABEL is available only if you are enrolled in the FBA Label Service. For more information about the FBA Label Service, see the Seller Central Help for your marketplace." + } + ] + }, + "GetShipmentItemsResult": { + "type": "object", + "properties": { + "ItemData": { + "$ref": "#\/components\/schemas\/InboundShipmentItemList" + }, + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + } + } + }, + "GetShipmentItemsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetShipmentItemsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShipmentItems operation." + }, + "GetShipmentsResult": { + "type": "object", + "properties": { + "ShipmentData": { + "$ref": "#\/components\/schemas\/InboundShipmentList" + }, + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + } + } + }, + "GetShipmentsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetShipmentsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShipments operation." + }, + "NonPartneredLtlDataInput": { + "required": [ + "CarrierName", + "ProNumber" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The carrier that you are using for the inbound shipment." + }, + "ProNumber": { + "$ref": "#\/components\/schemas\/ProNumber" + } + }, + "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." + }, + "NonPartneredLtlDataOutput": { + "required": [ + "CarrierName", + "ProNumber" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The carrier that you are using for the inbound shipment." + }, + "ProNumber": { + "$ref": "#\/components\/schemas\/ProNumber" + } + }, + "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." + }, + "NonPartneredSmallParcelDataInput": { + "required": [ + "CarrierName", + "PackageList" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The carrier that you are using for the inbound shipment." + }, + "PackageList": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelPackageInputList" + } + }, + "description": "Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon." + }, + "NonPartneredSmallParcelDataOutput": { + "required": [ + "PackageList" + ], + "type": "object", + "properties": { + "PackageList": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelPackageOutputList" + } + }, + "description": "Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon." + }, + "NonPartneredSmallParcelPackageInput": { + "required": [ + "TrackingId" + ], + "type": "object", + "properties": { + "TrackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + } + }, + "description": "The tracking number of the package, provided by the carrier." + }, + "NonPartneredSmallParcelPackageInputList": { + "type": "array", + "description": "A list of package tracking information.", + "items": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelPackageInput" + } + }, + "NonPartneredSmallParcelPackageOutput": { + "required": [ + "CarrierName", + "PackageStatus", + "TrackingId" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The carrier that you are using for the inbound shipment." + }, + "TrackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + }, + "PackageStatus": { + "$ref": "#\/components\/schemas\/PackageStatus" + } + }, + "description": "Carrier, tracking number, and status information for the package." + }, + "NonPartneredSmallParcelPackageOutputList": { + "type": "array", + "description": "A list of packages, including carrier, tracking number, and status information for each package.", + "items": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelPackageOutput" + } + }, + "PackageStatus": { + "type": "string", + "description": "The shipment status of the package.", + "enum": [ + "SHIPPED", + "IN_TRANSIT", + "DELIVERED", + "CHECKED_IN", + "RECEIVING", + "CLOSED", + "DELETED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPPED", + "description": "The carrier has picked up the package from your facility." + }, + { + "value": "IN_TRANSIT", + "description": "The carrier has made an appointment for delivery to an Amazon fulfillment center." + }, + { + "value": "DELIVERED", + "description": "The carrier has delivered the package to the loading dock of an Amazon fulfillment center." + }, + { + "value": "CHECKED_IN", + "description": "The Amazon fulfillment center has accepted delivery of the package from the carrier." + }, + { + "value": "RECEIVING", + "description": "The Amazon fulfillment center has begun the receiving process on the package." + }, + { + "value": "CLOSED", + "description": "The Amazon fulfillment center has completed the receiving process on the package." + }, + { + "value": "DELETED", + "description": "The shipment has been deleted." + } + ] + }, + "Pallet": { + "required": [ + "Dimensions", + "IsStacked" + ], + "type": "object", + "properties": { + "Dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "Weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "IsStacked": { + "type": "boolean", + "description": "Indicates whether pallets will be stacked when carrier arrives for pick-up." + } + }, + "description": "Pallet information." + }, + "PalletList": { + "type": "array", + "description": "A list of pallet information.", + "items": { + "$ref": "#\/components\/schemas\/Pallet" + } + }, + "PartneredEstimate": { + "required": [ + "Amount" + ], + "type": "object", + "properties": { + "Amount": { + "$ref": "#\/components\/schemas\/Amount" + }, + "ConfirmDeadline": { + "$ref": "#\/components\/schemas\/TimeStampStringType" + }, + "VoidDeadline": { + "$ref": "#\/components\/schemas\/TimeStampStringType" + } + }, + "description": "The estimated shipping cost for a shipment using an Amazon-partnered carrier." + }, + "PartneredLtlDataInput": { + "type": "object", + "properties": { + "Contact": { + "$ref": "#\/components\/schemas\/Contact" + }, + "BoxCount": { + "$ref": "#\/components\/schemas\/UnsignedIntType" + }, + "SellerFreightClass": { + "$ref": "#\/components\/schemas\/SellerFreightClass" + }, + "FreightReadyDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "PalletList": { + "$ref": "#\/components\/schemas\/PalletList" + }, + "TotalWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "SellerDeclaredValue": { + "$ref": "#\/components\/schemas\/Amount" + } + }, + "description": "Information that is required by an Amazon-partnered carrier to ship a Less Than Truckload\/Full Truckload (LTL\/FTL) inbound shipment." + }, + "PartneredLtlDataOutput": { + "required": [ + "AmazonReferenceId", + "BoxCount", + "CarrierName", + "Contact", + "FreightReadyDate", + "IsBillOfLadingAvailable", + "PalletList", + "PreviewDeliveryDate", + "PreviewFreightClass", + "PreviewPickupDate", + "TotalWeight" + ], + "type": "object", + "properties": { + "Contact": { + "$ref": "#\/components\/schemas\/Contact" + }, + "BoxCount": { + "$ref": "#\/components\/schemas\/UnsignedIntType" + }, + "SellerFreightClass": { + "$ref": "#\/components\/schemas\/SellerFreightClass" + }, + "FreightReadyDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "PalletList": { + "$ref": "#\/components\/schemas\/PalletList" + }, + "TotalWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "SellerDeclaredValue": { + "$ref": "#\/components\/schemas\/Amount" + }, + "AmazonCalculatedValue": { + "$ref": "#\/components\/schemas\/Amount" + }, + "PreviewPickupDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "PreviewDeliveryDate": { + "$ref": "#\/components\/schemas\/DateStringType" + }, + "PreviewFreightClass": { + "$ref": "#\/components\/schemas\/SellerFreightClass" + }, + "AmazonReferenceId": { + "type": "string", + "description": "A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload\/Full Truckload (LTL\/FTL) shipment." + }, + "IsBillOfLadingAvailable": { + "type": "boolean", + "description": "Indicates whether the bill of lading for the shipment is available." + }, + "PartneredEstimate": { + "$ref": "#\/components\/schemas\/PartneredEstimate" + }, + "CarrierName": { + "type": "string", + "description": "The carrier for the inbound shipment." + } + }, + "description": "Information returned by Amazon about a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment by an Amazon-partnered carrier." + }, + "PartneredSmallParcelDataInput": { + "type": "object", + "properties": { + "PackageList": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelPackageInputList" + }, + "CarrierName": { + "type": "string", + "description": "The Amazon-partnered carrier to use for the inbound shipment. **`CarrierName`** values in France (FR), Italy (IT), Spain (ES), the United Kingdom (UK), and the United States (US): `UNITED_PARCEL_SERVICE_INC`.
**`CarrierName`** values in Germany (DE): `DHL_STANDARD`,`UNITED_PARCEL_SERVICE_INC`.
Default: `UNITED_PARCEL_SERVICE_INC`." + } + }, + "description": "Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment." + }, + "PartneredSmallParcelDataOutput": { + "required": [ + "PackageList" + ], + "type": "object", + "properties": { + "PackageList": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelPackageOutputList" + }, + "PartneredEstimate": { + "$ref": "#\/components\/schemas\/PartneredEstimate" + } + }, + "description": "Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier." + }, + "PartneredSmallParcelPackageInput": { + "required": [ + "Dimensions", + "Weight" + ], + "type": "object", + "properties": { + "Dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "Weight": { + "$ref": "#\/components\/schemas\/Weight" + } + }, + "description": "Dimension and weight information for the package." + }, + "PartneredSmallParcelPackageInputList": { + "type": "array", + "description": "A list of dimensions and weight information for packages.", + "items": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelPackageInput" + } + }, + "PartneredSmallParcelPackageOutput": { + "required": [ + "CarrierName", + "Dimensions", + "PackageStatus", + "TrackingId", + "Weight" + ], + "type": "object", + "properties": { + "Dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "Weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "CarrierName": { + "type": "string", + "description": "The carrier specified with a previous call to putTransportDetails." + }, + "TrackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + }, + "PackageStatus": { + "$ref": "#\/components\/schemas\/PackageStatus" + } + }, + "description": "Dimension, weight, and shipping information for the package." + }, + "PartneredSmallParcelPackageOutputList": { + "type": "array", + "description": "A list of packages, including shipping information from the Amazon-partnered carrier.", + "items": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelPackageOutput" + } + }, + "PrepDetails": { + "required": [ + "PrepInstruction", + "PrepOwner" + ], + "type": "object", + "properties": { + "PrepInstruction": { + "$ref": "#\/components\/schemas\/PrepInstruction" + }, + "PrepOwner": { + "$ref": "#\/components\/schemas\/PrepOwner" + } + }, + "description": "Preparation instructions and who is responsible for the preparation." + }, + "PrepDetailsList": { + "type": "array", + "description": "A list of preparation instructions and who is responsible for that preparation.", + "items": { + "$ref": "#\/components\/schemas\/PrepDetails" + } + }, + "PrepGuidance": { + "type": "string", + "description": "Item preparation instructions.", + "enum": [ + "ConsultHelpDocuments", + "NoAdditionalPrepRequired", + "SeePrepInstructionsList" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ConsultHelpDocuments", + "description": "Indicates that Amazon is currently unable to determine the preparation instructions for this item. Amazon might be able to provide guidance at a future date, after evaluating the item." + }, + { + "value": "NoAdditionalPrepRequired", + "description": "Indicates that the item does not require preparation in addition to any item labeling that might be required." + }, + { + "value": "SeePrepInstructionsList", + "description": "Indicates that the item requires preparation in addition to any item labeling that might be required. See the PrepInstructionList in the response for item preparation instructions." + } + ] + }, + "PrepInstruction": { + "type": "string", + "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.", + "enum": [ + "Polybagging", + "BubbleWrapping", + "Taping", + "BlackShrinkWrapping", + "Labeling", + "HangGarment", + "SetCreation", + "Boxing", + "RemoveFromHanger", + "Debundle", + "SuffocationStickering", + "CapSealing", + "SetStickering", + "BlankStickering", + "NoPrep" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Polybagging", + "description": "Indicates that polybagging is required." + }, + { + "value": "BubbleWrapping", + "description": "Indicates that bubble wrapping is required." + }, + { + "value": "Taping", + "description": "Indicates that taping is required." + }, + { + "value": "BlackShrinkWrapping", + "description": "Indicates that black shrink wrapping is required." + }, + { + "value": "Labeling", + "description": "Indicates that the FNSKU label should be applied to the item." + }, + { + "value": "HangGarment", + "description": "Indicates that the item should be placed on a hanger." + }, + { + "value": "SetCreation", + "description": "Units that are sets must be labeled as sets on their packaging. The barcodes on the individual items must 1) not face outward and 2) not require covering." + }, + { + "value": "Boxing", + "description": "Products may require overboxing when there are safety concerns over sharp items, fragile items, hazardous liquids, and vinyl records. For items over 4.5 kg, use double-wall corrugated boxes." + }, + { + "value": "RemoveFromHanger", + "description": "Indicates that the item cannot be shipped on a hanger." + }, + { + "value": "Debundle", + "description": "Indicates requiring taking apart a set of items labeled for individual sale. Remove tape or shrink wrap that groups multiple inventory units together." + }, + { + "value": "SuffocationStickering", + "description": "Poly bags with an opening of 12 cm or larger (measured when flat) must have a suffocation warning. This warning must be printed on the bag or attached as a label." + }, + { + "value": "CapSealing", + "description": "To prevent leakage, product needs to have a secondary seal in one of the following types: Induction seal, safety ring, clips, heat shrink plastic band, or boxing." + }, + { + "value": "SetStickering", + "description": "Products that are sets (for example, a set of six unique toy cars that is sold as one unit) must be marked as sets on their packaging. Add a label to the unit that clearly states that the products are to be received and sold as a single unit." + }, + { + "value": "BlankStickering", + "description": "Indicates applying a blank sticker to obscure a bad barcode that cannot be covered by another sticker." + }, + { + "value": "NoPrep", + "description": "Indicates that the item does not require any prep." + } + ] + }, + "PrepInstructionList": { + "type": "array", + "description": "A list of preparation instructions to help with item sourcing decisions.", + "items": { + "$ref": "#\/components\/schemas\/PrepInstruction" + } + }, + "PrepOwner": { + "type": "string", + "description": "Indicates who will prepare the item.", + "enum": [ + "AMAZON", + "SELLER" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AMAZON", + "description": "Indicates Amazon will prepare the item." + }, + { + "value": "SELLER", + "description": "Indicates the seller will prepare the item." + } + ] + }, + "ProNumber": { + "type": "string", + "description": "The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier." + }, + "PutTransportDetailsRequest": { + "required": [ + "IsPartnered", + "ShipmentType", + "TransportDetails" + ], + "type": "object", + "properties": { + "IsPartnered": { + "type": "boolean", + "description": "Indicates whether a putTransportDetails request is for an Amazon-partnered carrier." + }, + "ShipmentType": { + "$ref": "#\/components\/schemas\/ShipmentType" + }, + "TransportDetails": { + "$ref": "#\/components\/schemas\/TransportDetailInput" + } + }, + "description": "The request schema for a putTransportDetails operation." + }, + "PutTransportDetailsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CommonTransportResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Workflow status for a shipment with an Amazon-partnered carrier." + }, + "Quantity": { + "type": "integer", + "description": "The item quantity.", + "format": "int32" + }, + "SKUInboundGuidance": { + "required": [ + "ASIN", + "InboundGuidance", + "SellerSKU" + ], + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "InboundGuidance": { + "$ref": "#\/components\/schemas\/InboundGuidance" + }, + "GuidanceReasonList": { + "$ref": "#\/components\/schemas\/GuidanceReasonList" + } + }, + "description": "Reasons why a given seller SKU is not recommended for shipment to Amazon's fulfillment network." + }, + "SKUInboundGuidanceList": { + "type": "array", + "description": "A list of SKU inbound guidance information.", + "items": { + "$ref": "#\/components\/schemas\/SKUInboundGuidance" + } + }, + "SKUPrepInstructions": { + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "BarcodeInstruction": { + "$ref": "#\/components\/schemas\/BarcodeInstruction" + }, + "PrepGuidance": { + "$ref": "#\/components\/schemas\/PrepGuidance" + }, + "PrepInstructionList": { + "$ref": "#\/components\/schemas\/PrepInstructionList" + }, + "AmazonPrepFeesDetailsList": { + "$ref": "#\/components\/schemas\/AmazonPrepFeesDetailsList" + } + }, + "description": "Labeling requirements and item preparation instructions to help you prepare items for shipment to Amazon's fulfillment network." + }, + "SKUPrepInstructionsList": { + "type": "array", + "description": "A list of SKU labeling requirements and item preparation instructions.", + "items": { + "$ref": "#\/components\/schemas\/SKUPrepInstructions" + } + }, + "SellerFreightClass": { + "type": "string", + "description": "The freight class of the shipment. For information about determining the freight class, contact the carrier.", + "enum": [ + "50", + "55", + "60", + "65", + "70", + "77.5", + "85", + "92.5", + "100", + "110", + "125", + "150", + "175", + "200", + "250", + "300", + "400", + "500" + ], + "x-docgen-enum-table-extension": [ + { + "value": "50", + "description": "50" + }, + { + "value": "55", + "description": "55" + }, + { + "value": "60", + "description": "60" + }, + { + "value": "65", + "description": "65" + }, + { + "value": "70", + "description": "70" + }, + { + "value": "77.5", + "description": "77.5" + }, + { + "value": "85", + "description": "85" + }, + { + "value": "92.5", + "description": "92.5" + }, + { + "value": "100", + "description": "100" + }, + { + "value": "110", + "description": "110" + }, + { + "value": "125", + "description": "125" + }, + { + "value": "150", + "description": "150" + }, + { + "value": "175", + "description": "175" + }, + { + "value": "200", + "description": "200" + }, + { + "value": "250", + "description": "250" + }, + { + "value": "300", + "description": "300" + }, + { + "value": "400", + "description": "400" + }, + { + "value": "500", + "description": "500" + } + ] + }, + "ShipmentStatus": { + "type": "string", + "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.", + "enum": [ + "WORKING", + "SHIPPED", + "RECEIVING", + "CANCELLED", + "DELETED", + "CLOSED", + "ERROR", + "IN_TRANSIT", + "DELIVERED", + "CHECKED_IN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "WORKING", + "description": "The shipment was created by the seller, but has not yet shipped." + }, + { + "value": "SHIPPED", + "description": "The shipment was picked up by the carrier." + }, + { + "value": "RECEIVING", + "description": "The shipment has arrived at the fulfillment center, but not all items have been marked as received." + }, + { + "value": "CANCELLED", + "description": "The shipment was cancelled by the seller after the shipment was sent to the fulfillment center." + }, + { + "value": "DELETED", + "description": "The shipment was cancelled by the seller before the shipment was sent to the fulfillment center." + }, + { + "value": "CLOSED", + "description": "The shipment has arrived at the fulfillment center and all items have been marked as received." + }, + { + "value": "ERROR", + "description": "There was an error with the shipment and it was not processed by Amazon." + }, + { + "value": "IN_TRANSIT", + "description": "The carrier has notified the fulfillment center that it is aware of the shipment." + }, + { + "value": "DELIVERED", + "description": "The shipment was delivered by the carrier to the fulfillment center." + }, + { + "value": "CHECKED_IN", + "description": "The shipment was checked-in at the receiving dock of the fulfillment center." + } + ] + }, + "ShipmentType": { + "type": "string", + "description": "Specifies the carrier shipment type in a putTransportDetails request.", + "enum": [ + "SP", + "LTL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SP", + "description": "Small Parcel." + }, + { + "value": "LTL", + "description": "Less Than Truckload\/Full Truckload (LTL\/FTL)." + } + ] + }, + "TimeStampStringType": { + "type": "string", + "format": "date-time" + }, + "TrackingId": { + "type": "string", + "description": "The tracking number of the package, provided by the carrier." + }, + "TransportContent": { + "required": [ + "TransportDetails", + "TransportHeader", + "TransportResult" + ], + "type": "object", + "properties": { + "TransportHeader": { + "$ref": "#\/components\/schemas\/TransportHeader" + }, + "TransportDetails": { + "$ref": "#\/components\/schemas\/TransportDetailOutput" + }, + "TransportResult": { + "$ref": "#\/components\/schemas\/TransportResult" + } + }, + "description": "Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier." + }, + "TransportDetailInput": { + "type": "object", + "properties": { + "PartneredSmallParcelData": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelDataInput" + }, + "NonPartneredSmallParcelData": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelDataInput" + }, + "PartneredLtlData": { + "$ref": "#\/components\/schemas\/PartneredLtlDataInput" + }, + "NonPartneredLtlData": { + "$ref": "#\/components\/schemas\/NonPartneredLtlDataInput" + } + }, + "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." + }, + "TransportDetailOutput": { + "type": "object", + "properties": { + "PartneredSmallParcelData": { + "$ref": "#\/components\/schemas\/PartneredSmallParcelDataOutput" + }, + "NonPartneredSmallParcelData": { + "$ref": "#\/components\/schemas\/NonPartneredSmallParcelDataOutput" + }, + "PartneredLtlData": { + "$ref": "#\/components\/schemas\/PartneredLtlDataOutput" + }, + "NonPartneredLtlData": { + "$ref": "#\/components\/schemas\/NonPartneredLtlDataOutput" + } + }, + "description": "Inbound shipment information, including carrier details and shipment status." + }, + "TransportHeader": { + "required": [ + "IsPartnered", + "SellerId", + "ShipmentId", + "ShipmentType" + ], + "type": "object", + "properties": { + "SellerId": { + "type": "string", + "description": "The Amazon seller identifier." + }, + "ShipmentId": { + "type": "string", + "description": "A shipment identifier originally returned by the createInboundShipmentPlan operation." + }, + "IsPartnered": { + "type": "boolean", + "description": "Indicates whether a putTransportDetails request is for a partnered carrier.\n\nPossible values:\n\n* true \u2013 Request is for an Amazon-partnered carrier.\n\n* false \u2013 Request is for a non-Amazon-partnered carrier." + }, + "ShipmentType": { + "$ref": "#\/components\/schemas\/ShipmentType" + } + }, + "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)." + }, + "TransportResult": { + "required": [ + "TransportStatus" + ], + "type": "object", + "properties": { + "TransportStatus": { + "$ref": "#\/components\/schemas\/TransportStatus" + }, + "ErrorCode": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "ErrorDescription": { + "type": "string", + "description": "A message that describes the error condition." + } + }, + "description": "The workflow status for a shipment with an Amazon-partnered carrier." + }, + "TransportStatus": { + "type": "string", + "description": "Indicates the status of the Amazon-partnered carrier shipment.", + "enum": [ + "WORKING", + "ESTIMATING", + "ESTIMATED", + "ERROR_ON_ESTIMATING", + "CONFIRMING", + "CONFIRMED", + "ERROR_ON_CONFIRMING", + "VOIDING", + "VOIDED", + "ERROR_IN_VOIDING", + "ERROR" + ], + "x-docgen-enum-table-extension": [ + { + "value": "WORKING", + "description": "You have successfully called the putTransportDetails operation for this shipment but have not yet called the estimateTransport operation" + }, + { + "value": "ESTIMATING", + "description": "You have successfully called the estimateTransport operation for this shipment and the carrier is in the process of estimating the shipment cost." + }, + { + "value": "ESTIMATED", + "description": "The carrier has completed the process of estimating the shipment cost. Your transportation request is ready to be confirmed by you." + }, + { + "value": "ERROR_ON_ESTIMATING", + "description": "There was a problem with your call to the estimateTransport operation and an error was returned." + }, + { + "value": "CONFIRMING", + "description": "You have successfully called the confirmTransport operation but the confirmation process is not yet complete." + }, + { + "value": "CONFIRMED", + "description": "Your transportation request has been confirmed. Important: For a Small Parcel shipment, you can void your transportation request up to 24 hours after you confirm it. For a Less Than Truckload\/Full Truckload (LTL\/FTL) shipment, you can void your transportation request up to one hour after you confirm it. After the grace period has expired the seller's account will be charged for the shipping cost" + }, + { + "value": "ERROR_ON_CONFIRMING", + "description": "There was a problem with your call to the confirmTransport operation and an error was returned." + }, + { + "value": "VOIDING", + "description": "You have successfully called the voidTransport operation for a confirmed carrier shipment but the voiding process is not yet complete." + }, + { + "value": "VOIDED", + "description": "Your confirmed carrier shipment has been voided. The seller's account will not be charged for the shipping cost." + }, + { + "value": "ERROR_IN_VOIDING", + "description": "There was a problem with your call to the voidTransport operation and an error was returned." + }, + { + "value": "ERROR", + "description": "There was a problem with your call and an error was returned." + } + ] + }, + "UnitOfMeasurement": { + "type": "string", + "description": "Indicates the unit of measurement.", + "enum": [ + "inches", + "centimeters" + ], + "x-docgen-enum-table-extension": [ + { + "value": "inches", + "description": "The unit of measurement is inches." + }, + { + "value": "centimeters", + "description": "The unit of measurement is centimeters." + } + ] + }, + "UnitOfWeight": { + "type": "string", + "description": "Indicates the unit of weight.", + "enum": [ + "pounds", + "kilograms" + ], + "x-docgen-enum-table-extension": [ + { + "value": "pounds", + "description": "The unit of weight is pounds." + }, + { + "value": "kilograms", + "description": "The unit of weight is kilograms." + } + ] + }, + "UnsignedIntType": { + "type": "integer", + "format": "int64" + }, + "VoidTransportResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CommonTransportResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the voidTransport operation." + }, + "Weight": { + "required": [ + "Unit", + "Value" + ], + "type": "object", + "properties": { + "Value": { + "$ref": "#\/components\/schemas\/BigDecimalType" + }, + "Unit": { + "$ref": "#\/components\/schemas\/UnitOfWeight" + } + }, + "description": "The weight of the package." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/fba-inventory/v1.json b/resources/models/seller/fba-inventory/v1.json new file mode 100644 index 000000000..80a37046b --- /dev/null +++ b/resources/models/seller/fba-inventory/v1.json @@ -0,0 +1,749 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for FBA Inventory", + "description": "The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/fba\/inventory\/v1\/summaries": { + "get": { + "tags": [ + "FBAInventoryV1" + ], + "description": "Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the `startDateTime`, `sellerSkus` and `sellerSku` parameters:\n\n- All inventory summaries with available details are returned when the `startDateTime`, `sellerSkus` and `sellerSku` parameters are omitted.\n- When `startDateTime` is provided, the operation returns inventory summaries that have had changes after the date and time specified. The `sellerSkus` and `sellerSku` parameters are ignored. **Important:** To avoid errors, use both `startDateTime` and `nextToken` to get the next page of inventory summaries that have changed after the date and time specified.\n- When the `sellerSkus` parameter is provided, the operation returns inventory summaries for only the specified `sellerSkus`. The `sellerSku` parameter is ignored.\n- When the `sellerSku` parameter is provided, the operation returns inventory summaries for only the specified `sellerSku`.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getInventorySummaries", + "parameters": [ + { + "name": "details", + "in": "query", + "description": "true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value).", + "schema": { + "type": "boolean", + "default": false + } + }, + { + "name": "granularityType", + "in": "query", + "description": "The granularity type for the inventory aggregation level.", + "required": true, + "schema": { + "type": "string", + "enum": [ + "Marketplace" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Marketplace", + "description": "Marketplace" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Marketplace", + "description": "Marketplace" + } + ] + }, + { + "name": "granularityId", + "in": "query", + "description": "The granularity ID for the inventory aggregation level.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "startDateTime", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sellerSkus", + "in": "query", + "description": "A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "sellerSku", + "in": "query", + "description": "A single seller SKU used for querying the specified seller SKU inventory summaries.", + "schema": { + "type": "string" + } + }, + { + "name": "nextToken", + "in": "query", + "description": "String token returned in the response of your previous request. The string token will expire 30 seconds after being created.", + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "The marketplace ID for the marketplace for which to return inventory summaries.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "details": { + "value": true + }, + "granularityType": { + "value": "Marketplace" + }, + "granularityId": { + "value": "ATVPDKIKX0DER" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "pagination": { + "nextToken": "seed" + }, + "payload": { + "granularity": { + "granularityType": "Marketplace", + "granularityId": "ATVPDKIKX0DER" + }, + "inventorySummaries": [ + { + "asin": "B0020MLK00", + "fnSku": "B0020MLK00", + "sellerSku": "EMTEC 1 GB", + "condition": "NewItem", + "inventoryDetails": { + "fulfillableQuantity": 0, + "inboundWorkingQuantity": 0, + "inboundShippedQuantity": 0, + "inboundReceivingQuantity": 0, + "reservedQuantity": { + "totalReservedQuantity": 0, + "pendingCustomerOrderQuantity": 0, + "pendingTransshipmentQuantity": 0, + "fcProcessingQuantity": 0 + }, + "researchingQuantity": { + "totalResearchingQuantity": 0, + "researchingQuantityBreakdown": [] + }, + "unfulfillableQuantity": { + "totalUnfulfillableQuantity": 0, + "customerDamagedQuantity": 0, + "warehouseDamagedQuantity": 0, + "distributorDamagedQuantity": 0, + "carrierDamagedQuantity": 0, + "defectiveQuantity": 0, + "expiredQuantity": 0 + } + }, + "lastUpdatedTime": "", + "productName": "EMTEC 1 GB 60x SD Flash Memory Card with USB 2.0 Card Reader", + "totalQuantity": 0 + }, + { + "asin": "B0020MLK00", + "fnSku": "B0020MLK00", + "sellerSku": "EMTEC-SdCard-reader", + "condition": "NewItem", + "inventoryDetails": { + "fulfillableQuantity": 0, + "inboundWorkingQuantity": 0, + "inboundShippedQuantity": 0, + "inboundReceivingQuantity": 0, + "reservedQuantity": { + "totalReservedQuantity": 0, + "pendingCustomerOrderQuantity": 0, + "pendingTransshipmentQuantity": 0, + "fcProcessingQuantity": 0 + }, + "researchingQuantity": { + "totalResearchingQuantity": 0, + "researchingQuantityBreakdown": [] + }, + "unfulfillableQuantity": { + "totalUnfulfillableQuantity": 0, + "customerDamagedQuantity": 0, + "warehouseDamagedQuantity": 0, + "distributorDamagedQuantity": 0, + "carrierDamagedQuantity": 0, + "defectiveQuantity": 0, + "expiredQuantity": 0 + } + }, + "lastUpdatedTime": "", + "productName": "EMTEC 1 GB 60x SD Flash Memory Card with USB 2.0 Card Reader", + "totalQuantity": 0 + }, + { + "asin": "B00T9QONN6", + "fnSku": "B00T9QONN6", + "sellerSku": "Silicon Power 32GB", + "condition": "NewItem", + "inventoryDetails": { + "fulfillableQuantity": 66, + "inboundWorkingQuantity": 21, + "inboundShippedQuantity": 0, + "inboundReceivingQuantity": 0, + "reservedQuantity": { + "totalReservedQuantity": 0, + "pendingCustomerOrderQuantity": 0, + "pendingTransshipmentQuantity": 0, + "fcProcessingQuantity": 0 + }, + "researchingQuantity": { + "totalResearchingQuantity": 0, + "researchingQuantityBreakdown": [ + { + "name": "researchingQuantityInShortTerm", + "quantity": 0 + }, + { + "name": "researchingQuantityInMidTerm", + "quantity": 0 + }, + { + "name": "researchingQuantityInLongTerm", + "quantity": 0 + } + ] + }, + "unfulfillableQuantity": { + "totalUnfulfillableQuantity": 0, + "customerDamagedQuantity": 0, + "warehouseDamagedQuantity": 0, + "distributorDamagedQuantity": 0, + "carrierDamagedQuantity": 0, + "defectiveQuantity": 0, + "expiredQuantity": 0 + } + }, + "lastUpdatedTime": "2018-03-31T23:40:39Z", + "productName": "Silicon Power 32GB up to 85MB\/s MicroSDHC UHS-1 Class10, Elite Flash Memory Card with Adaptor (SP032GBSTHBU1V20SP)", + "totalQuantity": 87 + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "marketplaceIds": { + "value": [ + "1" + ] + } + } + }, + "response": { + "errors": [ + { + "message": "We encountered an internal error. Please try again.", + "code": "InternalFailure" + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Granularity": { + "type": "object", + "properties": { + "granularityType": { + "type": "string", + "description": "The granularity type for the inventory aggregation level.", + "x-docgen-enum-table-extension": [ + { + "value": "Marketplace", + "description": "Marketplace" + } + ] + }, + "granularityId": { + "type": "string", + "description": "The granularity ID for the specified granularity type. When granularityType is Marketplace, specify the marketplaceId." + } + }, + "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." + }, + "ReservedQuantity": { + "type": "object", + "properties": { + "totalReservedQuantity": { + "type": "integer", + "description": "The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes." + }, + "pendingCustomerOrderQuantity": { + "type": "integer", + "description": "The number of units reserved for customer orders." + }, + "pendingTransshipmentQuantity": { + "type": "integer", + "description": "The number of units being transferred from one fulfillment center to another." + }, + "fcProcessingQuantity": { + "type": "integer", + "description": "The number of units that have been sidelined at the fulfillment center for additional processing." + } + }, + "description": "The quantity of reserved inventory." + }, + "ResearchingQuantityEntry": { + "required": [ + "name", + "quantity" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The duration of the research.", + "enum": [ + "researchingQuantityInShortTerm", + "researchingQuantityInMidTerm", + "researchingQuantityInLongTerm" + ], + "x-docgen-enum-table-extension": [ + { + "value": "researchingQuantityInShortTerm", + "description": "Short Term for 1-10 days." + }, + { + "value": "researchingQuantityInMidTerm", + "description": "Mid Term for 11-20 days." + }, + { + "value": "researchingQuantityInLongTerm", + "description": "Long Term for 21 days or longer." + } + ] + }, + "quantity": { + "type": "integer", + "description": "The number of units." + } + }, + "description": "The misplaced or warehouse damaged inventory that is actively being confirmed at our fulfillment centers." + }, + "ResearchingQuantity": { + "type": "object", + "properties": { + "totalResearchingQuantity": { + "type": "integer", + "description": "The total number of units currently being researched in Amazon's fulfillment network." + }, + "researchingQuantityBreakdown": { + "type": "array", + "description": "A list of quantity details for items currently being researched.", + "items": { + "$ref": "#\/components\/schemas\/ResearchingQuantityEntry" + } + } + }, + "description": "The number of misplaced or warehouse damaged units that are actively being confirmed at our fulfillment centers." + }, + "UnfulfillableQuantity": { + "type": "object", + "properties": { + "totalUnfulfillableQuantity": { + "type": "integer", + "description": "The total number of units in Amazon's fulfillment network in unsellable condition." + }, + "customerDamagedQuantity": { + "type": "integer", + "description": "The number of units in customer damaged disposition." + }, + "warehouseDamagedQuantity": { + "type": "integer", + "description": "The number of units in warehouse damaged disposition." + }, + "distributorDamagedQuantity": { + "type": "integer", + "description": "The number of units in distributor damaged disposition." + }, + "carrierDamagedQuantity": { + "type": "integer", + "description": "The number of units in carrier damaged disposition." + }, + "defectiveQuantity": { + "type": "integer", + "description": "The number of units in defective disposition." + }, + "expiredQuantity": { + "type": "integer", + "description": "The number of units in expired disposition." + } + }, + "description": "The quantity of unfulfillable inventory." + }, + "InventoryDetails": { + "type": "object", + "properties": { + "fulfillableQuantity": { + "type": "integer", + "description": "The item quantity that can be picked, packed, and shipped." + }, + "inboundWorkingQuantity": { + "type": "integer", + "description": "The number of units in an inbound shipment for which you have notified Amazon." + }, + "inboundShippedQuantity": { + "type": "integer", + "description": "The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number." + }, + "inboundReceivingQuantity": { + "type": "integer", + "description": "The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed." + }, + "reservedQuantity": { + "$ref": "#\/components\/schemas\/ReservedQuantity" + }, + "researchingQuantity": { + "$ref": "#\/components\/schemas\/ResearchingQuantity" + }, + "unfulfillableQuantity": { + "$ref": "#\/components\/schemas\/UnfulfillableQuantity" + } + }, + "description": "Summarized inventory details. This object will not appear if the details parameter in the request is false." + }, + "InventorySummary": { + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of an item." + }, + "fnSku": { + "type": "string", + "description": "Amazon's fulfillment network SKU identifier." + }, + "sellerSku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "condition": { + "type": "string", + "description": "The condition of the item as described by the seller (for example, New Item)." + }, + "inventoryDetails": { + "$ref": "#\/components\/schemas\/InventoryDetails" + }, + "lastUpdatedTime": { + "type": "string", + "description": "The date and time that any quantity was last updated.", + "format": "date-time" + }, + "productName": { + "type": "string", + "description": "The localized language product title of the item within the specific marketplace." + }, + "totalQuantity": { + "type": "integer", + "description": "The total number of units in an inbound shipment or in Amazon fulfillment centers." + } + }, + "description": "Inventory summary for a specific item." + }, + "InventorySummaries": { + "type": "array", + "description": "A list of inventory summaries.", + "items": { + "$ref": "#\/components\/schemas\/InventorySummary" + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to retrieve the next page of the result. If nextToken is returned, pass the value of nextToken to the next request. If nextToken is not returned, there are no more items to return." + } + }, + "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." + }, + "GetInventorySummariesResult": { + "required": [ + "granularity", + "inventorySummaries" + ], + "type": "object", + "properties": { + "granularity": { + "$ref": "#\/components\/schemas\/Granularity" + }, + "inventorySummaries": { + "$ref": "#\/components\/schemas\/InventorySummaries" + } + }, + "description": "The payload schema for the getInventorySummaries operation." + }, + "GetInventorySummariesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetInventorySummariesResult" + }, + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The Response schema." + }, + "Error": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "An error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/fba-outbound/v2020-07-01.json b/resources/models/seller/fba-outbound/v2020-07-01.json new file mode 100644 index 000000000..02fc3a34b --- /dev/null +++ b/resources/models/seller/fba-outbound/v2020-07-01.json @@ -0,0 +1,5277 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner APIs for Fulfillment Outbound", + "description": "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.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-07-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders\/preview": { + "post": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns a list of fulfillment order previews based on shipping criteria that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFulfillmentPreview", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the next token parameter.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api)", + "operationId": "listAllFulfillmentOrders", + "parameters": [ + { + "name": "queryStartDate", + "in": "query", + "description": "A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "nextToken", + "in": "query", + "description": "A string token returned in the response to your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination address.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api)", + "operationId": "createFulfillmentOrder", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/tracking": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPackageTrackingDetails", + "parameters": [ + { + "name": "packageNumber", + "in": "query", + "description": "The unencrypted package identifier returned by the getFulfillmentOrder operation.", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackageTrackingDetailsResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/returnReasonCodes": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listReturnReasonCodes", + "parameters": [ + { + "name": "sellerSku", + "in": "query", + "description": "The seller SKU for which return reason codes are required.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceId", + "in": "query", + "description": "The marketplace for which the seller wants return reason codes.", + "schema": { + "type": "string" + } + }, + { + "name": "sellerFulfillmentOrderId", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "language", + "in": "query", + "description": "The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders\/{sellerFulfillmentOrderId}\/return": { + "put": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Creates a fulfillment return.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createFulfillmentReturn", + "parameters": [ + { + "name": "sellerFulfillmentOrderId", + "in": "path", + "description": "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": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders\/{sellerFulfillmentOrderId}": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns the fulfillment order indicated by the specified order identifier.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFulfillmentOrder", + "parameters": [ + { + "name": "sellerFulfillmentOrderId", + "in": "path", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created.", + "required": true, + "schema": { + "maxLength": 40, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResponse" + } + } + } + } + } + }, + "put": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Updates and\/or requests shipment for a fulfillment order with an order hold on it.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateFulfillmentOrder", + "parameters": [ + { + "name": "sellerFulfillmentOrderId", + "in": "path", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created.", + "required": true, + "schema": { + "maxLength": 40, + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders\/{sellerFulfillmentOrderId}\/cancel": { + "put": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelFulfillmentOrder", + "parameters": [ + { + "name": "sellerFulfillmentOrderId", + "in": "path", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created.", + "required": true, + "schema": { + "maxLength": 40, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelFulfillmentOrderResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/fulfillmentOrders\/{sellerFulfillmentOrderId}\/status": { + "put": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/the-selling-partner-api-sandbox) for more information.", + "operationId": "submitFulfillmentOrderStatusUpdate", + "parameters": [ + { + "name": "sellerFulfillmentOrderId", + "in": "path", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created.", + "required": true, + "schema": { + "maxLength": 40, + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitFulfillmentOrderStatusUpdateResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "x-amzn-api-sandbox-only": true, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/features": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeatures", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The marketplace for which to return the list of features.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturesResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/features\/inventory\/{featureName}": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns a list of inventory items that are eligible for the fulfillment feature you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api)..", + "operationId": "getFeatureInventory", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The marketplace for which to return a list of the inventory that is eligible for the specified feature.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "featureName", + "in": "path", + "description": "The name of the feature for which to return a list of eligible inventory.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "nextToken", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "\/fba\/outbound\/2020-07-01\/features\/inventory\/{featureName}\/{sellerSku}": { + "get": { + "tags": [ + "FBAOutboundV20200701" + ], + "description": "Returns the number of items with the sellerSKU you specify that can have orders fulfilled using the specified feature. Note that if the sellerSKU isn't eligible, the response will contain an empty skuInfo object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeatureSKU", + "parameters": [ + { + "name": "marketplaceId", + "in": "query", + "description": "The marketplace for which to return the count.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "featureName", + "in": "path", + "description": "The name of the feature.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sellerSku", + "in": "path", + "description": "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": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResponse" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name", + "postalCode", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at the address." + }, + "addressLine1": { + "type": "string", + "description": "The first line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan." + }, + "districtOrCounty": { + "type": "string", + "description": "The district or county where the person, business, or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where the person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the address." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business, or institution located at the address." + } + }, + "description": "A physical address." + }, + "CODSettings": { + "required": [ + "isCodRequired" + ], + "type": "object", + "properties": { + "isCodRequired": { + "type": "boolean", + "description": "When true, this fulfillment order requires a COD (Cash On Delivery) payment." + }, + "codCharge": { + "$ref": "#\/components\/schemas\/Money" + }, + "codChargeTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "shippingCharge": { + "$ref": "#\/components\/schemas\/Money" + }, + "shippingChargeTax": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "The COD (Cash On Delivery) charges that you associate with a COD fulfillment order." + }, + "CreateFulfillmentOrderItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku" + ], + "type": "object", + "properties": { + "sellerSku": { + "maxLength": 50, + "type": "string", + "description": "The seller SKU of the item." + }, + "sellerFulfillmentOrderItemId": { + "maxLength": 50, + "type": "string", + "description": "A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same SellerSKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same SellerSKU but have different GiftMessage values." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "giftMessage": { + "maxLength": 512, + "type": "string", + "description": "A message to the gift recipient, if applicable." + }, + "displayableComment": { + "maxLength": 250, + "type": "string", + "description": "Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip." + }, + "fulfillmentNetworkSku": { + "type": "string", + "description": "Amazon's fulfillment network SKU of the item." + }, + "perUnitDeclaredValue": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitTax": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Item information for creating a fulfillment order." + }, + "CreateFulfillmentOrderItemList": { + "type": "array", + "description": "An array of item information for creating a fulfillment order.", + "items": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderItem" + } + }, + "FulfillmentPolicy": { + "type": "string", + "description": "The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation.", + "enum": [ + "FillOrKill", + "FillAll", + "FillAllAvailable" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FillOrKill", + "description": "If an item in a fulfillment order is determined to be unfulfillable before any shipment in the order has acquired the status of Pending (the process of picking units from inventory has begun), then the entire order is considered unfulfillable. However, if an item in a fulfillment order is determined to be unfulfillable after a shipment in the order has acquired the status of Pending, Amazon cancels as much of the fulfillment order as possible. See the FulfillmentShipment object for shipment status definitions." + }, + { + "value": "FillAll", + "description": "All fulfillable items in the fulfillment order are shipped. The fulfillment order remains in a processing state until all items are either shipped by Amazon or cancelled by the seller." + }, + { + "value": "FillAllAvailable", + "description": "All fulfillable items in the fulfillment order are shipped. All unfulfillable items in the order are cancelled." + } + ] + }, + "FulfillmentOrderStatus": { + "type": "string", + "description": "The current status of the fulfillment order.", + "enum": [ + "New", + "Received", + "Planning", + "Processing", + "Cancelled", + "Complete", + "CompletePartialled", + "Unfulfillable", + "Invalid" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "The fulfillment order was received but not yet validated." + }, + { + "value": "Received", + "description": "The fulfillment order was received and validated. Validation includes determining that the destination address is valid and that Amazon's records indicate that the seller has enough sellable (undamaged) inventory to fulfill the order. The seller can cancel a fulfillment order that has a status of Received." + }, + { + "value": "Planning", + "description": "The fulfillment order has been sent to Amazon's fulfillment network to begin shipment planning, but no unit in any shipment has been picked from inventory yet. The seller can cancel a fulfillment order that has a status of Planning." + }, + { + "value": "Processing", + "description": "The process of picking units from inventory has begun on at least one shipment in the fulfillment order. The seller cannot cancel a fulfillment order that has a status of Processing." + }, + { + "value": "Cancelled", + "description": "The fulfillment order has been cancelled by the seller." + }, + { + "value": "Complete", + "description": "All item quantities in the fulfillment order have been fulfilled." + }, + { + "value": "CompletePartialled", + "description": "Some item quantities in the fulfillment order were fulfilled; the rest were either cancelled or unfulfillable." + }, + { + "value": "Unfulfillable", + "description": "No item quantities in the fulfillment order could be fulfilled because the Amazon fulfillment center workers found no inventory for those items or found no inventory that was in sellable (undamaged) condition." + }, + { + "value": "Invalid", + "description": "The fulfillment order was received but could not be validated. The reasons for this include an invalid destination address or Amazon's records indicating that the seller does not have enough sellable inventory to fulfill the order. When this happens, the fulfillment order is invalid and no items in the order will ship." + } + ] + }, + "CreateFulfillmentOrderRequest": { + "required": [ + "destinationAddress", + "displayableOrderComment", + "displayableOrderDate", + "displayableOrderId", + "items", + "sellerFulfillmentOrderId", + "shippingSpeedCategory" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "The marketplace the fulfillment order is placed against." + }, + "sellerFulfillmentOrderId": { + "maxLength": 40, + "type": "string", + "description": "A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use." + }, + "displayableOrderId": { + "maxLength": 40, + "type": "string", + "description": "A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier.\n\nThe value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed." + }, + "displayableOrderDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "displayableOrderComment": { + "maxLength": 1000, + "type": "string", + "description": "Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip." + }, + "shippingSpeedCategory": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategory" + }, + "deliveryWindow": { + "$ref": "#\/components\/schemas\/DeliveryWindow" + }, + "destinationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "fulfillmentAction": { + "$ref": "#\/components\/schemas\/FulfillmentAction" + }, + "fulfillmentPolicy": { + "$ref": "#\/components\/schemas\/FulfillmentPolicy" + }, + "codSettings": { + "$ref": "#\/components\/schemas\/CODSettings" + }, + "shipFromCountryCode": { + "type": "string", + "description": "The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format." + }, + "notificationEmails": { + "$ref": "#\/components\/schemas\/NotificationEmailList" + }, + "featureConstraints": { + "type": "array", + "description": "A list of features and their fulfillment policies to apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSettings" + } + }, + "items": { + "$ref": "#\/components\/schemas\/CreateFulfillmentOrderItemList" + } + }, + "description": "The request body schema for the createFulfillmentOrder operation." + }, + "CreateFulfillmentReturnRequest": { + "required": [ + "items" + ], + "type": "object", + "properties": { + "items": { + "$ref": "#\/components\/schemas\/CreateReturnItemList" + } + }, + "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." + }, + "CreateFulfillmentReturnResult": { + "type": "object", + "properties": { + "returnItems": { + "$ref": "#\/components\/schemas\/ReturnItemList" + }, + "invalidReturnItems": { + "$ref": "#\/components\/schemas\/InvalidReturnItemList" + }, + "returnAuthorizations": { + "$ref": "#\/components\/schemas\/ReturnAuthorizationList" + } + } + }, + "CreateFulfillmentReturnResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CreateFulfillmentReturnResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createFulfillmentReturn operation." + }, + "CreateReturnItem": { + "required": [ + "amazonShipmentId", + "returnReasonCode", + "sellerFulfillmentOrderItemId", + "sellerReturnItemId" + ], + "type": "object", + "properties": { + "sellerReturnItemId": { + "maxLength": 80, + "type": "string", + "description": "An identifier assigned by the seller to the return item." + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created." + }, + "amazonShipmentId": { + "type": "string", + "description": "The identifier for the shipment that is associated with the return item." + }, + "returnReasonCode": { + "type": "string", + "description": "The return reason code assigned to the return item by the seller." + }, + "returnComment": { + "maxLength": 1000, + "type": "string", + "description": "An optional comment about the return item." + } + }, + "description": "An item that Amazon accepted for return." + }, + "CreateReturnItemList": { + "type": "array", + "description": "An array of items to be returned.", + "items": { + "$ref": "#\/components\/schemas\/CreateReturnItem" + } + }, + "Money": { + "required": [ + "currencyCode", + "value" + ], + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three digit currency code in ISO 4217 format." + }, + "value": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation." + }, + "DeliveryWindow": { + "required": [ + "endDate", + "startDate" + ], + "type": "object", + "properties": { + "startDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "endDate": { + "$ref": "#\/components\/schemas\/Timestamp" + } + }, + "description": "The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace." + }, + "DeliveryWindowList": { + "type": "array", + "description": "An array of delivery windows.", + "items": { + "$ref": "#\/components\/schemas\/DeliveryWindow" + } + }, + "Fee": { + "required": [ + "amount", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The type of fee.", + "enum": [ + "FBAPerUnitFulfillmentFee", + "FBAPerOrderFulfillmentFee", + "FBATransportationFee", + "FBAFulfillmentCODFee" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FBAPerUnitFulfillmentFee", + "description": "Estimated fee for each unit in the fulfillment order." + }, + { + "value": "FBAPerOrderFulfillmentFee", + "description": "Estimated order-level fee." + }, + { + "value": "FBATransportationFee", + "description": "Estimated shipping fee." + }, + { + "value": "FBAFulfillmentCODFee", + "description": "Estimated COD (Cash On Delivery) fee. This fee applies only to fulfillment order previews for COD." + } + ] + }, + "amount": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Fee type and cost." + }, + "FeeList": { + "type": "array", + "description": "An array of fee type and cost pairs.", + "items": { + "$ref": "#\/components\/schemas\/Fee" + } + }, + "FulfillmentAction": { + "type": "string", + "description": "Specifies whether the fulfillment order should ship now or have an order hold put on it.", + "enum": [ + "Ship", + "Hold" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Ship", + "description": "The fulfillment order ships now." + }, + { + "value": "Hold", + "description": "An order hold is put on the fulfillment order." + } + ] + }, + "FulfillmentOrder": { + "required": [ + "destinationAddress", + "displayableOrderComment", + "displayableOrderDate", + "displayableOrderId", + "fulfillmentOrderStatus", + "marketplaceId", + "receivedDate", + "sellerFulfillmentOrderId", + "shippingSpeedCategory", + "statusUpdatedDate" + ], + "type": "object", + "properties": { + "sellerFulfillmentOrderId": { + "type": "string", + "description": "The fulfillment order identifier submitted with the createFulfillmentOrder operation." + }, + "marketplaceId": { + "type": "string", + "description": "The identifier for the marketplace the fulfillment order is placed against." + }, + "displayableOrderId": { + "type": "string", + "description": "A fulfillment order identifier submitted with the createFulfillmentOrder operation. Displays as the order identifier in recipient-facing materials such as the packing slip." + }, + "displayableOrderDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "displayableOrderComment": { + "type": "string", + "description": "A text block submitted with the createFulfillmentOrder operation. Displays in recipient-facing materials such as the packing slip." + }, + "shippingSpeedCategory": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategory" + }, + "deliveryWindow": { + "$ref": "#\/components\/schemas\/DeliveryWindow" + }, + "destinationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "fulfillmentAction": { + "$ref": "#\/components\/schemas\/FulfillmentAction" + }, + "fulfillmentPolicy": { + "$ref": "#\/components\/schemas\/FulfillmentPolicy" + }, + "codSettings": { + "$ref": "#\/components\/schemas\/CODSettings" + }, + "receivedDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "fulfillmentOrderStatus": { + "$ref": "#\/components\/schemas\/FulfillmentOrderStatus" + }, + "statusUpdatedDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "notificationEmails": { + "$ref": "#\/components\/schemas\/NotificationEmailList" + }, + "featureConstraints": { + "type": "array", + "description": "A list of features and their fulfillment policies to apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSettings" + } + } + }, + "description": "General information about a fulfillment order, including its status." + }, + "FulfillmentOrderItem": { + "required": [ + "cancelledQuantity", + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku", + "unfulfillableQuantity" + ], + "type": "object", + "properties": { + "sellerSku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "A fulfillment order item identifier submitted with a call to the createFulfillmentOrder operation." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "giftMessage": { + "type": "string", + "description": "A message to the gift recipient, if applicable." + }, + "displayableComment": { + "type": "string", + "description": "Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip." + }, + "fulfillmentNetworkSku": { + "type": "string", + "description": "Amazon's fulfillment network SKU of the item." + }, + "orderItemDisposition": { + "type": "string", + "description": "Indicates whether the item is sellable or unsellable." + }, + "cancelledQuantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "unfulfillableQuantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "estimatedShipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "estimatedArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "perUnitPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitDeclaredValue": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Item information for a fulfillment order." + }, + "FulfillmentOrderItemList": { + "type": "array", + "description": "An array of fulfillment order item information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentOrderItem" + } + }, + "FulfillmentPreview": { + "required": [ + "isCODCapable", + "isFulfillable", + "marketplaceId", + "shippingSpeedCategory" + ], + "type": "object", + "properties": { + "shippingSpeedCategory": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategory" + }, + "scheduledDeliveryInfo": { + "$ref": "#\/components\/schemas\/ScheduledDeliveryInfo" + }, + "isFulfillable": { + "type": "boolean", + "description": "When true, this fulfillment order preview is fulfillable." + }, + "isCODCapable": { + "type": "boolean", + "description": "When true, this fulfillment order preview is for COD (Cash On Delivery)." + }, + "estimatedShippingWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "estimatedFees": { + "$ref": "#\/components\/schemas\/FeeList" + }, + "fulfillmentPreviewShipments": { + "$ref": "#\/components\/schemas\/FulfillmentPreviewShipmentList" + }, + "unfulfillablePreviewItems": { + "$ref": "#\/components\/schemas\/UnfulfillablePreviewItemList" + }, + "orderUnfulfillableReasons": { + "$ref": "#\/components\/schemas\/StringList" + }, + "marketplaceId": { + "type": "string", + "description": "The marketplace the fulfillment order is placed against." + }, + "featureConstraints": { + "type": "array", + "description": "A list of features and their fulfillment policies to apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSettings" + } + } + }, + "description": "Information about a fulfillment order preview, including delivery and fee information based on shipping method." + }, + "FulfillmentPreviewItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku" + ], + "type": "object", + "properties": { + "sellerSku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "A fulfillment order item identifier that the seller created with a call to the createFulfillmentOrder operation." + }, + "estimatedShippingWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "shippingWeightCalculationMethod": { + "type": "string", + "description": "The method used to calculate the estimated shipping weight.", + "enum": [ + "Package", + "Dimensional" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Package", + "description": "Based on the actual weight of the items." + }, + { + "value": "Dimensional", + "description": "Based on the cubic space that the items occupy." + } + ] + } + }, + "description": "Item information for a shipment in a fulfillment order preview." + }, + "FulfillmentPreviewItemList": { + "type": "array", + "description": "An array of fulfillment preview item information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentPreviewItem" + } + }, + "FulfillmentPreviewList": { + "type": "array", + "description": "An array of fulfillment preview information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentPreview" + } + }, + "FulfillmentPreviewShipment": { + "required": [ + "fulfillmentPreviewItems" + ], + "type": "object", + "properties": { + "earliestShipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "latestShipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "earliestArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "latestArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "shippingNotes": { + "type": "array", + "description": "Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed.", + "items": { + "type": "string" + } + }, + "fulfillmentPreviewItems": { + "$ref": "#\/components\/schemas\/FulfillmentPreviewItemList" + } + }, + "description": "Delivery and item information for a shipment in a fulfillment order preview." + }, + "FulfillmentPreviewShipmentList": { + "type": "array", + "description": "An array of fulfillment preview shipment information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentPreviewShipment" + } + }, + "FulfillmentReturnItemStatus": { + "type": "string", + "description": "Indicates if the return item has been processed by a fulfillment center.", + "enum": [ + "New", + "Processed" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "The return item has not yet been processed by a fulfillment center." + }, + { + "value": "Processed", + "description": "The return item has been processed by a fulfillment center." + } + ] + }, + "FulfillmentShipment": { + "required": [ + "amazonShipmentId", + "fulfillmentCenterId", + "fulfillmentShipmentItem", + "fulfillmentShipmentStatus" + ], + "type": "object", + "properties": { + "amazonShipmentId": { + "type": "string", + "description": "A shipment identifier assigned by Amazon." + }, + "fulfillmentCenterId": { + "type": "string", + "description": "An identifier for the fulfillment center that the shipment will be sent from." + }, + "fulfillmentShipmentStatus": { + "type": "string", + "description": "The current status of the shipment.", + "enum": [ + "PENDING", + "SHIPPED", + "CANCELLED_BY_FULFILLER", + "CANCELLED_BY_SELLER" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PENDING", + "description": "The process of picking units from inventory has begun." + }, + { + "value": "SHIPPED", + "description": "All packages in the shipment have left the fulfillment center." + }, + { + "value": "CANCELLED_BY_FULFILLER", + "description": "The Amazon fulfillment center could not fulfill the shipment as planned. This might be because the inventory was not at the expected location in the fulfillment center. After cancelling the fulfillment order, Amazon immediately creates a new fulfillment shipment and again attempts to fulfill the order." + }, + { + "value": "CANCELLED_BY_SELLER", + "description": "The shipment was cancelled using the CancelFulfillmentOrder request." + } + ] + }, + "shippingDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "estimatedArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "shippingNotes": { + "type": "array", + "description": "Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available.", + "items": { + "type": "string" + } + }, + "fulfillmentShipmentItem": { + "$ref": "#\/components\/schemas\/FulfillmentShipmentItemList" + }, + "fulfillmentShipmentPackage": { + "$ref": "#\/components\/schemas\/FulfillmentShipmentPackageList" + } + }, + "description": "Delivery and item information for a shipment in a fulfillment order." + }, + "FulfillmentShipmentItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku" + ], + "type": "object", + "properties": { + "sellerSku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "The fulfillment order item identifier that the seller created and submitted with a call to the createFulfillmentOrder operation." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "packageNumber": { + "type": "integer", + "description": "An identifier for the package that contains the item quantity.", + "format": "int32" + }, + "serialNumber": { + "type": "string", + "description": "The serial number of the shipped item." + } + }, + "description": "Item information for a shipment in a fulfillment order." + }, + "FulfillmentShipmentItemList": { + "type": "array", + "description": "An array of fulfillment shipment item information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentShipmentItem" + } + }, + "FulfillmentShipmentList": { + "type": "array", + "description": "An array of fulfillment shipment information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentShipment" + } + }, + "FulfillmentShipmentPackage": { + "required": [ + "carrierCode", + "packageNumber" + ], + "type": "object", + "properties": { + "packageNumber": { + "type": "integer", + "description": "Identifies a package in a shipment.", + "format": "int32" + }, + "carrierCode": { + "type": "string", + "description": "Identifies the carrier who will deliver the shipment to the recipient." + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number, if provided, can be used to obtain tracking and delivery information." + }, + "estimatedArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + } + }, + "description": "Package information for a shipment in a fulfillment order." + }, + "FulfillmentShipmentPackageList": { + "type": "array", + "description": "An array of fulfillment shipment package information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentShipmentPackage" + } + }, + "GetFulfillmentOrderResult": { + "required": [ + "fulfillmentOrder", + "fulfillmentOrderItems", + "returnAuthorizations", + "returnItems" + ], + "type": "object", + "properties": { + "fulfillmentOrder": { + "$ref": "#\/components\/schemas\/FulfillmentOrder" + }, + "fulfillmentOrderItems": { + "$ref": "#\/components\/schemas\/FulfillmentOrderItemList" + }, + "fulfillmentShipments": { + "$ref": "#\/components\/schemas\/FulfillmentShipmentList" + }, + "returnItems": { + "$ref": "#\/components\/schemas\/ReturnItemList" + }, + "returnAuthorizations": { + "$ref": "#\/components\/schemas\/ReturnAuthorizationList" + } + } + }, + "GetFulfillmentOrderResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetFulfillmentOrderResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getFulfillmentOrder operation." + }, + "GetFulfillmentPreviewItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku" + ], + "type": "object", + "properties": { + "sellerSku": { + "maxLength": 50, + "type": "string", + "description": "The seller SKU of the item." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "perUnitDeclaredValue": { + "$ref": "#\/components\/schemas\/Money" + }, + "sellerFulfillmentOrderItemId": { + "maxLength": 50, + "type": "string", + "description": "A fulfillment order item identifier that the seller creates to track items in the fulfillment preview." + } + }, + "description": "Item information for a fulfillment order preview." + }, + "GetFulfillmentPreviewItemList": { + "type": "array", + "description": "An array of fulfillment preview item information.", + "items": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewItem" + } + }, + "GetFulfillmentPreviewRequest": { + "required": [ + "address", + "items" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "The marketplace the fulfillment order is placed against." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "items": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewItemList" + }, + "shippingSpeedCategories": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategoryList" + }, + "includeCODFulfillmentPreview": { + "type": "boolean", + "description": "When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD." + }, + "includeDeliveryWindows": { + "type": "boolean", + "description": "When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery." + }, + "featureConstraints": { + "type": "array", + "description": "A list of features and their fulfillment policies to apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSettings" + } + } + }, + "description": "The request body schema for the getFulfillmentPreview operation." + }, + "GetFulfillmentPreviewResult": { + "type": "object", + "properties": { + "fulfillmentPreviews": { + "$ref": "#\/components\/schemas\/FulfillmentPreviewList" + } + }, + "description": "A list of fulfillment order previews, including estimated shipping weights, estimated shipping fees, and estimated ship dates and arrival dates." + }, + "GetFulfillmentPreviewResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetFulfillmentPreviewResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getFulfillmentPreview operation." + }, + "InvalidItemReasonCode": { + "type": "string", + "description": "A code for why the item is invalid for return.", + "enum": [ + "InvalidValues", + "DuplicateRequest", + "NoCompletedShipItems", + "NoReturnableQuantity" + ], + "x-docgen-enum-table-extension": [ + { + "value": "InvalidValues", + "description": "The item was not found in a fulfillment order." + }, + { + "value": "DuplicateRequest", + "description": "A fulfillment return has already been requested for this item." + }, + { + "value": "NoCompletedShipItems", + "description": "The fulfillment order containing this item has not yet shipped." + }, + { + "value": "NoReturnableQuantity", + "description": "All item quantity available for return has been allocated to other return items." + } + ] + }, + "InvalidItemReason": { + "required": [ + "description", + "invalidItemReasonCode" + ], + "type": "object", + "properties": { + "invalidItemReasonCode": { + "$ref": "#\/components\/schemas\/InvalidItemReasonCode" + }, + "description": { + "type": "string", + "description": "A human readable description of the invalid item reason code." + } + }, + "description": "The reason that the item is invalid for return." + }, + "InvalidReturnItem": { + "required": [ + "invalidItemReason", + "sellerFulfillmentOrderItemId", + "sellerReturnItemId" + ], + "type": "object", + "properties": { + "sellerReturnItemId": { + "type": "string", + "description": "An identifier assigned by the seller to the return item." + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created." + }, + "invalidItemReason": { + "$ref": "#\/components\/schemas\/InvalidItemReason" + } + }, + "description": "An item that is invalid for return." + }, + "InvalidReturnItemList": { + "type": "array", + "description": "An array of invalid return item information.", + "items": { + "$ref": "#\/components\/schemas\/InvalidReturnItem" + } + }, + "ListAllFulfillmentOrdersResult": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "fulfillmentOrders": { + "type": "array", + "description": "An array of fulfillment order information.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentOrder" + } + } + } + }, + "ListAllFulfillmentOrdersResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListAllFulfillmentOrdersResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the listAllFulfillmentOrders operation." + }, + "ListReturnReasonCodesResult": { + "type": "object", + "properties": { + "reasonCodeDetails": { + "$ref": "#\/components\/schemas\/ReasonCodeDetailsList" + } + } + }, + "ListReturnReasonCodesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListReturnReasonCodesResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the listReturnReasonCodes operation." + }, + "NotificationEmailList": { + "type": "array", + "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.", + "items": { + "maxLength": 64, + "type": "string" + } + }, + "CurrentStatus": { + "type": "string", + "description": "The current delivery status of the package.", + "enum": [ + "IN_TRANSIT", + "DELIVERED", + "RETURNING", + "RETURNED", + "UNDELIVERABLE", + "DELAYED", + "AVAILABLE_FOR_PICKUP", + "CUSTOMER_ACTION", + "UNKNOWN", + "OUT_FOR_DELIVERY", + "DELIVERY_ATTEMPTED", + "PICKUP_SUCCESSFUL", + "PICKUP_CANCELLED", + "PICKUP_ATTEMPTED", + "PICKUP_SCHEDULED", + "RETURN_REQUEST_ACCEPTED", + "REFUND_ISSUED", + "RETURN_RECEIVED_IN_FC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IN_TRANSIT", + "description": "In transit to the destination address." + }, + { + "value": "DELIVERED", + "description": "Delivered to the destination address." + }, + { + "value": "RETURNING", + "description": "In the process of being returned to Amazon's fulfillment network." + }, + { + "value": "RETURNED", + "description": "Returned to Amazon's fulfillment network." + }, + { + "value": "UNDELIVERABLE", + "description": "Undeliverable because package was lost or destroyed." + }, + { + "value": "DELAYED", + "description": "Delayed." + }, + { + "value": "AVAILABLE_FOR_PICKUP", + "description": "Available for pickup." + }, + { + "value": "CUSTOMER_ACTION", + "description": "Requires customer action." + }, + { + "value": "UNKNOWN", + "description": "Unknown Status Code was returned." + }, + { + "value": "OUT_FOR_DELIVERY", + "description": "Out for Delivery." + }, + { + "value": "DELIVERY_ATTEMPTED", + "description": "Delivery Attempted." + }, + { + "value": "PICKUP_SUCCESSFUL", + "description": "Pickup Successful." + }, + { + "value": "PICKUP_CANCELLED", + "description": "Pickup Cancelled." + }, + { + "value": "PICKUP_ATTEMPTED", + "description": "Pickup Attempted." + }, + { + "value": "PICKUP_SCHEDULED", + "description": "Pickup Scheduled." + }, + { + "value": "RETURN_REQUEST_ACCEPTED", + "description": "Return Request Accepted." + }, + { + "value": "REFUND_ISSUED", + "description": "Refund Issued." + }, + { + "value": "RETURN_RECEIVED_IN_FC", + "description": "Return Received In FC." + } + ] + }, + "AdditionalLocationInfo": { + "type": "string", + "description": "Additional location information.", + "enum": [ + "AS_INSTRUCTED", + "CARPORT", + "CUSTOMER_PICKUP", + "DECK", + "DOOR_PERSON", + "FRONT_DESK", + "FRONT_DOOR", + "GARAGE", + "GUARD", + "MAIL_ROOM", + "MAIL_SLOT", + "MAILBOX", + "MC_BOY", + "MC_GIRL", + "MC_MAN", + "MC_WOMAN", + "NEIGHBOR", + "OFFICE", + "OUTBUILDING", + "PATIO", + "PORCH", + "REAR_DOOR", + "RECEPTIONIST", + "RECEIVER", + "SECURE_LOCATION", + "SIDE_DOOR" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AS_INSTRUCTED", + "description": "As instructed." + }, + { + "value": "CARPORT", + "description": "Carport." + }, + { + "value": "CUSTOMER_PICKUP", + "description": "Picked up by customer." + }, + { + "value": "DECK", + "description": "Deck." + }, + { + "value": "DOOR_PERSON", + "description": "Resident." + }, + { + "value": "FRONT_DESK", + "description": "Front desk." + }, + { + "value": "FRONT_DOOR", + "description": "Front door." + }, + { + "value": "GARAGE", + "description": "Garage." + }, + { + "value": "GUARD", + "description": "Residential guard." + }, + { + "value": "MAIL_ROOM", + "description": "Mail room." + }, + { + "value": "MAIL_SLOT", + "description": "Mail slot." + }, + { + "value": "MAILBOX", + "description": "Mailbox." + }, + { + "value": "MC_BOY", + "description": "Delivered to male child." + }, + { + "value": "MC_GIRL", + "description": "Delivered to female child." + }, + { + "value": "MC_MAN", + "description": "Delivered to male adult." + }, + { + "value": "MC_WOMAN", + "description": "Delivered to female adult." + }, + { + "value": "NEIGHBOR", + "description": "Delivered to neighbor." + }, + { + "value": "OFFICE", + "description": "Office." + }, + { + "value": "OUTBUILDING", + "description": "Outbuilding." + }, + { + "value": "PATIO", + "description": "Patio." + }, + { + "value": "PORCH", + "description": "Porch." + }, + { + "value": "REAR_DOOR", + "description": "Rear door." + }, + { + "value": "RECEPTIONIST", + "description": "Receptionist." + }, + { + "value": "RECEIVER", + "description": "Resident." + }, + { + "value": "SECURE_LOCATION", + "description": "Secure location." + }, + { + "value": "SIDE_DOOR", + "description": "Side door." + } + ] + }, + "PackageTrackingDetails": { + "required": [ + "packageNumber" + ], + "type": "object", + "properties": { + "packageNumber": { + "type": "integer", + "description": "The package identifier.", + "format": "int32" + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number for the package." + }, + "customerTrackingLink": { + "type": "string", + "description": "Link on swiship.com that allows customers to track the package." + }, + "carrierCode": { + "type": "string", + "description": "The name of the carrier." + }, + "carrierPhoneNumber": { + "type": "string", + "description": "The phone number of the carrier." + }, + "carrierURL": { + "type": "string", + "description": "The URL of the carrier's website." + }, + "shipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "estimatedArrivalDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "shipToAddress": { + "$ref": "#\/components\/schemas\/TrackingAddress" + }, + "currentStatus": { + "$ref": "#\/components\/schemas\/CurrentStatus" + }, + "currentStatusDescription": { + "type": "string", + "description": "Description corresponding to the CurrentStatus value." + }, + "signedForBy": { + "type": "string", + "description": "The name of the person who signed for the package." + }, + "additionalLocationInfo": { + "$ref": "#\/components\/schemas\/AdditionalLocationInfo" + }, + "trackingEvents": { + "$ref": "#\/components\/schemas\/TrackingEventList" + } + } + }, + "GetPackageTrackingDetailsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PackageTrackingDetails" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPackageTrackingDetails operation." + }, + "ReasonCodeDetails": { + "required": [ + "description", + "returnReasonCode" + ], + "type": "object", + "properties": { + "returnReasonCode": { + "type": "string", + "description": "A code that indicates a valid return reason." + }, + "description": { + "type": "string", + "description": "A human readable description of the return reason code." + }, + "translatedDescription": { + "type": "string", + "description": "A translation of the description. The translation is in the language specified in the Language request parameter." + } + }, + "description": "A return reason code, a description, and an optional description translation." + }, + "ReasonCodeDetailsList": { + "type": "array", + "description": "An array of return reason code details.", + "items": { + "$ref": "#\/components\/schemas\/ReasonCodeDetails" + } + }, + "ReturnAuthorization": { + "required": [ + "amazonRmaId", + "fulfillmentCenterId", + "returnAuthorizationId", + "returnToAddress", + "rmaPageURL" + ], + "type": "object", + "properties": { + "returnAuthorizationId": { + "type": "string", + "description": "An identifier for the return authorization. This identifier associates return items with the return authorization used to return them." + }, + "fulfillmentCenterId": { + "type": "string", + "description": "An identifier for the Amazon fulfillment center that the return items should be sent to." + }, + "returnToAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "amazonRmaId": { + "type": "string", + "description": "The return merchandise authorization (RMA) that Amazon needs to process the return." + }, + "rmaPageURL": { + "type": "string", + "description": "A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping." + } + }, + "description": "Return authorization information for items accepted for return." + }, + "ReturnAuthorizationList": { + "type": "array", + "description": "An array of return authorization information.", + "items": { + "$ref": "#\/components\/schemas\/ReturnAuthorization" + } + }, + "ReturnItem": { + "required": [ + "amazonShipmentId", + "sellerFulfillmentOrderItemId", + "sellerReturnItemId", + "sellerReturnReasonCode", + "status", + "statusChangedDate" + ], + "type": "object", + "properties": { + "sellerReturnItemId": { + "type": "string", + "description": "An identifier assigned by the seller to the return item." + }, + "sellerFulfillmentOrderItemId": { + "type": "string", + "description": "The identifier assigned to the item by the seller when the fulfillment order was created." + }, + "amazonShipmentId": { + "type": "string", + "description": "The identifier for the shipment that is associated with the return item." + }, + "sellerReturnReasonCode": { + "type": "string", + "description": "The return reason code assigned to the return item by the seller." + }, + "returnComment": { + "type": "string", + "description": "An optional comment about the return item." + }, + "amazonReturnReasonCode": { + "type": "string", + "description": "The return reason code that the Amazon fulfillment center assigned to the return item." + }, + "status": { + "$ref": "#\/components\/schemas\/FulfillmentReturnItemStatus" + }, + "statusChangedDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "returnAuthorizationId": { + "type": "string", + "description": "Identifies the return authorization used to return this item. See ReturnAuthorization." + }, + "returnReceivedCondition": { + "$ref": "#\/components\/schemas\/ReturnItemDisposition" + }, + "fulfillmentCenterId": { + "type": "string", + "description": "The identifier for the Amazon fulfillment center that processed the return item." + } + }, + "description": "An item that Amazon accepted for return." + }, + "ReturnItemDisposition": { + "type": "string", + "description": "The condition of the return item when received by an Amazon fulfillment center.", + "enum": [ + "Sellable", + "Defective", + "CustomerDamaged", + "CarrierDamaged", + "FulfillerDamaged" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Sellable", + "description": "Item is in sellable condition." + }, + { + "value": "Defective", + "description": "Item is defective." + }, + { + "value": "CustomerDamaged", + "description": "Item was damaged by the buyer or the seller." + }, + { + "value": "CarrierDamaged", + "description": "Item was damaged by the carrier." + }, + { + "value": "FulfillerDamaged", + "description": "Item was damaged by Amazon." + } + ] + }, + "ReturnItemList": { + "type": "array", + "description": "An array of items that Amazon accepted for return. Returns empty if no items were accepted for return.", + "items": { + "$ref": "#\/components\/schemas\/ReturnItem" + } + }, + "ScheduledDeliveryInfo": { + "required": [ + "deliveryTimeZone", + "deliveryWindows" + ], + "type": "object", + "properties": { + "deliveryTimeZone": { + "type": "string", + "description": "The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia\/Tokyo." + }, + "deliveryWindows": { + "$ref": "#\/components\/schemas\/DeliveryWindowList" + } + }, + "description": "Delivery information for a scheduled delivery. This is only available in the JP marketplace." + }, + "ShippingSpeedCategoryList": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategory" + } + }, + "StringList": { + "type": "array", + "items": { + "type": "string" + } + }, + "Timestamp": { + "type": "string", + "format": "date-time" + }, + "TrackingAddress": { + "required": [ + "city", + "country", + "state" + ], + "type": "object", + "properties": { + "city": { + "maxLength": 150, + "type": "string", + "description": "The city." + }, + "state": { + "maxLength": 150, + "type": "string", + "description": "The state." + }, + "country": { + "maxLength": 6, + "type": "string", + "description": "The country." + } + }, + "description": "Address information for tracking the package." + }, + "EventCode": { + "type": "string", + "description": "The event code for the delivery event.", + "enum": [ + "EVENT_101", + "EVENT_102", + "EVENT_201", + "EVENT_202", + "EVENT_203", + "EVENT_204", + "EVENT_205", + "EVENT_206", + "EVENT_301", + "EVENT_302", + "EVENT_304", + "EVENT_306", + "EVENT_307", + "EVENT_308", + "EVENT_309", + "EVENT_401", + "EVENT_402", + "EVENT_403", + "EVENT_404", + "EVENT_405", + "EVENT_406", + "EVENT_407", + "EVENT_408", + "EVENT_409", + "EVENT_411", + "EVENT_412", + "EVENT_413", + "EVENT_414", + "EVENT_415", + "EVENT_416", + "EVENT_417", + "EVENT_418", + "EVENT_419" + ], + "x-docgen-enum-table-extension": [ + { + "value": "EVENT_101", + "description": "Carrier notified to pick up package." + }, + { + "value": "EVENT_102", + "description": "Shipment picked up from seller's facility." + }, + { + "value": "EVENT_201", + "description": "Arrival scan." + }, + { + "value": "EVENT_202", + "description": "Departure scan." + }, + { + "value": "EVENT_203", + "description": "Arrived at destination country." + }, + { + "value": "EVENT_204", + "description": "Initiated customs clearance process." + }, + { + "value": "EVENT_205", + "description": "Completed customs clearance process." + }, + { + "value": "EVENT_206", + "description": "In transit to pickup location." + }, + { + "value": "EVENT_301", + "description": "Delivered." + }, + { + "value": "EVENT_302", + "description": "Out for delivery." + }, + { + "value": "EVENT_304", + "description": "Delivery attempted." + }, + { + "value": "EVENT_306", + "description": "Customer contacted to arrange delivery." + }, + { + "value": "EVENT_307", + "description": "Delivery appointment scheduled." + }, + { + "value": "EVENT_308", + "description": "Available for pickup." + }, + { + "value": "EVENT_309", + "description": "Returned to seller." + }, + { + "value": "EVENT_401", + "description": "Held by carrier - incorrect address." + }, + { + "value": "EVENT_402", + "description": "Customs clearance delay." + }, + { + "value": "EVENT_403", + "description": "Customer moved." + }, + { + "value": "EVENT_404", + "description": "Delay in delivery due to external factors." + }, + { + "value": "EVENT_405", + "description": "Shipment damaged." + }, + { + "value": "EVENT_406", + "description": "Held by carrier." + }, + { + "value": "EVENT_407", + "description": "Customer refused delivery." + }, + { + "value": "EVENT_408", + "description": "Returning to seller." + }, + { + "value": "EVENT_409", + "description": "Lost by carrier." + }, + { + "value": "EVENT_411", + "description": "Paperwork received - did not receive shipment." + }, + { + "value": "EVENT_412", + "description": "Shipment received - did not receive paperwork." + }, + { + "value": "EVENT_413", + "description": "Held by carrier - customer refused shipment due to customs charges." + }, + { + "value": "EVENT_414", + "description": "Missorted by carrier." + }, + { + "value": "EVENT_415", + "description": "Received from prior carrier." + }, + { + "value": "EVENT_416", + "description": "Undeliverable." + }, + { + "value": "EVENT_417", + "description": "Shipment missorted." + }, + { + "value": "EVENT_418", + "description": "Shipment delayed." + }, + { + "value": "EVENT_419", + "description": "Address corrected - delivery rescheduled." + } + ] + }, + "TrackingEvent": { + "required": [ + "eventAddress", + "eventCode", + "eventDate", + "eventDescription" + ], + "type": "object", + "properties": { + "eventDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "eventAddress": { + "$ref": "#\/components\/schemas\/TrackingAddress" + }, + "eventCode": { + "$ref": "#\/components\/schemas\/EventCode" + }, + "eventDescription": { + "type": "string", + "description": "A description for the corresponding event code." + } + }, + "description": "Information for tracking package deliveries." + }, + "TrackingEventList": { + "type": "array", + "description": "An array of tracking event information.", + "items": { + "$ref": "#\/components\/schemas\/TrackingEvent" + } + }, + "UnfulfillablePreviewItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId", + "sellerSku" + ], + "type": "object", + "properties": { + "sellerSku": { + "maxLength": 50, + "type": "string", + "description": "The seller SKU of the item." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "sellerFulfillmentOrderItemId": { + "maxLength": 50, + "type": "string", + "description": "A fulfillment order item identifier created with a call to the getFulfillmentPreview operation." + }, + "itemUnfulfillableReasons": { + "$ref": "#\/components\/schemas\/StringList" + } + }, + "description": "Information about unfulfillable items in a fulfillment order preview." + }, + "UnfulfillablePreviewItemList": { + "type": "array", + "description": "An array of unfulfillable preview item information.", + "items": { + "$ref": "#\/components\/schemas\/UnfulfillablePreviewItem" + } + }, + "UpdateFulfillmentOrderItem": { + "required": [ + "quantity", + "sellerFulfillmentOrderItemId" + ], + "type": "object", + "properties": { + "sellerSku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "sellerFulfillmentOrderItemId": { + "maxLength": 50, + "type": "string", + "description": "Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation." + }, + "quantity": { + "$ref": "#\/components\/schemas\/Quantity" + }, + "giftMessage": { + "maxLength": 512, + "type": "string", + "description": "A message to the gift recipient, if applicable." + }, + "displayableComment": { + "maxLength": 250, + "type": "string", + "description": "Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip." + }, + "fulfillmentNetworkSku": { + "type": "string", + "description": "Amazon's fulfillment network SKU of the item." + }, + "orderItemDisposition": { + "type": "string", + "description": "Indicates whether the item is sellable or unsellable." + }, + "perUnitDeclaredValue": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "perUnitTax": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Item information for updating a fulfillment order." + }, + "UpdateFulfillmentOrderItemList": { + "type": "array", + "description": "An array of fulfillment order item information for updating a fulfillment order.", + "items": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderItem" + } + }, + "UpdateFulfillmentOrderRequest": { + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "The marketplace the fulfillment order is placed against." + }, + "displayableOrderId": { + "maxLength": 40, + "type": "string", + "description": "A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier." + }, + "displayableOrderDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "displayableOrderComment": { + "maxLength": 1000, + "type": "string", + "description": "Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip." + }, + "shippingSpeedCategory": { + "$ref": "#\/components\/schemas\/ShippingSpeedCategory" + }, + "destinationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "fulfillmentAction": { + "$ref": "#\/components\/schemas\/FulfillmentAction" + }, + "fulfillmentPolicy": { + "$ref": "#\/components\/schemas\/FulfillmentPolicy" + }, + "shipFromCountryCode": { + "type": "string", + "description": "The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format." + }, + "notificationEmails": { + "$ref": "#\/components\/schemas\/NotificationEmailList" + }, + "featureConstraints": { + "type": "array", + "description": "A list of features and their fulfillment policies to apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSettings" + } + }, + "items": { + "$ref": "#\/components\/schemas\/UpdateFulfillmentOrderItemList" + } + }, + "description": "The request body schema for the updateFulfillmentOrder operation." + }, + "UpdateFulfillmentOrderResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the updateFulfillmentOrder operation." + }, + "CreateFulfillmentOrderResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createFulfillmentOrder operation." + }, + "CancelFulfillmentOrderResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the cancelFulfillmentOrder operation." + }, + "Weight": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "The unit of weight.", + "enum": [ + "KG", + "KILOGRAMS", + "LB", + "POUNDS" + ], + "x-docgen-enum-table-extension": [ + { + "value": "KG", + "description": "Kilograms." + }, + { + "value": "KILOGRAMS", + "description": "Kilograms." + }, + { + "value": "LB", + "description": "Pounds." + }, + { + "value": "POUNDS", + "description": "Pounds." + } + ] + }, + "value": { + "type": "string", + "description": "The weight value." + } + }, + "description": "The weight." + }, + "Quantity": { + "type": "integer", + "description": "The item quantity.", + "format": "int32" + }, + "ShippingSpeedCategory": { + "type": "string", + "description": "The shipping method used for the fulfillment order. When this value is ScheduledDelivery, choose Ship for the fulfillmentAction. Hold is not a valid fulfillmentAction value when the shippingSpeedCategory value is ScheduledDelivery.", + "enum": [ + "Standard", + "Expedited", + "Priority", + "ScheduledDelivery" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Standard", + "description": "Standard shipping method." + }, + { + "value": "Expedited", + "description": "Expedited shipping method." + }, + { + "value": "Priority", + "description": "Priority shipping method." + }, + { + "value": "ScheduledDelivery", + "description": "Scheduled Delivery shipping method. This is only available in the JP marketplace." + } + ] + }, + "GetFeatureInventoryResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetFeatureInventoryResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The breakdown of eligibility inventory by feature." + }, + "GetFeatureInventoryResult": { + "required": [ + "featureName", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "The requested marketplace." + }, + "featureName": { + "type": "string", + "description": "The name of the feature." + }, + "nextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "featureSkus": { + "type": "array", + "description": "An array of SKUs eligible for this feature and the quantity available.", + "items": { + "$ref": "#\/components\/schemas\/FeatureSku" + } + } + }, + "description": "The payload for the getEligibileInventory operation." + }, + "FeatureSku": { + "type": "object", + "properties": { + "sellerSku": { + "type": "string", + "description": "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." + }, + "fnSku": { + "type": "string", + "description": "The unique SKU used by Amazon's fulfillment network." + }, + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "skuCount": { + "type": "number", + "description": "The number of SKUs available for this service." + }, + "overlappingSkus": { + "type": "array", + "description": "Other seller SKUs that are shared across the same inventory.", + "items": { + "type": "string" + } + } + }, + "description": "Information about an SKU, including the count available, identifiers, and a list of overlapping SKUs that share the same inventory pool." + }, + "GetFeaturesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetFeaturesResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getFeatures operation." + }, + "GetFeaturesResult": { + "required": [ + "features" + ], + "type": "object", + "properties": { + "features": { + "$ref": "#\/components\/schemas\/Features" + } + }, + "description": "The payload for the getFeatures operation." + }, + "Features": { + "type": "array", + "description": "An array of features.", + "items": { + "$ref": "#\/components\/schemas\/Feature" + } + }, + "Feature": { + "required": [ + "featureDescription", + "featureName" + ], + "type": "object", + "properties": { + "featureName": { + "type": "string", + "description": "The feature name." + }, + "featureDescription": { + "type": "string", + "description": "The feature description." + }, + "sellerEligible": { + "type": "boolean", + "description": "When true, indicates that the seller is eligible to use the feature." + } + }, + "description": "A Multi-Channel Fulfillment feature." + }, + "GetFeatureSkuResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetFeatureSkuResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getFeatureSKU operation." + }, + "GetFeatureSkuResult": { + "required": [ + "featureName", + "isEligible", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "The requested marketplace." + }, + "featureName": { + "type": "string", + "description": "The name of the feature." + }, + "isEligible": { + "type": "boolean", + "description": "When true, the seller SKU is eligible for the requested feature." + }, + "ineligibleReasons": { + "type": "array", + "description": "A list of one or more reasons that the seller SKU is ineligibile for the feature.\n\nPossible values:\n* MERCHANT_NOT_ENROLLED - The merchant isn't enrolled for the feature.\n* SKU_NOT_ELIGIBLE - The SKU doesn't reside in a warehouse that supports the feature.\n* INVALID_SKU - There is an issue with the SKU provided.", + "items": { + "type": "string" + } + }, + "skuInfo": { + "$ref": "#\/components\/schemas\/FeatureSku" + } + }, + "description": "The payload for the getFeatureSKU operation." + }, + "FeatureSettings": { + "type": "object", + "properties": { + "featureName": { + "type": "string", + "description": "The name of the feature." + }, + "featureFulfillmentPolicy": { + "type": "string", + "description": "Specifies the policy to use when fulfilling an order.", + "enum": [ + "Required", + "NotRequired" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Required", + "description": "If the offer can't be shipped with the selected feature, reject the order." + }, + { + "value": "NotRequired", + "description": "The feature is not required for shipping." + } + ] + } + }, + "description": "FeatureSettings allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use featureName as BLOCK_AMZL and featureFulfillmentPolicy as Required. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using BLOCK_AMZL in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), use featureName BLANK_BOX." + }, + "SubmitFulfillmentOrderStatusUpdateRequest": { + "type": "object", + "properties": { + "fulfillmentOrderStatus": { + "$ref": "#\/components\/schemas\/FulfillmentOrderStatus" + } + }, + "description": "The request body schema for the submitFulfillmentOrderStatusUpdate operation." + }, + "SubmitFulfillmentOrderStatusUpdateResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the SubmitFulfillmentOrderStatusUpdate operation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/fba-small-and-light/v1.json b/resources/models/seller/fba-small-and-light/v1.json new file mode 100644 index 000000000..e8c09decd --- /dev/null +++ b/resources/models/seller/fba-small-and-light/v1.json @@ -0,0 +1,2624 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for FBA Small And Light", + "description": "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.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/fba\/smallAndLight\/v1\/enrollments\/{sellerSKU}": { + "get": { + "tags": [ + "FBASmallAndLightV1" + ], + "description": "Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSmallAndLightEnrollmentBySellerSKU", + "parameters": [ + { + "name": "sellerSKU", + "in": "path", + "description": "The seller SKU that identifies the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SmallAndLightEnrollment" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_ENROLLED_IN_SMALL_AND_LIGHT" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "marketplaceId": "ATVPDKIKX0DER", + "sellerSKU": "SKU_ENROLLED_IN_SMALL_AND_LIGHT", + "status": "ENROLLED" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_400" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_403" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_404" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "Requested resource is not found" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_413" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "PayloadTooLarge", + "message": "Payload of the request is too large." + } + ] + } + } + ] + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_415" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "UnsupportedType", + "message": "The entity of the request is of unsupported type." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_429" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "TooManyRequests", + "message": "Total number of requests exceed your allowed limits." + } + ] + } + } + ] + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_500" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InternalServerError", + "message": "Server encountered an unexpected condition while processing your request." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_503" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Server is temporarily unavailable." + } + ] + } + } + ] + } + } + } + }, + "put": { + "tags": [ + "FBASmallAndLightV1" + ], + "description": "Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "putSmallAndLightEnrollmentBySellerSKU", + "parameters": [ + { + "name": "sellerSKU", + "in": "path", + "description": "The seller SKU that identifies the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "The marketplace in which to enroll the item. Note: Accepts a single marketplace only.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SmallAndLightEnrollment" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_ELIGIBLE_FOR_SMALL_AND_LIGHT" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "marketplaceId": "ATVPDKIKX0DER", + "sellerSKU": "SKU_ELIGIBLE_FOR_SMALL_AND_LIGHT", + "status": "ENROLLED" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_400" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_403" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_404" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "Requested resource is not found" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_413" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "PayloadTooLarge", + "message": "Payload of the request is too large." + } + ] + } + } + ] + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_415" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "UnsupportedType", + "message": "The entity of the request is of unsupported type." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_429" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "TooManyRequests", + "message": "Total number of requests exceed your allowed limits." + } + ] + } + } + ] + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_500" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InternalServerError", + "message": "Server encountered an unexpected condition while processing your request." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_503" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Server is temporarily unavailable." + } + ] + } + } + ] + } + } + } + }, + "delete": { + "tags": [ + "FBASmallAndLightV1" + ], + "description": "Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "deleteSmallAndLightEnrollmentBySellerSKU", + "parameters": [ + { + "name": "sellerSKU", + "in": "path", + "description": "The seller SKU that identifies the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_ENROLLED_FOR_SMALL_AND_LIGHT" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_400" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_403" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_404" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "Requested resource is not found" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_413" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "PayloadTooLarge", + "message": "Payload of the request is too large." + } + ] + } + } + ] + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_415" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "UnsupportedType", + "message": "The entity of the request is of unsupported type." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_429" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "TooManyRequests", + "message": "Total number of requests exceed your allowed limits." + } + ] + } + } + ] + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_500" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InternalServerError", + "message": "Server encountered an unexpected condition while processing your request." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_503" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Server is temporarily unavailable." + } + ] + } + } + ] + } + } + } + } + }, + "\/fba\/smallAndLight\/v1\/eligibilities\/{sellerSKU}": { + "get": { + "tags": [ + "FBASmallAndLightV1" + ], + "description": "Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSmallAndLightEligibilityBySellerSKU", + "parameters": [ + { + "name": "sellerSKU", + "in": "path", + "description": "The seller SKU that identifies the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SmallAndLightEligibility" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_ELIGIBLE_FOR_SMALL_AND_LIGHT" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "marketplaceId": "ATVPDKIKX0DER", + "sellerSKU": "SKU_ELIGIBLE_FOR_SMALL_AND_LIGHT", + "status": "ELIGIBLE" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_400" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_403" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_404" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "Requested resource is not found" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_413" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "PayloadTooLarge", + "message": "Payload of the request is too large." + } + ] + } + } + ] + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_415" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "UnsupportedType", + "message": "The entity of the request is of unsupported type." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_429" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "TooManyRequests", + "message": "Total number of requests exceed your allowed limits." + } + ] + } + } + ] + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_500" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InternalServerError", + "message": "Server encountered an unexpected condition while processing your request." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sellerSKU": { + "value": "SKU_503" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Server is temporarily unavailable." + } + ] + } + } + ] + } + } + } + } + }, + "\/fba\/smallAndLight\/v1\/feePreviews": { + "post": { + "tags": [ + "FBASmallAndLightV1" + ], + "description": "Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN\/price combinations are removed.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 3 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSmallAndLightFeePreview", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SmallAndLightFeePreviewRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SmallAndLightFeePreviews" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "ATVPDKIKX0DER", + "items": [ + { + "asin": "B076ZL9PB5", + "price": { + "currencyCode": "USD", + "amount": 6.5 + } + } + ] + } + } + } + }, + "response": { + "data": [ + { + "asin": "B076ZL9PB5", + "price": { + "amount": 6.5, + "currencyCode": "USD" + }, + "feeBreakdown": [ + { + "feeType": "FBAPerUnitFulfillmentFee", + "feeCharge": { + "amount": 0.75, + "currencyCode": "USD" + } + }, + { + "feeType": "FBAPerOrderFulfillmentFee", + "feeCharge": { + "amount": 1, + "currencyCode": "USD" + } + }, + { + "feeType": "FBAWeightBasedFee", + "feeCharge": { + "amount": 1.1, + "currencyCode": "USD" + } + }, + { + "feeType": "Commission", + "feeCharge": { + "amount": 0.98, + "currencyCode": "USD" + } + } + ], + "totalFees": { + "amount": 3.83, + "currencyCode": "USD" + }, + "errors": [] + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_400", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_401", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_403", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_404", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_429", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_500", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "TEST_CASE_503", + "items": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "SellerSKU": { + "type": "string", + "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." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "SmallAndLightEnrollmentStatus": { + "type": "string", + "description": "The Small and Light enrollment status of the item.", + "enum": [ + "ENROLLED", + "NOT_ENROLLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ENROLLED", + "description": "The Small and Light enrollment status is enrolled." + }, + { + "value": "NOT_ENROLLED", + "description": "The Small and Light enrollment status is not enrolled." + } + ] + }, + "SmallAndLightEligibilityStatus": { + "type": "string", + "description": "The Small and Light eligibility status of the item.", + "enum": [ + "ELIGIBLE", + "NOT_ELIGIBLE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ELIGIBLE", + "description": "The Small and Light eligibility status is eligible." + }, + { + "value": "NOT_ELIGIBLE", + "description": "The Small and Light eligibility status is not eligible." + } + ] + }, + "SmallAndLightEnrollment": { + "required": [ + "marketplaceId", + "sellerSKU", + "status" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "sellerSKU": { + "$ref": "#\/components\/schemas\/SellerSKU" + }, + "status": { + "$ref": "#\/components\/schemas\/SmallAndLightEnrollmentStatus" + } + }, + "description": "The Small and Light enrollment status of the item indicated by the specified seller SKU." + }, + "SmallAndLightEligibility": { + "required": [ + "marketplaceId", + "sellerSKU", + "status" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "sellerSKU": { + "$ref": "#\/components\/schemas\/SellerSKU" + }, + "status": { + "$ref": "#\/components\/schemas\/SmallAndLightEligibilityStatus" + } + }, + "description": "The Small and Light eligibility status of the item indicated by the specified seller SKU." + }, + "SmallAndLightFeePreviewRequest": { + "required": [ + "items", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "items": { + "maxItems": 25, + "type": "array", + "description": "A list of items for which to retrieve fee estimates (limit: 25).", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + } + }, + "description": "Request schema for submitting items for which to retrieve fee estimates." + }, + "SmallAndLightFeePreviews": { + "type": "object", + "properties": { + "data": { + "type": "array", + "description": "A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed.", + "items": { + "$ref": "#\/components\/schemas\/FeePreview" + } + } + } + }, + "Item": { + "required": [ + "asin", + "price" + ], + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) value used to identify the item." + }, + "price": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "An item to be sold." + }, + "FeePreview": { + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) value used to identify the item." + }, + "price": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "feeBreakdown": { + "type": "array", + "description": "A list of the Small and Light fees for the item.", + "items": { + "$ref": "#\/components\/schemas\/FeeLineItem" + } + }, + "totalFees": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "errors": { + "type": "array", + "description": "One or more unexpected errors occurred during the getSmallAndLightFeePreview operation.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "The fee estimate for a specific item." + }, + "FeeLineItem": { + "required": [ + "feeCharge", + "feeType" + ], + "type": "object", + "properties": { + "feeType": { + "type": "string", + "description": "The type of fee charged to the seller.", + "enum": [ + "FBAWeightBasedFee", + "FBAPerOrderFulfillmentFee", + "FBAPerUnitFulfillmentFee", + "Commission" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FBAWeightBasedFee", + "description": "The FBA weight-based fee (weight handling)." + }, + { + "value": "FBAPerOrderFulfillmentFee", + "description": "The FBA per-order fulfillment fee (order handling)." + }, + { + "value": "FBAPerUnitFulfillmentFee", + "description": "The FBA fulfillment fee (Pick & Pack)." + }, + { + "value": "Commission", + "description": "The commission - referral fee." + } + ] + }, + "feeCharge": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "Fee details for a specific fee." + }, + "MoneyType": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + }, + "amount": { + "type": "number", + "description": "The monetary value." + } + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/feeds/v2021-06-30.json b/resources/models/seller/feeds/v2021-06-30.json new file mode 100644 index 000000000..54a7ab4dc --- /dev/null +++ b/resources/models/seller/feeds/v2021-06-30.json @@ -0,0 +1,2039 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Feeds", + "description": "The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-06-30" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/feeds\/2021-06-30\/feeds": { + "get": { + "tags": [ + "FeedsV20210630" + ], + "description": "Returns feed details for the feeds that match the filters that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeeds", + "parameters": [ + { + "name": "feedTypes", + "in": "query", + "description": "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.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 10, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 10, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The maximum number of feeds to return in a single call.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "default": 10 + } + }, + { + "name": "processingStatuses", + "in": "query", + "description": "A list of processing statuses used to filter feeds.", + "style": "form", + "explode": false, + "schema": { + "minItems": 1, + "type": "array", + "items": { + "type": "string", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The feed was cancelled before it started processing." + }, + { + "value": "DONE", + "description": "The feed has completed processing. Examine the contents of the result document to determine if there were any errors during processing." + }, + { + "value": "FATAL", + "description": "The feed was aborted due to a fatal error. Some, none, or all of the operations within the feed may have completed successfully." + }, + { + "value": "IN_PROGRESS", + "description": "The feed is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The feed has not yet started processing. It may be waiting for another IN_PROGRESS feed." + } + ] + } + } + }, + { + "name": "createdSince", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdUntil", + "in": "query", + "description": "The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "nextToken", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeedsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedTypes": { + "value": [ + "POST_PRODUCT_DATA" + ] + }, + "pageSize": { + "value": 10 + }, + "processingStatuses": { + "value": [ + "CANCELLED", + "DONE" + ] + } + } + }, + "response": { + "feeds": [ + { + "feedId": "FeedId1", + "feedType": "POST_PRODUCT_DATA", + "createdTime": "2019-12-11T13:16:24.630Z", + "processingStatus": "CANCELLED", + "processingStartTime": "2019-12-11T13:16:24.630Z", + "processingEndTime": "2019-12-11T13:16:24.630Z" + } + ], + "nextToken": "VGhpcyB0b2tlbiBpcyBvcGFxdWUgYW5kIGludGVudGlvbmFsbHkgb2JmdXNjYXRlZA==" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedTypes": { + "value": [ + "POST_PRODUCT_DATA" + ] + }, + "processingStatuses": { + "value": [ + "BAD_VALUE", + "DONE" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Dates were not provided" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "FeedsV20210630" + ], + "description": "Creates a feed. Upload the contents of the feed document before calling this operation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0083 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createFeed", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFeedSpecification" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFeedResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "feedType": "POST_PRODUCT_DATA", + "marketplaceIds": [ + "ATVPDKIKX0DER", + "A1F83G8C2ARO7P" + ], + "inputFeedDocumentId": "3d4e42b5-1d6e-44e8-a89c-2abfca0625bb" + } + } + } + }, + "response": { + "feedId": "3485934" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceIds": [ + "ATVPDKIKX0DER", + "A1F83G8C2ARO7P" + ], + "inputFeedDocumentId": "badDocumentId" + } + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/feeds\/2021-06-30\/feeds\/{feedId}": { + "get": { + "tags": [ + "FeedsV20210630" + ], + "description": "Returns feed details (including the resultDocumentId, if available) for the feed that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeed", + "parameters": [ + { + "name": "feedId", + "in": "path", + "description": "The identifier for the feed. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Feed" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedId": { + "value": "feedId1" + } + } + }, + "response": { + "feedId": "FeedId1", + "feedType": "POST_PRODUCT_DATA", + "createdTime": "2019-12-11T13:16:24.630Z", + "processingStatus": "CANCELLED", + "processingStartTime": "2019-12-11T13:16:24.630Z", + "processingEndTime": "2019-12-11T13:16:24.630Z" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedId": { + "value": "badFeedId1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "delete": { + "tags": [ + "FeedsV20210630" + ], + "description": "Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelFeed", + "parameters": [ + { + "name": "feedId", + "in": "path", + "description": "The identifier for the feed. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedId": { + "value": "ID1" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedId": { + "value": "BADID1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/feeds\/2021-06-30\/documents": { + "post": { + "tags": [ + "FeedsV20210630" + ], + "description": "Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId value that you can pass in with a subsequent call to the createFeed operation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createFeedDocument", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFeedDocumentSpecification" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Successfully created a feed document that is ready to receive contents.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateFeedDocumentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "contentType": "text\/tab-separated-values; charset=UTF-8" + } + } + } + }, + "response": { + "feedDocumentId": "3d4e42b5-1d6e-44e8-a89c-2abfca0625bb", + "url": "https:\/\/d34o8swod1owfl.cloudfront.net\/Feed_101__POST_PRODUCT_DATA_.xml" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": {} + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/feeds\/2021-06-30\/documents\/{feedDocumentId}": { + "get": { + "tags": [ + "FeedsV20210630" + ], + "description": "Returns the information required for retrieving a feed document's contents.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeedDocument", + "parameters": [ + { + "name": "feedDocumentId", + "in": "path", + "description": "The identifier of the feed document.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FeedDocument" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedDocumentId": { + "value": "0356cf79-b8b0-4226-b4b9-0ee058ea5760" + } + } + }, + "response": { + "feedDocumentId": "0356cf79-b8b0-4226-b4b9-0ee058ea5760", + "url": "https:\/\/d34o8swod1owfl.cloudfront.net\/Feed_101__POST_PRODUCT_DATA_.xml" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "feedDocumentId": { + "value": "badDocumentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "An error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "CreateFeedResponse": { + "required": [ + "feedId" + ], + "type": "object", + "properties": { + "feedId": { + "type": "string", + "description": "The identifier for the feed. This identifier is unique only in combination with a seller ID." + } + }, + "description": "Response schema." + }, + "Feed": { + "required": [ + "createdTime", + "feedId", + "feedType", + "processingStatus" + ], + "type": "object", + "properties": { + "feedId": { + "type": "string", + "description": "The identifier for the feed. This identifier is unique only in combination with a seller ID." + }, + "feedType": { + "type": "string", + "description": "The feed type." + }, + "marketplaceIds": { + "type": "array", + "description": "A list of identifiers for the marketplaces that the feed is applied to.", + "items": { + "type": "string" + } + }, + "createdTime": { + "type": "string", + "description": "The date and time when the feed was created, in ISO 8601 date time format.", + "format": "date-time" + }, + "processingStatus": { + "type": "string", + "description": "The processing status of the feed.", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The feed was cancelled before it started processing." + }, + { + "value": "DONE", + "description": "The feed has completed processing. Examine the contents of the result document to determine if there were any errors during processing." + }, + { + "value": "FATAL", + "description": "The feed was aborted due to a fatal error. Some, none, or all of the operations within the feed may have completed successfully." + }, + { + "value": "IN_PROGRESS", + "description": "The feed is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The feed has not yet started processing. It may be waiting for another IN_PROGRESS feed." + } + ] + }, + "processingStartTime": { + "type": "string", + "description": "The date and time when feed processing started, in ISO 8601 date time format.", + "format": "date-time" + }, + "processingEndTime": { + "type": "string", + "description": "The date and time when feed processing completed, in ISO 8601 date time format.", + "format": "date-time" + }, + "resultFeedDocumentId": { + "type": "string", + "description": "The identifier for the feed document. This identifier is unique only in combination with a seller ID." + } + }, + "description": "Detailed information about the feed." + }, + "FeedList": { + "type": "array", + "description": "A list of feeds.", + "items": { + "$ref": "#\/components\/schemas\/Feed" + } + }, + "GetFeedsResponse": { + "required": [ + "feeds" + ], + "type": "object", + "properties": { + "feeds": { + "$ref": "#\/components\/schemas\/FeedList" + }, + "nextToken": { + "type": "string", + "description": "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." + } + }, + "description": "Response schema." + }, + "FeedDocument": { + "required": [ + "feedDocumentId", + "url" + ], + "type": "object", + "properties": { + "feedDocumentId": { + "type": "string", + "description": "The identifier for the feed document. This identifier is unique only in combination with a seller ID." + }, + "url": { + "type": "string", + "description": "A presigned URL for the feed document. If `compressionAlgorithm` is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes." + }, + "compressionAlgorithm": { + "type": "string", + "description": "If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to [Step 7. Download the feed processing report](doc:feeds-api-v2021-06-30-use-case-guide#step-7-download-the-feed-processing-report) in the use case guide, where sample code is provided.", + "enum": [ + "GZIP" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GZIP", + "description": "The gzip compression algorithm." + } + ] + } + }, + "description": "Information required for the feed document." + }, + "FeedOptions": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional options to control the feed. These vary by feed type." + }, + "CreateFeedSpecification": { + "required": [ + "feedType", + "inputFeedDocumentId", + "marketplaceIds" + ], + "type": "object", + "properties": { + "feedType": { + "type": "string", + "description": "The feed type." + }, + "marketplaceIds": { + "maxItems": 25, + "minItems": 1, + "type": "array", + "description": "A list of identifiers for marketplaces that you want the feed to be applied to.", + "items": { + "type": "string" + } + }, + "inputFeedDocumentId": { + "type": "string", + "description": "The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation." + }, + "feedOptions": { + "$ref": "#\/components\/schemas\/FeedOptions" + } + }, + "description": "Information required to create the feed." + }, + "CreateFeedDocumentSpecification": { + "required": [ + "contentType" + ], + "type": "object", + "properties": { + "contentType": { + "type": "string", + "description": "The content type of the feed." + } + }, + "description": "Specifies the content type for the createFeedDocument operation." + }, + "CreateFeedDocumentResponse": { + "required": [ + "feedDocumentId", + "url" + ], + "type": "object", + "properties": { + "feedDocumentId": { + "type": "string", + "description": "The identifier of the feed document." + }, + "url": { + "type": "string", + "description": "The presigned URL for uploading the feed contents. This URL expires after 5 minutes." + } + }, + "description": "Information required to upload a feed document's contents." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/finances/v0.json b/resources/models/seller/finances/v0.json new file mode 100644 index 000000000..fd57cb2b2 --- /dev/null +++ b/resources/models/seller/finances/v0.json @@ -0,0 +1,3153 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Finances", + "description": "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.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/finances\/v0\/financialEventGroups": { + "get": { + "description": "Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your financial events.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listFinancialEventGroups", + "parameters": [ + { + "name": "MaxResultsPerPage", + "in": "query", + "description": "The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 100 + } + }, + { + "name": "FinancialEventGroupStartedBefore", + "in": "query", + "description": "A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "FinancialEventGroupStartedAfter", + "in": "query", + "description": "A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 1 + }, + "FinancialEventGroupStartedBefore": { + "value": "2019-10-31" + }, + "FinancialEventGroupStartedAfter": { + "value": "2019-10-13" + } + } + }, + "response": { + "payload": { + "NextToken": "3493805734095308457308475", + "FinancialEventGroupList": [ + { + "FinancialEventGroupId": "1", + "ProcessingStatus": "PROCESSED", + "FundTransferStatus": "TRANSFERED", + "OriginalTotal": { + "CurrencyCode": "USD", + "CurrencyAmount": 10.34 + }, + "ConvertedTotal": { + "CurrencyCode": "USD", + "CurrencyAmount": 39.43 + }, + "FundTransferDate": "2020-02-07T14:38:42.128Z", + "TraceId": "34550454504545", + "AccountTail": "4854564857", + "BeginningBalance": { + "CurrencyCode": "USD", + "CurrencyAmount": 55.33 + }, + "FinancialEventGroupStart": "2020-02-07T14:38:42.128Z", + "FinancialEventGroupEnd": "2020-02-07T14:38:42.128Z" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 10 + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Date range is invalid." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsResponse" + } + } + } + } + }, + "tags": [ + "FinancesV0" + ] + } + }, + "\/finances\/v0\/financialEventGroups\/{eventGroupId}\/financialEvents": { + "get": { + "description": "Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events.\n\n**Note:** This operation will only retrieve group's data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listFinancialEventsByGroupId", + "parameters": [ + { + "name": "MaxResultsPerPage", + "in": "query", + "description": "The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 100 + } + }, + { + "name": "PostedAfter", + "in": "query", + "description": "A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "PostedBefore", + "in": "query", + "description": "A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "eventGroupId", + "in": "path", + "description": "The identifier of the financial event group to which the events belong.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 10 + }, + "eventGroupId": { + "value": "485734534857" + } + } + }, + "response": { + "payload": { + "NextToken": "Next token value", + "FinancialEvents": { + "ChargebackEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "SellerOrderId": "454645645656456", + "MarketplaceName": "1", + "OrderChargeList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "OrderChargeAdjustmentList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ShipmentFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ShipmentFeeAdjustmentList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "OrderFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "OrderFeeAdjustmentList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "DirectPaymentList": [ + { + "DirectPaymentType": "StoredValueCardRevenue", + "DirectPaymentAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "PostedDate": "2020-02-05T13:56:00.363Z", + "ShipmentItemList": [ + { + "SellerSKU": "456454455464", + "OrderItemId": "4565465645646", + "OrderAdjustmentItemId": "456456465464", + "QuantityShipped": 0, + "ItemChargeList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemChargeAdjustmentList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemFeeAdjustmentList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemTaxWithheldList": [ + { + "TaxCollectionModel": "Free", + "TaxesWithheld": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ], + "PromotionList": [ + { + "PromotionType": "Free", + "PromotionId": "546564565", + "PromotionAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "PromotionAdjustmentList": [ + { + "PromotionType": "Free", + "PromotionId": "546564565", + "PromotionAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "CostOfPointsGranted": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "CostOfPointsReturned": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ShipmentItemAdjustmentList": [ + { + "SellerSKU": "456454455464", + "OrderItemId": "4565465645646", + "OrderAdjustmentItemId": "456456465464", + "QuantityShipped": 0, + "ItemChargeList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemChargeAdjustmentList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemFeeAdjustmentList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ItemTaxWithheldList": [ + { + "TaxCollectionModel": "Free", + "TaxesWithheld": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ], + "PromotionList": [ + { + "PromotionType": "Free", + "PromotionId": "546564565", + "PromotionAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "PromotionAdjustmentList": [ + { + "PromotionType": "Free", + "PromotionId": "546564565", + "PromotionAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "CostOfPointsGranted": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "CostOfPointsReturned": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ], + "ImagingServicesFeeEventList": [ + { + "ImagingRequestBillingItemID": "456456456", + "ASIN": "4564565456456546456", + "PostedDate": "2020-02-05T13:56:00.363Z", + "FeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ], + "NetworkComminglingTransactionEventList": [ + { + "TransactionType": "Free", + "PostedDate": "2020-02-05T13:56:00.363Z", + "NetCoTransactionID": "4565645", + "SwapReason": "None", + "ASIN": "464567656576", + "MarketplaceId": "string", + "TaxExclusiveAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TaxAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "AffordabilityExpenseReversalEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "PostedDate": "2020-02-05T13:56:00.363Z", + "MarketplaceId": "1", + "TransactionType": "Free", + "BaseExpense": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TaxTypeCGST": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TaxTypeSGST": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TaxTypeIGST": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TotalExpense": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "TrialShipmentEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "FinancialEventGroupId": "1", + "PostedDate": "2020-02-05T13:56:00.363Z", + "SKU": "456454455464", + "FeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ], + "TaxWithholdingEventList": [ + { + "PostedDate": "2020-02-05T13:56:00.363Z", + "BaseAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "WithheldAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TaxWithholdingPeriod": { + "StartDate": "2020-02-05T13:56:00.363Z", + "EndDate": "2020-02-05T13:56:00.363Z" + } + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "eventGroupId": { + "value": "BADID" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Bad event group ID provided." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + } + }, + "tags": [ + "FinancesV0" + ] + } + }, + "\/finances\/v0\/orders\/{orderId}\/financialEvents": { + "get": { + "description": "Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listFinancialEventsByOrderId", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "MaxResultsPerPage", + "in": "query", + "description": "The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 100 + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Financial Events successfully retrieved.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 10 + }, + "orderId": { + "value": "485-734-5434857" + } + } + }, + "response": { + "payload": { + "NextToken": "Next token value", + "FinancialEvents": { + "RetrochargeEventList": [ + { + "RetrochargeEventType": "Retrocharge", + "AmazonOrderId": "444-555-3343433", + "PostedDate": "2020-02-05T13:56:00.363Z", + "BaseTax": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "ShippingTax": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "MarketplaceName": "1", + "RetrochargeTaxWithheldList": [ + { + "TaxCollectionModel": "Free", + "TaxesWithheld": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ] + } + ], + "RentalTransactionEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "RentalEventType": "string", + "ExtensionLength": 0, + "PostedDate": "2020-02-05T13:56:00.363Z", + "RentalChargeList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "RentalFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "MarketplaceName": "1", + "RentalInitialValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "RentalReimbursement": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "RentalTaxWithheldList": [ + { + "TaxCollectionModel": "Free", + "TaxesWithheld": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ] + } + ], + "ProductAdsPaymentEventList": [ + { + "postedDate": "2020-02-05T13:56:00.363Z", + "transactionType": "Free", + "invoiceId": "3454535453", + "baseValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "taxValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "transactionValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "ServiceFeeEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "FeeReason": "Free", + "FeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "SellerSKU": "456454455464", + "FnSKU": "Fn134", + "FeeDescription": "FeeDescription", + "ASIN": "KJHJ457648GHD" + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "BAD-ORDER" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Bad order ID provided." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + } + }, + "tags": [ + "FinancesV0" + ] + } + }, + "\/finances\/v0\/financialEvents": { + "get": { + "description": "Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don't show up in responses until in they are released.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listFinancialEvents", + "parameters": [ + { + "name": "MaxResultsPerPage", + "in": "query", + "description": "The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 100 + } + }, + { + "name": "PostedAfter", + "in": "query", + "description": "A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "PostedBefore", + "in": "query", + "description": "A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 10 + }, + "NextToken": { + "value": "jehgri34yo7jr9e8f984tr9i4o" + } + } + }, + "response": { + "payload": { + "NextToken": "Next token value", + "FinancialEvents": { + "PayWithAmazonEventList": [ + { + "SellerOrderId": "454645645656456", + "TransactionPostedDate": "2020-02-05T13:56:00.363Z", + "BusinessObjectType": "Free", + "SalesChannel": "None", + "Charge": { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + }, + "FeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "PaymentAmountType": "Tax", + "AmountDescription": "Tax", + "FulfillmentChannel": "FulfillmentChannel", + "StoreName": "Etsy" + } + ], + "ServiceProviderCreditEventList": [ + { + "ProviderTransactionType": "Free", + "SellerOrderId": "454645645656456", + "MarketplaceId": "1", + "MarketplaceCountryCode": "US", + "SellerId": "4564565546", + "SellerStoreName": "Etsy", + "ProviderId": "1", + "ProviderStoreName": "Etsy", + "TransactionAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "TransactionCreationDate": "2020-02-05T13:56:00.363Z" + } + ], + "RentalTransactionEventList": [ + { + "AmazonOrderId": "444-555-3343433", + "RentalEventType": "string", + "ExtensionLength": 0, + "PostedDate": "2020-02-05T13:56:00.363Z", + "RentalChargeList": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "RentalFeeList": [ + { + "FeeType": "FixedClosingFee", + "FeeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ], + "MarketplaceName": "1", + "RentalInitialValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "RentalReimbursement": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "RentalTaxWithheldList": [ + { + "TaxCollectionModel": "Free", + "TaxesWithheld": [ + { + "ChargeType": "Tax", + "ChargeAmount": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + ] + } + ], + "ProductAdsPaymentEventList": [ + { + "postedDate": "2020-02-05T13:56:00.363Z", + "transactionType": "Free", + "invoiceId": "3454535453", + "baseValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "taxValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + }, + "transactionValue": { + "CurrencyCode": "USD", + "CurrencyAmount": 25.37 + } + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MaxResultsPerPage": { + "value": 2 + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Input not valid." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListFinancialEventsResponse" + } + } + } + } + }, + "tags": [ + "FinancesV0" + ] + } + } + }, + "components": { + "schemas": { + "AdhocDisbursementEvent": { + "type": "object", + "properties": { + "TransactionType": { + "type": "string", + "description": "Indicates the type of transaction.\n\nExample: \"Disbursed to Amazon Gift Card balance\"" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "TransactionId": { + "type": "string", + "description": "The identifier for the transaction." + }, + "TransactionAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event related to an Adhoc Disbursement." + }, + "AdhocDisbursementEventList": { + "type": "array", + "description": "A list of `AdhocDisbursement` events.", + "items": { + "$ref": "#\/components\/schemas\/AdhocDisbursementEvent" + } + }, + "AdjustmentEvent": { + "type": "object", + "properties": { + "AdjustmentType": { + "type": "string", + "description": "The type of adjustment.\n\nPossible values:\n\n* FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged.\n\n* ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back.\n\n* PostageBilling - The amount paid by a seller for shipping labels.\n\n* PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded.\n\n* LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged.\n\n* CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace.\n\n* ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace.\n\n* SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "AdjustmentAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "AdjustmentItemList": { + "$ref": "#\/components\/schemas\/AdjustmentItemList" + } + }, + "description": "An adjustment to the seller's account." + }, + "AdjustmentEventList": { + "type": "array", + "description": "A list of adjustment event information for the seller's account.", + "items": { + "$ref": "#\/components\/schemas\/AdjustmentEvent" + } + }, + "AdjustmentItem": { + "type": "object", + "properties": { + "Quantity": { + "type": "string", + "description": "Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement." + }, + "PerUnitAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TotalAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API." + }, + "FnSKU": { + "type": "string", + "description": "A unique identifier assigned to products stored in and fulfilled from a fulfillment center." + }, + "ProductDescription": { + "type": "string", + "description": "A short description of the item." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + } + }, + "description": "An item in an adjustment to the seller's account." + }, + "AdjustmentItemList": { + "type": "array", + "description": "A list of information about items in an adjustment to the seller's account.", + "items": { + "$ref": "#\/components\/schemas\/AdjustmentItem" + } + }, + "AffordabilityExpenseEvent": { + "required": [ + "TaxTypeCGST", + "TaxTypeIGST", + "TaxTypeSGST" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "MarketplaceId": { + "type": "string", + "description": "An encrypted, Amazon-defined marketplace identifier." + }, + "TransactionType": { + "type": "string", + "description": "Indicates the type of transaction. \n\nPossible values:\n\n* Charge - For an affordability promotion expense.\n\n* Refund - For an affordability promotion expense reversal." + }, + "BaseExpense": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxTypeCGST": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxTypeSGST": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxTypeIGST": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TotalExpense": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An expense related to an affordability promotion." + }, + "AffordabilityExpenseEventList": { + "type": "array", + "description": "A list of expense information related to an affordability promotion.", + "items": { + "$ref": "#\/components\/schemas\/AffordabilityExpenseEvent" + } + }, + "BigDecimal": { + "type": "number" + }, + "ChargeComponent": { + "type": "object", + "properties": { + "ChargeType": { + "type": "string", + "description": "The type of charge." + }, + "ChargeAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A charge on the seller's account.\n\nPossible values:\n\n* Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered.\n\n* Tax - The tax collected by the seller on the Principal.\n\n* MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal.\n\n* MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge.\n\n* MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge.\n\n* MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges.\n\n* Discount - The promotional discount for an order item.\n\n* TaxDiscount - The tax amount deducted for promotional rebates.\n\n* CODItemCharge - The COD charge for an order item.\n\n* CODItemTaxCharge - The tax collected by the seller on a CODItemCharge.\n\n* CODOrderCharge - The COD charge for an order.\n\n* CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge.\n\n* CODShippingCharge - Shipping charges for a COD order.\n\n* CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge.\n\n* ShippingCharge - The shipping charge.\n\n* ShippingTax - The tax collected by the seller on a ShippingCharge.\n\n* Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience.\n\n* Giftwrap - The gift wrap charge.\n\n* GiftwrapTax - The tax collected by the seller on a Giftwrap charge.\n\n* RestockingFee - The charge applied to the buyer when returning a product in certain categories.\n\n* ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault.\n\n* PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction.\n\n* GenericDeduction - A generic bad debt deduction.\n\n* FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item.\n\n* PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces.\n\n* ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program.\n\n* SAFE-TReimbursement - The SAFE-T claim amount for the item.\n\n* TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST).\n\n* TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST).\n\n* TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST).\n\n* TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST)." + }, + "ChargeComponentList": { + "type": "array", + "description": "A list of charge information on the seller's account.", + "items": { + "$ref": "#\/components\/schemas\/ChargeComponent" + } + }, + "ChargeInstrument": { + "type": "object", + "properties": { + "Description": { + "type": "string", + "description": "A short description of the charge instrument." + }, + "Tail": { + "type": "string", + "description": "The account tail (trailing digits) of the charge instrument." + }, + "Amount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A payment instrument." + }, + "ChargeInstrumentList": { + "type": "array", + "description": "A list of payment instruments.", + "items": { + "$ref": "#\/components\/schemas\/ChargeInstrument" + } + }, + "ChargeRefundEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "ReasonCode": { + "type": "string", + "description": "The reason given for a charge refund.\n\nExample: `SubscriptionFeeCorrection`" + }, + "ReasonCodeDescription": { + "type": "string", + "description": "A description of the Reason Code. \n\nExample: `SubscriptionFeeCorrection`" + }, + "ChargeRefundTransactions": { + "$ref": "#\/components\/schemas\/ChargeRefundTransactions" + } + }, + "description": "An event related to charge refund." + }, + "ChargeRefundEventList": { + "type": "array", + "description": "A list of charge refund events.", + "items": { + "$ref": "#\/components\/schemas\/ChargeRefundEvent" + } + }, + "ChargeRefundTransaction": { + "type": "object", + "properties": { + "ChargeAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "ChargeType": { + "type": "string", + "description": "The type of charge." + } + }, + "description": "The charge refund transaction." + }, + "ChargeRefundTransactions": { + "type": "array", + "description": "A list of `ChargeRefund` transactions.", + "items": { + "$ref": "#\/components\/schemas\/ChargeRefundTransaction" + } + }, + "CouponPaymentEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "CouponId": { + "type": "string", + "description": "A coupon identifier." + }, + "SellerCouponDescription": { + "type": "string", + "description": "The description provided by the seller when they created the coupon." + }, + "ClipOrRedemptionCount": { + "type": "integer", + "description": "The number of coupon clips or redemptions.", + "format": "int64" + }, + "PaymentEventId": { + "type": "string", + "description": "A payment event identifier." + }, + "FeeComponent": { + "$ref": "#\/components\/schemas\/FeeComponent" + }, + "ChargeComponent": { + "$ref": "#\/components\/schemas\/ChargeComponent" + }, + "TotalAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event related to coupon payments." + }, + "CouponPaymentEventList": { + "type": "array", + "description": "A list of coupon payment event information.", + "items": { + "$ref": "#\/components\/schemas\/CouponPaymentEvent" + } + }, + "Currency": { + "type": "object", + "properties": { + "CurrencyCode": { + "type": "string", + "description": "The three-digit currency code in ISO 4217 format." + }, + "CurrencyAmount": { + "$ref": "#\/components\/schemas\/BigDecimal" + } + }, + "description": "A currency type and amount." + }, + "Date": { + "type": "string", + "format": "date-time" + }, + "DebtRecoveryEvent": { + "type": "object", + "properties": { + "DebtRecoveryType": { + "type": "string", + "description": "The debt recovery type.\n\nPossible values:\n\n* DebtPayment\n\n* DebtPaymentFailure\n\n*DebtAdjustment" + }, + "RecoveryAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "OverPaymentCredit": { + "$ref": "#\/components\/schemas\/Currency" + }, + "DebtRecoveryItemList": { + "$ref": "#\/components\/schemas\/DebtRecoveryItemList" + }, + "ChargeInstrumentList": { + "$ref": "#\/components\/schemas\/ChargeInstrumentList" + } + }, + "description": "A debt payment or debt adjustment." + }, + "DebtRecoveryEventList": { + "type": "array", + "description": "A list of debt recovery event information.", + "items": { + "$ref": "#\/components\/schemas\/DebtRecoveryEvent" + } + }, + "DebtRecoveryItem": { + "type": "object", + "properties": { + "RecoveryAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "OriginalAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "GroupBeginDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "GroupEndDate": { + "$ref": "#\/components\/schemas\/Date" + } + }, + "description": "An item of a debt payment or debt adjustment." + }, + "DebtRecoveryItemList": { + "type": "array", + "description": "A list of debt recovery item information.", + "items": { + "$ref": "#\/components\/schemas\/DebtRecoveryItem" + } + }, + "DirectPayment": { + "type": "object", + "properties": { + "DirectPaymentType": { + "type": "string", + "description": "The type of payment.\n\nPossible values:\n\n* StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card.\n\n* StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded.\n\n* PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon.\n\n* PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded.\n\n* CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer.\n\n* CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded." + }, + "DirectPaymentAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A payment made directly to a seller." + }, + "DirectPaymentList": { + "type": "array", + "description": "A list of direct payment information.", + "items": { + "$ref": "#\/components\/schemas\/DirectPayment" + } + }, + "FailedAdhocDisbursementEventList": { + "type": "array", + "description": "A list of `FailedAdhocDisbursementEvent`s.", + "items": { + "$ref": "#\/components\/schemas\/FailedAdhocDisbursementEvent" + } + }, + "FailedAdhocDisbursementEvent": { + "type": "object", + "properties": { + "FundsTransfersType": { + "type": "string", + "description": "The type of fund transfer. \n\nExample \"Refund\"" + }, + "TransferId": { + "type": "string", + "description": "The transfer identifier." + }, + "DisbursementId": { + "type": "string", + "description": "The disbursement identifier." + }, + "PaymentDisbursementType": { + "type": "string", + "description": "The type of payment for disbursement. \n\nExample `CREDIT_CARD`" + }, + "Status": { + "type": "string", + "description": "The status of the failed `AdhocDisbursement`. \n\nExample `HARD_DECLINED`" + }, + "TransferAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + } + }, + "description": "Failed ad hoc disbursement event list." + }, + "FBALiquidationEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "OriginalRemovalOrderId": { + "type": "string", + "description": "The identifier for the original removal order." + }, + "LiquidationProceedsAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "LiquidationFeeAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A payment event for Fulfillment by Amazon (FBA) inventory liquidation. This event is used only in the US marketplace." + }, + "FBALiquidationEventList": { + "type": "array", + "description": "A list of FBA inventory liquidation payment events.", + "items": { + "$ref": "#\/components\/schemas\/FBALiquidationEvent" + } + }, + "FeeComponent": { + "type": "object", + "properties": { + "FeeType": { + "type": "string", + "description": "The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https:\/\/sellercentral.amazon.com\/gp\/help\/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https:\/\/sellercentral.amazon.com\/gp\/help\/201074400) on Seller Central." + }, + "FeeAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A fee associated with the event." + }, + "FeeComponentList": { + "type": "array", + "description": "A list of fee component information.", + "items": { + "$ref": "#\/components\/schemas\/FeeComponent" + } + }, + "FinancialEventGroup": { + "type": "object", + "properties": { + "FinancialEventGroupId": { + "type": "string", + "description": "A unique identifier for the financial event group." + }, + "ProcessingStatus": { + "type": "string", + "description": "The processing status of the financial event group indicates whether the balance of the financial event group is settled.\n\nPossible values:\n\n* Open\n\n* Closed" + }, + "FundTransferStatus": { + "type": "string", + "description": "The status of the fund transfer." + }, + "OriginalTotal": { + "$ref": "#\/components\/schemas\/Currency" + }, + "ConvertedTotal": { + "$ref": "#\/components\/schemas\/Currency" + }, + "FundTransferDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "TraceId": { + "type": "string", + "description": "The trace identifier used by sellers to look up transactions externally." + }, + "AccountTail": { + "type": "string", + "description": "The account tail of the payment instrument." + }, + "BeginningBalance": { + "$ref": "#\/components\/schemas\/Currency" + }, + "FinancialEventGroupStart": { + "$ref": "#\/components\/schemas\/Date" + }, + "FinancialEventGroupEnd": { + "$ref": "#\/components\/schemas\/Date" + } + }, + "description": "Information related to a financial event group." + }, + "FinancialEventGroupList": { + "type": "array", + "description": "A list of financial event group information.", + "items": { + "$ref": "#\/components\/schemas\/FinancialEventGroup" + } + }, + "FinancialEvents": { + "type": "object", + "properties": { + "ShipmentEventList": { + "$ref": "#\/components\/schemas\/ShipmentEventList" + }, + "ShipmentSettleEventList": { + "$ref": "#\/components\/schemas\/ShipmentSettleEventList" + }, + "RefundEventList": { + "$ref": "#\/components\/schemas\/ShipmentEventList" + }, + "GuaranteeClaimEventList": { + "$ref": "#\/components\/schemas\/ShipmentEventList" + }, + "ChargebackEventList": { + "$ref": "#\/components\/schemas\/ShipmentEventList" + }, + "PayWithAmazonEventList": { + "$ref": "#\/components\/schemas\/PayWithAmazonEventList" + }, + "ServiceProviderCreditEventList": { + "$ref": "#\/components\/schemas\/SolutionProviderCreditEventList" + }, + "RetrochargeEventList": { + "$ref": "#\/components\/schemas\/RetrochargeEventList" + }, + "RentalTransactionEventList": { + "$ref": "#\/components\/schemas\/RentalTransactionEventList" + }, + "ProductAdsPaymentEventList": { + "$ref": "#\/components\/schemas\/ProductAdsPaymentEventList" + }, + "ServiceFeeEventList": { + "$ref": "#\/components\/schemas\/ServiceFeeEventList" + }, + "SellerDealPaymentEventList": { + "$ref": "#\/components\/schemas\/SellerDealPaymentEventList" + }, + "DebtRecoveryEventList": { + "$ref": "#\/components\/schemas\/DebtRecoveryEventList" + }, + "LoanServicingEventList": { + "$ref": "#\/components\/schemas\/LoanServicingEventList" + }, + "AdjustmentEventList": { + "$ref": "#\/components\/schemas\/AdjustmentEventList" + }, + "SAFETReimbursementEventList": { + "$ref": "#\/components\/schemas\/SAFETReimbursementEventList" + }, + "SellerReviewEnrollmentPaymentEventList": { + "$ref": "#\/components\/schemas\/SellerReviewEnrollmentPaymentEventList" + }, + "FBALiquidationEventList": { + "$ref": "#\/components\/schemas\/FBALiquidationEventList" + }, + "CouponPaymentEventList": { + "$ref": "#\/components\/schemas\/CouponPaymentEventList" + }, + "ImagingServicesFeeEventList": { + "$ref": "#\/components\/schemas\/ImagingServicesFeeEventList" + }, + "NetworkComminglingTransactionEventList": { + "$ref": "#\/components\/schemas\/NetworkComminglingTransactionEventList" + }, + "AffordabilityExpenseEventList": { + "$ref": "#\/components\/schemas\/AffordabilityExpenseEventList" + }, + "AffordabilityExpenseReversalEventList": { + "$ref": "#\/components\/schemas\/AffordabilityExpenseEventList" + }, + "RemovalShipmentEventList": { + "$ref": "#\/components\/schemas\/RemovalShipmentEventList" + }, + "RemovalShipmentAdjustmentEventList": { + "$ref": "#\/components\/schemas\/RemovalShipmentAdjustmentEventList" + }, + "TrialShipmentEventList": { + "$ref": "#\/components\/schemas\/TrialShipmentEventList" + }, + "TDSReimbursementEventList": { + "$ref": "#\/components\/schemas\/TDSReimbursementEventList" + }, + "AdhocDisbursementEventList": { + "$ref": "#\/components\/schemas\/AdhocDisbursementEventList" + }, + "TaxWithholdingEventList": { + "$ref": "#\/components\/schemas\/TaxWithholdingEventList" + }, + "ChargeRefundEventList": { + "$ref": "#\/components\/schemas\/ChargeRefundEventList" + }, + "FailedAdhocDisbursementEventList": { + "$ref": "#\/components\/schemas\/FailedAdhocDisbursementEventList" + }, + "ValueAddedServiceChargeEventList": { + "$ref": "#\/components\/schemas\/ValueAddedServiceChargeEventList" + }, + "CapacityReservationBillingEventList": { + "$ref": "#\/components\/schemas\/CapacityReservationBillingEventList" + } + }, + "description": "Contains all information related to a financial event." + }, + "ImagingServicesFeeEvent": { + "type": "object", + "properties": { + "ImagingRequestBillingItemID": { + "type": "string", + "description": "The identifier for the imaging services request." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "FeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + } + }, + "description": "A fee event related to Amazon Imaging services." + }, + "ImagingServicesFeeEventList": { + "type": "array", + "description": "A list of fee events related to Amazon Imaging services.", + "items": { + "$ref": "#\/components\/schemas\/ImagingServicesFeeEvent" + } + }, + "ListFinancialEventGroupsPayload": { + "type": "object", + "properties": { + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "FinancialEventGroupList": { + "$ref": "#\/components\/schemas\/FinancialEventGroupList" + } + }, + "description": "The payload for the listFinancialEventGroups operation." + }, + "ListFinancialEventGroupsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListFinancialEventGroupsPayload" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the listFinancialEventGroups operation." + }, + "ListFinancialEventsPayload": { + "type": "object", + "properties": { + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "FinancialEvents": { + "$ref": "#\/components\/schemas\/FinancialEvents" + } + }, + "description": "The payload for the listFinancialEvents operation." + }, + "ListFinancialEventsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ListFinancialEventsPayload" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the listFinancialEvents operation." + }, + "LoanServicingEvent": { + "type": "object", + "properties": { + "LoanAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "SourceBusinessEventType": { + "type": "string", + "description": "The type of event.\n\nPossible values:\n\n* LoanAdvance\n\n* LoanPayment\n\n* LoanRefund" + } + }, + "description": "A loan advance, loan payment, or loan refund." + }, + "LoanServicingEventList": { + "type": "array", + "description": "A list of loan servicing events.", + "items": { + "$ref": "#\/components\/schemas\/LoanServicingEvent" + } + }, + "NetworkComminglingTransactionEvent": { + "type": "object", + "properties": { + "TransactionType": { + "type": "string", + "description": "The type of network item swap.\n\nPossible values:\n\n* NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace.\n\n* ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "NetCoTransactionID": { + "type": "string", + "description": "The identifier for the network item swap." + }, + "SwapReason": { + "type": "string", + "description": "The reason for the network item swap." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the swapped item." + }, + "MarketplaceId": { + "type": "string", + "description": "The marketplace in which the event took place." + }, + "TaxExclusiveAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A network commingling transaction event." + }, + "NetworkComminglingTransactionEventList": { + "type": "array", + "description": "A list of network commingling transaction events.", + "items": { + "$ref": "#\/components\/schemas\/NetworkComminglingTransactionEvent" + } + }, + "PayWithAmazonEvent": { + "type": "object", + "properties": { + "SellerOrderId": { + "type": "string", + "description": "An order identifier that is specified by the seller." + }, + "TransactionPostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "BusinessObjectType": { + "type": "string", + "description": "The type of business object." + }, + "SalesChannel": { + "type": "string", + "description": "The sales channel for the transaction." + }, + "Charge": { + "$ref": "#\/components\/schemas\/ChargeComponent" + }, + "FeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "PaymentAmountType": { + "type": "string", + "description": "The type of payment.\n\nPossible values:\n\n* Sales" + }, + "AmountDescription": { + "type": "string", + "description": "A short description of this payment event." + }, + "FulfillmentChannel": { + "type": "string", + "description": "The fulfillment channel.\n\nPossible values:\n\n* AFN - Amazon Fulfillment Network (Fulfillment by Amazon)\n\n* MFN - Merchant Fulfillment Network (self-fulfilled)" + }, + "StoreName": { + "type": "string", + "description": "The store name where the event occurred." + } + }, + "description": "An event related to the seller's Pay with Amazon account." + }, + "PayWithAmazonEventList": { + "type": "array", + "description": "A list of events related to the seller's Pay with Amazon account.", + "items": { + "$ref": "#\/components\/schemas\/PayWithAmazonEvent" + } + }, + "ProductAdsPaymentEvent": { + "type": "object", + "properties": { + "postedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "transactionType": { + "type": "string", + "description": "Indicates if the transaction is for a charge or a refund.\n\nPossible values:\n\n* charge - Charge\n\n* refund - Refund" + }, + "invoiceId": { + "type": "string", + "description": "Identifier for the invoice that the transaction appears in." + }, + "baseValue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "taxValue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "transactionValue": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A Sponsored Products payment event." + }, + "ProductAdsPaymentEventList": { + "type": "array", + "description": "A list of sponsored products payment events.", + "items": { + "$ref": "#\/components\/schemas\/ProductAdsPaymentEvent" + } + }, + "Promotion": { + "type": "object", + "properties": { + "PromotionType": { + "type": "string", + "description": "The type of promotion." + }, + "PromotionId": { + "type": "string", + "description": "The seller-specified identifier for the promotion." + }, + "PromotionAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A promotion applied to an item." + }, + "PromotionList": { + "type": "array", + "description": "A list of promotions.", + "items": { + "$ref": "#\/components\/schemas\/Promotion" + } + }, + "RemovalShipmentEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "MerchantOrderId": { + "type": "string", + "description": "The merchant removal orderId." + }, + "OrderId": { + "type": "string", + "description": "The identifier for the removal shipment order." + }, + "TransactionType": { + "type": "string", + "description": "The type of removal order.\n\nPossible values:\n\n* WHOLESALE_LIQUIDATION" + }, + "RemovalShipmentItemList": { + "$ref": "#\/components\/schemas\/RemovalShipmentItemList" + } + }, + "description": "A removal shipment event for a removal order." + }, + "RemovalShipmentEventList": { + "type": "array", + "description": "A list of removal shipment event information.", + "items": { + "$ref": "#\/components\/schemas\/RemovalShipmentEvent" + } + }, + "RemovalShipmentItem": { + "type": "object", + "properties": { + "RemovalShipmentItemId": { + "type": "string", + "description": "An identifier for an item in a removal shipment." + }, + "TaxCollectionModel": { + "type": "string", + "description": "The tax collection model applied to the item.\n\nPossible values:\n\n* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.\n\n* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon." + }, + "FulfillmentNetworkSKU": { + "type": "string", + "description": "The Amazon fulfillment network SKU for the item." + }, + "Quantity": { + "type": "integer", + "description": "The quantity of the item.", + "format": "int32" + }, + "Revenue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "FeeAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxWithheld": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "Item-level information for a removal shipment." + }, + "RemovalShipmentItemList": { + "type": "array", + "description": "A list of information about removal shipment items.", + "items": { + "$ref": "#\/components\/schemas\/RemovalShipmentItem" + } + }, + "RemovalShipmentAdjustmentEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "AdjustmentEventId": { + "type": "string", + "description": "The unique identifier for the adjustment event." + }, + "MerchantOrderId": { + "type": "string", + "description": "The merchant removal orderId." + }, + "OrderId": { + "type": "string", + "description": "The orderId for shipping inventory." + }, + "TransactionType": { + "type": "string", + "description": "The type of removal order.\n\nPossible values:\n\n* WHOLESALE_LIQUIDATION." + }, + "RemovalShipmentItemAdjustmentList": { + "type": "array", + "description": "A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory.", + "items": { + "$ref": "#\/components\/schemas\/RemovalShipmentItemAdjustment" + } + } + }, + "description": "A financial adjustment event for FBA liquidated inventory. A positive value indicates money owed to Amazon by the buyer (for example, when the charge was incorrectly calculated as less than it should be). A negative value indicates a full or partial refund owed to the buyer (for example, when the buyer receives damaged items or fewer items than ordered)." + }, + "RemovalShipmentAdjustmentEventList": { + "type": "array", + "description": "A comma-delimited list of Removal shipmentAdjustment details for FBA inventory.", + "items": { + "$ref": "#\/components\/schemas\/RemovalShipmentAdjustmentEvent" + } + }, + "RemovalShipmentItemAdjustment": { + "type": "object", + "properties": { + "RemovalShipmentItemId": { + "type": "string", + "description": "An identifier for an item in a removal shipment." + }, + "TaxCollectionModel": { + "type": "string", + "description": "The tax collection model applied to the item.\n\nPossible values:\n\n* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.\n\n* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon." + }, + "FulfillmentNetworkSKU": { + "type": "string", + "description": "The Amazon fulfillment network SKU for the item." + }, + "AdjustedQuantity": { + "type": "integer", + "description": "Adjusted quantity of removal shipmentItemAdjustment items.", + "format": "int32" + }, + "RevenueAdjustment": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxAmountAdjustment": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxWithheldAdjustment": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "Item-level information for a removal shipment item adjustment." + }, + "RentalTransactionEvent": { + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "RentalEventType": { + "type": "string", + "description": "The type of rental event.\n\nPossible values:\n\n* RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item.\n\n* RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period.\n\n* RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item.\n\n* RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item.\n\n* RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon.\n\n* RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge.\n\n* RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item." + }, + "ExtensionLength": { + "type": "integer", + "description": "The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events.", + "format": "int32" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "RentalChargeList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "RentalFeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "MarketplaceName": { + "type": "string", + "description": "The name of the marketplace." + }, + "RentalInitialValue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "RentalReimbursement": { + "$ref": "#\/components\/schemas\/Currency" + }, + "RentalTaxWithheldList": { + "$ref": "#\/components\/schemas\/TaxWithheldComponentList" + } + }, + "description": "An event related to a rental transaction." + }, + "RentalTransactionEventList": { + "type": "array", + "description": "A list of rental transaction event information.", + "items": { + "$ref": "#\/components\/schemas\/RentalTransactionEvent" + } + }, + "RetrochargeEvent": { + "type": "object", + "properties": { + "RetrochargeEventType": { + "type": "string", + "description": "The type of event.\n\nPossible values:\n\n* Retrocharge\n\n* RetrochargeReversal" + }, + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "BaseTax": { + "$ref": "#\/components\/schemas\/Currency" + }, + "ShippingTax": { + "$ref": "#\/components\/schemas\/Currency" + }, + "MarketplaceName": { + "type": "string", + "description": "The name of the marketplace where the retrocharge event occurred." + }, + "RetrochargeTaxWithheldList": { + "$ref": "#\/components\/schemas\/TaxWithheldComponentList" + } + }, + "description": "A retrocharge or retrocharge reversal." + }, + "RetrochargeEventList": { + "type": "array", + "description": "A list of information about Retrocharge or RetrochargeReversal events.", + "items": { + "$ref": "#\/components\/schemas\/RetrochargeEvent" + } + }, + "SAFETReimbursementEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "SAFETClaimId": { + "type": "string", + "description": "A SAFE-T claim identifier." + }, + "ReimbursedAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "ReasonCode": { + "type": "string", + "description": "Indicates why the seller was reimbursed." + }, + "SAFETReimbursementItemList": { + "$ref": "#\/components\/schemas\/SAFETReimbursementItemList" + } + }, + "description": "A SAFE-T claim reimbursement on the seller's account." + }, + "SAFETReimbursementEventList": { + "type": "array", + "description": "A list of SAFETReimbursementEvents.", + "items": { + "$ref": "#\/components\/schemas\/SAFETReimbursementEvent" + } + }, + "SAFETReimbursementItem": { + "type": "object", + "properties": { + "itemChargeList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "productDescription": { + "type": "string", + "description": "The description of the item as shown on the product detail page on the retail website." + }, + "quantity": { + "type": "string", + "description": "The number of units of the item being reimbursed." + } + }, + "description": "An item from a SAFE-T claim reimbursement." + }, + "SAFETReimbursementItemList": { + "type": "array", + "description": "A list of SAFETReimbursementItems.", + "items": { + "$ref": "#\/components\/schemas\/SAFETReimbursementItem" + } + }, + "SellerDealPaymentEvent": { + "type": "object", + "properties": { + "postedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "dealId": { + "type": "string", + "description": "The unique identifier of the deal." + }, + "dealDescription": { + "type": "string", + "description": "The internal description of the deal." + }, + "eventType": { + "type": "string", + "description": "The type of event: SellerDealComplete." + }, + "feeType": { + "type": "string", + "description": "The type of fee: RunLightningDealFee." + }, + "feeAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "taxAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "totalAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event linked to the payment of a fee related to the specified deal." + }, + "SellerDealPaymentEventList": { + "type": "array", + "description": "A list of payment events for deal-related fees.", + "items": { + "$ref": "#\/components\/schemas\/SellerDealPaymentEvent" + } + }, + "SellerReviewEnrollmentPaymentEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "EnrollmentId": { + "type": "string", + "description": "An enrollment identifier." + }, + "ParentASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program." + }, + "FeeComponent": { + "$ref": "#\/components\/schemas\/FeeComponent" + }, + "ChargeComponent": { + "$ref": "#\/components\/schemas\/ChargeComponent" + }, + "TotalAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A fee payment event for the Early Reviewer Program." + }, + "SellerReviewEnrollmentPaymentEventList": { + "type": "array", + "description": "A list of information about fee events for the Early Reviewer Program.", + "items": { + "$ref": "#\/components\/schemas\/SellerReviewEnrollmentPaymentEvent" + } + }, + "ServiceFeeEvent": { + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "FeeReason": { + "type": "string", + "description": "A short description of the service fee reason." + }, + "FeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API." + }, + "FnSKU": { + "type": "string", + "description": "A unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center." + }, + "FeeDescription": { + "type": "string", + "description": "A short description of the service fee event." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + } + }, + "description": "A service fee on the seller's account." + }, + "ServiceFeeEventList": { + "type": "array", + "description": "A list of information about service fee events.", + "items": { + "$ref": "#\/components\/schemas\/ServiceFeeEvent" + } + }, + "ShipmentEvent": { + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "SellerOrderId": { + "type": "string", + "description": "A seller-defined identifier for an order." + }, + "MarketplaceName": { + "type": "string", + "description": "The name of the marketplace where the event occurred." + }, + "OrderChargeList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "OrderChargeAdjustmentList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "ShipmentFeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "ShipmentFeeAdjustmentList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "OrderFeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "OrderFeeAdjustmentList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "DirectPaymentList": { + "$ref": "#\/components\/schemas\/DirectPaymentList" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "ShipmentItemList": { + "$ref": "#\/components\/schemas\/ShipmentItemList" + }, + "ShipmentItemAdjustmentList": { + "$ref": "#\/components\/schemas\/ShipmentItemList" + } + }, + "description": "A shipment, refund, guarantee claim, or chargeback." + }, + "ShipmentEventList": { + "type": "array", + "description": "A list of shipment event information.", + "items": { + "$ref": "#\/components\/schemas\/ShipmentEvent" + } + }, + "ShipmentSettleEventList": { + "type": "array", + "description": "A list of `ShipmentEvent` items.", + "items": { + "$ref": "#\/components\/schemas\/ShipmentEvent" + } + }, + "ShipmentItem": { + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API." + }, + "OrderItemId": { + "type": "string", + "description": "An Amazon-defined order item identifier." + }, + "OrderAdjustmentItemId": { + "type": "string", + "description": "An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events." + }, + "QuantityShipped": { + "type": "integer", + "description": "The number of items shipped.", + "format": "int32" + }, + "ItemChargeList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "ItemChargeAdjustmentList": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + }, + "ItemFeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "ItemFeeAdjustmentList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + }, + "ItemTaxWithheldList": { + "$ref": "#\/components\/schemas\/TaxWithheldComponentList" + }, + "PromotionList": { + "$ref": "#\/components\/schemas\/PromotionList" + }, + "PromotionAdjustmentList": { + "$ref": "#\/components\/schemas\/PromotionList" + }, + "CostOfPointsGranted": { + "$ref": "#\/components\/schemas\/Currency" + }, + "CostOfPointsReturned": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An item of a shipment, refund, guarantee claim, or chargeback." + }, + "ShipmentItemList": { + "type": "array", + "description": "A list of shipment items.", + "items": { + "$ref": "#\/components\/schemas\/ShipmentItem" + } + }, + "SolutionProviderCreditEvent": { + "type": "object", + "properties": { + "ProviderTransactionType": { + "type": "string", + "description": "The transaction type." + }, + "SellerOrderId": { + "type": "string", + "description": "A seller-defined identifier for an order." + }, + "MarketplaceId": { + "type": "string", + "description": "The identifier of the marketplace where the order was placed." + }, + "MarketplaceCountryCode": { + "type": "string", + "description": "The two-letter country code of the country associated with the marketplace where the order was placed." + }, + "SellerId": { + "type": "string", + "description": "The Amazon-defined identifier of the seller." + }, + "SellerStoreName": { + "type": "string", + "description": "The store name where the payment event occurred." + }, + "ProviderId": { + "type": "string", + "description": "The Amazon-defined identifier of the solution provider." + }, + "ProviderStoreName": { + "type": "string", + "description": "The store name where the payment event occurred." + }, + "TransactionAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TransactionCreationDate": { + "$ref": "#\/components\/schemas\/Date" + } + }, + "description": "A credit given to a solution provider." + }, + "SolutionProviderCreditEventList": { + "type": "array", + "description": "A list of information about solution provider credits.", + "items": { + "$ref": "#\/components\/schemas\/SolutionProviderCreditEvent" + } + }, + "TaxWithholdingPeriod": { + "type": "object", + "properties": { + "StartDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "EndDate": { + "$ref": "#\/components\/schemas\/Date" + } + }, + "description": "Period which taxwithholding on seller's account is calculated." + }, + "TaxWithholdingEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "BaseAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "WithheldAmount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "TaxWithholdingPeriod": { + "$ref": "#\/components\/schemas\/TaxWithholdingPeriod" + } + }, + "description": "A TaxWithholding event on seller's account." + }, + "TaxWithholdingEventList": { + "type": "array", + "description": "A list of `TaxWithholding` events.", + "items": { + "$ref": "#\/components\/schemas\/TaxWithholdingEvent" + } + }, + "TaxWithheldComponent": { + "type": "object", + "properties": { + "TaxCollectionModel": { + "type": "string", + "description": "The tax collection model applied to the item.\n\nPossible values:\n\n* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.\n\n* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon." + }, + "TaxesWithheld": { + "$ref": "#\/components\/schemas\/ChargeComponentList" + } + }, + "description": "Information about the taxes withheld." + }, + "TaxWithheldComponentList": { + "type": "array", + "description": "A list of information about taxes withheld.", + "items": { + "$ref": "#\/components\/schemas\/TaxWithheldComponent" + } + }, + "TDSReimbursementEvent": { + "type": "object", + "properties": { + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "TDSOrderId": { + "type": "string", + "description": "The Tax-Deducted-at-Source (TDS) identifier." + }, + "ReimbursedAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event related to a Tax-Deducted-at-Source (TDS) reimbursement." + }, + "TDSReimbursementEventList": { + "type": "array", + "description": "A list of `TDSReimbursementEvent` items.", + "items": { + "$ref": "#\/components\/schemas\/TDSReimbursementEvent" + } + }, + "TrialShipmentEvent": { + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined identifier for an order." + }, + "FinancialEventGroupId": { + "type": "string", + "description": "The identifier of the financial event group." + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "SKU": { + "type": "string", + "description": "The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API." + }, + "FeeList": { + "$ref": "#\/components\/schemas\/FeeComponentList" + } + }, + "description": "An event related to a trial shipment." + }, + "TrialShipmentEventList": { + "type": "array", + "description": "A list of information about trial shipment financial events.", + "items": { + "$ref": "#\/components\/schemas\/TrialShipmentEvent" + } + }, + "ValueAddedServiceChargeEventList": { + "type": "array", + "description": "A list of `ValueAddedServiceCharge` events.", + "items": { + "$ref": "#\/components\/schemas\/ValueAddedServiceChargeEvent" + } + }, + "ValueAddedServiceChargeEvent": { + "type": "object", + "properties": { + "TransactionType": { + "type": "string", + "description": "Indicates the type of transaction.\n\nExample: 'Other Support Service fees'" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "Description": { + "type": "string", + "description": "A short description of the service charge event." + }, + "TransactionAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event related to a value added service charge." + }, + "CapacityReservationBillingEvent": { + "type": "object", + "properties": { + "TransactionType": { + "type": "string", + "description": "Indicates the type of transaction. For example, FBA Inventory Fee" + }, + "PostedDate": { + "$ref": "#\/components\/schemas\/Date" + }, + "Description": { + "type": "string", + "description": "A short description of the capacity reservation billing event." + }, + "TransactionAmount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "An event related to a capacity reservation billing charge." + }, + "CapacityReservationBillingEventList": { + "type": "array", + "description": "A list of `CapacityReservationBillingEvent` events.", + "items": { + "$ref": "#\/components\/schemas\/CapacityReservationBillingEvent" + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/listings-items/v2020-09-01.json b/resources/models/seller/listings-items/v2020-09-01.json new file mode 100644 index 000000000..1a167e0a9 --- /dev/null +++ b/resources/models/seller/listings-items/v2020-09-01.json @@ -0,0 +1,1140 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Listings Items", + "description": "The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API.\n\nFor more information, see the [Listing Items API Use Case Guide](doc:listings-items-api-v2020-09-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-09-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/listings\/2020-09-01\/items\/{sellerId}\/{sku}": { + "put": { + "tags": [ + "ListingsItemsV20200901" + ], + "description": "Creates a new or fully-updates an existing listings item for a selling partner.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "putListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "requestBody": { + "description": "The request body schema for the putListingsItem operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemPutRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successfully understood the request to create or fully-update a listings item. See the response to determine if the submission has been accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "tags": [ + "ListingsItemsV20200901" + ], + "description": "Delete a listings item for a selling partner.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "deleteListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Successfully understood the listings item delete request. See the response to determine whether the submission has been accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "patch": { + "tags": [ + "ListingsItemsV20200901" + ], + "description": "Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "patchListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "requestBody": { + "description": "The request body schema for the patchListingsItem operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemPatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successfully understood the listings item patch request. See the response to determine if the submission was accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Issue": { + "required": [ + "code", + "message", + "severity" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An issue code that identifies the type of issue." + }, + "message": { + "type": "string", + "description": "A message that describes the issue." + }, + "severity": { + "type": "string", + "description": "The severity of the issue.", + "enum": [ + "ERROR", + "WARNING", + "INFO" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ERROR", + "description": "Indicates an issue has occurred preventing the submission from processing, such as a validation error." + }, + { + "value": "WARNING", + "description": "Indicates an issue has occurred that should be reviewed, but has not prevented the submission from processing." + }, + { + "value": "INFO", + "description": "Indicates additional information has been provided that should be reviewed." + } + ] + }, + "attributeName": { + "type": "string", + "description": "Name of the attribute associated with the issue, if applicable." + } + }, + "description": "An issue with a listings item." + }, + "PatchOperation": { + "required": [ + "op", + "path" + ], + "type": "object", + "properties": { + "op": { + "type": "string", + "description": "Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See .", + "enum": [ + "add", + "replace", + "delete" + ], + "x-docgen-enum-table-extension": [ + { + "value": "add", + "description": "The \"add\" operation adds or replaces the target property." + }, + { + "value": "replace", + "description": "The \"replace\" operation adds or replaces the target property." + }, + { + "value": "delete", + "description": "The \"delete\" operation removes the target property. Not supported for vendors (vendors will receive an HTTP status code 400 response)." + } + ] + }, + "path": { + "type": "string", + "description": "JSON Pointer path of the element to patch. See ." + }, + "value": { + "type": "array", + "description": "JSON value to add, replace, or delete.", + "items": { + "type": "object", + "additionalProperties": true + } + } + }, + "description": "Individual JSON Patch operation for an HTTP PATCH request." + }, + "ListingsItemPatchRequest": { + "required": [ + "patches", + "productType" + ], + "type": "object", + "properties": { + "productType": { + "type": "string", + "description": "The Amazon product type of the listings item." + }, + "patches": { + "minItems": 1, + "type": "array", + "description": "One or more JSON Patch operations to perform on the listings item.", + "items": { + "$ref": "#\/components\/schemas\/PatchOperation" + } + } + }, + "description": "The request body schema for the patchListingsItem operation." + }, + "ListingsItemPutRequest": { + "required": [ + "attributes", + "productType" + ], + "type": "object", + "properties": { + "productType": { + "type": "string", + "description": "The Amazon product type of the listings item." + }, + "requirements": { + "type": "string", + "description": "The name of the requirements set for the provided data.", + "enum": [ + "LISTING", + "LISTING_PRODUCT_ONLY", + "LISTING_OFFER_ONLY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LISTING", + "description": "Indicates the submitted data contains product facts and sales terms." + }, + { + "value": "LISTING_PRODUCT_ONLY", + "description": "Indicates the submitted data contains product facts only." + }, + { + "value": "LISTING_OFFER_ONLY", + "description": "Indicates the submitted data contains sales terms only. Not supported for vendors (vendors will receive an HTTP status code 400 response)." + } + ] + }, + "attributes": { + "type": "object", + "additionalProperties": true, + "description": "JSON object containing structured listings item attribute data keyed by attribute name." + } + }, + "description": "The request body schema for the putListingsItem operation." + }, + "ListingsItemSubmissionResponse": { + "required": [ + "sku", + "status", + "submissionId" + ], + "type": "object", + "properties": { + "sku": { + "type": "string", + "description": "A selling partner provided identifier for an Amazon listing." + }, + "status": { + "type": "string", + "description": "The status of the listings item submission.", + "enum": [ + "ACCEPTED", + "INVALID" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACCEPTED", + "description": "The listings submission was accepted for processing." + }, + { + "value": "INVALID", + "description": "The listings submission was not valid and was not accepted for processing." + } + ] + }, + "submissionId": { + "type": "string", + "description": "The unique identifier of the listings item submission." + }, + "issues": { + "type": "array", + "description": "Listings item issues related to the listings item submission.", + "items": { + "$ref": "#\/components\/schemas\/Issue" + } + } + }, + "description": "Response containing the results of a submission to the Selling Partner API for Listings Items." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/listings-items/v2021-08-01.json b/resources/models/seller/listings-items/v2021-08-01.json new file mode 100644 index 000000000..1ee2806f3 --- /dev/null +++ b/resources/models/seller/listings-items/v2021-08-01.json @@ -0,0 +1,1777 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Listings Items", + "description": "The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API.\n\nFor more information, see the [Listings Items API Use Case Guide](doc:listings-items-api-v2021-08-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-08-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/listings\/2021-08-01\/items\/{sellerId}\/{sku}": { + "get": { + "tags": [ + "ListingsItemsV20210801" + ], + "description": "Returns details about a listings item for a selling partner.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + }, + { + "name": "includedData", + "in": "query", + "description": "A comma-delimited list of data sets to include in the response. Default: summaries.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "summaries", + "attributes", + "issues", + "offers", + "fulfillmentAvailability", + "procurement" + ], + "x-docgen-enum-table-extension": [ + { + "value": "summaries", + "description": "Summary details of the listing item." + }, + { + "value": "attributes", + "description": "JSON object containing structured listing item attribute data keyed by attribute name." + }, + { + "value": "issues", + "description": "Issues associated with the listing item." + }, + { + "value": "offers", + "description": "Current offers for the listing item." + }, + { + "value": "fulfillmentAvailability", + "description": "Fulfillment availability details for the listing item." + }, + { + "value": "procurement", + "description": "Vendor procurement details for the listing item. " + } + ] + } + }, + "example": "summaries" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Item" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "asin": "B071VG5N9D", + "productType": "LUGGAGE", + "conditionType": "new_new", + "status": [ + "BUYABLE" + ], + "itemName": "Hardside Carry-On Spinner Suitcase Luggage", + "createdDate": "2021-02-01T00:00:00Z", + "lastUpdatedDate": "2021-03-01T00:00:00Z", + "mainImage": { + "link": "https:\/\/www.example.com\/luggage.png", + "height": 500, + "width": 500 + } + } + ], + "offers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "offerType": "B2C", + "price": { + "currencyCode": "USD", + "amount": "100.00" + } + } + ], + "fulfillmentAvailability": [ + { + "fulfillmentChannelCode": "DEFAULT", + "quantity": 100 + } + ], + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "summaries": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "asin": "B071VG5N9D", + "productType": "LUGGAGE", + "conditionType": "new_new", + "status": [ + "BUYABLE" + ], + "itemName": "Hardside Carry-On Spinner Suitcase Luggage", + "createdDate": "2021-02-01T00:00:00Z", + "lastUpdatedDate": "2021-03-01T00:00:00Z", + "mainImage": { + "link": "https:\/\/www.example.com\/luggage.png", + "height": 500, + "width": 500 + } + } + ], + "offers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "offerType": "B2C", + "price": { + "currencyCode": "USD", + "amount": "100.00" + } + } + ], + "fulfillmentAvailability": [ + { + "fulfillmentChannelCode": "DEFAULT", + "quantity": 100 + } + ], + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "put": { + "tags": [ + "ListingsItemsV20210801" + ], + "description": "Creates a new or fully-updates an existing listings item for a selling partner.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "putListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "requestBody": { + "description": "The request body schema for the putListingsItem operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemPutRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successfully understood the request to create or fully-update a listings item. See the response to determine if the submission has been accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "tags": [ + "ListingsItemsV20210801" + ], + "description": "Delete a listings item for a selling partner.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "deleteListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Successfully understood the listings item delete request. See the response to determine whether the submission has been accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "patch": { + "tags": [ + "ListingsItemsV20210801" + ], + "description": "Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be patched. Patching nested attributes is not supported.\n\n**Note:** The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "patchListingsItem", + "parameters": [ + { + "name": "sellerId", + "in": "path", + "description": "A selling partner identifier, such as a merchant account or vendor code.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "path", + "description": "A selling partner provided identifier for an Amazon listing.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "issueLocale", + "in": "query", + "description": "A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "requestBody": { + "description": "The request body schema for the patchListingsItem operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemPatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successfully understood the listings item patch request. See the response to determine if the submission was accepted.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListingsItemSubmissionResponse" + }, + "example": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "sku": "GM-ZDPI-9B4E", + "status": "ACCEPTED", + "submissionId": "f1dc2914-75dd-11ea-bc55-0242ac130003", + "issues": [] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "sku": { + "value": "BadSKU" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Item": { + "required": [ + "sku" + ], + "type": "object", + "properties": { + "sku": { + "type": "string", + "description": "A selling partner provided identifier for an Amazon listing." + }, + "summaries": { + "$ref": "#\/components\/schemas\/ItemSummaries" + }, + "attributes": { + "$ref": "#\/components\/schemas\/ItemAttributes" + }, + "issues": { + "$ref": "#\/components\/schemas\/ItemIssues" + }, + "offers": { + "$ref": "#\/components\/schemas\/ItemOffers" + }, + "fulfillmentAvailability": { + "type": "array", + "description": "Fulfillment availability for the listings item.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentAvailability" + } + }, + "procurement": { + "type": "array", + "description": "Vendor procurement information for the listings item.", + "items": { + "$ref": "#\/components\/schemas\/ItemProcurement" + } + } + }, + "description": "A listings item." + }, + "ItemSummaries": { + "type": "array", + "description": "Summary details of a listings item.", + "items": { + "$ref": "#\/components\/schemas\/ItemSummaryByMarketplace" + } + }, + "ItemSummaryByMarketplace": { + "required": [ + "asin", + "createdDate", + "itemName", + "lastUpdatedDate", + "marketplaceId", + "productType", + "status" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "A marketplace identifier. Identifies the Amazon marketplace for the listings item." + }, + "asin": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) of the listings item." + }, + "productType": { + "type": "string", + "description": "The Amazon product type of the listings item." + }, + "conditionType": { + "type": "string", + "description": "Identifies the condition of the listings item.", + "enum": [ + "new_new", + "new_open_box", + "new_oem", + "refurbished_refurbished", + "used_like_new", + "used_very_good", + "used_good", + "used_acceptable", + "collectible_like_new", + "collectible_very_good", + "collectible_good", + "collectible_acceptable", + "club_club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "new_new", + "description": "New" + }, + { + "value": "new_open_box", + "description": "New - Open Box." + }, + { + "value": "new_oem", + "description": "New - OEM." + }, + { + "value": "refurbished_refurbished", + "description": "Refurbished" + }, + { + "value": "used_like_new", + "description": "Used - Like New." + }, + { + "value": "used_very_good", + "description": "Used - Very Good." + }, + { + "value": "used_good", + "description": "Used - Good." + }, + { + "value": "used_acceptable", + "description": "Used - Acceptable." + }, + { + "value": "collectible_like_new", + "description": "Collectible - Like New." + }, + { + "value": "collectible_very_good", + "description": "Collectible - Very Good." + }, + { + "value": "collectible_good", + "description": "Collectible - Good." + }, + { + "value": "collectible_acceptable", + "description": "Collectible - Acceptable." + }, + { + "value": "club_club", + "description": "Club" + } + ] + }, + "status": { + "type": "array", + "description": "Statuses that apply to the listings item.", + "items": { + "type": "string", + "enum": [ + "BUYABLE", + "DISCOVERABLE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "BUYABLE", + "description": "The listings item can be purchased by shoppers. This status does not apply to vendor listings." + }, + { + "value": "DISCOVERABLE", + "description": "The listings item is visible to shoppers." + } + ] + } + }, + "fnSku": { + "type": "string", + "description": "Fulfillment network stock keeping unit is an identifier used by Amazon fulfillment centers to identify each unique item." + }, + "itemName": { + "type": "string", + "description": "Name, or title, associated with an Amazon catalog item." + }, + "createdDate": { + "type": "string", + "description": "Date the listings item was created, in ISO 8601 format.", + "format": "date-time" + }, + "lastUpdatedDate": { + "type": "string", + "description": "Date the listings item was last updated, in ISO 8601 format.", + "format": "date-time" + }, + "mainImage": { + "$ref": "#\/components\/schemas\/ItemImage" + } + }, + "description": "Summary details of a listings item for an Amazon marketplace." + }, + "ItemImage": { + "required": [ + "height", + "link", + "width" + ], + "type": "object", + "properties": { + "link": { + "type": "string", + "description": "Link, or URL, for the image." + }, + "height": { + "type": "integer", + "description": "Height of the image in pixels." + }, + "width": { + "type": "integer", + "description": "Width of the image in pixels." + } + }, + "description": "Image for the listings item." + }, + "ItemAttributes": { + "type": "object", + "additionalProperties": true, + "description": "JSON object containing structured listings item attribute data keyed by attribute name." + }, + "ItemIssues": { + "type": "array", + "description": "Issues associated with the listings item.", + "items": { + "$ref": "#\/components\/schemas\/Issue" + } + }, + "Issue": { + "required": [ + "code", + "message", + "severity" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An issue code that identifies the type of issue." + }, + "message": { + "type": "string", + "description": "A message that describes the issue." + }, + "severity": { + "type": "string", + "description": "The severity of the issue.", + "enum": [ + "ERROR", + "WARNING", + "INFO" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ERROR", + "description": "Indicates an issue has occurred preventing the submission from processing, such as a validation error." + }, + { + "value": "WARNING", + "description": "Indicates an issue has occurred that should be reviewed, but has not prevented the submission from processing." + }, + { + "value": "INFO", + "description": "Indicates additional information has been provided that should be reviewed." + } + ] + }, + "attributeNames": { + "type": "array", + "description": "Names of the attributes associated with the issue, if applicable.", + "items": { + "type": "string" + } + } + }, + "description": "An issue with a listings item." + }, + "ItemOffers": { + "type": "array", + "description": "Offer details for the listings item.", + "items": { + "$ref": "#\/components\/schemas\/ItemOfferByMarketplace" + } + }, + "ItemOfferByMarketplace": { + "required": [ + "marketplaceId", + "offerType", + "price" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "Amazon marketplace identifier." + }, + "offerType": { + "type": "string", + "description": "Type of offer for the listings item.", + "enum": [ + "B2C", + "B2B" + ], + "x-docgen-enum-table-extension": [ + { + "value": "B2C", + "description": "The offer on this listings item is available for Business to Consumer purchase, meaning that it is available to shoppers on Amazon retail sites." + }, + { + "value": "B2B", + "description": "The offer on this listings item is available for Business to Business purchase." + } + ] + }, + "price": { + "$ref": "#\/components\/schemas\/Money" + }, + "points": { + "$ref": "#\/components\/schemas\/Points" + } + }, + "description": "Offer details of a listings item for an Amazon marketplace." + }, + "ItemProcurement": { + "required": [ + "costPrice" + ], + "type": "object", + "properties": { + "costPrice": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Vendor procurement information for the listings item." + }, + "FulfillmentAvailability": { + "required": [ + "fulfillmentChannelCode" + ], + "type": "object", + "properties": { + "fulfillmentChannelCode": { + "type": "string", + "description": "Designates which fulfillment network will be used." + }, + "quantity": { + "minimum": 0, + "type": "integer", + "description": "The quantity of the item you are making available for sale." + } + }, + "description": "Fulfillment availability details for the listings item." + }, + "Money": { + "required": [ + "amount", + "currencyCode" + ], + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three-digit currency code. In ISO 4217 format." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The currency type and the amount." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation." + }, + "Points": { + "required": [ + "pointsNumber" + ], + "type": "object", + "properties": { + "pointsNumber": { + "type": "integer" + } + }, + "description": "The number of Amazon Points offered with the purchase of an item, and their monetary value. Note that the Points element is only returned in Japan (JP)." + }, + "PatchOperation": { + "required": [ + "op", + "path" + ], + "type": "object", + "properties": { + "op": { + "type": "string", + "description": "Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See .", + "enum": [ + "add", + "replace", + "delete" + ], + "x-docgen-enum-table-extension": [ + { + "value": "add", + "description": "The \"add\" operation adds or replaces the target property." + }, + { + "value": "replace", + "description": "The \"replace\" operation adds or replaces the target property." + }, + { + "value": "delete", + "description": "The \"delete\" operation removes the target property. Not supported for vendors (vendors will receive an HTTP status code 400 response)." + } + ] + }, + "path": { + "type": "string", + "description": "JSON Pointer path of the element to patch. See ." + }, + "value": { + "type": "array", + "description": "JSON value to add, replace, or delete.", + "items": { + "type": "object", + "additionalProperties": true + } + } + }, + "description": "Individual JSON Patch operation for an HTTP PATCH request." + }, + "ListingsItemPatchRequest": { + "required": [ + "patches", + "productType" + ], + "type": "object", + "properties": { + "productType": { + "type": "string", + "description": "The Amazon product type of the listings item." + }, + "patches": { + "minItems": 1, + "type": "array", + "description": "One or more JSON Patch operations to perform on the listings item.", + "items": { + "$ref": "#\/components\/schemas\/PatchOperation" + } + } + }, + "description": "The request body schema for the patchListingsItem operation." + }, + "ListingsItemPutRequest": { + "required": [ + "attributes", + "productType" + ], + "type": "object", + "properties": { + "productType": { + "type": "string", + "description": "The Amazon product type of the listings item." + }, + "requirements": { + "type": "string", + "description": "The name of the requirements set for the provided data.", + "enum": [ + "LISTING", + "LISTING_PRODUCT_ONLY", + "LISTING_OFFER_ONLY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LISTING", + "description": "Indicates the submitted data contains product facts and sales terms." + }, + { + "value": "LISTING_PRODUCT_ONLY", + "description": "Indicates the submitted data contains product facts only." + }, + { + "value": "LISTING_OFFER_ONLY", + "description": "Indicates the submitted data contains sales terms only. Not supported for vendors (vendors will receive an HTTP status code 400 response)." + } + ] + }, + "attributes": { + "type": "object", + "additionalProperties": true, + "description": "JSON object containing structured listings item attribute data keyed by attribute name." + } + }, + "description": "The request body schema for the putListingsItem operation." + }, + "ListingsItemSubmissionResponse": { + "required": [ + "sku", + "status", + "submissionId" + ], + "type": "object", + "properties": { + "sku": { + "type": "string", + "description": "A selling partner provided identifier for an Amazon listing." + }, + "status": { + "type": "string", + "description": "The status of the listings item submission.", + "enum": [ + "ACCEPTED", + "INVALID" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACCEPTED", + "description": "The listings submission was accepted for processing." + }, + { + "value": "INVALID", + "description": "The listings submission was not valid and was not accepted for processing." + } + ] + }, + "submissionId": { + "type": "string", + "description": "The unique identifier of the listings item submission." + }, + "issues": { + "type": "array", + "description": "Listings item issues related to the listings item submission.", + "items": { + "$ref": "#\/components\/schemas\/Issue" + } + } + }, + "description": "Response containing the results of a submission to the Selling Partner API for Listings Items." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/listings-restrictions/v2021-08-01.json b/resources/models/seller/listings-restrictions/v2021-08-01.json new file mode 100644 index 000000000..f258ccb25 --- /dev/null +++ b/resources/models/seller/listings-restrictions/v2021-08-01.json @@ -0,0 +1,684 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Listings Restrictions", + "description": "The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings.\n\nFor more information, see the [Listings Restrictions API Use Case Guide](doc:listings-restrictions-api-v2021-08-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-08-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/listings\/2021-08-01\/restrictions": { + "get": { + "tags": [ + "ListingsRestrictionsV20210801" + ], + "description": "Returns listing restrictions for an item in the Amazon Catalog. \n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getListingsRestrictions", + "parameters": [ + { + "name": "asin", + "in": "query", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + }, + "example": "B0000ASIN1" + }, + { + "name": "conditionType", + "in": "query", + "description": "The condition used to filter restrictions.", + "schema": { + "type": "string", + "enum": [ + "new_new", + "new_open_box", + "new_oem", + "refurbished_refurbished", + "used_like_new", + "used_very_good", + "used_good", + "used_acceptable", + "collectible_like_new", + "collectible_very_good", + "collectible_good", + "collectible_acceptable", + "club_club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "new_new", + "description": "New" + }, + { + "value": "new_open_box", + "description": "New - Open Box." + }, + { + "value": "new_oem", + "description": "New - OEM." + }, + { + "value": "refurbished_refurbished", + "description": "Refurbished" + }, + { + "value": "used_like_new", + "description": "Used - Like New." + }, + { + "value": "used_very_good", + "description": "Used - Very Good." + }, + { + "value": "used_good", + "description": "Used - Good." + }, + { + "value": "used_acceptable", + "description": "Used - Acceptable." + }, + { + "value": "collectible_like_new", + "description": "Collectible - Like New." + }, + { + "value": "collectible_very_good", + "description": "Collectible - Very Good." + }, + { + "value": "collectible_good", + "description": "Collectible - Good." + }, + { + "value": "collectible_acceptable", + "description": "Collectible - Acceptable." + }, + { + "value": "club_club", + "description": "Club" + } + ] + }, + "example": "used_very_good", + "x-docgen-enum-table-extension": [ + { + "value": "new_new", + "description": "New" + }, + { + "value": "new_open_box", + "description": "New - Open Box." + }, + { + "value": "new_oem", + "description": "New - OEM." + }, + { + "value": "refurbished_refurbished", + "description": "Refurbished" + }, + { + "value": "used_like_new", + "description": "Used - Like New." + }, + { + "value": "used_very_good", + "description": "Used - Very Good." + }, + { + "value": "used_good", + "description": "Used - Good." + }, + { + "value": "used_acceptable", + "description": "Used - Acceptable." + }, + { + "value": "collectible_like_new", + "description": "Collectible - Like New." + }, + { + "value": "collectible_very_good", + "description": "Collectible - Very Good." + }, + { + "value": "collectible_good", + "description": "Collectible - Good." + }, + { + "value": "collectible_acceptable", + "description": "Collectible - Acceptable." + }, + { + "value": "club_club", + "description": "Club" + } + ] + }, + { + "name": "sellerId", + "in": "query", + "description": "A selling partner identifier, such as a merchant account.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "reasonLocale", + "in": "query", + "description": "A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: \"en_US\", \"fr_CA\", \"fr_FR\". Localized messages default to \"en_US\" when a localization is not available in the specified locale.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the listings restrictions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RestrictionList" + }, + "example": { + "restrictions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "conditionType": "used_acceptable", + "reasons": [ + { + "message": "You cannot list the product in this condition.", + "links": [ + { + "resource": "https:\/\/sellercentral.amazon.com\/hz\/approvalrequest\/restrictions\/approve?asin=B0000ASIN1", + "verb": "GET", + "title": "Request Approval via Seller Central.", + "type": "text\/html" + } + ] + } + ] + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "restrictions": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "conditionType": "used_acceptable", + "reasons": [ + { + "message": "You cannot list the product in this condition.", + "links": [ + { + "resource": "https:\/\/sellercentral.amazon.com\/hz\/approvalrequest\/restrictions\/approve?asin=B0000ASIN1", + "verb": "GET", + "title": "Request Approval via Seller Central.", + "type": "text\/html" + } + ] + } + ] + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "BAD_ASIN" + } + } + }, + "response": [ + { + "code": "BAD_REQUEST", + "message": "Invalid 'asin' provided." + } + ] + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "RestrictionList": { + "required": [ + "restrictions" + ], + "type": "object", + "properties": { + "restrictions": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Restriction" + } + } + }, + "description": "A list of restrictions for the specified Amazon catalog item." + }, + "Restriction": { + "required": [ + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "type": "string", + "description": "A marketplace identifier. Identifies the Amazon marketplace where the restriction is enforced." + }, + "conditionType": { + "type": "string", + "description": "The condition that applies to the restriction.", + "enum": [ + "new_new", + "new_open_box", + "new_oem", + "refurbished_refurbished", + "used_like_new", + "used_very_good", + "used_good", + "used_acceptable", + "collectible_like_new", + "collectible_very_good", + "collectible_good", + "collectible_acceptable", + "club_club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "new_new", + "description": "New" + }, + { + "value": "new_open_box", + "description": "New - Open Box." + }, + { + "value": "new_oem", + "description": "New - OEM." + }, + { + "value": "refurbished_refurbished", + "description": "Refurbished" + }, + { + "value": "used_like_new", + "description": "Used - Like New." + }, + { + "value": "used_very_good", + "description": "Used - Very Good." + }, + { + "value": "used_good", + "description": "Used - Good." + }, + { + "value": "used_acceptable", + "description": "Used - Acceptable." + }, + { + "value": "collectible_like_new", + "description": "Collectible - Like New." + }, + { + "value": "collectible_very_good", + "description": "Collectible - Very Good." + }, + { + "value": "collectible_good", + "description": "Collectible - Good." + }, + { + "value": "collectible_acceptable", + "description": "Collectible - Acceptable." + }, + { + "value": "club_club", + "description": "Club" + } + ] + }, + "reasons": { + "type": "array", + "description": "A list of reasons for the restriction.", + "items": { + "$ref": "#\/components\/schemas\/Reason" + } + } + }, + "description": "A listing restriction, optionally qualified by a condition, with a list of reasons for the restriction." + }, + "Reason": { + "required": [ + "message" + ], + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message describing the reason for the restriction." + }, + "reasonCode": { + "type": "string", + "description": "A code indicating why the listing is restricted.", + "enum": [ + "APPROVAL_REQUIRED", + "ASIN_NOT_FOUND", + "NOT_ELIGIBLE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "APPROVAL_REQUIRED", + "description": "Approval is required to create a listing for the specified ASIN. A path forward link will be provided that may allow Selling Partners to remove the restriction." + }, + { + "value": "ASIN_NOT_FOUND", + "description": "The specified ASIN does not exist in the requested marketplace." + }, + { + "value": "NOT_ELIGIBLE", + "description": "Not eligible to create a listing for the specified ASIN. No path forward link will be provided to remove the restriction." + } + ] + }, + "links": { + "type": "array", + "description": "A list of path forward links that may allow Selling Partners to remove the restriction.", + "items": { + "$ref": "#\/components\/schemas\/Link" + } + } + }, + "description": "A reason for the restriction, including path forward links that may allow Selling Partners to remove the restriction, if available." + }, + "Link": { + "required": [ + "resource", + "verb" + ], + "type": "object", + "properties": { + "resource": { + "type": "string", + "description": "The URI of the related resource.", + "format": "uri" + }, + "verb": { + "type": "string", + "description": "The HTTP verb used to interact with the related resource.", + "enum": [ + "GET" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GET", + "description": "The provided resource is accessed with the HTTP GET method." + } + ] + }, + "title": { + "type": "string", + "description": "The title of the related resource." + }, + "type": { + "type": "string", + "description": "The media type of the related resource." + } + }, + "description": "A link to resources related to a listing restriction." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/merchant-fulfillment/v0.json b/resources/models/seller/merchant-fulfillment/v0.json new file mode 100644 index 000000000..5f943c476 --- /dev/null +++ b/resources/models/seller/merchant-fulfillment/v0.json @@ -0,0 +1,4415 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Merchant Fulfillment", + "description": "The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon\u2019s Buy Shipping Services.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/mfn\/v0\/eligibleServices": { + "post": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Returns a list of shipping service offers that satisfy the specified shipment request details.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getEligibleShipmentServicesOld", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "903-5563053-5647845", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + } + } + } + } + }, + "response": { + "payload": { + "ShippingServiceList": [ + { + "ShippingServiceName": "UPS 2nd Day Air\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA\/Hjuglhyiu0+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER\/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90\/NaXFR\/Ou01du\/uKd5AbfMW\/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0\/jj\/fBgblIwcs+t", + "ShipDate": "2019-10-28T16:36:36Z", + "EarliestEstimatedDeliveryDate": "2019-10-31T06:00:00Z", + "LatestEstimatedDeliveryDate": "2019-10-31T06:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "LabelFormat": "" + }, + "AvailableLabelFormats": [ + "ZPL203", + "ShippingServiceDefault", + "PDF", + "PNG" + ], + "AvailableFormatOptionsForLabel": [ + { + "LabelFormat": "ZPL203" + }, + { + "LabelFormat": "ShippingServiceDefault" + }, + { + "LabelFormat": "PDF" + }, + { + "LabelFormat": "PNG" + } + ] + }, + { + "ShippingServiceName": "UPS Next Day Air Saver\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_NEXT_DAY_AIR_SAVER", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKqqhKGQ2YZmuxsXKVXmdgdWNvfxb1qfm5bGm8NuqlqnNT3eTiJ4viTctepggbeUKUSykClJ+Qmw43zdA8wsgREhQCmb4Bbo\/skapLQS1F9uwH2FgY5SfMsj\/egudyocpVRT45KSQAT0H5YiXW3OyyRAae9fZ0RzDJAABHiisOyYyXnB1mtWOZqc7rlGR4yyqN7jmiT4t8dmuGPX7ptY4qskrN+6VHZO9bM9tdDS0ysHhAVv4jO3Q5sWFg4nEPaARWSsrpa6zSGMLxAOj56O3tcP", + "ShipDate": "2019-10-28T16:36:36Z", + "EarliestEstimatedDeliveryDate": "2019-10-30T06:00:00Z", + "LatestEstimatedDeliveryDate": "2019-10-30T06:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 98.75 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "LabelFormat": "" + }, + "AvailableLabelFormats": [ + "ZPL203", + "ShippingServiceDefault", + "PDF", + "PNG" + ], + "AvailableFormatOptionsForLabel": [ + { + "LabelFormat": "ZPL203" + }, + { + "LabelFormat": "ShippingServiceDefault" + }, + { + "LabelFormat": "PDF" + }, + { + "LabelFormat": "PNG" + } + ] + } + ], + "TemporarilyUnavailableCarrierList": [ + { + "CarrierName": "UPS\u00ae" + }, + { + "CarrierName": "DHLECOMMERCE" + } + ], + "TermsAndConditionsNotAcceptedCarrierList": [ + { + "CarrierName": "YANWEN" + }, + { + "CarrierName": "CHINA_POST" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "TEST_CASE_400", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "USA", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'USA' at 'shipmentRequestDetails.shipFromAddress.countryCode' failed to satisfy constraint: Member must have length less than or equal to 2", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + } + }, + "deprecated": true, + "x-codegen-request-body-name": "body" + } + }, + "\/mfn\/v0\/eligibleShippingServices": { + "post": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Returns a list of shipping service offers that satisfy the specified shipment request details.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getEligibleShipmentServices", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "903-5563053-5647845", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + } + } + } + } + }, + "response": { + "payload": { + "ShippingServiceList": [ + { + "ShippingServiceName": "UPS 2nd Day Air\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA\/Hjuglhyiu0+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER\/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90\/NaXFR\/Ou01du\/uKd5AbfMW\/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0\/jj\/fBgblIwcs+t", + "ShipDate": "2019-10-28T16:36:36Z", + "EarliestEstimatedDeliveryDate": "2019-10-31T06:00:00Z", + "LatestEstimatedDeliveryDate": "2019-10-31T06:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "LabelFormat": "" + }, + "AvailableLabelFormats": [ + "ZPL203", + "ShippingServiceDefault", + "PDF", + "PNG" + ], + "AvailableFormatOptionsForLabel": [ + { + "LabelFormat": "ZPL203" + }, + { + "LabelFormat": "ShippingServiceDefault" + }, + { + "LabelFormat": "PDF" + }, + { + "LabelFormat": "PNG" + } + ] + }, + { + "ShippingServiceName": "UPS Next Day Air Saver\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_NEXT_DAY_AIR_SAVER", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKqqhKGQ2YZmuxsXKVXmdgdWNvfxb1qfm5bGm8NuqlqnNT3eTiJ4viTctepggbeUKUSykClJ+Qmw43zdA8wsgREhQCmb4Bbo\/skapLQS1F9uwH2FgY5SfMsj\/egudyocpVRT45KSQAT0H5YiXW3OyyRAae9fZ0RzDJAABHiisOyYyXnB1mtWOZqc7rlGR4yyqN7jmiT4t8dmuGPX7ptY4qskrN+6VHZO9bM9tdDS0ysHhAVv4jO3Q5sWFg4nEPaARWSsrpa6zSGMLxAOj56O3tcP", + "ShipDate": "2019-10-28T16:36:36Z", + "EarliestEstimatedDeliveryDate": "2019-10-30T06:00:00Z", + "LatestEstimatedDeliveryDate": "2019-10-30T06:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 98.75 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "LabelFormat": "" + }, + "AvailableLabelFormats": [ + "ZPL203", + "ShippingServiceDefault", + "PDF", + "PNG" + ], + "AvailableFormatOptionsForLabel": [ + { + "LabelFormat": "ZPL203" + }, + { + "LabelFormat": "ShippingServiceDefault" + }, + { + "LabelFormat": "PDF" + }, + { + "LabelFormat": "PNG" + } + ] + } + ], + "TemporarilyUnavailableCarrierList": [ + { + "CarrierName": "UPS\u00ae" + }, + { + "CarrierName": "DHLECOMMERCE" + } + ], + "TermsAndConditionsNotAcceptedCarrierList": [ + { + "CarrierName": "YANWEN" + }, + { + "CarrierName": "CHINA_POST" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "TEST_CASE_400", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "USA", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'USA' at 'shipmentRequestDetails.shipFromAddress.countryCode' failed to satisfy constraint: Member must have length less than or equal to 2", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/mfn\/v0\/shipments\/{shipmentId}": { + "get": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Returns the shipment information for an existing shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The Amazon-defined shipment identifier for the shipment.", + "required": true, + "schema": { + "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "abcddcba-00c3-4f6f-a63a-639f76ee9253" + } + } + }, + "response": { + "payload": { + "ShipmentId": "abcddcba-00c3-4f6f-a63a-639f76ee9253", + "AmazonOrderId": "903-5563053-5647845", + "SellerOrderId": "903-5563053-5647845", + "Insurance": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ItemList": [ + { + "OrderItemId": "12958298061782", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "ShipToAddress": { + "Name": "New York", + "AddressLine1": "TIME WARNER CENTER", + "AddressLine2": "10 COLUMBUS CIR", + "Email": "", + "City": "NEW YORK", + "StateOrProvinceCode": "NY", + "PostalCode": "10019-1158", + "CountryCode": "US", + "Phone": "" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingService": { + "ShippingServiceName": "UPS 2nd Day Air\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "", + "ShipDate": "2019-10-28T18:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "DeliveryConfirmationWithoutSignature", + "DeclaredValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RequiresAdditionalSellerInputs": false + }, + "Label": { + "Dimensions": { + "Length": 6, + "Width": 4, + "Unit": "inches" + }, + "FileContents": { + "Contents": "H4sIAAAAAAAAAOS6dV", + "FileType": "image\/png", + "Checksum": "9ALVyphCKfc3+Lb2ssyh8A==" + } + }, + "Status": "Purchased", + "TrackingId": "1Z17E2100206868939", + "CreatedDate": "2019-10-28T18:29:34Z", + "LastUpdatedDate": "2019-10-28T18:30:35Z" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "aabbccdd-1beb-4cda-8bf4-7366cfddbec1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'TEST_CASE_400' at 'shipmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Cancel the shipment indicated by the specified shipment identifier.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The Amazon-defined shipment identifier for the shipment to cancel.", + "required": true, + "schema": { + "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "be7a0a53-00c3-4f6f-a63a-639f76ee9253" + } + } + }, + "response": { + "payload": { + "ShipmentId": "be7a0a53-00c3-4f6f-a63a-639f76ee9253", + "AmazonOrderId": "903-5563053-5647845", + "SellerOrderId": "903-5563053-5647845", + "Insurance": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ItemList": [ + { + "OrderItemId": "12958298061782", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "ShipToAddress": { + "Name": "New York", + "AddressLine1": "TIME WARNER CENTER", + "AddressLine2": "10 COLUMBUS CIR", + "Email": "", + "City": "NEW YORK", + "StateOrProvinceCode": "NY", + "PostalCode": "10019-1158", + "CountryCode": "US", + "Phone": "" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingService": { + "ShippingServiceName": "UPS 2nd Day Air\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "", + "ShipDate": "2019-10-28T18:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "DeliveryConfirmationWithoutSignature", + "DeclaredValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RequiresAdditionalSellerInputs": false + }, + "Label": { + "Dimensions": {}, + "FileContents": { + "Contents": "", + "FileType": "", + "Checksum": "" + } + }, + "Status": "RefundPending", + "TrackingId": "1Z17E2100206868939", + "CreatedDate": "2019-10-28T18:29:34Z", + "LastUpdatedDate": "2019-10-28T18:36:55Z" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "87d20cf7-1beb-4cda-8bf4-7366cfddbec1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'TEST_CASE_400' at 'shipmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + } + } + } + }, + "\/mfn\/v0\/shipments\/{shipmentId}\/cancel": { + "put": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Cancel the shipment indicated by the specified shipment identifer.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelShipmentOld", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The Amazon-defined shipment identifier for the shipment to cancel.", + "required": true, + "schema": { + "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "be7a0a53-00c3-4f6f-a63a-639f76ee9253" + } + } + }, + "response": { + "payload": { + "ShipmentId": "be7a0a53-00c3-4f6f-a63a-639f76ee9253", + "AmazonOrderId": "903-5563053-5647845", + "SellerOrderId": "903-5563053-5647845", + "Insurance": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ItemList": [ + { + "OrderItemId": "12958298061782", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "ShipToAddress": { + "Name": "New York", + "AddressLine1": "TIME WARNER CENTER", + "AddressLine2": "10 COLUMBUS CIR", + "Email": "", + "City": "NEW YORK", + "StateOrProvinceCode": "NY", + "PostalCode": "10019-1158", + "CountryCode": "US", + "Phone": "" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingService": { + "ShippingServiceName": "UPS 2nd Day Air \u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "", + "ShipDate": "2019-10-28T18:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "DeliveryConfirmationWithoutSignature", + "DeclaredValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RequiresAdditionalSellerInputs": false + }, + "Label": { + "Dimensions": {}, + "FileContents": { + "Contents": "", + "FileType": "", + "Checksum": "" + } + }, + "Status": "RefundPending", + "TrackingId": "1Z17E2100206868939", + "CreatedDate": "2019-10-28T18:29:34Z", + "LastUpdatedDate": "2019-10-28T18:36:55Z" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "87d20cf7-1beb-4cda-8bf4-7366cfddbec1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'TEST_CASE_400' at 'shipmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + } + } + }, + "deprecated": true + } + }, + "\/mfn\/v0\/shipments": { + "post": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Create a shipment with the information provided.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createShipment", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "903-5563053-5647845", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + }, + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA\/Hjuglhyiu0+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER\/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90\/NaXFR\/Ou01du\/uKd5AbfMW\/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0\/jj\/fBgblIwcs+t" + } + } + } + }, + "response": { + "payload": { + "ShipmentId": "be7a0a53-00c3-4f6f-a63a-639f76ee9253", + "AmazonOrderId": "903-5563053-5647845", + "Insurance": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ItemList": [ + { + "OrderItemId": "12958298061782", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "ShipToAddress": { + "Name": "New York", + "AddressLine1": "TIME WARNER CENTER", + "AddressLine2": "10 COLUMBUS CIR", + "Email": "", + "City": "NEW YORK", + "StateOrProvinceCode": "NY", + "PostalCode": "10019-1158", + "CountryCode": "US", + "Phone": "" + }, + "PackageDimensions": { + "Length": 10.25, + "Width": 10.25, + "Height": 10.25, + "Unit": "inches" + }, + "Weight": { + "Value": 10.25, + "Unit": "oz" + }, + "ShippingService": { + "ShippingServiceName": "UPS 2nd Day Air\u00ae", + "CarrierName": "UPS\u00ae", + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA\/Hjuglhyiu0+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER\/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90\/NaXFR\/Ou01du\/uKd5AbfMW\/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0\/jj\/fBgblIwcs+t", + "ShipDate": "2019-10-28T16:37:37Z", + "EarliestEstimatedDeliveryDate": "2019-10-30T07:00:00Z", + "LatestEstimatedDeliveryDate": "2019-10-30T07:00:00Z", + "Rate": { + "CurrencyCode": "USD", + "Amount": 34.73 + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "DeclaredValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RequiresAdditionalSellerInputs": false + }, + "Label": { + "Dimensions": { + "Length": 6, + "Width": 4, + "Unit": "inches" + }, + "FileContents": { + "Contents": "H4sIAAAAAAAAAOR", + "FileType": "image\/png", + "Checksum": "d+eUxK5WTGxkGsTF0pmefQ==" + }, + "LabelFormat": "PNG" + }, + "Status": "Purchased", + "TrackingId": "1Z17E2100217295733", + "CreatedDate": "2019-10-28T16:37:43Z" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShipmentRequestDetails": { + "AmazonOrderId": "TEST_CASE_400", + "ItemList": [ + { + "OrderItemId": "52986411826454", + "Quantity": 1 + } + ], + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "USA", + "Phone": "7132341234" + }, + "PackageDimensions": { + "Length": 10, + "Width": 10, + "Height": 10, + "Unit": "inches" + }, + "Weight": { + "Value": 10, + "Unit": "oz" + }, + "ShippingServiceOptions": { + "DeliveryExperience": "NoTracking", + "CarrierWillPickUp": false, + "CarrierWillPickUpOption": "ShipperWillDropOff" + } + }, + "ShippingServiceId": "UPS_PTP_2ND_DAY_AIR", + "ShippingServiceOfferId": "WHgxtyn6qjGGaCzOCog1azF5HLHje5Pz3Lc2Fmt5eKoZAReW8oJ1SMumuBS8lA\/Hjuglhyiu0+KRLvyJxFV0PB9YFMDhygs3VyTL0WGYkGxiuRkmuEvpqldUn9rrkWVodqnR4vx2VtXvtER\/Ju6RqYoddJZGy6RS2KLzzhQ2NclN0NYXMZVqpOe5RsRBddXaGuJr7oza3M52+JzChocAHzcurIhCRynpbxfmNLzZMQEbgnpGLzuaoSMzfxg90\/NaXFR\/Ou01du\/uKd5AbfMW\/AxAKP9ht6Oi9lDHq6WkGqvjkVLW0\/jj\/fBgblIwcs+t" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "1 validation error detected: Value 'USA' at 'shipmentRequestDetails.shipFromAddress.countryCode' failed to satisfy constraint: Member must have length less than or equal to 2", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/mfn\/v0\/sellerInputs": { + "post": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Get a list of additional seller inputs required for a ship method. This is generally used for international shipping.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getAdditionalSellerInputsOld", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShippingServiceId": "UPS_PTP_GND", + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "OrderId": "903-5563053-5647845" + } + } + } + }, + "response": { + "payload": { + "ShipmentLevelFields": [ + { + "AdditionalInputFieldName": "John Doe" + } + ], + "ItemLevelFieldsList": [ + { + "Asin": "ASIN_ID_200", + "AdditionalInputs": [] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShippingServiceId": "UPS_PTP_GND", + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "XX", + "Phone": "7132341234" + }, + "OrderId": "901-5563053-5647845" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Ship From Address when calling GetAdditionalSellerInputs", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + } + }, + "deprecated": true, + "x-codegen-request-body-name": "body" + } + }, + "\/mfn\/v0\/additionalSellerInputs": { + "post": { + "tags": [ + "MerchantFulfillmentV0" + ], + "description": "Gets a list of additional seller inputs required for a ship method. This is generally used for international shipping.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getAdditionalSellerInputs", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShippingServiceId": "UPS_PTP_GND", + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "US", + "Phone": "7132341234" + }, + "OrderId": "903-5563053-5647845" + } + } + } + }, + "response": { + "payload": { + "ShipmentLevelFields": [ + { + "AdditionalInputFieldName": "John Doe" + } + ], + "ItemLevelFieldsList": [ + { + "Asin": "ASIN_ID_200", + "AdditionalInputs": [] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "ShippingServiceId": "UPS_PTP_GND", + "ShipFromAddress": { + "Name": "John Doe", + "AddressLine1": "300 Turnbull Ave", + "Email": "jdoeasdfllkj@yahoo.com", + "City": "Detroit", + "StateOrProvinceCode": "MI", + "PostalCode": "48123", + "CountryCode": "XX", + "Phone": "7132341234" + }, + "OrderId": "901-5563053-5647845" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Ship From Address when calling GetAdditionalSellerInputs", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "LabelFormatOptionRequest": { + "type": "object", + "properties": { + "IncludePackingSlipWithLabel": { + "type": "boolean", + "description": "When true, include a packing slip with the label." + } + }, + "description": "Whether to include a packing slip." + }, + "LabelFormatOption": { + "type": "object", + "properties": { + "IncludePackingSlipWithLabel": { + "type": "boolean", + "description": "When true, include a packing slip with the label." + }, + "LabelFormat": { + "$ref": "#\/components\/schemas\/LabelFormat" + } + }, + "description": "The label format details and whether to include a packing slip." + }, + "AvailableCarrierWillPickUpOption": { + "required": [ + "CarrierWillPickUpOption", + "Charge" + ], + "type": "object", + "properties": { + "CarrierWillPickUpOption": { + "$ref": "#\/components\/schemas\/CarrierWillPickUpOption" + }, + "Charge": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + } + }, + "description": "Indicates whether the carrier will pick up the package, and what fee is charged, if any." + }, + "AvailableCarrierWillPickUpOptionsList": { + "type": "array", + "description": "List of available carrier pickup options.", + "items": { + "$ref": "#\/components\/schemas\/AvailableCarrierWillPickUpOption" + } + }, + "AvailableDeliveryExperienceOption": { + "required": [ + "Charge", + "DeliveryExperienceOption" + ], + "type": "object", + "properties": { + "DeliveryExperienceOption": { + "$ref": "#\/components\/schemas\/DeliveryExperienceOption" + }, + "Charge": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + } + }, + "description": "The available delivery confirmation options, and the fee charged, if any." + }, + "AvailableDeliveryExperienceOptionsList": { + "type": "array", + "description": "List of available delivery experience options.", + "items": { + "$ref": "#\/components\/schemas\/AvailableDeliveryExperienceOption" + } + }, + "AvailableShippingServiceOptions": { + "required": [ + "AvailableCarrierWillPickUpOptions", + "AvailableDeliveryExperienceOptions" + ], + "type": "object", + "properties": { + "AvailableCarrierWillPickUpOptions": { + "$ref": "#\/components\/schemas\/AvailableCarrierWillPickUpOptionsList" + }, + "AvailableDeliveryExperienceOptions": { + "$ref": "#\/components\/schemas\/AvailableDeliveryExperienceOptionsList" + } + }, + "description": "The available shipping service options." + }, + "AvailableFormatOptionsForLabel": { + "$ref": "#\/components\/schemas\/AvailableFormatOptionsForLabelList" + }, + "AvailableFormatOptionsForLabelList": { + "type": "array", + "description": "The available label formats.", + "items": { + "$ref": "#\/components\/schemas\/LabelFormatOption" + } + }, + "Constraint": { + "required": [ + "ValidationString" + ], + "type": "object", + "properties": { + "ValidationRegEx": { + "type": "string", + "description": "A regular expression." + }, + "ValidationString": { + "type": "string", + "description": "A validation string." + } + }, + "description": "A validation constraint." + }, + "Constraints": { + "type": "array", + "description": "List of constraints.", + "items": { + "$ref": "#\/components\/schemas\/Constraint" + } + }, + "AdditionalInputs": { + "type": "object", + "properties": { + "AdditionalInputFieldName": { + "type": "string", + "description": "The field name." + }, + "SellerInputDefinition": { + "$ref": "#\/components\/schemas\/SellerInputDefinition" + } + }, + "description": "Maps the additional seller input to the definition. The key to the map is the field name." + }, + "SellerInputDefinition": { + "required": [ + "Constraints", + "DataType", + "InputDisplayText", + "IsRequired", + "StoredValue" + ], + "type": "object", + "properties": { + "IsRequired": { + "type": "boolean", + "description": "When true, the additional input field is required." + }, + "DataType": { + "type": "string", + "description": "The data type of the additional input field." + }, + "Constraints": { + "$ref": "#\/components\/schemas\/Constraints" + }, + "InputDisplayText": { + "type": "string", + "description": "The display text for the additional input field." + }, + "InputTarget": { + "$ref": "#\/components\/schemas\/InputTargetType" + }, + "StoredValue": { + "$ref": "#\/components\/schemas\/AdditionalSellerInput" + }, + "RestrictedSetValues": { + "$ref": "#\/components\/schemas\/RestrictedSetValues" + } + }, + "description": "Specifies characteristics that apply to a seller input." + }, + "InputTargetType": { + "type": "string", + "description": "Indicates whether the additional seller input is at the item or shipment level.", + "enum": [ + "SHIPMENT_LEVEL", + "ITEM_LEVEL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPMENT_LEVEL", + "description": "The additional seller input is at the shipment level." + }, + { + "value": "ITEM_LEVEL", + "description": "The additional seller input is at the item level." + } + ] + }, + "AdditionalInputsList": { + "type": "array", + "description": "A list of additional inputs.", + "items": { + "$ref": "#\/components\/schemas\/AdditionalInputs" + } + }, + "AdditionalSellerInput": { + "type": "object", + "properties": { + "DataType": { + "type": "string", + "description": "The data type of the additional information." + }, + "ValueAsString": { + "type": "string", + "description": "The value when the data type is string." + }, + "ValueAsBoolean": { + "type": "boolean", + "description": "The value when the data type is boolean." + }, + "ValueAsInteger": { + "type": "integer", + "description": "The value when the data type is integer." + }, + "ValueAsTimestamp": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "ValueAsAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "ValueAsWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "ValueAsDimension": { + "$ref": "#\/components\/schemas\/Length" + }, + "ValueAsCurrency": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + } + }, + "description": "Additional information required to purchase shipping." + }, + "AdditionalSellerInputs": { + "required": [ + "AdditionalInputFieldName", + "AdditionalSellerInput" + ], + "type": "object", + "properties": { + "AdditionalInputFieldName": { + "type": "string", + "description": "The name of the additional input field." + }, + "AdditionalSellerInput": { + "$ref": "#\/components\/schemas\/AdditionalSellerInput" + } + }, + "description": "An additional set of seller inputs required to purchase shipping." + }, + "AdditionalSellerInputsList": { + "type": "array", + "description": "A list of additional seller input pairs required to purchase shipping.", + "items": { + "$ref": "#\/components\/schemas\/AdditionalSellerInputs" + } + }, + "Address": { + "required": [ + "AddressLine1", + "City", + "CountryCode", + "Email", + "Name", + "Phone", + "PostalCode" + ], + "type": "object", + "properties": { + "Name": { + "$ref": "#\/components\/schemas\/AddressName" + }, + "AddressLine1": { + "$ref": "#\/components\/schemas\/AddressLine1" + }, + "AddressLine2": { + "$ref": "#\/components\/schemas\/AddressLine2" + }, + "AddressLine3": { + "$ref": "#\/components\/schemas\/AddressLine3" + }, + "DistrictOrCounty": { + "$ref": "#\/components\/schemas\/DistrictOrCounty" + }, + "Email": { + "$ref": "#\/components\/schemas\/EmailAddress" + }, + "City": { + "$ref": "#\/components\/schemas\/City" + }, + "StateOrProvinceCode": { + "$ref": "#\/components\/schemas\/StateOrProvinceCode" + }, + "PostalCode": { + "$ref": "#\/components\/schemas\/PostalCode" + }, + "CountryCode": { + "$ref": "#\/components\/schemas\/CountryCode" + }, + "Phone": { + "$ref": "#\/components\/schemas\/PhoneNumber" + } + }, + "description": "The postal address information." + }, + "AddressLine1": { + "maxLength": 180, + "type": "string", + "description": "The street address information." + }, + "AddressLine2": { + "maxLength": 60, + "type": "string", + "description": "Additional street address information." + }, + "AddressLine3": { + "maxLength": 60, + "type": "string", + "description": "Additional street address information." + }, + "AddressName": { + "maxLength": 30, + "type": "string", + "description": "The name of the addressee, or business name." + }, + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + }, + "CancelShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Shipment" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema." + }, + "City": { + "maxLength": 30, + "type": "string", + "description": "The city." + }, + "CountryCode": { + "type": "string", + "description": "The country code. A two-character country code, in ISO 3166-1 alpha-2 format." + }, + "CreateShipmentRequest": { + "required": [ + "ShipmentRequestDetails", + "ShippingServiceId" + ], + "type": "object", + "properties": { + "ShipmentRequestDetails": { + "$ref": "#\/components\/schemas\/ShipmentRequestDetails" + }, + "ShippingServiceId": { + "$ref": "#\/components\/schemas\/ShippingServiceIdentifier" + }, + "ShippingServiceOfferId": { + "type": "string", + "description": "Identifies a shipping service order made by a carrier." + }, + "HazmatType": { + "$ref": "#\/components\/schemas\/HazmatType" + }, + "LabelFormatOption": { + "$ref": "#\/components\/schemas\/LabelFormatOptionRequest" + }, + "ShipmentLevelSellerInputsList": { + "$ref": "#\/components\/schemas\/AdditionalSellerInputsList" + } + }, + "description": "Request schema." + }, + "CreateShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Shipment" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema." + }, + "ItemLevelFields": { + "required": [ + "AdditionalInputs", + "Asin" + ], + "type": "object", + "properties": { + "Asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "AdditionalInputs": { + "$ref": "#\/components\/schemas\/AdditionalInputsList" + } + } + }, + "ItemLevelFieldsList": { + "type": "array", + "description": "A list of item level fields.", + "items": { + "$ref": "#\/components\/schemas\/ItemLevelFields" + } + }, + "GetAdditionalSellerInputsRequest": { + "required": [ + "OrderId", + "ShipFromAddress", + "ShippingServiceId" + ], + "type": "object", + "properties": { + "ShippingServiceId": { + "$ref": "#\/components\/schemas\/ShippingServiceIdentifier" + }, + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "OrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + } + }, + "description": "Request schema." + }, + "GetAdditionalSellerInputsResult": { + "type": "object", + "properties": { + "ShipmentLevelFields": { + "$ref": "#\/components\/schemas\/AdditionalInputsList" + }, + "ItemLevelFieldsList": { + "$ref": "#\/components\/schemas\/ItemLevelFieldsList" + } + }, + "description": "The payload for the getAdditionalSellerInputs operation." + }, + "GetAdditionalSellerInputsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetAdditionalSellerInputsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema." + }, + "CurrencyAmount": { + "required": [ + "Amount", + "CurrencyCode" + ], + "type": "object", + "properties": { + "CurrencyCode": { + "maxLength": 3, + "type": "string", + "description": "Three-digit currency code in ISO 4217 format." + }, + "Amount": { + "type": "number", + "description": "The currency amount.", + "format": "double" + } + }, + "description": "Currency type and amount." + }, + "CustomTextForLabel": { + "maxLength": 14, + "type": "string", + "description": "Custom text to print on the label.\n\nNote: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel." + }, + "DeliveryExperienceType": { + "type": "string", + "description": "The delivery confirmation level.", + "enum": [ + "DeliveryConfirmationWithAdultSignature", + "DeliveryConfirmationWithSignature", + "DeliveryConfirmationWithoutSignature", + "NoTracking" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DeliveryConfirmationWithAdultSignature", + "description": "Delivery confirmation with adult signature." + }, + { + "value": "DeliveryConfirmationWithSignature", + "description": "Delivery confirmation with signature. Required for DPD (UK)." + }, + { + "value": "DeliveryConfirmationWithoutSignature", + "description": "Delivery confirmation without signature." + }, + { + "value": "NoTracking", + "description": "No delivery confirmation." + } + ] + }, + "DistrictOrCounty": { + "type": "string", + "description": "The district or county." + }, + "EmailAddress": { + "type": "string", + "description": "The email address." + }, + "FileContents": { + "required": [ + "Checksum", + "Contents", + "FileType" + ], + "type": "object", + "properties": { + "Contents": { + "type": "string", + "description": "Data for printing labels, in the form of a Base64-encoded, GZip-compressed string." + }, + "FileType": { + "$ref": "#\/components\/schemas\/FileType" + }, + "Checksum": { + "type": "string", + "description": "An MD5 hash to validate the PDF document data, in the form of a Base64-encoded string." + } + }, + "description": "The document data and checksum." + }, + "FileType": { + "type": "string", + "description": "The file type for a label.", + "enum": [ + "application\/pdf", + "application\/zpl", + "image\/png" + ], + "x-docgen-enum-table-extension": [ + { + "value": "application\/pdf", + "description": "A Portable Document Format (pdf) file." + }, + { + "value": "application\/zpl", + "description": "A Zebra Programming Language (zpl) file." + }, + { + "value": "image\/png", + "description": "A Portable Network Graphics (png) file." + } + ] + }, + "GetEligibleShipmentServicesRequest": { + "required": [ + "ShipmentRequestDetails" + ], + "type": "object", + "properties": { + "ShipmentRequestDetails": { + "$ref": "#\/components\/schemas\/ShipmentRequestDetails" + }, + "ShippingOfferingFilter": { + "$ref": "#\/components\/schemas\/ShippingOfferingFilter" + } + }, + "description": "Request schema." + }, + "GetEligibleShipmentServicesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetEligibleShipmentServicesResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema." + }, + "GetEligibleShipmentServicesResult": { + "required": [ + "ShippingServiceList" + ], + "type": "object", + "properties": { + "ShippingServiceList": { + "$ref": "#\/components\/schemas\/ShippingServiceList" + }, + "RejectedShippingServiceList": { + "$ref": "#\/components\/schemas\/RejectedShippingServiceList" + }, + "TemporarilyUnavailableCarrierList": { + "$ref": "#\/components\/schemas\/TemporarilyUnavailableCarrierList" + }, + "TermsAndConditionsNotAcceptedCarrierList": { + "$ref": "#\/components\/schemas\/TermsAndConditionsNotAcceptedCarrierList" + } + }, + "description": "The payload for the getEligibleShipmentServices operation." + }, + "GetShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Shipment" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema." + }, + "HazmatType": { + "type": "string", + "description": "Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information on hazardous materials.", + "enum": [ + "None", + "LQHazmat" + ], + "x-docgen-enum-table-extension": [ + { + "value": "None", + "description": "The package does not contain hazardous material." + }, + { + "value": "LQHazmat", + "description": "The package contains limited quantities of hazardous material." + } + ] + }, + "Item": { + "required": [ + "OrderItemId", + "Quantity" + ], + "type": "object", + "properties": { + "OrderItemId": { + "$ref": "#\/components\/schemas\/OrderItemId" + }, + "Quantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "ItemWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "ItemDescription": { + "$ref": "#\/components\/schemas\/ItemDescription" + }, + "TransparencyCodeList": { + "$ref": "#\/components\/schemas\/TransparencyCodeList" + }, + "ItemLevelSellerInputsList": { + "$ref": "#\/components\/schemas\/AdditionalSellerInputsList" + } + }, + "description": "An Amazon order item identifier and a quantity." + }, + "ItemList": { + "type": "array", + "description": "The list of items to be included in a shipment.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "ItemQuantity": { + "type": "integer", + "description": "The number of items.", + "format": "int32" + }, + "ItemDescription": { + "type": "string", + "description": "The description of the item." + }, + "Label": { + "required": [ + "Dimensions", + "FileContents" + ], + "type": "object", + "properties": { + "CustomTextForLabel": { + "$ref": "#\/components\/schemas\/CustomTextForLabel" + }, + "Dimensions": { + "$ref": "#\/components\/schemas\/LabelDimensions" + }, + "FileContents": { + "$ref": "#\/components\/schemas\/FileContents" + }, + "LabelFormat": { + "$ref": "#\/components\/schemas\/LabelFormat" + }, + "StandardIdForLabel": { + "$ref": "#\/components\/schemas\/StandardIdForLabel" + } + }, + "description": "Data for creating a shipping label and dimensions for printing the label." + }, + "LabelCustomization": { + "type": "object", + "properties": { + "CustomTextForLabel": { + "$ref": "#\/components\/schemas\/CustomTextForLabel" + }, + "StandardIdForLabel": { + "$ref": "#\/components\/schemas\/StandardIdForLabel" + } + }, + "description": "Custom text for shipping labels." + }, + "LabelDimension": { + "type": "number", + "description": "A label dimension." + }, + "LabelDimensions": { + "required": [ + "Length", + "Unit", + "Width" + ], + "type": "object", + "properties": { + "Length": { + "$ref": "#\/components\/schemas\/LabelDimension" + }, + "Width": { + "$ref": "#\/components\/schemas\/LabelDimension" + }, + "Unit": { + "$ref": "#\/components\/schemas\/UnitOfLength" + } + }, + "description": "Dimensions for printing a shipping label." + }, + "LabelFormat": { + "type": "string", + "description": "The label format.", + "enum": [ + "PDF", + "PNG", + "ZPL203", + "ZPL300", + "ShippingServiceDefault" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PDF", + "description": "Portable Document Format (pdf)." + }, + { + "value": "PNG", + "description": "Portable Network Graphics (png) format." + }, + { + "value": "ZPL203", + "description": "Zebra Programming Language (zpl) format, 203 dots per inch resolution." + }, + { + "value": "ZPL300", + "description": "Zebra Programming Language (zpl) format, 300 dots per inch resolution." + }, + { + "value": "ShippingServiceDefault", + "description": "The default provided by the shipping service." + } + ] + }, + "LabelFormatList": { + "type": "array", + "description": "List of label formats.", + "items": { + "$ref": "#\/components\/schemas\/LabelFormat" + } + }, + "Length": { + "type": "object", + "properties": { + "value": { + "type": "number", + "description": "The value in units." + }, + "unit": { + "$ref": "#\/components\/schemas\/UnitOfLength" + } + }, + "description": "The length." + }, + "OrderItemId": { + "type": "string", + "description": "An Amazon-defined identifier for an individual item in an order." + }, + "PackageDimension": { + "type": "number", + "format": "double" + }, + "PackageDimensions": { + "type": "object", + "properties": { + "Length": { + "$ref": "#\/components\/schemas\/PackageDimension" + }, + "Width": { + "$ref": "#\/components\/schemas\/PackageDimension" + }, + "Height": { + "$ref": "#\/components\/schemas\/PackageDimension" + }, + "Unit": { + "$ref": "#\/components\/schemas\/UnitOfLength" + }, + "PredefinedPackageDimensions": { + "$ref": "#\/components\/schemas\/PredefinedPackageDimensions" + } + }, + "description": "The dimensions of a package contained in a shipment." + }, + "PhoneNumber": { + "maxLength": 30, + "type": "string", + "description": "The phone number." + }, + "PostalCode": { + "maxLength": 30, + "type": "string", + "description": "The zip code or postal code." + }, + "PredefinedPackageDimensions": { + "type": "string", + "description": "An enumeration of predefined parcel tokens. If you specify a PredefinedPackageDimensions token, you are not obligated to use a branded package from a carrier. For example, if you specify the FedEx_Box_10kg token, you do not have to use that particular package from FedEx. You are only obligated to use a box that matches the dimensions specified by the token.\n\nNote: Please note that carriers can have restrictions on the type of package allowed for certain ship methods. Check the carrier website for all details. Example: Flat rate pricing is available when materials are sent by USPS in a USPS-produced Flat Rate Envelope or Box.", + "enum": [ + "FedEx_Box_10kg", + "FedEx_Box_25kg", + "FedEx_Box_Extra_Large_1", + "FedEx_Box_Extra_Large_2", + "FedEx_Box_Large_1", + "FedEx_Box_Large_2", + "FedEx_Box_Medium_1", + "FedEx_Box_Medium_2", + "FedEx_Box_Small_1", + "FedEx_Box_Small_2", + "FedEx_Envelope", + "FedEx_Padded_Pak", + "FedEx_Pak_1", + "FedEx_Pak_2", + "FedEx_Tube", + "FedEx_XL_Pak", + "UPS_Box_10kg", + "UPS_Box_25kg", + "UPS_Express_Box", + "UPS_Express_Box_Large", + "UPS_Express_Box_Medium", + "UPS_Express_Box_Small", + "UPS_Express_Envelope", + "UPS_Express_Hard_Pak", + "UPS_Express_Legal_Envelope", + "UPS_Express_Pak", + "UPS_Express_Tube", + "UPS_Laboratory_Pak", + "UPS_Pad_Pak", + "UPS_Pallet", + "USPS_Card", + "USPS_Flat", + "USPS_FlatRateCardboardEnvelope", + "USPS_FlatRateEnvelope", + "USPS_FlatRateGiftCardEnvelope", + "USPS_FlatRateLegalEnvelope", + "USPS_FlatRatePaddedEnvelope", + "USPS_FlatRateWindowEnvelope", + "USPS_LargeFlatRateBoardGameBox", + "USPS_LargeFlatRateBox", + "USPS_Letter", + "USPS_MediumFlatRateBox1", + "USPS_MediumFlatRateBox2", + "USPS_RegionalRateBoxA1", + "USPS_RegionalRateBoxA2", + "USPS_RegionalRateBoxB1", + "USPS_RegionalRateBoxB2", + "USPS_RegionalRateBoxC", + "USPS_SmallFlatRateBox", + "USPS_SmallFlatRateEnvelope" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FedEx_Box_10kg", + "description": "15.81 x 12.94 x 10.19 in." + }, + { + "value": "FedEx_Box_25kg", + "description": "54.80 x 42.10 x 33.50 in." + }, + { + "value": "FedEx_Box_Extra_Large_1", + "description": "11.88 x 11.00 x 10.75 in." + }, + { + "value": "FedEx_Box_Extra_Large_2", + "description": "15.75 x 14.13 x 6.00 in." + }, + { + "value": "FedEx_Box_Large_1", + "description": "17.50 x 12.38 x 3.00 in." + }, + { + "value": "FedEx_Box_Large_2", + "description": "11.25 x 8.75 x 7.75 in." + }, + { + "value": "FedEx_Box_Medium_1", + "description": "13.25 x 11.50 x 2.38 in." + }, + { + "value": "FedEx_Box_Medium_2", + "description": "11.25 x 8.75 x 4.38 in." + }, + { + "value": "FedEx_Box_Small_1", + "description": "12.38 x 10.88 x 1.50 in." + }, + { + "value": "FedEx_Box_Small_2", + "description": "8.75 x 2.63 x 11.25 in." + }, + { + "value": "FedEx_Envelope", + "description": "12.50 x 9.50 x 0.80 in." + }, + { + "value": "FedEx_Padded_Pak", + "description": "11.75 x 14.75 x 2.00 in." + }, + { + "value": "FedEx_Pak_1", + "description": "15.50 x 12.00 x 0.80 in." + }, + { + "value": "FedEx_Pak_2", + "description": "12.75 x 10.25 x 0.80 in." + }, + { + "value": "FedEx_Tube", + "description": "38.00 x 6.00 x 6.00 in." + }, + { + "value": "FedEx_XL_Pak", + "description": "17.50 x 20.75 x 2.00 in." + }, + { + "value": "UPS_Box_10kg", + "description": "41.00 x 33.50 x 26.50 cm." + }, + { + "value": "UPS_Box_25kg", + "description": "48.40 x 43.30 x 35.00 cm." + }, + { + "value": "UPS_Express_Box", + "description": "46.00 x 31.50 x 9.50 cm." + }, + { + "value": "UPS_Express_Box_Large", + "description": "18.00 x 13.00 x 3.00 in." + }, + { + "value": "UPS_Express_Box_Medium", + "description": "15.00 x 11.00 x 3.00 in." + }, + { + "value": "UPS_Express_Box_Small", + "description": "13.00 x 11.00 x 2.00 in." + }, + { + "value": "UPS_Express_Envelope", + "description": "12.50 x 9.50 x 2.00 in." + }, + { + "value": "UPS_Express_Hard_Pak", + "description": "14.75 x 11.50 x 2.00 in." + }, + { + "value": "UPS_Express_Legal_Envelope", + "description": "15.00 x 9.50 x 2.00 in." + }, + { + "value": "UPS_Express_Pak", + "description": "16.00 x 12.75 x 2.00 in." + }, + { + "value": "UPS_Express_Tube", + "description": "97.00 x 19.00 x 16.50 cm." + }, + { + "value": "UPS_Laboratory_Pak", + "description": "17.25 x 12.75 x 2.00 in." + }, + { + "value": "UPS_Pad_Pak", + "description": "14.75 x 11.00 x 2.00 in." + }, + { + "value": "UPS_Pallet", + "description": "120.00 x 80.00 x 200.00 cm." + }, + { + "value": "USPS_Card", + "description": "6.00 x 4.25 x 0.01 in." + }, + { + "value": "USPS_Flat", + "description": "15.00 x 12.00 x 0.75 in." + }, + { + "value": "USPS_FlatRateCardboardEnvelope", + "description": "12.50 x 9.50 x 4.00 in." + }, + { + "value": "USPS_FlatRateEnvelope", + "description": "12.50 x 9.50 x 4.00 in." + }, + { + "value": "USPS_FlatRateGiftCardEnvelope", + "description": "10.00 x 7.00 x 4.00 in" + }, + { + "value": "USPS_FlatRateLegalEnvelope", + "description": "15.00 x 9.50 x 4.00 in." + }, + { + "value": "USPS_FlatRatePaddedEnvelope", + "description": "12.50 x 9.50 x 4.00 in." + }, + { + "value": "USPS_FlatRateWindowEnvelope", + "description": "10.00 x 5.00 x 4.00 in." + }, + { + "value": "USPS_LargeFlatRateBoardGameBox", + "description": "24.06 x 11.88 x 3.13 in." + }, + { + "value": "USPS_LargeFlatRateBox", + "description": "12.25 x 12.25 x 6.00 in." + }, + { + "value": "USPS_Letter", + "description": "11.50 x 6.13 x 0.25 in." + }, + { + "value": "USPS_MediumFlatRateBox1", + "description": "11.25 x 8.75 x 6.00 in." + }, + { + "value": "USPS_MediumFlatRateBox2", + "description": "14.00 x 12.00 x 3.50 in." + }, + { + "value": "USPS_RegionalRateBoxA1", + "description": "10.13 x 7.13 x 5.00 in." + }, + { + "value": "USPS_RegionalRateBoxA2", + "description": "13.06 x 11.06 x 2.50 in." + }, + { + "value": "USPS_RegionalRateBoxB1", + "description": "16.25 x 14.50 x 3.00 in." + }, + { + "value": "USPS_RegionalRateBoxB2", + "description": "12.25 x 10.50 x 5.50 in." + }, + { + "value": "USPS_RegionalRateBoxC", + "description": "15.00 x 12.00 x 12.00 in." + }, + { + "value": "USPS_SmallFlatRateBox", + "description": "8.69 x 5.44 x 1.75 in." + }, + { + "value": "USPS_SmallFlatRateEnvelope", + "description": "10.00 x 6.00 x 4.00 in." + } + ] + }, + "RestrictedSetValues": { + "type": "array", + "description": "The set of fixed values in an additional seller input.", + "items": { + "type": "string", + "description": "A single fixed value." + } + }, + "SellerOrderId": { + "maxLength": 64, + "type": "string", + "description": "A seller-defined order identifier." + }, + "Shipment": { + "required": [ + "AmazonOrderId", + "CreatedDate", + "Insurance", + "ItemList", + "Label", + "PackageDimensions", + "ShipFromAddress", + "ShipToAddress", + "ShipmentId", + "ShippingService", + "Status", + "Weight" + ], + "type": "object", + "properties": { + "ShipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "AmazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "SellerOrderId": { + "$ref": "#\/components\/schemas\/SellerOrderId" + }, + "ItemList": { + "$ref": "#\/components\/schemas\/ItemList" + }, + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "ShipToAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "PackageDimensions": { + "$ref": "#\/components\/schemas\/PackageDimensions" + }, + "Weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "Insurance": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + }, + "ShippingService": { + "$ref": "#\/components\/schemas\/ShippingService" + }, + "Label": { + "$ref": "#\/components\/schemas\/Label" + }, + "Status": { + "$ref": "#\/components\/schemas\/ShipmentStatus" + }, + "TrackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + }, + "CreatedDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "LastUpdatedDate": { + "$ref": "#\/components\/schemas\/Timestamp" + } + }, + "description": "The details of a shipment, including the shipment status." + }, + "ShipmentId": { + "type": "string", + "description": "An Amazon-defined shipment identifier." + }, + "ShipmentRequestDetails": { + "required": [ + "AmazonOrderId", + "ItemList", + "PackageDimensions", + "ShipFromAddress", + "ShippingServiceOptions", + "Weight" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "$ref": "#\/components\/schemas\/AmazonOrderId" + }, + "SellerOrderId": { + "$ref": "#\/components\/schemas\/SellerOrderId" + }, + "ItemList": { + "$ref": "#\/components\/schemas\/ItemList" + }, + "ShipFromAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "PackageDimensions": { + "$ref": "#\/components\/schemas\/PackageDimensions" + }, + "Weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "MustArriveByDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "ShipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "ShippingServiceOptions": { + "$ref": "#\/components\/schemas\/ShippingServiceOptions" + }, + "LabelCustomization": { + "$ref": "#\/components\/schemas\/LabelCustomization" + } + }, + "description": "Shipment information required for requesting shipping service offers or for creating a shipment." + }, + "ShipmentStatus": { + "type": "string", + "description": "The shipment status.", + "enum": [ + "Purchased", + "RefundPending", + "RefundRejected", + "RefundApplied" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Purchased", + "description": "The seller purchased a label by calling the createShipment operation." + }, + { + "value": "RefundPending", + "description": "The seller requested a label refund by calling the cancelShipment operation, and the refund request is being processed by the carrier.\n\nNote:\n\n* A seller can create a new shipment for an order while Status=RefundPending for a canceled shipment.\n* After a label refund is requested by calling the cancelShipment operation, the order status of the order remains \"Shipped\"." + }, + { + "value": "RefundRejected", + "description": "The label refund request was rejected by the carrier. A refund request is rejected for either of the following reasons:\n\n* The cancellation window has expired. Cancellation policies vary by carrier. For more information about carrier cancellation policies, see the Seller Central Help.\n* The carrier has already accepted the shipment for delivery." + }, + { + "value": "RefundApplied", + "description": "The refund has been approved and credited to the seller's account." + } + ] + }, + "DeliveryExperienceOption": { + "type": "string", + "description": "The delivery confirmation level.", + "enum": [ + "DeliveryConfirmationWithAdultSignature", + "DeliveryConfirmationWithSignature", + "DeliveryConfirmationWithoutSignature", + "NoTracking", + "NoPreference" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DeliveryConfirmationWithAdultSignature", + "description": "Delivery confirmation with adult signature." + }, + { + "value": "DeliveryConfirmationWithSignature", + "description": "Delivery confirmation with signature. Required for DPD (UK)." + }, + { + "value": "DeliveryConfirmationWithoutSignature", + "description": "Delivery confirmation without signature." + }, + { + "value": "NoTracking", + "description": "No delivery confirmation." + }, + { + "value": "NoPreference", + "description": "No preference." + } + ] + }, + "ShippingOfferingFilter": { + "type": "object", + "properties": { + "IncludePackingSlipWithLabel": { + "type": "boolean", + "description": "When true, include a packing slip with the label." + }, + "IncludeComplexShippingOptions": { + "type": "boolean", + "description": "When true, include complex shipping options." + }, + "CarrierWillPickUp": { + "$ref": "#\/components\/schemas\/CarrierWillPickUpOption" + }, + "DeliveryExperience": { + "$ref": "#\/components\/schemas\/DeliveryExperienceOption" + } + }, + "description": "Filter for use when requesting eligible shipping services." + }, + "ShippingService": { + "required": [ + "CarrierName", + "Rate", + "RequiresAdditionalSellerInputs", + "ShipDate", + "ShippingServiceId", + "ShippingServiceName", + "ShippingServiceOfferId", + "ShippingServiceOptions" + ], + "type": "object", + "properties": { + "ShippingServiceName": { + "type": "string", + "description": "A plain text representation of a carrier's shipping service. For example, \"UPS Ground\" or \"FedEx Standard Overnight\". " + }, + "CarrierName": { + "type": "string", + "description": "The name of the carrier." + }, + "ShippingServiceId": { + "$ref": "#\/components\/schemas\/ShippingServiceIdentifier" + }, + "ShippingServiceOfferId": { + "type": "string", + "description": "An Amazon-defined shipping service offer identifier." + }, + "ShipDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "EarliestEstimatedDeliveryDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "LatestEstimatedDeliveryDate": { + "$ref": "#\/components\/schemas\/Timestamp" + }, + "Rate": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + }, + "ShippingServiceOptions": { + "$ref": "#\/components\/schemas\/ShippingServiceOptions" + }, + "AvailableShippingServiceOptions": { + "$ref": "#\/components\/schemas\/AvailableShippingServiceOptions" + }, + "AvailableLabelFormats": { + "$ref": "#\/components\/schemas\/LabelFormatList" + }, + "AvailableFormatOptionsForLabel": { + "$ref": "#\/components\/schemas\/AvailableFormatOptionsForLabelList" + }, + "RequiresAdditionalSellerInputs": { + "type": "boolean", + "description": "When true, additional seller inputs are required." + } + }, + "description": "A shipping service offer made by a carrier." + }, + "ShippingServiceIdentifier": { + "type": "string", + "description": "An Amazon-defined shipping service identifier." + }, + "ShippingServiceList": { + "type": "array", + "description": "A list of shipping services offers.", + "items": { + "$ref": "#\/components\/schemas\/ShippingService" + } + }, + "ShippingServiceOptions": { + "required": [ + "CarrierWillPickUp", + "DeliveryExperience" + ], + "type": "object", + "properties": { + "DeliveryExperience": { + "$ref": "#\/components\/schemas\/DeliveryExperienceType" + }, + "DeclaredValue": { + "$ref": "#\/components\/schemas\/CurrencyAmount" + }, + "CarrierWillPickUp": { + "type": "boolean", + "description": "When true, the carrier will pick up the package.\n\nNote: Scheduled carrier pickup is available only using Dynamex (US), DPD (UK), and Royal Mail (UK)." + }, + "CarrierWillPickUpOption": { + "$ref": "#\/components\/schemas\/CarrierWillPickUpOption" + }, + "LabelFormat": { + "$ref": "#\/components\/schemas\/LabelFormat" + } + }, + "description": "Extra services provided by a carrier." + }, + "CarrierWillPickUpOption": { + "type": "string", + "description": "Carrier will pick up option.", + "enum": [ + "CarrierWillPickUp", + "ShipperWillDropOff", + "NoPreference" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CarrierWillPickUp", + "description": "The carrier will pick up the package." + }, + { + "value": "ShipperWillDropOff", + "description": "The seller is responsible for arranging pickup or dropping off the package to the carrier." + }, + { + "value": "NoPreference", + "description": "No preference." + } + ] + }, + "StandardIdForLabel": { + "type": "string", + "description": "The type of standard identifier to print on the label.", + "enum": [ + "AmazonOrderId" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonOrderId", + "description": "An Amazon-defined order identifier in 3-7-7 format." + } + ] + }, + "StateOrProvinceCode": { + "maxLength": 30, + "type": "string", + "description": "The state or province code. **Note.** Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China." + }, + "RejectedShippingService": { + "required": [ + "CarrierName", + "RejectionReasonCode", + "ShippingServiceId", + "ShippingServiceName" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The rejected shipping carrier name. e.g. USPS" + }, + "ShippingServiceName": { + "type": "string", + "description": "The rejected shipping service localized name. e.g. FedEx Standard Overnight" + }, + "ShippingServiceId": { + "$ref": "#\/components\/schemas\/ShippingServiceIdentifier" + }, + "RejectionReasonCode": { + "type": "string", + "description": "A reason code meant to be consumed programatically. e.g. CARRIER_CANNOT_SHIP_TO_POBOX" + }, + "RejectionReasonMessage": { + "type": "string", + "description": "A localized human readable description of the rejected reason." + } + }, + "description": "Information about a rejected shipping service" + }, + "RejectedShippingServiceList": { + "type": "array", + "description": "List of services that were for some reason unavailable for this request", + "items": { + "$ref": "#\/components\/schemas\/RejectedShippingService" + } + }, + "TemporarilyUnavailableCarrier": { + "required": [ + "CarrierName" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The name of the carrier." + } + }, + "description": "A carrier who is temporarily unavailable, most likely due to a service outage experienced by the carrier." + }, + "TemporarilyUnavailableCarrierList": { + "type": "array", + "description": "A list of temporarily unavailable carriers.", + "items": { + "$ref": "#\/components\/schemas\/TemporarilyUnavailableCarrier" + } + }, + "TermsAndConditionsNotAcceptedCarrier": { + "required": [ + "CarrierName" + ], + "type": "object", + "properties": { + "CarrierName": { + "type": "string", + "description": "The name of the carrier." + } + }, + "description": "A carrier whose terms and conditions have not been accepted by the seller." + }, + "TermsAndConditionsNotAcceptedCarrierList": { + "type": "array", + "description": "List of carriers whose terms and conditions were not accepted by the seller.", + "items": { + "$ref": "#\/components\/schemas\/TermsAndConditionsNotAcceptedCarrier" + } + }, + "Timestamp": { + "type": "string", + "format": "date-time" + }, + "TrackingId": { + "type": "string", + "description": "The shipment tracking identifier provided by the carrier." + }, + "TransparencyCode": { + "type": "string", + "description": "The Transparency code associated with the item. The Transparency serial number that needs to be submitted can be determined by the following:\n\n**1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN).\n**2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number will be applied to the same side of the packaging as the GTIN (UPC\/EAN\/ISBN) barcode.\n**QR code SN:** Submit the URL that the QR code generates." + }, + "TransparencyCodeList": { + "type": "array", + "description": "A list of transparency codes.", + "items": { + "$ref": "#\/components\/schemas\/TransparencyCode" + } + }, + "UnitOfLength": { + "type": "string", + "description": "The unit of length.", + "enum": [ + "inches", + "centimeters" + ], + "x-docgen-enum-table-extension": [ + { + "value": "inches", + "description": "The unit of length is inches." + }, + { + "value": "centimeters", + "description": "The unit of length is centimeters." + } + ] + }, + "UnitOfWeight": { + "type": "string", + "description": "The unit of weight.", + "enum": [ + "oz", + "g" + ], + "x-docgen-enum-table-extension": [ + { + "value": "oz", + "description": "The unit of weight is ounces." + }, + { + "value": "g", + "description": "The unit of weight is grams." + } + ] + }, + "Weight": { + "required": [ + "Unit", + "Value" + ], + "type": "object", + "properties": { + "Value": { + "$ref": "#\/components\/schemas\/WeightValue" + }, + "Unit": { + "$ref": "#\/components\/schemas\/UnitOfWeight" + } + }, + "description": "The weight." + }, + "WeightValue": { + "type": "number", + "description": "The weight value.", + "format": "double" + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/messaging/v1.json b/resources/models/seller/messaging/v1.json new file mode 100644 index 000000000..43b5d666a --- /dev/null +++ b/resources/models/seller/messaging/v1.json @@ -0,0 +1,4513 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Messaging", + "description": "With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the JSON Hypertext Application Language<\/a> (HAL) standard.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/messaging\/v1\/orders\/{amazonOrderId}": { + "get": { + "tags": [ + "MessagingV1" + ], + "description": "Returns a list of message types that are available for an order that you specify. A message type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a message.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getMessagingActionsForOrder", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which you want a list of available message types.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Returns hypermedia links under the _links.actions key that specify which messaging actions are allowed for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + }, + "example": { + "_links": { + "actions": [ + { + "href": "\/messaging\/v1\/orders\/903-1671087-0812628\/messages\/negativeFeedbackRemoval?marketplaceIds=ATVPDKIKX0DER", + "name": "negativeFeedbackRemoval" + } + ], + "self": { + "href": "\/messaging\/v1\/orders\/903-1671087-0812628?marketplaceIds=ATVPDKIKX0DER" + } + }, + "_embedded": { + "actions": [ + { + "_links": { + "schema": { + "href": "\/messaging\/v1\/orders\/903-1671087-0812628\/messages\/negativeFeedbackRemoval\/schema", + "name": "negativeFeedbackRemoval" + }, + "self": { + "href": "\/messaging\/v1\/orders\/903-1671087-0812628\/messages\/negativeFeedbackRemoval?marketplaceIds=ATVPDKIKX0DER", + "name": "negativeFeedbackRemoval" + } + } + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + } + } + }, + "response": { + "_links": { + "actions": [ + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/confirmCustomizationDetails?marketplaceIds=ATVPDKIKX0DER", + "name": "confirmCustomizationDetails" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/confirmDeliveryDetails?marketplaceIds=ATVPDKIKX0DER", + "name": "confirmDeliveryDetails" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/legalDisclosure?marketplaceIds=ATVPDKIKX0DER", + "name": "legalDisclosure" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/negativeFeedbackRemoval?marketplaceIds=ATVPDKIKX0DER", + "name": "negativeFeedbackRemoval" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/confirmOrderDetails?marketplaceIds=ATVPDKIKX0DER", + "name": "confirmOrderDetails" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/confirmServiceDetails?marketplaceIds=ATVPDKIKX0DER", + "name": "confirmServiceDetails" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/amazonMotors?marketplaceIds=ATVPDKIKX0DER", + "name": "amazonMotors" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/digitalAccessKey?marketplaceIds=ATVPDKIKX0DER", + "name": "digitalAccessKey" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/unexpectedProblem?marketplaceIds=ATVPDKIKX0DER", + "name": "unexpectedProblem" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/messages\/warranty?marketplaceIds=ATVPDKIKX0DER", + "name": "warranty" + }, + { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567\/attributes?marketplaceIds=ATVPDKIKX0DER", + "name": "attributes" + } + ], + "self": { + "href": "\/messaging\/v1\/orders\/123-1234567-1234567?marketplaceIds=ATVPDKIKX0DER" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMessagingActionsForOrderResponse" + } + } + } + } + } + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/confirmCustomizationDetails": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message asking a buyer to provide or verify customization details such as name spelling, images, initials, etc.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "confirmCustomizationDetails", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message", + "attachments": [ + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + }, + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + } + ] + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmCustomizationDetailsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/confirmDeliveryDetails": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createConfirmDeliveryDetails", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmDeliveryDetailsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/legalDisclosure": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer. This message should only be used to deliver documents that are required by law.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createLegalDisclosure", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The legal disclosure message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "attachments": [ + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + }, + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + } + ] + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateLegalDisclosureResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/negativeFeedbackRemoval": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a non-critical message that asks a buyer to remove their negative feedback. This message should only be sent after the seller has resolved the buyer's problem.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createNegativeFeedbackRemoval", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "201": { + "description": "The negativeFeedbackRemoval message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateNegativeFeedbackRemovalResponse" + } + } + } + } + } + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/confirmOrderDetails": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to ask a buyer an order-related question prior to shipping their order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createConfirmOrderDetails", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmOrderDetailsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/confirmServiceDetails": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a service call.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createConfirmServiceDetails", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateConfirmServiceDetailsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/amazonMotors": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by Amazon Motors sellers.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "CreateAmazonMotors", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "attachments": [ + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + } + ] + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateAmazonMotorsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/warranty": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to a buyer to provide details about warranty information on a purchase in their order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "CreateWarranty", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "attachments": [ + { + "uploadDestinationId": "8634452c-4d4f-4703-8cea-2ecc9dcb3279", + "fileName": "warranty.txt" + } + ], + "coverageStartDate": "2004-12-13T21:39:45.618-08:00", + "coverageEndDate": "2005-12-13T21:39:45.618-08:00" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateWarrantyResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/attributes": { + "get": { + "tags": [ + "MessagingV1" + ], + "description": "Returns a response containing attributes related to an order. This includes buyer preferences.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |", + "operationId": "GetAttributes", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Response has successfully been returned.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "buyer": { + "locale": "en-US" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + } + } + }, + "response": { + "buyer": { + "locale": "en-US" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAttributesResponse" + }, + "example": { + "errors": [ + { + "code": "string", + "message": "string", + "details": "string" + } + ] + } + } + } + } + } + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/digitalAccessKey": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message to a buyer to share a digital access key needed to utilize digital content in their order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createDigitalAccessKey", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message", + "attachments": [ + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + }, + { + "uploadDestinationId": "4e936e26-7b72-4b84-af27-e6baee1d546d", + "fileName": "AmazonMotors.txt" + } + ] + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDigitalAccessKeyResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/unexpectedProblem": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createUnexpectedProblem", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "body": { + "value": { + "text": "My Message" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-0000000" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUnexpectedProblemResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/invoice": { + "post": { + "tags": [ + "MessagingV1" + ], + "description": "Sends a message providing the buyer an invoice", + "operationId": "sendInvoice", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a message is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "badOrderId" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "415": { + "description": "The entity of the request is in a format not supported by the requested resource.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/InvoiceResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "Attachment": { + "required": [ + "fileName", + "uploadDestinationId" + ], + "type": "object", + "properties": { + "uploadDestinationId": { + "type": "string", + "description": "The identifier of the upload destination. Get this value by calling the [createUploadDestinationForResource](doc:uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Uploads API." + }, + "fileName": { + "type": "string", + "description": "The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded." + } + }, + "description": "Represents a file uploaded to a destination that was created by the [createUploadDestinationForResource](doc:uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation of the Selling Partner API for Uploads." + }, + "LinkObject": { + "required": [ + "href" + ], + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "A URI for this object." + }, + "name": { + "type": "string", + "description": "An identifier for this object." + } + }, + "description": "A Link object." + }, + "MessagingAction": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "description": "A simple object containing the name of the template." + }, + "Schema": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "A JSON schema document describing the expected payload of the action. This object can be validated against http:\/\/json-schema.org\/draft-04\/schema<\/a>." + }, + "GetMessagingActionsForOrderResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "actions", + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + }, + "actions": { + "type": "array", + "description": "Eligible actions for the specified amazonOrderId.", + "items": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + } + }, + "_embedded": { + "required": [ + "actions" + ], + "type": "object", + "properties": { + "actions": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/GetMessagingActionResponse" + } + } + } + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getMessagingActionsForOrder operation." + }, + "GetMessagingActionResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "schema", + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + }, + "schema": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + }, + "_embedded": { + "type": "object", + "properties": { + "schema": { + "$ref": "#\/components\/schemas\/GetSchemaResponse" + } + } + }, + "payload": { + "$ref": "#\/components\/schemas\/MessagingAction" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Describes a messaging 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." + }, + "GetSchemaResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + }, + "payload": { + "$ref": "#\/components\/schemas\/Schema" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "InvoiceRequest": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + } + }, + "description": "The request schema for the sendInvoice operation." + }, + "InvoiceResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the sendInvoice operation." + }, + "CreateConfirmCustomizationDetailsRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 800, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to customization details are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + }, + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + } + }, + "description": "The request schema for the confirmCustomizationDetails operation." + }, + "CreateConfirmCustomizationDetailsResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the confirmCustomizationDetails operation." + }, + "CreateConfirmDeliveryDetailsRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 2000, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to order delivery are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + } + }, + "description": "The request schema for the createConfirmDeliveryDetails operation." + }, + "CreateConfirmDeliveryDetailsResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createConfirmDeliveryDetails operation." + }, + "CreateNegativeFeedbackRemovalResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createNegativeFeedbackRemoval operation." + }, + "CreateLegalDisclosureRequest": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + } + }, + "description": "The request schema for the createLegalDisclosure operation." + }, + "CreateLegalDisclosureResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createLegalDisclosure operation." + }, + "CreateConfirmOrderDetailsRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 2000, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to order completion are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + } + }, + "description": "The request schema for the createConfirmOrderDetails operation." + }, + "CreateConfirmOrderDetailsResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createConfirmOrderDetails operation." + }, + "CreateConfirmServiceDetailsRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 2000, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to Home Service calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + } + }, + "description": "The request schema for the createConfirmServiceDetails operation." + }, + "CreateConfirmServiceDetailsResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createConfirmServiceDetails operation." + }, + "CreateAmazonMotorsRequest": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + } + }, + "description": "The request schema for the createAmazonMotors operation." + }, + "CreateAmazonMotorsResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createAmazonMotors operation." + }, + "CreateWarrantyRequest": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + }, + "coverageStartDate": { + "type": "string", + "description": "The start date of the warranty coverage to include in the message to the buyer.", + "format": "date-time" + }, + "coverageEndDate": { + "type": "string", + "description": "The end date of the warranty coverage to include in the message to the buyer.", + "format": "date-time" + } + }, + "description": "The request schema for the createWarranty operation." + }, + "CreateWarrantyResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createWarranty operation." + }, + "GetAttributesResponse": { + "type": "object", + "properties": { + "buyer": { + "type": "object", + "properties": { + "locale": { + "type": "string", + "description": "The buyer's language of preference, indicated with a locale-specific language tag. Examples: \"en-US\", \"zh-CN\", and \"en-GB\"." + } + }, + "description": "The list of attributes related to the buyer." + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the GetAttributes operation." + }, + "CreateDigitalAccessKeyRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 400, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + }, + "attachments": { + "type": "array", + "description": "Attachments to include in the message to the buyer.", + "items": { + "$ref": "#\/components\/schemas\/Attachment" + } + } + }, + "description": "The request schema for the createDigitalAccessKey operation." + }, + "CreateDigitalAccessKeyResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createDigitalAccessKey operation." + }, + "CreateUnexpectedProblemRequest": { + "type": "object", + "properties": { + "text": { + "maxLength": 2000, + "minLength": 1, + "type": "string", + "description": "The text to be sent to the buyer. Only links related to unexpected problem calls are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation." + } + }, + "description": "The request schema for the createUnexpectedProblem operation." + }, + "CreateUnexpectedProblemResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createUnexpectedProblem operation." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/notifications/v1.json b/resources/models/seller/notifications/v1.json new file mode 100644 index 000000000..247463ce8 --- /dev/null +++ b/resources/models/seller/notifications/v1.json @@ -0,0 +1,2587 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Notifications", + "description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.\n\nFor more information, see the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/notifications\/v1\/subscriptions\/{notificationType}": { + "get": { + "tags": [ + "NotificationsV1" + ], + "description": "Returns information about subscriptions of the specified notification type. You can use this API to get subscription information when you do not have a subscription identifier.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSubscription", + "parameters": [ + { + "$ref": "#\/components\/parameters\/NotificationType" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "subscriptionId": "TEST_CASE_200_SUBSCRIPTION_ID", + "payloadVersion": "1.0", + "destinationId": "TEST_CASE_200_DESTINATION_ID" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "NotificationsV1" + ], + "description": "Creates a subscription for the specified notification type to be delivered to the specified destination. Before you can subscribe, you must first create the destination by calling the createDestination operation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createSubscription", + "parameters": [ + { + "$ref": "#\/components\/parameters\/NotificationType" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "subscriptionId": "TEST_CASE_200_SUBSCRIPTION_ID", + "payloadVersion": "1.0", + "destinationId": "TEST_CASE_200_DESTINATION_ID" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSubscriptionResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/notifications\/v1\/subscriptions\/{notificationType}\/{subscriptionId}": { + "get": { + "tags": [ + "NotificationsV1" + ], + "description": "Returns information about a subscription for the specified notification type. The getSubscriptionById API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSubscriptionById", + "parameters": [ + { + "name": "subscriptionId", + "in": "path", + "description": "The identifier for the subscription that you want to get.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#\/components\/parameters\/NotificationType" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "subscriptionId": "TEST_CASE_200_SUBSCRIPTION_ID", + "payloadVersion": "1.0", + "destinationId": "TEST_CASE_200_DESTINATION_ID" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSubscriptionByIdResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "NotificationsV1" + ], + "description": "Deletes the subscription indicated by the subscription identifier and notification type that you specify. The subscription identifier can be for any subscription associated with your application. After you successfully call this operation, notifications will stop being sent for the associated subscription. The deleteSubscriptionById API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "deleteSubscriptionById", + "parameters": [ + { + "name": "subscriptionId", + "in": "path", + "description": "The identifier for the subscription that you want to delete.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#\/components\/parameters\/NotificationType" + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteSubscriptionByIdResponse" + } + } + } + } + } + } + }, + "\/notifications\/v1\/destinations": { + "get": { + "tags": [ + "NotificationsV1" + ], + "description": "Returns information about all destinations. The getDestinations API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getDestinations", + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": [ + { + "destinationId": "TEST_CASE_200", + "resource": { + "sqs": { + "arn": "arn:aws:sqs:us-east-2:444455556666:queue1" + } + }, + "name": "SQSDestination" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationsResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "NotificationsV1" + ], + "description": "Creates a destination resource to receive notifications. The createDestination API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createDestination", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "destinationId": "TEST_CASE_200_DESTINATION_ID", + "resource": { + "sqs": { + "arn": "arn:aws:sqs:us-east-2:444455556666:queue1" + } + }, + "name": "SQSDestination" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateDestinationResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/notifications\/v1\/destinations\/{destinationId}": { + "get": { + "tags": [ + "NotificationsV1" + ], + "description": "Returns information about the destination that you specify. The getDestination API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getDestination", + "parameters": [ + { + "name": "destinationId", + "in": "path", + "description": "The identifier generated when you created the destination.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "destinationId": "TEST_CASE_200_DESTINATION", + "resource": { + "sqs": { + "arn": "arn:aws:sqs:us-east-2:444455556666:queue1" + } + }, + "name": "SQSDestination" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetDestinationResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "NotificationsV1" + ], + "description": "Deletes the destination that you specify. The deleteDestination API is grantless. For more information, see [Grantless operations](doc:grantless-operations) in the Selling Partner API Developer Guide.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "deleteDestination", + "parameters": [ + { + "name": "destinationId", + "in": "path", + "description": "The identifier for the destination that you want to delete.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "409": { + "description": "The resource specified conflicts with the current state.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DeleteDestinationResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ProcessingDirective": { + "type": "object", + "properties": { + "eventFilter": { + "$ref": "#\/components\/schemas\/EventFilter" + } + }, + "description": "Additional information passed to the subscription to control the processing of notifications. For example, you can use an `eventFilter` to customize your subscription to send notifications for only the specified marketplaceId's, or select the aggregation time period at which to send notifications (e.g. limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the notificationType.\n\nThis feature is currently only supported by the `ANY_OFFER_CHANGED` and `ORDER_CHANGE` notificationTypes." + }, + "EventFilter": { + "description": "A notificationType specific filter. This object contains all of the currently available filters and properties that you can use to define a notificationType specific filter.", + "allOf": [ + { + "$ref": "#\/components\/schemas\/AggregationFilter" + }, + { + "$ref": "#\/components\/schemas\/MarketplaceFilter" + }, + { + "$ref": "#\/components\/schemas\/OrderChangeTypeFilter" + }, + { + "required": [ + "eventFilterType" + ], + "type": "object", + "properties": { + "eventFilterType": { + "type": "string", + "description": "An eventFilterType value that is supported by the specific notificationType. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](doc:notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported.", + "enum": [ + "ANY_OFFER_CHANGED", + "ORDER_CHANGE" + ] + } + } + } + ] + }, + "MarketplaceFilter": { + "type": "object", + "properties": { + "marketplaceIds": { + "$ref": "#\/components\/schemas\/MarketplaceIds" + } + }, + "description": "Use this event filter to customize your subscription to send notifications for only the specified marketplaceId's." + }, + "MarketplaceIds": { + "type": "array", + "description": "A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list.", + "items": { + "type": "string" + } + }, + "AggregationFilter": { + "type": "object", + "properties": { + "aggregationSettings": { + "$ref": "#\/components\/schemas\/AggregationSettings" + } + }, + "description": "Use this filter to select the aggregation time period at which to send notifications (e.g. limit to one notification every five minutes for high frequency notifications)." + }, + "AggregationSettings": { + "required": [ + "aggregationTimePeriod" + ], + "type": "object", + "properties": { + "aggregationTimePeriod": { + "$ref": "#\/components\/schemas\/AggregationTimePeriod" + } + }, + "description": "A container that holds all of the necessary properties to configure the aggregation of notifications." + }, + "AggregationTimePeriod": { + "type": "string", + "description": "The supported aggregation time periods. For example, if FiveMinutes is the value chosen, and 50 price updates occur for an ASIN within 5 minutes, Amazon will send only two notifications; one for the first event, and then a subsequent notification 5 minutes later with the final end state of the data. The 48 interim events will be dropped.", + "enum": [ + "FiveMinutes", + "TenMinutes" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FiveMinutes", + "description": "An aggregated notification will be sent every five minutes." + }, + { + "value": "TenMinutes", + "description": "An aggregated notification will be sent every ten minutes." + } + ] + }, + "OrderChangeTypeFilter": { + "type": "object", + "properties": { + "orderChangeTypes": { + "$ref": "#\/components\/schemas\/OrderChangeTypes" + } + }, + "description": "Use this event filter to customize your subscription to send notifications for only the specified orderChangeType." + }, + "OrderChangeTypes": { + "type": "array", + "description": "A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list.", + "items": { + "$ref": "#\/components\/schemas\/OrderChangeTypeEnum" + } + }, + "OrderChangeTypeEnum": { + "type": "string", + "description": "The supported order change type of ORDER_CHANGE notification.", + "enum": [ + "OrderStatusChange", + "BuyerRequestedChange" + ] + }, + "Subscription": { + "required": [ + "destinationId", + "payloadVersion", + "subscriptionId" + ], + "type": "object", + "properties": { + "subscriptionId": { + "type": "string", + "description": "The subscription identifier generated when the subscription is created." + }, + "payloadVersion": { + "type": "string", + "description": "The version of the payload object to be used in the notification." + }, + "destinationId": { + "type": "string", + "description": "The identifier for the destination where notifications will be delivered." + }, + "processingDirective": { + "$ref": "#\/components\/schemas\/ProcessingDirective" + } + }, + "description": "Represents a subscription to receive notifications." + }, + "CreateSubscriptionResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Subscription" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createSubscription operation." + }, + "CreateSubscriptionRequest": { + "type": "object", + "properties": { + "payloadVersion": { + "type": "string", + "description": "The version of the payload object to be used in the notification." + }, + "destinationId": { + "type": "string", + "description": "The identifier for the destination where notifications will be delivered." + }, + "processingDirective": { + "$ref": "#\/components\/schemas\/ProcessingDirective" + } + }, + "description": "The request schema for the createSubscription operation." + }, + "GetSubscriptionByIdResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Subscription" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getSubscriptionById operation." + }, + "GetSubscriptionResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Subscription" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getSubscription operation." + }, + "DeleteSubscriptionByIdResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the deleteSubscriptionById operation." + }, + "DestinationList": { + "type": "array", + "description": "A list of destinations.", + "items": { + "$ref": "#\/components\/schemas\/Destination" + } + }, + "Destination": { + "required": [ + "destinationId", + "name", + "resource" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 256, + "type": "string", + "description": "The developer-defined name for this destination." + }, + "destinationId": { + "type": "string", + "description": "The destination identifier generated when you created the destination." + }, + "resource": { + "$ref": "#\/components\/schemas\/DestinationResource" + } + }, + "description": "Represents a destination created when you call the createDestination operation." + }, + "DestinationResource": { + "type": "object", + "properties": { + "sqs": { + "$ref": "#\/components\/schemas\/SqsResource" + }, + "eventBridge": { + "$ref": "#\/components\/schemas\/EventBridgeResource" + } + }, + "description": "The destination resource types." + }, + "DestinationResourceSpecification": { + "type": "object", + "properties": { + "sqs": { + "$ref": "#\/components\/schemas\/SqsResource" + }, + "eventBridge": { + "$ref": "#\/components\/schemas\/EventBridgeResourceSpecification" + } + }, + "description": "The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination." + }, + "SqsResource": { + "required": [ + "arn" + ], + "type": "object", + "properties": { + "arn": { + "maxLength": 1000, + "pattern": "^arn:aws:sqs:\\S+:\\S+:\\S+", + "type": "string", + "description": "The Amazon Resource Name (ARN) associated with the SQS queue." + } + }, + "description": "The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination." + }, + "EventBridgeResourceSpecification": { + "required": [ + "accountId", + "region" + ], + "type": "object", + "properties": { + "region": { + "type": "string", + "description": "The AWS region in which you will be receiving the notifications." + }, + "accountId": { + "type": "string", + "description": "The identifier for the AWS account that is responsible for charges related to receiving notifications." + } + }, + "description": "The information required to create an Amazon EventBridge destination." + }, + "EventBridgeResource": { + "required": [ + "accountId", + "name", + "region" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 256, + "type": "string", + "description": "The name of the partner event source associated with the destination." + }, + "region": { + "type": "string", + "description": "The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https:\/\/docs.aws.amazon.com\/general\/latest\/gr\/ev.html." + }, + "accountId": { + "type": "string", + "description": "The identifier for the AWS account that is responsible for charges related to receiving notifications." + } + }, + "description": "Represents an Amazon EventBridge destination." + }, + "CreateDestinationRequest": { + "required": [ + "name", + "resourceSpecification" + ], + "type": "object", + "properties": { + "resourceSpecification": { + "$ref": "#\/components\/schemas\/DestinationResourceSpecification" + }, + "name": { + "type": "string", + "description": "A developer-defined name to help identify this destination." + } + }, + "description": "The request schema for the createDestination operation." + }, + "CreateDestinationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Destination" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createDestination operation." + }, + "GetDestinationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Destination" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getDestination operation." + }, + "GetDestinationsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/DestinationList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getDestinations operation." + }, + "DeleteDestinationResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the deleteDestination operation." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + }, + "parameters": { + "NotificationType": { + "name": "notificationType", + "in": "path", + "description": "The type of notification.\n\n For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide).", + "required": true, + "schema": { + "type": "string" + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/orders/v0.json b/resources/models/seller/orders/v0.json new file mode 100644 index 000000000..f2b4f2529 --- /dev/null +++ b/resources/models/seller/orders/v0.json @@ -0,0 +1,5305 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Orders", + "description": "The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API supports orders that are two years old or less. Orders more than two years old will not show in the API response.\n\n_Note:_ The Orders API supports orders from 2016 and after for the JP, AU, and SG marketplaces.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/orders\/v0\/orders": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrders", + "parameters": [ + { + "name": "CreatedAfter", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "CreatedBefore", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "LastUpdatedAfter", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "LastUpdatedBefore", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "OrderStatuses", + "in": "query", + "description": "A list of `OrderStatus` values used to filter the results.\n\n**Possible values:**\n- `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.)\n- `Pending` (The order has been placed but payment has not been authorized.)\n- `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.)\n- `PartiallyShipped` (One or more, but not all, items in the order have been shipped.)\n- `Shipped` (All items in the order have been shipped.)\n- `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.)\n- `Canceled` (The order has been canceled.)\n- `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.)", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "MarketplaceIds", + "in": "query", + "description": "A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces.\n\nRefer to [Marketplace IDs](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/marketplace-ids) for a complete list of marketplaceId values.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "FulfillmentChannels", + "in": "query", + "description": "A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller).", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "PaymentMethods", + "in": "query", + "description": "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).", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "BuyerEmail", + "in": "query", + "description": "The email address of a buyer. Used to select orders that contain the specified email address.", + "schema": { + "type": "string" + } + }, + { + "name": "SellerOrderId", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "MaxResultsPerPage", + "in": "query", + "description": "A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100.", + "schema": { + "type": "integer" + } + }, + { + "name": "EasyShipShipmentStatuses", + "in": "query", + "description": "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.\n\n**Possible values:**\n- `PendingSchedule` (The package is awaiting the schedule for pick-up.)\n- `PendingPickUp` (Amazon has not yet picked up the package from the seller.)\n- `PendingDropOff` (The seller will deliver the package to the carrier.)\n- `LabelCanceled` (The seller canceled the pickup.)\n- `PickedUp` (Amazon has picked up the package from the seller.)\n- `DroppedOff` (The package is delivered to the carrier by the seller.)\n- `AtOriginFC` (The packaged is at the origin fulfillment center.)\n- `AtDestinationFC` (The package is at the destination fulfillment center.)\n- `Delivered` (The package has been delivered.)\n- `RejectedByBuyer` (The package has been rejected by the buyer.)\n- `Undeliverable` (The package cannot be delivered.)\n- `ReturningToSeller` (The package was not delivered and is being returned to the seller.)\n- `ReturnedToSeller` (The package was not delivered and was returned to the seller.)\n- `Lost` (The package is lost.)\n- `OutForDelivery` (The package is out for delivery.)\n- `Damaged` (The package was damaged by the carrier.)", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ElectronicInvoiceStatuses", + "in": "query", + "description": "A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values.\n\n**Possible values:**\n- `NotRequired` (Electronic invoice submission is not required for this order.)\n- `NotFound` (The electronic invoice was not submitted for this order.)\n- `Processing` (The electronic invoice is being processed for this order.)\n- `Errored` (The last submitted electronic invoice was rejected for this order.)\n- `Accepted` (The last submitted electronic invoice was submitted and accepted.)", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + }, + { + "name": "AmazonOrderIds", + "in": "query", + "description": "A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ActualFulfillmentSupplySourceId", + "in": "query", + "description": "Denotes the recommended sourceId where the order should be fulfilled from.", + "schema": { + "type": "string" + } + }, + { + "name": "IsISPU", + "in": "query", + "description": "When true, this order is marked to be picked up from a store rather than delivered.", + "schema": { + "type": "boolean" + } + }, + { + "name": "StoreChainStoreId", + "in": "query", + "description": "The store chain store identifier. Linked to a specific store in a store chain.", + "schema": { + "type": "string" + } + }, + { + "name": "EarliestDeliveryDateBefore", + "in": "query", + "description": "A date used for selecting orders with a earliest delivery date before (or at) a specified time. The date must be in ISO 8601 format.", + "schema": { + "type": "string" + } + }, + { + "name": "EarliestDeliveryDateAfter", + "in": "query", + "description": "A date used for selecting orders with a earliest delivery date after (or at) a specified time. The date must be in ISO 8601 format.", + "schema": { + "type": "string" + } + }, + { + "name": "LatestDeliveryDateBefore", + "in": "query", + "description": "A date used for selecting orders with a latest delivery date before (or at) a specified time. The date must be in ISO 8601 format.", + "schema": { + "type": "string" + } + }, + { + "name": "LatestDeliveryDateAfter", + "in": "query", + "description": "A date used for selecting orders with a latest delivery date after (or at) a specified time. The date must be in ISO 8601 format.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + }, + "example": { + "payload": { + "NextToken": "2YgYW55IGNhcm5hbCBwbGVhc3VyZS4", + "Orders": [ + { + "AmazonOrderId": "902-3159896-1390916", + "PurchaseDate": "2017-01-20T19:49:35Z", + "LastUpdateDate": "2017-01-20T19:49:35Z", + "OrderStatus": "Pending", + "FulfillmentChannel": "SellerFulfilled", + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 0, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "CreditCard", + "GiftCerificate" + ], + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "2017-01-20T19:51:16Z", + "LatestShipDate": "2017-01-25T19:49:35Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsAccessPointOrder": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false, + "ShippingAddress": { + "Name": "Michigan address", + "AddressLine1": "1 Cross St.", + "City": "Canton", + "StateOrRegion": "MI", + "PostalCode": "48817", + "CountryCode": "US" + }, + "BuyerInfo": { + "BuyerEmail": "user@example.com", + "BuyerName": "John Doe", + "BuyerTaxInfo": { + "CompanyLegalName": "A Company Name" + }, + "PurchaseOrderNumber": "1234567890123" + } + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "CreatedAfter": { + "value": "TEST_CASE_200" + }, + "MarketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "payload": { + "CreatedBefore": "1.569521782042E9", + "Orders": [ + { + "AmazonOrderId": "902-1845936-5435065", + "PurchaseDate": "1970-01-19T03:58:30Z", + "LastUpdateDate": "1970-01-19T03:58:32Z", + "OrderStatus": "Unshipped", + "FulfillmentChannel": "MFN", + "SalesChannel": "Amazon.com", + "ShipServiceLevel": "Std US D2D Dom", + "OrderTotal": { + "CurrencyCode": "USD", + "Amount": "11.01" + }, + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 1, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "Standard" + ], + "IsReplacementOrder": false, + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "1970-01-19T03:59:27Z", + "LatestShipDate": "1970-01-19T04:05:13Z", + "EarliestDeliveryDate": "1970-01-19T04:06:39Z", + "LatestDeliveryDate": "1970-01-19T04:15:17Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false, + "DefaultShipFromLocationAddress": { + "Name": "MFNIntegrationTestMerchant", + "AddressLine1": "2201 WESTLAKE AVE", + "City": "SEATTLE", + "StateOrRegion": "WA", + "PostalCode": "98121-2778", + "CountryCode": "US", + "Phone": "+1 480-386-0930 ext. 73824", + "AddressType": "Commercial" + }, + "FulfillmentInstruction": { + "FulfillmentSupplySourceId": "sampleSupplySourceId" + }, + "IsISPU": false, + "IsAccessPointOrder": false, + "AutomatedShippingSettings": { + "HasAutomatedShippingSettings": false + }, + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired" + }, + { + "AmazonOrderId": "902-8745147-1934268", + "PurchaseDate": "1970-01-19T03:58:30Z", + "LastUpdateDate": "1970-01-19T03:58:32Z", + "OrderStatus": "Unshipped", + "FulfillmentChannel": "MFN", + "SalesChannel": "Amazon.com", + "ShipServiceLevel": "Std US D2D Dom", + "OrderTotal": { + "CurrencyCode": "USD", + "Amount": "11.01" + }, + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 1, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "Standard" + ], + "IsReplacementOrder": false, + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "1970-01-19T03:59:27Z", + "LatestShipDate": "1970-01-19T04:05:13Z", + "EarliestDeliveryDate": "1970-01-19T04:06:39Z", + "LatestDeliveryDate": "1970-01-19T04:15:17Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsAccessPointOrder": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false, + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired" + } + ] + } + } + }, + { + "request": { + "parameters": { + "CreatedAfter": { + "value": "TEST_CASE_200_NEXT_TOKEN" + }, + "MarketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "payload": { + "NextToken": "2YgYW55IGNhcm5hbCBwbGVhc3VyZS4", + "Orders": [ + { + "AmazonOrderId": "902-3159896-1390916", + "PurchaseDate": "2017-01-20T19:49:35Z", + "LastUpdateDate": "2017-01-20T19:49:35Z", + "OrderStatus": "Pending", + "FulfillmentChannel": "SellerFulfilled", + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 0, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "CreditCard", + "GiftCerificate" + ], + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired", + "EarliestShipDate": "2017-01-20T19:51:16Z", + "LatestShipDate": "2017-01-25T19:49:35Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsAccessPointOrder": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false + } + ] + } + } + }, + { + "request": { + "parameters": { + "CreatedAfter": { + "value": "TEST_CASE_200_NEXT_TOKEN" + }, + "MarketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + }, + "NextToken": { + "value": "2YgYW55IGNhcm5hbCBwbGVhc3VyZS4" + } + } + }, + "response": { + "payload": { + "Orders": [ + { + "AmazonOrderId": "902-3159896-1390916", + "PurchaseDate": "2017-01-20T19:49:35Z", + "LastUpdateDate": "2017-01-20T19:49:35Z", + "OrderStatus": "Pending", + "FulfillmentChannel": "SellerFulfilled", + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 0, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "CreditCard", + "GiftCerificate" + ], + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired", + "EarliestShipDate": "2017-01-20T19:51:16Z", + "LatestShipDate": "2017-01-25T19:49:35Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsAccessPointOrder": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "CreatedAfter": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns the order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrder", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + }, + "example": { + "payload": { + "AmazonOrderId": "902-3159896-1390916", + "PurchaseDate": "2017-01-20T19:49:35Z", + "LastUpdateDate": "2017-01-20T19:49:35Z", + "OrderStatus": "Pending", + "FulfillmentChannel": "SellerFulfilled", + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 0, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "CreditCard", + "GiftCerificate" + ], + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "2017-01-20T19:51:16Z", + "LatestShipDate": "2017-01-25T19:49:35Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false, + "DefaultShipFromLocationAddress": { + "Name": "MFNIntegrationTestMerchant", + "AddressLine1": "2201 WESTLAKE AVE", + "City": "SEATTLE", + "StateOrRegion": "WA", + "PostalCode": "98121-2778", + "CountryCode": "US", + "Phone": "+1 480-386-0930 ext. 73824", + "AddressType": "Commercial" + }, + "FulfillmentInstruction": { + "FulfillmentSupplySourceId": "sampleSupplySourceId" + }, + "IsISPU": false, + "IsAccessPointOrder": false, + "ShippingAddress": { + "Name": "Michigan address", + "AddressLine1": "1 Cross St.", + "City": "Canton", + "StateOrRegion": "MI", + "PostalCode": "48817", + "CountryCode": "US" + }, + "BuyerInfo": { + "BuyerEmail": "user@example.com", + "BuyerName": "John Doe", + "BuyerTaxInfo": { + "CompanyLegalName": "A Company Name" + }, + "PurchaseOrderNumber": "1234567890123" + }, + "AutomatedShippingSettings": { + "HasAutomatedShippingSettings": false + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-1845936-5435065", + "PurchaseDate": "1970-01-19T03:58:30Z", + "LastUpdateDate": "1970-01-19T03:58:32Z", + "OrderStatus": "Unshipped", + "FulfillmentChannel": "MFN", + "SalesChannel": "Amazon.com", + "ShipServiceLevel": "Std US D2D Dom", + "OrderTotal": { + "CurrencyCode": "USD", + "Amount": "11.01" + }, + "NumberOfItemsShipped": 0, + "NumberOfItemsUnshipped": 1, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "Standard" + ], + "IsReplacementOrder": false, + "MarketplaceId": "ATVPDKIKX0DER", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "1970-01-19T03:59:27Z", + "LatestShipDate": "1970-01-19T04:05:13Z", + "EarliestDeliveryDate": "1970-01-19T04:06:39Z", + "LatestDeliveryDate": "1970-01-19T04:15:17Z", + "IsBusinessOrder": false, + "IsPrime": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": false, + "IsIBA": false, + "DefaultShipFromLocationAddress": { + "Name": "MFNIntegrationTestMerchant", + "AddressLine1": "2201 WESTLAKE AVE", + "City": "SEATTLE", + "StateOrRegion": "WA", + "PostalCode": "98121-2778", + "CountryCode": "US", + "Phone": "+1 480-386-0930 ext. 73824", + "AddressType": "Commercial" + }, + "FulfillmentInstruction": { + "FulfillmentSupplySourceId": "sampleSupplySourceId" + }, + "IsISPU": false, + "IsAccessPointOrder": false, + "AutomatedShippingSettings": { + "HasAutomatedShippingSettings": false + }, + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired" + } + } + }, + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_IBA_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "921-3175655-0452641", + "PurchaseDate": "2019-05-07T15:42:57.058Z", + "LastUpdateDate": "2019-05-08T21:59:59Z", + "OrderStatus": "Shipped", + "FulfillmentChannel": "AFN", + "SalesChannel": "Amazon.de", + "ShipServiceLevel": "Standard", + "OrderTotal": { + "CurrencyCode": "EUR", + "Amount": "100.00" + }, + "NumberOfItemsShipped": 1, + "NumberOfItemsUnshipped": 0, + "PaymentMethod": "Other", + "PaymentMethodDetails": [ + "Invoice" + ], + "IsReplacementOrder": false, + "MarketplaceId": "A1PA6795UKMFR9", + "ShipmentServiceLevelCategory": "Standard", + "OrderType": "StandardOrder", + "EarliestShipDate": "1970-01-19T03:59:27Z", + "LatestShipDate": "2019-05-08T21:59:59Z", + "EarliestDeliveryDate": "2019-05-10T21:59:59Z", + "LatestDeliveryDate": "2019-05-12T21:59:59Z", + "IsBusinessOrder": true, + "IsPrime": false, + "IsGlobalExpressEnabled": false, + "IsPremiumOrder": false, + "IsSoldByAB": true, + "IsIBA": true, + "DefaultShipFromLocationAddress": { + "Name": "MFNIntegrationTestMerchant", + "AddressLine1": "2201 WESTLAKE AVE", + "City": "SEATTLE", + "StateOrRegion": "WA", + "PostalCode": "98121-2778", + "CountryCode": "US", + "Phone": "+1 480-386-0930 ext. 73824", + "AddressType": "Commercial" + }, + "FulfillmentInstruction": { + "FulfillmentSupplySourceId": "sampleSupplySourceId" + }, + "IsISPU": false, + "IsAccessPointOrder": false, + "AutomatedShippingSettings": { + "HasAutomatedShippingSettings": false + }, + "EasyShipShipmentStatus": "PendingPickUp", + "ElectronicInvoiceStatus": "NotRequired" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}\/buyerInfo": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns buyer information for the order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderBuyerInfo", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An orderId is an Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + }, + "example": { + "payload": { + "AmazonOrderId": "902-3159896-1390916", + "BuyerEmail": "user@example.com", + "BuyerName": "John Smith", + "BuyerTaxInfo": { + "CompanyLegalName": "Company Name" + }, + "PurchaseOrderNumber": "1234567890123" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-1845936-5435065", + "BuyerEmail": "fzyrv6gwkhbb15c@example.com", + "BuyerName": "MFNIntegrationTestMerchant" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderBuyerInfoResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}\/address": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns the shipping address for the order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderAddress", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An orderId is an Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + }, + "example": { + "payload": { + "AmazonOrderId": "902-3159896-1390916", + "ShippingAddress": { + "Name": "Michigan address", + "AddressLine1": "1 cross st", + "City": "Canton", + "StateOrRegion": "MI", + "PostalCode": "48817", + "CountryCode": "US" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-1845936-5435065", + "ShippingAddress": { + "Name": "MFNIntegrationTestMerchant", + "AddressLine1": "2201 WESTLAKE AVE", + "City": "SEATTLE", + "StateOrRegion": "WA", + "PostalCode": "98121-2778", + "CountryCode": "US", + "Phone": "+1 480-386-0930 ext. 73824", + "AddressType": "Commercial" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderAddressResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}\/orderItems": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns detailed order item information for the order that you specify. If NextToken is provided, it's used to retrieve the next page of order items.\n\n__Note__: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderItems", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + }, + "example": { + "payload": { + "AmazonOrderId": "903-1671087-0812628", + "NextToken": "2YgYW55IGNhcm5hbCBwbGVhc3VyZS4", + "OrderItems": [ + { + "ASIN": "BT0093TELA", + "OrderItemId": "68828574383266", + "SellerSKU": "CBA_OTF_1", + "Title": "Example item name", + "QuantityOrdered": 1, + "QuantityShipped": 1, + "PointsGranted": { + "PointsNumber": 10, + "PointsMonetaryValue": { + "CurrencyCode": "JPY", + "Amount": "10.00" + } + }, + "ItemPrice": { + "CurrencyCode": "JPY", + "Amount": "25.99" + }, + "ShippingPrice": { + "CurrencyCode": "JPY", + "Amount": "1.26" + }, + "ScheduledDeliveryEndDate": "2013-09-09T01:30:00Z", + "ScheduledDeliveryStartDate": "2013-09-07T02:00:00Z", + "CODFee": { + "CurrencyCode": "JPY", + "Amount": "10.00" + }, + "CODFeeDiscount": { + "CurrencyCode": "JPY", + "Amount": "1.00" + }, + "PriceDesignation": "BusinessPrice", + "BuyerInfo": { + "BuyerCustomizedInfo": { + "CustomizedURL": "https:\/\/zme-caps.amazon.com\/t\/bR6qHkzSOxuB\/J8nbWhze0Bd3DkajkOdY-XQbWkFralegp2sr_QZiKEE\/1" + }, + "GiftMessageText": "For you!", + "GiftWrapPrice": { + "CurrencyCode": "GBP", + "Amount": "41.99" + }, + "GiftWrapLevel": "Classic" + }, + "BuyerRequestedCancel": { + "IsBuyerRequestedCancel": true, + "BuyerCancelReason": "Found cheaper somewhere else." + }, + "SerialNumbers": [ + "854" + ] + }, + { + "ASIN": "BCTU1104UEFB", + "OrderItemId": "79039765272157", + "SellerSKU": "CBA_OTF_5", + "Title": "Example item name", + "QuantityOrdered": 2, + "ItemPrice": { + "CurrencyCode": "JPY", + "Amount": "17.95" + }, + "PromotionIds": [ + "FREESHIP" + ], + "ConditionId": "Used", + "ConditionSubtypeId": "Mint", + "ConditionNote": "Example ConditionNote", + "PriceDesignation": "BusinessPrice", + "BuyerInfo": { + "BuyerCustomizedInfo": { + "CustomizedURL": "https:\/\/zme-caps.amazon.com\/t\/bR6qHkzSOxuB\/J8nbWhze0Bd3DkajkOdY-XQbWkFralegp2sr_QZiKEE\/1" + }, + "GiftMessageText": "For you!", + "GiftWrapPrice": { + "CurrencyCode": "JPY", + "Amount": "1.99" + }, + "GiftWrapLevel": "Classic" + }, + "BuyerRequestedCancel": { + "IsBuyerRequestedCancel": true, + "BuyerCancelReason": "Found cheaper somewhere else." + } + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-1845936-5435065", + "OrderItems": [ + { + "ASIN": "B00551Q3CS", + "OrderItemId": "05015851154158", + "SellerSKU": "NABetaASINB00551Q3CS", + "Title": "B00551Q3CS [Card Book]", + "QuantityOrdered": 1, + "QuantityShipped": 0, + "ProductInfo": { + "NumberOfItems": 1 + }, + "ItemPrice": { + "CurrencyCode": "USD", + "Amount": "10.00" + }, + "ItemTax": { + "CurrencyCode": "USD", + "Amount": "1.01" + }, + "PromotionDiscount": { + "CurrencyCode": "USD", + "Amount": "0.00" + }, + "IsGift": false, + "ConditionId": "New", + "ConditionSubtypeId": "New", + "IsTransparency": false, + "SerialNumberRequired": false, + "IossNumber": "", + "DeemedResellerCategory": "IOSS", + "StoreChainStoreId": "ISPU_StoreId", + "BuyerRequestedCancel": { + "IsBuyerRequestedCancel": true, + "BuyerCancelReason": "Found cheaper somewhere else." + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}\/orderItems\/buyerInfo": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns buyer information for the order items in the order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderItemsBuyerInfo", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "NextToken", + "in": "query", + "description": "A string token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + }, + "example": { + "payload": { + "OrderItemId": "903-1671087-0812628", + "BuyerCustomizedInfo": { + "CustomizedURL": "https:\/\/zme-caps.amazon.com\/t\/bR6qHkzSOxuB\/J8nbWhze0Bd3DkajkOdY-XQbWkFralegp2sr_QZiKEE\/1" + }, + "GiftMessageText": "For you!", + "GiftWrapPrice": { + "CurrencyCode": "JPY", + "Amount": "1.99" + }, + "GiftWrapLevel": "Classic" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-1845936-5435065", + "OrderItems": [ + { + "BuyerCustomizedInfo": { + "CustomizedURL": "https:\/\/zme-caps.amazon.com\/t\/bR6qHkzSOxuB\/J8nbWhze0Bd3DkajkOdY-XQbWkFralegp2sr_QZiKEE\/1" + }, + "GiftMessageText": "Et toi!", + "GiftWrapPrice": { + "CurrencyCode": "JPY", + "Amount": "1.99" + }, + "GiftWrapLevel": "Classic" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderItemsBuyerInfoResponse" + } + } + } + } + } + } + }, + "\/orders\/v0\/orders\/{orderId}\/shipment": { + "post": { + "tags": [ + "OrdersV0" + ], + "description": "Update the shipment status for an order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateShipmentStatus", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The request body for the updateShipmentStatus operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "marketplaceId": "1", + "shipmentStatus": "ReadyForPickup" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Marketplace id is not defined", + "details": "1001" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateShipmentStatusErrorResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + } + }, + "\/orders\/v0\/orders\/{orderId}\/regulatedInfo": { + "get": { + "tags": [ + "OrdersV0" + ], + "description": "Returns regulated information for the order that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderRegulatedInfo", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An orderId is an Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "902-3159896-1390916" + } + } + }, + "response": { + "payload": { + "AmazonOrderId": "902-3159896-1390916", + "RequiresDosageLabel": false, + "RegulatedInformation": { + "Fields": [ + { + "FieldId": "pet_prescription_name", + "FieldLabel": "Name", + "FieldType": "Text", + "FieldValue": "Ruffus" + }, + { + "FieldId": "pet_prescription_species", + "FieldLabel": "Species", + "FieldType": "Text", + "FieldValue": "Dog" + } + ] + }, + "RegulatedOrderVerificationStatus": { + "Status": "Pending", + "RequiresMerchantAction": true, + "ValidRejectionReasons": [ + { + "RejectionReasonId": "shield_pom_vps_reject_product", + "RejectionReasonDescription": "This medicine is not suitable for your pet." + }, + { + "RejectionReasonId": "shield_pom_vps_reject_age", + "RejectionReasonDescription": "Your pet is too young for this medicine." + }, + { + "RejectionReasonId": "shield_pom_vps_reject_incorrect_weight", + "RejectionReasonDescription": "Your pet's weight does not match ordered size." + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderRegulatedInfoResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "OrdersV0" + ], + "description": "Updates (approves or rejects) the verification status of an order containing regulated products.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 30 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateVerificationStatus", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An orderId is an Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The request body for the updateVerificationStatus operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "902-3159896-1390916" + }, + "body": { + "value": { + "regulatedOrderVerificationStatus": { + "status": "Rejected", + "externalReviewerId": "reviewer1234", + "rejectionReasonId": "shield_pom_vps_reject_incorrect_weight" + } + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "902-3159896-1390916" + }, + "body": { + "value": { + "regulatedOrderVerificationStatus": { + "status": "Rejected" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing request parameter: rejectionReasonId." + }, + { + "code": "InvalidInput", + "message": "Missing request parameter: externalReviewerId." + } + ] + } + }, + { + "request": { + "parameters": { + "orderId": { + "value": "902-3159896-1390916" + }, + "body": { + "value": { + "regulatedOrderVerificationStatus": { + "status": "Cancelled", + "externalReviewerId": "reviewer1234" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid request parameter `status`. Must be one of [Approved, Rejected]." + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusErrorResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + } + }, + "\/orders\/v0\/orders\/{orderId}\/shipmentConfirmation": { + "post": { + "tags": [ + "OrdersV0" + ], + "description": "Updates the shipment confirmation status for a specified order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "confirmShipment", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "An Amazon-defined order identifier, in 3-7-7 format.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Request body of confirmShipment.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "902-1106328-1059050" + }, + "body": { + "value": { + "marketplaceId": "ATVPDKIKX0DER", + "packageDetail": { + "packageReferenceId": "1", + "carrierCode": "FedEx", + "carrierName": "FedEx", + "shippingMethod": "FedEx Ground", + "trackingNumber": "112345678", + "shipDate": "2022-02-11T01:00:00.000Z", + "shipFromSupplySourceId": "057d3fcc-b750-419f-bbcd-4d340c60c430", + "orderItems": [ + { + "orderItemId": "79039765272157", + "quantity": 1, + "transparencyCodes": [ + "09876543211234567890" + ] + } + ] + } + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "orderId": { + "value": "902-1106328-1059050" + }, + "body": { + "value": { + "marketplaceId": "ATVPDKIKX0DER", + "packageDetail": { + "packageReferenceId": "1", + "carrierCode": "FedEx", + "carrierName": "FedEx", + "shippingMethod": "FedEx Ground", + "trackingNumber": "112345678", + "shipDate": "02\/21\/2022", + "shipFromSupplySourceId": "057d3fcc-b750-419f-bbcd-4d340c60c430", + "orderItems": [ + { + "orderItemId": "79039765272157", + "quantity": 1, + "transparencyCodes": [ + "09876543211234567890" + ] + } + ] + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "Invalid Input", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ConfirmShipmentErrorResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + } + } + }, + "components": { + "schemas": { + "UpdateShipmentStatusRequest": { + "required": [ + "marketplaceId", + "shipmentStatus" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "shipmentStatus": { + "$ref": "#\/components\/schemas\/ShipmentStatus" + }, + "orderItems": { + "$ref": "#\/components\/schemas\/OrderItems" + } + }, + "description": "The request body for the updateShipmentStatus operation." + }, + "UpdateVerificationStatusRequest": { + "required": [ + "regulatedOrderVerificationStatus" + ], + "type": "object", + "properties": { + "regulatedOrderVerificationStatus": { + "$ref": "#\/components\/schemas\/UpdateVerificationStatusRequestBody" + } + }, + "description": "The request body for the updateVerificationStatus operation." + }, + "UpdateVerificationStatusRequestBody": { + "required": [ + "externalReviewerId", + "status" + ], + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/VerificationStatus" + }, + "externalReviewerId": { + "type": "string", + "description": "The identifier for the order's regulated information reviewer." + }, + "rejectionReasonId": { + "type": "string", + "description": "The unique identifier for the rejection reason used for rejecting the order's regulated information. Only required if the new status is rejected." + } + }, + "description": "The updated values of the VerificationStatus field." + }, + "MarketplaceId": { + "type": "string", + "description": "The unobfuscated marketplace identifier." + }, + "ShipmentStatus": { + "type": "string", + "description": "The shipment status to apply.", + "enum": [ + "ReadyForPickup", + "PickedUp", + "RefusedPickup" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ReadyForPickup", + "description": "Ready for pickup." + }, + { + "value": "PickedUp", + "description": "Picked up." + }, + { + "value": "RefusedPickup", + "description": "Refused pickup." + } + ] + }, + "OrderItems": { + "type": "array", + "description": "For partial shipment status updates, the list of order items and quantities to be updated.", + "items": { + "type": "object", + "properties": { + "orderItemId": { + "type": "string", + "description": "The unique identifier of the order item." + }, + "quantity": { + "type": "integer", + "description": "The quantity for which to update the shipment status." + } + } + } + }, + "UpdateShipmentStatusErrorResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The error response schema for the UpdateShipmentStatus operation." + }, + "UpdateVerificationStatusErrorResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The error response schema for the UpdateVerificationStatus operation." + }, + "GetOrdersResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrdersList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrders operation." + }, + "GetOrderResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Order" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrder operation." + }, + "GetOrderBuyerInfoResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderBuyerInfo" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderBuyerInfo operation." + }, + "GetOrderRegulatedInfoResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderRegulatedInfo" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderRegulatedInfo operation." + }, + "GetOrderAddressResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderAddress" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderAddress operation." + }, + "GetOrderItemsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderItemsList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderItems operation." + }, + "GetOrderItemsBuyerInfoResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderItemsBuyerInfoList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderItemsBuyerInfo operation." + }, + "OrdersList": { + "required": [ + "Orders" + ], + "type": "object", + "properties": { + "Orders": { + "$ref": "#\/components\/schemas\/OrderList" + }, + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "LastUpdatedBefore": { + "type": "string", + "description": "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. All dates must be in ISO 8601 format." + }, + "CreatedBefore": { + "type": "string", + "description": "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." + } + }, + "description": "A list of orders along with additional information to make subsequent API calls." + }, + "OrderList": { + "type": "array", + "description": "A list of orders.", + "items": { + "$ref": "#\/components\/schemas\/Order" + } + }, + "Order": { + "required": [ + "AmazonOrderId", + "LastUpdateDate", + "OrderStatus", + "PurchaseDate" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + }, + "SellerOrderId": { + "type": "string", + "description": "A seller-defined order identifier." + }, + "PurchaseDate": { + "type": "string", + "description": "The date when the order was created." + }, + "LastUpdateDate": { + "type": "string", + "description": "The date when the order was last updated.\n\n__Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01." + }, + "OrderStatus": { + "type": "string", + "description": "The current order status.", + "enum": [ + "Pending", + "Unshipped", + "PartiallyShipped", + "Shipped", + "Canceled", + "Unfulfillable", + "InvoiceUnconfirmed", + "PendingAvailability" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Pending", + "description": "The order has been placed but payment has not been authorized. The order is not ready for shipment. Note that for orders with OrderType = Standard, the initial order status is Pending. For orders with OrderType = Preorder, the initial order status is PendingAvailability, and the order passes into the Pending status when the payment authorization process begins." + }, + { + "value": "Unshipped", + "description": "Payment has been authorized and order is ready for shipment, but no items in the order have been shipped." + }, + { + "value": "PartiallyShipped", + "description": "One or more (but not all) items in the order have been shipped." + }, + { + "value": "Shipped", + "description": "All items in the order have been shipped." + }, + { + "value": "Canceled", + "description": "The order was canceled." + }, + { + "value": "Unfulfillable", + "description": "The order cannot be fulfilled. This state applies only to Amazon-fulfilled orders that were not placed on Amazon's retail web site." + }, + { + "value": "InvoiceUnconfirmed", + "description": "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." + }, + { + "value": "PendingAvailability", + "description": "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. The order is not ready for shipment." + } + ] + }, + "FulfillmentChannel": { + "type": "string", + "description": "Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN).", + "enum": [ + "MFN", + "AFN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MFN", + "description": "Fulfilled by the seller." + }, + { + "value": "AFN", + "description": "Fulfilled by Amazon." + } + ] + }, + "SalesChannel": { + "type": "string", + "description": "The sales channel of the first item in the order." + }, + "OrderChannel": { + "type": "string", + "description": "The order channel of the first item in the order." + }, + "ShipServiceLevel": { + "type": "string", + "description": "The shipment service level of the order." + }, + "OrderTotal": { + "$ref": "#\/components\/schemas\/Money" + }, + "NumberOfItemsShipped": { + "type": "integer", + "description": "The number of items shipped." + }, + "NumberOfItemsUnshipped": { + "type": "integer", + "description": "The number of items unshipped." + }, + "PaymentExecutionDetail": { + "$ref": "#\/components\/schemas\/PaymentExecutionDetailItemList" + }, + "PaymentMethod": { + "type": "string", + "description": "The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information.", + "enum": [ + "COD", + "CVS", + "Other" + ], + "x-docgen-enum-table-extension": [ + { + "value": "COD", + "description": "Cash on delivery." + }, + { + "value": "CVS", + "description": "Convenience store." + }, + { + "value": "Other", + "description": "A payment method other than COD and CVS." + } + ] + }, + "PaymentMethodDetails": { + "$ref": "#\/components\/schemas\/PaymentMethodDetailItemList" + }, + "MarketplaceId": { + "type": "string", + "description": "The identifier for the marketplace where the order was placed." + }, + "ShipmentServiceLevelCategory": { + "type": "string", + "description": "The shipment service level category of the order.\n\nPossible values: Expedited, FreeEconomy, NextDay, Priority, SameDay, SecondDay, Scheduled, Standard." + }, + "EasyShipShipmentStatus": { + "$ref": "#\/components\/schemas\/EasyShipShipmentStatus" + }, + "CbaDisplayableShippingLabel": { + "type": "string", + "description": "Custom ship label for Checkout by Amazon (CBA)." + }, + "OrderType": { + "type": "string", + "description": "The type of the order.", + "enum": [ + "StandardOrder", + "LongLeadTimeOrder", + "Preorder", + "BackOrder", + "SourcingOnDemandOrder" + ], + "x-docgen-enum-table-extension": [ + { + "value": "StandardOrder", + "description": "An order that contains items for which the selling partner currently has inventory in stock." + }, + { + "value": "LongLeadTimeOrder", + "description": "An order that contains items that have a long lead time to ship." + }, + { + "value": "Preorder", + "description": "An order that contains items with a release date that is in the future." + }, + { + "value": "BackOrder", + "description": "An order that contains items that already have been released in the market but are currently out of stock and will be available in the future." + }, + { + "value": "SourcingOnDemandOrder", + "description": "A Sourcing On Demand order." + } + ] + }, + "EarliestShipDate": { + "type": "string", + "description": "The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.\n\n__Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013." + }, + "LatestShipDate": { + "type": "string", + "description": "The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.\n\n__Note__: LatestShipDate might not be returned for orders placed before February 1, 2013." + }, + "EarliestDeliveryDate": { + "type": "string", + "description": "The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders." + }, + "LatestDeliveryDate": { + "type": "string", + "description": "The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status." + }, + "IsBusinessOrder": { + "type": "boolean", + "description": "When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer." + }, + "IsPrime": { + "type": "boolean", + "description": "When true, the order is a seller-fulfilled Amazon Prime order." + }, + "IsPremiumOrder": { + "type": "boolean", + "description": "When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, see \"Premium Shipping Options\" in the Seller Central Help for your marketplace." + }, + "IsGlobalExpressEnabled": { + "type": "boolean", + "description": "When true, the order is a GlobalExpress order." + }, + "ReplacedOrderId": { + "type": "string", + "description": "The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true." + }, + "IsReplacementOrder": { + "type": "boolean", + "description": "When true, this is a replacement order." + }, + "PromiseResponseDueDate": { + "type": "string", + "description": "Indicates the date by which the seller must respond to the buyer with an estimated ship date. Returned only for Sourcing on Demand orders." + }, + "IsEstimatedShipDateSet": { + "type": "boolean", + "description": "When true, the estimated ship date is set for the order. Returned only for Sourcing on Demand orders." + }, + "IsSoldByAB": { + "type": "boolean", + "description": "When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller." + }, + "IsIBA": { + "type": "boolean", + "description": "When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller." + }, + "DefaultShipFromLocationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "BuyerInvoicePreference": { + "type": "string", + "description": "The buyer's invoicing preference. Available only in the TR marketplace.", + "enum": [ + "INDIVIDUAL", + "BUSINESS" + ], + "x-docgen-enum-table-extension": [ + { + "value": "INDIVIDUAL", + "description": "Buyer should be issued an individual invoice." + }, + { + "value": "BUSINESS", + "description": "Buyer should be issued a business invoice. Tax information is available in BuyerTaxInformation structure." + } + ] + }, + "BuyerTaxInformation": { + "$ref": "#\/components\/schemas\/BuyerTaxInformation" + }, + "FulfillmentInstruction": { + "$ref": "#\/components\/schemas\/FulfillmentInstruction" + }, + "IsISPU": { + "type": "boolean", + "description": "When true, this order is marked to be picked up from a store rather than delivered." + }, + "IsAccessPointOrder": { + "type": "boolean", + "description": "When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers." + }, + "MarketplaceTaxInfo": { + "$ref": "#\/components\/schemas\/MarketplaceTaxInfo" + }, + "SellerDisplayName": { + "type": "string", + "description": "The seller\u2019s friendly name registered in the marketplace." + }, + "ShippingAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "BuyerInfo": { + "$ref": "#\/components\/schemas\/BuyerInfo" + }, + "AutomatedShippingSettings": { + "$ref": "#\/components\/schemas\/AutomatedShippingSettings" + }, + "HasRegulatedItems": { + "type": "boolean", + "description": "Whether the order contains regulated items which may require additional approval steps before being fulfilled." + }, + "ElectronicInvoiceStatus": { + "$ref": "#\/components\/schemas\/ElectronicInvoiceStatus" + } + }, + "description": "Order information." + }, + "OrderBuyerInfo": { + "required": [ + "AmazonOrderId" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + }, + "BuyerEmail": { + "type": "string", + "description": "The anonymized email address of the buyer." + }, + "BuyerName": { + "type": "string", + "description": "The buyer name or the recipient name." + }, + "BuyerCounty": { + "type": "string", + "description": "The county of the buyer." + }, + "BuyerTaxInfo": { + "$ref": "#\/components\/schemas\/BuyerTaxInfo" + }, + "PurchaseOrderNumber": { + "type": "string", + "description": "The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout." + } + }, + "description": "Buyer information for an order." + }, + "OrderRegulatedInfo": { + "required": [ + "AmazonOrderId", + "RegulatedInformation", + "RegulatedOrderVerificationStatus", + "RequiresDosageLabel" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + }, + "RegulatedInformation": { + "$ref": "#\/components\/schemas\/RegulatedInformation" + }, + "RequiresDosageLabel": { + "type": "boolean", + "description": "When true, the order requires attaching a dosage information label when shipped." + }, + "RegulatedOrderVerificationStatus": { + "$ref": "#\/components\/schemas\/RegulatedOrderVerificationStatus" + } + }, + "description": "The order's regulated information along with its verification status." + }, + "RegulatedOrderVerificationStatus": { + "required": [ + "RequiresMerchantAction", + "Status", + "ValidRejectionReasons" + ], + "type": "object", + "properties": { + "Status": { + "$ref": "#\/components\/schemas\/VerificationStatus" + }, + "RequiresMerchantAction": { + "type": "boolean", + "description": "When true, the regulated information provided in the order requires a review by the merchant." + }, + "ValidRejectionReasons": { + "type": "array", + "description": "A list of valid rejection reasons that may be used to reject the order's regulated information.", + "items": { + "$ref": "#\/components\/schemas\/RejectionReason" + } + }, + "RejectionReason": { + "$ref": "#\/components\/schemas\/RejectionReason" + }, + "ReviewDate": { + "type": "string", + "description": "The date the order was reviewed. In ISO 8601 date time format." + }, + "ExternalReviewerId": { + "type": "string", + "description": "The identifier for the order's regulated information reviewer." + } + }, + "description": "The verification status of the order along with associated approval or rejection metadata." + }, + "RejectionReason": { + "required": [ + "RejectionReasonDescription", + "RejectionReasonId" + ], + "type": "object", + "properties": { + "RejectionReasonId": { + "type": "string", + "description": "The unique identifier for the rejection reason." + }, + "RejectionReasonDescription": { + "type": "string", + "description": "The description of this rejection reason." + } + }, + "description": "The reason for rejecting the order's regulated information. Not present if the order isn't rejected." + }, + "VerificationStatus": { + "type": "string", + "description": "The verification status of the order.", + "enum": [ + "Pending", + "Approved", + "Rejected", + "Expired", + "Cancelled" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Pending", + "description": "The order is pending approval. Note that the approval might be needed from someone other than the merchant as determined by the RequiresMerchantAction property." + }, + { + "value": "Approved", + "description": "The order's regulated information has been reviewed and approved." + }, + { + "value": "Rejected", + "description": "The order's regulated information has been reviewed and rejected." + }, + { + "value": "Expired", + "description": "The time to review the order's regulated information has expired." + }, + { + "value": "Cancelled", + "description": "The order was cancelled by the purchaser." + } + ] + }, + "RegulatedInformation": { + "required": [ + "Fields" + ], + "type": "object", + "properties": { + "Fields": { + "type": "array", + "description": "A list of regulated information fields as collected from the regulatory form.", + "items": { + "$ref": "#\/components\/schemas\/RegulatedInformationField" + } + } + }, + "description": "The regulated information collected during purchase and used to verify the order." + }, + "RegulatedInformationField": { + "required": [ + "FieldId", + "FieldLabel", + "FieldType", + "FieldValue" + ], + "type": "object", + "properties": { + "FieldId": { + "type": "string", + "description": "The unique identifier for the field." + }, + "FieldLabel": { + "type": "string", + "description": "The name for the field." + }, + "FieldType": { + "type": "string", + "description": "The type of field.", + "enum": [ + "Text", + "FileAttachment" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Text", + "description": "This field is a text representation of a response collected from the regulatory form." + }, + { + "value": "FileAttachment", + "description": "This field contains the link to an attachment collected from the regulatory form." + } + ] + }, + "FieldValue": { + "type": "string", + "description": "The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here." + } + }, + "description": "A field collected from the regulatory form." + }, + "OrderAddress": { + "required": [ + "AmazonOrderId" + ], + "type": "object", + "properties": { + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + }, + "BuyerCompanyName": { + "type": "string", + "description": "Company Name of the Buyer." + }, + "ShippingAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "DeliveryPreferences": { + "$ref": "#\/components\/schemas\/DeliveryPreferences" + } + }, + "description": "The shipping address for the order." + }, + "Address": { + "required": [ + "Name" + ], + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "The name." + }, + "AddressLine1": { + "type": "string", + "description": "The street address." + }, + "AddressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "AddressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "City": { + "type": "string", + "description": "The city " + }, + "County": { + "type": "string", + "description": "The county." + }, + "District": { + "type": "string", + "description": "The district." + }, + "StateOrRegion": { + "type": "string", + "description": "The state or region." + }, + "Municipality": { + "type": "string", + "description": "The municipality." + }, + "PostalCode": { + "type": "string", + "description": "The postal code." + }, + "CountryCode": { + "type": "string", + "description": "The country code. A two-character country code, in ISO 3166-1 alpha-2 format." + }, + "Phone": { + "type": "string", + "description": "The phone number. Not returned for Fulfillment by Amazon (FBA) orders." + }, + "AddressType": { + "type": "string", + "description": "The address type of the shipping address.", + "enum": [ + "Residential", + "Commercial" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Residential", + "description": "The shipping address is a residential address." + }, + { + "value": "Commercial", + "description": "The shipping address is a commercial address." + } + ] + } + }, + "description": "The shipping address for the order." + }, + "DeliveryPreferences": { + "type": "object", + "properties": { + "DropOffLocation": { + "type": "string", + "description": "Drop-off location selected by the customer." + }, + "PreferredDeliveryTime": { + "$ref": "#\/components\/schemas\/PreferredDeliveryTime" + }, + "OtherAttributes": { + "type": "array", + "description": "Enumerated list of miscellaneous delivery attributes associated with the shipping address.", + "items": { + "$ref": "#\/components\/schemas\/OtherDeliveryAttributes" + } + }, + "AddressInstructions": { + "type": "string", + "description": "Building instructions, nearby landmark or navigation instructions." + } + }, + "description": "Contains all of the delivery instructions provided by the customer for the shipping address." + }, + "PreferredDeliveryTime": { + "type": "object", + "properties": { + "BusinessHours": { + "type": "array", + "description": "Business hours when the business is open for deliveries.", + "items": { + "$ref": "#\/components\/schemas\/BusinessHours" + } + }, + "ExceptionDates": { + "type": "array", + "description": "Dates when the business is closed in the next 30 days.", + "items": { + "$ref": "#\/components\/schemas\/ExceptionDates" + } + } + }, + "description": "The time window when the delivery is preferred." + }, + "BusinessHours": { + "type": "object", + "properties": { + "DayOfWeek": { + "type": "string", + "description": "Day of the week.", + "enum": [ + "SUN", + "MON", + "TUE", + "WED", + "THU", + "FRI", + "SAT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SUN", + "description": "Sunday - Day of the week." + }, + { + "value": "MON", + "description": "Monday - Day of the week." + }, + { + "value": "TUE", + "description": "Tuesday - Day of the week." + }, + { + "value": "WED", + "description": "Wednesday - Day of the week." + }, + { + "value": "THU", + "description": "Thursday - Day of the week." + }, + { + "value": "FRI", + "description": "Friday - Day of the week." + }, + { + "value": "SAT", + "description": "Saturday - Day of the week." + } + ] + }, + "OpenIntervals": { + "type": "array", + "description": "Time window during the day when the business is open.", + "items": { + "$ref": "#\/components\/schemas\/OpenInterval" + } + } + }, + "description": "Business days and hours when the destination is open for deliveries." + }, + "ExceptionDates": { + "type": "object", + "properties": { + "ExceptionDate": { + "type": "string", + "description": "Date when the business is closed, in ISO-8601 date format." + }, + "IsOpen": { + "type": "boolean", + "description": "Boolean indicating if the business is closed or open on that date." + }, + "OpenIntervals": { + "type": "array", + "description": "Time window during the day when the business is open.", + "items": { + "$ref": "#\/components\/schemas\/OpenInterval" + } + } + }, + "description": "Dates when the business is closed or open with a different time window." + }, + "OpenInterval": { + "type": "object", + "properties": { + "StartTime": { + "$ref": "#\/components\/schemas\/OpenTimeInterval" + }, + "EndTime": { + "$ref": "#\/components\/schemas\/OpenTimeInterval" + } + }, + "description": "The time interval for which the business is open." + }, + "OpenTimeInterval": { + "type": "object", + "properties": { + "Hour": { + "type": "integer", + "description": "The hour when the business opens or closes." + }, + "Minute": { + "type": "integer", + "description": "The minute when the business opens or closes." + } + }, + "description": "The time when the business opens or closes." + }, + "OtherDeliveryAttributes": { + "type": "string", + "description": "Miscellaneous delivery attributes associated with the shipping address.", + "enum": [ + "HAS_ACCESS_POINT", + "PALLET_ENABLED", + "PALLET_DISABLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "HAS_ACCESS_POINT", + "description": "Indicates whether the delivery has an access point pickup or drop-off location." + }, + { + "value": "PALLET_ENABLED", + "description": "Indicates whether pallet delivery is enabled for the address." + }, + { + "value": "PALLET_DISABLED", + "description": "Indicates whether pallet delivery is disabled for the address." + } + ] + }, + "Money": { + "type": "object", + "properties": { + "CurrencyCode": { + "type": "string", + "description": "The three-digit currency code. In ISO 4217 format." + }, + "Amount": { + "type": "string", + "description": "The currency amount." + } + }, + "description": "The monetary value of the order." + }, + "PaymentMethodDetailItemList": { + "type": "array", + "description": "A list of payment method detail items.", + "items": { + "type": "string" + } + }, + "PaymentExecutionDetailItemList": { + "type": "array", + "description": "A list of payment execution detail items.", + "items": { + "$ref": "#\/components\/schemas\/PaymentExecutionDetailItem" + } + }, + "PaymentExecutionDetailItem": { + "required": [ + "Payment", + "PaymentMethod" + ], + "type": "object", + "properties": { + "Payment": { + "$ref": "#\/components\/schemas\/Money" + }, + "PaymentMethod": { + "type": "string", + "description": "A sub-payment method for a COD order.\n\nPossible values:\n* `COD`: Cash On Delivery.\n* `GC`: Gift Card.\n* `PointsAccount`: Amazon Points.\n* `Invoice`: Invoice." + } + }, + "description": "Information about a sub-payment method used to pay for a COD order." + }, + "BuyerTaxInfo": { + "type": "object", + "properties": { + "CompanyLegalName": { + "type": "string", + "description": "The legal name of the company." + }, + "TaxingRegion": { + "type": "string", + "description": "The country or region imposing the tax." + }, + "TaxClassifications": { + "type": "array", + "description": "A list of tax classifications that apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/TaxClassification" + } + } + }, + "description": "Tax information about the buyer." + }, + "MarketplaceTaxInfo": { + "type": "object", + "properties": { + "TaxClassifications": { + "type": "array", + "description": "A list of tax classifications that apply to the order.", + "items": { + "$ref": "#\/components\/schemas\/TaxClassification" + } + } + }, + "description": "Tax information about the marketplace." + }, + "TaxClassification": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "The type of tax." + }, + "Value": { + "type": "string", + "description": "The buyer's tax identifier." + } + }, + "description": "The tax classification for the order." + }, + "OrderItemsList": { + "required": [ + "AmazonOrderId", + "OrderItems" + ], + "type": "object", + "properties": { + "OrderItems": { + "$ref": "#\/components\/schemas\/OrderItemList" + }, + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + } + }, + "description": "The order items list along with the order ID." + }, + "OrderItemList": { + "type": "array", + "description": "A list of order items.", + "items": { + "$ref": "#\/components\/schemas\/OrderItem" + } + }, + "OrderItem": { + "required": [ + "ASIN", + "OrderItemId", + "QuantityOrdered" + ], + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + }, + "OrderItemId": { + "type": "string", + "description": "An Amazon-defined order item identifier." + }, + "AssociatedItems": { + "type": "array", + "description": "A list of associated items that a customer has purchased with a product. For example, a tire installation service purchased with tires.", + "items": { + "$ref": "#\/components\/schemas\/AssociatedItem" + } + }, + "Title": { + "type": "string", + "description": "The name of the item." + }, + "QuantityOrdered": { + "type": "integer", + "description": "The number of items in the order. " + }, + "QuantityShipped": { + "type": "integer", + "description": "The number of items shipped." + }, + "ProductInfo": { + "$ref": "#\/components\/schemas\/ProductInfoDetail" + }, + "PointsGranted": { + "$ref": "#\/components\/schemas\/PointsGrantedDetail" + }, + "ItemPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "ItemTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingDiscount": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingDiscountTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "PromotionDiscount": { + "$ref": "#\/components\/schemas\/Money" + }, + "PromotionDiscountTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "PromotionIds": { + "$ref": "#\/components\/schemas\/PromotionIdList" + }, + "CODFee": { + "$ref": "#\/components\/schemas\/Money" + }, + "CODFeeDiscount": { + "$ref": "#\/components\/schemas\/Money" + }, + "IsGift": { + "type": "boolean", + "description": "When true, the item is a gift." + }, + "ConditionNote": { + "type": "string", + "description": "The condition of the item as described by the seller." + }, + "ConditionId": { + "type": "string", + "description": "The condition of the item.\n\nPossible values: New, Used, Collectible, Refurbished, Preorder, Club." + }, + "ConditionSubtypeId": { + "type": "string", + "description": "The subcondition of the item.\n\nPossible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other." + }, + "ScheduledDeliveryStartDate": { + "type": "string", + "description": "The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format." + }, + "ScheduledDeliveryEndDate": { + "type": "string", + "description": "The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format." + }, + "PriceDesignation": { + "type": "string", + "description": "Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https:\/\/www.amazon.com\/b2b\/info\/amazon-business). \n\nPossible values: BusinessPrice - A special price that is available only for Amazon Business orders." + }, + "TaxCollection": { + "$ref": "#\/components\/schemas\/TaxCollection" + }, + "SerialNumberRequired": { + "type": "boolean", + "description": "When true, the product type for this item has a serial number.\n\nReturned only for Amazon Easy Ship orders." + }, + "IsTransparency": { + "type": "boolean", + "description": "When true, the ASIN is enrolled in Transparency and the Transparency serial number that needs to be submitted can be determined by the following:\n\n**1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN).\n**2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number will be applied to the same side of the packaging as the GTIN (UPC\/EAN\/ISBN) barcode.\n**QR code SN:** Submit the URL that the QR code generates." + }, + "IossNumber": { + "type": "string", + "description": "The IOSS number for the marketplace. Sellers shipping to the European Union (EU) from outside of the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale." + }, + "StoreChainStoreId": { + "type": "string", + "description": "The store chain store identifier. Linked to a specific store in a store chain." + }, + "DeemedResellerCategory": { + "type": "string", + "description": "The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK.", + "enum": [ + "IOSS", + "UOSS" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IOSS", + "description": "Import one stop shop. The item being purchased is not held in the EU for shipment." + }, + { + "value": "UOSS", + "description": "Union one stop shop. The item being purchased is held in the EU for shipment." + } + ] + }, + "BuyerInfo": { + "$ref": "#\/components\/schemas\/ItemBuyerInfo" + }, + "BuyerRequestedCancel": { + "$ref": "#\/components\/schemas\/BuyerRequestedCancel" + }, + "SerialNumbers": { + "type": "array", + "description": "A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only.", + "items": { + "type": "string" + } + }, + "SubstitutionPreferences": { + "$ref": "#\/components\/schemas\/SubstitutionPreferences" + }, + "Measurement": { + "$ref": "#\/components\/schemas\/Measurement" + } + }, + "description": "A single order item." + }, + "SubstitutionPreferences": { + "required": [ + "SubstitutionType" + ], + "type": "object", + "properties": { + "SubstitutionType": { + "type": "string", + "description": "The type of substitution that these preferences represent.", + "enum": [ + "CUSTOMER_PREFERENCE", + "AMAZON_RECOMMENDED", + "DO_NOT_SUBSTITUTE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CUSTOMER_PREFERENCE", + "description": "Customer has provided the substitution preferences." + }, + { + "value": "AMAZON_RECOMMENDED", + "description": "Amazon has provided the substitution preferences." + }, + { + "value": "DO_NOT_SUBSTITUTE", + "description": "Do not provide substitute if item is not found." + } + ] + }, + "SubstitutionOptions": { + "$ref": "#\/components\/schemas\/SubstitutionOptionList" + } + } + }, + "SubstitutionOptionList": { + "type": "array", + "description": "A collection of substitution options.", + "items": { + "$ref": "#\/components\/schemas\/SubstitutionOption" + } + }, + "SubstitutionOption": { + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "QuantityOrdered": { + "type": "integer", + "description": "The number of items to be picked for this substitution option. " + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + }, + "Title": { + "type": "string", + "description": "The title of the item." + }, + "Measurement": { + "$ref": "#\/components\/schemas\/Measurement" + } + } + }, + "Measurement": { + "required": [ + "Unit", + "Value" + ], + "type": "object", + "properties": { + "Unit": { + "type": "string", + "description": "The unit of measure for this measurement.", + "enum": [ + "OUNCES", + "POUNDS", + "KILOGRAMS", + "GRAMS", + "MILLIGRAMS", + "INCHES", + "FEET", + "METERS", + "CENTIMETERS", + "MILLIMETERS", + "SQUARE_METERS", + "SQUARE_CENTIMETERS", + "SQUARE_FEET", + "SQUARE_INCHES", + "GALLONS", + "PINTS", + "QUARTS", + "FLUID_OUNCES", + "LITERS", + "CUBIC_METERS", + "CUBIC_FEET", + "CUBIC_INCHES", + "CUBIC_CENTIMETERS", + "COUNT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "OUNCES", + "description": "Indicates the item's measurement is measured in ounces." + }, + { + "value": "POUNDS", + "description": "Indicates the item's measurement is measured in pounds." + }, + { + "value": "KILOGRAMS", + "description": "Indicates the item's measurement is measured in kilograms." + }, + { + "value": "GRAMS", + "description": "Indicates the item's measurement is measured in grams." + }, + { + "value": "MILLIGRAMS", + "description": "Indicates the item's measurement is measured in milligrams." + }, + { + "value": "INCHES", + "description": "Indicates the item's measurement is measured in inches." + }, + { + "value": "FEET", + "description": "Indicates the item's measurement is measured in feet." + }, + { + "value": "METERS", + "description": "Indicates the item's measurement is measured in meters." + }, + { + "value": "CENTIMETERS", + "description": "Indicates the item's measurement is measured in centimeters." + }, + { + "value": "MILLIMETERS", + "description": "Indicates the item's measurement is measured in millimeters." + }, + { + "value": "SQUARE_METERS", + "description": "Indicates the item's measurement is measured in square meters." + }, + { + "value": "SQUARE_CENTIMETERS", + "description": "Indicates the item's measurement is measured in square centimeters." + }, + { + "value": "SQUARE_FEET", + "description": "Indicates the item's measurement is measured in square feet." + }, + { + "value": "SQUARE_INCHES", + "description": "Indicates the item's measurement is measured in square inches." + }, + { + "value": "GALLONS", + "description": "Indicates the item's measurement is measured in gallons." + }, + { + "value": "PINTS", + "description": "Indicates the item's measurement is measured in pints." + }, + { + "value": "QUARTS", + "description": "Indicates the item's measurement is measured in quarts." + }, + { + "value": "FLUID_OUNCES", + "description": "Indicates the item's measurement is measured in fluid ounces." + }, + { + "value": "LITERS", + "description": "Indicates the item's measurement is measured in liters." + }, + { + "value": "CUBIC_METERS", + "description": "Indicates the item's measurement is measured in cubic meters." + }, + { + "value": "CUBIC_FEET", + "description": "Indicates the item's measurement is measured in cubic feet." + }, + { + "value": "CUBIC_INCHES", + "description": "Indicates the item's measurement is measured in cubic inches." + }, + { + "value": "CUBIC_CENTIMETERS", + "description": "Indicates the item's measurement is measured in cubic centimeters." + }, + { + "value": "COUNT", + "description": "Indicates the item's measurement is measured by count." + } + ] + }, + "Value": { + "type": "number", + "description": "The value of the measurement." + } + } + }, + "AssociatedItem": { + "type": "object", + "properties": { + "OrderId": { + "type": "string", + "description": "The order item's order identifier, in 3-7-7 format." + }, + "OrderItemId": { + "type": "string", + "description": "An Amazon-defined item identifier for the associated item." + }, + "AssociationType": { + "$ref": "#\/components\/schemas\/AssociationType" + } + }, + "description": "An item associated with an order item. For example, a tire installation service purchased with tires." + }, + "AssociationType": { + "type": "string", + "description": "The type of association an item has with an order item.", + "enum": [ + "VALUE_ADD_SERVICE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VALUE_ADD_SERVICE", + "description": "The associated item is a service order." + } + ] + }, + "OrderItemsBuyerInfoList": { + "required": [ + "AmazonOrderId", + "OrderItems" + ], + "type": "object", + "properties": { + "OrderItems": { + "$ref": "#\/components\/schemas\/OrderItemBuyerInfoList" + }, + "NextToken": { + "type": "string", + "description": "When present and not empty, pass this string token in the next request to return the next response page." + }, + "AmazonOrderId": { + "type": "string", + "description": "An Amazon-defined order identifier, in 3-7-7 format." + } + }, + "description": "A single order item's buyer information list with the order ID." + }, + "OrderItemBuyerInfoList": { + "type": "array", + "description": "A single order item's buyer information list.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemBuyerInfo" + } + }, + "OrderItemBuyerInfo": { + "required": [ + "OrderItemId" + ], + "type": "object", + "properties": { + "OrderItemId": { + "type": "string", + "description": "An Amazon-defined order item identifier." + }, + "BuyerCustomizedInfo": { + "$ref": "#\/components\/schemas\/BuyerCustomizedInfoDetail" + }, + "GiftWrapPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "GiftWrapTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "GiftMessageText": { + "type": "string", + "description": "A gift message provided by the buyer." + }, + "GiftWrapLevel": { + "type": "string", + "description": "The gift wrap level specified by the buyer." + } + }, + "description": "A single order item's buyer information." + }, + "PointsGrantedDetail": { + "type": "object", + "properties": { + "PointsNumber": { + "type": "integer", + "description": "The number of Amazon Points granted with the purchase of an item." + }, + "PointsMonetaryValue": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "The number of Amazon Points offered with the purchase of an item, and their monetary value." + }, + "ProductInfoDetail": { + "type": "object", + "properties": { + "NumberOfItems": { + "type": "integer", + "description": "The total number of items that are included in the ASIN." + } + }, + "description": "Product information on the number of items." + }, + "PromotionIdList": { + "type": "array", + "description": "A list of promotion identifiers provided by the seller when the promotions were created.", + "items": { + "type": "string" + } + }, + "BuyerCustomizedInfoDetail": { + "type": "object", + "properties": { + "CustomizedURL": { + "type": "string", + "description": "The location of a zip file containing Amazon Custom data." + } + }, + "description": "Buyer information for custom orders from the Amazon Custom program." + }, + "TaxCollection": { + "type": "object", + "properties": { + "Model": { + "type": "string", + "description": "The tax collection model applied to the item.", + "enum": [ + "MarketplaceFacilitator" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MarketplaceFacilitator", + "description": "Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller." + } + ] + }, + "ResponsibleParty": { + "type": "string", + "description": "The party responsible for withholding the taxes and remitting them to the taxing authority.", + "enum": [ + "Amazon Services, Inc." + ], + "x-docgen-enum-table-extension": [ + { + "value": "Amazon Services, Inc.", + "description": "Amazon Services, Inc." + } + ] + } + }, + "description": "Information about withheld taxes." + }, + "BuyerTaxInformation": { + "type": "object", + "properties": { + "BuyerLegalCompanyName": { + "type": "string", + "description": "Business buyer's company legal name." + }, + "BuyerBusinessAddress": { + "type": "string", + "description": "Business buyer's address." + }, + "BuyerTaxRegistrationId": { + "type": "string", + "description": "Business buyer's tax registration ID." + }, + "BuyerTaxOffice": { + "type": "string", + "description": "Business buyer's tax office." + } + }, + "description": "Contains the business invoice tax information. Available only in the TR marketplace." + }, + "FulfillmentInstruction": { + "type": "object", + "properties": { + "FulfillmentSupplySourceId": { + "type": "string", + "description": "Denotes the recommended sourceId where the order should be fulfilled from." + } + }, + "description": "Contains the instructions about the fulfillment like where should it be fulfilled from." + }, + "BuyerInfo": { + "type": "object", + "properties": { + "BuyerEmail": { + "type": "string", + "description": "The anonymized email address of the buyer." + }, + "BuyerName": { + "type": "string", + "description": "The buyer name or the recipient name." + }, + "BuyerCounty": { + "type": "string", + "description": "The county of the buyer." + }, + "BuyerTaxInfo": { + "$ref": "#\/components\/schemas\/BuyerTaxInfo" + }, + "PurchaseOrderNumber": { + "type": "string", + "description": "The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout." + } + }, + "description": "Buyer information." + }, + "ItemBuyerInfo": { + "type": "object", + "properties": { + "BuyerCustomizedInfo": { + "$ref": "#\/components\/schemas\/BuyerCustomizedInfoDetail" + }, + "GiftWrapPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "GiftWrapTax": { + "$ref": "#\/components\/schemas\/Money" + }, + "GiftMessageText": { + "type": "string", + "description": "A gift message provided by the buyer." + }, + "GiftWrapLevel": { + "type": "string", + "description": "The gift wrap level specified by the buyer." + } + }, + "description": "A single item's buyer information." + }, + "AutomatedShippingSettings": { + "type": "object", + "properties": { + "HasAutomatedShippingSettings": { + "type": "boolean", + "description": "When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order." + }, + "AutomatedCarrier": { + "type": "string", + "description": "Auto-generated carrier for SSA orders." + }, + "AutomatedShipMethod": { + "type": "string", + "description": "Auto-generated ship method for SSA orders." + } + }, + "description": "Contains information regarding the Shipping Settings Automation program, such as whether the order's shipping settings were generated automatically, and what those settings are." + }, + "BuyerRequestedCancel": { + "type": "object", + "properties": { + "IsBuyerRequestedCancel": { + "type": "boolean", + "description": "When true, the buyer has requested cancellation." + }, + "BuyerCancelReason": { + "type": "string", + "description": "The reason that the buyer requested cancellation." + } + }, + "description": "Information about whether or not a buyer requested cancellation." + }, + "EasyShipShipmentStatus": { + "type": "string", + "description": "The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders.", + "enum": [ + "PendingSchedule", + "PendingPickUp", + "PendingDropOff", + "LabelCanceled", + "PickedUp", + "DroppedOff", + "AtOriginFC", + "AtDestinationFC", + "Delivered", + "RejectedByBuyer", + "Undeliverable", + "ReturningToSeller", + "ReturnedToSeller", + "Lost", + "OutForDelivery", + "Damaged" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PendingSchedule", + "description": "The package is awaiting the schedule for pick-up." + }, + { + "value": "PendingPickUp", + "description": "Amazon has not yet picked up the package from the seller." + }, + { + "value": "PendingDropOff", + "description": "The seller will deliver the package to the carrier." + }, + { + "value": "LabelCanceled", + "description": "The seller canceled the pickup." + }, + { + "value": "PickedUp", + "description": "Amazon has picked up the package from the seller." + }, + { + "value": "DroppedOff", + "description": "The package was delivered to the carrier by the seller." + }, + { + "value": "AtOriginFC", + "description": "The package is at the origin fulfillment center." + }, + { + "value": "AtDestinationFC", + "description": "The package is at the destination fulfillment center." + }, + { + "value": "Delivered", + "description": "The package has been delivered." + }, + { + "value": "RejectedByBuyer", + "description": "The package has been rejected by the buyer." + }, + { + "value": "Undeliverable", + "description": "The package cannot be delivered." + }, + { + "value": "ReturningToSeller", + "description": "The package was not delivered and is being returned to the seller." + }, + { + "value": "ReturnedToSeller", + "description": "The package was not delivered and was returned to the seller." + }, + { + "value": "Lost", + "description": "The package is lost." + }, + { + "value": "OutForDelivery", + "description": "The package is out for delivery." + }, + { + "value": "Damaged", + "description": "The package was damaged by the carrier." + } + ] + }, + "ElectronicInvoiceStatus": { + "type": "string", + "description": "The status of the electronic invoice.", + "enum": [ + "NotRequired", + "NotFound", + "Processing", + "Errored", + "Accepted" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NotRequired", + "description": "The order does not require an electronic invoice to be uploaded." + }, + { + "value": "NotFound", + "description": "The order requires an electronic invoice but it is not uploaded." + }, + { + "value": "Processing", + "description": "The required electronic invoice was uploaded and is processing." + }, + { + "value": "Errored", + "description": "The uploaded electronic invoice was not accepted." + }, + { + "value": "Accepted", + "description": "The uploaded electronic invoice was accepted." + } + ] + }, + "ConfirmShipmentRequest": { + "required": [ + "marketplaceId", + "packageDetail" + ], + "type": "object", + "properties": { + "packageDetail": { + "$ref": "#\/components\/schemas\/PackageDetail" + }, + "codCollectionMethod": { + "type": "string", + "description": "The cod collection method, support in JP only. ", + "enum": [ + "DirectPayment" + ] + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + } + }, + "description": "The request schema for an shipment confirmation." + }, + "ConfirmShipmentErrorResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The error response schema for an shipment confirmation." + }, + "PackageDetail": { + "required": [ + "carrierCode", + "orderItems", + "packageReferenceId", + "shipDate", + "trackingNumber" + ], + "type": "object", + "properties": { + "packageReferenceId": { + "$ref": "#\/components\/schemas\/PackageReferenceId" + }, + "carrierCode": { + "type": "string", + "description": "Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https:\/\/developer-docs.amazon.com\/sp-api\/changelog\/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces)." + }, + "carrierName": { + "type": "string", + "description": "Carrier Name that will deliver the package. Required when carrierCode is \"Others\" " + }, + "shippingMethod": { + "type": "string", + "description": "Ship method to be used for shipping the order." + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number used to obtain tracking and delivery information." + }, + "shipDate": { + "type": "string", + "description": "The shipping date for the package. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "shipFromSupplySourceId": { + "type": "string", + "description": "The unique identifier of the supply source." + }, + "orderItems": { + "$ref": "#\/components\/schemas\/ConfirmShipmentOrderItemsList" + } + }, + "description": "Properties of packages" + }, + "ConfirmShipmentOrderItemsList": { + "type": "array", + "description": "A list of order items.", + "items": { + "$ref": "#\/components\/schemas\/ConfirmShipmentOrderItem" + } + }, + "ConfirmShipmentOrderItem": { + "required": [ + "orderItemId", + "quantity" + ], + "type": "object", + "properties": { + "orderItemId": { + "type": "string", + "description": "The unique identifier of the order item." + }, + "quantity": { + "type": "integer", + "description": "The quantity of the item." + }, + "transparencyCodes": { + "$ref": "#\/components\/schemas\/TransparencyCodeList" + } + }, + "description": "A single order item." + }, + "TransparencyCodeList": { + "type": "array", + "description": "A list of order items.", + "items": { + "$ref": "#\/components\/schemas\/TransparencyCode" + } + }, + "TransparencyCode": { + "type": "string", + "description": "The Transparency code associated with the item." + }, + "PackageReferenceId": { + "type": "string", + "description": "A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/product-fees/v0.json b/resources/models/seller/product-fees/v0.json new file mode 100644 index 000000000..f1b5c54b2 --- /dev/null +++ b/resources/models/seller/product-fees/v0.json @@ -0,0 +1,1490 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Product Fees", + "description": "The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/products\/fees\/v0\/listings\/{SellerSKU}\/feesEstimate": { + "post": { + "tags": [ + "ProductFeesV0" + ], + "description": "Returns the estimated fees for the item indicated by the specified seller SKU in the marketplace specified in the request body.\n\n**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\nYou can call `getMyFeesEstimateForSKU` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take any estimated fees into account. Each fees estimate request must include an original identifier. This identifier is included in the fees estimate so that you can correlate a fees estimate with the original request.\n\n**Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https:\/\/sellercentral.amazon.com\/) and consult the store-specific fee schedule for the most up-to-date information.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getMyFeesEstimateForSKU", + "parameters": [ + { + "name": "SellerSKU", + "in": "path", + "description": "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": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "FeesEstimateRequest": { + "MarketplaceId": "ATVPDKIKX0DER", + "IsAmazonFulfilled": false, + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + }, + "Identifier": "UmaS1" + } + } + } + } + }, + "response": { + "payload": { + "FeesEstimateResult": { + "Status": "Success", + "FeesEstimateIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "IdType": "ASIN", + "SellerId": "AXXXXXXXXXXXXX", + "SellerInputIdentifier": "UmaS1", + "IsAmazonFulfilled": false, + "IdValue": "B00V5DG6IQ", + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + } + }, + "FeesEstimate": { + "TimeOfFeesEstimation": "Mon Oct 28 18:49:32 UTC 2019", + "TotalFeesEstimate": { + "CurrencyCode": "USD", + "Amount": 3 + }, + "FeeDetailList": [] + }, + "Error": { + "Type": "", + "Code": "", + "Message": "", + "Detail": [] + } + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "FeesEstimateRequest": { + "MarketplaceId": "WRNGMRKTPLCE" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Incorrect Marketplace identifier.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/products\/fees\/v0\/items\/{Asin}\/feesEstimate": { + "post": { + "tags": [ + "ProductFeesV0" + ], + "description": "Returns the estimated fees for the item indicated by the specified ASIN in the marketplace specified in the request body.\n\nYou can call `getMyFeesEstimateForASIN` for an item on behalf of a selling partner before the selling partner sets the item's price. The selling partner can then take estimated fees into account. Each fees request must include an original identifier. This identifier is included in the fees estimate so you can correlate a fees estimate with the original request.\n\n**Note:** This identifier value is used to identify an estimate. Actual costs may vary. Search \"fees\" in [Seller Central](https:\/\/sellercentral.amazon.com\/) and consult the store-specific fee schedule for the most up-to-date information.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getMyFeesEstimateForASIN", + "parameters": [ + { + "name": "Asin", + "in": "path", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "FeesEstimateRequest": { + "MarketplaceId": "ATVPDKIKX0DER", + "IsAmazonFulfilled": false, + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + }, + "Identifier": "UmaS1" + } + } + } + } + }, + "response": { + "payload": { + "FeesEstimateResult": { + "Status": "Success", + "FeesEstimateIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "IdType": "ASIN", + "SellerId": "AXXXXXXXXXXXXX", + "SellerInputIdentifier": "UmaS1", + "IsAmazonFulfilled": false, + "IdValue": "B00V5DG6IQ", + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + } + }, + "FeesEstimate": { + "TimeOfFeesEstimation": "Mon Oct 28 18:49:32 UTC 2019", + "TotalFeesEstimate": { + "CurrencyCode": "USD", + "Amount": 3 + }, + "FeeDetailList": [] + }, + "Error": { + "Type": "", + "Code": "", + "Message": "", + "Detail": [] + } + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "FeesEstimateRequest": { + "MarketplaceId": "WRNGMRKTPLCE" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Incorrect Marketplace identifier.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/products\/fees\/v0\/feesEstimate": { + "post": { + "tags": [ + "ProductFeesV0" + ], + "description": "Returns the estimated fees for a list of products.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getMyFeesEstimates", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": [ + { + "FeesEstimateRequest": { + "MarketplaceId": "ATVPDKIKX0DER", + "IsAmazonFulfilled": false, + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + }, + "Identifier": "UmaS1" + }, + "IdType": "ASIN", + "IdValue": "asin123" + }, + { + "FeesEstimateRequest": { + "MarketplaceId": "A1AM78C64UM0Y8", + "IsAmazonFulfilled": true, + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "MXN", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "MXN", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "MXN", + "Amount": 0 + } + } + }, + "Identifier": "UmaS2" + }, + "IdType": "SellerSKU", + "IdValue": "sku123" + } + ] + } + } + }, + "response": [ + { + "Status": "Success", + "FeesEstimateIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "IdType": "ASIN", + "SellerId": "AXXXXXXXXXXXXX", + "SellerInputIdentifier": "UmaS1", + "IsAmazonFulfilled": false, + "IdValue": "asin123", + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + } + }, + "FeesEstimate": { + "TimeOfFeesEstimation": "Mon Oct 28 18:49:32 UTC 2019", + "TotalFeesEstimate": { + "CurrencyCode": "USD", + "Amount": 3 + }, + "FeeDetailList": [] + }, + "Error": { + "Type": "", + "Code": "", + "Message": "", + "Detail": [] + } + }, + { + "Status": "Success", + "FeesEstimateIdentifier": { + "MarketplaceId": "A1AM78C64UM0Y8", + "IdType": "SellerSKU", + "SellerId": "AXXXXXXXXXXXXX", + "SellerInputIdentifier": "UmaS2", + "IsAmazonFulfilled": false, + "IdValue": "sku123", + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "MXN", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "MXN", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "MXN", + "Amount": 0 + } + } + } + }, + "FeesEstimate": { + "TimeOfFeesEstimation": "Mon Oct 28 18:49:32 UTC 2019", + "TotalFeesEstimate": { + "CurrencyCode": "MXN", + "Amount": 3 + }, + "FeeDetailList": [] + }, + "Error": { + "Type": "", + "Code": "", + "Message": "", + "Detail": [] + } + } + ] + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": [ + { + "FeesEstimateRequest": { + "MarketplaceId": "INVALIDMARKETPLACEID", + "IsAmazonFulfilled": false, + "PriceToEstimateFees": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 0, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + }, + "Identifier": "UmaS1" + }, + "IdType": "ASIN", + "IdValue": "asin123" + } + ] + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Incorrect Marketplace identifier.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include **Access Denied**, **Unauthorized**, **Expired Token**, or **Invalid Signature**.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimatesErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "GetMyFeesEstimateRequest": { + "type": "object", + "properties": { + "FeesEstimateRequest": { + "$ref": "#\/components\/schemas\/FeesEstimateRequest" + } + }, + "description": "Request schema." + }, + "GetMyFeesEstimatesRequest": { + "type": "array", + "description": "Request for estimated fees for a list of products.", + "items": { + "$ref": "#\/components\/schemas\/FeesEstimateByIdRequest" + } + }, + "FeesEstimateByIdRequest": { + "required": [ + "IdType", + "IdValue" + ], + "type": "object", + "properties": { + "FeesEstimateRequest": { + "$ref": "#\/components\/schemas\/FeesEstimateRequest" + }, + "IdType": { + "$ref": "#\/components\/schemas\/IdType" + }, + "IdValue": { + "type": "string", + "description": "The item identifier." + } + }, + "description": "A product, marketplace, and proposed price used to request estimated fees." + }, + "FeesEstimateRequest": { + "required": [ + "Identifier", + "MarketplaceId", + "PriceToEstimateFees" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "IsAmazonFulfilled": { + "type": "boolean", + "description": "When true, the offer is fulfilled by Amazon." + }, + "PriceToEstimateFees": { + "$ref": "#\/components\/schemas\/PriceToEstimateFees" + }, + "Identifier": { + "type": "string", + "description": "A unique identifier provided by the caller to track this request." + }, + "OptionalFulfillmentProgram": { + "$ref": "#\/components\/schemas\/OptionalFulfillmentProgram" + } + }, + "description": "A product, marketplace, and proposed price used to request estimated fees." + }, + "GetMyFeesEstimateResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetMyFeesEstimateResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "GetMyFeesEstimateResult": { + "type": "object", + "properties": { + "FeesEstimateResult": { + "$ref": "#\/components\/schemas\/FeesEstimateResult" + } + }, + "description": "Response schema." + }, + "GetMyFeesEstimatesResponse": { + "type": "array", + "description": "Estimated fees for a list of products.", + "items": { + "$ref": "#\/components\/schemas\/FeesEstimateResult" + } + }, + "Points": { + "type": "object", + "properties": { + "PointsNumber": { + "type": "integer", + "format": "int32" + }, + "PointsMonetaryValue": { + "$ref": "#\/components\/schemas\/MoneyType" + } + } + }, + "GetMyFeesEstimatesErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + } + }, + "FeesEstimateResult": { + "type": "object", + "properties": { + "Status": { + "type": "string", + "description": "The status of the fee request. Possible values: Success, ClientError, ServiceError." + }, + "FeesEstimateIdentifier": { + "$ref": "#\/components\/schemas\/FeesEstimateIdentifier" + }, + "FeesEstimate": { + "$ref": "#\/components\/schemas\/FeesEstimate" + }, + "Error": { + "$ref": "#\/components\/schemas\/FeesEstimateError" + } + }, + "description": "An item identifier and the estimated fees for the item." + }, + "FeesEstimateIdentifier": { + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "SellerId": { + "type": "string", + "description": "The seller identifier." + }, + "IdType": { + "$ref": "#\/components\/schemas\/IdType" + }, + "IdValue": { + "type": "string", + "description": "The item identifier." + }, + "IsAmazonFulfilled": { + "type": "boolean", + "description": "When true, the offer is fulfilled by Amazon." + }, + "PriceToEstimateFees": { + "$ref": "#\/components\/schemas\/PriceToEstimateFees" + }, + "SellerInputIdentifier": { + "type": "string", + "description": "A unique identifier provided by the caller to track this request." + }, + "OptionalFulfillmentProgram": { + "$ref": "#\/components\/schemas\/OptionalFulfillmentProgram" + } + }, + "description": "An item identifier, marketplace, time of request, and other details that identify an estimate." + }, + "PriceToEstimateFees": { + "required": [ + "ListingPrice" + ], + "type": "object", + "properties": { + "ListingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Shipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Points": { + "$ref": "#\/components\/schemas\/Points" + } + }, + "description": "Price information for an item, used to estimate fees." + }, + "FeesEstimate": { + "required": [ + "TimeOfFeesEstimation" + ], + "type": "object", + "properties": { + "TimeOfFeesEstimation": { + "type": "string", + "description": "The time at which the fees were estimated. This defaults to the time the request is made.", + "format": "date-time" + }, + "TotalFeesEstimate": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "FeeDetailList": { + "$ref": "#\/components\/schemas\/FeeDetailList" + } + }, + "description": "The total estimated fees for an item and a list of details." + }, + "FeeDetailList": { + "type": "array", + "description": "A list of other fees that contribute to a given fee.", + "items": { + "$ref": "#\/components\/schemas\/FeeDetail" + } + }, + "FeesEstimateError": { + "required": [ + "Code", + "Detail", + "Message", + "Type" + ], + "type": "object", + "properties": { + "Type": { + "type": "string", + "description": "An error type, identifying either the receiver or the sender as the originator of the error." + }, + "Code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "Message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "Detail": { + "$ref": "#\/components\/schemas\/FeesEstimateErrorDetail" + } + }, + "description": "An unexpected error occurred during this operation." + }, + "FeesEstimateErrorDetail": { + "type": "array", + "description": "Additional information that can help the caller understand or fix the issue.", + "items": { + "type": "object", + "properties": {} + } + }, + "FeeDetail": { + "required": [ + "FeeAmount", + "FeeType", + "FinalFee" + ], + "type": "object", + "properties": { + "FeeType": { + "type": "string", + "description": "The type of fee charged to a seller." + }, + "FeeAmount": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "FeePromotion": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "TaxAmount": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "FinalFee": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "IncludedFeeDetailList": { + "$ref": "#\/components\/schemas\/IncludedFeeDetailList" + } + }, + "description": "The type of fee, fee amount, and other details." + }, + "IncludedFeeDetailList": { + "type": "array", + "description": "A list of other fees that contribute to a given fee.", + "items": { + "$ref": "#\/components\/schemas\/IncludedFeeDetail" + } + }, + "IncludedFeeDetail": { + "required": [ + "FeeAmount", + "FeeType", + "FinalFee" + ], + "type": "object", + "properties": { + "FeeType": { + "type": "string", + "description": "The type of fee charged to a seller." + }, + "FeeAmount": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "FeePromotion": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "TaxAmount": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "FinalFee": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "The type of fee, fee amount, and other details." + }, + "MoneyType": { + "type": "object", + "properties": { + "CurrencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + }, + "Amount": { + "type": "number", + "description": "The monetary value." + } + } + }, + "OptionalFulfillmentProgram": { + "type": "string", + "description": "An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true).", + "enum": [ + "FBA_CORE", + "FBA_SNL", + "FBA_EFN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FBA_CORE", + "description": "Returns the standard Amazon fulfillment fees for the offer. This is the default." + }, + { + "value": "FBA_SNL", + "description": "Returns the FBA Small and Light (SNL) fees for the offer. The SNL program offers reduced fulfillment costs on qualified items. To check item eligibility for the SNL program, use the getSmallAndLightEligibilityBySellerSKU operation of the FBA Small And Light API." + }, + { + "value": "FBA_EFN", + "description": "Returns the cross-border European Fulfillment Network fees across EU countries for the offer." + } + ] + }, + "IdType": { + "type": "string", + "description": "The type of product identifier used in a `FeesEstimateByIdRequest`.", + "enum": [ + "ASIN", + "SellerSKU" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASIN", + "description": "An Amazon Standard Identification Number (ASIN) of a listings item." + }, + { + "value": "SellerSKU", + "description": "A selling partner provided identifier for an Amazon listing." + } + ] + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/product-pricing/v0.json b/resources/models/seller/product-pricing/v0.json new file mode 100644 index 000000000..ef83059ed --- /dev/null +++ b/resources/models/seller/product-pricing/v0.json @@ -0,0 +1,8565 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Pricing", + "description": "The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/products\/pricing\/v0\/price": { + "get": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns pricing information for a seller's offer listings based on seller SKU or ASIN.\n\n**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPricing", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for which prices are returned.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Asins", + "in": "query", + "description": "A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "Skus", + "in": "query", + "description": "A list of up to twenty seller SKU values used to identify items in the given marketplace.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ItemType", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "enum": [ + "Asin", + "Sku" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Asin", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + { + "value": "Sku", + "description": "The seller SKU." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Asin", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + { + "value": "Sku", + "description": "The seller SKU." + } + ] + }, + { + "name": "ItemCondition", + "in": "query", + "description": "Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.", + "schema": { + "type": "string", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + { + "name": "OfferType", + "in": "query", + "description": "Indicates whether to request pricing information for the seller's B2C or B2B offers. Default is B2C.", + "schema": { + "type": "string", + "enum": [ + "B2C", + "B2B" + ], + "x-docgen-enum-table-extension": [ + { + "value": "B2C", + "description": "B2C" + }, + { + "value": "B2B", + "description": "B2B" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "B2C", + "description": "B2C" + }, + { + "value": "B2B", + "description": "B2B" + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Asin" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "ASIN": "B00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "Offers": [ + { + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + ] + } + }, + { + "status": "Success", + "ASIN": "B00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "Offers": [ + { + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00551Q3CS" + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Sku" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "SellerSKU": "NABetaASINB00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + }, + "Offers": [ + { + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + ] + } + }, + { + "status": "Success", + "SellerSKU": "NABetaASINB00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00551Q3CS" + } + }, + "Offers": [ + { + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00551Q3CS" + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Asin" + }, + "OfferType": { + "value": "B2B" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "ASIN": "B00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "Offers": [ + { + "offerType": "B2B", + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 9.5 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 9.5 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "quantityDiscountPrices": [ + { + "quantityTier": 2, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "CurrencyCode": "USD", + "Amount": 8 + } + }, + { + "quantityTier": 3, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "CurrencyCode": "USD", + "Amount": 7 + } + } + ], + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + ] + } + }, + { + "status": "Success", + "ASIN": "B00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "Offers": [ + { + "offerType": "B2B", + "BuyingPrice": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 8 + }, + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 8 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + "RegularPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "FulfillmentChannel": "MERCHANT", + "ItemCondition": "New", + "ItemSubCondition": "New", + "SellerSKU": "NABetaASINB00551Q3CS" + } + ] + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + } + } + } + }, + "\/products\/pricing\/v0\/competitivePrice": { + "get": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns competitive pricing information for a seller's offer listings based on seller SKU or ASIN.\n\n**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCompetitivePricing", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for which prices are returned.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Asins", + "in": "query", + "description": "A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "Skus", + "in": "query", + "description": "A list of up to twenty seller SKU values used to identify items in the given marketplace.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "ItemType", + "in": "query", + "description": "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": true, + "schema": { + "type": "string", + "enum": [ + "Asin", + "Sku" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Asin", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + { + "value": "Sku", + "description": "The seller SKU." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Asin", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + { + "value": "Sku", + "description": "The seller SKU." + } + ] + }, + { + "name": "CustomerType", + "in": "query", + "description": "Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer.", + "schema": { + "type": "string", + "enum": [ + "Consumer", + "Business" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Asin" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "ASIN": "B00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "4545645646", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 20, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "325345", + "Rank": 1 + } + ] + } + }, + { + "status": "Success", + "ASIN": "B00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "45456452646", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "string", + "Amount": 0 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "54564", + "Rank": 1 + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Sku" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "SellerSKU": "NABetaASINB00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "3454535", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 402, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "USD", + "Amount": 20 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "676554", + "Rank": 1 + } + ] + } + }, + { + "status": "Success", + "SellerSKU": "NABetaASINB00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00551Q3CS" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "4545645646", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 402, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "USD", + "Amount": 20 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "35345", + "Rank": 1 + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Asin" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "ASIN": "B00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "New" + }, + { + "Count": 1, + "condition": "Any" + } + ] + }, + "SalesRankings": [ + { + "ProductCategoryId": "office_product_display_on_website", + "Rank": 19 + }, + { + "ProductCategoryId": "1069616", + "Rank": 1 + }, + { + "ProductCategoryId": "705333011", + "Rank": 1 + }, + { + "ProductCategoryId": "1069242", + "Rank": 17 + } + ] + } + }, + { + "status": "Success", + "ASIN": "B00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "New" + }, + { + "Count": 1, + "condition": "Any" + } + ] + }, + "SalesRankings": [ + { + "ProductCategoryId": "464394", + "Rank": 224 + }, + { + "ProductCategoryId": "12954861", + "Rank": 1057 + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Sku" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "SellerSKU": "NABetaASINB00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00V5DG6IQ" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "New" + }, + { + "Count": 1, + "condition": "Any" + } + ] + }, + "SalesRankings": [ + { + "ProductCategoryId": "office_product_display_on_website", + "Rank": 19 + }, + { + "ProductCategoryId": "1069616", + "Rank": 1 + }, + { + "ProductCategoryId": "705333011", + "Rank": 1 + }, + { + "ProductCategoryId": "1069242", + "Rank": 17 + } + ] + } + }, + { + "status": "Success", + "SellerSKU": "NABetaASINB00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerId": "AXXXXXXXXXXXXX", + "SellerSKU": "NABetaASINB00551Q3CS" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "New" + }, + { + "Count": 1, + "condition": "Any" + } + ] + }, + "SalesRankings": [ + { + "ProductCategoryId": "464394", + "Rank": 224 + }, + { + "ProductCategoryId": "12954861", + "Rank": 1057 + } + ] + } + } + ] + } + }, + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "ItemType": { + "value": "Asin" + }, + "CustomerType": { + "value": "Business" + } + } + }, + "response": { + "payload": [ + { + "status": "Success", + "ASIN": "B00V5DG6IQ", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00V5DG6IQ" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "1", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "offerType": "B2C", + "sellerId": "AXXXXXXXXXXXXX", + "belongsToRequester": true + }, + { + "CompetitivePriceId": "1", + "Price": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 115 + } + }, + "condition": "new", + "offerType": "B2B", + "quantityTier": 3, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "sellerId": "AXXXXXXXXXXXXX", + "belongsToRequester": true + }, + { + "CompetitivePriceId": "1", + "Price": { + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 110 + } + }, + "condition": "new", + "offerType": "B2B", + "quantityTier": 5, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "sellerId": "AXXXXXXXXXXXXX", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 3, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "325345", + "Rank": 1 + } + ] + } + }, + { + "status": "Success", + "ASIN": "B00551Q3CS", + "Product": { + "Identifiers": { + "MarketplaceASIN": { + "MarketplaceId": "ATVPDKIKX0DER", + "ASIN": "B00551Q3CS" + }, + "SKUIdentifier": { + "MarketplaceId": "", + "SellerId": "", + "SellerSKU": "" + } + }, + "CompetitivePricing": { + "CompetitivePrices": [ + { + "CompetitivePriceId": "1", + "Price": { + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 130 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 120 + }, + "Points": { + "PointsNumber": 130, + "PointsMonetaryValue": { + "CurrencyCode": "USD", + "Amount": 10 + } + } + }, + "condition": "new", + "offerType": "B2B", + "sellerId": "AXXXXXXXXXXXXX", + "belongsToRequester": true + } + ], + "NumberOfOfferListings": [ + { + "Count": 1, + "condition": "new" + } + ], + "TradeInValue": { + "CurrencyCode": "string", + "Amount": 0 + } + }, + "SalesRankings": [ + { + "ProductCategoryId": "54564", + "Rank": 1 + } + ] + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "MarketplaceId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPricingResponse" + } + } + } + } + } + } + }, + "\/products\/pricing\/v0\/listings\/{SellerSKU}\/offers": { + "get": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns the lowest priced offers for a single SKU listing.\n\n**Note:** The parameters associated with this operation may contain special characters that require URL encoding to call the API. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/url-encoding).\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getListingOffers", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for which prices are returned.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "ItemCondition", + "in": "query", + "description": "Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.", + "required": true, + "schema": { + "type": "string", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + { + "name": "SellerSKU", + "in": "path", + "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.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "CustomerType", + "in": "query", + "description": "Indicates whether to request Consumer or Business offers. Default is Consumer.", + "schema": { + "type": "string", + "enum": [ + "Consumer", + "Business" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "SellerSKU": { + "value": "NABetaASINB00V5DG6IQ" + }, + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + } + } + }, + "response": { + "payload": { + "SKU": "NABetaASINB00V5DG6IQ", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "NABetaASINB00V5DG6IQ" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "TotalOfferCount": 1 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "SellerFeedbackRating": { + "FeedbackCount": 0, + "SellerPositiveFeedbackRating": 0 + }, + "ShipsFrom": { + "State": "WA", + "Country": "US" + }, + "SubCondition": "new", + "IsFeaturedMerchant": false, + "SellerId": "AXXXXXXXXXXXXX", + "MyOffer": true, + "IsFulfilledByAmazon": false + } + ], + "MarketplaceID": "ATVPDKIKX0DER" + } + } + }, + { + "request": { + "parameters": { + "SellerSKU": { + "value": "NABetaASINB00V5DG6IQ" + }, + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "CustomerType": { + "value": "Business" + } + } + }, + "response": { + "payload": { + "SKU": "NABetaASINB00V5DG6IQ", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "NABetaASINB00V5DG6IQ" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "quantityTier": 20, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 8 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "quantityTier": 30, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 6 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "offerType": "B2B", + "ListingPrice": { + "Amount": 9, + "CurrencyCode": "USD" + }, + "Shipping": { + "Amount": 0, + "CurrencyCode": "USD" + }, + "LandedPrice": { + "Amount": 9, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + }, + { + "condition": "new", + "offerType": "B2B", + "quantityTier": 20, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "Amount": 8, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + }, + { + "condition": "new", + "offerType": "B2B", + "quantityTier": 30, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "Amount": 7, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + } + ], + "TotalOfferCount": 4 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "quantityDiscountPrices": [ + { + "quantityTier": 2, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "Amount": 8, + "CurrencyCode": "USD" + } + }, + { + "quantityTier": 3, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "Amount": 7, + "CurrencyCode": "USD" + } + } + ], + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "SellerFeedbackRating": { + "FeedbackCount": 0, + "SellerPositiveFeedbackRating": 0 + }, + "ShipsFrom": { + "State": "WA", + "Country": "US" + }, + "SubCondition": "new", + "IsFeaturedMerchant": false, + "SellerId": "AXXXXXXXXXXXXX", + "MyOffer": true, + "IsFulfilledByAmazon": false + } + ], + "MarketplaceID": "ATVPDKIKX0DER" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "SellerSKU": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + } + } + } + }, + "\/products\/pricing\/v0\/items\/{Asin}\/offers": { + "get": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns the lowest priced offers for a single item based on ASIN.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getItemOffers", + "parameters": [ + { + "name": "MarketplaceId", + "in": "query", + "description": "A marketplace identifier. Specifies the marketplace for which prices are returned.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "ItemCondition", + "in": "query", + "description": "Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.", + "required": true, + "schema": { + "type": "string", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + { + "name": "Asin", + "in": "path", + "description": "The Amazon Standard Identification Number (ASIN) of the item.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "CustomerType", + "in": "query", + "description": "Indicates whether to request Consumer or Business offers. Default is Consumer.", + "schema": { + "type": "string", + "enum": [ + "Consumer", + "Business" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "Asin": { + "value": "B00V5DG6IQ" + }, + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + } + } + }, + "response": { + "payload": { + "ASIN": "B00V5DG6IQ", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B00V5DG6IQ" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "TotalOfferCount": 1 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "SellerFeedbackRating": { + "FeedbackCount": 0, + "SellerPositiveFeedbackRating": 0 + }, + "ShipsFrom": { + "State": "WA", + "Country": "US" + }, + "SubCondition": "new", + "IsFeaturedMerchant": false, + "SellerId": "AXXXXXXXXXXXXX", + "IsFulfilledByAmazon": false + } + ], + "MarketplaceID": "ATVPDKIKX0DER" + } + } + }, + { + "request": { + "parameters": { + "Asin": { + "value": "B00V5DG6IQ" + }, + "MarketplaceId": { + "value": "ATVPDKIKX0DER" + }, + "CustomerType": { + "value": "Business" + } + } + }, + "response": { + "payload": { + "ASIN": "B00V5DG6IQ", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B00V5DG6IQ" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "quantityTier": 20, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 8 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "offerType": "B2B", + "quantityTier": 30, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 6 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "offerType": "B2B", + "ListingPrice": { + "Amount": 9, + "CurrencyCode": "USD" + }, + "Shipping": { + "Amount": 0, + "CurrencyCode": "USD" + }, + "LandedPrice": { + "Amount": 9, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + }, + { + "condition": "new", + "offerType": "B2B", + "quantityTier": 20, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "Amount": 8, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + }, + { + "condition": "new", + "offerType": "B2B", + "quantityTier": 30, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "ListingPrice": { + "Amount": 7, + "CurrencyCode": "USD" + }, + "sellerId": "AXXXXXXXXXXXXX" + } + ], + "TotalOfferCount": 4 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "quantityDiscountPrices": [ + { + "quantityTier": 20, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "Amount": 8, + "CurrencyCode": "USD" + } + }, + { + "quantityTier": 30, + "quantityDiscountType": "QUANTITY_DISCOUNT", + "listingPrice": { + "Amount": 7, + "CurrencyCode": "USD" + } + } + ], + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "SellerFeedbackRating": { + "FeedbackCount": 0, + "SellerPositiveFeedbackRating": 0 + }, + "ShipsFrom": { + "State": "WA", + "Country": "US" + }, + "SubCondition": "new", + "IsFeaturedMerchant": false, + "SellerId": "AXXXXXXXXXXXXX", + "MyOffer": true, + "IsFulfilledByAmazon": false + } + ], + "MarketplaceID": "ATVPDKIKX0DER" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "Asin": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + } + } + } + } + }, + "\/batches\/products\/pricing\/v0\/itemOffers": { + "post": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns the lowest priced offers for a batch of items based on ASIN.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getItemOffersBatch", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemOffersBatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Indicates that requests were run in batch. Check the batch response status lines for information on whether a batch request succeeded.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetItemOffersBatchResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "uri": "\/products\/pricing\/v0\/items\/B000P6Q7MY\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B001Q3KU9Q\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B007Z07UK6\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B000OQA3N4\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B07PTMKYS7\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B001PYUTII\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B00505DW2I\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B00CGZQU42\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B01LY2ZYRF\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/items\/B00KFRNZY6\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + } + ] + } + } + } + }, + "response": { + "responses": [ + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B000P6Q7MY", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B000P6Q7MY" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 21 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 21 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 21 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 21 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 48602 + }, + { + "ProductCategoryId": "166064011", + "Rank": 1168 + }, + { + "ProductCategoryId": "251920011", + "Rank": 1304 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 26 + }, + "TotalOfferCount": 1 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 21 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "2889aa8a-77b4-4d11-99f9-5fc24994dc0f", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B000P6Q7MY", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B001Q3KU9Q", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B001Q3KU9Q" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 24.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 24.99 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 20.49 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 10.49 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 24.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 24.99 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 6674 + }, + { + "ProductCategoryId": "251947011", + "Rank": 33 + }, + { + "ProductCategoryId": "23627232011", + "Rank": 41 + }, + { + "ProductCategoryId": "251913011", + "Rank": 88 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 27.99 + }, + "TotalOfferCount": 2 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 24.99 + }, + "ShippingTime": { + "maximumHours": 0, + "minimumHours": 0, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "A1OHOT6VONX3KA", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": true + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "5ff728ac-8f9c-4caa-99a7-704f898eec9c", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B001Q3KU9Q", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B007Z07UK6", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B007Z07UK6" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 18 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 11 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 7 + } + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.01 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "NumberOfOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 11 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "fashion_display_on_website", + "Rank": 34481 + }, + { + "ProductCategoryId": "3421050011", + "Rank": 24 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "TotalOfferCount": 14 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ShippingTime": { + "maximumHours": 720, + "minimumHours": 504, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AFQSGY2BVBPU2", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 3.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "ARLPNLRVRA0WL", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3QO25ZNO05UF8", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "AQBXQGCOQTJS6", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "ATAQTPUEAJ499", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.01 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AEMQJEQHIGU8X", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3GAR3KWWUHTHC", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2YE02EFDC36RW", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A17VVVVNIJPQI4", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3ALR9P0658YQT", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 100 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A35LOCZQ3NFRAA", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "ab062f54-6b1c-4eab-9c59-f9c85847c3cc", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B007Z07UK6", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B000OQA3N4", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B000OQA3N4" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 3 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "sports_display_on_website", + "Rank": 232244 + }, + { + "ProductCategoryId": "3395921", + "Rank": 242 + }, + { + "ProductCategoryId": "19574752011", + "Rank": 1579 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 25 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3TH9S8BH6GOGM", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 3.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 9.99 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A09263691NO8MK5LA75X2", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "110f73fc-463d-4a68-a042-3a675ee37367", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B000OQA3N4", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B07PTMKYS7", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B07PTMKYS7" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 200 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 200 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "video_games_display_on_website", + "Rank": 2597 + }, + { + "ProductCategoryId": "19497044011", + "Rank": 33 + }, + { + "ProductCategoryId": "14670126011", + "Rank": 45 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 399 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3TH9S8BH6GOGM", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "f5b23d61-455e-40c4-b615-ca03fd0a25de", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B07PTMKYS7", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B001PYUTII", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B001PYUTII" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 4270 + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 14 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 8 + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 0 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 30959 + }, + { + "ProductCategoryId": "196604011", + "Rank": 94 + }, + { + "ProductCategoryId": "251910011", + "Rank": 13863 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "TotalOfferCount": 4286 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A21GPS04ENK3GH", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 9 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1NHJ2GQHJYKDD", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1EZPZGQPCQEQR", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2BSRKTUYRBQX7", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12.99 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A14RRT8J7KHRG0", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A29DD74D3MDLD3", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 15 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1EZPZGQPCQEQR", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "ShippingTime": { + "maximumHours": 0, + "minimumHours": 0, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "A1OHOT6VONX3KA", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": true + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 23 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2NO69NJS5R7BW", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 23 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3J2OPDM7RLS9A", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AA7AN6LI5ZZMD", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A29DD74D3MDLD3", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3D4MFKTUUP0RS", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1400 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A16ZGNLKQR74W7", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "5b4ebbf3-cd9f-4e5f-a252-1aed3933ae0e", + "Date": "Tue, 28 Jun 2022 14:21:25 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B001PYUTII", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B00505DW2I", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B00505DW2I" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 14.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 14.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 3 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 3 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 6581 + }, + { + "ProductCategoryId": "14194715011", + "Rank": 11 + }, + { + "ProductCategoryId": "251975011", + "Rank": 15 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 36 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A5LI4TEX5CN80", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 15 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 33 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AH2OYH1RAT8PM", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "da27fbae-3066-44b5-8f08-d472152eea0b", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B00505DW2I", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B00CGZQU42", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B00CGZQU42" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 100 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 100 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "fashion_display_on_website", + "Rank": 1093666 + }, + { + "ProductCategoryId": "1045012", + "Rank": 2179 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 18.99 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3CTKJEUROOISL", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 100 + }, + "ShippingTime": { + "maximumHours": 0, + "minimumHours": 0, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "A16V258PS36Q2H", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "IsFulfilledByAmazon": true + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "057b337c-3c17-4bbd-9bbf-79c1ef756dc0", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B00CGZQU42", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B01LY2ZYRF", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B01LY2ZYRF" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 22 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 22 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 22 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 22 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 59.5 + }, + "TotalOfferCount": 1 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 22 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "196a1220-82c4-4b07-8a73-a7d92511f6ef", + "Date": "Tue, 28 Jun 2022 14:21:22 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B01LY2ZYRF", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "ASIN": "B00KFRNZY6", + "status": "NoBuyableOffers", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "ASIN": "B00KFRNZY6" + }, + "Summary": { + "TotalOfferCount": 0 + }, + "Offers": [], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "7e49bdbb-7347-46fe-8c66-beb7b9c08118", + "Date": "Tue, 28 Jun 2022 14:21:23 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "Asin": "B00KFRNZY6", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "uri": "\/products\/pricing\/v0\/items\/B000P6Q7MY\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + } + }, + "x-codegen-request-body-name": "getItemOffersBatchRequestBody" + } + }, + "\/batches\/products\/pricing\/v0\/listingOffers": { + "post": { + "tags": [ + "ProductPricingV0" + ], + "description": "Returns the lowest priced offers for a batch of listings by SKU.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getListingOffersBatch", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetListingOffersBatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Indicates that requests were run in batch. Check the batch response status lines for information on whether a batch request succeeded.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetListingOffersBatchResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "uri": "\/products\/pricing\/v0\/listings\/GC-QTMS-SV2I\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/listings\/VT-DEIT-57TQ\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/listings\/NA-H7X1-JYTM\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/listings\/RL-JVOC-MBSL\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + }, + { + "uri": "\/products\/pricing\/v0\/listings\/74-64KG-H9W9\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + } + ] + } + } + } + }, + "response": { + "responses": [ + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "SKU": "GC-QTMS-SV2I", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "GC-QTMS-SV2I" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 4270 + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon", + "OfferCount": 1 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 14 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant" + }, + { + "condition": "new", + "fulfillmentChannel": "Amazon" + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant" + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 30959 + }, + { + "ProductCategoryId": "196604011", + "Rank": 94 + }, + { + "ProductCategoryId": "251910011", + "Rank": 13863 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "TotalOfferCount": 4286 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 0.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A21GPS04ENK3GH", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 9 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1NHJ2GQHJYKDD", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1EZPZGQPCQEQR", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2BSRKTUYRBQX7", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12.99 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A14RRT8J7KHRG0", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A29DD74D3MDLD3", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 15 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A1EZPZGQPCQEQR", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 17.99 + }, + "ShippingTime": { + "maximumHours": 0, + "minimumHours": 0, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "A1OHOT6VONX3KA", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": true + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 23 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2NO69NJS5R7BW", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 23 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3J2OPDM7RLS9A", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AA7AN6LI5ZZMD", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 30 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A29DD74D3MDLD3", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3D4MFKTUUP0RS", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1400 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A16ZGNLKQR74W7", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "ffd73923-1728-4d57-a45b-8e07a5e10366", + "Date": "Tue, 28 Jun 2022 14:18:08 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerSKU": "GC-QTMS-SV2I", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "SKU": "VT-DEIT-57TQ", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "VT-DEIT-57TQ" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 14.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 14.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 3 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "toy_display_on_website", + "Rank": 6581 + }, + { + "ProductCategoryId": "14194715011", + "Rank": 11 + }, + { + "ProductCategoryId": "251975011", + "Rank": 15 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 36 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A5LI4TEX5CN80", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 15 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "MyOffer": true, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 33 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AH2OYH1RAT8PM", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "96372776-dae8-4cd3-8edf-c9cd2d708c0c", + "Date": "Tue, 28 Jun 2022 14:18:05 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerSKU": "VT-DEIT-57TQ", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "SKU": "NA-H7X1-JYTM", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "NA-H7X1-JYTM" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 18 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 11 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 7 + } + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "BuyBoxPrices": [ + { + "condition": "new", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.01 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + } + } + ], + "NumberOfOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 11 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "used", + "fulfillmentChannel": "Merchant" + }, + { + "condition": "collectible", + "fulfillmentChannel": "Merchant" + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "fashion_display_on_website", + "Rank": 34481 + }, + { + "ProductCategoryId": "3421050011", + "Rank": 24 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "TotalOfferCount": 14 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 1 + }, + "ShippingTime": { + "maximumHours": 720, + "minimumHours": 504, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AFQSGY2BVBPU2", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 3.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "ARLPNLRVRA0WL", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3QO25ZNO05UF8", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": true + }, + "SubCondition": "new", + "SellerId": "AQBXQGCOQTJS6", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.5 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "ATAQTPUEAJ499", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 4.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 5.01 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "AEMQJEQHIGU8X", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": true, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3GAR3KWWUHTHC", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2YE02EFDC36RW", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A17VVVVNIJPQI4", + "IsFeaturedMerchant": true, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 50 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": true, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3ALR9P0658YQT", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 100 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A35LOCZQ3NFRAA", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "0160ecba-a238-40ba-8ef9-647e9a0baf55", + "Date": "Tue, 28 Jun 2022 14:18:05 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerSKU": "NA-H7X1-JYTM", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "SKU": "RL-JVOC-MBSL", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "RL-JVOC-MBSL" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 3 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "sports_display_on_website", + "Rank": 232244 + }, + { + "ProductCategoryId": "3395921", + "Rank": 242 + }, + { + "ProductCategoryId": "19574752011", + "Rank": 1579 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 25 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 10 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3TH9S8BH6GOGM", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 3.99 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 9.99 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A09263691NO8MK5LA75X2", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": true, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "09d9fb32-661e-44f3-ac59-b2f91bb3d88e", + "Date": "Tue, 28 Jun 2022 14:18:05 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerSKU": "RL-JVOC-MBSL", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + }, + { + "status": { + "statusCode": 200, + "reasonPhrase": "OK" + }, + "body": { + "payload": { + "SKU": "74-64KG-H9W9", + "status": "Success", + "ItemCondition": "New", + "Identifier": { + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "SellerSKU": "74-64KG-H9W9" + }, + "Summary": { + "LowestPrices": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 200 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 200 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "LandedPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + } + } + ], + "NumberOfOffers": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant", + "OfferCount": 1 + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant", + "OfferCount": 2 + } + ], + "BuyBoxEligibleOffers": [ + { + "condition": "collectible", + "fulfillmentChannel": "Merchant" + }, + { + "condition": "new", + "fulfillmentChannel": "Merchant" + } + ], + "SalesRankings": [ + { + "ProductCategoryId": "video_games_display_on_website", + "Rank": 2597 + }, + { + "ProductCategoryId": "19497044011", + "Rank": 33 + }, + { + "ProductCategoryId": "14670126011", + "Rank": 45 + } + ], + "ListPrice": { + "CurrencyCode": "USD", + "Amount": 399 + }, + "TotalOfferCount": 3 + }, + "Offers": [ + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 12 + }, + "ShippingTime": { + "maximumHours": 48, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A3TH9S8BH6GOGM", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": false, + "IsFulfilledByAmazon": false + }, + { + "Shipping": { + "CurrencyCode": "USD", + "Amount": 0 + }, + "ListingPrice": { + "CurrencyCode": "USD", + "Amount": 20 + }, + "ShippingTime": { + "maximumHours": 24, + "minimumHours": 24, + "availabilityType": "NOW" + }, + "ShipsFrom": { + "Country": "US" + }, + "PrimeInformation": { + "IsPrime": false, + "IsNationalPrime": false + }, + "SubCondition": "new", + "SellerId": "A2SNBFWOFW4SWG", + "IsFeaturedMerchant": false, + "IsBuyBoxWinner": false, + "MyOffer": true, + "IsFulfilledByAmazon": false + } + ], + "marketplaceId": "ATVPDKIKX0DER" + } + }, + "headers": { + "x-amzn-RequestId": "0df944c2-6de5-48d1-9c9c-df138c00e797", + "Date": "Tue, 28 Jun 2022 14:18:05 GMT" + }, + "request": { + "MarketplaceId": "ATVPDKIKX0DER", + "SellerSKU": "74-64KG-H9W9", + "CustomerType": "Consumer", + "ItemCondition": "New" + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "uri": "\/products\/pricing\/v0\/listings\/GC-QTMS-SV2I\/offers", + "method": "GET", + "MarketplaceId": "ATVPDKIKX0DER", + "ItemCondition": "New", + "CustomerType": "Consumer" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + } + }, + "x-codegen-request-body-name": "getListingOffersBatchRequestBody" + } + } + }, + "components": { + "schemas": { + "GetItemOffersBatchRequest": { + "type": "object", + "properties": { + "requests": { + "$ref": "#\/components\/schemas\/ItemOffersRequestList" + } + }, + "description": "The request associated with the `getItemOffersBatch` API call." + }, + "GetListingOffersBatchRequest": { + "type": "object", + "properties": { + "requests": { + "$ref": "#\/components\/schemas\/ListingOffersRequestList" + } + }, + "description": "The request associated with the `getListingOffersBatch` API call." + }, + "ListingOffersRequestList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "A list of `getListingOffers` batched requests to run.", + "items": { + "$ref": "#\/components\/schemas\/ListingOffersRequest" + } + }, + "ItemOffersRequestList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "A list of `getListingOffers` batched requests to run.", + "items": { + "$ref": "#\/components\/schemas\/ItemOffersRequest" + } + }, + "BatchOffersRequestParams": { + "required": [ + "ItemCondition", + "MarketplaceId" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "ItemCondition": { + "$ref": "#\/components\/schemas\/ItemCondition" + }, + "CustomerType": { + "$ref": "#\/components\/schemas\/CustomerType" + } + } + }, + "ItemOffersRequest": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchRequest" + }, + { + "$ref": "#\/components\/schemas\/BatchOffersRequestParams" + } + ] + }, + "ListingOffersRequest": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchRequest" + }, + { + "$ref": "#\/components\/schemas\/BatchOffersRequestParams" + } + ] + }, + "GetItemOffersBatchResponse": { + "type": "object", + "properties": { + "responses": { + "$ref": "#\/components\/schemas\/ItemOffersResponseList" + } + }, + "description": "The response associated with the `getItemOffersBatch` API call." + }, + "GetListingOffersBatchResponse": { + "type": "object", + "properties": { + "responses": { + "$ref": "#\/components\/schemas\/ListingOffersResponseList" + } + }, + "description": "The response associated with the `getListingOffersBatch` API call." + }, + "ItemOffersResponseList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "A list of `getItemOffers` batched responses.", + "items": { + "$ref": "#\/components\/schemas\/ItemOffersResponse" + } + }, + "ListingOffersResponseList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "A list of `getListingOffers` batched responses.", + "items": { + "$ref": "#\/components\/schemas\/ListingOffersResponse" + } + }, + "BatchOffersResponse": { + "required": [ + "body" + ], + "type": "object", + "properties": { + "headers": { + "$ref": "#\/components\/schemas\/HttpResponseHeaders" + }, + "status": { + "$ref": "#\/components\/schemas\/GetOffersHttpStatusLine" + }, + "body": { + "$ref": "#\/components\/schemas\/GetOffersResponse" + } + } + }, + "ItemOffersRequestParams": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchOffersRequestParams" + }, + { + "type": "object", + "properties": { + "Asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter." + } + } + } + ] + }, + "ItemOffersResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchOffersResponse" + }, + { + "required": [ + "request" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#\/components\/schemas\/ItemOffersRequestParams" + } + } + } + ] + }, + "ListingOffersRequestParams": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchOffersRequestParams" + }, + { + "required": [ + "SellerSKU" + ], + "type": "object", + "properties": { + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter." + } + } + } + ] + }, + "ListingOffersResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchOffersResponse" + }, + { + "type": "object", + "properties": { + "request": { + "$ref": "#\/components\/schemas\/ListingOffersRequestParams" + } + } + } + ] + }, + "Errors": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "GetPricingResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PriceList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the `getPricing` and `getCompetitivePricing` operations." + }, + "GetOffersResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetOffersResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the `getListingOffers` and `getItemOffers` operations." + }, + "PriceList": { + "maxItems": 20, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Price" + } + }, + "GetOffersResult": { + "required": [ + "Identifier", + "ItemCondition", + "MarketplaceID", + "Offers", + "Summary", + "status" + ], + "type": "object", + "properties": { + "MarketplaceID": { + "type": "string", + "description": "A marketplace identifier." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "SKU": { + "type": "string", + "description": "The stock keeping unit (SKU) of the item." + }, + "ItemCondition": { + "$ref": "#\/components\/schemas\/ConditionType" + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "Identifier": { + "$ref": "#\/components\/schemas\/ItemIdentifier" + }, + "Summary": { + "$ref": "#\/components\/schemas\/Summary" + }, + "Offers": { + "$ref": "#\/components\/schemas\/OfferDetailList" + } + } + }, + "HttpRequestHeaders": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of additional HTTP headers to send\/receive for the individual batch request." + }, + "HttpResponseHeaders": { + "type": "object", + "properties": { + "Date": { + "type": "string", + "description": "The timestamp that the API request was received. For more information, consult [RFC 2616 Section 14](https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html)." + }, + "x-amzn-RequestId": { + "type": "string", + "description": "Unique request reference ID." + } + }, + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of additional HTTP headers to send\/receive for the individual batch request." + }, + "GetOffersHttpStatusLine": { + "type": "object", + "properties": { + "statusCode": { + "maximum": 599, + "minimum": 100, + "type": "integer", + "description": "The HTTP response Status Code." + }, + "reasonPhrase": { + "type": "string", + "description": "The HTTP response Reason-Phase." + } + }, + "description": "The HTTP status line associated with the response. For more information, consult [RFC 2616](https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec6.html)." + }, + "HttpUri": { + "maxLength": 512, + "minLength": 6, + "type": "string", + "description": "The URI associated with the individual APIs being called as part of the batch request." + }, + "HttpMethod": { + "type": "string", + "description": "The HTTP method associated with the individual APIs being called as part of the batch request.", + "enum": [ + "GET", + "PUT", + "PATCH", + "DELETE", + "POST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GET", + "description": "GET" + }, + { + "value": "PUT", + "description": "PUT" + }, + { + "value": "PATCH", + "description": "PATCH" + }, + { + "value": "DELETE", + "description": "DELETE" + }, + { + "value": "POST", + "description": "POST" + } + ] + }, + "BatchRequest": { + "required": [ + "method", + "uri" + ], + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The resource path of the operation you are calling in batch without any query parameters.\n\nIf you are calling `getItemOffersBatch`, supply the path of `getItemOffers`.\n\n**Example:** `\/products\/pricing\/v0\/items\/B000P6Q7MY\/offers`\n\nIf you are calling `getListingOffersBatch`, supply the path of `getListingOffers`.\n\n**Example:** `\/products\/pricing\/v0\/listings\/B000P6Q7MY\/offers`" + }, + "method": { + "$ref": "#\/components\/schemas\/HttpMethod" + }, + "headers": { + "$ref": "#\/components\/schemas\/HttpRequestHeaders" + } + }, + "description": "Common properties of batch requests against individual APIs." + }, + "Price": { + "required": [ + "status" + ], + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the operation." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "Product": { + "$ref": "#\/components\/schemas\/Product" + } + } + }, + "Product": { + "required": [ + "Identifiers" + ], + "type": "object", + "properties": { + "Identifiers": { + "$ref": "#\/components\/schemas\/IdentifierType" + }, + "AttributeSets": { + "$ref": "#\/components\/schemas\/AttributeSetList" + }, + "Relationships": { + "$ref": "#\/components\/schemas\/RelationshipList" + }, + "CompetitivePricing": { + "$ref": "#\/components\/schemas\/CompetitivePricingType" + }, + "SalesRankings": { + "$ref": "#\/components\/schemas\/SalesRankList" + }, + "Offers": { + "$ref": "#\/components\/schemas\/OffersList" + } + }, + "description": "An item." + }, + "IdentifierType": { + "required": [ + "MarketplaceASIN" + ], + "type": "object", + "properties": { + "MarketplaceASIN": { + "$ref": "#\/components\/schemas\/ASINIdentifier" + }, + "SKUIdentifier": { + "$ref": "#\/components\/schemas\/SellerSKUIdentifier" + } + }, + "description": "Specifies the identifiers used to uniquely identify an item." + }, + "ASINIdentifier": { + "required": [ + "ASIN", + "MarketplaceId" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + } + } + }, + "SellerSKUIdentifier": { + "required": [ + "MarketplaceId", + "SellerId", + "SellerSKU" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier." + }, + "SellerId": { + "type": "string", + "description": "The seller identifier submitted for the operation." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + } + } + }, + "AttributeSetList": { + "type": "array", + "description": "A list of product attributes if they are applicable to the product that is returned.", + "items": { + "type": "object", + "properties": {} + } + }, + "RelationshipList": { + "type": "array", + "description": "A list that contains product variation information, if applicable.", + "items": { + "type": "object", + "properties": {} + } + }, + "CompetitivePricingType": { + "required": [ + "CompetitivePrices", + "NumberOfOfferListings" + ], + "type": "object", + "properties": { + "CompetitivePrices": { + "$ref": "#\/components\/schemas\/CompetitivePriceList" + }, + "NumberOfOfferListings": { + "$ref": "#\/components\/schemas\/NumberOfOfferListingsList" + }, + "TradeInValue": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "Competitive pricing information for the item." + }, + "CompetitivePriceList": { + "type": "array", + "description": "A list of competitive pricing information.", + "items": { + "$ref": "#\/components\/schemas\/CompetitivePriceType" + } + }, + "CompetitivePriceType": { + "required": [ + "CompetitivePriceId", + "Price" + ], + "type": "object", + "properties": { + "CompetitivePriceId": { + "type": "string", + "description": "The pricing model for each price that is returned.\n\nPossible values:\n\n* 1 - New Buy Box Price.\n* 2 - Used Buy Box Price." + }, + "Price": { + "$ref": "#\/components\/schemas\/PriceType" + }, + "condition": { + "type": "string", + "description": "Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club." + }, + "subcondition": { + "type": "string", + "description": "Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other." + }, + "offerType": { + "$ref": "#\/components\/schemas\/OfferCustomerType" + }, + "quantityTier": { + "type": "integer", + "description": "Indicates at what quantity this price becomes active.", + "format": "int32" + }, + "quantityDiscountType": { + "$ref": "#\/components\/schemas\/QuantityDiscountType" + }, + "sellerId": { + "type": "string", + "description": "The seller identifier for the offer." + }, + "belongsToRequester": { + "type": "boolean", + "description": " Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false." + } + } + }, + "NumberOfOfferListingsList": { + "type": "array", + "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.", + "items": { + "$ref": "#\/components\/schemas\/OfferListingCountType" + } + }, + "OfferListingCountType": { + "required": [ + "Count", + "condition" + ], + "type": "object", + "properties": { + "Count": { + "type": "integer", + "description": "The number of offer listings.", + "format": "int32" + }, + "condition": { + "type": "string", + "description": "The condition of the item." + } + }, + "description": "The number of offer listings with the specified condition." + }, + "MoneyType": { + "type": "object", + "properties": { + "CurrencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + }, + "Amount": { + "type": "number", + "description": "The monetary value." + } + } + }, + "SalesRankList": { + "type": "array", + "description": "A list of sales rank information for the item, by category.", + "items": { + "$ref": "#\/components\/schemas\/SalesRankType" + } + }, + "SalesRankType": { + "required": [ + "ProductCategoryId", + "Rank" + ], + "type": "object", + "properties": { + "ProductCategoryId": { + "type": "string", + "description": " Identifies the item category from which the sales rank is taken." + }, + "Rank": { + "type": "integer", + "description": "The sales rank of the item within the item category.", + "format": "int32" + } + } + }, + "PriceType": { + "required": [ + "ListingPrice" + ], + "type": "object", + "properties": { + "LandedPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "ListingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Shipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Points": { + "$ref": "#\/components\/schemas\/Points" + } + } + }, + "OffersList": { + "type": "array", + "description": "A list of offers.", + "items": { + "$ref": "#\/components\/schemas\/OfferType" + } + }, + "OfferType": { + "required": [ + "BuyingPrice", + "FulfillmentChannel", + "ItemCondition", + "ItemSubCondition", + "RegularPrice", + "SellerSKU" + ], + "type": "object", + "properties": { + "offerType": { + "$ref": "#\/components\/schemas\/OfferCustomerType" + }, + "BuyingPrice": { + "$ref": "#\/components\/schemas\/PriceType" + }, + "RegularPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "businessPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "quantityDiscountPrices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/QuantityDiscountPriceType" + } + }, + "FulfillmentChannel": { + "type": "string", + "description": "The fulfillment channel for the offer listing. Possible values:\n\n* Amazon - Fulfilled by Amazon.\n* Merchant - Fulfilled by the seller." + }, + "ItemCondition": { + "type": "string", + "description": "The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club." + }, + "ItemSubCondition": { + "type": "string", + "description": "The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + } + } + }, + "OfferCustomerType": { + "type": "string", + "enum": [ + "B2C", + "B2B" + ], + "x-docgen-enum-table-extension": [ + { + "value": "B2C", + "description": "B2C" + }, + { + "value": "B2B", + "description": "B2B" + } + ] + }, + "QuantityDiscountPriceType": { + "required": [ + "listingPrice", + "quantityDiscountType", + "quantityTier" + ], + "type": "object", + "properties": { + "quantityTier": { + "type": "integer", + "description": "Indicates at what quantity this price becomes active.", + "format": "int32" + }, + "quantityDiscountType": { + "$ref": "#\/components\/schemas\/QuantityDiscountType" + }, + "listingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "Contains pricing information that includes special pricing when buying in bulk." + }, + "QuantityDiscountType": { + "type": "string", + "enum": [ + "QUANTITY_DISCOUNT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "QUANTITY_DISCOUNT", + "description": "Quantity Discount" + } + ] + }, + "Points": { + "type": "object", + "properties": { + "PointsNumber": { + "type": "integer", + "description": "The number of points.", + "format": "int32" + }, + "PointsMonetaryValue": { + "$ref": "#\/components\/schemas\/MoneyType" + } + } + }, + "ConditionType": { + "type": "string", + "description": "Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club.", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "ItemIdentifier": { + "required": [ + "ItemCondition", + "MarketplaceId" + ], + "type": "object", + "properties": { + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier. Specifies the marketplace from which prices are returned." + }, + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "SellerSKU": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item." + }, + "ItemCondition": { + "$ref": "#\/components\/schemas\/ConditionType" + } + }, + "description": "Information that identifies an item." + }, + "Summary": { + "required": [ + "TotalOfferCount" + ], + "type": "object", + "properties": { + "TotalOfferCount": { + "type": "integer", + "description": "The number of unique offers contained in NumberOfOffers.", + "format": "int32" + }, + "NumberOfOffers": { + "$ref": "#\/components\/schemas\/NumberOfOffers" + }, + "LowestPrices": { + "$ref": "#\/components\/schemas\/LowestPrices" + }, + "BuyBoxPrices": { + "$ref": "#\/components\/schemas\/BuyBoxPrices" + }, + "ListPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "CompetitivePriceThreshold": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "SuggestedLowerPricePlusShipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "SalesRankings": { + "$ref": "#\/components\/schemas\/SalesRankList" + }, + "BuyBoxEligibleOffers": { + "$ref": "#\/components\/schemas\/BuyBoxEligibleOffers" + }, + "OffersAvailableTime": { + "type": "string", + "description": "When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing.", + "format": "date-time" + } + }, + "description": "Contains price information about the product, including the LowestPrices and BuyBoxPrices, the ListPrice, the SuggestedLowerPricePlusShipping, and NumberOfOffers and NumberOfBuyBoxEligibleOffers." + }, + "BuyBoxEligibleOffers": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/OfferCountType" + } + }, + "BuyBoxPrices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/BuyBoxPriceType" + } + }, + "LowestPrices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/LowestPriceType" + } + }, + "NumberOfOffers": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/OfferCountType" + } + }, + "OfferCountType": { + "type": "object", + "properties": { + "condition": { + "type": "string", + "description": "Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club." + }, + "fulfillmentChannel": { + "$ref": "#\/components\/schemas\/FulfillmentChannelType" + }, + "OfferCount": { + "type": "integer", + "description": "The number of offers in a fulfillment channel that meet a specific condition.", + "format": "int32" + } + }, + "description": "The total number of offers for the specified condition and fulfillment channel." + }, + "FulfillmentChannelType": { + "type": "string", + "description": "Indicates whether the item is fulfilled by Amazon or by the seller (merchant).", + "enum": [ + "Amazon", + "Merchant" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Amazon", + "description": "Fulfilled by Amazon." + }, + { + "value": "Merchant", + "description": "Fulfilled by the seller." + } + ] + }, + "LowestPriceType": { + "required": [ + "ListingPrice", + "condition", + "fulfillmentChannel" + ], + "type": "object", + "properties": { + "condition": { + "type": "string", + "description": "Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club." + }, + "fulfillmentChannel": { + "type": "string", + "description": "Indicates whether the item is fulfilled by Amazon or by the seller." + }, + "offerType": { + "$ref": "#\/components\/schemas\/OfferCustomerType" + }, + "quantityTier": { + "type": "integer", + "description": "Indicates at what quantity this price becomes active.", + "format": "int32" + }, + "quantityDiscountType": { + "$ref": "#\/components\/schemas\/QuantityDiscountType" + }, + "LandedPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "ListingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Shipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Points": { + "$ref": "#\/components\/schemas\/Points" + } + } + }, + "BuyBoxPriceType": { + "required": [ + "LandedPrice", + "ListingPrice", + "Shipping", + "condition" + ], + "type": "object", + "properties": { + "condition": { + "type": "string", + "description": "Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club." + }, + "offerType": { + "$ref": "#\/components\/schemas\/OfferCustomerType" + }, + "quantityTier": { + "type": "integer", + "description": "Indicates at what quantity this price becomes active.", + "format": "int32" + }, + "quantityDiscountType": { + "$ref": "#\/components\/schemas\/QuantityDiscountType" + }, + "LandedPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "ListingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Shipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "Points": { + "$ref": "#\/components\/schemas\/Points" + }, + "sellerId": { + "type": "string", + "description": "The seller identifier for the offer." + } + } + }, + "OfferDetailList": { + "maxItems": 20, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/OfferDetail" + } + }, + "OfferDetail": { + "required": [ + "IsFulfilledByAmazon", + "ListingPrice", + "Shipping", + "ShippingTime", + "SubCondition" + ], + "type": "object", + "properties": { + "MyOffer": { + "type": "boolean", + "description": "When true, this is the seller's offer." + }, + "offerType": { + "$ref": "#\/components\/schemas\/OfferCustomerType" + }, + "SubCondition": { + "type": "string", + "description": "The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other." + }, + "SellerId": { + "type": "string", + "description": "The seller identifier for the offer." + }, + "ConditionNotes": { + "type": "string", + "description": "Information about the condition of the item." + }, + "SellerFeedbackRating": { + "$ref": "#\/components\/schemas\/SellerFeedbackType" + }, + "ShippingTime": { + "$ref": "#\/components\/schemas\/DetailedShippingTimeType" + }, + "ListingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "quantityDiscountPrices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/QuantityDiscountPriceType" + } + }, + "Points": { + "$ref": "#\/components\/schemas\/Points" + }, + "Shipping": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "ShipsFrom": { + "$ref": "#\/components\/schemas\/ShipsFromType" + }, + "IsFulfilledByAmazon": { + "type": "boolean", + "description": "When true, the offer is fulfilled by Amazon." + }, + "PrimeInformation": { + "$ref": "#\/components\/schemas\/PrimeInformationType" + }, + "IsBuyBoxWinner": { + "type": "boolean", + "description": "When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime." + }, + "IsFeaturedMerchant": { + "type": "boolean", + "description": "When true, the seller of the item is eligible to win the Buy Box." + } + } + }, + "PrimeInformationType": { + "required": [ + "IsNationalPrime", + "IsPrime" + ], + "type": "object", + "properties": { + "IsPrime": { + "type": "boolean", + "description": "Indicates whether the offer is an Amazon Prime offer." + }, + "IsNationalPrime": { + "type": "boolean", + "description": "Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed." + } + }, + "description": "Amazon Prime information." + }, + "SellerFeedbackType": { + "required": [ + "FeedbackCount" + ], + "type": "object", + "properties": { + "SellerPositiveFeedbackRating": { + "type": "number", + "description": "The percentage of positive feedback for the seller in the past 365 days.", + "format": "double" + }, + "FeedbackCount": { + "type": "integer", + "description": "The number of ratings received about the seller.", + "format": "int64" + } + }, + "description": "Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "DetailedShippingTimeType": { + "type": "object", + "properties": { + "minimumHours": { + "type": "integer", + "description": "The minimum time, in hours, that the item will likely be shipped after the order has been placed.", + "format": "int64" + }, + "maximumHours": { + "type": "integer", + "description": "The maximum time, in hours, that the item will likely be shipped after the order has been placed.", + "format": "int64" + }, + "availableDate": { + "type": "string", + "description": "The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping." + }, + "availabilityType": { + "type": "string", + "description": "Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE.", + "enum": [ + "NOW", + "FUTURE_WITHOUT_DATE", + "FUTURE_WITH_DATE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOW", + "description": "The item is available for shipping now." + }, + { + "value": "FUTURE_WITHOUT_DATE", + "description": "The item will be available for shipping on an unknown date in the future." + }, + { + "value": "FUTURE_WITH_DATE", + "description": "The item will be available for shipping on a known date in the future." + } + ] + } + }, + "description": "The time range in which an item will likely be shipped once an order has been placed." + }, + "ShipsFromType": { + "type": "object", + "properties": { + "State": { + "type": "string", + "description": "The state from where the item is shipped." + }, + "Country": { + "type": "string", + "description": "The country from where the item is shipped." + } + }, + "description": "The state and country from where the item is shipped." + }, + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier. Specifies the marketplace for which prices are returned." + }, + "ItemCondition": { + "type": "string", + "description": "Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club.", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "Asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "CustomerType": { + "type": "string", + "description": "Indicates whether to request Consumer or Business offers. Default is Consumer.", + "enum": [ + "Consumer", + "Business" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Consumer", + "description": "Consumer" + }, + { + "value": "Business", + "description": "Business" + } + ] + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/product-pricing/v2022-05-01.json b/resources/models/seller/product-pricing/v2022-05-01.json new file mode 100644 index 000000000..4bad27387 --- /dev/null +++ b/resources/models/seller/product-pricing/v2022-05-01.json @@ -0,0 +1,1701 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Pricing", + "description": "The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products.\n\nFor more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/product-pricing-api-v2022-05-01-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2022-05-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/batches\/products\/pricing\/2022-05-01\/offer\/featuredOfferExpectedPrice": { + "post": { + "tags": [ + "ProductPricingV20220501" + ], + "description": "Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.033 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFeaturedOfferExpectedPriceBatch", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturedOfferExpectedPriceBatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetFeaturedOfferExpectedPriceBatchResponse" + }, + "example": { + "responses": [ + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_SKU" + }, + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "headers": {}, + "body": { + "offerIdentifier": { + "asin": "ASIN", + "sku": "MY_SKU", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "featuredOfferExpectedPriceResults": [ + { + "featuredOfferExpectedPrice": { + "listingPrice": { + "amount": 10, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + }, + "resultStatus": "VALID_FOEP", + "competingFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "OTHER_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + }, + "currentFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "OTHER_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + } + } + ] + } + }, + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_UNIQUE_SKU" + }, + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "headers": {}, + "body": { + "offerIdentifier": { + "asin": "ASIN", + "sku": "MY_UNIQUE_SKU", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "featuredOfferExpectedPriceResults": [ + { + "resultStatus": "NO_COMPETING_OFFERS", + "currentFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + } + } + ] + } + }, + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_NONEXISTENT_SKU" + }, + "status": { + "statusCode": 400, + "reasonPhrase": "Client Error" + }, + "headers": {}, + "body": { + "errors": [ + { + "code": "INVALID_SKU", + "message": "The requested SKU does not exist for the seller in the requested marketplace." + } + ] + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_SKU", + "method": "GET", + "uri": "\/products\/pricing\/2022-05-01\/offer\/featuredOfferExpectedPrice" + }, + { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_UNIQUE_SKU", + "method": "GET", + "uri": "\/products\/pricing\/2022-05-01\/offer\/featuredOfferExpectedPrice" + }, + { + "marketplaceId": "MARKETPLACE_ID", + "sku": "INVALID_SKU", + "method": "GET", + "uri": "\/products\/pricing\/2022-05-01\/offer\/featuredOfferExpectedPrice" + } + ] + } + } + } + }, + "response": { + "responses": [ + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_SKU" + }, + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "headers": {}, + "body": { + "offerIdentifier": { + "asin": "ASIN", + "sku": "MY_SKU", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "featuredOfferExpectedPriceResults": [ + { + "featuredOfferExpectedPrice": { + "listingPrice": { + "amount": 10, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + }, + "resultStatus": "VALID_FOEP", + "competingFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "OTHER_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + }, + "currentFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "OTHER_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + } + } + ] + } + }, + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_UNIQUE_SKU" + }, + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "headers": {}, + "body": { + "offerIdentifier": { + "asin": "ASIN", + "sku": "MY_UNIQUE_SKU", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "featuredOfferExpectedPriceResults": [ + { + "resultStatus": "NO_COMPETING_OFFERS", + "currentFeaturedOffer": { + "offerIdentifier": { + "asin": "ASIN", + "marketplaceId": "MARKETPLACE_ID", + "fulfillmentType": "AFN", + "sellerId": "MY_SELLER_ID" + }, + "condition": "New", + "price": { + "listingPrice": { + "amount": 12, + "currencyCode": "USD" + }, + "shippingPrice": { + "amount": 0, + "currencyCode": "USD" + }, + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + } + } + } + } + ] + } + }, + { + "request": { + "marketplaceId": "MARKETPLACE_ID", + "sku": "MY_NONEXISTENT_SKU" + }, + "status": { + "statusCode": 400, + "reasonPhrase": "Client Error" + }, + "headers": {}, + "body": { + "errors": [ + { + "code": "INVALID_SKU", + "message": "The requested SKU does not exist for the seller in the requested marketplace." + } + ] + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + } + }, + "x-codegen-request-body-name": "getFeaturedOfferExpectedPriceBatchRequestBody" + } + }, + "\/batches\/products\/pricing\/2022-05-01\/items\/competitiveSummary": { + "post": { + "tags": [ + "ProductPricingV20220501" + ], + "description": "Returns the competitive summary response including featured buying options for the ASIN and `marketplaceId` combination", + "operationId": "getCompetitiveSummary", + "requestBody": { + "description": "The batch of `getCompetitiveSummary` requests.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryBatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryBatchResponse" + }, + "example": { + "responses": [ + { + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "body": { + "asin": "B00ZIAODGE", + "marketplaceId": "ATVPDKIKX0DER", + "featuredBuyingOptions": [ + { + "buyingOptionType": "New", + "segmentedFeaturedOffers": [ + { + "sellerId": "A3DJR8M9Y3OUPG", + "condition": "New", + "fulfillmentType": "MFN", + "listingPrice": { + "amount": 18.11, + "currencyCode": "USD" + }, + "shippingOptions": [ + { + "shippingOptionType": "DEFAULT", + "price": { + "amount": 2.5, + "currencyCode": "USD" + } + } + ], + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + }, + "featuredOfferSegments": [ + { + "customerMembership": "PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 72 + } + }, + { + "customerMembership": "NON_PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 18 + } + } + ] + }, + { + "sellerId": "A2ZWOLFOFDPJL1", + "condition": "New", + "fulfillmentType": "MFN", + "listingPrice": { + "amount": 17.15, + "currencyCode": "USD" + }, + "shippingOptions": [ + { + "shippingOptionType": "DEFAULT", + "price": { + "amount": 2.5, + "currencyCode": "USD" + } + } + ], + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + }, + "featuredOfferSegments": [ + { + "customerMembership": "NON_PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 10 + } + } + ] + } + ] + } + ] + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "requests": [ + { + "asin": "B00ZIAODGE", + "marketplaceId": "ATVPDKIKX0DER", + "includedData": [ + "featuredBuyingOptions" + ], + "uri": "\/products\/pricing\/2022-05-01\/items\/competitiveSummary", + "method": "GET" + }, + { + "asin": "11_AABB_123", + "marketplaceId": "ATVPDKIKX0DER", + "includedData": [ + "featuredBuyingOptions" + ], + "uri": "\/products\/pricing\/2022-05-01\/items\/competitiveSummary", + "method": "GET" + } + ] + } + } + } + }, + "response": { + "responses": [ + { + "status": { + "statusCode": 200, + "reasonPhrase": "Success" + }, + "body": { + "asin": "B00ZIAODGE", + "marketplaceId": "ATVPDKIKX0DER", + "featuredBuyingOptions": [ + { + "buyingOptionType": "New", + "segmentedFeaturedOffers": [ + { + "sellerId": "A3DJR8M9Y3OUPG", + "condition": "New", + "fulfillmentType": "MFN", + "listingPrice": { + "amount": 18.11, + "currencyCode": "USD" + }, + "shippingOptions": [ + { + "shippingOptionType": "DEFAULT", + "price": { + "amount": 2.5, + "currencyCode": "USD" + } + } + ], + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + }, + "featuredOfferSegments": [ + { + "customerMembership": "NON_PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 72 + } + }, + { + "customerMembership": "PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 10 + } + } + ] + }, + { + "sellerId": "A2ZWOLFOFDPJL1", + "condition": "New", + "fulfillmentType": "MFN", + "listingPrice": { + "amount": 17.15, + "currencyCode": "USD" + }, + "shippingOptions": [ + { + "shippingOptionType": "DEFAULT", + "price": { + "amount": 2.5, + "currencyCode": "USD" + } + } + ], + "points": { + "pointsNumber": 3, + "pointsMonetaryValue": { + "amount": 0.03, + "currencyCode": "USD" + } + }, + "featuredOfferSegments": [ + { + "customerMembership": "NON_PRIME", + "segmentDetails": { + "glanceViewWeightPercentage": 18 + } + } + ] + } + ] + } + ] + } + }, + { + "status": { + "statusCode": 400, + "reasonPhrase": "Client Error" + }, + "body": { + "asin": "11_AABB_123", + "marketplaceId": "ATVPDKIKX0DER", + "errors": [ + { + "code": "INVALID_ASIN", + "message": "11_AABB_123 is not a valid ASIN" + } + ] + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Errors" + } + } + } + } + }, + "x-codegen-request-body-name": "requests" + } + } + }, + "components": { + "schemas": { + "GetFeaturedOfferExpectedPriceBatchRequest": { + "type": "object", + "properties": { + "requests": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceRequestList" + } + }, + "description": "The request body for the `getFeaturedOfferExpectedPriceBatch` operation." + }, + "FeaturedOfferExpectedPriceRequestList": { + "minItems": 1, + "type": "array", + "description": "A batched list of featured offer expected price requests.", + "items": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceRequest" + } + }, + "FeaturedOfferExpectedPriceRequest": { + "description": "An individual featured offer expected price request for a particular SKU.", + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchRequest" + }, + { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceRequestParams" + } + ] + }, + "FeaturedOfferExpectedPriceRequestParams": { + "required": [ + "marketplaceId", + "sku" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "sku": { + "$ref": "#\/components\/schemas\/Sku" + } + }, + "description": "The parameters for an individual request." + }, + "GetFeaturedOfferExpectedPriceBatchResponse": { + "type": "object", + "properties": { + "responses": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceResponseList" + } + }, + "description": "The response schema for the `getFeaturedOfferExpectedPriceBatch` operation." + }, + "FeaturedOfferExpectedPriceResponseList": { + "minItems": 1, + "type": "array", + "description": "A batched list of featured offer expected price responses.", + "items": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceResponse" + } + }, + "FeaturedOfferExpectedPriceResponse": { + "allOf": [ + { + "$ref": "#\/components\/schemas\/BatchResponse" + }, + { + "required": [ + "request" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceRequestParams" + }, + "body": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceResponseBody" + } + } + } + ] + }, + "CompetitiveSummaryBatchRequest": { + "required": [ + "requests" + ], + "type": "object", + "properties": { + "requests": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryRequestList" + } + }, + "description": "The `competitiveSummary` batch request data." + }, + "CompetitiveSummaryRequestList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "A batched list of `competitiveSummary` requests.", + "items": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryRequest" + } + }, + "CompetitiveSummaryRequest": { + "required": [ + "asin", + "includedData", + "marketplaceId", + "method", + "uri" + ], + "type": "object", + "properties": { + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "includedData": { + "minItems": 1, + "type": "array", + "description": "The list of requested competitive pricing data for the product.", + "items": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryIncludedData" + } + }, + "method": { + "$ref": "#\/components\/schemas\/HttpMethod" + }, + "uri": { + "$ref": "#\/components\/schemas\/HttpUri" + } + }, + "description": "An individual `competitiveSummary` request for an ASIN and `marketplaceId`." + }, + "CompetitiveSummaryIncludedData": { + "type": "string", + "description": "The supported types of data in the `getCompetitiveSummary` API.", + "enum": [ + "featuredBuyingOptions" + ] + }, + "CompetitiveSummaryBatchResponse": { + "required": [ + "responses" + ], + "type": "object", + "properties": { + "responses": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryResponseList" + } + }, + "description": "The response schema of the `competitiveSummaryBatch` operation." + }, + "CompetitiveSummaryResponseList": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "description": "The response list of the `competitiveSummaryBatch` operation.", + "items": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryResponse" + } + }, + "CompetitiveSummaryResponse": { + "required": [ + "body", + "status" + ], + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/HttpStatusLine" + }, + "body": { + "$ref": "#\/components\/schemas\/CompetitiveSummaryResponseBody" + } + }, + "description": "The response for the individual `competitiveSummary` request in the batch operation." + }, + "CompetitiveSummaryResponseBody": { + "required": [ + "asin", + "marketplaceId" + ], + "type": "object", + "properties": { + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "featuredBuyingOptions": { + "type": "array", + "description": "A list of featured buying options for the given ASIN `marketplaceId` combination.", + "items": { + "$ref": "#\/components\/schemas\/FeaturedBuyingOption" + } + }, + "errors": { + "$ref": "#\/components\/schemas\/Errors" + } + }, + "description": "The `competitiveSummaryResponse` body for a requested ASIN and `marketplaceId`." + }, + "FeaturedBuyingOption": { + "required": [ + "buyingOptionType", + "segmentedFeaturedOffers" + ], + "type": "object", + "properties": { + "buyingOptionType": { + "type": "string", + "description": "The buying option type of the featured offer. This field represents the buying options that a customer sees on the detail page. For example, B2B, Fresh, and Subscribe n Save. Currently supports `NEW`", + "enum": [ + "New" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + } + ] + }, + "segmentedFeaturedOffers": { + "minItems": 1, + "type": "array", + "description": "A list of segmented featured offers for the current buying option type. A segment can be considered as a group of regional contexts that all have the same featured offer. A regional context is a combination of factors such as customer type, region or postal code and buying option.", + "items": { + "$ref": "#\/components\/schemas\/SegmentedFeaturedOffer" + } + } + }, + "description": "Describes a featured buying option which includes a list of segmented featured offers for a particular item condition." + }, + "SegmentedFeaturedOffer": { + "description": "A product offer with segment information indicating where it's featured.", + "allOf": [ + { + "$ref": "#\/components\/schemas\/Offer" + }, + { + "required": [ + "featuredOfferSegments" + ], + "type": "object", + "properties": { + "featuredOfferSegments": { + "type": "array", + "description": "The list of segment information in which the offer is featured.", + "items": { + "$ref": "#\/components\/schemas\/FeaturedOfferSegment" + } + } + }, + "description": "The list of segment information in which the offer is featured." + } + ] + }, + "Offer": { + "required": [ + "condition", + "fulfillmentType", + "listingPrice", + "sellerId" + ], + "type": "object", + "properties": { + "sellerId": { + "type": "string", + "description": "The seller identifier for the offer." + }, + "condition": { + "$ref": "#\/components\/schemas\/Condition" + }, + "fulfillmentType": { + "$ref": "#\/components\/schemas\/FulfillmentType" + }, + "listingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "shippingOptions": { + "type": "array", + "description": "A list of shipping options associated with this offer", + "items": { + "$ref": "#\/components\/schemas\/ShippingOption" + } + }, + "points": { + "$ref": "#\/components\/schemas\/Points" + } + }, + "description": "The offer data of a product." + }, + "ShippingOption": { + "required": [ + "price", + "shippingOptionType" + ], + "type": "object", + "properties": { + "shippingOptionType": { + "type": "string", + "description": "The type of the shipping option.", + "enum": [ + "DEFAULT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DEFAULT", + "description": "The estimated shipping cost of the product. Note that the shipping cost is not always available." + } + ] + }, + "price": { + "$ref": "#\/components\/schemas\/MoneyType" + } + }, + "description": "The shipping option available for the offer." + }, + "FeaturedOfferSegment": { + "required": [ + "customerMembership", + "segmentDetails" + ], + "type": "object", + "properties": { + "customerMembership": { + "type": "string", + "description": "The customer membership type that make up this segment", + "enum": [ + "PRIME", + "NON_PRIME" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PRIME", + "description": "PRIME" + }, + { + "value": "NON_PRIME", + "description": "NON_PRIME" + } + ] + }, + "segmentDetails": { + "$ref": "#\/components\/schemas\/SegmentDetails" + } + }, + "description": "Describes the segment in which the offer is featured." + }, + "SegmentDetails": { + "type": "object", + "properties": { + "glanceViewWeightPercentage": { + "type": "number", + "description": "Glance view weight percentage for this segment. The glance views for this segment as a percentage of total glance views across all segments on the ASIN. A higher percentage indicates more Amazon customers see this offer as the Featured Offer." + } + }, + "description": "The details about the segment." + }, + "Errors": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "FeaturedOfferExpectedPriceResponseBody": { + "required": [ + "offerIdentifier" + ], + "type": "object", + "properties": { + "offerIdentifier": { + "$ref": "#\/components\/schemas\/OfferIdentifier" + }, + "featuredOfferExpectedPriceResults": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceResultList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The featured offer expected price response data for a requested SKU." + }, + "FeaturedOfferExpectedPriceResultList": { + "type": "array", + "description": "A list of featured offer expected price results for the requested offer.", + "items": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPriceResult" + } + }, + "FeaturedOfferExpectedPriceResult": { + "required": [ + "resultStatus" + ], + "type": "object", + "properties": { + "featuredOfferExpectedPrice": { + "$ref": "#\/components\/schemas\/FeaturedOfferExpectedPrice" + }, + "resultStatus": { + "type": "string", + "description": "The status of the featured offer expected price computation. Possible values include `VALID_FOEP`, `NO_COMPETING_OFFER`, `OFFER_NOT_ELIGIBLE`, `OFFER_NOT_FOUND`, `ASIN_NOT_ELIGIBLE`. Additional values may be added in the future." + }, + "competingFeaturedOffer": { + "$ref": "#\/components\/schemas\/FeaturedOffer" + }, + "currentFeaturedOffer": { + "$ref": "#\/components\/schemas\/FeaturedOffer" + } + }, + "description": "The featured offer expected price result data for the requested offer." + }, + "FeaturedOfferExpectedPrice": { + "required": [ + "listingPrice" + ], + "type": "object", + "properties": { + "listingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "points": { + "$ref": "#\/components\/schemas\/Points" + } + }, + "description": "The item price at or below which the target offer may be featured." + }, + "FeaturedOffer": { + "required": [ + "offerIdentifier" + ], + "type": "object", + "properties": { + "offerIdentifier": { + "$ref": "#\/components\/schemas\/OfferIdentifier" + }, + "condition": { + "$ref": "#\/components\/schemas\/Condition" + }, + "price": { + "$ref": "#\/components\/schemas\/Price" + } + } + }, + "HttpHeaders": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of additional HTTP headers to send\/receive for an individual request within a batch." + }, + "HttpStatusLine": { + "type": "object", + "properties": { + "statusCode": { + "maximum": 599, + "minimum": 100, + "type": "integer", + "description": "The HTTP response Status-Code." + }, + "reasonPhrase": { + "type": "string", + "description": "The HTTP response Reason-Phase." + } + }, + "description": "The HTTP status line associated with the response to an individual request within a batch. For more information, consult [RFC 2616](https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec6.html)." + }, + "HttpBody": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "Additional HTTP body information associated with an individual request within a batch." + }, + "HttpUri": { + "maxLength": 512, + "minLength": 6, + "type": "string", + "description": "The URI associated with the individual APIs being called as part of the batch request." + }, + "HttpMethod": { + "type": "string", + "description": "The HTTP method associated with an individual request within a batch.", + "enum": [ + "GET", + "PUT", + "PATCH", + "DELETE", + "POST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GET", + "description": "GET" + }, + { + "value": "PUT", + "description": "PUT" + }, + { + "value": "PATCH", + "description": "PATCH" + }, + { + "value": "DELETE", + "description": "DELETE" + }, + { + "value": "POST", + "description": "POST" + } + ] + }, + "BatchRequest": { + "required": [ + "method", + "uri" + ], + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The URI associated with an individual request within a batch. For `FeaturedOfferExpectedPrice`, this should be `\/products\/pricing\/2022-05-01\/offer\/featuredOfferExpectedPrice`." + }, + "method": { + "$ref": "#\/components\/schemas\/HttpMethod" + }, + "body": { + "$ref": "#\/components\/schemas\/HttpBody" + }, + "headers": { + "$ref": "#\/components\/schemas\/HttpHeaders" + } + }, + "description": "The common properties for individual requests within a batch." + }, + "BatchResponse": { + "required": [ + "headers", + "status" + ], + "type": "object", + "properties": { + "headers": { + "$ref": "#\/components\/schemas\/HttpHeaders" + }, + "status": { + "$ref": "#\/components\/schemas\/HttpStatusLine" + } + }, + "description": "The common properties for responses to individual requests within a batch." + }, + "OfferIdentifier": { + "required": [ + "asin", + "marketplaceId" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "sellerId": { + "type": "string", + "description": "The seller identifier for the offer." + }, + "sku": { + "type": "string", + "description": "The seller stock keeping unit (SKU) of the item. This will only be present for the target offer, which belongs to the requesting seller." + }, + "asin": { + "$ref": "#\/components\/schemas\/Asin" + }, + "fulfillmentType": { + "$ref": "#\/components\/schemas\/FulfillmentType" + } + }, + "description": "Identifies an offer from a particular seller on an ASIN." + }, + "MoneyType": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + }, + "amount": { + "type": "number", + "description": "The monetary value." + } + } + }, + "Price": { + "required": [ + "listingPrice" + ], + "type": "object", + "properties": { + "listingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "shippingPrice": { + "$ref": "#\/components\/schemas\/MoneyType" + }, + "points": { + "$ref": "#\/components\/schemas\/Points" + } + } + }, + "Points": { + "type": "object", + "properties": { + "pointsNumber": { + "type": "integer", + "description": "The number of points.", + "format": "int32" + }, + "pointsMonetaryValue": { + "$ref": "#\/components\/schemas\/MoneyType" + } + } + }, + "FulfillmentType": { + "type": "string", + "description": "Indicates whether the item is fulfilled by Amazon or by the seller (merchant).", + "enum": [ + "AFN", + "MFN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AFN", + "description": "Fulfilled by Amazon." + }, + { + "value": "MFN", + "description": "Fulfilled by the seller." + } + ] + }, + "MarketplaceId": { + "type": "string", + "description": "A marketplace identifier. Specifies the marketplace for which data is returned." + }, + "Sku": { + "type": "string", + "description": "The seller SKU of the item." + }, + "Condition": { + "type": "string", + "description": "The condition of the item.", + "enum": [ + "New", + "Used", + "Collectible", + "Refurbished", + "Club" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "New" + }, + { + "value": "Used", + "description": "Used" + }, + { + "value": "Collectible", + "description": "Collectible" + }, + { + "value": "Refurbished", + "description": "Refurbished" + }, + { + "value": "Club", + "description": "Club" + } + ] + }, + "Asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional information that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/product-type-definitions/v2020-09-01.json b/resources/models/seller/product-type-definitions/v2020-09-01.json new file mode 100644 index 000000000..11779b011 --- /dev/null +++ b/resources/models/seller/product-type-definitions/v2020-09-01.json @@ -0,0 +1,1448 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Product Type Definitions", + "description": "The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds).\n\nFor more information, see the [Product Type Definitions API Use Case Guide](doc:product-type-api-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-09-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/definitions\/2020-09-01\/productTypes": { + "get": { + "tags": [ + "ProductTypeDefinitionsV20200901" + ], + "description": "Search for and return a list of Amazon product types that have definitions available.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 5 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "searchDefinitionsProductTypes", + "parameters": [ + { + "name": "keywords", + "in": "query", + "description": "A comma-delimited list of keywords to search product types. **Note:** Cannot be used with `itemName`.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "LUGGAGE" + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "itemName", + "in": "query", + "description": "The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with `keywords`.", + "schema": { + "type": "string" + }, + "example": "Running shoes" + }, + { + "name": "locale", + "in": "query", + "description": "The locale for the display names in the response. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + }, + { + "name": "searchLocale", + "in": "query", + "description": "The locale used for the `keywords` and `itemName` parameters. Defaults to the primary locale of the marketplace.", + "schema": { + "type": "string" + }, + "example": "en_US" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a list of Amazon product types that have definitions available.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ProductTypeList" + }, + "example": { + "productTypes": [ + { + "name": "LUGGAGE", + "displayName": "Luggage", + "marketplaceIds": [ + "ATVPDKIKX0DER" + ] + } + ], + "productTypeVersion": { + "version": "UHqSqmb4FNUk=", + "latest": true, + "releaseCandidate": false + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "productTypes": [ + { + "name": "LUGGAGE", + "displayName": "Luggage", + "marketplaceIds": [ + "ATVPDKIKX0DER" + ] + } + ], + "productTypeVersion": { + "version": "UHqSqmb4FNUk=", + "latest": true, + "releaseCandidate": false + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "keywords": { + "value": [ + "Invalid Request" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/definitions\/2020-09-01\/productTypes\/{productType}": { + "get": { + "tags": [ + "ProductTypeDefinitionsV20200901" + ], + "description": "Retrieve an Amazon product type definition.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 5 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getDefinitionsProductType", + "parameters": [ + { + "name": "productType", + "in": "path", + "description": "The Amazon product type name.", + "required": true, + "schema": { + "type": "string" + }, + "example": "LUGGAGE" + }, + { + "name": "sellerId", + "in": "query", + "description": "A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.", + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A comma-delimited list of Amazon marketplace identifiers for the request.\nNote: This parameter is limited to one marketplaceId at this time.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": "ATVPDKIKX0DER" + }, + { + "name": "productTypeVersion", + "in": "query", + "description": "The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.", + "schema": { + "type": "string", + "default": "LATEST" + }, + "example": "LATEST" + }, + { + "name": "requirements", + "in": "query", + "description": "The name of the requirements set to retrieve requirements for.", + "schema": { + "type": "string", + "default": "LISTING", + "enum": [ + "LISTING", + "LISTING_PRODUCT_ONLY", + "LISTING_OFFER_ONLY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LISTING", + "description": "Request schema containing product facts and sales terms." + }, + { + "value": "LISTING_PRODUCT_ONLY", + "description": "Request schema containing product facts only." + }, + { + "value": "LISTING_OFFER_ONLY", + "description": "Request schema containing sales terms only." + } + ] + }, + "example": "LISTING", + "x-docgen-enum-table-extension": [ + { + "value": "LISTING", + "description": "Request schema containing product facts and sales terms." + }, + { + "value": "LISTING_PRODUCT_ONLY", + "description": "Request schema containing product facts only." + }, + { + "value": "LISTING_OFFER_ONLY", + "description": "Request schema containing sales terms only." + } + ] + }, + { + "name": "requirementsEnforced", + "in": "query", + "description": "Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).", + "schema": { + "type": "string", + "default": "ENFORCED", + "enum": [ + "ENFORCED", + "NOT_ENFORCED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ENFORCED", + "description": "Request schema with required and conditionally required attributes enforced (used for full payload validation)." + }, + { + "value": "NOT_ENFORCED", + "description": "Request schema with required and conditionally required attributes not enforced (used for partial payload validation, such as for single attributes)." + } + ] + }, + "example": "ENFORCED", + "x-docgen-enum-table-extension": [ + { + "value": "ENFORCED", + "description": "Request schema with required and conditionally required attributes enforced (used for full payload validation)." + }, + { + "value": "NOT_ENFORCED", + "description": "Request schema with required and conditionally required attributes not enforced (used for partial payload validation, such as for single attributes)." + } + ] + }, + { + "name": "locale", + "in": "query", + "description": "Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.", + "schema": { + "type": "string", + "default": "DEFAULT", + "enum": [ + "DEFAULT", + "ar", + "ar_AE", + "de", + "de_DE", + "en", + "en_AE", + "en_AU", + "en_CA", + "en_GB", + "en_IN", + "en_SG", + "en_US", + "es", + "es_ES", + "es_MX", + "es_US", + "fr", + "fr_CA", + "fr_FR", + "it", + "it_IT", + "ja", + "ja_JP", + "nl", + "nl_NL", + "pl", + "pl_PL", + "pt", + "pt_BR", + "pt_PT", + "sv", + "sv_SE", + "tr", + "tr_TR", + "zh", + "zh_CN", + "zh_TW" + ], + "x-docgen-enum-table-extension": [ + { + "value": "DEFAULT", + "description": "Default locale of the requested Amazon marketplace." + }, + { + "value": "ar", + "description": "Arabic" + }, + { + "value": "ar_AE", + "description": "Arabic (U.A.E.)" + }, + { + "value": "de", + "description": "German" + }, + { + "value": "de_DE", + "description": "German (Germany)" + }, + { + "value": "en", + "description": "English" + }, + { + "value": "en_AE", + "description": "English (U.A.E.)" + }, + { + "value": "en_AU", + "description": "English (Australia)" + }, + { + "value": "en_CA", + "description": "English (Canada)" + }, + { + "value": "en_GB", + "description": "English (United Kingdom)" + }, + { + "value": "en_IN", + "description": "English (India)" + }, + { + "value": "en_SG", + "description": "English (Singapore)" + }, + { + "value": "en_US", + "description": "English (United States)" + }, + { + "value": "es", + "description": "Spanish" + }, + { + "value": "es_ES", + "description": "Spanish (Spain)" + }, + { + "value": "es_MX", + "description": "Spanish (Mexico)" + }, + { + "value": "es_US", + "description": "Spanish (United States)" + }, + { + "value": "fr", + "description": "French" + }, + { + "value": "fr_CA", + "description": "French (Canada)" + }, + { + "value": "fr_FR", + "description": "French (France)" + }, + { + "value": "it", + "description": "Italian" + }, + { + "value": "it_IT", + "description": "Italian (Italy)" + }, + { + "value": "ja", + "description": "Japanese" + }, + { + "value": "ja_JP", + "description": "Japanese (Japan)" + }, + { + "value": "nl", + "description": "Dutch" + }, + { + "value": "nl_NL", + "description": "Dutch (Netherlands)" + }, + { + "value": "pl", + "description": "Polish" + }, + { + "value": "pl_PL", + "description": "Polish (Poland)" + }, + { + "value": "pt", + "description": "Portuguese" + }, + { + "value": "pt_BR", + "description": "Portuguese (Brazil)" + }, + { + "value": "pt_PT", + "description": "Portuguese (Portugal)" + }, + { + "value": "sv", + "description": "Swedish" + }, + { + "value": "sv_SE", + "description": "Swedish (Sweden)" + }, + { + "value": "tr", + "description": "Turkish" + }, + { + "value": "tr_TR", + "description": "Turkish (Turkey)" + }, + { + "value": "zh", + "description": "Chinese" + }, + { + "value": "zh_CN", + "description": "Chinese (Simplified)" + }, + { + "value": "zh_TW", + "description": "Chinese (Traditional)" + } + ] + }, + "example": "DEFAULT", + "x-docgen-enum-table-extension": [ + { + "value": "DEFAULT", + "description": "Default locale of the requested Amazon marketplace." + }, + { + "value": "ar", + "description": "Arabic" + }, + { + "value": "ar_AE", + "description": "Arabic (U.A.E.)" + }, + { + "value": "de", + "description": "German" + }, + { + "value": "de_DE", + "description": "German (Germany)" + }, + { + "value": "en", + "description": "English" + }, + { + "value": "en_AE", + "description": "English (U.A.E.)" + }, + { + "value": "en_AU", + "description": "English (Australia)" + }, + { + "value": "en_CA", + "description": "English (Canada)" + }, + { + "value": "en_GB", + "description": "English (United Kingdom)" + }, + { + "value": "en_IN", + "description": "English (India)" + }, + { + "value": "en_SG", + "description": "English (Singapore)" + }, + { + "value": "en_US", + "description": "English (United States)" + }, + { + "value": "es", + "description": "Spanish" + }, + { + "value": "es_ES", + "description": "Spanish (Spain)" + }, + { + "value": "es_MX", + "description": "Spanish (Mexico)" + }, + { + "value": "es_US", + "description": "Spanish (United States)" + }, + { + "value": "fr", + "description": "French" + }, + { + "value": "fr_CA", + "description": "French (Canada)" + }, + { + "value": "fr_FR", + "description": "French (France)" + }, + { + "value": "it", + "description": "Italian" + }, + { + "value": "it_IT", + "description": "Italian (Italy)" + }, + { + "value": "ja", + "description": "Japanese" + }, + { + "value": "ja_JP", + "description": "Japanese (Japan)" + }, + { + "value": "nl", + "description": "Dutch" + }, + { + "value": "nl_NL", + "description": "Dutch (Netherlands)" + }, + { + "value": "pl", + "description": "Polish" + }, + { + "value": "pl_PL", + "description": "Polish (Poland)" + }, + { + "value": "pt", + "description": "Portuguese" + }, + { + "value": "pt_BR", + "description": "Portuguese (Brazil)" + }, + { + "value": "pt_PT", + "description": "Portuguese (Portugal)" + }, + { + "value": "sv", + "description": "Swedish" + }, + { + "value": "sv_SE", + "description": "Swedish (Sweden)" + }, + { + "value": "tr", + "description": "Turkish" + }, + { + "value": "tr_TR", + "description": "Turkish (Turkey)" + }, + { + "value": "zh", + "description": "Chinese" + }, + { + "value": "zh_CN", + "description": "Chinese (Simplified)" + }, + { + "value": "zh_TW", + "description": "Chinese (Traditional)" + } + ] + } + ], + "responses": { + "200": { + "description": "Successfully retrieved an Amazon product type definition.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ProductTypeDefinition" + }, + "example": { + "metaSchema": { + "link": { + "resource": "https:\/\/meta-schema-url", + "verb": "GET" + }, + "checksum": "c7af9479ca7261645cea9db56c5f720d" + }, + "schema": { + "link": { + "resource": "https:\/\/schema-url", + "verb": "GET" + }, + "checksum": "c7af9479ca7261645cea9db56c5f720d" + }, + "requirements": "LISTING", + "requirementsEnforced": "ENFORCED", + "propertyGroups": { + "product_identity": { + "title": "Product Identity", + "description": "Information to uniquely identify your product (e.g., UPC, EAN, GTIN, Product Type, Brand)", + "propertyNames": [ + "item_name", + "brand", + "external_product_id", + "gtin_exemption_reason", + "merchant_suggested_asin", + "product_type", + "product_category", + "product_subcategory", + "item_type_keyword" + ] + } + }, + "locale": "en_US", + "marketplaceIds": [ + "ATVPDKIKX0DER" + ], + "productType": "LUGGAGE", + "displayName": "Luggage", + "productTypeVersion": { + "version": "UHqSqmb4FNUk=", + "latest": true, + "releaseCandidate": false + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "metaSchema": { + "link": { + "resource": "https:\/\/meta-schema-url", + "verb": "GET" + }, + "checksum": "c7af9479ca7261645cea9db56c5f720d" + }, + "schema": { + "link": { + "resource": "https:\/\/schema-url", + "verb": "GET" + }, + "checksum": "c7af9479ca7261645cea9db56c5f720d" + }, + "requirements": "LISTING", + "requirementsEnforced": "ENFORCED", + "propertyGroups": { + "product_identity": { + "title": "Product Identity", + "description": "Information to uniquely identify your product (e.g., UPC, EAN, GTIN, Product Type, Brand)", + "propertyNames": [ + "item_name", + "brand", + "external_product_id", + "gtin_exemption_reason", + "merchant_suggested_asin", + "product_type", + "product_category", + "product_subcategory", + "item_type_keyword" + ] + } + }, + "locale": "en_US", + "marketplaceIds": [ + "ATVPDKIKX0DER" + ], + "productType": "LUGGAGE", + "displayName": "Luggage", + "productTypeVersion": { + "version": "UHqSqmb4FNUk=", + "latest": true, + "releaseCandidate": false + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "productType": { + "value": "INVALID" + } + } + }, + "response": { + "errors": [ + { + "code": "BAD_REQUEST", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "SchemaLink": { + "required": [ + "checksum", + "link" + ], + "type": "object", + "properties": { + "link": { + "required": [ + "resource", + "verb" + ], + "type": "object", + "properties": { + "resource": { + "type": "string", + "description": "URI resource for the link." + }, + "verb": { + "type": "string", + "description": "HTTP method for the link operation.", + "enum": [ + "GET" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GET", + "description": "The provided resource is accessed with the HTTP GET method." + } + ] + } + }, + "description": "Link to retrieve the schema." + }, + "checksum": { + "type": "string", + "description": "Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching." + } + } + }, + "ProductTypeDefinition": { + "required": [ + "displayName", + "locale", + "marketplaceIds", + "productType", + "productTypeVersion", + "propertyGroups", + "requirements", + "requirementsEnforced", + "schema" + ], + "type": "object", + "properties": { + "metaSchema": { + "$ref": "#\/components\/schemas\/SchemaLink" + }, + "schema": { + "$ref": "#\/components\/schemas\/SchemaLink" + }, + "requirements": { + "type": "string", + "description": "Name of the requirements set represented in this product type definition.", + "enum": [ + "LISTING", + "LISTING_PRODUCT_ONLY", + "LISTING_OFFER_ONLY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "LISTING", + "description": "Indicates the schema contains product facts and sales terms." + }, + { + "value": "LISTING_PRODUCT_ONLY", + "description": "Indicates the schema data contains product facts only." + }, + { + "value": "LISTING_OFFER_ONLY", + "description": "Indicates the schema data contains sales terms only." + } + ] + }, + "requirementsEnforced": { + "type": "string", + "description": "Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates).", + "enum": [ + "ENFORCED", + "NOT_ENFORCED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ENFORCED", + "description": "Schema enforces required and conditionally required attributes (used for full payload validation)." + }, + { + "value": "NOT_ENFORCED", + "description": "Schema does not enforce required and conditionally required attributes (used for partial payload validation, such as for single attributes)." + } + ] + }, + "propertyGroups": { + "type": "object", + "additionalProperties": { + "$ref": "#\/components\/schemas\/PropertyGroup" + }, + "description": "Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes." + }, + "locale": { + "type": "string", + "description": "Locale of the display elements contained in the product type definition." + }, + "marketplaceIds": { + "type": "array", + "description": "Amazon marketplace identifiers for which the product type definition is applicable.", + "items": { + "type": "string" + } + }, + "productType": { + "type": "string", + "description": "The name of the Amazon product type that this product type definition applies to." + }, + "displayName": { + "type": "string", + "description": "Human-readable and localized description of the Amazon product type." + }, + "productTypeVersion": { + "$ref": "#\/components\/schemas\/ProductTypeVersion" + } + }, + "description": "A product type definition represents the attributes and data requirements for a product type in the Amazon catalog. Product type definitions are used interchangeably between the Selling Partner API for Listings Items, Selling Partner API for Catalog Items, and JSON-based listings feeds in the Selling Partner API for Feeds." + }, + "PropertyGroup": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The display label of the property group." + }, + "description": { + "type": "string", + "description": "The description of the property group." + }, + "propertyNames": { + "type": "array", + "description": "The names of the schema properties for the property group.", + "items": { + "type": "string" + } + } + }, + "description": "A property group represents a logical grouping of schema properties that can be used for display or informational purposes." + }, + "ProductTypeVersion": { + "required": [ + "latest", + "version" + ], + "type": "object", + "properties": { + "version": { + "type": "string", + "description": "Version identifier." + }, + "latest": { + "type": "boolean", + "description": "When true, the version indicated by the version identifier is the latest available for the Amazon product type." + }, + "releaseCandidate": { + "type": "boolean", + "description": "When true, the version indicated by the version identifier is the prerelease (release candidate) for the Amazon product type." + } + }, + "description": "The version details for an Amazon product type." + }, + "ProductType": { + "required": [ + "displayName", + "marketplaceIds", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the Amazon product type." + }, + "displayName": { + "type": "string", + "description": "The human-readable and localized description of the Amazon product type." + }, + "marketplaceIds": { + "type": "array", + "description": "The Amazon marketplace identifiers for which the product type definition is available.", + "items": { + "type": "string" + } + } + }, + "description": "An Amazon product type with a definition available." + }, + "ProductTypeList": { + "required": [ + "productTypeVersion", + "productTypes" + ], + "type": "object", + "properties": { + "productTypes": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ProductType" + } + }, + "productTypeVersion": { + "$ref": "#\/components\/schemas\/ProductTypeVersion" + } + }, + "description": "A list of Amazon product types with definitions available." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/replenishment/v2022-11-07.json b/resources/models/seller/replenishment/v2022-11-07.json new file mode 100644 index 000000000..f5f467679 --- /dev/null +++ b/resources/models/seller/replenishment/v2022-11-07.json @@ -0,0 +1,1978 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Replenishment", + "description": "The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery of any replenishable item at a frequency chosen by the customer.\n\nThe Replenishment API is available worldwide wherever Amazon Subscribe & Save is available or is supported. The API is available to vendors and FBA selling partners.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2022-11-07" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/replenishment\/2022-11-07\/sellingPartners\/metrics\/search": { + "post": { + "tags": [ + "ReplenishmentV20221107" + ], + "description": "Returns aggregated replenishment program metrics for a selling partner. \n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSellingPartnerMetrics", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSellingPartnerMetricsRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSellingPartnerMetricsResponse" + }, + "example": { + "metrics": [ + { + "subscriberAverageRevenue": 125.93, + "nonSubscriberAverageRevenue": 73.62, + "shippedSubscriptionUnits": 5290, + "notDeliveredDueToOOS": 5.54, + "totalSubscriptionsRevenue": 131340.24, + "activeSubscriptions": 0, + "currencyCode": "USD", + "timeInterval": { + "endDate": "2023-05-09T22:36:56Z", + "startDate": "2022-05-09T22:36:56Z" + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "aggregationFrequency": "YEAR", + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2022-12-31T00:00:00Z" + }, + "metrics": [ + "TOTAL_SUBSCRIPTIONS_REVENUE" + ], + "timePeriodType": "PERFORMANCE", + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ] + } + } + } + }, + "response": { + "metrics": [ + { + "subscriberAverageRevenue": 125.93, + "nonSubscriberAverageRevenue": 73.62, + "shippedSubscriptionUnits": 5290, + "notDeliveredDueToOOS": 5.54, + "totalSubscriptionsRevenue": 131340.24, + "activeSubscriptions": 0, + "currencyCode": "USD", + "timeInterval": { + "endDate": "2023-05-09T22:36:56Z", + "startDate": "2022-05-09T22:36:56Z" + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "aggregationFrequency": "DAY", + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2023-01-01T00:00:00Z" + }, + "metrics": [ + "SHIPPED_SUBSCRIPTION_UNITS", + "TOTAL_SUBSCRIPTIONS_REVENUE", + "NOT_DELIVERED_DUE_TO_OOS", + "ACTIVE_SUBSCRIPTIONS", + "SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE" + ], + "timePeriodType": "PERFORMANCE", + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Unsupported aggregationFrequency is provided. Only WEEK, MONTH, QUARTER and YEAR are supported" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/replenishment\/2022-11-07\/offers\/metrics\/search": { + "post": { + "tags": [ + "ReplenishmentV20221107" + ], + "description": "Returns aggregated replenishment program metrics for a selling partner's offers.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listOfferMetrics", + "requestBody": { + "description": "The request body for the `listOfferMetrics` operation.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListOfferMetricsRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListOfferMetricsResponse" + }, + "example": { + "offers": [ + { + "notDeliveredDueToOOS": 30.78, + "shippedSubscriptionUnits": 20, + "totalSubscriptionsRevenue": 12.89, + "asin": "B000TMUDOW", + "revenuePenetration": 10.34, + "timeInterval": { + "endDate": "2023-03-11T00:00:00Z", + "startDate": "2023-03-05T00:00:00Z" + }, + "currencyCode": "USD" + }, + { + "notDeliveredDueToOOS": 40.78, + "shippedSubscriptionUnits": 40, + "totalSubscriptionsRevenue": 34.03, + "asin": "B004CLH5CY", + "revenuePenetration": 9.87, + "timeInterval": { + "endDate": "2023-03-11T00:00:00Z", + "startDate": "2023-03-05T00:00:00Z" + }, + "currencyCode": "USD" + } + ], + "pagination": { + "totalResults": 17 + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "filters": { + "aggregationFrequency": "YEAR", + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2022-12-31T00:00:00Z" + }, + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ], + "timePeriodType": "PERFORMANCE", + "asins": [ + "B07CYBR5GZ", + "B07CYJJW8H" + ] + }, + "pagination": { + "limit": 2, + "offset": 0 + }, + "sort": { + "order": "ASC", + "key": "TOTAL_SUBSCRIPTIONS_REVENUE" + } + } + } + } + }, + "response": { + "offers": [ + { + "asin": "B07CYBR5GZ", + "notDeliveredDueToOOS": 10.2, + "totalSubscriptionsRevenue": 100.45, + "revenuePenetration": 23.6, + "shippedSubscriptionUnits": 100, + "activeSubscriptions": 100, + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2022-12-31T00:00:00Z" + }, + "currencyCode": "USD" + }, + { + "asin": "B07CYJJW8H", + "notDeliveredDueToOOS": 12.78, + "totalSubscriptionsRevenue": 80.11, + "revenuePenetration": 35.9, + "shippedSubscriptionUnits": 100, + "activeSubscriptions": 100, + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2022-12-31T00:00:00Z" + }, + "currencyCode": "USD" + } + ], + "pagination": { + "totalResults": 17 + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "filters": { + "aggregationFrequency": "DAY", + "timeInterval": { + "startDate": "2022-01-01T00:00:00Z", + "endDate": "2022-12-31T00:00:00Z" + }, + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ], + "timePeriodType": "PERFORMANCE", + "asins": [ + "B07CYBR5GZ" + ] + }, + "pagination": { + "limit": 1, + "offset": 0 + }, + "sort": { + "order": "ASC", + "key": "TOTAL_SUBSCRIPTIONS_REVENUE" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Unsupported aggregationFrequency is provided. Only WEEK, MONTH, QUARTER and YEAR are supported" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/replenishment\/2022-11-07\/offers\/search": { + "post": { + "tags": [ + "ReplenishmentV20221107" + ], + "description": "Returns the details of a selling partner's replenishment program offers. Note that this operation only supports sellers at this time.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "listOffers", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListOffersRequest" + } + } + }, + "required": false + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ListOffersResponse" + }, + "example": { + "offers": [ + { + "marketplaceId": "ATVPDKIKX0DER", + "offerProgramConfiguration": { + "preferences": { + "autoEnrollment": "OPTED_IN" + }, + "promotions": { + "sellingPartnerFundedBaseDiscount": { + "percentage": 5 + }, + "sellingPartnerFundedTieredDiscount": { + "percentage": 0 + }, + "amazonFundedBaseDiscount": { + "percentage": 5 + }, + "amazonFundedTieredDiscount": { + "percentage": 10 + } + }, + "enrollmentMethod": "AUTOMATIC" + }, + "programType": "SUBSCRIBE_AND_SAVE", + "eligibility": "ELIGIBLE", + "asin": "B09KR5B7FH", + "sku": "SKU_OPTED_IN" + } + ], + "pagination": { + "totalResults": 1 + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "filters": { + "eligibilities": [ + "ELIGIBLE" + ], + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ], + "preferences": { + "autoEnrollment": [ + "OPTED_IN", + "OPTED_OUT" + ] + }, + "promotions": { + "sellingPartnerFundedTieredDiscount": { + "percentage": [ + 0, + 5, + 10 + ] + } + } + }, + "pagination": { + "limit": 25, + "offset": 0 + }, + "sort": { + "order": "ASC", + "key": "ASIN" + } + } + } + } + }, + "response": { + "offers": [ + { + "asin": "B07CYBR5GZ", + "marketplaceId": "ATVPDKIKX0DER", + "sku": "TEST_SKU_A", + "eligibility": "ELIGIBLE", + "vendorCodes": [ + "ABCDE", + "PQRST" + ], + "offerProgramConfiguration": { + "preferences": { + "autoEnrollment": "OPTED_IN" + }, + "promotions": { + "sellingPartnerFundedBaseDiscount": { + "percentage": 0 + }, + "sellingPartnerFundedTieredDiscount": { + "percentage": 5 + }, + "amazonFundedBaseDiscount": { + "percentage": 10 + }, + "amazonFundedTieredDiscount": { + "percentage": 15 + } + }, + "enrollmentMethod": "AUTOMATIC" + }, + "programType": "SUBSCRIBE_AND_SAVE" + }, + { + "asin": "B07CYCR5GZ", + "marketplaceId": "ATVPDKIKX0DER", + "sku": "TEST_SKU_A", + "eligibility": "ELIGIBLE", + "vendorCodes": [ + "ABCDE", + "PQRST" + ], + "offerProgramConfiguration": { + "preferences": { + "autoEnrollment": "OPTED_IN" + }, + "promotions": { + "sellingPartnerFundedBaseDiscount": { + "percentage": 5 + }, + "sellingPartnerFundedTieredDiscount": { + "percentage": 0 + }, + "amazonFundedBaseDiscount": { + "percentage": 5 + }, + "amazonFundedTieredDiscount": { + "percentage": 10 + } + }, + "enrollmentMethod": "AUTOMATIC" + }, + "programType": "SUBSCRIBE_AND_SAVE" + } + ], + "pagination": { + "totalResults": 2 + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "filters": { + "eligibilities": [ + "BAD_VALUE" + ], + "marketplaceId": "ATVPDKIKX0DER", + "programTypes": [ + "SUBSCRIBE_AND_SAVE" + ] + }, + "pagination": { + "limit": 25, + "offset": 0 + }, + "sort": { + "order": "ASC", + "key": "ASIN" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Unsupported eligibility is provided. Only ELIGIBLE, INELIGIBLE, SUSPENDED and REPLENISHMENT_ONLY_ORDERING are supported" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "GetSellingPartnerMetricsRequest": { + "required": [ + "marketplaceId", + "programTypes", + "timeInterval", + "timePeriodType" + ], + "type": "object", + "properties": { + "aggregationFrequency": { + "$ref": "#\/components\/schemas\/AggregationFrequency" + }, + "timeInterval": { + "$ref": "#\/components\/schemas\/TimeInterval" + }, + "metrics": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "The list of metrics requested. If no metric value is provided, data for all of the metrics will be returned.", + "items": { + "$ref": "#\/components\/schemas\/Metric" + } + }, + "timePeriodType": { + "$ref": "#\/components\/schemas\/TimePeriodType" + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "programTypes": { + "$ref": "#\/components\/schemas\/ProgramTypes" + } + }, + "description": "The request body for the `getSellingPartnerMetrics` operation." + }, + "ListOfferMetricsRequest": { + "required": [ + "filters", + "pagination" + ], + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/ListOfferMetricsRequestPagination" + }, + "sort": { + "$ref": "#\/components\/schemas\/ListOfferMetricsRequestSort" + }, + "filters": { + "$ref": "#\/components\/schemas\/ListOfferMetricsRequestFilters" + } + }, + "description": "The request body for the `listOfferMetrics` operation." + }, + "ListOffersRequest": { + "required": [ + "filters", + "pagination" + ], + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/ListOffersRequestPagination" + }, + "filters": { + "$ref": "#\/components\/schemas\/ListOffersRequestFilters" + }, + "sort": { + "$ref": "#\/components\/schemas\/ListOffersRequestSort" + } + }, + "description": "The request body for the `listOffers` operation." + }, + "EligibilityStatus": { + "type": "string", + "description": "The current eligibility status of an offer.", + "enum": [ + "ELIGIBLE", + "INELIGIBLE", + "SUSPENDED", + "REPLENISHMENT_ONLY_ORDERING" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ELIGIBLE", + "description": "The offer is able to fulfill current subscriptions and add new subscriptions." + }, + { + "value": "INELIGIBLE", + "description": "The offer will not be able to add new subscriptions and existing subscriptions will be cancelled." + }, + { + "value": "SUSPENDED", + "description": "The offer will not be able to add new subscriptions but existing subscriptions will be fulfilled." + }, + { + "value": "REPLENISHMENT_ONLY_ORDERING", + "description": "The offer will not be able to add new subscriptions but existing subscriptions will be fulfilled. This eligibility status also blocks one-time purchases to preserve inventory for existing subscriptions." + } + ] + }, + "Preference": { + "type": "object", + "properties": { + "autoEnrollment": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "Filters the results to only include offers with the auto-enrollment preference specified.", + "items": { + "$ref": "#\/components\/schemas\/AutoEnrollmentPreference" + } + } + }, + "description": "Offer preferences that you can include in the result filter criteria." + }, + "Promotion": { + "type": "object", + "properties": { + "sellingPartnerFundedBaseDiscount": { + "$ref": "#\/components\/schemas\/DiscountFunding" + }, + "sellingPartnerFundedTieredDiscount": { + "$ref": "#\/components\/schemas\/DiscountFunding" + }, + "amazonFundedBaseDiscount": { + "$ref": "#\/components\/schemas\/DiscountFunding" + }, + "amazonFundedTieredDiscount": { + "$ref": "#\/components\/schemas\/DiscountFunding" + } + }, + "description": "Offer promotions to include in the result filter criteria." + }, + "DiscountFunding": { + "type": "object", + "properties": { + "percentage": { + "maxItems": 10, + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "Filters the results to only include offers with the percentage specified.", + "items": { + "maximum": 100, + "minimum": 0, + "type": "number", + "format": "int64" + } + } + }, + "description": "The discount funding on the offer." + }, + "OfferProgramConfiguration": { + "type": "object", + "properties": { + "preferences": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPreferences" + }, + "promotions": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPromotions" + }, + "enrollmentMethod": { + "$ref": "#\/components\/schemas\/EnrollmentMethod" + } + }, + "description": "The offer program configuration contains a set of program properties for an offer." + }, + "OfferProgramConfigurationPreferences": { + "type": "object", + "properties": { + "autoEnrollment": { + "$ref": "#\/components\/schemas\/AutoEnrollmentPreference" + } + }, + "description": "An object which contains the preferences applied to the offer." + }, + "OfferProgramConfigurationPromotions": { + "type": "object", + "properties": { + "sellingPartnerFundedBaseDiscount": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPromotionsDiscountFunding" + }, + "sellingPartnerFundedTieredDiscount": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPromotionsDiscountFunding" + }, + "amazonFundedBaseDiscount": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPromotionsDiscountFunding" + }, + "amazonFundedTieredDiscount": { + "$ref": "#\/components\/schemas\/OfferProgramConfigurationPromotionsDiscountFunding" + } + }, + "description": "An object which represents all promotions applied to an offer." + }, + "OfferProgramConfigurationPromotionsDiscountFunding": { + "type": "object", + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number", + "description": "The percentage discount on the offer.", + "format": "int64" + } + }, + "description": "A promotional percentage discount applied to the offer." + }, + "ListOfferMetricsRequestPagination": { + "required": [ + "limit", + "offset" + ], + "type": "object", + "properties": { + "limit": { + "maximum": 500, + "minimum": 1, + "type": "integer", + "description": "The maximum number of results to return in the response.", + "format": "int64" + }, + "offset": { + "maximum": 9000, + "minimum": 0, + "type": "integer", + "description": "The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0.", + "format": "int64" + } + }, + "description": "Use these parameters to paginate through the response." + }, + "AutoEnrollmentPreference": { + "type": "string", + "description": "The auto-enrollment preference indicates whether the offer is opted-in to or opted-out of Amazon's auto-enrollment feature.", + "enum": [ + "OPTED_IN", + "OPTED_OUT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "OPTED_IN", + "description": "The offer is opted-in to the auto-enrollment program." + }, + { + "value": "OPTED_OUT", + "description": "The offer is opted-out to the auto-enrollment program." + } + ] + }, + "ProgramTypes": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "A list of replenishment program types.", + "items": { + "$ref": "#\/components\/schemas\/ProgramType" + } + }, + "ProgramType": { + "type": "string", + "description": "The replenishment program type.", + "enum": [ + "SUBSCRIBE_AND_SAVE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SUBSCRIBE_AND_SAVE", + "description": "Subscribe And Save Program." + } + ] + }, + "EnrollmentMethod": { + "type": "string", + "description": "The enrollment method used to enroll the offer into the program.", + "enum": [ + "MANUAL", + "AUTOMATIC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MANUAL", + "description": "Offer was manually enrolled in the program." + }, + { + "value": "AUTOMATIC", + "description": "Offer was automatically enrolled in the program." + } + ] + }, + "ListOfferMetricsRequestFilters": { + "required": [ + "marketplaceId", + "programTypes", + "timeInterval", + "timePeriodType" + ], + "type": "object", + "properties": { + "aggregationFrequency": { + "$ref": "#\/components\/schemas\/AggregationFrequency" + }, + "timeInterval": { + "$ref": "#\/components\/schemas\/TimeInterval" + }, + "timePeriodType": { + "$ref": "#\/components\/schemas\/TimePeriodType" + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "programTypes": { + "$ref": "#\/components\/schemas\/ProgramTypes" + }, + "asins": { + "maxItems": 20, + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "A list of Amazon Standard Identification Numbers (ASINs).", + "items": { + "type": "string", + "description": "Amazon Standard Identification Number." + } + } + }, + "description": "Use these parameters to filter results. Any result must match all provided parameters. For any parameter that is an array, the result must match at least one element in the provided array." + }, + "ListOfferMetricsRequestSort": { + "required": [ + "key", + "order" + ], + "type": "object", + "properties": { + "order": { + "$ref": "#\/components\/schemas\/SortOrder" + }, + "key": { + "$ref": "#\/components\/schemas\/ListOfferMetricsSortKey" + } + }, + "description": "Use these parameters to sort the response." + }, + "ListOfferMetricsSortKey": { + "type": "string", + "description": "The attribute to use to sort the results.", + "enum": [ + "SHIPPED_SUBSCRIPTION_UNITS", + "TOTAL_SUBSCRIPTIONS_REVENUE", + "ACTIVE_SUBSCRIPTIONS", + "NEXT_90DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "NEXT_60DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "NEXT_30DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "NEXT_90DAYS_TOTAL_SUBSCRIPTIONS_REVENUE", + "NEXT_60DAYS_TOTAL_SUBSCRIPTIONS_REVENUE", + "NEXT_30DAYS_TOTAL_SUBSCRIPTIONS_REVENUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPPED_SUBSCRIPTION_UNITS", + "description": "The number of units shipped to the subscribers over a period of time. Applicable only for the PERFORMANCE timePeriodType." + }, + { + "value": "TOTAL_SUBSCRIPTIONS_REVENUE", + "description": "The revenue generated from subscriptions over a period of time. Applicable only for the PERFORMANCE timePeriodType." + }, + { + "value": "ACTIVE_SUBSCRIPTIONS", + "description": "The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType." + }, + { + "value": "NEXT_90DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "description": "The forecasted shipped subscription units for the next 90 days. Applicable only for the FORECAST timePeriodType." + }, + { + "value": "NEXT_60DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "description": "The forecasted shipped subscription units for the next 60 days. Applicable only for the FORECAST timePeriodType." + }, + { + "value": "NEXT_30DAYS_SHIPPED_SUBSCRIPTION_UNITS", + "description": "The forecasted shipped subscription units for the next 30 days. Applicable only for the FORECAST timePeriodType." + }, + { + "value": "NEXT_90DAYS_TOTAL_SUBSCRIPTIONS_REVENUE", + "description": "The forecasted total subscription revenue for the next 90 days. Applicable only for the FORECAST timePeriodType." + }, + { + "value": "NEXT_60DAYS_TOTAL_SUBSCRIPTIONS_REVENUE", + "description": "The forecasted total subscription revenue for the next 60 days. Applicable only for the FORECAST timePeriodType." + }, + { + "value": "NEXT_30DAYS_TOTAL_SUBSCRIPTIONS_REVENUE", + "description": "The forecasted total subscription revenue for the next 30 days. Applicable only for the FORECAST timePeriodType." + } + ] + }, + "ListOffersRequestPagination": { + "required": [ + "limit", + "offset" + ], + "type": "object", + "properties": { + "limit": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "description": "The maximum number of results to return in the response.", + "format": "int64" + }, + "offset": { + "maximum": 9000, + "minimum": 0, + "type": "integer", + "description": "The offset from which to retrieve the number of results specified by the `limit` value. The first result is at offset 0.", + "format": "int64" + } + }, + "description": "Use these parameters to paginate through the response." + }, + "ListOffersRequestFilters": { + "required": [ + "marketplaceId", + "programTypes" + ], + "type": "object", + "properties": { + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "skus": { + "maxItems": 20, + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "A list of SKUs to filter. This filter is only supported for sellers and not for vendors.", + "items": { + "type": "string", + "description": "Sku." + } + }, + "asins": { + "maxItems": 20, + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "A list of Amazon Standard Identification Numbers (ASINs).", + "items": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN)." + } + }, + "eligibilities": { + "minItems": 1, + "uniqueItems": true, + "type": "array", + "description": "A list of eligibilities associated with an offer.", + "items": { + "$ref": "#\/components\/schemas\/EligibilityStatus" + } + }, + "preferences": { + "$ref": "#\/components\/schemas\/Preference" + }, + "promotions": { + "$ref": "#\/components\/schemas\/Promotion" + }, + "programTypes": { + "$ref": "#\/components\/schemas\/ProgramTypes" + } + }, + "description": "Use these parameters to filter results. Any result must match all of the provided parameters. For any parameter that is an array, the result must match at least one element in the provided array." + }, + "ListOffersRequestSort": { + "required": [ + "key", + "order" + ], + "type": "object", + "properties": { + "order": { + "$ref": "#\/components\/schemas\/SortOrder" + }, + "key": { + "$ref": "#\/components\/schemas\/ListOffersSortKey" + } + }, + "description": "Use these parameters to sort the response." + }, + "ListOffersSortKey": { + "type": "string", + "description": "The attribute to use to sort the results.", + "enum": [ + "ASIN", + "SELLING_PARTNER_FUNDED_BASE_DISCOUNT_PERCENTAGE", + "SELLING_PARTNER_FUNDED_TIERED_DISCOUNT_PERCENTAGE", + "AMAZON_FUNDED_BASE_DISCOUNT_PERCENTAGE", + "AMAZON_FUNDED_TIERED_DISCOUNT_PERCENTAGE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASIN", + "description": "Sort the offers on the Amazon Standard Identification Number (ASIN)." + }, + { + "value": "SELLING_PARTNER_FUNDED_BASE_DISCOUNT_PERCENTAGE", + "description": "Sort the offers on the base discount percentage set by the selling partner on the offer." + }, + { + "value": "SELLING_PARTNER_FUNDED_TIERED_DISCOUNT_PERCENTAGE", + "description": "Sort the offers on the tiered discount percentage set by the selling partner on the offer." + }, + { + "value": "AMAZON_FUNDED_BASE_DISCOUNT_PERCENTAGE", + "description": "Sort the offers on the base discount percentage set by Amazon on the offer." + }, + { + "value": "AMAZON_FUNDED_TIERED_DISCOUNT_PERCENTAGE", + "description": "Sort the offers on the tiered discount percentage set by Amazon on the offer." + } + ] + }, + "MarketplaceId": { + "type": "string", + "description": "The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/marketplace-ids) to find the identifier for the marketplace." + }, + "AggregationFrequency": { + "type": "string", + "description": "The time period used to group data in the response. Note that this is only valid for the performance time period type.", + "enum": [ + "WEEK", + "MONTH", + "QUARTER", + "YEAR" + ], + "x-docgen-enum-table-extension": [ + { + "value": "WEEK", + "description": "ISO Calendar Week." + }, + { + "value": "MONTH", + "description": "ISO Calendar Month." + }, + { + "value": "QUARTER", + "description": "ISO Calendar Quarter." + }, + { + "value": "YEAR", + "description": "ISO Calendar Year." + } + ] + }, + "TimeInterval": { + "required": [ + "endDate", + "startDate" + ], + "type": "object", + "properties": { + "startDate": { + "type": "string", + "description": "When this object is used as a request parameter, the specified startDate is adjusted based on the aggregation frequency.\n\n* For WEEK the metric is computed from the first day of the week (that is, Sunday based on ISO 8601) that contains the startDate.\n* For MONTH the metric is computed from the first day of the month that contains the startDate.\n* For QUARTER the metric is computed from the first day of the quarter that contains the startDate.\n* For YEAR the metric is computed from the first day of the year that contains the startDate.", + "format": "date-time" + }, + "endDate": { + "type": "string", + "description": "When this object is used as a request parameter, the specified endDate is adjusted based on the aggregation frequency.\n\n* For WEEK the metric is computed up to the last day of the week (that is, Sunday based on ISO 8601) that contains the endDate.\n* For MONTH, the metric is computed up to the last day that contains the endDate.\n* For QUARTER the metric is computed up to the last day of the quarter that contains the endDate.\n* For YEAR the metric is computed up to the last day of the year that contains the endDate.\n Note: The end date may be adjusted to a lower value based on the data available in our system.", + "format": "date-time" + } + }, + "description": "A date-time interval in ISO 8601 format which is used to compute metrics. Only the date is required, but you must pass the complete date and time value. For example, November 11, 2022 should be passed as \"2022-11-07T00:00:00Z\". Note that only data for the trailing 2 years is supported.\n\n **Note**: The `listOfferMetrics` operation only supports a time interval which covers a single unit of the aggregation frequency. For example, for a MONTH aggregation frequency, the duration of the interval between the startDate and endDate can not be more than 1 month." + }, + "Metric": { + "type": "string", + "description": "The metric name and description.", + "enum": [ + "SHIPPED_SUBSCRIPTION_UNITS", + "TOTAL_SUBSCRIPTIONS_REVENUE", + "ACTIVE_SUBSCRIPTIONS", + "NOT_DELIVERED_DUE_TO_OOS", + "SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPPED_SUBSCRIPTION_UNITS", + "description": "The number of units shipped to the subscribers over a period of time." + }, + { + "value": "TOTAL_SUBSCRIPTIONS_REVENUE", + "description": "The revenue generated from subscriptions over a period of time." + }, + { + "value": "ACTIVE_SUBSCRIPTIONS", + "description": "The number of active subscriptions present at the end of the period." + }, + { + "value": "NOT_DELIVERED_DUE_TO_OOS", + "description": "The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock." + }, + { + "value": "SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE", + "description": "The average revenue per subscriber and non-subscriber over the past 12 months for sellers and 6 months for vendors." + } + ] + }, + "SortOrder": { + "type": "string", + "description": "The sort order.", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort the results in ascending order." + }, + { + "value": "DESC", + "description": "Sort the results in descending order." + } + ] + }, + "TimePeriodType": { + "type": "string", + "description": "The time period type that determines whether the metrics requested are backward-looking (performance) or forward-looking (forecast).", + "enum": [ + "PERFORMANCE", + "FORECAST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PERFORMANCE", + "description": "Indicates past performance metrics." + }, + { + "value": "FORECAST", + "description": "Indicates forecasted metrics. Only TOTAL_SUBSCRIPTIONS_REVENUE and SHIPPED_SUBSCRIPTION_UNITS are supported. Forecast data is supported for sellers but not for vendors." + } + ] + }, + "GetSellingPartnerMetricsResponse": { + "type": "object", + "properties": { + "metrics": { + "type": "array", + "description": "A list of metrics data for the selling partner.", + "items": { + "$ref": "#\/components\/schemas\/GetSellingPartnerMetricsResponseMetric" + } + } + }, + "description": "The response schema for the `getSellingPartnerMetrics` operation." + }, + "GetSellingPartnerMetricsResponseMetric": { + "type": "object", + "properties": { + "notDeliveredDueToOOS": { + "maximum": 100, + "minimum": 0, + "type": "number", + "description": "The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "totalSubscriptionsRevenue": { + "minimum": 0, + "type": "number", + "description": "The revenue generated from subscriptions over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType.", + "format": "double" + }, + "shippedSubscriptionUnits": { + "minimum": 0, + "type": "number", + "description": "The number of units shipped to the subscribers over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType.", + "format": "int64" + }, + "activeSubscriptions": { + "minimum": 0, + "type": "number", + "description": "The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType.", + "format": "int64" + }, + "subscriberAverageRevenue": { + "minimum": 0, + "type": "number", + "description": "The average revenue per subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "nonSubscriberAverageRevenue": { + "minimum": 0, + "type": "number", + "description": "The average revenue per non-subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "timeInterval": { + "$ref": "#\/components\/schemas\/TimeInterval" + }, + "currencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + } + }, + "description": "An object which contains metric data for a selling partner." + }, + "ListOfferMetricsResponse": { + "type": "object", + "properties": { + "offers": { + "type": "array", + "description": "A list of offers and associated metrics.", + "items": { + "$ref": "#\/components\/schemas\/ListOfferMetricsResponseOffer" + } + }, + "pagination": { + "$ref": "#\/components\/schemas\/PaginationResponse" + } + }, + "description": "The response schema for the `listOfferMetrics` operation." + }, + "ListOffersResponse": { + "type": "object", + "properties": { + "offers": { + "type": "array", + "description": "A list of offers.", + "items": { + "$ref": "#\/components\/schemas\/ListOffersResponseOffer" + } + }, + "pagination": { + "$ref": "#\/components\/schemas\/PaginationResponse" + } + }, + "description": "The response schema for the `listOffers` operation." + }, + "ListOffersResponseOffer": { + "type": "object", + "properties": { + "sku": { + "type": "string", + "description": "The SKU. This property is only supported for sellers and not for vendors." + }, + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + "marketplaceId": { + "$ref": "#\/components\/schemas\/MarketplaceId" + }, + "eligibility": { + "$ref": "#\/components\/schemas\/EligibilityStatus" + }, + "offerProgramConfiguration": { + "$ref": "#\/components\/schemas\/OfferProgramConfiguration" + }, + "programType": { + "$ref": "#\/components\/schemas\/ProgramType" + }, + "vendorCodes": { + "type": "array", + "description": "A list of vendor codes associated with the offer.", + "items": { + "type": "string", + "description": "An alphanumeric code that represents a relationship between Amazon and a vendor." + } + } + }, + "description": "An object which contains details about an offer." + }, + "PaginationResponse": { + "type": "object", + "properties": { + "totalResults": { + "minimum": 0, + "type": "integer", + "description": "Total number of results matching the given filter criteria.", + "format": "int64" + } + }, + "description": "Use these parameters to paginate through the response." + }, + "ListOfferMetricsResponseOffer": { + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN)." + }, + "notDeliveredDueToOOS": { + "maximum": 100, + "minimum": 0, + "type": "number", + "description": "The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "totalSubscriptionsRevenue": { + "minimum": 0, + "type": "number", + "description": "The revenue generated from subscriptions over a period of time. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "shippedSubscriptionUnits": { + "minimum": 0, + "type": "number", + "description": "The number of units shipped to the subscribers over a period of time. Applicable only for the PERFORMANCE timePeriodType.", + "format": "int64" + }, + "activeSubscriptions": { + "minimum": 0, + "type": "number", + "description": "The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType.", + "format": "int64" + }, + "revenuePenetration": { + "maximum": 100, + "minimum": 0, + "type": "number", + "description": "The percentage of total program revenue out of total product revenue. Applicable only for the PERFORMANCE timePeriodType.", + "format": "double" + }, + "next30DayTotalSubscriptionsRevenue": { + "minimum": 0, + "type": "number", + "description": "The forecasted total subscription revenue for the next 30 days. Applicable only for the FORECAST timePeriodType.", + "format": "double" + }, + "next60DayTotalSubscriptionsRevenue": { + "minimum": 0, + "type": "number", + "description": "The forecasted total subscription revenue for the next 60 days. Applicable only for the FORECAST timePeriodType.", + "format": "double" + }, + "next90DayTotalSubscriptionsRevenue": { + "minimum": 0, + "type": "number", + "description": "The forecasted total subscription revenue for the next 90 days. Applicable only for the FORECAST timePeriodType.", + "format": "double" + }, + "next30DayShippedSubscriptionUnits": { + "minimum": 0, + "type": "number", + "description": "The forecasted shipped subscription units for the next 30 days. Applicable only for the FORECAST timePeriodType.", + "format": "int64" + }, + "next60DayShippedSubscriptionUnits": { + "minimum": 0, + "type": "number", + "description": "The forecasted shipped subscription units for the next 60 days. Applicable only for the FORECAST timePeriodType.", + "format": "int64" + }, + "next90DayShippedSubscriptionUnits": { + "minimum": 0, + "type": "number", + "description": "The forecasted shipped subscription units for the next 90 days. Applicable only for the FORECAST timePeriodType.", + "format": "int64" + }, + "timeInterval": { + "$ref": "#\/components\/schemas\/TimeInterval" + }, + "currencyCode": { + "type": "string", + "description": "The currency code in ISO 4217 format." + } + }, + "description": "An object which contains offer metrics." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/reports/v2021-06-30.json b/resources/models/seller/reports/v2021-06-30.json new file mode 100644 index 000000000..43edddca3 --- /dev/null +++ b/resources/models/seller/reports/v2021-06-30.json @@ -0,0 +1,3065 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Reports", + "description": "The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-06-30" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/reports\/2021-06-30\/reports": { + "get": { + "tags": [ + "ReportsV20210630" + ], + "description": "Returns report details for the reports that match the filters that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getReports", + "parameters": [ + { + "name": "reportTypes", + "in": "query", + "description": "A list of report types used to filter reports. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 10, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "processingStatuses", + "in": "query", + "description": "A list of processing statuses used to filter reports.", + "style": "form", + "explode": false, + "schema": { + "minItems": 1, + "type": "array", + "items": { + "type": "string", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The report was cancelled. There are two ways a report can be cancelled: an explicit cancellation request before the report starts processing, or an automatic cancellation if there is no data to return." + }, + { + "value": "DONE", + "description": "The report has completed processing." + }, + { + "value": "FATAL", + "description": "The report was aborted due to a fatal error." + }, + { + "value": "IN_PROGRESS", + "description": "The report is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The report has not yet started processing. It may be waiting for another IN_PROGRESS report." + } + ] + } + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 10, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The maximum number of reports to return in a single call.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "default": 10 + } + }, + { + "name": "createdSince", + "in": "query", + "description": "The earliest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is 90 days ago. Reports are retained for a maximum of 90 days.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdUntil", + "in": "query", + "description": "The latest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is now.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "nextToken", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetReportsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportTypes": { + "value": [ + "FEE_DISCOUNTS_REPORT", + "GET_AFN_INVENTORY_DATA" + ] + }, + "processingStatuses": { + "value": [ + "IN_QUEUE", + "IN_PROGRESS" + ] + } + } + }, + "response": { + "nextToken": "VGhpcyB0b2tlbiBpcyBvcGFxdWUgYW5kIGludGVudGlvbmFsbHkgb2JmdXNjYXRlZA==", + "reports": [ + { + "reportId": "ReportId1", + "reportType": "FEE_DISCOUNTS_REPORT", + "dataStartTime": "2019-12-11T13:47:20.677Z", + "dataEndTime": "2019-12-12T13:47:20.677Z", + "createdTime": "2019-12-10T13:47:20.677Z", + "processingStatus": "IN_PROGRESS", + "processingStartTime": "2019-12-10T13:47:20.677Z", + "processingEndTime": "2019-12-12T13:47:20.677Z" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportTypes": { + "value": [ + "FEE_DISCOUNTS_REPORT", + "GET_AFN_INVENTORY_DATA" + ] + }, + "processingStatuses": { + "value": [ + "BAD_VALUE", + "IN_PROGRESS" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input in processing status" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "ReportsV20210630" + ], + "description": "Creates a report.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createReport", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReportSpecification" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReportResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "reportType": "GET_MERCHANT_LISTINGS_ALL_DATA", + "dataStartTime": "2019-12-10T20:11:24.000Z", + "marketplaceIds": [ + "A1PA6795UKMFR9", + "ATVPDKIKX0DER" + ] + } + } + } + }, + "response": { + "reportId": "ID323" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "reportType": "BAD_FEE_DISCOUNTS_REPORT", + "dataStartTime": "2019-12-10T20:11:24.000Z", + "marketplaceIds": [ + "A1PA6795UKMFR9", + "ATVPDKIKX0DER" + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/reports\/2021-06-30\/reports\/{reportId}": { + "get": { + "tags": [ + "ReportsV20210630" + ], + "description": "Returns report details (including the reportDocumentId, if available) for the report that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 2 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getReport", + "parameters": [ + { + "name": "reportId", + "in": "path", + "description": "The identifier for the report. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Report" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportId": { + "value": "ID323" + } + } + }, + "response": { + "reportId": "ReportId1", + "reportType": "FEE_DISCOUNTS_REPORT", + "dataStartTime": "2019-12-11T13:47:20.677Z", + "dataEndTime": "2019-12-12T13:47:20.677Z", + "createdTime": "2019-12-10T13:47:20.677Z", + "processingStatus": "IN_PROGRESS", + "processingStartTime": "2019-12-10T13:47:20.677Z", + "processingEndTime": "2019-12-12T13:47:20.677Z" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportId": { + "value": "badReportId1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "delete": { + "tags": [ + "ReportsV20210630" + ], + "description": "Cancels the report that you specify. Only reports with processingStatus=IN_QUEUE can be cancelled. Cancelled reports are returned in subsequent calls to the getReport and getReports operations.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelReport", + "parameters": [ + { + "name": "reportId", + "in": "path", + "description": "The identifier for the report. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportId": { + "value": "ID" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/reports\/2021-06-30\/schedules": { + "get": { + "tags": [ + "ReportsV20210630" + ], + "description": "Returns report schedule details that match the filters that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getReportSchedules", + "parameters": [ + { + "name": "reportTypes", + "in": "query", + "description": "A list of report types used to filter report schedules. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 10, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ReportScheduleList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportTypes": { + "value": [ + "FEE_DISCOUNTS_REPORT", + "GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA" + ] + } + } + }, + "response": { + "reportSchedules": [ + { + "reportType": "FEE_DISCOUNTS_REPORT", + "marketplaceIds": [ + "ATVPDKIKX0DER" + ], + "reportScheduleId": "ID1", + "period": "PT5M", + "nextReportCreationTime": "2019-12-11T15:03:44.973Z" + }, + { + "reportType": "GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA", + "reportScheduleId": "ID2", + "period": "PT5M", + "nextReportCreationTime": "2019-12-11T15:03:44.973Z" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportTypes": { + "value": [ + "BAD_FEE_DISCOUNTS_REPORT", + "BAD_GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA" + ] + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "ReportsV20210630" + ], + "description": "Creates a report schedule. If a report schedule with the same report type and marketplace IDs already exists, it will be cancelled and replaced with this one.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createReportSchedule", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReportScheduleSpecification" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReportScheduleResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "reportType": "FEE_DISCOUNTS_REPORT", + "period": "PT5M", + "nextReportCreationTime": "2019-12-10T20:11:24.000Z", + "marketplaceIds": [ + "A1PA6795UKMFR9", + "ATVPDKIKX0DER" + ] + } + } + } + }, + "response": { + "reportScheduleId": "ID323" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "reportType": "BAD_FEE_DISCOUNTS_REPORT", + "period": "PT5M", + "nextReportCreationTime": "2019-12-10T20:11:24.000Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/reports\/2021-06-30\/schedules\/{reportScheduleId}": { + "get": { + "tags": [ + "ReportsV20210630" + ], + "description": "Returns report schedule details for the report schedule that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getReportSchedule", + "parameters": [ + { + "name": "reportScheduleId", + "in": "path", + "description": "The identifier for the report schedule. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ReportSchedule" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportScheduleId": { + "value": "ID323" + } + } + }, + "response": { + "reportScheduleId": "ReportScheduleId1", + "reportType": "FEE_DISCOUNTS_REPORT", + "period": "PT5M", + "nextReportCreationTime": "2019-12-12T13:47:20.677Z" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportScheduleId": { + "value": "badReportId1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "delete": { + "tags": [ + "ReportsV20210630" + ], + "description": "Cancels the report schedule that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0222 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelReportSchedule", + "parameters": [ + { + "name": "reportScheduleId", + "in": "path", + "description": "The identifier for the report schedule. This identifier is unique only in combination with a seller ID.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": {}, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportScheduleId": { + "value": "ID" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/reports\/2021-06-30\/documents\/{reportDocumentId}": { + "get": { + "tags": [ + "ReportsV20210630" + ], + "description": "Returns the information required for retrieving a report document's contents.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.0167 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getReportDocument", + "parameters": [ + { + "name": "reportDocumentId", + "in": "path", + "description": "The identifier for the report document.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "reportType", + "in": "query", + "description": "The report type of the report document.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ReportDocument" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportDocumentId": { + "value": "0356cf79-b8b0-4226-b4b9-0ee058ea5760" + } + } + }, + "response": { + "reportDocumentId": "0356cf79-b8b0-4226-b4b9-0ee058ea5760", + "url": "https:\/\/d34o8swod1owfl.cloudfront.net\/Report_47700__GET_MERCHANT_LISTINGS_ALL_DATA_.txt" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reportDocumentId": { + "value": "badDocumentId1" + } + } + }, + "response": { + "errors": [ + { + "code": "400", + "message": "Invalid input", + "details": "Invalid input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "Report": { + "required": [ + "createdTime", + "processingStatus", + "reportId", + "reportType" + ], + "type": "object", + "properties": { + "marketplaceIds": { + "type": "array", + "description": "A list of marketplace identifiers for the report.", + "items": { + "type": "string" + } + }, + "reportId": { + "type": "string", + "description": "The identifier for the report. This identifier is unique only in combination with a seller ID." + }, + "reportType": { + "type": "string", + "description": "The report type. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information." + }, + "dataStartTime": { + "type": "string", + "description": "The start of a date and time range used for selecting the data to report.", + "format": "date-time" + }, + "dataEndTime": { + "type": "string", + "description": "The end of a date and time range used for selecting the data to report.", + "format": "date-time" + }, + "reportScheduleId": { + "type": "string", + "description": "The identifier of the report schedule that created this report (if any). This identifier is unique only in combination with a seller ID." + }, + "createdTime": { + "type": "string", + "description": "The date and time when the report was created.", + "format": "date-time" + }, + "processingStatus": { + "type": "string", + "description": "The processing status of the report.", + "enum": [ + "CANCELLED", + "DONE", + "FATAL", + "IN_PROGRESS", + "IN_QUEUE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CANCELLED", + "description": "The report was cancelled. There are two ways a report can be cancelled: an explicit cancellation request before the report starts processing, or an automatic cancellation if there is no data to return." + }, + { + "value": "DONE", + "description": "The report has completed processing." + }, + { + "value": "FATAL", + "description": "The report was aborted due to a fatal error." + }, + { + "value": "IN_PROGRESS", + "description": "The report is being processed." + }, + { + "value": "IN_QUEUE", + "description": "The report has not yet started processing. It may be waiting for another IN_PROGRESS report." + } + ] + }, + "processingStartTime": { + "type": "string", + "description": "The date and time when the report processing started, in ISO 8601 date time format.", + "format": "date-time" + }, + "processingEndTime": { + "type": "string", + "description": "The date and time when the report processing completed, in ISO 8601 date time format.", + "format": "date-time" + }, + "reportDocumentId": { + "type": "string", + "description": "The identifier for the report document. Pass this into the getReportDocument operation to get the information you will need to retrieve the report document's contents." + } + }, + "description": "Detailed information about the report." + }, + "ReportList": { + "type": "array", + "description": "A list of reports.", + "items": { + "$ref": "#\/components\/schemas\/Report" + } + }, + "CreateReportScheduleSpecification": { + "required": [ + "marketplaceIds", + "period", + "reportType" + ], + "type": "object", + "properties": { + "reportType": { + "type": "string", + "description": "The report type. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information." + }, + "marketplaceIds": { + "maxItems": 25, + "minItems": 1, + "type": "array", + "description": "A list of marketplace identifiers for the report schedule.", + "items": { + "type": "string" + } + }, + "reportOptions": { + "$ref": "#\/components\/schemas\/ReportOptions" + }, + "period": { + "type": "string", + "description": "One of a set of predefined ISO 8601 periods that specifies how often a report should be created.", + "enum": [ + "PT5M", + "PT15M", + "PT30M", + "PT1H", + "PT2H", + "PT4H", + "PT8H", + "PT12H", + "P1D", + "P2D", + "P3D", + "PT84H", + "P7D", + "P14D", + "P15D", + "P18D", + "P30D", + "P1M" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PT5M", + "description": "5 minutes" + }, + { + "value": "PT15M", + "description": "15 minutes" + }, + { + "value": "PT30M", + "description": "30 minutes" + }, + { + "value": "PT1H", + "description": "1 hour" + }, + { + "value": "PT2H", + "description": "2 hours" + }, + { + "value": "PT4H", + "description": "4 hours" + }, + { + "value": "PT8H", + "description": "8 hours" + }, + { + "value": "PT12H", + "description": "12 hours" + }, + { + "value": "P1D", + "description": "1 day" + }, + { + "value": "P2D", + "description": "2 days" + }, + { + "value": "P3D", + "description": "3 days" + }, + { + "value": "PT84H", + "description": "84 hours" + }, + { + "value": "P7D", + "description": "7 days" + }, + { + "value": "P14D", + "description": "14 days" + }, + { + "value": "P15D", + "description": "15 days" + }, + { + "value": "P18D", + "description": "18 days" + }, + { + "value": "P30D", + "description": "30 days" + }, + { + "value": "P1M", + "description": "1 month" + } + ] + }, + "nextReportCreationTime": { + "type": "string", + "description": "The date and time when the schedule will create its next report, in ISO 8601 date time format.", + "format": "date-time" + } + } + }, + "CreateReportSpecification": { + "required": [ + "marketplaceIds", + "reportType" + ], + "type": "object", + "properties": { + "reportOptions": { + "$ref": "#\/components\/schemas\/ReportOptions" + }, + "reportType": { + "type": "string", + "description": "The report type. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information." + }, + "dataStartTime": { + "type": "string", + "description": "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.", + "format": "date-time" + }, + "dataEndTime": { + "type": "string", + "description": "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.", + "format": "date-time" + }, + "marketplaceIds": { + "maxItems": 25, + "minItems": 1, + "type": "array", + "description": "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.", + "items": { + "type": "string" + } + } + }, + "description": "Information required to create the report." + }, + "ReportOptions": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional information passed to reports. This varies by report type." + }, + "ReportSchedule": { + "required": [ + "period", + "reportScheduleId", + "reportType" + ], + "type": "object", + "properties": { + "reportScheduleId": { + "type": "string", + "description": "The identifier for the report schedule. This identifier is unique only in combination with a seller ID." + }, + "reportType": { + "type": "string", + "description": "The report type. Refer to [Report Type Values](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/report-type-values) for more information." + }, + "marketplaceIds": { + "type": "array", + "description": "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.", + "items": { + "type": "string" + } + }, + "reportOptions": { + "$ref": "#\/components\/schemas\/ReportOptions" + }, + "period": { + "type": "string", + "description": "An ISO 8601 period value that indicates how often a report should be created." + }, + "nextReportCreationTime": { + "type": "string", + "description": "The date and time when the schedule will create its next report, in ISO 8601 date time format.", + "format": "date-time" + } + }, + "description": "Detailed information about a report schedule." + }, + "ReportScheduleList": { + "required": [ + "reportSchedules" + ], + "type": "object", + "properties": { + "reportSchedules": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ReportSchedule" + } + } + }, + "description": "A list of report schedules." + }, + "CreateReportResponse": { + "required": [ + "reportId" + ], + "type": "object", + "properties": { + "reportId": { + "type": "string", + "description": "The identifier for the report. This identifier is unique only in combination with a seller ID." + } + }, + "description": "Response schema." + }, + "GetReportsResponse": { + "required": [ + "reports" + ], + "type": "object", + "properties": { + "reports": { + "$ref": "#\/components\/schemas\/ReportList" + }, + "nextToken": { + "type": "string", + "description": "Returned when the number of results exceeds pageSize. To get the next page of results, call getReports with this token as the only parameter." + } + }, + "description": "The response for the getReports operation." + }, + "CreateReportScheduleResponse": { + "required": [ + "reportScheduleId" + ], + "type": "object", + "properties": { + "reportScheduleId": { + "type": "string", + "description": "The identifier for the report schedule. This identifier is unique only in combination with a seller ID." + } + }, + "description": "Response schema." + }, + "ReportDocument": { + "required": [ + "reportDocumentId", + "url" + ], + "type": "object", + "properties": { + "reportDocumentId": { + "type": "string", + "description": "The identifier for the report document. This identifier is unique only in combination with a seller ID." + }, + "url": { + "type": "string", + "description": "A presigned URL for the report document. If `compressionAlgorithm` is not returned, you can download the report directly from this URL. This URL expires after 5 minutes." + }, + "compressionAlgorithm": { + "type": "string", + "description": "If the report document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the report when you download. Otherwise, you can download the report directly. Refer to [Step 2. Download the report](doc:reports-api-v2021-06-30-retrieve-a-report#step-2-download-the-report) in the use case guide, where sample code is provided.", + "enum": [ + "GZIP" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GZIP", + "description": "The gzip compression algorithm." + } + ] + } + }, + "description": "Information required for the report document." + } + } + }, + "x-original-swagger-version": "2.0" +} diff --git a/resources/models/seller/sales/v1.json b/resources/models/seller/sales/v1.json new file mode 100644 index 000000000..ebc6ca432 --- /dev/null +++ b/resources/models/seller/sales/v1.json @@ -0,0 +1,701 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Sales", + "description": "The Selling Partner API for Sales provides APIs related to sales performance.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/sales\/v1\/orderMetrics": { + "get": { + "tags": [ + "SalesV1" + ], + "description": "Returns aggregated order metrics for given interval, broken down by granularity, for given buyer type.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| .5 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrderMetrics", + "parameters": [ + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.\n\nFor example, ATVPDKIKX0DER indicates the US marketplace.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "interval", + "in": "query", + "description": "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": true, + "schema": { + "type": "string" + } + }, + { + "name": "granularityTimeZone", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "granularity", + "in": "query", + "description": "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\u2019t 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": true, + "schema": { + "type": "string", + "enum": [ + "Hour", + "Day", + "Week", + "Month", + "Year", + "Total" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Hour", + "description": "Hour" + }, + { + "value": "Day", + "description": "Day" + }, + { + "value": "Week", + "description": "Week" + }, + { + "value": "Month", + "description": "Month" + }, + { + "value": "Year", + "description": "Year" + }, + { + "value": "Total", + "description": "Total" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Hour", + "description": "Hour" + }, + { + "value": "Day", + "description": "Day" + }, + { + "value": "Week", + "description": "Week" + }, + { + "value": "Month", + "description": "Month" + }, + { + "value": "Year", + "description": "Year" + }, + { + "value": "Total", + "description": "Total" + } + ] + }, + { + "name": "buyerType", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "default": "All", + "enum": [ + "B2B", + "B2C", + "All" + ], + "x-docgen-enum-table-extension": [ + { + "value": "B2B", + "description": "Business to business." + }, + { + "value": "B2C", + "description": "Business to customer." + }, + { + "value": "All", + "description": "Business to business and business to customer." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "B2B", + "description": "Business to business." + }, + { + "value": "B2C", + "description": "Business to customer." + }, + { + "value": "All", + "description": "Business to business and business to customer." + } + ] + }, + { + "name": "fulfillmentNetwork", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "firstDayOfWeek", + "in": "query", + "description": "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.", + "schema": { + "type": "string", + "default": "Monday", + "enum": [ + "Monday", + "Sunday" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Monday", + "description": "Monday" + }, + { + "value": "Sunday", + "description": "Sunday" + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Monday", + "description": "Monday" + }, + { + "value": "Sunday", + "description": "Sunday" + } + ] + }, + { + "name": "asin", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + }, + { + "name": "sku", + "in": "query", + "description": "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.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OrderMetric action taken on the resource OrderMetrics.", + "headers": { + "x-amzn-RequestId": { + "description": "unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation..", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "granularity": { + "value": "Total" + } + } + }, + "response": { + "payload": [ + { + "interval": "2019-08-01T00:00-07:00--2018-08-03T00:00-07:00", + "unitCount": 2, + "orderItemCount": 2, + "orderCount": 2, + "averageUnitPrice": { + "amount": "12.5", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "25", + "currencyCode": "USD" + } + } + ] + } + }, + { + "request": { + "parameters": { + "granularity": { + "value": "Day" + } + } + }, + "response": { + "payload": [ + { + "interval": "2019-08-01T00:00-07:00--2018-08-02T00:00-07:00", + "unitCount": 1, + "orderItemCount": 1, + "orderCount": 1, + "averageUnitPrice": { + "amount": "22.95", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "22.95", + "currencyCode": "USD" + } + }, + { + "interval": "2019-08-02T00:00-07:00--2018-08-03T00:00-07:00", + "unitCount": 1, + "orderItemCount": 1, + "orderCount": 1, + "averageUnitPrice": { + "amount": "2.05", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "2.05", + "currencyCode": "USD" + } + } + ] + } + }, + { + "request": { + "parameters": { + "granularity": { + "value": "Total" + }, + "asin": { + "value": "B008OLKVEW" + } + } + }, + "response": { + "payload": [ + { + "interval": "2018-05-01T00:00-07:00--2018-05-03T00:00-07:00", + "unitCount": 1, + "orderItemCount": 1, + "orderCount": 1, + "averageUnitPrice": { + "amount": "22.95", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "22.95", + "currencyCode": "USD" + } + } + ] + } + }, + { + "request": { + "parameters": { + "granularity": { + "value": "Day" + }, + "asin": { + "value": "B008OLKVEW" + } + } + }, + "response": { + "payload": [ + { + "interval": "2018-05-01T00:00-07:00--2018-05-02T00:00-07:00", + "unitCount": 1, + "orderItemCount": 1, + "orderCount": 1, + "averageUnitPrice": { + "amount": "22.95", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "22.95", + "currencyCode": "USD" + } + }, + { + "interval": "2018-05-02T00:00-07:00--2018-05-03T00:00-07:00", + "unitCount": 0, + "orderItemCount": 0, + "orderCount": 0, + "averageUnitPrice": { + "amount": "0", + "currencyCode": "USD" + }, + "totalSales": { + "amount": "0", + "currencyCode": "USD" + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "415": { + "description": "The entity of the request is in a format not supported by the requested resource.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderMetricsResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetOrderMetricsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderMetricsList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrderMetrics operation." + }, + "OrderMetricsList": { + "type": "array", + "description": "A set of order metrics, each scoped to a particular time interval.", + "items": { + "$ref": "#\/components\/schemas\/OrderMetricsInterval" + } + }, + "OrderMetricsInterval": { + "required": [ + "averageUnitPrice", + "interval", + "orderCount", + "orderItemCount", + "totalSales", + "unitCount" + ], + "type": "object", + "properties": { + "interval": { + "type": "string", + "description": "The interval of time based on requested granularity (ex. Hour, Day, etc.) If this is the first or the last interval from the list, it might contain incomplete data if the requested interval doesn't align with the requested granularity (ex. request interval 2018-09-01T02:00:00Z--2018-09-04T19:00:00Z and granularity day will result in Sept 1st UTC day and Sept 4th UTC days having partial data)." + }, + "unitCount": { + "type": "integer", + "description": "The number of units in orders based on the specified filters." + }, + "orderItemCount": { + "type": "integer", + "description": "The number of order items based on the specified filters." + }, + "orderCount": { + "type": "integer", + "description": "The number of orders based on the specified filters." + }, + "averageUnitPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "totalSales": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Contains order metrics." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Money": { + "required": [ + "amount", + "currencyCode" + ], + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three-digit currency code. In ISO 4217 format." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The currency type and the amount." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/sellers/v1.json b/resources/models/seller/sellers/v1.json new file mode 100644 index 000000000..e914bbe43 --- /dev/null +++ b/resources/models/seller/sellers/v1.json @@ -0,0 +1,395 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Sellers", + "description": "The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/sellers\/v1\/marketplaceParticipations": { + "get": { + "tags": [ + "SellersV1" + ], + "description": "Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.016 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getMarketplaceParticipations", + "responses": { + "200": { + "description": "Marketplace participations successfully retrieved.", + "headers": { + "x-amzn-RequestId": { + "description": "unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": [ + { + "marketplace": { + "id": "ATVPDKIKX0DER", + "countryCode": "US", + "name": "Amazon.com", + "defaultCurrencyCode": "USD", + "defaultLanguageCode": "en_US", + "domainName": "www.amazon.com" + }, + "participation": { + "isParticipating": true, + "hasSuspendedListings": false + } + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "415": { + "description": "The entity of the request is in a format not supported by the requested resource.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetMarketplaceParticipationsResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "MarketplaceParticipation": { + "required": [ + "marketplace", + "participation" + ], + "type": "object", + "properties": { + "marketplace": { + "$ref": "#\/components\/schemas\/Marketplace" + }, + "participation": { + "$ref": "#\/components\/schemas\/Participation" + } + } + }, + "MarketplaceParticipationList": { + "type": "array", + "description": "List of marketplace participations.", + "items": { + "$ref": "#\/components\/schemas\/MarketplaceParticipation" + } + }, + "GetMarketplaceParticipationsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/MarketplaceParticipationList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getMarketplaceParticipations operation." + }, + "Marketplace": { + "required": [ + "countryCode", + "defaultCurrencyCode", + "defaultLanguageCode", + "domainName", + "id", + "name" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The encrypted marketplace value." + }, + "name": { + "type": "string", + "description": "Marketplace name." + }, + "countryCode": { + "pattern": "^([A-Z]{2})$", + "type": "string", + "description": "The ISO 3166-1 alpha-2 format country code of the marketplace." + }, + "defaultCurrencyCode": { + "type": "string", + "description": "The ISO 4217 format currency code of the marketplace." + }, + "defaultLanguageCode": { + "type": "string", + "description": "The ISO 639-1 format language code of the marketplace." + }, + "domainName": { + "type": "string", + "description": "The domain name of the marketplace." + } + }, + "description": "Detailed information about an Amazon market where a seller can list items for sale and customers can view and purchase items." + }, + "Participation": { + "required": [ + "hasSuspendedListings", + "isParticipating" + ], + "type": "object", + "properties": { + "isParticipating": { + "type": "boolean" + }, + "hasSuspendedListings": { + "type": "boolean", + "description": "Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False." + } + }, + "description": "Detailed information that is specific to a seller in a Marketplace." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/services/v1.json b/resources/models/seller/services/v1.json new file mode 100644 index 000000000..57b4f2d3f --- /dev/null +++ b/resources/models/seller/services/v1.json @@ -0,0 +1,10536 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Services", + "description": "With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/service\/v1\/serviceJobs\/{serviceJobId}": { + "get": { + "tags": [ + "ServicesV1" + ], + "description": "Gets details of service job indicated by the provided `serviceJobID`.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 20 | 40 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getServiceJobByServiceJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "A service job identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": {} + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + } + } + }, + "response": { + "payload": {} + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobByServiceJobIdResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/cancellations": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Cancels the service job indicated by the service job identifier specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelServiceJobByServiceJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon defined service job identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "cancellationReasonCode", + "in": "query", + "description": "A cancel reason code that specifies the reason for cancelling a service job.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "pattern": "^[A-Z0-9_]*$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "V1" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "cancellationReasonCode": { + "value": "V1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "NULL" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [cancellationReasonCode]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "cancellationReasonCode": { + "value": "NULL" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId, cancellationReasonCode]", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "V1" + } + } + }, + "response": { + "errors": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource.Please check your input again", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "completedJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "V1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Job with jobId completedJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut and jobStatus COMPLETED cannot be cancelled", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "INV1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Received invalid input reason code IV1 for jobId validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + }, + "cancellationReasonCode": { + "value": "V1" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Job not found for jobId invalidJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelServiceJobByServiceJobIdResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/completions": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Completes the service job indicated by the service job identifier specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "completeServiceJobByServiceJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon defined service job identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + } + } + }, + "response": { + "errors": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource.Please check your input again", + "details": "" + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "cancelledJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Operation not allowed on job with jobId : cancelledJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut and jobState : CANCELLED", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Job not found for jobId invalidJobId-48b6d5a3-b708-dbe9-038d-dd95e8d74iut", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CompleteServiceJobByServiceJobIdResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/serviceJobs": { + "get": { + "tags": [ + "ServicesV1" + ], + "description": "Gets service job details for the specified filter query.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 40 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getServiceJobs", + "parameters": [ + { + "name": "serviceOrderIds", + "in": "query", + "description": "List of service order ids for the query you want to perform.Max values supported 20.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "serviceJobStatus", + "in": "query", + "description": "A list of one or more job status by which to filter the list of jobs.", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "NOT_SERVICED", + "CANCELLED", + "COMPLETED", + "PENDING_SCHEDULE", + "NOT_FULFILLABLE", + "HOLD", + "PAYMENT_DECLINED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_SERVICED", + "description": "Jobs which are not serviced." + }, + { + "value": "CANCELLED", + "description": "Jobs which are cancelled." + }, + { + "value": "COMPLETED", + "description": "Jobs successfully completed." + }, + { + "value": "PENDING_SCHEDULE", + "description": "Jobs which are pending schedule." + }, + { + "value": "NOT_FULFILLABLE", + "description": "Jobs which are not fulfillable." + }, + { + "value": "HOLD", + "description": "Jobs which are on hold." + }, + { + "value": "PAYMENT_DECLINED", + "description": "Jobs for which payment was declined." + } + ] + } + } + }, + { + "name": "pageToken", + "in": "query", + "description": "String returned in the response of your previous request.", + "schema": { + "type": "string" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.", + "schema": { + "maximum": 20, + "minimum": 1, + "type": "integer", + "default": 20 + } + }, + { + "name": "sortField", + "in": "query", + "description": "Sort fields on which you want to sort the output.", + "schema": { + "type": "string", + "enum": [ + "JOB_DATE", + "JOB_STATUS" + ], + "x-docgen-enum-table-extension": [ + { + "value": "JOB_DATE", + "description": "Sort on job date." + }, + { + "value": "JOB_STATUS", + "description": "Sort on job status." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "JOB_DATE", + "description": "Sort on job date." + }, + { + "value": "JOB_STATUS", + "description": "Sort on job status." + } + ] + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort order for the query you want to perform.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order." + }, + { + "value": "DESC", + "description": "Sort in descending order." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order." + }, + { + "value": "DESC", + "description": "Sort in descending order." + } + ] + }, + { + "name": "createdAfter", + "in": "query", + "description": "A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.", + "schema": { + "type": "string" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.", + "schema": { + "type": "string" + } + }, + { + "name": "lastUpdatedAfter", + "in": "query", + "description": "A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.", + "schema": { + "type": "string" + } + }, + { + "name": "lastUpdatedBefore", + "in": "query", + "description": "A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format.", + "schema": { + "type": "string" + } + }, + { + "name": "scheduleStartDate", + "in": "query", + "description": "A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.", + "schema": { + "type": "string" + } + }, + { + "name": "scheduleEndDate", + "in": "query", + "description": "A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.", + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "Used to select jobs that were placed in the specified marketplaces.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "asins", + "in": "query", + "description": "List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "items": { + "maxLength": 10, + "minLength": 10, + "type": "string" + } + } + }, + { + "name": "requiredSkills", + "in": "query", + "description": "A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and\/or service scenarios. Max values supported is 20.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 20, + "minItems": 1, + "type": "array", + "items": { + "maxLength": 50, + "minLength": 1, + "type": "string" + } + } + }, + { + "name": "storeIds", + "in": "query", + "description": "List of Amazon-defined identifiers for the region scope. Max values supported is 50.", + "style": "form", + "explode": false, + "schema": { + "maxItems": 50, + "minItems": 1, + "type": "array", + "items": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "totalResultSize": 1, + "nextPageToken": "merchantSklktoreIdbcdcd2ad-5883-4e48-b114-f13328a9e9f", + "previousPageToken": "merchantSklktoreIdbcdcd2ad-5883-4e48-b114-f13328a9e9f", + "jobs": [ + { + "serviceOrderId": "2345324", + "serviceJobId": "34534399990035", + "createTime": "2019-12-11T14:49:53.952Z", + "serviceJobStatus": "COMPLETED", + "buyer": { + "name": "nameExample" + }, + "appointments": [ + { + "appointmentId": "appointmentIdExample", + "appointmentStatus": "COMPLETED", + "appointmentTime": { + "startTime": "2020-01-31T06:38:56.961Z", + "durationInMinutes": 60 + }, + "assignedTechnicians": [ + { + "technicianId": "technicianIdExample", + "name": "nameExample" + } + ] + } + ] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdAfter": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetServiceJobsResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/appointments": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Adds an appointment to the service job indicated by the service job identifier specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "addAppointmentForServiceJobByServiceJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon defined service job identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "Add appointment operation input details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AddAppointmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "appointmentId": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-2-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + } + } + } + } + }, + "response": { + "appointmentId": "validJobId-2-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource. Please check your input again.", + "details": "" + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000+05:30" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "ISO8601 time 2021-01-01T10:00:00.000+05:30 is not in UTC.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10-00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to parse ISO8601 input: 2021-01-01T10-00:00.000Z", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "No job exist with jobId : invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "completedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Operation not allowed on job with jobId : completedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468 and jobState : COMPLETED", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "withActiveAppointmentJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : withActiveAppointmentJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Job already has an active appointmentId.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2019-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Start time of appointment should be in the future.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2022-01-01T10:00:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Start time for appointment is beyond the maximum allowed period of 365 days.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:15:00.000Z" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Appointment slot is not available.", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/appointments\/{appointmentId}": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Reschedules an appointment for the service job indicated by the service job identifier specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "rescheduleAppointmentForServiceJobByServiceJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon defined service job identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "appointmentId", + "in": "path", + "description": "An existing appointment identifier for the Service Job.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "Reschedule appointment operation input details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RescheduleAppointmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "appointmentId": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468_new_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-2-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-2-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "appointmentId": "validJobId-2-9cb9bc29-3d7d-5e49-5709-efb693d34468_new_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-3-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-3-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "appointmentId": "validJobId-3-9cb9bc29-3d7d-5e49-5709-efb693d34468_new_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a", + "warnings": [ + { + "code": "RESOURCES_UNASSIGNED", + "message": "Unassigned resources : ATechnicianId,BTechnicianId" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "appointmentId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "nullAppointmentId" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z", + "durationInMinutes": 60 + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [appointmentId]", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "unauthorizedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource. Please check your input again.", + "details": "" + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000+05:30" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "ISO8601 time 2021-01-01T10:00:00.000+05:30 is not in UTC.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10-00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to parse ISO8601 input: 2021-01-01T10-00:00.000Z", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "No job exist with jobId : invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "completedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "completedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Operation not allowed on job with jobId : completedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468 and jobState : COMPLETED", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2019-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Start time of appointment should be in the future.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2022-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Start time for appointment is beyond the maximum allowed period of 365 days.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:15:00.000Z" + }, + "rescheduleReasonCode": "R1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Appointment slot is not available.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentTime": { + "startTime": "2021-01-01T10:00:00.000Z" + }, + "rescheduleReasonCode": "U1" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to add appointment for jobId : validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468, reason : Appointment reschedule reason code is not valid.", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/appointments\/{appointmentId}\/resources": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Assigns new resource(s) or overwrite\/update the existing one(s) to a service job appointment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 2 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "assignAppointmentResources", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "appointmentId", + "in": "path", + "description": "An Amazon-defined identifier of active service job appointment.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": {} + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + {} + ] + } + } + } + }, + "response": {} + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "overBookedResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "payload": { + "warnings": [ + { + "code": "RESOURCES_OVERBOOKED", + "message": "Resources overbooked for this time window." + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "nullAppointmentId" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [appointmentId]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "appointmentId": { + "value": "nullAppointmentId" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [appointmentId, serviceJobId]", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": {} + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Resources\u00a0not\u00a0provided\u00a0in\u00a0input\u00a0JSON\u00a0payload.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Resources\u00a0must\u00a0have\u00a0size\u00a0greater\u00a0than\u00a0or\u00a0equal\u00a0to\u00a01.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource. Please check your input again.", + "details": "" + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "No job exists with jobId : invalidJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "invalidAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Failed to Update Appointment for jobId : invalidJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687, appointmentId : invalidAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d, reason : No appointment exists with appointmentId: invalidAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "badResourceId" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid resourceId : badResourceId provided in the input.", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "completedJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "completedAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Operation not allowed on job with jobId : completedJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687 and jobState : COMPLETED", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "cancelledJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "cancelledAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Operation not allowed on job with jobId : cancelledJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687 and jobState : CANCELLED", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "cancelledAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "validResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "validResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Appointment metadata update is not allowed for appointmentId cancelledAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "resources": [ + { + "resourceId": "invalidResourceId-A8B3M999LMHF2" + }, + { + "resourceId": "invalidResourceId-AMIDIAX1H5V" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "RESOURCES_MISMATCHED_SERVICE_LOCATION_TYPE", + "message": "Resources do not have same service location type as job. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + }, + { + "code": "RESOURCES_MISSING_REQUIRED_SKILLS", + "message": "Resources Missing required XYZ skills. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + }, + { + "code": "RESOURCES_NOT_AVAILABLE_IN_LOCATION", + "message": "Resources are not available in the store. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + }, + { + "code": "RESOURCES_NOT_REGISTERED_UNDER_MERCHANT", + "message": "Resources are not registered under this Merchant. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + }, + { + "code": "RESOURCES_BACKGROUND_CHECK_INCOMPLETE", + "message": "Resources background check is incomplete. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + }, + { + "code": "RESOURCES_NOT_AVAILABLE_IN_TIME_WINDOW", + "message": "Resources do not have sufficient available capacity. Applicable resources: A8B3M999LMHF2,AMIDIAX1H5V", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/AssignAppointmentResourcesResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/appointments\/{appointmentId}\/fulfillment": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "setAppointmentFulfillmentData", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "appointmentId", + "in": "path", + "description": "An Amazon-defined identifier of active service job appointment.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + ], + "requestBody": { + "description": "Appointment fulfillment data collection details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SetAppointmentFulfillmentDataRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "type": "string" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ] + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ] + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "fulfillmentDocuments": [ + { + "uploadDestinationId": "348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": "" + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687" + }, + "appointmentId": { + "value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d" + }, + "body": { + "value": { + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": "" + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + }, + "appointmentId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "nullAppointmentId" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [appointmentId]" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "nullAppointmentId" + }, + "body": { + "value": {} + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "No fulfillment artifacts provided in JSON payload.", + "details": "" + } + ] + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "unauthorizedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "unauthorizedJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "UnauthorizedAction", + "message": "Not authorized to access this resource. Please check your input again.", + "details": "" + } + ] + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The entity of the request is in a format not supported by the requested resource.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "invalidAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "No job exist with jobId : invalidJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "InvalidStatusJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "invalidStatusAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Job with id InvalidStatusJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468 can not be updated. Please check if the job is in valid status.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "invalidAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment with id invalidAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468 is not present in the job. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "InvalidStatusCancelledAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-02T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment with appointment id InvalidStatusCancelledAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468 is not valid to update. Please check the input again", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "endTime": "2021-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment start time is required. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2021-01-01T10:00:00.000+05:30" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment end time is required. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2021-01-01T10:00:00.000+05:30", + "endTime": "2021-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "ISO8601 time 2021-01-01T10:00:00.000+05:30 is not in UTC format. Please provide time in UTC", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2021-01-01T10-00:00.000Z", + "endTime": "2021-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Could not parse given time input 2021-01-01T10-00:00.000Z. Please provide time in ISO8601 format", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "9999-01-01T10:00:00.000Z", + "endTime": "2021-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment start time should not be in future. Please check the input again", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-01T10:00:00.000+05:30", + "endTime": "9999-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment end time should not be in future. Please check the input again", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2020-01-04T10:00:00.000+05:30", + "endTime": "2020-01-03T13:18:10.668Z" + } + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment end time should be after start time. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentResources": [ + { + "resourceId": "InValidResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "One or more resources provided is invalid. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "appointmentResources": [ + { + "resourceId": "ResourceIdNotExist-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "One or more resources provided does not exist or is deleted. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "InvalidUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Input document id does not exist. Please check the input", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "UploadDestinationIdExpired-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Input document parameters are invalid. Please check the input.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "InvalidDocumentTypeUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to meet content type restrictions. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "InvalidDocumentLengthUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Failed to retrieve document content length. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "ExceededDcoumentLengthUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to meet content length restrictions. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "DocumentNotUploadedUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document encrypted not found or exist. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "IncorrectEncryptedDocumentUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to decrypt or decipher. Please review the uploaded document", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDestinationId-9cb9bc29-3d7d-5e49-5709-efb693d34468", + "contentSha256": "InvalidSHA256GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to meet sanity check. Could not get a Sha256 Message Digest instance. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentDocuments": [ + { + "uploadDestinationId": "UploadedFileDetectedMalwareUploadeDestinationId-348293-2384982-239847982379", + "contentSha256": "validSHA256GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to meet malware check. Please review document uploaded", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "InValidResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "InValidUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "ne or more resources provided is invalid. Please check the input again.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "Appointment start time is required. Please check the input again.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Input document id does not exist. Please check the input", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "InValidUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment start time is required. Please check the input again.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Input document id does not exist. Please check the input", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Appointment start time is required. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2022-01-03T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "ResourceIdNotExist-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "validUploadDesitnationID348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "One or more resources provided does not exist or is deleted. Please check the input again.", + "details": "" + } + ] + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693d34468" + }, + "appointmentId": { + "value": "validAppointmentId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a" + }, + "body": { + "value": { + "fulfillmentTime": { + "startTime": "2022-01-03T13:18:10.668Z", + "endTime": "2022-01-03T13:18:10.668Z" + }, + "appointmentResources": [ + { + "resourceId": "validResourceId-20334421900" + }, + { + "resourceId": "validResourceId-82309484378" + } + ], + "fulfillmentDocuments": [ + { + "uploadDestinationId": "UploadedFileDetectedMalwareUploadeDestinationId-348293-2384982-239847982379", + "contentSha256": "z06EuBzgzc7GiDNVqcxMqYEr7n0BCS9EtNN7szHe0RT=" + } + ] + } + } + } + }, + "response": [ + { + "code": "InvalidInput", + "message": "Failed to process proof of appointment input. Reason: Document failed to meet malware check. Please review document uploaded", + "details": "" + } + ] + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceResources\/{resourceId}\/capacity\/range": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Provides capacity slots in a format similar to availability records.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getRangeSlotCapacity", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "Resource Identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "nextPageToken", + "in": "query", + "description": "Next page token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Request body.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityQuery" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacity" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY", + "AVAILABLE_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z" + } + } + } + }, + "response": { + "resourceId": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48", + "capacities": [ + { + "capacityType": "SCHEDULED_CAPACITY", + "slots": [ + { + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "capacity": 1 + } + ] + }, + { + "capacityType": "AVAILABLE_CAPACITY", + "slots": [ + { + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T01:00:00Z", + "capacity": 0 + }, + { + "startDateTime": "2021-04-04T01:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "capacity": 1 + } + ] + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f29" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY", + "AVAILABLE_CAPACITY" + ], + "startDateTime": "2022-03-01T00:00:00Z", + "endDateTime": "2022-05-30T00:00:00Z" + } + } + } + }, + "response": { + "resourceId": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48", + "nextPageToken": "MjAyMi0wNC0wNVQwMDowMDowMFo%3D", + "capacities": [ + { + "capacityType": "SCHEDULED_CAPACITY", + "slots": [ + { + "startDateTime": "2022-03-01T00:00:00Z", + "endDateTime": "2022-04-05T00:00:00Z", + "capacity": 1 + } + ] + }, + { + "capacityType": "AVAILABLE_CAPACITY", + "slots": [ + { + "startDateTime": "2022-03-01T00:00:00Z", + "endDateTime": "2022-03-01T10:00:00Z", + "capacity": 0 + }, + { + "startDateTime": "2022-03-01T10:00:00Z", + "endDateTime": "2022-04-05T00:00:00Z", + "capacity": 1 + } + ] + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f29" + }, + "nextPageToken": { + "value": "MjAyMi0wNC0wNVQwMDowMDowMFo%3D" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY", + "AVAILABLE_CAPACITY" + ], + "startDateTime": "2022-03-01T00:00:00Z", + "endDateTime": "2022-05-30T00:00:00Z" + } + } + } + }, + "response": { + "resourceId": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48", + "capacities": [ + { + "capacityType": "SCHEDULED_CAPACITY", + "slots": [ + { + "startDateTime": "2022-04-05T00:00:00Z", + "endDateTime": "2022-05-30T00:00:00Z", + "capacity": 1 + } + ] + }, + { + "capacityType": "AVAILABLE_CAPACITY", + "slots": [ + { + "startDateTime": "2022-04-05T00:00:00Z", + "endDateTime": "2022-05-30T10:00:00Z", + "capacity": 1 + } + ] + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gbadfhak32" + }, + "body": { + "value": { + "capacityTypes": [ + "RESERVED_CAPACITY", + "AVAILABLE_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z" + } + } + } + }, + "response": { + "resourceId": "validResourceId-9d267d55-9426-5bfp-cc47-f167gbadfhak32", + "capacities": [ + { + "capacityType": "AVAILABLE_CAPACITY", + "slots": [ + { + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T01:00:00Z", + "capacity": 0 + }, + { + "startDateTime": "2021-04-04T01:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "capacity": 1 + } + ] + }, + { + "capacityType": "RESERVED_CAPACITY", + "slots": [ + { + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T01:00:00Z", + "capacity": 1 + }, + { + "startDateTime": "2021-04-04T01:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "capacity": 0 + } + ] + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [Missing or invalid request parameters: [resourceId]]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48a" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [startDateTime or endDateTime are not present]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48b" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T02:00:00Z", + "endDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [endDateTime should be after Start Time]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9426-5bfp-cc47-f167gb969f48c" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-0", + "endDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [startDateTime is not a valid ISO date\/time object]" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RangeSlotCapacityErrors" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceResources\/{resourceId}\/capacity\/fixed": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Provides capacity in fixed-size slots. \n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getFixedSlotCapacity", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "Resource Identifier.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "nextPageToken", + "in": "query", + "description": "Next page token returned in the response of your previous request.", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Request body.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityQuery" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacity" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9e378g66-9537-6ggq-dd48-f167gb969f48" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY", + "RESERVED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "slotDuration": 30 + } + } + } + }, + "response": { + "resourceId": "validResourceId-9e378g66-9537-6ggq-dd48-f167gb969f48", + "slotDuration": 30, + "capacities": [ + { + "startDateTime": "2021-04-04T00:00:00Z", + "scheduledCapacity": 1, + "reservedCapacity": 1 + }, + { + "startDateTime": "2021-04-04T00:30:00Z", + "scheduledCapacity": 1, + "reservedCapacity": 0 + }, + { + "startDateTime": "2021-04-04T01:00:00Z", + "scheduledCapacity": 0, + "reservedCapacity": 0 + }, + { + "startDateTime": "2021-04-04T01:30:00Z", + "scheduledCapacity": 0, + "reservedCapacity": 0 + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [Missing or invalid request parameters: [resourceId]]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9d267d55-9dfa-5bfp-cc47-f167gb969f48a" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z", + "endDateTime": "2021-04-04T02:00:00Z", + "slotDuration": 400 + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [Slot duration is not valid, it should be a multiple of 5 and within allowed range.]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9e378g66-9537-6ggq-dd48-f1klmb969f48" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T02:00:00Z", + "endDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [endDateTime should be after Start Time]" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "resourceId": { + "value": "validResourceId-9e378g66-9537-6ggq-dd48-f1klmb969f482" + }, + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [startDateTime or endDateTime are not present]" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9e378g66-9537-6ggq-dd48-f1klmb969f483" + }, + "body": { + "value": { + "capacityTypes": [ + "SCHEDULED_CAPACITY" + ], + "startDateTime": "2021-0", + "endDateTime": "2021-04-04T00:00:00Z" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "This is invalid input", + "details": "Received the following errors: [startDateTime is not a valid ISO date\/time object]" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/FixedSlotCapacityErrors" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/serviceResources\/{resourceId}\/schedules": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Update the schedule of the given resource.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateSchedule", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "Resource (store) Identifier", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "description": "Schedule details", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "body": { + "value": { + "schedules": [ + { + "startTime": "2020-01-01T00:00:00.00-07", + "endTime": "2020-01-01T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-06T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY" + ] + } + }, + { + "startTime": "2020-01-11T00:00:00.00-07", + "endTime": "2020-01-11T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-16T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY" + ] + } + } + ] + } + } + } + }, + "response": {} + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "body": { + "value": { + "schedules": [ + { + "startTime": "2020-01-01T12:00:00.00-07", + "endTime": "2020-01-01T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-06T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY" + ] + } + }, + { + "startTime": "2020-01-11T00:00:00.00-07", + "endTime": "2020-01-11T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-16T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY" + ] + } + } + ] + } + } + } + }, + "response": { + "payload": [ + { + "availability": { + "startTime": "2020-01-01T12:00:00.00-07", + "endTime": "2020-01-01T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-06T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY" + ] + } + }, + "warnings": [ + { + "code": "ScheduleOverride", + "message": "This AvailabilityRecord will override the current schedule as the time-ranges overlap" + } + ] + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "invalidResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "body": { + "value": { + "schedules": [ + { + "startTime": "2020-01-01T00:00:00.00-07", + "endTime": "2020-01-01T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-06T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY" + ] + } + }, + { + "startTime": "2020-01-11T00:00:00.00-07", + "endTime": "2020-01-11T23:59:00.00-07", + "recurrence": { + "endTime": "2020-01-16T23:59:00.00-07", + "daysOfWeek": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY" + ] + } + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "message": "Invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "resourceId": { + "value": "null" + }, + "body": { + "value": { + "schedules": [] + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + }, + { + "request": { + "parameters": { + "resourceId": { + "value": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "body": { + "value": { + "schedules": [] + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [schedule]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateScheduleResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/reservation": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Create a reservation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createReservation", + "parameters": [ + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "description": "Reservation details", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": { + "availability": { + "startTime": "2020-04-01T10:00:00.00-07", + "endTime": "2020-04-01T11:00:00.00-07" + }, + "type": "BREAK" + } + } + } + } + }, + "response": { + "payload": { + "reservation": { + "reservationId": "457" + } + } + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "invalidResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": { + "availability": { + "startTime": "2020-04-01T10:00:00.00-07", + "endTime": "2020-04-01T11:00:00.00-07" + }, + "type": "BREAK" + } + } + } + } + }, + "response": { + "errors": [ + { + "message": "Invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "null", + "reservation": {} + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": {} + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [reservation]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateReservationResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/service\/v1\/reservation\/{reservationId}": { + "put": { + "tags": [ + "ServicesV1" + ], + "description": "Update a reservation.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "updateReservation", + "parameters": [ + { + "name": "reservationId", + "in": "path", + "description": "Reservation Identifier", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "description": "Reservation details", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reservationId": { + "value": "456" + }, + "body": { + "value": { + "resourceId": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": { + "availability": { + "startTime": "2020-04-01T10:00:00.00-07", + "endTime": "2020-04-01T11:00:00.00-07" + }, + "type": "BREAK" + } + } + } + } + }, + "response": { + "payload": { + "reservation": { + "reservationId": "457" + } + } + } + }, + { + "request": { + "parameters": { + "reservationId": { + "value": "456" + }, + "body": { + "value": { + "resourceId": "invalidResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": { + "availability": { + "startTime": "2020-04-01T10:00:00.00-07", + "endTime": "2020-04-01T11:00:00.00-07" + }, + "type": "BREAK" + } + } + } + } + }, + "response": { + "errors": [ + { + "message": "Invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "null", + "reservation": {} + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [resourceId]", + "code": "InvalidInput" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "resourceId": "validResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": {} + } + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [reservation]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + }, + "404": { + "description": "The reservation specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reservationId": { + "value": "not-existent-456" + }, + "body": { + "value": { + "resourceId": "invalidResourceId-9c156c44-8315-4aeb-bb36-e056fa827e36", + "reservation": { + "availability": { + "startTime": "2020-04-01T10:00:00.00-07", + "endTime": "2020-04-01T11:00:00.00-07" + }, + "type": "BREAK" + } + } + } + } + }, + "response": { + "errors": [ + { + "message": "Could not find reservation with ID: [not-existent-456]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateReservationResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "tags": [ + "ServicesV1" + ], + "description": "Cancel a reservation. \n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelReservation", + "parameters": [ + { + "name": "reservationId", + "in": "path", + "description": "Reservation Identifier", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "204": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reservationId": { + "value": "validReservationId-9c156c44-8315-4aeb-bb36-e056fa827e36" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reservationId": { + "value": "invalidReservationId-a654baa-8315-4aeb-bb36-e056fa827e36" + } + } + }, + "response": { + "errors": [ + { + "message": "Missing or invalid request parameters: [reservationId]", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + }, + "404": { + "description": "The reservation specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "reservationId": { + "value": "nonExistingReservationId-a3726c44-8315-4aeb-bb36-e056fa827e36" + } + } + }, + "response": { + "errors": [ + { + "message": "Reservation does not exist", + "code": "InvalidInput" + } + ] + } + } + ] + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + }, + "415": { + "description": "The entity of the request is in a format not supported by the requested resource.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelReservationResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/serviceJobs\/{serviceJobId}\/appointmentSlots": { + "get": { + "tags": [ + "ServicesV1" + ], + "description": "Gets appointment slots for the service associated with the service job id specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getAppointmmentSlotsByJobId", + "parameters": [ + { + "name": "serviceJobId", + "in": "path", + "description": "A service job identifier to retrive appointment slots for associated service.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace in which the resource operates.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "startTime", + "in": "query", + "description": "A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration.", + "schema": { + "type": "string" + } + }, + { + "name": "endTime", + "in": "query", + "description": "A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJob-9c156c44-8315-4aeb-bb36-e056fa827e36" + } + } + }, + "response": { + "payload": { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T02:00:00Z", + "schedulingType": "REAL_TIME_SCHEDULING", + "appointmentSlots": [ + { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T01:0:00Z", + "capacity": 20 + }, + { + "startTime": "2021-04-04T01:00:00Z", + "endTime": "2021-04-04T02:0:00Z", + "capacity": 0 + } + ] + } + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJob-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "startTime": { + "value": "2021-04-04T00:00:00Z" + }, + "endTime": { + "value": "2021-04-04T02:00:00Z" + } + } + }, + "response": { + "payload": { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T02:00:00Z", + "schedulingType": "REAL_TIME_SCHEDULING", + "appointmentSlots": [ + { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T01:0:00Z", + "capacity": 20 + }, + { + "startTime": "2021-04-04T01:00:00Z", + "endTime": "2021-04-04T02:0:00Z", + "capacity": 0 + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "serviceJobId": { + "value": "nullJobId" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [serviceJobId]" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJob-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "endTime": { + "value": "20-21-04-04T01:00:00Z" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "End Time is not a valid ISO date\/time object" + } + ] + } + }, + { + "request": { + "parameters": { + "serviceJobId": { + "value": "validJob-9c156c44-8315-4aeb-bb36-e056fa827e36" + }, + "startTime": { + "value": "2021-04-04T05:00:00Z" + }, + "endTime": { + "value": "2021-04-04T02:00:00Z" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "End Time should be after Start Time" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/appointmentSlots": { + "get": { + "tags": [ + "ServicesV1" + ], + "description": "Gets appointment slots as per the service context specified.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 20 | 40 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getAppointmentSlots", + "parameters": [ + { + "name": "asin", + "in": "query", + "description": "ASIN associated with the service.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "storeId", + "in": "query", + "description": "Store identifier defining the region scope to retrive appointment slots.", + "required": true, + "schema": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "An identifier for the marketplace for which appointment slots are queried", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "startTime", + "in": "query", + "description": "A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration.", + "schema": { + "type": "string" + } + }, + { + "name": "endTime", + "in": "query", + "description": "A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success response.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "B07BB1RGT5" + }, + "storeId": { + "value": "53694163-6dc8-4f80-b6b1-ec47b7b9747e" + } + } + }, + "response": { + "payload": { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T02:00:00Z", + "schedulingType": "REAL_TIME_SCHEDULING", + "appointmentSlots": [ + { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T01:0:00Z", + "capacity": 20 + }, + { + "startTime": "2021-04-04T01:00:00Z", + "endTime": "2021-04-04T02:0:00Z", + "capacity": 0 + } + ] + } + } + }, + { + "request": { + "parameters": { + "asin": { + "value": "B07BB1RGT6" + }, + "storeId": { + "value": "53694163-6dc8-4f80-b6b1-ec47b7b9747f" + }, + "startTime": { + "value": "2021-04-04T00:00:00Z" + }, + "endTime": { + "value": "2021-04-04T02:00:00Z" + } + } + }, + "response": { + "payload": { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T02:00:00Z", + "schedulingType": "NON_REAL_TIME_SCHEDULING", + "appointmentSlots": [ + { + "startTime": "2021-04-04T00:00:00Z", + "endTime": "2021-04-04T01:0:00Z", + "capacity": 20 + }, + { + "startTime": "2021-04-04T01:00:00Z", + "endTime": "2021-04-04T02:0:00Z", + "capacity": 0 + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "asin": { + "value": "nullValue" + }, + "storeId": { + "value": "53694163-6dc8-4f80-b6b1-ec47b7b9747e" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [asin]" + } + ] + } + }, + { + "request": { + "parameters": { + "asin": { + "value": "B07BB1RGT5" + }, + "storeId": { + "value": "53694163-6dc8-4f80-b6b1-ec47b7b9747e" + }, + "endTime": { + "value": "20-21-04-04T01:00:00Z" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Range End Time is not a valid ISO date\/time object" + } + ] + } + }, + { + "request": { + "parameters": { + "asin": { + "value": "B07BB1RGT5" + }, + "storeId": { + "value": "53694163-6dc8-4f80-b6b1-ec47b7b9747e" + }, + "startTime": { + "value": "2021-04-04T05:00:00Z" + }, + "endTime": { + "value": "2021-04-04T02:00:00Z" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Range End Time should be after Range Start Time" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAppointmentSlotsResponse" + } + } + } + } + } + } + }, + "\/service\/v1\/documents": { + "post": { + "tags": [ + "ServicesV1" + ], + "description": "Creates an upload destination.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createServiceDocumentUploadDestination", + "requestBody": { + "description": "Upload document operation input details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ServiceUploadDocument" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successfully created an upload destination for the given resource.", + "headers": { + "x-amzn-requestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "contentType": "PNG", + "contentLength": 1386437, + "contentMD5": "97WrSKv9ffHkDopCdB32mw==" + } + } + } + }, + "response": { + "payload": { + "encryptionDetails": { + "standard": "AES", + "initializationVector": "paPlpo1iBBLmyOhU0mIo5g==", + "key": "PDuDJm2l+0ydObrRpS48tB+t2qbtOmWhSEOiFWKnH2k=" + }, + "uploadDestinationId": "amzn1.tortuga.3.15ba627d-8e24-42ad-89d1-5eb01f5ba0af.T15MXQRST78UTC<->amzn1.tortuga.1.token.DizquVc+EoX\/lWAV\/7WTlw==", + "url": "https:\/\/tortuga-devo.s3-us-west-2.amazonaws.com\/%2FThirtyDays\/amzn1.tortuga.3.15ba627d-8e24-42ad-89d1-5eb01f5ba0af.T15MXQRST78UTC?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20210108T103450Z&X-Amz-SignedHeaders=content-type%3Bhost&X-Amz-Expires=300&X-Amz-Credential=AKIAUR3X5C6O5CADVWED%2F20210108%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=dd2fefe6c6102aba14bab1481b33cf07dcc0385bd49f7eb5796d77b082ea5ba3" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": {} + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [contentType, contentLength].", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "contentType": "PNG" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [contentLength].", + "details": "" + } + ] + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "contentLength": 123 + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Missing or invalid request parameters: [contentType].", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "415": { + "description": "The request's Content-Type header is invalid.", + "headers": { + "x-amzn-requestid": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "422": { + "description": "Unprocessable Entity. Unable to process the contained instructions.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "contentType": "PNGr", + "contentLength": 1386437, + "contentMD5": "97WrSKv9ffHkDopCdB32mw==" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "contentType parameter is invalid. Use one of ['TIFF', 'JPG', 'PNG', 'JPEG', 'GIF', 'PDF']", + "details": "" + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-requestid": { + "description": "Unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n**Note:** For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateServiceDocumentUploadDestination" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "GetServiceJobByServiceJobIdResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ServiceJob" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the `getServiceJobByServiceJobId` operation." + }, + "CancelServiceJobByServiceJobIdResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `cancelServiceJobByServiceJobId` operation." + }, + "CompleteServiceJobByServiceJobIdResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `completeServiceJobByServiceJobId` operation." + }, + "GetServiceJobsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/JobListing" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `getServiceJobs` operation." + }, + "SetAppointmentResponse": { + "type": "object", + "properties": { + "appointmentId": { + "$ref": "#\/components\/schemas\/AppointmentId" + }, + "warnings": { + "$ref": "#\/components\/schemas\/WarningList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations." + }, + "AssignAppointmentResourcesResponse": { + "type": "object", + "properties": { + "payload": { + "type": "object", + "properties": { + "warnings": { + "$ref": "#\/components\/schemas\/WarningList" + } + }, + "description": "The payload for the `assignAppointmentResource` operation." + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `assignAppointmentResources` operation." + }, + "AssignAppointmentResourcesRequest": { + "required": [ + "resources" + ], + "type": "object", + "properties": { + "resources": { + "$ref": "#\/components\/schemas\/AppointmentResources" + } + }, + "description": "Request schema for the `assignAppointmentResources` operation." + }, + "JobListing": { + "type": "object", + "properties": { + "totalResultSize": { + "type": "integer", + "description": "Total result size of the query result." + }, + "nextPageToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results." + }, + "previousPageToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results." + }, + "jobs": { + "type": "array", + "description": "List of job details for the given input.", + "items": { + "$ref": "#\/components\/schemas\/ServiceJob" + } + } + }, + "description": "The payload for the `getServiceJobs` operation." + }, + "ServiceJob": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "The date and time of the creation of the job in ISO 8601 format.", + "format": "date-time" + }, + "serviceJobId": { + "$ref": "#\/components\/schemas\/ServiceJobId" + }, + "serviceJobStatus": { + "type": "string", + "description": "The status of the service job.", + "enum": [ + "NOT_SERVICED", + "CANCELLED", + "COMPLETED", + "PENDING_SCHEDULE", + "NOT_FULFILLABLE", + "HOLD", + "PAYMENT_DECLINED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_SERVICED", + "description": "Indicates that the service for the service job is not complete." + }, + { + "value": "CANCELLED", + "description": "Indicates that the service job is cancelled." + }, + { + "value": "COMPLETED", + "description": "Indicates that the service is performed and the service job is closed successfully." + }, + { + "value": "PENDING_SCHEDULE", + "description": "Indicates that an appointment for the service job has not been scheduled." + }, + { + "value": "NOT_FULFILLABLE", + "description": "Indicates that the service job is not actionable due to an unexpected exception." + }, + { + "value": "HOLD", + "description": "Indicates that the appointment time preference given by customer cannot be serviced by the service provider." + }, + { + "value": "PAYMENT_DECLINED", + "description": "Indicates that the customer payment has been declined." + } + ] + }, + "scopeOfWork": { + "$ref": "#\/components\/schemas\/ScopeOfWork" + }, + "seller": { + "$ref": "#\/components\/schemas\/Seller" + }, + "serviceJobProvider": { + "$ref": "#\/components\/schemas\/ServiceJobProvider" + }, + "preferredAppointmentTimes": { + "type": "array", + "description": "A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order.", + "items": { + "$ref": "#\/components\/schemas\/AppointmentTime" + } + }, + "appointments": { + "type": "array", + "description": "A list of appointments.", + "items": { + "$ref": "#\/components\/schemas\/Appointment" + } + }, + "serviceOrderId": { + "$ref": "#\/components\/schemas\/OrderId" + }, + "marketplaceId": { + "pattern": "^[A-Z0-9]*$", + "type": "string", + "description": "The marketplace identifier." + }, + "storeId": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "The Amazon-defined identifier for the region scope." + }, + "buyer": { + "$ref": "#\/components\/schemas\/Buyer" + }, + "associatedItems": { + "type": "array", + "description": "A list of items associated with the service job.", + "items": { + "$ref": "#\/components\/schemas\/AssociatedItem" + } + }, + "serviceLocation": { + "$ref": "#\/components\/schemas\/ServiceLocation" + } + }, + "description": "The job details of a service." + }, + "ServiceJobId": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "Amazon identifier for the service job." + }, + "OrderId": { + "maxLength": 20, + "minLength": 5, + "type": "string", + "description": "The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format." + }, + "ScopeOfWork": { + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the service job." + }, + "title": { + "type": "string", + "description": "The title of the service job." + }, + "quantity": { + "type": "integer", + "description": "The number of service jobs." + }, + "requiredSkills": { + "type": "array", + "description": "A list of skills required to perform the job.", + "items": { + "type": "string" + } + } + }, + "description": "The scope of work for the order." + }, + "Seller": { + "type": "object", + "properties": { + "sellerId": { + "pattern": "^[A-Z0-9]*$", + "type": "string", + "description": "The identifier of the seller of the service job." + } + }, + "description": "Information about the seller of the service job." + }, + "ServiceJobProvider": { + "type": "object", + "properties": { + "serviceJobProviderId": { + "pattern": "^[A-Z0-9]*$", + "type": "string", + "description": "The identifier of the service job provider." + } + }, + "description": "Information about the service job provider." + }, + "Buyer": { + "type": "object", + "properties": { + "buyerId": { + "pattern": "^[A-Z0-9]*$", + "type": "string", + "description": "The identifier of the buyer." + }, + "name": { + "type": "string", + "description": "The name of the buyer." + }, + "phone": { + "type": "string", + "description": "The phone number of the buyer." + }, + "isPrimeMember": { + "type": "boolean", + "description": "When true, the service is for an Amazon Prime buyer." + } + }, + "description": "Information about the buyer." + }, + "AppointmentTime": { + "required": [ + "durationInMinutes", + "startTime" + ], + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "The date and time of the start of the appointment window in ISO 8601 format.", + "format": "date-time" + }, + "durationInMinutes": { + "minimum": 1, + "type": "integer", + "description": "The duration of the appointment window, in minutes." + } + }, + "description": "The time of the appointment window." + }, + "AppointmentId": { + "maxLength": 100, + "minLength": 5, + "type": "string", + "description": "The appointment identifier." + }, + "Appointment": { + "type": "object", + "properties": { + "appointmentId": { + "$ref": "#\/components\/schemas\/AppointmentId" + }, + "appointmentStatus": { + "type": "string", + "description": "The status of the appointment.", + "enum": [ + "ACTIVE", + "CANCELLED", + "COMPLETED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACTIVE", + "description": "Indicates that an appointment is scheduled." + }, + { + "value": "CANCELLED", + "description": "Indicates that the appointment is cancelled." + }, + { + "value": "COMPLETED", + "description": "Indicates that the appointment is completed." + } + ] + }, + "appointmentTime": { + "$ref": "#\/components\/schemas\/AppointmentTime" + }, + "assignedTechnicians": { + "minItems": 1, + "type": "array", + "description": "A list of technicians assigned to the service job.", + "items": { + "$ref": "#\/components\/schemas\/Technician" + } + }, + "rescheduledAppointmentId": { + "$ref": "#\/components\/schemas\/AppointmentId" + }, + "poa": { + "$ref": "#\/components\/schemas\/Poa" + } + }, + "description": "The details of an appointment." + }, + "Technician": { + "type": "object", + "properties": { + "technicianId": { + "maxLength": 50, + "minLength": 1, + "type": "string", + "description": "The technician identifier." + }, + "name": { + "type": "string", + "description": "The name of the technician." + } + }, + "description": "A technician who is assigned to perform the service job in part or in full." + }, + "Poa": { + "type": "object", + "properties": { + "appointmentTime": { + "$ref": "#\/components\/schemas\/AppointmentTime" + }, + "technicians": { + "minItems": 1, + "type": "array", + "description": "A list of technicians.", + "items": { + "$ref": "#\/components\/schemas\/Technician" + } + }, + "uploadingTechnician": { + "pattern": "^[A-Z0-9]*$", + "type": "string", + "description": "The identifier of the technician who uploaded the POA." + }, + "uploadTime": { + "type": "string", + "description": "The date and time when the POA was uploaded in ISO 8601 format.", + "format": "date-time" + }, + "poaType": { + "type": "string", + "description": "The type of POA uploaded.", + "enum": [ + "NO_SIGNATURE_DUMMY_POS", + "CUSTOMER_SIGNATURE", + "DUMMY_RECEIPT", + "POA_RECEIPT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NO_SIGNATURE_DUMMY_POS", + "description": "Indicates that the type of proof of appointment uploaded is a dummy signature." + }, + { + "value": "CUSTOMER_SIGNATURE", + "description": "Indicates that the type of proof of appointment uploaded is a customer signature." + }, + { + "value": "DUMMY_RECEIPT", + "description": "Indicates that the type of proof of appointment uploaded is a dummy receipt." + }, + { + "value": "POA_RECEIPT", + "description": "Indicates that the type of proof of appointment is a receipt." + } + ] + } + }, + "description": "Proof of Appointment (POA) details." + }, + "AssociatedItem": { + "type": "object", + "properties": { + "asin": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "title": { + "type": "string", + "description": "The title of the item." + }, + "quantity": { + "type": "integer", + "description": "The total number of items included in the order." + }, + "orderId": { + "$ref": "#\/components\/schemas\/OrderId" + }, + "itemStatus": { + "type": "string", + "description": "The status of the item.", + "enum": [ + "ACTIVE", + "CANCELLED", + "SHIPPED", + "DELIVERED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACTIVE", + "description": "Indicates the item is yet to be shipped." + }, + { + "value": "CANCELLED", + "description": "Indicates the item has been cancelled." + }, + { + "value": "SHIPPED", + "description": "Indicates the item is shipped but not delivered." + }, + { + "value": "DELIVERED", + "description": "Indicates the item is delivered." + } + ] + }, + "brandName": { + "type": "string", + "description": "The brand name of the item." + }, + "itemDelivery": { + "$ref": "#\/components\/schemas\/ItemDelivery" + } + }, + "description": "Information about an item associated with the service job." + }, + "ItemDelivery": { + "type": "object", + "properties": { + "estimatedDeliveryDate": { + "type": "string", + "description": "The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format.", + "format": "date-time" + }, + "itemDeliveryPromise": { + "$ref": "#\/components\/schemas\/ItemDeliveryPromise" + } + }, + "description": "Delivery information for the item." + }, + "ItemDeliveryPromise": { + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "The date and time of the start of the promised delivery window in ISO 8601 format.", + "format": "date-time" + }, + "endTime": { + "type": "string", + "description": "The date and time of the end of the promised delivery window in ISO 8601 format.", + "format": "date-time" + } + }, + "description": "Promised delivery information for the item." + }, + "ServiceLocation": { + "type": "object", + "properties": { + "serviceLocationType": { + "type": "string", + "description": "The location of the service job.", + "enum": [ + "IN_HOME", + "IN_STORE", + "ONLINE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IN_HOME", + "description": "Indicates the service for the service job is performed at the customers home address." + }, + { + "value": "IN_STORE", + "description": "Indicates the service for the service job is performed at the service providers store." + }, + { + "value": "ONLINE", + "description": "Indicates the service for the service job is performed remotely." + } + ] + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + } + }, + "description": "Information about the location of the service job." + }, + "Address": { + "required": [ + "addressLine1", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business, or institution." + }, + "addressLine1": { + "type": "string", + "description": "The first line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city." + }, + "county": { + "type": "string", + "description": "The county." + }, + "district": { + "type": "string", + "description": "The district." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region." + }, + "postalCode": { + "type": "string", + "description": "The postal code. This can contain letters, digits, spaces, and\/or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code, in ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number." + } + }, + "description": "The shipping address for the service job." + }, + "AddAppointmentRequest": { + "required": [ + "appointmentTime" + ], + "type": "object", + "properties": { + "appointmentTime": { + "$ref": "#\/components\/schemas\/AppointmentTimeInput" + } + }, + "description": "Input for add appointment operation." + }, + "RescheduleAppointmentRequest": { + "required": [ + "appointmentTime", + "rescheduleReasonCode" + ], + "type": "object", + "properties": { + "appointmentTime": { + "$ref": "#\/components\/schemas\/AppointmentTimeInput" + }, + "rescheduleReasonCode": { + "$ref": "#\/components\/schemas\/RescheduleReasonCode" + } + }, + "description": "Input for rescheduled appointment operation." + }, + "AppointmentTimeInput": { + "required": [ + "startTime" + ], + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "The date, time in UTC for the start time of an appointment in ISO 8601 format.", + "format": "date-time" + }, + "durationInMinutes": { + "type": "integer", + "description": "The duration of an appointment in minutes." + } + }, + "description": "The input appointment time details." + }, + "RescheduleReasonCode": { + "type": "string", + "description": "The appointment reschedule reason code." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + }, + "errorLevel": { + "type": "string", + "description": "The type of error.", + "enum": [ + "ERROR", + "WARNING" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ERROR", + "description": "Error" + }, + { + "value": "WARNING", + "description": "Warning" + } + ] + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "WarningList": { + "type": "array", + "description": "A list of warnings returned in the sucessful execution response of an API request.", + "items": { + "$ref": "#\/components\/schemas\/Warning" + } + }, + "Warning": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An warning code that identifies the type of warning that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the warning condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or address the warning." + } + }, + "description": "Warning returned when the request is successful, but there are important callouts based on which API clients should take defined actions." + }, + "RangeSlotCapacityErrors": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The error response schema for the `getRangeSlotCapacity` operation." + }, + "RangeSlotCapacity": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource Identifier." + }, + "capacities": { + "type": "array", + "description": "Array of range capacities where each entry is for a specific capacity type.", + "items": { + "$ref": "#\/components\/schemas\/RangeCapacity" + } + }, + "nextPageToken": { + "type": "string", + "description": "Next page token, if there are more pages." + } + }, + "description": "Response schema for the `getRangeSlotCapacity` operation." + }, + "RangeCapacity": { + "type": "object", + "properties": { + "capacityType": { + "$ref": "#\/components\/schemas\/CapacityType" + }, + "slots": { + "type": "array", + "description": "Array of capacity slots in range slot format.", + "items": { + "$ref": "#\/components\/schemas\/RangeSlot" + } + } + }, + "description": "Range capacity entity where each entry has a capacity type and corresponding slots." + }, + "RangeSlot": { + "type": "object", + "properties": { + "startDateTime": { + "type": "string", + "description": "Start date time of slot in ISO 8601 format with precision of seconds.", + "format": "date-time" + }, + "endDateTime": { + "type": "string", + "description": "End date time of slot in ISO 8601 format with precision of seconds.", + "format": "date-time" + }, + "capacity": { + "type": "integer", + "description": "Capacity of the slot.", + "format": "int32" + } + }, + "description": "Capacity slots represented in a format similar to availability rules." + }, + "FixedSlotCapacityErrors": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The error response schema for the `getFixedSlotCapacity` operation." + }, + "FixedSlotCapacity": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource Identifier." + }, + "slotDuration": { + "multipleOf": 5, + "type": "number", + "description": "The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360.", + "format": "int32" + }, + "capacities": { + "type": "array", + "description": "Array of capacity slots in fixed slot format.", + "items": { + "$ref": "#\/components\/schemas\/FixedSlot" + } + }, + "nextPageToken": { + "type": "string", + "description": "Next page token, if there are more pages." + } + }, + "description": "Response schema for the `getFixedSlotCapacity` operation." + }, + "FixedSlot": { + "type": "object", + "properties": { + "startDateTime": { + "type": "string", + "description": "Start date time of slot in ISO 8601 format with precision of seconds.", + "format": "date-time" + }, + "scheduledCapacity": { + "type": "integer", + "description": "Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.", + "format": "int32" + }, + "availableCapacity": { + "type": "integer", + "description": "Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.", + "format": "int32" + }, + "encumberedCapacity": { + "type": "integer", + "description": "Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs\/Appointments\/Orders.", + "format": "int32" + }, + "reservedCapacity": { + "type": "integer", + "description": "Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks\/Leaves\/Lunch.", + "format": "int32" + } + }, + "description": "In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration." + }, + "UpdateScheduleResponse": { + "type": "object", + "properties": { + "payload": { + "type": "array", + "description": "Contains the `UpdateScheduleRecords` for which the error\/warning has occurred.", + "items": { + "$ref": "#\/components\/schemas\/UpdateScheduleRecord" + } + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `updateSchedule` operation." + }, + "SetAppointmentFulfillmentDataRequest": { + "type": "object", + "properties": { + "fulfillmentTime": { + "$ref": "#\/components\/schemas\/FulfillmentTime" + }, + "appointmentResources": { + "$ref": "#\/components\/schemas\/AppointmentResources" + }, + "fulfillmentDocuments": { + "$ref": "#\/components\/schemas\/FulfillmentDocuments" + } + }, + "description": "Input for set appointment fulfillment data operation." + }, + "FulfillmentTime": { + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "The date, time in UTC of the fulfillment start time in ISO 8601 format.", + "format": "date-time" + }, + "endTime": { + "type": "string", + "description": "The date, time in UTC of the fulfillment end time in ISO 8601 format.", + "format": "date-time" + } + }, + "description": "Input for fulfillment time details" + }, + "FulfillmentDocuments": { + "type": "array", + "description": "List of documents captured during service appointment fulfillment.", + "items": { + "$ref": "#\/components\/schemas\/FulfillmentDocument" + } + }, + "FulfillmentDocument": { + "type": "object", + "properties": { + "uploadDestinationId": { + "type": "string", + "description": "The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API." + }, + "contentSha256": { + "type": "string", + "description": "Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit." + } + }, + "description": "Document that captured during service appointment fulfillment that portrays proof of completion" + }, + "AppointmentResources": { + "type": "array", + "description": "List of resources that performs or performed job appointment fulfillment.", + "items": { + "$ref": "#\/components\/schemas\/AppointmentResource" + } + }, + "AppointmentResource": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "The resource identifier." + } + }, + "description": "The resource that performs or performed appointment fulfillment." + }, + "CreateReservationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CreateReservationRecord" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `createReservation` operation." + }, + "UpdateReservationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/UpdateReservationRecord" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `updateReservation` operation." + }, + "CancelReservationResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "Response schema for the `cancelReservation` operation." + }, + "DayOfWeek": { + "type": "string", + "description": "The day of the week.", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "MONDAY", + "description": "Monday." + }, + { + "value": "TUESDAY", + "description": "Tuesday." + }, + { + "value": "WEDNESDAY", + "description": "Wednesday." + }, + { + "value": "THURSDAY", + "description": "Thursday." + }, + { + "value": "FRIDAY", + "description": "Friday." + }, + { + "value": "SATURDAY", + "description": "Saturday." + }, + { + "value": "SUNDAY", + "description": "Sunday." + } + ] + }, + "Recurrence": { + "required": [ + "endTime" + ], + "type": "object", + "properties": { + "endTime": { + "type": "string", + "description": "End time of the recurrence.", + "format": "date-time" + }, + "daysOfWeek": { + "type": "array", + "description": "Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list.", + "items": { + "$ref": "#\/components\/schemas\/DayOfWeek" + } + }, + "daysOfMonth": { + "type": "array", + "description": "Days of the month when recurrence is valid.", + "items": { + "maximum": 31, + "minimum": 1, + "type": "integer" + } + } + }, + "description": "Repeated occurrence of an event in a time range." + }, + "AvailabilityRecord": { + "required": [ + "endTime", + "startTime" + ], + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "Denotes the time from when the resource is available in a day in ISO-8601 format.", + "format": "date-time" + }, + "endTime": { + "type": "string", + "description": "Denotes the time till when the resource is available in a day in ISO-8601 format.", + "format": "date-time" + }, + "recurrence": { + "$ref": "#\/components\/schemas\/Recurrence" + }, + "capacity": { + "minimum": 1, + "type": "integer", + "description": "Signifies the capacity of a resource which is available." + } + }, + "description": "`AvailabilityRecord` to represent the capacity of a resource over a time range." + }, + "AvailabilityRecords": { + "type": "array", + "description": "List of `AvailabilityRecord`s to represent the capacity of a resource over a time range.", + "items": { + "$ref": "#\/components\/schemas\/AvailabilityRecord" + } + }, + "Reservation": { + "required": [ + "availability", + "type" + ], + "type": "object", + "properties": { + "reservationId": { + "type": "string", + "description": "Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request." + }, + "type": { + "type": "string", + "description": "Type of reservation.", + "enum": [ + "APPOINTMENT", + "TRAVEL", + "VACATION", + "BREAK", + "TRAINING" + ], + "x-docgen-enum-table-extension": [ + { + "value": "APPOINTMENT", + "description": "Reduce resource (store) capacity because of an appointment." + }, + { + "value": "TRAVEL", + "description": "Reduce resource (store) capacity because technician(s) are travelling." + }, + { + "value": "VACATION", + "description": "Reduce resource (store) capacity because technician(s) are on vacation." + }, + { + "value": "BREAK", + "description": "Reduce resource (store) capacity because technician(s) are on break." + }, + { + "value": "TRAINING", + "description": "Reduce resource (store) capacity because technician(s) are in training." + } + ] + }, + "availability": { + "$ref": "#\/components\/schemas\/AvailabilityRecord" + } + }, + "description": "Reservation object reduces the capacity of a resource." + }, + "UpdateScheduleRecord": { + "type": "object", + "properties": { + "availability": { + "$ref": "#\/components\/schemas\/AvailabilityRecord" + }, + "warnings": { + "$ref": "#\/components\/schemas\/WarningList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "`UpdateScheduleRecord` entity contains the `AvailabilityRecord` if there is an error\/warning while performing the requested operation on it." + }, + "CreateReservationRecord": { + "type": "object", + "properties": { + "reservation": { + "$ref": "#\/components\/schemas\/Reservation" + }, + "warnings": { + "$ref": "#\/components\/schemas\/WarningList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "`CreateReservationRecord` entity contains the `Reservation` if there is an error\/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`." + }, + "UpdateReservationRecord": { + "type": "object", + "properties": { + "reservation": { + "$ref": "#\/components\/schemas\/Reservation" + }, + "warnings": { + "$ref": "#\/components\/schemas\/WarningList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "`UpdateReservationRecord` entity contains the `Reservation` if there is an error\/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`." + }, + "RangeSlotCapacityQuery": { + "required": [ + "endDateTime", + "startDateTime" + ], + "type": "object", + "properties": { + "capacityTypes": { + "type": "array", + "description": "An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`.", + "items": { + "$ref": "#\/components\/schemas\/CapacityType" + } + }, + "startDateTime": { + "type": "string", + "description": "Start date time from which the capacity slots are being requested in ISO 8601 format.", + "format": "date-time" + }, + "endDateTime": { + "type": "string", + "description": "End date time up to which the capacity slots are being requested in ISO 8601 format.", + "format": "date-time" + } + }, + "description": "Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried." + }, + "FixedSlotCapacityQuery": { + "required": [ + "endDateTime", + "startDateTime" + ], + "type": "object", + "properties": { + "capacityTypes": { + "type": "array", + "description": "An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`.", + "items": { + "$ref": "#\/components\/schemas\/CapacityType" + } + }, + "slotDuration": { + "multipleOf": 5, + "type": "number", + "description": "Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= `slotDuration` <= 360.", + "format": "int32" + }, + "startDateTime": { + "type": "string", + "description": "Start date time from which the capacity slots are being requested in ISO 8601 format.", + "format": "date-time" + }, + "endDateTime": { + "type": "string", + "description": "End date time up to which the capacity slots are being requested in ISO 8601 format.", + "format": "date-time" + } + }, + "description": "Request schema for the `getFixedSlotCapacity` operation. This schema is used to define the time range, capacity types and slot duration which are being queried." + }, + "UpdateScheduleRequest": { + "required": [ + "schedules" + ], + "type": "object", + "properties": { + "schedules": { + "$ref": "#\/components\/schemas\/AvailabilityRecords" + } + }, + "description": "Request schema for the `updateSchedule` operation." + }, + "CapacityType": { + "type": "string", + "description": "Type of capacity", + "enum": [ + "SCHEDULED_CAPACITY", + "AVAILABLE_CAPACITY", + "ENCUMBERED_CAPACITY", + "RESERVED_CAPACITY" + ], + "x-docgen-enum-table-extension": [ + { + "description": "This capacity represents the originally allocated capacity as per resource schedule.", + "value": "SCHEDULED_CAPACITY" + }, + { + "description": "This capacity represents the capacity available for allocation to reservations.", + "value": "AVAILABLE_CAPACITY" + }, + { + "description": "This capacity represents the capacity allocated for Amazon Jobs\/Appointments\/Orders.", + "value": "ENCUMBERED_CAPACITY" + }, + { + "description": "This capacity represents the capacity made unavailable due to events like Breaks\/Leaves\/Lunch.", + "value": "RESERVED_CAPACITY" + } + ] + }, + "CreateReservationRequest": { + "required": [ + "reservation", + "resourceId" + ], + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource (store) identifier." + }, + "reservation": { + "$ref": "#\/components\/schemas\/Reservation" + } + }, + "description": "Request schema for the `createReservation` operation." + }, + "UpdateReservationRequest": { + "required": [ + "reservation", + "resourceId" + ], + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "Resource (store) identifier." + }, + "reservation": { + "$ref": "#\/components\/schemas\/Reservation" + } + }, + "description": "Request schema for the `updateReservation` operation." + }, + "GetAppointmentSlotsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/AppointmentSlotReport" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response of fetching appointment slots based on service context." + }, + "AppointmentSlotReport": { + "type": "object", + "properties": { + "schedulingType": { + "type": "string", + "description": "Defines the type of slots.", + "enum": [ + "REAL_TIME_SCHEDULING", + "NON_REAL_TIME_SCHEDULING" + ], + "x-docgen-enum-table-extension": [ + { + "value": "REAL_TIME_SCHEDULING", + "description": "The slots provided are backed by inventory in inventory management system." + }, + { + "value": "NON_REAL_TIME_SCHEDULING", + "description": "The slots provided are based on working hours defined in seller management system." + } + ] + }, + "startTime": { + "type": "string", + "description": "Start Time from which the appointment slots are generated in ISO 8601 format.", + "format": "date-time" + }, + "endTime": { + "type": "string", + "description": "End Time up to which the appointment slots are generated in ISO 8601 format.", + "format": "date-time" + }, + "appointmentSlots": { + "type": "array", + "description": "A list of time windows along with associated capacity in which the service can be performed.", + "items": { + "$ref": "#\/components\/schemas\/AppointmentSlot" + } + } + }, + "description": "Availability information as per the service context queried." + }, + "AppointmentSlot": { + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "Time window start time in ISO 8601 format.", + "format": "date-time" + }, + "endTime": { + "type": "string", + "description": "Time window end time in ISO 8601 format.", + "format": "date-time" + }, + "capacity": { + "minimum": 0, + "type": "integer", + "description": "Number of resources for which a slot can be reserved." + } + }, + "description": "A time window along with associated capacity in which the service can be performed." + }, + "ServiceUploadDocument": { + "required": [ + "contentLength", + "contentType" + ], + "type": "object", + "properties": { + "contentType": { + "type": "string", + "description": "The content type of the to-be-uploaded file", + "enum": [ + "TIFF", + "JPG", + "PNG", + "JPEG", + "GIF", + "PDF" + ], + "x-docgen-enum-table-extension": [ + { + "value": "TIFF", + "description": "To be uploaded POA is of type image\/tiff." + }, + { + "value": "JPG", + "description": "To be uploaded POA is of type image\/jpg." + }, + { + "value": "PNG", + "description": "To be uploaded POA is of type image\/png." + }, + { + "value": "JPEG", + "description": "To be uploaded POA is of type image\/jpeg." + }, + { + "value": "GIF", + "description": "To be uploaded POA is of type image\/gif." + }, + { + "value": "PDF", + "description": "To be uploaded POA is of type application\/pdf." + } + ] + }, + "contentLength": { + "maximum": 5242880, + "minimum": 1, + "type": "number", + "description": "The content length of the to-be-uploaded file", + "format": "int64" + }, + "contentMD5": { + "pattern": "^[A-Za-z0-9\\\\+\/]{22}={2}$", + "type": "string", + "description": "An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit." + } + }, + "description": "Input for to be uploaded document." + }, + "CreateServiceDocumentUploadDestination": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ServiceDocumentUploadDestination" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the `createServiceDocumentUploadDestination` operation." + }, + "ServiceDocumentUploadDestination": { + "required": [ + "encryptionDetails", + "uploadDestinationId", + "url" + ], + "type": "object", + "properties": { + "uploadDestinationId": { + "type": "string", + "description": "The unique identifier to be used by APIs that reference the upload destination." + }, + "url": { + "type": "string", + "description": "The URL to which to upload the file." + }, + "encryptionDetails": { + "$ref": "#\/components\/schemas\/EncryptionDetails" + }, + "headers": { + "type": "object", + "properties": {}, + "description": "The headers to include in the upload request." + } + }, + "description": "Information about an upload destination." + }, + "EncryptionDetails": { + "required": [ + "initializationVector", + "key", + "standard" + ], + "type": "object", + "properties": { + "standard": { + "type": "string", + "description": "The encryption standard required to encrypt or decrypt the document contents.", + "enum": [ + "AES" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AES", + "description": "The Advanced Encryption Standard (AES)." + } + ] + }, + "initializationVector": { + "type": "string", + "description": "The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC)." + }, + "key": { + "type": "string", + "description": "The encryption key used to encrypt or decrypt the document contents." + } + }, + "description": "Encryption details for required client-side encryption and decryption of document contents." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/shipment-invoicing/v0.json b/resources/models/seller/shipment-invoicing/v0.json new file mode 100644 index 000000000..9759ac2a6 --- /dev/null +++ b/resources/models/seller/shipment-invoicing/v0.json @@ -0,0 +1,1342 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Shipment Invoicing", + "description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner\u2019s Fulfillment by Amazon (FBA) orders.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v0" + }, + "servers": [ + { + "url": "\/" + } + ], + "paths": { + "\/fba\/outbound\/brazil\/v0\/shipments\/{shipmentId}": { + "get": { + "tags": [ + "ShipmentInvoicingV0" + ], + "description": "Returns the shipment details required to issue an invoice for the specified shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1.133 | 25 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipmentDetails", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "WarehouseId": "wID1234", + "AmazonOrderId": "222-333-4444333", + "AmazonShipmentId": "F4385943758", + "PurchaseDate": "2020-10-07T17:36:47.470Z", + "ShippingAddress": { + "Name": "User Address1", + "AddressLine1": "123 any st", + "City": "Ann Arbor", + "County": "Washtenaw", + "StateOrRegion": "MI", + "PostalCode": "48104", + "CountryCode": "US", + "Phone": "333-444-5555", + "AddressType": "Residential" + }, + "PaymentMethodDetails": [ + "GiftCertificate" + ], + "MarketplaceId": "ATV943520DER", + "SellerId": "TEST34509GOGM", + "BuyerName": "1", + "BuyerCounty": "Washtenaw", + "BuyerTaxInfo": { + "CompanyLegalName": "Buyer Company", + "TaxingRegion": "MI", + "TaxClassifications": [ + { + "Name": "Millage", + "Value": "10" + } + ] + }, + "MarketplaceTaxInfo": { + "CompanyLegalName": "Seller Legal Company Name", + "TaxingRegion": "SP", + "TaxClassifications": [ + { + "Name": "CNPJ", + "Value": "15436940000103" + } + ] + }, + "SellerDisplayName": "Seller Display Name in the marketplace", + "ShipmentItems": [ + { + "ASIN": "BKUO9348543", + "SellerSKU": "BKUO9348543SKU", + "OrderItemId": "23423424", + "Title": "Pencil", + "QuantityOrdered": 1, + "ItemPrice": { + "CurrencyCode": "USD", + "Amount": "100" + }, + "ShippingPrice": { + "CurrencyCode": "USD", + "Amount": "20" + }, + "GiftWrapPrice": { + "CurrencyCode": "USD", + "Amount": "1" + }, + "ShippingDiscount": { + "CurrencyCode": "USD", + "Amount": "10" + }, + "PromotionDiscount": { + "CurrencyCode": "USD", + "Amount": "10" + }, + "SerialNumbers": [ + "23424", + "23423" + ] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BadShipId" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Shipment ID", + "details": "'BadShipId' is an invalid ShipmentID" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + } + } + } + }, + "\/fba\/outbound\/brazil\/v0\/shipments\/{shipmentId}\/invoice": { + "post": { + "tags": [ + "ShipmentInvoicingV0" + ], + "description": "Submits a shipment invoice document for a given shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1.133 | 25 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitInvoice", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The identifier for the shipment.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + }, + "body": { + "value": { + "InvoiceContent": "SGF2ZSB0byBkZWFsIHdpdGggQmFzZTY0IGZvcm1hdD8=", + "ContentMD5Value": "9906bd8f227f6a43f1e27db4b9258ad4" + } + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BadIDForShipment" + }, + "body": { + "value": { + "InvoiceContent": "NonBase64EncodedValue", + "ContentMD5Value": "8f6df519a2125946820bc34a561164c2" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Shipment ID is invalid", + "details": "InvoiceContent fails encoding. Shipment 'BadIDForShipment' does not exist" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/fba\/outbound\/brazil\/v0\/shipments\/{shipmentId}\/invoice\/status": { + "get": { + "tags": [ + "ShipmentInvoicingV0" + ], + "description": "Returns the invoice status for the shipment you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1.133 | 25 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getInvoiceStatus", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The shipment identifier for the shipment.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "shipmentId1" + } + } + }, + "response": { + "payload": { + "Shipments": { + "AmazonShipmentId": "shipmentId1", + "InvoiceStatus": "Accepted" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "BadShipId" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Shipment ID", + "details": "'BadShipId' is an invalid ShipmentID" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetInvoiceStatusResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetShipmentDetailsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ShipmentDetail" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShipmentDetails operation." + }, + "ShipmentDetail": { + "type": "object", + "properties": { + "WarehouseId": { + "type": "string", + "description": "The Amazon-defined identifier for the warehouse." + }, + "AmazonOrderId": { + "type": "string", + "description": "The Amazon-defined identifier for the order." + }, + "AmazonShipmentId": { + "type": "string", + "description": "The Amazon-defined identifier for the shipment." + }, + "PurchaseDate": { + "type": "string", + "description": "The date and time when the order was created.", + "format": "date-time" + }, + "ShippingAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "PaymentMethodDetails": { + "$ref": "#\/components\/schemas\/PaymentMethodDetailItemList" + }, + "MarketplaceId": { + "type": "string", + "description": "The identifier for the marketplace where the order was placed." + }, + "SellerId": { + "type": "string", + "description": "The seller identifier." + }, + "BuyerName": { + "type": "string", + "description": "The name of the buyer." + }, + "BuyerCounty": { + "type": "string", + "description": "The county of the buyer." + }, + "BuyerTaxInfo": { + "$ref": "#\/components\/schemas\/BuyerTaxInfo" + }, + "MarketplaceTaxInfo": { + "$ref": "#\/components\/schemas\/MarketplaceTaxInfo" + }, + "SellerDisplayName": { + "type": "string", + "description": "The seller\u2019s friendly name registered in the marketplace." + }, + "ShipmentItems": { + "$ref": "#\/components\/schemas\/ShipmentItems" + } + }, + "description": "The information required by a selling partner to issue a shipment invoice." + }, + "Address": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "The name." + }, + "AddressLine1": { + "type": "string", + "description": "The street address." + }, + "AddressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "AddressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "City": { + "type": "string", + "description": "The city." + }, + "County": { + "type": "string", + "description": "The county." + }, + "District": { + "type": "string", + "description": "The district." + }, + "StateOrRegion": { + "type": "string", + "description": "The state or region." + }, + "PostalCode": { + "type": "string", + "description": "The postal code." + }, + "CountryCode": { + "type": "string", + "description": "The country code." + }, + "Phone": { + "type": "string", + "description": "The phone number." + }, + "AddressType": { + "$ref": "#\/components\/schemas\/AddressTypeEnum" + } + }, + "description": "The shipping address details of the shipment." + }, + "AddressTypeEnum": { + "type": "string", + "description": "The shipping address type.", + "enum": [ + "Residential", + "Commercial" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Residential", + "description": "The address type is residential." + }, + { + "value": "Commercial", + "description": "The address type is commercial." + } + ] + }, + "PaymentMethodDetailItemList": { + "type": "array", + "description": "The list of payment method details.", + "items": { + "type": "string" + } + }, + "BuyerTaxInfo": { + "type": "object", + "properties": { + "CompanyLegalName": { + "type": "string", + "description": "The legal name of the company." + }, + "TaxingRegion": { + "type": "string", + "description": "The country or region imposing the tax." + }, + "TaxClassifications": { + "$ref": "#\/components\/schemas\/TaxClassificationList" + } + }, + "description": "Tax information about the buyer." + }, + "MarketplaceTaxInfo": { + "type": "object", + "properties": { + "CompanyLegalName": { + "type": "string", + "description": "The legal name of the company." + }, + "TaxingRegion": { + "type": "string", + "description": "The country or region imposing the tax." + }, + "TaxClassifications": { + "$ref": "#\/components\/schemas\/TaxClassificationList" + } + }, + "description": "Tax information about the marketplace." + }, + "TaxClassificationList": { + "type": "array", + "description": "The list of tax classifications.", + "items": { + "$ref": "#\/components\/schemas\/TaxClassification" + } + }, + "TaxClassification": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "The type of tax." + }, + "Value": { + "type": "string", + "description": "The entity's tax identifier." + } + }, + "description": "The tax classification for the entity." + }, + "ShipmentItems": { + "type": "array", + "description": "A list of shipment items.", + "items": { + "$ref": "#\/components\/schemas\/ShipmentItem" + } + }, + "ShipmentItem": { + "type": "object", + "properties": { + "ASIN": { + "type": "string", + "description": "The Amazon Standard Identification Number (ASIN) of the item." + }, + "SellerSKU": { + "type": "string", + "description": "The seller SKU of the item." + }, + "OrderItemId": { + "type": "string", + "description": "The Amazon-defined identifier for the order item." + }, + "Title": { + "type": "string", + "description": "The name of the item." + }, + "QuantityOrdered": { + "type": "number", + "description": "The number of items ordered." + }, + "ItemPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "GiftWrapPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "ShippingDiscount": { + "$ref": "#\/components\/schemas\/Money" + }, + "PromotionDiscount": { + "$ref": "#\/components\/schemas\/Money" + }, + "SerialNumbers": { + "$ref": "#\/components\/schemas\/SerialNumbersList" + } + }, + "description": "The shipment item information required by a seller to issue a shipment invoice." + }, + "Money": { + "type": "object", + "properties": { + "CurrencyCode": { + "type": "string", + "description": "Three-digit currency code in ISO 4217 format." + }, + "Amount": { + "type": "string", + "description": "The currency amount." + } + }, + "description": "The currency type and amount." + }, + "SerialNumbersList": { + "type": "array", + "description": "The list of serial numbers.", + "items": { + "type": "string" + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "An error response returned when the request is unsuccessful." + }, + "SubmitInvoiceRequest": { + "required": [ + "ContentMD5Value", + "InvoiceContent" + ], + "type": "object", + "properties": { + "InvoiceContent": { + "$ref": "#\/components\/schemas\/Blob" + }, + "MarketplaceId": { + "type": "string", + "description": "An Amazon marketplace identifier." + }, + "ContentMD5Value": { + "type": "string", + "description": "MD5 sum for validating the invoice data. For more information about calculating this value, see [Working with Content-MD5 Checksums](https:\/\/docs.developer.amazonservices.com\/en_US\/dev_guide\/DG_MD5.html)." + } + }, + "description": "The request schema for the submitInvoice operation." + }, + "Blob": { + "type": "string", + "description": "Shipment invoice document content.", + "format": "byte" + }, + "SubmitInvoiceResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitInvoice operation." + }, + "ShipmentInvoiceStatusInfo": { + "type": "object", + "properties": { + "AmazonShipmentId": { + "type": "string", + "description": "The Amazon-defined shipment identifier." + }, + "InvoiceStatus": { + "$ref": "#\/components\/schemas\/ShipmentInvoiceStatus" + } + }, + "description": "The shipment invoice status information." + }, + "ShipmentInvoiceStatus": { + "type": "string", + "description": "The shipment invoice status.", + "enum": [ + "Processing", + "Accepted", + "Errored", + "NotFound" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Processing", + "description": "The invoice validation process is in progress." + }, + { + "value": "Accepted", + "description": "The invoice validation process succeeded, and the invoice was successfully ingested." + }, + { + "value": "Errored", + "description": "The invoice validation process failed." + }, + { + "value": "NotFound", + "description": "The requested invoice was not found." + } + ] + }, + "ShipmentInvoiceStatusResponse": { + "type": "object", + "properties": { + "Shipments": { + "$ref": "#\/components\/schemas\/ShipmentInvoiceStatusInfo" + } + }, + "description": "The shipment invoice status response." + }, + "GetInvoiceStatusResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ShipmentInvoiceStatusResponse" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getInvoiceStatus operation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/shipping/v1.json b/resources/models/seller/shipping/v1.json new file mode 100644 index 000000000..332a4f0fa --- /dev/null +++ b/resources/models/seller/shipping/v1.json @@ -0,0 +1,4286 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Shipping", + "description": "Provides programmatic access to Amazon Shipping APIs.\n\n **Note:** If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2)<\/a> on the Amazon Shipping Developer Documentation<\/a> site.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/shipping\/v1\/shipments": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Create a new shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createShipment", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + }, + "example": { + "shipmentId": "89108749065090", + "eligibleRates": [ + { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.25, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + }, + "rateId": "RI123456", + "expirationTime": "2018-08-22T09:22:30.737Z" + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_200" + } + } + } + }, + "response": { + "payload": { + "shipmentId": "TEST_CASE_200", + "eligibleRates": [ + { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.25, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + }, + "rateId": "RI123456", + "expirationTime": "2018-08-22T09:22:30.737Z" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_400" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_401" + } + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_403" + } + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_404" + } + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_429" + } + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_500" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_503" + } + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v1\/shipments\/{shipmentId}": { + "get": { + "tags": [ + "ShippingV1" + ], + "description": "Return the entire shipment object for the shipmentId.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + }, + "example": { + "shipmentId": "89108749065090", + "clientReferenceId": "911-7267646-6348616", + "shipFrom": {}, + "shipTo": {}, + "acceptedRate": { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "shipper": { + "accountId": "2755049166" + }, + "containers": [ + { + "containerReferenceId": "CRI123456789", + "items": [ + { + "title": "String", + "unitWeight": { + "value": 0.08164656, + "unit": "kg" + }, + "quantity": 2, + "unitPrice": { + "value": 14.99, + "unit": "GBP" + } + } + ], + "dimensions": { + "height": 12, + "length": 36, + "width": 31, + "unit": "CM" + }, + "containerType": "PACKAGE", + "weight": { + "unit": "kg", + "value": 4 + }, + "value": { + "value": 29.98, + "unit": "GBP" + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "shipmentId": "TEST_CASE_200", + "clientReferenceId": "911-7267646-6348616", + "shipFrom": {}, + "shipTo": {}, + "acceptedRate": { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "shipper": { + "accountId": "2755049166" + }, + "containers": [ + { + "containerReferenceId": "CRI123456789", + "items": [ + { + "title": "String", + "unitWeight": { + "value": 0.08164656, + "unit": "kg" + }, + "quantity": 2, + "unitPrice": { + "value": 14.99, + "unit": "GBP" + } + } + ], + "dimensions": { + "height": 12, + "length": 36, + "width": 31, + "unit": "CM" + }, + "containerType": "PACKAGE", + "weight": { + "unit": "kg", + "value": 4 + }, + "value": { + "value": 29.98, + "unit": "GBP" + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_401" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_403" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_404" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_429" + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_500" + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_503" + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + } + } + }, + "\/shipping\/v1\/shipments\/{shipmentId}\/cancel": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Cancel a shipment by the given shipmentId.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "cancelShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_200" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_401" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_403" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_404" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_429" + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_500" + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_503" + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + } + } + }, + "\/shipping\/v1\/shipments\/{shipmentId}\/purchaseLabels": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Purchase shipping labels based on a given rate.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "purchaseLabels", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + }, + "example": { + "shipmentId": "89108749065090", + "clientReferenceId": "911-7267646-6348616", + "acceptedRate": { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "labelResults": [ + { + "containerReferenceId": "CRI123456789", + "trackingId": "1512748795322", + "label": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "shipmentId": "TEST_CASE_200", + "clientReferenceId": "911-7267646-6348616", + "acceptedRate": { + "billedWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "labelResults": [ + { + "containerReferenceId": "CRI123456789", + "trackingId": "1512748795322", + "label": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_401" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_403" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_404" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_429" + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_500" + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_503" + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v1\/shipments\/{shipmentId}\/containers\/{trackingId}\/label": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Retrieve shipping label based on the shipment id and tracking id.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "retrieveShippingLabel", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "trackingId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + }, + "example": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid input." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_401" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_403" + } + } + }, + "response": { + "errors": [ + { + "code": "Unauthorized", + "message": "Access to requested resource is denied." + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_404" + } + } + }, + "response": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource doesn't exist." + } + ] + } + } + ] + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_429" + } + } + }, + "response": { + "errors": [ + { + "code": "QuotaExceeded", + "message": "You exceeded your quota for the requested resource." + } + ] + } + } + ] + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_500" + } + } + }, + "response": { + "errors": [ + { + "code": "InternalFailure", + "message": "We encountered an internal error. Please try again." + } + ] + } + } + ] + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipmentId": { + "value": "TEST_CASE_503" + } + } + }, + "response": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service is temporarily unavailable. Please try again." + } + ] + } + } + ] + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v1\/purchaseShipment": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Purchase shipping labels.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "purchaseShipment", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + }, + "example": { + "shipmentId": "89108749065090", + "serviceRate": { + "billableWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "labelResults": [ + { + "containerReferenceId": "CRI123456789", + "trackingId": "1512748795322", + "label": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "clientReferenceId": "TEST_CASE_200" + } + } + } + }, + "response": { + "payload": { + "shipmentId": "TEST_CASE_200", + "serviceRate": { + "billableWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.5, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + }, + "labelResults": [ + { + "containerReferenceId": "CRI123456789", + "trackingId": "1512748795322", + "label": { + "labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)", + "labelSpecification": { + "labelFormat": "PNG", + "labelStockSize": "4x6" + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v1\/rates": { + "post": { + "tags": [ + "ShippingV1" + ], + "description": "Get service rates.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getRates", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + }, + "example": { + "serviceRates": [ + { + "billableWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.25, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "serviceRates": [ + { + "billableWeight": { + "value": 4, + "unit": "kg" + }, + "totalCharge": { + "value": 3.25, + "unit": "GBP" + }, + "serviceType": "Amazon Shipping Standard", + "promise": { + "deliveryWindow": { + "start": "2018-08-25T20:22:30.737Z", + "end": "2018-08-26T20:22:30.737Z" + }, + "receiveWindow": { + "start": "2018-08-23T09:22:30.737Z", + "end": "2018-08-23T11:22:30.737Z" + } + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request is missing or has invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v1\/account": { + "get": { + "tags": [ + "ShippingV1" + ], + "description": "Verify if the current account is valid.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 5 | 15 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getAccount", + "responses": { + "200": { + "description": "The account was valid.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + }, + "example": { + "accountId": "2755049166" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "accountId": "2755049166" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAccountResponse" + } + } + } + } + } + } + }, + "\/shipping\/v1\/tracking\/{trackingId}": { + "get": { + "tags": [ + "ShippingV1" + ], + "description": "Return the tracking information of a shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 1 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "operationId": "getTrackingInformation", + "parameters": [ + { + "name": "trackingId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + }, + "example": { + "trackingId": "89108749065090", + "eventHistory": [ + { + "eventCode": "Delivered", + "location": { + "city": "San Bernardino", + "countryCode": "US", + "stateOrRegion": "CA", + "postalCode": "92404" + }, + "eventTime": "2019-04-04T06:45:12Z" + } + ], + "promisedDeliveryDate": "2019-04-04T07:05:06Z", + "summary": { + "status": "Delivered" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "trackingId": { + "value": "TEST_CASE_200" + } + } + }, + "response": { + "payload": { + "trackingId": "TEST_CASE_200", + "eventHistory": [ + { + "eventCode": "Delivered", + "location": { + "city": "San Bernardino", + "countryCode": "US", + "stateOrRegion": "CA", + "postalCode": "92404" + }, + "eventTime": "2019-04-04T06:45:12Z" + } + ], + "promisedDeliveryDate": "2019-04-04T07:05:06Z", + "summary": { + "status": "Delivered" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "trackingId": { + "value": "TEST_CASE_400" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + }, + "403": { + "description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference id.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingInformationResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "AccountId": { + "maxLength": 10, + "type": "string", + "description": "This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process." + }, + "ShipmentId": { + "type": "string", + "description": "The unique shipment identifier." + }, + "ClientReferenceId": { + "maxLength": 40, + "type": "string", + "description": "Client reference id." + }, + "ContainerReferenceId": { + "maxLength": 40, + "type": "string", + "description": "An identifier for the container. This must be unique within all the containers in the same shipment." + }, + "EventCode": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "The event code of a shipment, such as Departed, Received, and ReadyForReceive." + }, + "StateOrRegion": { + "type": "string", + "description": "The state or region where the person, business or institution is located." + }, + "City": { + "maxLength": 50, + "minLength": 1, + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "CountryCode": { + "maxLength": 2, + "minLength": 2, + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "PostalCode": { + "maxLength": 20, + "minLength": 1, + "type": "string", + "description": "The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "Location": { + "type": "object", + "properties": { + "stateOrRegion": { + "$ref": "#\/components\/schemas\/StateOrRegion" + }, + "city": { + "$ref": "#\/components\/schemas\/City" + }, + "countryCode": { + "$ref": "#\/components\/schemas\/CountryCode" + }, + "postalCode": { + "$ref": "#\/components\/schemas\/PostalCode" + } + }, + "description": "The location where the person, business or institution is located." + }, + "Event": { + "required": [ + "eventCode", + "eventTime" + ], + "type": "object", + "properties": { + "eventCode": { + "$ref": "#\/components\/schemas\/EventCode" + }, + "eventTime": { + "type": "string", + "description": "The date and time of an event for a shipment.", + "format": "date-time" + }, + "location": { + "$ref": "#\/components\/schemas\/Location" + } + }, + "description": "An event of a shipment" + }, + "EventList": { + "type": "array", + "description": "A list of events of a shipment.", + "items": { + "$ref": "#\/components\/schemas\/Event" + } + }, + "TrackingId": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "The tracking id generated to each shipment. It contains a series of letters or digits or both." + }, + "TrackingSummary": { + "type": "object", + "properties": { + "status": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "The derived status based on the events in the eventHistory." + } + }, + "description": "The tracking summary." + }, + "PromisedDeliveryDate": { + "type": "string", + "description": "The promised delivery date and time of a shipment.", + "format": "date-time" + }, + "Address": { + "required": [ + "addressLine1", + "city", + "countryCode", + "name", + "postalCode", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 50, + "minLength": 1, + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "First line of that address." + }, + "addressLine2": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "Additional address information, if required." + }, + "stateOrRegion": { + "$ref": "#\/components\/schemas\/StateOrRegion" + }, + "city": { + "$ref": "#\/components\/schemas\/City" + }, + "countryCode": { + "$ref": "#\/components\/schemas\/CountryCode" + }, + "postalCode": { + "$ref": "#\/components\/schemas\/PostalCode" + }, + "email": { + "maxLength": 64, + "type": "string", + "description": "The email address of the contact associated with the address." + }, + "copyEmails": { + "maxItems": 2, + "type": "array", + "description": "The email cc addresses of the contact associated with the address.", + "items": { + "maxLength": 64, + "type": "string" + } + }, + "phoneNumber": { + "maxLength": 20, + "minLength": 1, + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "The address." + }, + "TimeRange": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "The start date and time. This defaults to the current date and time.", + "format": "date-time" + }, + "end": { + "type": "string", + "description": "The end date and time. This must come after the value of start. This defaults to the next business day from the start.", + "format": "date-time" + } + }, + "description": "The time range." + }, + "ShippingPromiseSet": { + "type": "object", + "properties": { + "deliveryWindow": { + "$ref": "#\/components\/schemas\/TimeRange" + }, + "receiveWindow": { + "$ref": "#\/components\/schemas\/TimeRange" + } + }, + "description": "The promised delivery time and pickup time." + }, + "ServiceType": { + "type": "string", + "description": "The type of shipping service that will be used for the service offering.", + "enum": [ + "Amazon Shipping Ground", + "Amazon Shipping Standard", + "Amazon Shipping Premium" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Amazon Shipping Ground", + "description": "Amazon Shipping Ground." + }, + { + "value": "Amazon Shipping Standard", + "description": "Amazon Shipping Standard." + }, + { + "value": "Amazon Shipping Premium", + "description": "Amazon Shipping Premium." + } + ] + }, + "ServiceTypeList": { + "type": "array", + "description": "A list of service types that can be used to send the shipment.", + "items": { + "$ref": "#\/components\/schemas\/ServiceType" + } + }, + "Rate": { + "type": "object", + "properties": { + "rateId": { + "type": "string", + "description": "An identifier for the rate." + }, + "totalCharge": { + "$ref": "#\/components\/schemas\/Currency" + }, + "billedWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "expirationTime": { + "type": "string", + "description": "The time after which the offering will expire.", + "format": "date-time" + }, + "serviceType": { + "$ref": "#\/components\/schemas\/ServiceType" + }, + "promise": { + "$ref": "#\/components\/schemas\/ShippingPromiseSet" + } + }, + "description": "The available rate that can be used to send the shipment" + }, + "RateList": { + "type": "array", + "description": "A list of all the available rates that can be used to send the shipment.", + "items": { + "$ref": "#\/components\/schemas\/Rate" + } + }, + "RateId": { + "type": "string", + "description": "An identifier for the rating." + }, + "AcceptedRate": { + "type": "object", + "properties": { + "totalCharge": { + "$ref": "#\/components\/schemas\/Currency" + }, + "billedWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "serviceType": { + "$ref": "#\/components\/schemas\/ServiceType" + }, + "promise": { + "$ref": "#\/components\/schemas\/ShippingPromiseSet" + } + }, + "description": "The specific rate purchased for the shipment, or null if unpurchased." + }, + "ServiceRate": { + "required": [ + "billableWeight", + "promise", + "serviceType", + "totalCharge" + ], + "type": "object", + "properties": { + "totalCharge": { + "$ref": "#\/components\/schemas\/Currency" + }, + "billableWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "serviceType": { + "$ref": "#\/components\/schemas\/ServiceType" + }, + "promise": { + "$ref": "#\/components\/schemas\/ShippingPromiseSet" + } + }, + "description": "The specific rate for a shipping service, or null if no service available." + }, + "ServiceRateList": { + "type": "array", + "description": "A list of service rates.", + "items": { + "$ref": "#\/components\/schemas\/ServiceRate" + } + }, + "Party": { + "type": "object", + "properties": { + "accountId": { + "$ref": "#\/components\/schemas\/AccountId" + } + }, + "description": "The account related with the shipment." + }, + "Currency": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "number", + "description": "The amount of currency." + }, + "unit": { + "maxLength": 3, + "minLength": 3, + "type": "string", + "description": "A 3-character currency code." + } + }, + "description": "The total value of all items in the container." + }, + "Dimensions": { + "required": [ + "height", + "length", + "unit", + "width" + ], + "type": "object", + "properties": { + "length": { + "type": "number", + "description": "The length of the container." + }, + "width": { + "type": "number", + "description": "The width of the container." + }, + "height": { + "type": "number", + "description": "The height of the container." + }, + "unit": { + "type": "string", + "description": "The unit of these measurements.", + "enum": [ + "IN", + "CM" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IN", + "description": "Inches" + }, + { + "value": "CM", + "description": "Centimeters" + } + ] + } + }, + "description": "A set of measurements for a three-dimensional object." + }, + "Weight": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "g", + "kg", + "oz", + "lb" + ], + "x-docgen-enum-table-extension": [ + { + "value": "g", + "description": "Grams" + }, + { + "value": "kg", + "description": "Kilograms" + }, + { + "value": "oz", + "description": "Ounces" + }, + { + "value": "lb", + "description": "Pounds" + } + ] + }, + "value": { + "type": "number", + "description": "The measurement value." + } + }, + "description": "The weight." + }, + "ContainerItem": { + "required": [ + "quantity", + "title", + "unitPrice", + "unitWeight" + ], + "type": "object", + "properties": { + "quantity": { + "type": "number", + "description": "The quantity of the items of this type in the container." + }, + "unitPrice": { + "$ref": "#\/components\/schemas\/Currency" + }, + "unitWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "title": { + "maxLength": 30, + "type": "string", + "description": "A descriptive title of the item." + } + }, + "description": "Item in the container." + }, + "Container": { + "required": [ + "containerReferenceId", + "dimensions", + "items", + "value", + "weight" + ], + "type": "object", + "properties": { + "containerType": { + "type": "string", + "description": "The type of physical container being used. (always 'PACKAGE')", + "enum": [ + "PACKAGE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PACKAGE", + "description": "PACKAGE" + } + ] + }, + "containerReferenceId": { + "$ref": "#\/components\/schemas\/ContainerReferenceId" + }, + "value": { + "$ref": "#\/components\/schemas\/Currency" + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "items": { + "type": "array", + "description": "A list of the items in the container.", + "items": { + "$ref": "#\/components\/schemas\/ContainerItem" + } + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + } + }, + "description": "Container in the shipment." + }, + "ContainerList": { + "type": "array", + "description": "A list of container.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + }, + "ContainerSpecification": { + "required": [ + "dimensions", + "weight" + ], + "type": "object", + "properties": { + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + } + }, + "description": "Container specification for checking the service rate." + }, + "ContainerSpecificationList": { + "type": "array", + "description": "A list of container specifications.", + "items": { + "$ref": "#\/components\/schemas\/ContainerSpecification" + } + }, + "Label": { + "type": "object", + "properties": { + "labelStream": { + "$ref": "#\/components\/schemas\/LabelStream" + }, + "labelSpecification": { + "$ref": "#\/components\/schemas\/LabelSpecification" + } + }, + "description": "The label details of the container." + }, + "LabelResult": { + "type": "object", + "properties": { + "containerReferenceId": { + "$ref": "#\/components\/schemas\/ContainerReferenceId" + }, + "trackingId": { + "type": "string", + "description": "The tracking identifier assigned to the container." + }, + "label": { + "$ref": "#\/components\/schemas\/Label" + } + }, + "description": "Label details including label stream, format, size." + }, + "LabelResultList": { + "type": "array", + "description": "A list of label results", + "items": { + "$ref": "#\/components\/schemas\/LabelResult" + } + }, + "LabelStream": { + "type": "string", + "description": "Contains binary image data encoded as a base-64 string." + }, + "LabelSpecification": { + "required": [ + "labelFormat", + "labelStockSize" + ], + "type": "object", + "properties": { + "labelFormat": { + "type": "string", + "description": "The format of the label. Enum of PNG only for now.", + "enum": [ + "PNG" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PNG", + "description": "PNG" + } + ] + }, + "labelStockSize": { + "type": "string", + "description": "The label stock size specification in length and height. Enum of 4x6 only for now.", + "enum": [ + "4x6" + ], + "x-docgen-enum-table-extension": [ + { + "value": "4x6", + "description": "4x6" + } + ] + } + }, + "description": "The label specification info." + }, + "CreateShipmentRequest": { + "required": [ + "clientReferenceId", + "containers", + "shipFrom", + "shipTo" + ], + "type": "object", + "properties": { + "clientReferenceId": { + "$ref": "#\/components\/schemas\/ClientReferenceId" + }, + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "containers": { + "$ref": "#\/components\/schemas\/ContainerList" + } + }, + "description": "The request schema for the createShipment operation." + }, + "PurchaseLabelsRequest": { + "required": [ + "labelSpecification", + "rateId" + ], + "type": "object", + "properties": { + "rateId": { + "$ref": "#\/components\/schemas\/RateId" + }, + "labelSpecification": { + "$ref": "#\/components\/schemas\/LabelSpecification" + } + }, + "description": "The request schema for the purchaseLabels operation." + }, + "RetrieveShippingLabelRequest": { + "required": [ + "labelSpecification" + ], + "type": "object", + "properties": { + "labelSpecification": { + "$ref": "#\/components\/schemas\/LabelSpecification" + } + }, + "description": "The request schema for the retrieveShippingLabel operation." + }, + "GetRatesRequest": { + "required": [ + "containerSpecifications", + "serviceTypes", + "shipFrom", + "shipTo" + ], + "type": "object", + "properties": { + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "serviceTypes": { + "$ref": "#\/components\/schemas\/ServiceTypeList" + }, + "shipDate": { + "type": "string", + "description": "The start date and time. This defaults to the current date and time.", + "format": "date-time" + }, + "containerSpecifications": { + "$ref": "#\/components\/schemas\/ContainerSpecificationList" + } + }, + "description": "The payload schema for the getRates operation." + }, + "PurchaseShipmentRequest": { + "required": [ + "clientReferenceId", + "containers", + "labelSpecification", + "serviceType", + "shipFrom", + "shipTo" + ], + "type": "object", + "properties": { + "clientReferenceId": { + "$ref": "#\/components\/schemas\/ClientReferenceId" + }, + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipDate": { + "type": "string", + "description": "The start date and time. This defaults to the current date and time.", + "format": "date-time" + }, + "serviceType": { + "$ref": "#\/components\/schemas\/ServiceType" + }, + "containers": { + "$ref": "#\/components\/schemas\/ContainerList" + }, + "labelSpecification": { + "$ref": "#\/components\/schemas\/LabelSpecification" + } + }, + "description": "The payload schema for the purchaseShipment operation." + }, + "CreateShipmentResult": { + "required": [ + "eligibleRates", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "eligibleRates": { + "$ref": "#\/components\/schemas\/RateList" + } + }, + "description": "The payload schema for the createShipment operation." + }, + "Shipment": { + "required": [ + "clientReferenceId", + "containers", + "shipFrom", + "shipTo", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "clientReferenceId": { + "$ref": "#\/components\/schemas\/ClientReferenceId" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "acceptedRate": { + "$ref": "#\/components\/schemas\/AcceptedRate" + }, + "shipper": { + "$ref": "#\/components\/schemas\/Party" + }, + "containers": { + "$ref": "#\/components\/schemas\/ContainerList" + } + }, + "description": "The shipment related data." + }, + "PurchaseLabelsResult": { + "required": [ + "acceptedRate", + "labelResults", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "clientReferenceId": { + "$ref": "#\/components\/schemas\/ClientReferenceId" + }, + "acceptedRate": { + "$ref": "#\/components\/schemas\/AcceptedRate" + }, + "labelResults": { + "$ref": "#\/components\/schemas\/LabelResultList" + } + }, + "description": "The payload schema for the purchaseLabels operation." + }, + "RetrieveShippingLabelResult": { + "required": [ + "labelSpecification", + "labelStream" + ], + "type": "object", + "properties": { + "labelStream": { + "$ref": "#\/components\/schemas\/LabelStream" + }, + "labelSpecification": { + "$ref": "#\/components\/schemas\/LabelSpecification" + } + }, + "description": "The payload schema for the retrieveShippingLabel operation." + }, + "Account": { + "required": [ + "accountId" + ], + "type": "object", + "properties": { + "accountId": { + "$ref": "#\/components\/schemas\/AccountId" + } + }, + "description": "The account related data." + }, + "GetRatesResult": { + "required": [ + "serviceRates" + ], + "type": "object", + "properties": { + "serviceRates": { + "$ref": "#\/components\/schemas\/ServiceRateList" + } + }, + "description": "The payload schema for the getRates operation." + }, + "PurchaseShipmentResult": { + "required": [ + "labelResults", + "serviceRate", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "serviceRate": { + "$ref": "#\/components\/schemas\/ServiceRate" + }, + "labelResults": { + "$ref": "#\/components\/schemas\/LabelResultList" + } + }, + "description": "The payload schema for the purchaseShipment operation." + }, + "TrackingInformation": { + "required": [ + "eventHistory", + "promisedDeliveryDate", + "summary", + "trackingId" + ], + "type": "object", + "properties": { + "trackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + }, + "summary": { + "$ref": "#\/components\/schemas\/TrackingSummary" + }, + "promisedDeliveryDate": { + "$ref": "#\/components\/schemas\/PromisedDeliveryDate" + }, + "eventHistory": { + "$ref": "#\/components\/schemas\/EventList" + } + }, + "description": "The payload schema for the getTrackingInformation operation." + }, + "CreateShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CreateShipmentResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createShipment operation." + }, + "GetShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Shipment" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShipment operation." + }, + "GetRatesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetRatesResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getRates operation." + }, + "PurchaseShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the purchaseShipment operation." + }, + "CancelShipmentResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the cancelShipment operation." + }, + "PurchaseLabelsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PurchaseLabelsResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the purchaseLabels operation." + }, + "RetrieveShippingLabelResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/RetrieveShippingLabelResult" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the retrieveShippingLabel operation." + }, + "GetAccountResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Account" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getAccount operation." + }, + "GetTrackingInformationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TrackingInformation" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getTrackingInformation operation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/shipping/v2.json b/resources/models/seller/shipping/v2.json new file mode 100644 index 000000000..acf232132 --- /dev/null +++ b/resources/models/seller/shipping/v2.json @@ -0,0 +1,4787 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Amazon Shipping API", + "description": "The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels\/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.", + "contact": { + "name": "Amazon Shipping API Support", + "email": "[email\u00a0protected]" + }, + "license": { + "name": "Amazon Software License", + "url": "https:\/\/aws.amazon.com\/asl\/" + }, + "version": "v2" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-eu.amazon.com\/" + } + ], + "paths": { + "\/shipping\/v2\/shipments\/rates": { + "post": { + "tags": [ + "ShippingV2" + ], + "description": "Returns the available shipping service offerings.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getRates", + "parameters": [ + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetRatesResponse" + }, + "example": { + "requestToken": "6DCCEDD3FF961C15FEB94F342D41C", + "rates": [ + { + "rateId": "F4B68849F969E239FF9FCA9C12E35", + "carrierId": "FOOSHIPGRD", + "carrierName": "FOO SHIP GRD", + "billedWeight": { + "value": 5, + "unit": "GRAMS" + }, + "totalCharge": { + "value": 7, + "unit": "USD" + }, + "serviceId": "FOORSID", + "serviceName": "FOO RS ID", + "promise": { + "deliveryWindow": { + "start": "2018-08-24T08:22:30.737Z", + "end": "2018-08-24T20:22:30.737Z" + }, + "pickupWindow": { + "start": "2018-08-23T08:22:30.737Z", + "end": "2018-08-23T20:22:30.737Z" + } + }, + "supportedDocumentSpecifications": [ + { + "format": "PNG", + "size": { + "length": 6, + "width": 4, + "unit": "INCH" + }, + "printOptions": [ + { + "supportedDPIs": [ + 300, + 203 + ], + "supportedPageLayouts": [ + "LEFT", + "RIGHT" + ], + "supportedFileJoiningOptions": [ + true, + false + ], + "supportedDocumentDetails": [ + { + "name": "LABEL", + "isMandatory": true + } + ] + } + ] + }, + { + "format": "ZPL", + "size": { + "length": 6, + "width": 4, + "unit": "INCH" + }, + "printOptions": [ + { + "supportedDPIs": [ + 300, + 203 + ], + "supportedPageLayouts": [ + "LEFT", + "RIGHT" + ], + "supportedFileJoiningOptions": [ + true, + false + ], + "supportedDocumentDetails": [ + { + "name": "LABEL", + "isMandatory": true + } + ] + } + ] + } + ], + "availableValueAddedServiceGroups": [ + { + "groupId": "SIG_VERIFICATION", + "groupDescription": "Signature Verification", + "isRequired": true, + "valueAddedServices": [ + { + "id": "CUST_SIG_VERIFICATION", + "name": "Customer Signature Verification", + "cost": { + "unit": "USD", + "value": 2 + } + } + ] + } + ], + "requiresAdditionalInputs": false + } + ], + "ineligibleRates": [ + { + "carrierId": "FOOSTDGRD", + "serviceId": "FOO8420430", + "carrierName": "FOOSTDGRD", + "serviceName": "FOO8420430", + "ineligibilityReasons": [ + { + "code": "NO_COVERAGE", + "message": "Required shipping network coverage doesn't exist for the offering" + } + ] + } + ] + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "ChannelDetails object cannot be null" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v2\/shipments\/directPurchase": { + "post": { + "tags": [ + "ShippingV2" + ], + "description": "Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "directPurchaseShipment", + "parameters": [ + { + "name": "x-amzn-IdempotencyKey", + "in": "header", + "description": "A unique value which the server uses to recognize subsequent retries of the same request.", + "schema": { + "type": "string" + } + }, + { + "name": "locale", + "in": "header", + "description": "The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA).\nThe secondary language subtag is almost always a regional designation.\nThis does not support additional subtags beyond the primary and secondary language subtags.\n", + "schema": { + "type": "string" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DirectPurchaseRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "headers": { + "x-amzn-IdempotencyKey": { + "description": "A unique value which the server uses to recognize subsequent retries of the same request.", + "schema": { + "type": "string" + } + }, + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/DirectPurchaseResponse" + }, + "example": { + "shipmentId": "445454-3232-3232", + "packageDocumentDetailList": [ + { + "packageClientReferenceId": "ASUSDI-45343854", + "trackingId": "T1234567", + "packageDocuments": [ + { + "type": "LABEL", + "format": "PNG", + "contents": "iVBORw0KGgoAAAANSUhEUgAAAywAAATCCAMAAABouZLTAAAABlBMVEUAAAD\/\/\/+l2Z\/dAAAACXBIWXMAAB84AAAfOAGTPyf1AAAfLklEQVR42u3dCXajShZAQb2u2v+WX3+XNTBkMgkQoIhz+ndZlsCWucpEA0TcgCn+5y4AsYBYQCwgFhALiAUQC4gFxAJiAbGAWEAsgFhALCAWEAuIBcQCiAXEAmIBsYBYQCwgFkAsIBYQC4gFxAJiAbEAYgGxgFhALCAWEAsgFhALiAXEAmIBsYBYALGAWEAsIBYQC1zaX3fBeaW7YCVhZAHTMDANY4vpw6cninGGH9LIAqZhIBYQC4gFxAKIBcQCYgGxgFhALCAWQCwgFhALiAXEAmIB9vkM\/s9nnGPuDTq3KFw0\/4doLODt5SGWFft4bI358\/85Z8OM\/jEEnhflwm28s8xw0C0OEku8Nur0CL6rvDUeqCrXiCmjf94aS8qxha71w0f1Qbd2te4kofOgeLJpmBnPrqnct+0s3uc5XFhh8P1dSmz\/mJe1X+aWnd8le9fJ3GMLO90OfoTuxh+Worj1ZdZaiQmL3fR+L\/1ozz6j\/th7v07scixbB9m7aDJZaCBuy7epjM0Tz0orE0ejjLPHku1f+zGwZ2ucb06YC89aFean2Xr+4HlXx6256NcfIIbm5r3Lvm4va8pmtvs9ku+Vd8ZYor3pxXPrbXSSjT9YtobU3yfSGvPR1u0fs+loXbOxzMfFr60h+3uRvXWcfxJ2rEFjhVaisnufrX2qzX+PA0zD8reO1zZ\/n0Q8voqcdNe2rpnN0SeetWR\/tJ++DrqbcuMpgE2eLTtaxAfYwY9bc5YWE4fkZw1ZeqIkynd1DAzxeb3nEKb9GvMfkH92xuP3OajmBRG3zP2TXWXmdvod\/On7DtVrRm3f9+r7J9O3m\/FWMor7eJHd3cYVB+gs78L2Z9F7+nvav\/l9cpUxfM1ccbs6VyprbVKjNeXWf\/6j7FAePJZ485o54Sn4uGAo03+tCSlk1NvYdKc6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ALCAWEAuIBcQCYgHEAmIBsYBYQCwgFkAsIBYQC4gFxAJiAbEAYgGxgFhALCAWEAsgFhALiAXEAmIBsYBYALGAWEAsIBYQC4gFxAKIBcQCYgGxgFhALIBYQCwgFhALiAXEAmIByv4PwWms3AV97VoAAAAASUVORK5CYII=" + } + ] + } + ] + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "ChannelDetails object cannot be null" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v2\/shipments": { + "post": { + "tags": [ + "ShippingV2" + ], + "description": "Purchases a shipping service and returns purchase related details and documents.\n\nNote: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to \"TOKEN_EXPIRED\". If you receive this error response, you must get the rates for the shipment again.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "purchaseShipment", + "parameters": [ + { + "name": "x-amzn-IdempotencyKey", + "in": "header", + "description": "A unique value which the server uses to recognize subsequent retries of the same request.", + "schema": { + "type": "string" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResponse" + }, + "example": { + "shipmentId": "87852211788104", + "packageDocumentDetails": [ + { + "packageClientReferenceId": "abcd", + "packageDocuments": [ + { + "type": "LABEL", + "format": "PNG", + "contents": "sdioadaiosfhdodsaiufhouafhoudfhdouahfac==" + } + ], + "trackingId": 1578648261977 + } + ], + "promise": { + "pickupWindow": { + "start": "2019-12-11T07:09:05.513Z", + "end": "2019-12-11T09:09:05.513Z" + }, + "deliveryWindow": { + "start": "2019-12-13T07:09:05.513Z", + "end": "2019-12-13T09:09:05.513Z" + } + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "RateId cannot be null" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/shipping\/v2\/tracking": { + "get": { + "tags": [ + "ShippingV2" + ], + "description": "Returns tracking information for a purchased shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getTracking", + "parameters": [ + { + "name": "trackingId", + "in": "query", + "description": "A carrier-generated tracking identifier originally returned by the purchaseShipment operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "carrierId", + "in": "query", + "description": "A carrier identifier originally returned by the getRates operation for the selected rate.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTrackingResponse" + }, + "example": { + "trackingId": "23AA47DE2B3B6", + "alternateLegTrackingId": "null", + "eventHistory": [ + { + "eventCode": "ReadyForReceive", + "location": { + "postalCode": "4883493", + "countryCode": "CC" + }, + "eventTime": "2019-12-11T07:09:05.513Z" + } + ], + "promisedDeliveryDate": "2019-12-12T13:09:05.513Z", + "summary": { + "status": "PreTransit" + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "CarrierId is missing in the request" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/shipping\/v2\/shipments\/{shipmentId}\/documents": { + "get": { + "tags": [ + "ShippingV2" + ], + "description": "Returns the shipping documents associated with a package in a shipment.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShipmentDocuments", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The shipment identifier originally returned by the purchaseShipment operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "packageClientReferenceId", + "in": "query", + "description": "The package client reference identifier originally provided in the request body parameter for the getRates operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "format", + "in": "query", + "description": "The file format of the document. Must be one of the supported formats returned by the getRates operation.", + "schema": { + "type": "string" + } + }, + { + "name": "dpi", + "in": "query", + "description": "The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation.", + "schema": { + "type": "number" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDocumentsResponse" + }, + "example": { + "shipmentId": "445454-3232-3232", + "packageDocumentDetail": { + "packageClientReferenceId": "ASUSDI-45343854", + "trackingId": "T1234567", + "packageDocuments": [ + { + "type": "LABEL", + "format": "PNG", + "contents": "sdioadaiosfhdodsaiufhouafhoudfhdouahfac==" + } + ] + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "shipmentId is missing in the request" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/shipping\/v2\/shipments\/{shipmentId}\/cancel": { + "put": { + "tags": [ + "ShippingV2" + ], + "description": "Cancels a purchased shipment. Returns an empty object if the shipment is successfully cancelled.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "cancelShipment", + "parameters": [ + { + "name": "shipmentId", + "in": "path", + "description": "The shipment identifier originally returned by the purchaseShipment operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CancelShipmentResponse" + }, + "example": {} + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "ShipmentId cannot be null" + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/shipping\/v2\/shipments\/additionalInputs\/schema": { + "get": { + "tags": [ + "ShippingV2" + ], + "description": "Returns the JSON schema to use for providing additional inputs when needed to purchase a shipping offering. Call the getAdditionalInputs operation when the response to a previous call to the getRates operation indicates that additional inputs are required for the rate (shipping offering) that you want to purchase.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getAdditionalInputs", + "parameters": [ + { + "name": "requestToken", + "in": "query", + "description": "The request token returned in the response to the getRates operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "rateId", + "in": "query", + "description": "The rate identifier for the shipping offering (rate) returned in the response to the getRates operation.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "x-amzn-shipping-business-id", + "in": "header", + "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", + "schema": { + "type": "string", + "enum": [ + "AmazonShipping_US", + "AmazonShipping_IN", + "AmazonShipping_UK", + "AmazonShipping_UAE", + "AmazonShipping_SA", + "AmazonShipping_EG", + "AmazonShipping_IT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "AmazonShipping_US", + "description": "The United States Amazon shipping business." + }, + { + "value": "AmazonShipping_IN", + "description": "The India Amazon shipping business." + }, + { + "value": "AmazonShipping_UK", + "description": "The United Kingdom Amazon shipping business." + }, + { + "value": "AmazonShipping_UAE", + "description": "The United Arab Emirates Amazon shipping business." + }, + { + "value": "AmazonShipping_SA", + "description": "The Saudi Arabia Amazon shipping business." + }, + { + "value": "AmazonShipping_EG", + "description": "The Egypt Amazon shipping business." + }, + { + "value": "AmazonShipping_IT", + "description": "The Italy Amazon shipping business." + } + ] + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetAdditionalInputsResponse" + }, + "example": { + "payload": { + "$schema": "http:\/\/json-schema.org\/draft-04\/schema#", + "title": "Additional inputs for Shipping Offering", + "type": "object", + "properties": { + "harmonizedSystemCode": { + "type": "string", + "description": "Harmonized System's commodity code for an item." + }, + "packageClientReferenceId": { + "type": "string", + "description": "Unique identifier for the item." + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "requestToken": { + "value": "amzn1.rq.123456789.101" + }, + "rateId": { + "value": "122324234543535321345436534321423423523452345" + } + } + }, + "response": { + "payload": { + "$schema": "http:\/\/json-schema.org\/draft-04\/schema#", + "title": "Additional inputs for Shipping Offering", + "type": "object", + "properties": { + "harmonizedSystemCode": { + "type": "string", + "description": "Harmonized System's commodity code for an item." + }, + "packageClientReferenceId": { + "type": "string", + "description": "Unqiue identifier for the item." + } + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "RequestToken cannot be null" + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "requestToken": { + "value": "null" + }, + "rateId": { + "value": "2314346237423894905834905890346890789075" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "RequestToken cannot be null" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "Unauthorized", + "message": "You don't have access to the requested response or the credentials are invalid." + } + ] + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "NotFound", + "message": "The requested resource is invalid or doesn't exist" + } + ] + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload size is greater than maximum accepted size." + } + ] + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request payload format is not supported." + } + ] + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "TooManyRequests", + "message": "The total number of requests exceeded your allowed limit." + } + ] + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InternalError", + "message": "Something went wrong while processing the request." + } + ] + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "ServiceUnavailable", + "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." + } + ] + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Weight": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "GRAM", + "KILOGRAM", + "OUNCE", + "POUND" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GRAM", + "description": "Metric unit of mass equal to one thousandth of a kilogram." + }, + { + "value": "KILOGRAM", + "description": "Metric unit of mass." + }, + { + "value": "OUNCE", + "description": "The imperial unit of weight that is one sixteenth of a pound." + }, + { + "value": "POUND", + "description": "The imperial unit of weight." + } + ] + }, + "value": { + "type": "number", + "description": "The measurement value." + } + }, + "description": "The weight in the units indicated." + }, + "InvoiceDetails": { + "type": "object", + "properties": { + "invoiceNumber": { + "type": "string", + "description": "The invoice number of the item." + }, + "invoiceDate": { + "type": "string", + "description": "The invoice date of the item in ISO 8061 format.", + "format": "date-time" + } + }, + "description": "The invoice details for charges associated with the goods in the package. Only applies to certain regions." + }, + "ChargeList": { + "type": "array", + "description": "A list of charges based on the shipping service charges applied on a package.", + "items": { + "$ref": "#\/components\/schemas\/ChargeComponent" + } + }, + "ChargeComponent": { + "type": "object", + "properties": { + "amount": { + "$ref": "#\/components\/schemas\/Currency" + }, + "chargeType": { + "type": "string", + "description": "The type of charge.", + "enum": [ + "TAX", + "DISCOUNT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "TAX", + "description": "A tax imposed on a package." + }, + { + "value": "DISCOUNT", + "description": "A discount deducted from the cost of a package." + } + ] + } + }, + "description": "The type and amount of a charge applied on a package." + }, + "Currency": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "number", + "description": "The monetary value." + }, + "unit": { + "maxLength": 3, + "minLength": 3, + "type": "string", + "description": "The ISO 4217 format 3-character currency code." + } + }, + "description": "The monetary value in the currency indicated, in ISO 4217 standard format." + }, + "Dimensions": { + "required": [ + "height", + "length", + "unit", + "width" + ], + "type": "object", + "properties": { + "length": { + "type": "number", + "description": "The length of the package." + }, + "width": { + "type": "number", + "description": "The width of the package." + }, + "height": { + "type": "number", + "description": "The height of the package." + }, + "unit": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "INCH", + "CENTIMETER" + ], + "x-docgen-enum-table-extension": [ + { + "value": "INCH", + "description": "The imperial unit of length equal to one twelfth of a foot." + }, + { + "value": "CENTIMETER", + "description": "A metric unit of length, equal to one hundredth of a meter." + } + ] + } + }, + "description": "A set of measurements for a three-dimensional object." + }, + "RequestToken": { + "type": "string", + "description": "A unique token generated to identify a getRates operation." + }, + "RateId": { + "type": "string", + "description": "An identifier for the rate (shipment offering) provided by a shipping service provider." + }, + "CarrierId": { + "type": "string", + "description": "The carrier identifier for the offering, provided by the carrier." + }, + "CarrierName": { + "type": "string", + "description": "The carrier name for the offering." + }, + "PackageClientReferenceId": { + "type": "string", + "description": "A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation." + }, + "ShipmentId": { + "type": "string", + "description": "The unique shipment identifier provided by a shipping service." + }, + "TrackingId": { + "type": "string", + "description": "The carrier generated identifier for a package in a purchased shipment." + }, + "AlternateLegTrackingId": { + "type": "string", + "description": "The carrier generated reverse identifier for a returned package in a purchased shipment." + }, + "ServiceId": { + "type": "string", + "description": "An identifier for the shipping service." + }, + "ServiceName": { + "type": "string", + "description": "The name of the shipping service." + }, + "Address": { + "required": [ + "addressLine1", + "city", + "countryCode", + "name", + "postalCode", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 50, + "minLength": 1, + "type": "string", + "description": "The name of the person, business or institution at the address." + }, + "addressLine1": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "The first line of the address." + }, + "addressLine2": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "maxLength": 60, + "minLength": 1, + "type": "string", + "description": "Additional address information, if required." + }, + "companyName": { + "type": "string", + "description": "The name of the business or institution associated with the address." + }, + "stateOrRegion": { + "$ref": "#\/components\/schemas\/StateOrRegion" + }, + "city": { + "$ref": "#\/components\/schemas\/City" + }, + "countryCode": { + "$ref": "#\/components\/schemas\/CountryCode" + }, + "postalCode": { + "$ref": "#\/components\/schemas\/PostalCode" + }, + "email": { + "maxLength": 64, + "type": "string", + "description": "The email address of the contact associated with the address." + }, + "phoneNumber": { + "maxLength": 20, + "minLength": 1, + "type": "string", + "description": "The phone number of the person, business or institution located at that address, including the country calling code." + } + }, + "description": "The address." + }, + "StateOrRegion": { + "type": "string", + "description": "The state, county or region where the person, business or institution is located." + }, + "City": { + "type": "string", + "description": "The city or town where the person, business or institution is located." + }, + "CountryCode": { + "type": "string", + "description": "The two digit country code. Follows ISO 3166-1 alpha-2 format." + }, + "PostalCode": { + "type": "string", + "description": "The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "Location": { + "type": "object", + "properties": { + "stateOrRegion": { + "$ref": "#\/components\/schemas\/StateOrRegion" + }, + "city": { + "$ref": "#\/components\/schemas\/City" + }, + "countryCode": { + "$ref": "#\/components\/schemas\/CountryCode" + }, + "postalCode": { + "$ref": "#\/components\/schemas\/PostalCode" + } + }, + "description": "The location where the person, business or institution is located." + }, + "DocumentFormat": { + "type": "string", + "description": "The file format of the document.", + "enum": [ + "PDF", + "PNG", + "ZPL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PDF", + "description": "The Portable Document Format (PDF) file format. Used to present documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems." + }, + { + "value": "PNG", + "description": "Portable Network Graphics (PNG) is a raster-graphics file format that supports lossless data compression." + }, + { + "value": "ZPL", + "description": "Zebra Programming Language (ZPL) format is from Zebra Technologies. It's used primarily for labeling applications and can only be used with ZPL compatible printers." + } + ] + }, + "DocumentType": { + "type": "string", + "description": "The type of shipping document.", + "enum": [ + "PACKSLIP", + "LABEL", + "RECEIPT", + "CUSTOM_FORM" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PACKSLIP", + "description": "A listing of the items packed within the shipment." + }, + { + "value": "LABEL", + "description": "The shipping label for the specific shipment." + }, + { + "value": "RECEIPT", + "description": "The receipt of the shipment." + }, + { + "value": "CUSTOM_FORM", + "description": "The customs documentation for a cross-border shipment." + } + ] + }, + "Dpi": { + "type": "integer", + "description": "The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document." + }, + "PageLayout": { + "type": "string", + "description": "Indicates the position of the label on the paper. Should be the same value as returned in getRates response." + }, + "NeedFileJoining": { + "type": "boolean", + "description": "When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false." + }, + "Contents": { + "type": "string", + "description": "A Base64 encoded string of the file contents." + }, + "PackageDocumentList": { + "type": "array", + "description": "A list of documents related to a package.", + "items": { + "$ref": "#\/components\/schemas\/PackageDocument" + } + }, + "PackageDocument": { + "required": [ + "contents", + "format", + "type" + ], + "type": "object", + "properties": { + "type": { + "$ref": "#\/components\/schemas\/DocumentType" + }, + "format": { + "$ref": "#\/components\/schemas\/DocumentFormat" + }, + "contents": { + "$ref": "#\/components\/schemas\/Contents" + } + }, + "description": "A document related to a package." + }, + "PrintOptionList": { + "type": "array", + "description": "A list of the format options for a label.", + "items": { + "$ref": "#\/components\/schemas\/PrintOption" + } + }, + "PrintOption": { + "required": [ + "supportedDocumentDetails", + "supportedFileJoiningOptions", + "supportedPageLayouts" + ], + "type": "object", + "properties": { + "supportedDPIs": { + "type": "array", + "description": "A list of the supported DPI options for a document.", + "items": { + "$ref": "#\/components\/schemas\/Dpi" + } + }, + "supportedPageLayouts": { + "type": "array", + "description": "A list of the supported page layout options for a document.", + "items": { + "$ref": "#\/components\/schemas\/PageLayout" + } + }, + "supportedFileJoiningOptions": { + "type": "array", + "description": "A list of the supported needFileJoining boolean values for a document.", + "items": { + "$ref": "#\/components\/schemas\/NeedFileJoining" + } + }, + "supportedDocumentDetails": { + "type": "array", + "description": "A list of the supported documented details.", + "items": { + "$ref": "#\/components\/schemas\/SupportedDocumentDetail" + } + } + }, + "description": "The format options available for a label." + }, + "DocumentSize": { + "required": [ + "length", + "unit", + "width" + ], + "type": "object", + "properties": { + "width": { + "type": "number", + "description": "The width of the document measured in the units specified." + }, + "length": { + "type": "number", + "description": "The length of the document measured in the units specified." + }, + "unit": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "INCH", + "CENTIMETER" + ], + "x-docgen-enum-table-extension": [ + { + "value": "INCH", + "description": "The imperial unit of length equal to one twelfth of a foot." + }, + { + "value": "CENTIMETER", + "description": "A metric unit of length, equal to one hundredth of a meter." + } + ] + } + }, + "description": "The size dimensions of the label." + }, + "SupportedDocumentDetail": { + "required": [ + "isMandatory", + "name" + ], + "type": "object", + "properties": { + "name": { + "$ref": "#\/components\/schemas\/DocumentType" + }, + "isMandatory": { + "type": "boolean", + "description": "When true, the supported document type is required." + } + }, + "description": "The supported document types for a service offering." + }, + "RequestedDocumentSpecification": { + "required": [ + "format", + "needFileJoining", + "requestedDocumentTypes", + "size" + ], + "type": "object", + "properties": { + "format": { + "$ref": "#\/components\/schemas\/DocumentFormat" + }, + "size": { + "$ref": "#\/components\/schemas\/DocumentSize" + }, + "dpi": { + "$ref": "#\/components\/schemas\/Dpi" + }, + "pageLayout": { + "$ref": "#\/components\/schemas\/PageLayout" + }, + "needFileJoining": { + "$ref": "#\/components\/schemas\/NeedFileJoining" + }, + "requestedDocumentTypes": { + "type": "array", + "description": "A list of the document types requested.", + "items": { + "$ref": "#\/components\/schemas\/DocumentType" + } + } + }, + "description": "The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation." + }, + "SupportedDocumentSpecificationList": { + "type": "array", + "description": "A list of the document specifications supported for a shipment service offering.", + "items": { + "$ref": "#\/components\/schemas\/SupportedDocumentSpecification" + } + }, + "SupportedDocumentSpecification": { + "required": [ + "format", + "printOptions", + "size" + ], + "type": "object", + "properties": { + "format": { + "$ref": "#\/components\/schemas\/DocumentFormat" + }, + "size": { + "$ref": "#\/components\/schemas\/DocumentSize" + }, + "printOptions": { + "$ref": "#\/components\/schemas\/PrintOptionList" + } + }, + "description": "Document specification that is supported for a service offering." + }, + "Item": { + "required": [ + "quantity" + ], + "type": "object", + "properties": { + "itemValue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "description": { + "type": "string", + "description": "The product description of the item." + }, + "itemIdentifier": { + "type": "string", + "description": "A unique identifier for an item provided by the client." + }, + "quantity": { + "type": "integer", + "description": "The number of units. This value is required." + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "isHazmat": { + "type": "boolean", + "description": "When true, the item qualifies as hazardous materials (hazmat). Defaults to false." + }, + "productType": { + "type": "string", + "description": "The product type of the item." + }, + "invoiceDetails": { + "$ref": "#\/components\/schemas\/InvoiceDetails" + }, + "serialNumbers": { + "type": "array", + "description": "A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon.", + "items": { + "type": "string" + } + }, + "directFulfillmentItemIdentifiers": { + "$ref": "#\/components\/schemas\/DirectFulfillmentItemIdentifiers" + } + }, + "description": "An item in a package." + }, + "ItemList": { + "type": "array", + "description": "A list of items.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "Package": { + "required": [ + "dimensions", + "insuredValue", + "items", + "packageClientReferenceId", + "weight" + ], + "type": "object", + "properties": { + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "insuredValue": { + "$ref": "#\/components\/schemas\/Currency" + }, + "isHazmat": { + "type": "boolean", + "description": "When true, the package contains hazardous materials. Defaults to false." + }, + "sellerDisplayName": { + "type": "string", + "description": "The seller name displayed on the label." + }, + "charges": { + "$ref": "#\/components\/schemas\/ChargeList" + }, + "packageClientReferenceId": { + "$ref": "#\/components\/schemas\/PackageClientReferenceId" + }, + "items": { + "$ref": "#\/components\/schemas\/ItemList" + } + }, + "description": "A package to be shipped through a shipping service offering." + }, + "PackageList": { + "type": "array", + "description": "A list of packages to be shipped through a shipping service offering.", + "items": { + "$ref": "#\/components\/schemas\/Package" + } + }, + "DirectFulfillmentItemIdentifiers": { + "required": [ + "lineItemID" + ], + "type": "object", + "properties": { + "lineItemID": { + "type": "string", + "description": "A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped." + }, + "pieceNumber": { + "type": "string", + "description": "A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1." + } + }, + "description": "Item identifiers for an item in a direct fulfillment shipment." + }, + "PackageDocumentDetail": { + "required": [ + "packageClientReferenceId", + "packageDocuments" + ], + "type": "object", + "properties": { + "packageClientReferenceId": { + "$ref": "#\/components\/schemas\/PackageClientReferenceId" + }, + "packageDocuments": { + "$ref": "#\/components\/schemas\/PackageDocumentList" + }, + "trackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + } + }, + "description": "The post-purchase details of a package that will be shipped using a shipping service." + }, + "PackageDocumentDetailList": { + "type": "array", + "description": "A list of post-purchase details about a package that will be shipped using a shipping service.", + "items": { + "$ref": "#\/components\/schemas\/PackageDocumentDetail" + } + }, + "TimeWindow": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "The start time of the time window.", + "format": "date-time" + }, + "end": { + "type": "string", + "description": "The end time of the time window.", + "format": "date-time" + } + }, + "description": "The start and end time that specifies the time interval of an event." + }, + "Promise": { + "type": "object", + "properties": { + "deliveryWindow": { + "$ref": "#\/components\/schemas\/TimeWindow" + }, + "pickupWindow": { + "$ref": "#\/components\/schemas\/TimeWindow" + } + }, + "description": "The time windows promised for pickup and delivery events." + }, + "RequestedValueAddedServiceList": { + "type": "array", + "description": "The value-added services to be added to a shipping service purchase.", + "items": { + "$ref": "#\/components\/schemas\/RequestedValueAddedService" + } + }, + "RequestedValueAddedService": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation." + } + }, + "description": "A value-added service to be applied to a shipping service purchase." + }, + "AvailableValueAddedServiceGroupList": { + "type": "array", + "description": "A list of value-added services available for a shipping service offering.", + "items": { + "$ref": "#\/components\/schemas\/AvailableValueAddedServiceGroup" + } + }, + "AvailableValueAddedServiceGroup": { + "required": [ + "groupDescription", + "groupId", + "isRequired" + ], + "type": "object", + "properties": { + "groupId": { + "type": "string", + "description": "The type of the value-added service group." + }, + "groupDescription": { + "type": "string", + "description": "The name of the value-added service group." + }, + "isRequired": { + "type": "boolean", + "description": "When true, one or more of the value-added services listed must be specified." + }, + "valueAddedServices": { + "type": "array", + "description": "A list of optional value-added services available for purchase with a shipping service offering.", + "items": { + "$ref": "#\/components\/schemas\/ValueAddedService" + } + } + }, + "description": "The value-added services available for purchase with a shipping service offering." + }, + "ValueAddedService": { + "required": [ + "cost", + "id", + "name" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier for the value-added service." + }, + "name": { + "type": "string", + "description": "The name of the value-added service." + }, + "cost": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "A value-added service available for purchase with a shipment service offering." + }, + "CollectOnDelivery": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "$ref": "#\/components\/schemas\/Currency" + } + }, + "description": "The amount to collect on delivery." + }, + "ValueAddedServiceDetails": { + "type": "object", + "properties": { + "collectOnDelivery": { + "$ref": "#\/components\/schemas\/CollectOnDelivery" + } + }, + "description": "A collection of supported value-added services." + }, + "TaxType": { + "type": "string", + "description": "Indicates the type of tax.", + "enum": [ + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GST", + "description": "Goods and Services Tax." + } + ] + }, + "TaxDetail": { + "required": [ + "taxRegistrationNumber", + "taxType" + ], + "type": "object", + "properties": { + "taxType": { + "$ref": "#\/components\/schemas\/TaxType" + }, + "taxRegistrationNumber": { + "type": "string", + "description": "The shipper's tax registration number associated with the shipment for customs compliance purposes in certain regions." + } + }, + "description": "Indicates the tax specifications associated with the shipment for customs compliance purposes in certain regions." + }, + "TaxDetailList": { + "type": "array", + "description": "A list of tax detail information.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetail" + } + }, + "EventCode": { + "type": "string", + "description": "The tracking event type.", + "enum": [ + "ReadyForReceive", + "PickupDone", + "Delivered", + "Departed", + "DeliveryAttempted", + "Lost", + "OutForDelivery", + "ArrivedAtCarrierFacility", + "Rejected", + "Undeliverable", + "PickupCancelled" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ReadyForReceive", + "description": "Package has been created and is ready for pickup at the shippers location. This is a pre-transit status event code." + }, + { + "value": "PickupDone", + "description": "Package has been picked up by the service provider." + }, + { + "value": "Delivered", + "description": "Package has been delivered." + }, + { + "value": "Departed", + "description": "Package has departed from a particular location in carrier network." + }, + { + "value": "DeliveryAttempted", + "description": "Delivery was attempted, but was unsuccessful." + }, + { + "value": "Lost", + "description": "Package is lost." + }, + { + "value": "OutForDelivery", + "description": "Package is out for delivery." + }, + { + "value": "ArrivedAtCarrierFacility", + "description": "Package is in transit and has been received at a carrier location." + }, + { + "value": "Rejected", + "description": "Package was rejected by the recipient." + }, + { + "value": "Undeliverable", + "description": "Package is undeliverable." + }, + { + "value": "PickupCancelled", + "description": "Pickup scheduled for the package was cancelled." + } + ] + }, + "Event": { + "required": [ + "eventCode", + "eventTime" + ], + "type": "object", + "properties": { + "eventCode": { + "$ref": "#\/components\/schemas\/EventCode" + }, + "location": { + "$ref": "#\/components\/schemas\/Location" + }, + "eventTime": { + "type": "string", + "description": "The ISO 8601 formatted timestamp of the event.", + "format": "date-time" + } + }, + "description": "A tracking event." + }, + "TrackingSummary": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/Status" + } + }, + "description": "A package status summary." + }, + "Status": { + "type": "string", + "description": "The status of the package being shipped.", + "enum": [ + "PreTransit", + "InTransit", + "Delivered", + "Lost", + "OutForDelivery", + "Rejected", + "Undeliverable", + "DeliveryAttempted", + "PickupCancelled" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PreTransit", + "description": "Package has been created but has not been picked up." + }, + { + "value": "InTransit", + "description": "Package has been picked up and is in transit." + }, + { + "value": "Delivered", + "description": "Package has has been delivered successfully." + }, + { + "value": "Lost", + "description": "Package is lost." + }, + { + "value": "OutForDelivery", + "description": "Package is out for delivery." + }, + { + "value": "Rejected", + "description": "Package has been rejected by the recipient." + }, + { + "value": "Undeliverable", + "description": "Package was undeliverable." + }, + { + "value": "DeliveryAttempted", + "description": "Delivery was attempted to the recipient location, but was not delivered." + }, + { + "value": "PickupCancelled", + "description": "Pickup was cancelled for the package." + } + ] + }, + "AmazonOrderDetails": { + "required": [ + "orderId" + ], + "type": "object", + "properties": { + "orderId": { + "type": "string", + "description": "The Amazon order ID associated with the Amazon order fulfilled by this shipment." + } + }, + "description": "Amazon order information. This is required if the shipment source channel is Amazon." + }, + "AmazonShipmentDetails": { + "required": [ + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "type": "string", + "description": "This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID." + } + }, + "description": "Amazon shipment information." + }, + "ChannelDetails": { + "required": [ + "channelType" + ], + "type": "object", + "properties": { + "channelType": { + "type": "string", + "description": "The shipment source channel type.", + "enum": [ + "AMAZON", + "EXTERNAL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "AMAZON", + "description": "Indicates that the shipment originates from an Amazon order." + }, + { + "value": "EXTERNAL", + "description": "Indicates that the shipment originates from a non-Amazon channel." + } + ] + }, + "amazonOrderDetails": { + "$ref": "#\/components\/schemas\/AmazonOrderDetails" + }, + "amazonShipmentDetails": { + "$ref": "#\/components\/schemas\/AmazonShipmentDetails" + } + }, + "description": "Shipment source channel related information." + }, + "RateList": { + "type": "array", + "description": "A list of eligible shipping service offerings.", + "items": { + "$ref": "#\/components\/schemas\/Rate" + } + }, + "Rate": { + "required": [ + "carrierId", + "carrierName", + "promise", + "rateId", + "requiresAdditionalInputs", + "serviceId", + "serviceName", + "supportedDocumentSpecifications", + "totalCharge" + ], + "type": "object", + "properties": { + "rateId": { + "$ref": "#\/components\/schemas\/RateId" + }, + "carrierId": { + "$ref": "#\/components\/schemas\/CarrierId" + }, + "carrierName": { + "$ref": "#\/components\/schemas\/CarrierName" + }, + "serviceId": { + "$ref": "#\/components\/schemas\/ServiceId" + }, + "serviceName": { + "$ref": "#\/components\/schemas\/ServiceName" + }, + "billedWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "totalCharge": { + "$ref": "#\/components\/schemas\/Currency" + }, + "promise": { + "$ref": "#\/components\/schemas\/Promise" + }, + "supportedDocumentSpecifications": { + "$ref": "#\/components\/schemas\/SupportedDocumentSpecificationList" + }, + "availableValueAddedServiceGroups": { + "$ref": "#\/components\/schemas\/AvailableValueAddedServiceGroupList" + }, + "requiresAdditionalInputs": { + "type": "boolean", + "description": "When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation." + } + }, + "description": "The details of a shipping service offering." + }, + "IneligibilityReasonCode": { + "type": "string", + "description": "Reasons that make a shipment service offering ineligible.", + "enum": [ + "NO_COVERAGE", + "PICKUP_SLOT_RESTRICTION", + "UNSUPPORTED_VAS", + "VAS_COMBINATION_RESTRICTION", + "SIZE_RESTRICTIONS", + "WEIGHT_RESTRICTIONS", + "LATE_DELIVERY", + "PROGRAM_CONSTRAINTS", + "TERMS_AND_CONDITIONS_NOT_ACCEPTED", + "UNKNOWN" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NO_COVERAGE", + "description": "The shipment is ineligible because there is no coverage to that address." + }, + { + "value": "PICKUP_SLOT_RESTRICTION", + "description": "The shipment is ineligible because there is an issue with the pickup slot." + }, + { + "value": "UNSUPPORTED_VAS", + "description": "The shipment is ineligible because the value-added service is invalid for this shipment." + }, + { + "value": "VAS_COMBINATION_RESTRICTION", + "description": "The shipment is ineligible because an invalid combination of value-added services were chosen." + }, + { + "value": "SIZE_RESTRICTIONS", + "description": "The shipment is ineligible because the package dimensions are unsupported." + }, + { + "value": "WEIGHT_RESTRICTIONS", + "description": "The shipment is ineligible because the weight is unsupported." + }, + { + "value": "LATE_DELIVERY", + "description": "The shipment is ineligible because delivery is too late." + }, + { + "value": "PROGRAM_CONSTRAINTS", + "description": "The shipment is ineligible because of program constraints." + }, + { + "value": "TERMS_AND_CONDITIONS_NOT_ACCEPTED", + "description": "The shipment is ineligible because terms and conditions have not been accepted by the carrier." + }, + { + "value": "UNKNOWN", + "description": "The ineligibility reason is unknown." + } + ] + }, + "IneligibilityReason": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "$ref": "#\/components\/schemas\/IneligibilityReasonCode" + }, + "message": { + "type": "string", + "description": "The ineligibility reason." + } + }, + "description": "The reason why a shipping service offering is ineligible." + }, + "IneligibleRate": { + "required": [ + "carrierId", + "carrierName", + "ineligibilityReasons", + "serviceId", + "serviceName" + ], + "type": "object", + "properties": { + "serviceId": { + "$ref": "#\/components\/schemas\/ServiceId" + }, + "serviceName": { + "$ref": "#\/components\/schemas\/ServiceName" + }, + "carrierName": { + "$ref": "#\/components\/schemas\/CarrierName" + }, + "carrierId": { + "$ref": "#\/components\/schemas\/CarrierId" + }, + "ineligibilityReasons": { + "type": "array", + "description": "A list of reasons why a shipping service offering is ineligible.", + "items": { + "$ref": "#\/components\/schemas\/IneligibilityReason" + } + } + }, + "description": "Detailed information for an ineligible shipping service offering." + }, + "IneligibleRateList": { + "type": "array", + "description": "A list of ineligible shipping service offerings.", + "items": { + "$ref": "#\/components\/schemas\/IneligibleRate" + } + }, + "CancelShipmentResult": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The payload for the cancelShipment operation." + }, + "CancelShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CancelShipmentResult" + } + }, + "description": "Response schema for the cancelShipment operation." + }, + "GetRatesRequest": { + "required": [ + "channelDetails", + "packages", + "shipFrom" + ], + "type": "object", + "properties": { + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "returnTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipDate": { + "type": "string", + "description": "The ship date and time (the requested pickup). This defaults to the current date and time.", + "format": "date-time" + }, + "packages": { + "$ref": "#\/components\/schemas\/PackageList" + }, + "valueAddedServices": { + "$ref": "#\/components\/schemas\/ValueAddedServiceDetails" + }, + "taxDetails": { + "$ref": "#\/components\/schemas\/TaxDetailList" + }, + "channelDetails": { + "$ref": "#\/components\/schemas\/ChannelDetails" + } + }, + "description": "The request schema for the getRates operation. When the channelType is Amazon, the shipTo address is not required and will be ignored." + }, + "GetRatesResult": { + "required": [ + "rates", + "requestToken" + ], + "type": "object", + "properties": { + "requestToken": { + "$ref": "#\/components\/schemas\/RequestToken" + }, + "rates": { + "$ref": "#\/components\/schemas\/RateList" + }, + "ineligibleRates": { + "$ref": "#\/components\/schemas\/IneligibleRateList" + } + }, + "description": "The payload for the getRates operation." + }, + "GetRatesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetRatesResult" + } + }, + "description": "The response schema for the getRates operation." + }, + "DirectPurchaseRequest": { + "required": [ + "channelDetails" + ], + "type": "object", + "properties": { + "shipTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipFrom": { + "$ref": "#\/components\/schemas\/Address" + }, + "returnTo": { + "$ref": "#\/components\/schemas\/Address" + }, + "packages": { + "$ref": "#\/components\/schemas\/PackageList" + }, + "channelDetails": { + "$ref": "#\/components\/schemas\/ChannelDetails" + }, + "labelSpecifications": { + "$ref": "#\/components\/schemas\/RequestedDocumentSpecification" + } + }, + "description": "The request schema for the directPurchaseShipment operation. When the channel type is Amazon, the shipTo address is not required and will be ignored." + }, + "DirectPurchaseResult": { + "required": [ + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "packageDocumentDetailList": { + "$ref": "#\/components\/schemas\/PackageDocumentDetailList" + } + }, + "description": "The payload for the directPurchaseShipment operation." + }, + "DirectPurchaseResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/DirectPurchaseResult" + } + }, + "description": "The response schema for the directPurchaseShipment operation." + }, + "GetShipmentDocumentsResult": { + "required": [ + "packageDocumentDetail", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "packageDocumentDetail": { + "$ref": "#\/components\/schemas\/PackageDocumentDetail" + } + }, + "description": "The payload for the getShipmentDocuments operation." + }, + "GetShipmentDocumentsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetShipmentDocumentsResult" + } + }, + "description": "The response schema for the the getShipmentDocuments operation." + }, + "GetTrackingResult": { + "required": [ + "alternateLegTrackingId", + "eventHistory", + "promisedDeliveryDate", + "summary", + "trackingId" + ], + "type": "object", + "properties": { + "trackingId": { + "$ref": "#\/components\/schemas\/TrackingId" + }, + "alternateLegTrackingId": { + "$ref": "#\/components\/schemas\/AlternateLegTrackingId" + }, + "eventHistory": { + "type": "array", + "description": "A list of tracking events.", + "items": { + "$ref": "#\/components\/schemas\/Event" + } + }, + "promisedDeliveryDate": { + "type": "string", + "description": "The date and time by which the shipment is promised to be delivered.", + "format": "date-time" + }, + "summary": { + "$ref": "#\/components\/schemas\/TrackingSummary" + } + }, + "description": "The payload for the getTracking operation." + }, + "GetTrackingResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetTrackingResult" + } + }, + "description": "The response schema for the getTracking operation." + }, + "PurchaseShipmentRequest": { + "required": [ + "rateId", + "requestToken", + "requestedDocumentSpecification" + ], + "type": "object", + "properties": { + "requestToken": { + "$ref": "#\/components\/schemas\/RequestToken" + }, + "rateId": { + "$ref": "#\/components\/schemas\/RateId" + }, + "requestedDocumentSpecification": { + "$ref": "#\/components\/schemas\/RequestedDocumentSpecification" + }, + "requestedValueAddedServices": { + "$ref": "#\/components\/schemas\/RequestedValueAddedServiceList" + }, + "additionalInputs": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation.\n\nAdditional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation." + } + }, + "description": "The request schema for the purchaseShipment operation." + }, + "PurchaseShipmentResult": { + "required": [ + "packageDocumentDetails", + "promise", + "shipmentId" + ], + "type": "object", + "properties": { + "shipmentId": { + "$ref": "#\/components\/schemas\/ShipmentId" + }, + "packageDocumentDetails": { + "$ref": "#\/components\/schemas\/PackageDocumentDetailList" + }, + "promise": { + "$ref": "#\/components\/schemas\/Promise" + } + }, + "description": "The payload for the purchaseShipment operation." + }, + "PurchaseShipmentResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PurchaseShipmentResult" + } + }, + "description": "The response schema for the purchaseShipment operation." + }, + "GetAdditionalInputsResult": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The JSON schema to use to provide additional inputs when required to purchase a shipping offering." + }, + "GetAdditionalInputsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/GetAdditionalInputsResult" + } + }, + "description": "The response schema for the getAdditionalInputs operation." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/solicitations/v1.json b/resources/models/seller/solicitations/v1.json new file mode 100644 index 000000000..d2518b616 --- /dev/null +++ b/resources/models/seller/solicitations/v1.json @@ -0,0 +1,765 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Solicitations", + "description": "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<\/a> (HAL) standard.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/solicitations\/v1\/orders\/{amazonOrderId}": { + "get": { + "tags": [ + "SolicitationsV1" + ], + "description": "Returns a list of solicitation types that are available for an order that you specify. A solicitation type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a solicitation. Currently only the productReviewAndSellerFeedbackSolicitation solicitation type is available.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getSolicitationActionsForOrder", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which you want a list of available solicitation types.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Returns hypermedia links under the _links.actions key that specify which solicitation actions are allowed for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + }, + "example": { + "_links": { + "actions": [ + { + "href": "\/solicitations\/v1\/orders\/903-1671087-0812628\/solicitations\/productReviewAndSellerFeedback?marketplaceIds=ATVPDKIKX0DER", + "name": "productReviewAndSellerFeedback" + } + ], + "self": { + "href": "\/solicitations\/v1\/orders\/903-1671087-0812628?marketplaceIds=ATVPDKIKX0DER" + } + }, + "_embedded": { + "actions": [ + { + "_links": { + "schema": { + "href": "\/solicitations\/v1\/orders\/903-1671087-0812628\/solicitations\/productReviewAndSellerFeedback\/schema", + "name": "productReviewAndSellerFeedback" + } + } + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + }, + "marketplaceIds": { + "value": [ + "ATVPDKIKX0DER" + ] + } + } + }, + "response": { + "_links": { + "actions": [ + { + "href": "\/solicitations\/v1\/orders\/123-1234567-1234567\/solicitations\/productReviewAndSellerFeedback?marketplaceIds=ATVPDKIKX0DER", + "name": "productReviewAndSellerFeedback" + } + ], + "self": { + "href": "\/solicitations\/v1\/orders\/123-1234567-1234567?marketplaceIds=ATVPDKIKX0DER" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSolicitationActionsForOrderResponse" + } + } + } + } + } + } + }, + "\/solicitations\/v1\/orders\/{amazonOrderId}\/solicitations\/productReviewAndSellerFeedback": { + "post": { + "tags": [ + "SolicitationsV1" + ], + "description": "Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createProductReviewAndSellerFeedbackSolicitation", + "parameters": [ + { + "name": "amazonOrderId", + "in": "path", + "description": "An Amazon order identifier. This specifies the order for which a solicitation is sent.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "marketplaceIds", + "in": "query", + "description": "A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "201": { + "description": "The message was created for the order.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "amazonOrderId": { + "value": "123-1234567-1234567" + } + } + }, + "response": {} + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/hal+json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateProductReviewAndSellerFeedbackSolicitationResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "LinkObject": { + "required": [ + "href" + ], + "type": "object", + "properties": { + "href": { + "type": "string", + "description": "A URI for this object." + }, + "name": { + "type": "string", + "description": "An identifier for this object." + } + }, + "description": "A Link object." + }, + "SolicitationsAction": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "description": "A simple object containing the name of the template." + }, + "Schema": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "A JSON schema document describing the expected payload of the action. This object can be validated against http:\/\/json-schema.org\/draft-04\/schema<\/a>." + }, + "GetSolicitationActionsForOrderResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "actions", + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + }, + "actions": { + "type": "array", + "description": "Eligible actions for the specified amazonOrderId.", + "items": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + } + }, + "_embedded": { + "required": [ + "actions" + ], + "type": "object", + "properties": { + "actions": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/GetSolicitationActionResponse" + } + } + } + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getSolicitationActionsForOrder operation." + }, + "GetSolicitationActionResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "schema", + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + }, + "schema": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + }, + "_embedded": { + "type": "object", + "properties": { + "schema": { + "$ref": "#\/components\/schemas\/GetSchemaResponse" + } + } + }, + "payload": { + "$ref": "#\/components\/schemas\/SolicitationsAction" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "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." + }, + "GetSchemaResponse": { + "type": "object", + "properties": { + "_links": { + "required": [ + "self" + ], + "type": "object", + "properties": { + "self": { + "$ref": "#\/components\/schemas\/LinkObject" + } + } + }, + "payload": { + "$ref": "#\/components\/schemas\/Schema" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "CreateProductReviewAndSellerFeedbackSolicitationResponse": { + "type": "object", + "properties": { + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createProductReviewAndSellerFeedbackSolicitation operation." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/supply-sources/v2020-07-01.json b/resources/models/seller/supply-sources/v2020-07-01.json new file mode 100644 index 000000000..c7898acba --- /dev/null +++ b/resources/models/seller/supply-sources/v2020-07-01.json @@ -0,0 +1,2739 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Supply Sources", + "description": "Manage configurations and capabilities of seller supply sources.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-07-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/supplySources\/2020-07-01\/supplySources": { + "get": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "The path to retrieve paginated supply sources.", + "operationId": "getSupplySources", + "parameters": [ + { + "name": "nextPageToken", + "in": "query", + "description": "The pagination token to retrieve a specific page of results.", + "schema": { + "type": "string" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The number of supply sources to return per paginated request.", + "schema": { + "type": "number", + "default": 10 + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetSupplySourcesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "supplySources": [ + { + "supplySourceId": "ed85fcf9-798c-4b63-a47e-8d4f0d273ddb", + "supplySourceCode": "owner_s2cs_test_010101_aaaas", + "alias": "alias_jksjdkf_aaaas", + "address": { + "addressLine1": "addresline 1234 010101 asaaab", + "city": "Red", + "stateOrRegion": "string", + "postalCode": "99999", + "countryCode": "US" + } + } + ], + "nextPageToken": "eyJzMl9zb3J0X2tleSI6eyJzIjoic3VwcGx5U291cmNlQ29kZSNvd25lcl9zMmNzX3Rlc3RfMDEwMTAxX2FhYWFzIiwibiI6bnVsbCwiYiI6bnVsbCwibSI6bnVsbCwibCI6bnVsbCwiYnMiOm51bGwsIm5zIjpudWxsLCJzcyI6bnVsbCwibnVsbCI6bnVsbCwiYm9vbCI6bnVsbH0sInMyX3ByaW1hcnlfa2V5Ijp7InMiOiJvd25lciNNZXJjaGFudDpBMU1QWVFRSjVUVThRVSIsIm4iOm51bGwsImIiOm51bGwsIm0iOm51bGwsImwiOm51bGwsImJzIjpudWxsLCJucyI6bnVsbCwic3MiOm51bGwsIm51bGwiOm51bGwsImJvb2wiOm51bGx9LCJsc2lTS0xpdmVDcmVhdGVkVGltZSI6eyJzIjpudWxsLCJuIjoiMTU5NzEyNjU2MSIsImIiOm51bGwsIm0iOm51bGwsImwiOm51bGwsImJzIjpudWxsLCJucyI6bnVsbCwic3MiOm51bGwsIm51bGwiOm51bGwsImJvb2wiOm51bGx9fQ==" + } + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "pageSize": { + "value": 3 + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid or malformed address Id.", + "details": "1012" + } + ] + } + } + ] + } + }, + "403": { + "description": "An error that indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "post": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "Create a new supply source.", + "operationId": "createSupplySource", + "requestBody": { + "description": "A request to create a supply source.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSupplySourceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateSupplySourceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "supplySourceId": "ed85fcf9-798c-4b63-a47e-8d4f0d273ddb", + "supplySourceCode": "owner_s2cs_test_010101_aaaas" + } + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "supplySourceCode": "owner_s2cs_test_010101_aaaab", + "alias": "alias_jksjdkf_aaaab", + "address": { + "name": "name", + "addressLine1": "addresline 1234 010101 asaaab", + "city": "Red", + "county": "King", + "stateOrRegion": "string", + "postalCode": "99999", + "countryCode": "US", + "phone": "string" + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Supply Source with given Code already exists", + "details": "1004" + } + ] + } + } + ] + } + }, + "403": { + "description": "An error that indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + } + }, + "\/supplySources\/2020-07-01\/supplySources\/{supplySourceId}": { + "get": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "Retrieve a supply source.", + "operationId": "getSupplySource", + "parameters": [ + { + "name": "supplySourceId", + "in": "path", + "description": "The unique identifier of a supply source.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SupplySource" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": { + "supplySourceId": "cbc976e5-1e55-4d33-855b-35e6254f5a58", + "supplySourceCode": "test-gw-435dgh2o39", + "alias": "test-gw-ssss", + "status": "Inactive", + "address": { + "addressLine1": "tst-addressLine1-423", + "addressLine2": "tes-addressLine2-gew", + "addressLine3": "Rufus", + "city": "Gekl", + "county": "", + "district": "", + "stateOrRegion": "WA", + "postalCode": "59202", + "countryCode": "US" + }, + "configuration": { + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "test324@gmail.com", + "phone": "4813924781" + } + }, + "throughputConfig": { + "throughputCap": { + "value": 1, + "timeUnit": "Days" + }, + "throughputUnit": "ORDER" + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + }, + "operatingHoursByDay": { + "monday": [ + { + "startTime": "00:59", + "endTime": "06:01" + } + ], + "tuesday": [ + { + "startTime": "19:03", + "endTime": "23:25" + } + ], + "wednesday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "thursday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "friday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "saturday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "sunday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ] + } + }, + "timezone": "Africa\/Accra" + }, + "capabilities": { + "outbound": { + "isSupported": true, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "tet@gmail.com", + "phone": "4281937491" + } + }, + "throughputConfig": { + "throughputCap": { + "value": 1, + "timeUnit": "Days" + }, + "throughputUnit": "ORDER" + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + }, + "operatingHoursByDay": { + "monday": [ + { + "startTime": "00:43", + "endTime": "04:05" + } + ], + "tuesday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "wednesday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "thursday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "friday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "saturday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "sunday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ] + } + }, + "deliveryChannel": { + "isSupported": false, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "", + "phone": "" + } + }, + "throughputConfig": { + "throughputCap": { + "value": 1, + "timeUnit": "Days" + }, + "throughputUnit": "ORDER" + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + } + }, + "pickupChannel": { + "isSupported": true, + "inventoryHoldPeriod": { + "value": 452, + "timeUnit": "Minutes" + }, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "yre4@gmail.com", + "phone": "4381232840" + } + }, + "throughputConfig": { + "throughputCap": { + "value": 1, + "timeUnit": "Days" + }, + "throughputUnit": "ORDER" + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + } + } + }, + "services": { + "isSupported": true, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "testservices@gmail.com", + "phone": "4281937491" + } + }, + "operatingHoursByDay": { + "monday": [ + { + "startTime": "00:43", + "endTime": "04:05" + } + ], + "tuesday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "wednesday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "thursday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "friday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "saturday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ], + "sunday": [ + { + "startTime": "00:00", + "endTime": "00:00" + } + ] + } + } + } + }, + "createdAt": "1.596578152E9", + "updatedAt": "1.596842808E9" + } + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "supplySourceId": { + "value": "cbc976e5-1e55-4d33-855b-35e6254f5a5" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Input", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "An error that indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + }, + "put": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "Update the configuration and capabilities of a supply source.", + "operationId": "updateSupplySource", + "parameters": [ + { + "name": "supplySourceId", + "in": "path", + "description": "The unique identitier of a supply source.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateSupplySourceRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "supplySourceId": { + "value": "cf146560-392a-43e6-bf99-2ca3b5d42b5c" + }, + "body": { + "value": { + "alias": "test-config", + "configuration": { + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "111@gmail.com", + "phone": "111" + } + }, + "operatingHoursByDay": { + "monday": [ + { + "startTime": "01:30", + "endTime": "02:40" + } + ], + "tuesday": [ + { + "startTime": "2:00", + "endTime": "2:00" + } + ] + }, + "throughputConfig": { + "throughputCap": { + "value": 17, + "timeUnit": "Hours" + } + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + }, + "timezone": "Africa\/Accra" + }, + "capabilities": { + "outbound": { + "isSupported": true, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "outbound@gmail.com", + "phone": "222" + } + }, + "operatingHoursByDay": { + "wednesday": [ + { + "startTime": "03:30", + "endTime": "03:40" + } + ], + "thursday": [ + { + "startTime": "4:00", + "endTime": "4:00" + } + ] + }, + "throughputConfig": { + "throughputCap": { + "value": 10, + "timeUnit": "Hours" + } + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + }, + "returnLocation": { + "addressWithContact": { + "address": { + "addressLine1": "returnLocation", + "countryCode": "na" + }, + "contactDetails": { + "primary": { + "email": "returnLocation@gmail.com", + "phone": "333" + } + } + }, + "supplySourceId": "cbb1658a-949e-4c42-9d29-6c38ac1c4746" + }, + "deliveryChannel": { + "isSupported": true, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "deliveryChannel@gmail.com", + "phone": "444" + } + }, + "operatingHoursByDay": { + "friday": [ + { + "startTime": "03:30", + "endTime": "03:40" + } + ], + "thursday": [ + { + "startTime": "4:00", + "endTime": "4:00" + } + ] + }, + "throughputConfig": { + "throughputCap": { + "value": 4, + "timeUnit": "Hours" + } + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + } + }, + "pickupChannel": { + "isSupported": true, + "inventoryHoldPeriod": { + "value": 4, + "timeUnit": "Minutes" + }, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "pickupChannel@gmail.com", + "phone": "555" + } + }, + "operatingHoursByDay": { + "saturday": [ + { + "startTime": "12:30", + "endTime": "03:40" + } + ], + "sunday": [ + { + "startTime": "5:00", + "endTime": "23:30" + } + ] + }, + "throughputConfig": { + "throughputCap": { + "value": 3, + "timeUnit": "Hours" + } + }, + "handlingTime": { + "value": 1, + "timeUnit": "Hours" + } + } + } + }, + "services": { + "isSupported": true, + "operationalConfiguration": { + "contactDetails": { + "primary": { + "email": "services@gmail.com", + "phone": "222" + } + }, + "operatingHoursByDay": { + "wednesday": [ + { + "startTime": "03:30", + "endTime": "03:40" + } + ], + "thursday": [ + { + "startTime": "4:00", + "endTime": "4:00" + } + ] + } + } + } + } + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Supply Source has been archived and cannot be modified.", + "details": "1005" + } + ] + } + } + ] + } + }, + "403": { + "description": "An error that indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + }, + "delete": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "Archive a supply source, making it inactive. Cannot be undone.", + "operationId": "archiveSupplySource", + "parameters": [ + { + "name": "supplySourceId", + "in": "path", + "description": "The unique identifier of a supply source.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "supplySourceId": { + "value": "cf146560-392a-43e6-bf99-2ca3b5d42b5c" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Supply Source has been archived and cannot be modified.", + "details": "1005" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + } + } + }, + "\/supplySources\/2020-07-01\/supplySources\/{supplySourceId}\/status": { + "put": { + "tags": [ + "SupplySourcesV20200701" + ], + "description": "Update the status of a supply source.", + "operationId": "updateSupplySourceStatus", + "parameters": [ + { + "name": "supplySourceId", + "in": "path", + "description": "The unique identifier of a supply source.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/UpdateSupplySourceStatusRequest" + } + } + }, + "required": false + }, + "responses": { + "204": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": {} + }, + "response": {} + } + ] + } + }, + "400": { + "description": "The request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "supplySourceId": { + "value": "cf146560-392a-43e6-bf99-2ca3b5d42b5c" + }, + "body": { + "value": { + "status": "Inactive" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Supply Source has been archived and cannot be modified.", + "details": "1005" + } + ] + } + }, + { + "request": { + "parameters": { + "supplySourceId": { + "value": "cf146560-392a-43e6-bf99-2ca3b5d42b5c" + }, + "body": { + "value": { + "status": "Active" + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Supply Source has been archived and cannot be modified.", + "details": "1005" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "The temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "The unique request reference ID.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "payload" + } + } + }, + "components": { + "schemas": { + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "The additional details that can help the caller understand or fix the issue." + } + }, + "description": "An error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "GetSupplySourcesResponse": { + "type": "object", + "properties": { + "supplySources": { + "$ref": "#\/components\/schemas\/SupplySourceList" + }, + "nextPageToken": { + "type": "string", + "description": "If present, use this pagination token to retrieve the next page of supply sources." + } + }, + "description": "The paginated list of supply sources." + }, + "UpdateSupplySourceStatusRequest": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/SupplySourceStatus" + } + }, + "description": "A request to update the status of a supply source." + }, + "CreateSupplySourceRequest": { + "required": [ + "address", + "alias", + "supplySourceCode" + ], + "type": "object", + "properties": { + "supplySourceCode": { + "$ref": "#\/components\/schemas\/SupplySourceCode" + }, + "alias": { + "$ref": "#\/components\/schemas\/SupplySourceAlias" + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + } + }, + "description": "A request to create a supply source." + }, + "CreateSupplySourceResponse": { + "required": [ + "supplySourceCode", + "supplySourceId" + ], + "type": "object", + "properties": { + "supplySourceId": { + "$ref": "#\/components\/schemas\/SupplySourceId" + }, + "supplySourceCode": { + "$ref": "#\/components\/schemas\/SupplySourceCode" + } + }, + "description": "The result of creating a new supply source." + }, + "UpdateSupplySourceRequest": { + "type": "object", + "properties": { + "alias": { + "$ref": "#\/components\/schemas\/SupplySourceAlias" + }, + "configuration": { + "$ref": "#\/components\/schemas\/SupplySourceConfiguration" + }, + "capabilities": { + "$ref": "#\/components\/schemas\/SupplySourceCapabilities" + } + }, + "description": "A request to update the configuration and capabilities of a supply source." + }, + "SupplySource": { + "type": "object", + "properties": { + "supplySourceId": { + "$ref": "#\/components\/schemas\/SupplySourceId" + }, + "supplySourceCode": { + "$ref": "#\/components\/schemas\/SupplySourceCode" + }, + "alias": { + "$ref": "#\/components\/schemas\/SupplySourceAlias" + }, + "status": { + "$ref": "#\/components\/schemas\/SupplySourceStatusReadOnly" + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "configuration": { + "$ref": "#\/components\/schemas\/SupplySourceConfiguration" + }, + "capabilities": { + "$ref": "#\/components\/schemas\/SupplySourceCapabilities" + }, + "createdAt": { + "$ref": "#\/components\/schemas\/DateTime" + }, + "updatedAt": { + "$ref": "#\/components\/schemas\/DateTime" + } + }, + "description": "The supply source details, including configurations and capabilities." + }, + "SupplySourceConfiguration": { + "type": "object", + "properties": { + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + }, + "timezone": { + "type": "string", + "description": "Please see RFC 6557, should be a canonical time zone ID as listed here: https:\/\/www.joda.org\/joda-time\/timezones.html." + } + }, + "description": "Includes configuration and timezone of a supply source." + }, + "SupplySourceCapabilities": { + "type": "object", + "properties": { + "outbound": { + "$ref": "#\/components\/schemas\/OutboundCapability" + }, + "services": { + "$ref": "#\/components\/schemas\/ServicesCapability" + } + }, + "description": "The capabilities of a supply source." + }, + "SupplySourceList": { + "type": "array", + "description": "The list of `SupplySource`s.", + "items": { + "type": "object", + "properties": { + "alias": { + "$ref": "#\/components\/schemas\/SupplySourceAlias" + }, + "supplySourceId": { + "$ref": "#\/components\/schemas\/SupplySourceId" + }, + "supplySourceCode": { + "$ref": "#\/components\/schemas\/SupplySourceCode" + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + } + } + } + }, + "SupplySourceId": { + "type": "string", + "description": "An Amazon generated unique supply source ID." + }, + "SupplySourceCode": { + "type": "string", + "description": "The seller-provided unique supply source code." + }, + "SupplySourceAlias": { + "type": "string", + "description": "The custom alias for this supply source" + }, + "SupplySourceStatusReadOnly": { + "type": "string", + "description": "The `SupplySource` status.", + "enum": [ + "Active", + "Inactive", + "Archived" + ] + }, + "SupplySourceStatus": { + "type": "string", + "description": "The `SupplySource` status", + "enum": [ + "Active", + "Inactive" + ] + }, + "OutboundCapability": { + "type": "object", + "properties": { + "isSupported": { + "type": "boolean" + }, + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + }, + "returnLocation": { + "$ref": "#\/components\/schemas\/ReturnLocation" + }, + "deliveryChannel": { + "$ref": "#\/components\/schemas\/DeliveryChannel" + }, + "pickupChannel": { + "$ref": "#\/components\/schemas\/PickupChannel" + } + }, + "description": "The outbound capability of a supply source." + }, + "ServicesCapability": { + "type": "object", + "properties": { + "isSupported": { + "type": "boolean", + "description": "When true, `SupplySource` supports the Service capability." + }, + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + } + }, + "description": "The services capability of a supply source." + }, + "PickupChannel": { + "type": "object", + "properties": { + "inventoryHoldPeriod": { + "$ref": "#\/components\/schemas\/Duration" + }, + "isSupported": { + "type": "boolean" + }, + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + }, + "inStorePickupConfiguration": { + "$ref": "#\/components\/schemas\/InStorePickupConfiguration" + }, + "curbsidePickupConfiguration": { + "$ref": "#\/components\/schemas\/CurbsidePickupConfiguration" + } + }, + "description": "The pick up channel of a supply source." + }, + "ParkingConfiguration": { + "type": "object", + "properties": { + "parkingCostType": { + "$ref": "#\/components\/schemas\/ParkingCostType" + }, + "parkingSpotIdentificationType": { + "$ref": "#\/components\/schemas\/ParkingSpotIdentificationType" + }, + "numberOfParkingSpots": { + "$ref": "#\/components\/schemas\/NonNegativeInteger" + } + }, + "description": "The parking configuration." + }, + "ParkingCostType": { + "type": "string", + "description": "The parking cost type.", + "enum": [ + "Free", + "Other" + ] + }, + "ParkingSpotIdentificationType": { + "type": "string", + "description": "The type of parking spot identification.", + "enum": [ + "Numbered", + "Other" + ] + }, + "InStorePickupConfiguration": { + "type": "object", + "properties": { + "isSupported": { + "type": "boolean", + "description": "When true, in-store pickup is supported by the supply source (default: `isSupported` value in `PickupChannel`)." + }, + "parkingConfiguration": { + "$ref": "#\/components\/schemas\/ParkingConfiguration" + } + }, + "description": "The in-store pickup configuration of a supply source." + }, + "CurbsidePickupConfiguration": { + "type": "object", + "properties": { + "isSupported": { + "type": "boolean", + "description": "When true, curbside pickup is supported by the supply source." + }, + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + }, + "parkingWithAddressConfiguration": { + "$ref": "#\/components\/schemas\/ParkingWithAddressConfiguration" + } + }, + "description": "The curbside pickup configuration of a supply source." + }, + "ParkingWithAddressConfiguration": { + "description": "The parking configuration with the address.", + "allOf": [ + { + "$ref": "#\/components\/schemas\/ParkingConfiguration" + }, + { + "type": "object", + "properties": { + "address": { + "$ref": "#\/components\/schemas\/Address" + } + } + } + ] + }, + "DeliveryChannel": { + "type": "object", + "properties": { + "isSupported": { + "type": "boolean" + }, + "operationalConfiguration": { + "$ref": "#\/components\/schemas\/OperationalConfiguration" + } + }, + "description": "The delivery channel of a supply source." + }, + "OperationalConfiguration": { + "type": "object", + "properties": { + "contactDetails": { + "$ref": "#\/components\/schemas\/ContactDetails" + }, + "throughputConfig": { + "$ref": "#\/components\/schemas\/ThroughputConfig" + }, + "operatingHoursByDay": { + "$ref": "#\/components\/schemas\/OperatingHoursByDay" + }, + "handlingTime": { + "$ref": "#\/components\/schemas\/Duration" + } + }, + "description": "The operational configuration of `supplySources`." + }, + "Duration": { + "type": "object", + "properties": { + "value": { + "$ref": "#\/components\/schemas\/NonNegativeInteger" + }, + "timeUnit": { + "$ref": "#\/components\/schemas\/TimeUnit" + } + }, + "description": "The duration of time." + }, + "ThroughputConfig": { + "required": [ + "throughputUnit" + ], + "type": "object", + "properties": { + "throughputCap": { + "$ref": "#\/components\/schemas\/ThroughputCap" + }, + "throughputUnit": { + "$ref": "#\/components\/schemas\/ThroughputUnit" + } + }, + "description": "The throughput configuration." + }, + "ReturnLocation": { + "type": "object", + "properties": { + "supplySourceId": { + "type": "string", + "description": "The Amazon provided `supplySourceId` where orders can be returned to." + }, + "addressWithContact": { + "$ref": "#\/components\/schemas\/AddressWithContact" + } + }, + "description": "The address or reference to another `supplySourceId` to act as a return location." + }, + "AddressWithContact": { + "type": "object", + "properties": { + "contactDetails": { + "$ref": "#\/components\/schemas\/ContactDetails" + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + } + }, + "description": "The address and contact details." + }, + "ContactDetails": { + "type": "object", + "properties": { + "primary": { + "type": "object", + "properties": { + "email": { + "$ref": "#\/components\/schemas\/EmailAddress" + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution." + } + } + } + }, + "description": "The contact details" + }, + "ThroughputCap": { + "type": "object", + "properties": { + "value": { + "$ref": "#\/components\/schemas\/NonNegativeInteger" + }, + "timeUnit": { + "$ref": "#\/components\/schemas\/TimeUnit" + } + }, + "description": "The throughput capacity" + }, + "OperatingHour": { + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "The opening time, ISO 8601 formatted timestamp without date, HH:mm." + }, + "endTime": { + "type": "string", + "description": "The closing time, ISO 8601 formatted timestamp without date, HH:mm." + } + }, + "description": "The operating hour schema" + }, + "OperatingHours": { + "type": "array", + "description": "A list of Operating Hours.", + "items": { + "$ref": "#\/components\/schemas\/OperatingHour" + } + }, + "ThroughputUnit": { + "type": "string", + "description": "The throughput unit", + "enum": [ + "Order" + ] + }, + "OperatingHoursByDay": { + "type": "object", + "properties": { + "monday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "tuesday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "wednesday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "thursday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "friday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "saturday": { + "$ref": "#\/components\/schemas\/OperatingHours" + }, + "sunday": { + "$ref": "#\/components\/schemas\/OperatingHours" + } + }, + "description": "The operating hours per day" + }, + "TimeUnit": { + "type": "string", + "description": "The time unit", + "enum": [ + "Hours", + "Minutes", + "Days" + ] + }, + "NonNegativeInteger": { + "minimum": 0, + "type": "integer", + "description": "An unsigned integer that can be only positive or zero." + }, + "EmailAddress": { + "pattern": "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", + "type": "string", + "description": "The email address to which email messages are delivered." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "The first line of the address." + }, + "addressLine2": { + "type": "string", + "description": "The additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "The additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "A physical address." + }, + "DateTime": { + "type": "string", + "description": "A date and time in the rfc3339 format." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/tokens/v2021-03-01.json b/resources/models/seller/tokens/v2021-03-01.json new file mode 100644 index 000000000..c8c04a419 --- /dev/null +++ b/resources/models/seller/tokens/v2021-03-01.json @@ -0,0 +1,447 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Tokens ", + "description": "The Selling Partner API for Tokens provides a secure way to access a customer's PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes subsequent calls to restricted operations that correspond to the restricted resources that you specified.\n\nFor more information, see the [Tokens API Use Case Guide](doc:tokens-api-use-case-guide).", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-03-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/tokens\/2021-03-01\/restrictedDataToken": { + "post": { + "tags": [ + "TokensV20210301" + ], + "description": "Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createRestrictedDataToken", + "requestBody": { + "description": "The restricted data token request details.", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateRestrictedDataTokenRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateRestrictedDataTokenResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "targetApplication": "amzn1.sellerapps.app.target-application", + "restrictedResources": [ + { + "method": "GET", + "path": "\/orders\/v0\/orders\/{orderId}\/address" + } + ] + } + } + } + }, + "response": { + "restrictedDataToken": "Atz.sprdt|IQEBLjAsAhRmHjNgHpi0U-Dme37rR6CuUpSR", + "expiresIn": 3600 + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "restrictedResources": [ + { + "method": "GET", + "path": "\/orders\/v0\/orders\/943-12-123434\/address" + } + ] + } + } + } + }, + "response": { + "restrictedDataToken": "Atz.sprdt|AODFNESLjAsAhRmHjNgHpi0U-Dme37rR6CuUpSR", + "expiresIn": 3600 + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "targetApplication": "amzn1.sellerapps.app.target-application", + "restrictedResources": [ + { + "method": "", + "path": "\/orders\/v1\/orders\/902-1845936-5435065\/address" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "Resource not provided." + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The specified resource does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "CreateRestrictedDataTokenRequest": { + "required": [ + "restrictedResources" + ], + "type": "object", + "properties": { + "targetApplication": { + "type": "string", + "description": "The application ID for the target application to which access is being delegated." + }, + "restrictedResources": { + "type": "array", + "description": "A list of restricted resources.\nMaximum: 50", + "items": { + "$ref": "#\/components\/schemas\/RestrictedResource" + } + } + }, + "description": "The request schema for the createRestrictedDataToken operation." + }, + "RestrictedResource": { + "required": [ + "method", + "path" + ], + "type": "object", + "properties": { + "method": { + "type": "string", + "description": "The HTTP method in the restricted resource.", + "enum": [ + "GET", + "PUT", + "POST", + "DELETE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GET", + "description": "The GET method." + }, + { + "value": "PUT", + "description": "The PUT method." + }, + { + "value": "POST", + "description": "The POST method." + }, + { + "value": "DELETE", + "description": "The DELETE method." + } + ] + }, + "path": { + "type": "string", + "description": "The path in the restricted resource. Here are some path examples:\n- ```\/orders\/v0\/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders.\n- ```\/orders\/v0\/orders\/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order.\n- ```\/orders\/v0\/orders\/123-1234567-1234567\/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order.\n- ```\/mfn\/v0\/shipments\/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment.\n- ```\/mfn\/v0\/shipments\/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation." + }, + "dataElements": { + "type": "array", + "description": "Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](doc:tokens-api-use-case-guide). Possible values include:\n- **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available.\n- **shippingAddress**. This includes information for fulfilling orders.\n- **buyerTaxInformation**. This includes information for issuing tax invoices.", + "items": { + "type": "string" + } + } + }, + "description": "Model of a restricted resource." + }, + "CreateRestrictedDataTokenResponse": { + "type": "object", + "properties": { + "restrictedDataToken": { + "type": "string", + "description": "A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources." + }, + "expiresIn": { + "type": "integer", + "description": "The lifetime of the Restricted Data Token, in seconds." + } + }, + "description": "The response schema for the createRestrictedDataToken operation." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "An error response returned when the request is unsuccessful." + }, + "ErrorList": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/seller/uploads/v2020-11-01.json b/resources/models/seller/uploads/v2020-11-01.json new file mode 100644 index 000000000..8c853d24e --- /dev/null +++ b/resources/models/seller/uploads/v2020-11-01.json @@ -0,0 +1,364 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Uploads", + "description": "The Uploads API lets you upload files that you can programmatically access using other Selling Partner APIs, such as the A+ Content API and the Messaging API.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2020-11-01" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/uploads\/2020-11-01\/uploadDestinations\/{resource}": { + "post": { + "tags": [ + "UploadsV20201101" + ], + "description": "Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createUploadDestinationForResource", + "parameters": [ + { + "name": "marketplaceIds", + "in": "query", + "description": "A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified.", + "required": true, + "style": "form", + "explode": false, + "schema": { + "maxItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "contentMD5", + "in": "query", + "description": "An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resource", + "in": "path", + "description": "The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/legalDisclosure`, and the entire path would be `\/uploads\/2020-11-01\/uploadDestinations\/messaging\/v1\/orders\/{amazonOrderId}\/messages\/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus\/2020-11-01\/contentDocuments` and the path would be `\/uploads\/v1\/uploadDestinations\/aplus\/2020-11-01\/contentDocuments`.", + "required": true, + "schema": { + "type": "string", + "x-amazon-spds-greedy-path-parameter": true + }, + "x-amazon-spds-greedy-path-parameter": true + }, + { + "name": "contentType", + "in": "query", + "description": "The content type of the file to be uploaded.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + }, + "example": { + "payload": { + "uploadDestinationId": "5d4e42b5-1d6e-44e8-a89c-2abfca0625bb", + "url": "https:\/\/s3.amazonaws.com\/buyer-seller-messaging-test-draft-attachment-namarketplace\/%2F067\/5d4e42b5-1d6e-44e8-a89c-2abfca0625bb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190701T214102Z&X-Amz-SignedHeaders=content-md5%3Bhost%3Bx-amz-server-side-encryption&X-Amz-Expires=900&X-Amz-Credential=AKIAW5VUA47ENEOYT7RC%2F20190701%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=d4f85c5f1a32a788a8d54e3f00a2a08af45be5b83551cdd81c82ae353dfcdfd4", + "headers": { + "Content-MD5": "5d41402abc4b2a76b9719d911017c592", + "x-amz-server-side-encryption": "aws:kms" + } + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateUploadDestinationResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "CreateUploadDestinationResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/UploadDestination" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the createUploadDestination operation." + }, + "UploadDestination": { + "type": "object", + "properties": { + "uploadDestinationId": { + "type": "string", + "description": "The unique identifier for the upload destination." + }, + "url": { + "type": "string", + "description": "The URL for the upload destination." + }, + "headers": { + "type": "object", + "properties": {}, + "description": "The headers to include in the upload request." + } + }, + "description": "Information about an upload destination." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition in a human-readable form." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-inventory/v1.json b/resources/models/vendor/direct-fulfillment-inventory/v1.json new file mode 100644 index 000000000..1ad3e6ca2 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-inventory/v1.json @@ -0,0 +1,495 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Inventory Updates", + "description": "The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/inventory\/v1\/warehouses\/{warehouseId}\/items": { + "post": { + "tags": [ + "DirectFulfillmentInventoryV1" + ], + "description": "Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitInventoryUpdate", + "parameters": [ + { + "name": "warehouseId", + "in": "path", + "description": "Identifier for the warehouse for which to update inventory.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "inventory": { + "sellingParty": { + "partyId": "VENDORID" + }, + "isFullUpdate": false, + "items": [ + { + "buyerProductIdentifier": "ABCD4562", + "vendorProductIdentifier": "7Q89K11", + "availableQuantity": { + "amount": 10, + "unitOfMeasure": "Each" + }, + "isObsolete": false + }, + { + "buyerProductIdentifier": "ABCD4563", + "vendorProductIdentifier": "7Q89K12", + "availableQuantity": { + "amount": 15, + "unitOfMeasure": "Each" + }, + "isObsolete": false + }, + { + "buyerProductIdentifier": "ABCD4564", + "vendorProductIdentifier": "7Q89K13", + "availableQuantity": { + "amount": 20, + "unitOfMeasure": "Each" + }, + "isObsolete": false + } + ] + } + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "warehouseId": { + "value": "DUMMYCODE" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInventoryUpdateResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "SubmitInventoryUpdateRequest": { + "type": "object", + "properties": { + "inventory": { + "$ref": "#\/components\/schemas\/InventoryUpdate" + } + }, + "description": "The request body for the submitInventoryUpdate operation." + }, + "InventoryUpdate": { + "required": [ + "isFullUpdate", + "items", + "sellingParty" + ], + "type": "object", + "properties": { + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "isFullUpdate": { + "type": "boolean", + "description": "When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged." + }, + "items": { + "type": "array", + "description": "A list of inventory items with updated details, including quantity available.", + "items": { + "$ref": "#\/components\/schemas\/ItemDetails" + } + } + } + }, + "ItemDetails": { + "required": [ + "availableQuantity" + ], + "type": "object", + "properties": { + "buyerProductIdentifier": { + "type": "string", + "description": "The buyer selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Either buyerProductIdentifier or vendorProductIdentifier should be submitted." + }, + "availableQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "isObsolete": { + "type": "boolean", + "description": "When true, the item is permanently unavailable." + } + }, + "description": "Updated inventory details for an item." + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party." + } + } + }, + "ItemQuantity": { + "required": [ + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Quantity of units available for a specific item." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the available quantity." + } + }, + "description": "Details of item quantity." + }, + "SubmitInventoryUpdateResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitInventoryUpdate operation." + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-orders/v1.json b/resources/models/vendor/direct-fulfillment-orders/v1.json new file mode 100644 index 000000000..2b26c8579 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-orders/v1.json @@ -0,0 +1,2891 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Orders", + "description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/orders\/v1\/purchaseOrders": { + "get": { + "tags": [ + "DirectFulfillmentOrdersV1" + ], + "description": "Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrders", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.", + "schema": { + "type": "string", + "enum": [ + "NEW", + "SHIPPED", + "ACCEPTED", + "CANCELLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created purchase orders." + }, + { + "value": "SHIPPED", + "description": "Status for purchase orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for purchase orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled purchase orders." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created purchase orders." + }, + { + "value": "SHIPPED", + "description": "Status for purchase orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for purchase orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled purchase orders." + } + ] + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of purchase orders returned.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort the list in ascending or descending order by order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + }, + { + "name": "includeDetails", + "in": "query", + "description": "When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.", + "schema": { + "type": "string", + "format": "boolean", + "default": "true" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "includeDetails": { + "value": "true" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IAB", + "orderDetails": { + "customerOrderNumber": "456-ABC", + "orderDate": "2020-02-18T11:47:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-20T00:00:00Z", + "promisedDeliveryDate": "2020-02-22T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "XYZ", + "attention": "XYZ", + "addressLine1": "456 ABC Street", + "city": "Seattle", + "stateOrRegion": "WA", + "postalCode": "98007", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "8806098286501", + "title": "Baby Dove Baby Wipes Rich Moisture (50 Pieces)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "20" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "includeDetails": { + "value": "true" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + }, + "nextToken": { + "value": "MDAwMDAwMDAwMQ==" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VCD", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IABC", + "orderDetails": { + "customerOrderNumber": "456-ABC", + "orderDate": "2020-02-18T11:47:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-20T00:00:00Z", + "promisedDeliveryDate": "2020-02-22T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "XYZ", + "attention": "XYZ", + "addressLine1": "456 ABC Street", + "city": "Seattle", + "stateOrRegion": "WA", + "postalCode": "98007", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "8806098286501", + "title": "Baby Dove Baby Wipes Rich Moisture (50 Pieces)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "20" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "includeDetails": { + "value": "true" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + }, + "nextToken": { + "value": "MDAwMDAwMDAwMQ==" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VCD", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IABC", + "orderDetails": { + "customerOrderNumber": "456-ABC", + "orderDate": "2020-02-18T11:47:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-20T00:00:00Z", + "promisedDeliveryDate": "2020-02-22T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "XYZ", + "attention": "XYZ", + "addressLine1": "456 ABC Street", + "city": "Seattle", + "stateOrRegion": "WA", + "postalCode": "98007", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "8806098286501", + "title": "Baby Dove Baby Wipes Rich Moisture (50 Pieces)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "20" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-08-21T00:00:00-08:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00-08:00" + }, + "includeDetails": { + "value": "false" + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VC" + }, + { + "purchaseOrderNumber": "3TRD2IAB" + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-08-21T00:00:00-08:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00-08:00" + }, + "includeDetails": { + "value": "false" + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VC" + }, + { + "purchaseOrderNumber": "3TRD2IAB" + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-08-21T00:00:00-08:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00-08:00" + }, + "includeDetails": { + "value": "false" + }, + "sortOrder": { + "value": "DESC" + }, + "nextToken": { + "value": "MDAwMDAwMDAwMQ==" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VCD" + }, + { + "purchaseOrderNumber": "3TRD2IABC" + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VCD", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site. Thank you for shopping at Amazon.com." + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IABC", + "orderDetails": { + "customerOrderNumber": "456-ABC", + "orderDate": "2020-02-18T11:47:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-20T00:00:00Z", + "promisedDeliveryDate": "2020-02-22T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site. Thank you for shopping at Amazon.com." + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "XYZ", + "attention": "XYZ", + "addressLine1": "456 ABC Street", + "city": "Seattle", + "stateOrRegion": "WA", + "postalCode": "98007", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "8806098286501", + "title": "Baby Dove Baby Wipes Rich Moisture (50 Pieces)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "20" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "2" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2021-01-2100:00:00" + }, + "createdAfter": { + "value": "2021-02-20T14:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrdersResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/orders\/v1\/purchaseOrders\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentOrdersV1" + ], + "description": "Returns purchase order information for the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrder", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + }, + "example": { + "payload": { + "purchaseOrderNumber": "2JK3S9VC", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "2JK3S9VC" + } + } + }, + "response": { + "payload": { + "purchaseOrderNumber": "2JK3S9VC", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "2JK3S9VCD", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site. Thank you for shopping at Amazon.com." + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "null" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "purchaseOrderNumber cannot be null" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetOrderResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/orders\/v1\/acknowledgements": { + "post": { + "tags": [ + "DirectFulfillmentOrdersV1" + ], + "description": "Submits acknowledgements for one or more purchase orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitAcknowledgement", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "orderAcknowledgements": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "vendorOrderNumber": "ABC", + "acknowledgementDate": "2020-02-20T19:17:34.304Z", + "acknowledgementStatus": { + "code": "00", + "description": "Shipping 100 percent of ordered product" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "itemAcknowledgements": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "acknowledgedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "orderAcknowledgements": [ + { + "purchaseOrderNumber": "TestOrder400", + "sellingParty": {} + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "GetOrdersResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrders operation." + }, + "GetOrderResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Order" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getOrder operation." + }, + "OrderList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "orders": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Order" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + } + } + }, + "Order": { + "required": [ + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: alpha-numeric code." + }, + "orderDetails": { + "$ref": "#\/components\/schemas\/OrderDetails" + } + } + }, + "OrderDetails": { + "required": [ + "billToParty", + "customerOrderNumber", + "items", + "orderDate", + "sellingParty", + "shipFromParty", + "shipToParty", + "shipmentDetails" + ], + "type": "object", + "properties": { + "customerOrderNumber": { + "type": "string", + "description": "The customer order number." + }, + "orderDate": { + "type": "string", + "description": "The date the order was placed. This field is expected to be in ISO-8601 date\/time format, for example:2018-07-16T23:00:00Z\/ 2018-07-16T23:00:00-05:00 \/2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed.", + "format": "date-time" + }, + "orderStatus": { + "type": "string", + "description": "Current status of the order.", + "enum": [ + "NEW", + "SHIPPED", + "ACCEPTED", + "CANCELLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created orders." + }, + { + "value": "SHIPPED", + "description": "Status for orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled orders." + } + ] + }, + "shipmentDetails": { + "$ref": "#\/components\/schemas\/ShipmentDetails" + }, + "taxTotal": { + "type": "object", + "properties": { + "taxLineItem": { + "$ref": "#\/components\/schemas\/TaxLineItem" + } + } + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/Address" + }, + "billToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "items": { + "type": "array", + "description": "A list of items in this purchase order.", + "items": { + "$ref": "#\/components\/schemas\/OrderItem" + } + } + }, + "description": "Details of an order." + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxInfo": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the party. For example, VAT ID." + }, + "taxRegistrationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationMessages": { + "type": "string", + "description": "Tax registration message that can be used for additional tax related details." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "attention": { + "type": "string", + "description": "The attention name of the person at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "OrderItem": { + "required": [ + "itemSequenceNumber", + "netPrice", + "orderedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's standard identification number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item." + }, + "title": { + "type": "string", + "description": "Title for the item." + }, + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "scheduledDeliveryShipment": { + "$ref": "#\/components\/schemas\/ScheduledDeliveryShipment" + }, + "giftDetails": { + "$ref": "#\/components\/schemas\/GiftDetails" + }, + "netPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "type": "object", + "properties": { + "taxLineItem": { + "$ref": "#\/components\/schemas\/TaxLineItem" + } + }, + "description": "Total tax details for the line item." + }, + "totalPrice": { + "$ref": "#\/components\/schemas\/Money" + } + } + }, + "Money": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three digit currency code in ISO 4217 format. String of length 3." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation." + }, + "SubmitAcknowledgementResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionId" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitAcknowledgement operation." + }, + "TransactionId": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "SubmitAcknowledgementRequest": { + "type": "object", + "properties": { + "orderAcknowledgements": { + "type": "array", + "description": "A list of one or more purchase orders.", + "items": { + "$ref": "#\/components\/schemas\/OrderAcknowledgementItem" + } + } + }, + "description": "The request schema for the submitAcknowledgement operation." + }, + "OrderAcknowledgementItem": { + "required": [ + "acknowledgementDate", + "acknowledgementStatus", + "itemAcknowledgements", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "vendorOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: alpha-numeric code." + }, + "vendorOrderNumber": { + "type": "string", + "description": "The vendor's order number for this order." + }, + "acknowledgementDate": { + "type": "string", + "description": "The date and time when the order is acknowledged, in ISO-8601 date\/time format. For example: 2018-07-16T23:00:00Z \/ 2018-07-16T23:00:00-05:00 \/ 2018-07-16T23:00:00-08:00.", + "format": "date-time" + }, + "acknowledgementStatus": { + "$ref": "#\/components\/schemas\/AcknowledgementStatus" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "itemAcknowledgements": { + "type": "array", + "description": "Item details including acknowledged quantity.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemAcknowledgement" + } + } + }, + "description": "Details of an individual order being acknowledged." + }, + "OrderItemAcknowledgement": { + "required": [ + "acknowledgedQuantity", + "itemSequenceNumber" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Line item sequence number for the item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's standard identification number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was provided in the purchase order." + }, + "acknowledgedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + } + }, + "ItemQuantity": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Acknowledged quantity. This value should not be zero." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the acknowledged quantity.", + "enum": [ + "Each" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Each", + "description": "Unit of measure to represent individual piece." + } + ] + } + }, + "description": "Details of quantity ordered." + }, + "TaxLineItem": { + "type": "array", + "description": "A list of tax line items.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + }, + "TaxDetails": { + "required": [ + "taxAmount" + ], + "type": "object", + "properties": { + "taxRate": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "taxAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxableAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "type": { + "type": "string", + "description": "Tax type.", + "enum": [ + "CONSUMPTION", + "GST", + "MwSt.", + "PST", + "TOTAL", + "TVA", + "VAT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CONSUMPTION", + "description": "Tax levied on consumption spending on goods and services." + }, + { + "value": "GST", + "description": "Tax levied on most goods and services sold for domestic consumption." + }, + { + "value": "MwSt.", + "description": "Mehrwertsteuer, MwSt, is German for value-added tax." + }, + { + "value": "PST", + "description": "A provincial sales tax (PST) is imposed on consumers of goods and particular services in many Canadian provinces." + }, + { + "value": "TOTAL", + "description": "Combined total of all the applicable taxes." + }, + { + "value": "TVA", + "description": "Taxe sur la Valeur Ajoutée (TVA) is French for value-added tax." + }, + { + "value": "VAT", + "description": "Value-added tax." + } + ] + } + } + }, + "AcknowledgementStatus": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide." + }, + "description": { + "type": "string", + "description": "Reason for the acknowledgement code." + } + }, + "description": "Status of acknowledgement." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ShipmentDetails": { + "required": [ + "isPriorityShipment", + "isPslipRequired", + "messageToCustomer", + "shipMethod", + "shipmentDates" + ], + "type": "object", + "properties": { + "isPriorityShipment": { + "type": "boolean", + "description": "When true, this is a priority shipment." + }, + "isScheduledDeliveryShipment": { + "type": "boolean", + "description": "When true, this order is part of a scheduled delivery program." + }, + "isPslipRequired": { + "type": "boolean", + "description": "When true, a packing slip is required to be sent to the customer." + }, + "isGift": { + "type": "boolean", + "description": "When true, the order contain a gift. Include the gift message and gift wrap information." + }, + "shipMethod": { + "type": "string", + "description": "Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'." + }, + "shipmentDates": { + "$ref": "#\/components\/schemas\/ShipmentDates" + }, + "messageToCustomer": { + "type": "string", + "description": "Message to customer for order status." + } + }, + "description": "Shipment details required for the shipment." + }, + "ShipmentDates": { + "required": [ + "requiredShipDate" + ], + "type": "object", + "properties": { + "requiredShipDate": { + "type": "string", + "description": "Time by which the vendor is required to ship the order.", + "format": "date-time" + }, + "promisedDeliveryDate": { + "type": "string", + "description": "Delivery date promised to the Amazon customer.", + "format": "date-time" + } + }, + "description": "Shipment dates." + }, + "ScheduledDeliveryShipment": { + "type": "object", + "properties": { + "scheduledDeliveryServiceType": { + "type": "string", + "description": "Scheduled delivery service type." + }, + "earliestNominatedDeliveryDate": { + "type": "string", + "description": "Earliest nominated delivery date for the scheduled delivery.", + "format": "date-time" + }, + "latestNominatedDeliveryDate": { + "type": "string", + "description": "Latest nominated delivery date for the scheduled delivery.", + "format": "date-time" + } + }, + "description": "Dates for the scheduled delivery shipments." + }, + "GiftDetails": { + "type": "object", + "properties": { + "giftMessage": { + "type": "string", + "description": "Gift message to be printed in shipment." + }, + "giftWrapId": { + "type": "string", + "description": "Gift wrap identifier for the gift wrapping, if any." + } + }, + "description": "Gift details for the item." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-orders/v2021-12-28.json b/resources/models/vendor/direct-fulfillment-orders/v2021-12-28.json new file mode 100644 index 000000000..48aa7d5e7 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-orders/v2021-12-28.json @@ -0,0 +1,1596 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Orders", + "description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-12-28" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/orders\/2021-12-28\/purchaseOrders": { + "get": { + "tags": [ + "DirectFulfillmentOrdersV20211228" + ], + "description": "Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrders", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.", + "schema": { + "type": "string", + "enum": [ + "NEW", + "SHIPPED", + "ACCEPTED", + "CANCELLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created purchase orders." + }, + { + "value": "SHIPPED", + "description": "Status for purchase orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for purchase orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled purchase orders." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created purchase orders." + }, + { + "value": "SHIPPED", + "description": "Status for purchase orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for purchase orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled purchase orders." + } + ] + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of purchase orders returned.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort the list in ascending or descending order by order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + }, + { + "name": "includeDetails", + "in": "query", + "description": "When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.", + "schema": { + "type": "string", + "format": "boolean", + "default": "true" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/OrderList" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/vendor\/directFulfillment\/orders\/2021-12-28\/purchaseOrders\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentOrdersV20211228" + ], + "description": "Returns purchase order information for the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getOrder", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Order" + }, + "example": { + "purchaseOrderNumber": "2JK3S9VC", + "orderDetails": { + "customerOrderNumber": "123-ABC", + "orderDate": "2020-02-20T13:51:00Z", + "orderStatus": "NEW", + "shipmentDetails": { + "isPriorityShipment": false, + "isScheduledDeliveryShipment": false, + "isPslipRequired": true, + "isGift": false, + "shipMethod": "UPS_2ND", + "shipmentDates": { + "requiredShipDate": "2020-02-21T00:00:00Z", + "promisedDeliveryDate": "2020-02-24T00:00:00Z" + }, + "messageToCustomer": "This shipment completes your order. You can always check the status of your orders from the \"Your Account\" link at the top of each page of our site.Thank you for shopping at Amazon.com" + }, + "taxTotal": { + "taxLineItem": [ + { + "taxAmount": { + "currencyCode": "USD", + "amount": "190" + }, + "type": "TOTAL" + } + ] + }, + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "shipToParty": { + "name": "ABCD", + "attention": "ABCD", + "addressLine1": "123 XYZ Street", + "addressLine2": "Apt 5", + "city": "San Jose", + "stateOrRegion": "CA", + "postalCode": "94086", + "countryCode": "USA" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "title": "LG 8 kg Inverter Wi-Fi Fully-Automatic Front Loading Washing Machine (FHT1408SWS, STS-VCM, Inbuilt Heater)", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "500" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "50" + }, + "type": "TOTAL" + } + ] + }, + "buyerCustomizedInfo": { + "customizedUrl": "aHR0cHM6Ly8xcC1kZi1wdWJsaWMtZGF0YS5zMy5hbWF6b25hd3MuY29tLzExMS0xMjYwNzQ1LTYyOTE0MTZfNTgzNjIxNTQwMTM1NjEuemlw" + } + }, + { + "itemSequenceNumber": "00002", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "title": "LG 6.5 kg Inverter Fully-Automatic Front Loading Washing Machine (FHT1065SNW, Blue and White, Inbuilt Heater)", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "EACH" + }, + "netPrice": { + "currencyCode": "USD", + "amount": "700" + }, + "taxDetails": { + "taxLineItem": [ + { + "taxRate": "0.1", + "taxAmount": { + "currencyCode": "USD", + "amount": "140" + }, + "type": "TOTAL" + } + ] + } + } + ] + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/vendor\/directFulfillment\/orders\/2021-12-28\/acknowledgements": { + "post": { + "tags": [ + "DirectFulfillmentOrdersV20211228" + ], + "description": "Submits acknowledgements for one or more purchase orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitAcknowledgement", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionId" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "OrderList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "orders": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Order" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + } + } + }, + "Order": { + "required": [ + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: alpha-numeric code." + }, + "orderDetails": { + "$ref": "#\/components\/schemas\/OrderDetails" + } + } + }, + "OrderDetails": { + "required": [ + "billToParty", + "customerOrderNumber", + "items", + "orderDate", + "sellingParty", + "shipFromParty", + "shipToParty", + "shipmentDetails" + ], + "type": "object", + "properties": { + "customerOrderNumber": { + "type": "string", + "description": "The customer order number." + }, + "orderDate": { + "type": "string", + "description": "The date the order was placed. This field is expected to be in ISO-8601 date\/time format, for example:2018-07-16T23:00:00Z\/ 2018-07-16T23:00:00-05:00 \/2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed.", + "format": "date-time" + }, + "orderStatus": { + "type": "string", + "description": "Current status of the order.", + "enum": [ + "NEW", + "SHIPPED", + "ACCEPTED", + "CANCELLED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NEW", + "description": "Status for newly created orders." + }, + { + "value": "SHIPPED", + "description": "Status for orders that are already shipped." + }, + { + "value": "ACCEPTED", + "description": "Status for orders accepted by vendors." + }, + { + "value": "CANCELLED", + "description": "Status for cancelled orders." + } + ] + }, + "shipmentDetails": { + "$ref": "#\/components\/schemas\/ShipmentDetails" + }, + "taxTotal": { + "$ref": "#\/components\/schemas\/TaxItemDetails" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/Address" + }, + "billToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "items": { + "type": "array", + "description": "A list of items in this purchase order.", + "items": { + "$ref": "#\/components\/schemas\/OrderItem" + } + } + }, + "description": "Details of an order." + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxInfo": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the party. For example, VAT ID." + }, + "taxRegistrationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationMessages": { + "type": "string", + "description": "Tax registration message that can be used for additional tax related details." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "attention": { + "type": "string", + "description": "The attention name of the person at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "OrderItem": { + "required": [ + "itemSequenceNumber", + "netPrice", + "orderedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's standard identification number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item." + }, + "title": { + "type": "string", + "description": "Title for the item." + }, + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "scheduledDeliveryShipment": { + "$ref": "#\/components\/schemas\/ScheduledDeliveryShipment" + }, + "giftDetails": { + "$ref": "#\/components\/schemas\/GiftDetails" + }, + "netPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "$ref": "#\/components\/schemas\/TaxItemDetails" + }, + "totalPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "buyerCustomizedInfo": { + "$ref": "#\/components\/schemas\/buyerCustomizedInfoDetail" + } + } + }, + "Money": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three digit currency code in ISO 4217 format. String of length 3." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "buyerCustomizedInfoDetail": { + "type": "object", + "properties": { + "customizedUrl": { + "type": "string", + "description": "A [Base 64](https:\/\/datatracker.ietf.org\/doc\/html\/rfc4648#section-4) encoded URL using the UTF-8 character set. The URL provides the location of the zip file that specifies the types of customizations or configurations allowed by the vendor, along with types and ranges for the attributes of their products." + } + } + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation." + }, + "SubmitAcknowledgementResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionId" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitAcknowledgement operation." + }, + "TransactionId": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "SubmitAcknowledgementRequest": { + "type": "object", + "properties": { + "orderAcknowledgements": { + "type": "array", + "description": "A list of one or more purchase orders.", + "items": { + "$ref": "#\/components\/schemas\/OrderAcknowledgementItem" + } + } + }, + "description": "The request schema for the submitAcknowledgement operation." + }, + "OrderAcknowledgementItem": { + "required": [ + "acknowledgementDate", + "acknowledgementStatus", + "itemAcknowledgements", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "vendorOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: alpha-numeric code." + }, + "vendorOrderNumber": { + "type": "string", + "description": "The vendor's order number for this order." + }, + "acknowledgementDate": { + "type": "string", + "description": "The date and time when the order is acknowledged, in ISO-8601 date\/time format. For example: 2018-07-16T23:00:00Z \/ 2018-07-16T23:00:00-05:00 \/ 2018-07-16T23:00:00-08:00.", + "format": "date-time" + }, + "acknowledgementStatus": { + "$ref": "#\/components\/schemas\/AcknowledgementStatus" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "itemAcknowledgements": { + "type": "array", + "description": "Item details including acknowledged quantity.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemAcknowledgement" + } + } + }, + "description": "Details of an individual order being acknowledged." + }, + "OrderItemAcknowledgement": { + "required": [ + "acknowledgedQuantity", + "itemSequenceNumber" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Line item sequence number for the item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's standard identification number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was provided in the purchase order." + }, + "acknowledgedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + } + }, + "ItemQuantity": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Acknowledged quantity. This value should not be zero." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the acknowledged quantity.", + "enum": [ + "Each" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Each", + "description": "Unit of measure to represent individual piece." + } + ] + } + }, + "description": "Details of quantity ordered." + }, + "TaxLineItem": { + "type": "array", + "description": "A list of tax line items.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + }, + "TaxDetails": { + "required": [ + "taxAmount" + ], + "type": "object", + "properties": { + "taxRate": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "taxAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxableAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "type": { + "type": "string", + "description": "Tax type.", + "enum": [ + "CONSUMPTION", + "GST", + "MwSt.", + "PST", + "TOTAL", + "TVA", + "VAT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CONSUMPTION", + "description": "Tax levied on consumption spending on goods and services." + }, + { + "value": "GST", + "description": "Tax levied on most goods and services sold for domestic consumption." + }, + { + "value": "MwSt.", + "description": "Mehrwertsteuer, MwSt, is German for value-added tax." + }, + { + "value": "PST", + "description": "A provincial sales tax (PST) is imposed on consumers of goods and particular services in many Canadian provinces." + }, + { + "value": "TOTAL", + "description": "Combined total of all the applicable taxes." + }, + { + "value": "TVA", + "description": "Taxe sur la Valeur Ajoutée (TVA) is French for value-added tax." + }, + { + "value": "VAT", + "description": "Value-added tax." + } + ] + } + } + }, + "AcknowledgementStatus": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide." + }, + "description": { + "type": "string", + "description": "Reason for the acknowledgement code." + } + }, + "description": "Status of acknowledgement." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ShipmentDetails": { + "required": [ + "isPriorityShipment", + "isPslipRequired", + "messageToCustomer", + "shipMethod", + "shipmentDates" + ], + "type": "object", + "properties": { + "isPriorityShipment": { + "type": "boolean", + "description": "When true, this is a priority shipment." + }, + "isScheduledDeliveryShipment": { + "type": "boolean", + "description": "When true, this order is part of a scheduled delivery program." + }, + "isPslipRequired": { + "type": "boolean", + "description": "When true, a packing slip is required to be sent to the customer." + }, + "isGift": { + "type": "boolean", + "description": "When true, the order contain a gift. Include the gift message and gift wrap information." + }, + "shipMethod": { + "type": "string", + "description": "Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the 'Help' section on Vendor Central for 'ship methods'." + }, + "shipmentDates": { + "$ref": "#\/components\/schemas\/ShipmentDates" + }, + "messageToCustomer": { + "type": "string", + "description": "Message to customer for order status." + } + }, + "description": "Shipment details required for the shipment." + }, + "ShipmentDates": { + "required": [ + "requiredShipDate" + ], + "type": "object", + "properties": { + "requiredShipDate": { + "type": "string", + "description": "Time by which the vendor is required to ship the order.", + "format": "date-time" + }, + "promisedDeliveryDate": { + "type": "string", + "description": "Delivery date promised to the Amazon customer.", + "format": "date-time" + } + }, + "description": "Shipment dates." + }, + "ScheduledDeliveryShipment": { + "type": "object", + "properties": { + "scheduledDeliveryServiceType": { + "type": "string", + "description": "Scheduled delivery service type." + }, + "earliestNominatedDeliveryDate": { + "type": "string", + "description": "Earliest nominated delivery date for the scheduled delivery.", + "format": "date-time" + }, + "latestNominatedDeliveryDate": { + "type": "string", + "description": "Latest nominated delivery date for the scheduled delivery.", + "format": "date-time" + } + }, + "description": "Dates for the scheduled delivery shipments." + }, + "GiftDetails": { + "type": "object", + "properties": { + "giftMessage": { + "type": "string", + "description": "Gift message to be printed in shipment." + }, + "giftWrapId": { + "type": "string", + "description": "Gift wrap identifier for the gift wrapping, if any." + } + }, + "description": "Gift details for the item." + }, + "TaxItemDetails": { + "type": "object", + "properties": { + "taxLineItem": { + "$ref": "#\/components\/schemas\/TaxLineItem" + } + }, + "description": "Total tax details for the line item." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-payment/v1.json b/resources/models/vendor/direct-fulfillment-payment/v1.json new file mode 100644 index 000000000..2d5de0517 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-payment/v1.json @@ -0,0 +1,983 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Payments", + "description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/payments\/v1\/invoices": { + "post": { + "tags": [ + "DirectFulfillmentPaymentV1" + ], + "description": "Submits one or more invoices for a vendor's direct fulfillment orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitInvoice", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "invoices": [ + { + "invoiceNumber": "0092590411", + "invoiceDate": "2020-03-13T11:16:24Z", + "remitToParty": { + "partyId": "YourVendorCode", + "address": { + "name": "vendor name", + "addressLine1": "vendor address 1", + "addressLine2": "vendor address 2", + "addressLine3": "vendor address 3", + "city": "DECity", + "county": "Schwabing", + "district": "M\u00fcnchen", + "stateOrRegion": "Bayern", + "postalCode": "DEPostCode", + "countryCode": "DE" + }, + "taxRegistrationDetails": [ + { + "taxRegistrationType": "VAT", + "taxRegistrationNumber": "DE123456789" + } + ] + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "5450534005838", + "address": { + "name": "Amazon EU SARL", + "addressLine1": "Marcel-Breuer-Str. 12", + "city": "M\u00fcnchen", + "county": "Schwabing", + "district": "M\u00fcnchen", + "stateOrRegion": "Bayern", + "postalCode": "80807", + "countryCode": "DE" + }, + "taxRegistrationDetails": [ + { + "taxRegistrationType": "VAT", + "taxRegistrationNumber": "DE814584193", + "taxRegistrationAddress": { + "name": "Amazon EU SARL", + "addressLine1": "Marcel-Breuer-Str. 12", + "city": "M\u00fcnchen", + "stateOrRegion": "Bayern", + "postalCode": "80807", + "countryCode": "DE" + }, + "taxRegistrationMessage": "txmessage" + } + ] + }, + "shipToCountryCode": "DE", + "paymentTermsCode": "Basic", + "invoiceTotal": { + "currencyCode": "EUR", + "amount": "1428.00" + }, + "taxTotals": [ + { + "taxType": "CGST", + "taxRate": "0.19", + "taxAmount": { + "currencyCode": "EUR", + "amount": "228.00" + }, + "taxableAmount": { + "currencyCode": "EUR", + "amount": "1200.00" + } + } + ], + "items": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B00IVLAABC", + "invoicedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "netCost": { + "currencyCode": "EUR", + "amount": "1200.00" + }, + "purchaseOrderNumber": "D3rC3KTxG", + "vendorOrderNumber": "0092590411", + "hsnCode": "76.06.92.99.00", + "taxDetails": [ + { + "taxType": "CGST", + "taxRate": "0.19", + "taxAmount": { + "currencyCode": "EUR", + "amount": "228.00" + }, + "taxableAmount": { + "currencyCode": "EUR", + "amount": "1200.00" + } + } + ] + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "invoices": [ + { + "invoiceNumber": "TestInvoice400", + "invoiceDate": "2020-08.13" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "The value '2020-03.13' of element 'invoiceDate' is not valid.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "The content of element 'invoice' is not complete. One of '{invoiceNumber, referenceNumber}' is expected.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "'2020-03.13' is not a valid value for 'dateTime'.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoiceResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "SubmitInvoiceRequest": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/InvoiceDetail" + } + } + }, + "description": "The request schema for the submitInvoice operation." + }, + "InvoiceDetail": { + "required": [ + "invoiceDate", + "invoiceNumber", + "invoiceTotal", + "items", + "remitToParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "invoiceNumber": { + "type": "string", + "description": "The unique invoice number." + }, + "invoiceDate": { + "type": "string", + "description": "Invoice date.", + "format": "date-time" + }, + "referenceNumber": { + "type": "string", + "description": "An additional unique reference number used for regulatory or other purposes." + }, + "remitToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "billToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToCountryCode": { + "type": "string", + "description": "Ship-to country code." + }, + "paymentTermsCode": { + "type": "string", + "description": "The payment terms for the invoice." + }, + "invoiceTotal": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxTotals": { + "type": "array", + "description": "Individual tax details per line item.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetail" + } + }, + "additionalDetails": { + "type": "array", + "description": "Additional details provided by the selling party, for tax-related or other purposes.", + "items": { + "$ref": "#\/components\/schemas\/AdditionalDetails" + } + }, + "chargeDetails": { + "type": "array", + "description": "Total charge amount details for all line items.", + "items": { + "$ref": "#\/components\/schemas\/ChargeDetails" + } + }, + "items": { + "type": "array", + "description": "Provides the details of the items in this invoice.", + "items": { + "$ref": "#\/components\/schemas\/InvoiceItem" + } + } + } + }, + "InvoiceItem": { + "required": [ + "invoicedQuantity", + "itemSequenceNumber", + "netCost", + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's standard identification number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item." + }, + "invoicedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "netCost": { + "$ref": "#\/components\/schemas\/Money" + }, + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code." + }, + "vendorOrderNumber": { + "type": "string", + "description": "The vendor's order number for this order." + }, + "hsnCode": { + "type": "string", + "description": "Harmonized System of Nomenclature (HSN) tax code. The HSN number cannot contain alphabets." + }, + "taxDetails": { + "type": "array", + "description": "Individual tax details per line item.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetail" + } + }, + "chargeDetails": { + "type": "array", + "description": "Individual charge details per line item.", + "items": { + "$ref": "#\/components\/schemas\/ChargeDetails" + } + } + } + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned Identification for the party." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationDetails": { + "type": "array", + "description": "Tax registration details of the entity.", + "items": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetail" + } + } + } + }, + "TaxRegistrationDetail": { + "required": [ + "taxRegistrationNumber" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the entity. For example, VAT ID, Consumption Tax ID." + }, + "taxRegistrationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationMessage": { + "type": "string", + "description": "Tax registration message that can be used for additional tax related details." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "city", + "countryCode", + "name", + "postalCode", + "stateOrRegion" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code in ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "Money": { + "required": [ + "amount", + "currencyCode" + ], + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three digit currency code in ISO 4217 format." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`." + }, + "TaxDetail": { + "required": [ + "taxAmount", + "taxType" + ], + "type": "object", + "properties": { + "taxType": { + "type": "string", + "description": "Type of the tax applied.", + "enum": [ + "CGST", + "SGST", + "CESS", + "UTGST", + "IGST", + "MwSt.", + "PST", + "TVA", + "VAT", + "GST", + "ST", + "Consumption", + "MutuallyDefined", + "DomesticVAT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CGST", + "description": "Central Goods and Services Tax (CGST) is levied by the Indian government for intrastate movement of goods and services." + }, + { + "value": "SGST", + "description": "State Goods and Services Tax (SGST) is an indirect tax levied and collected by a State Government in India on the intra-state supplies." + }, + { + "value": "CESS", + "description": "A cess is a form of tax levied by the government on tax with specific purposes till the time the government gets enough money for that purpose." + }, + { + "value": "UTGST", + "description": "Union Territory Goods and Services Tax in India." + }, + { + "value": "IGST", + "description": "Integrated Goods and Services Tax (IGST) is a tax levied on all Inter-State supplies of goods and\/or services in India." + }, + { + "value": "MwSt.", + "description": "Mehrwertsteuer, MwSt, is the German for value-added tax." + }, + { + "value": "PST", + "description": "A provincial sales tax (PST) is imposed on consumers of goods and particular services in many Canadian provinces." + }, + { + "value": "TVA", + "description": "Taxe sur la Valeur Ajoutée (TVA) is French for Value-added tax." + }, + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Tax levied on most goods and services sold for domestic consumption." + }, + { + "value": "ST", + "description": "Sales tax." + }, + { + "value": "Consumption", + "description": "Tax levied on consumption spending on goods and services." + }, + { + "value": "MutuallyDefined", + "description": "Tax component that was mutually agreed upon between Amazon and vendor." + }, + { + "value": "DomesticVAT", + "description": "Domestic Value-added tax." + } + ] + }, + "taxRate": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "taxAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxableAmount": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Details of tax amount applied." + }, + "ChargeDetails": { + "required": [ + "chargeAmount", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of charge applied.", + "enum": [ + "GIFTWRAP", + "FULFILLMENT", + "MARKETINGINSERT", + "PACKAGING", + "LOADING", + "FREIGHTOUT", + "TAX_COLLECTED_AT_SOURCE" + ], + "x-docgen-enum-table-extension": [ + { + "value": "GIFTWRAP", + "description": "Additional charge applied for giftwrap order." + }, + { + "value": "FULFILLMENT", + "description": "Fulfillment fees are the costs associated with receiving and storing products along with processing orders from handling to shipping." + }, + { + "value": "MARKETINGINSERT", + "description": "Charge to insert ads on orders." + }, + { + "value": "PACKAGING", + "description": "Additional charge for packaging orders." + }, + { + "value": "LOADING", + "description": "Additional charge for loading orders." + }, + { + "value": "FREIGHTOUT", + "description": "Freight-out refers to the costs for which the seller is responsible when shipping to a buyer, such as delivery and insurance expenses." + }, + { + "value": "TAX_COLLECTED_AT_SOURCE", + "description": "Tax collected at source (TCS) is the tax payable by a seller which he collects from the buyer at the time of sale." + } + ] + }, + "chargeAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "type": "array", + "description": "Individual tax details per line item.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetail" + } + } + }, + "description": "Monetary and tax details of the charge." + }, + "AdditionalDetails": { + "required": [ + "detail", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of the additional information provided by the selling party.", + "enum": [ + "SUR", + "OCR" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SUR", + "description": "An additional tax on something already taxed, such as a higher rate of tax on incomes above a certain level." + }, + { + "value": "OCR", + "description": "OCR." + } + ] + }, + "detail": { + "type": "string", + "description": "The detail of the additional information provided by the selling party." + }, + "languageCode": { + "type": "string", + "description": "The language code of the additional information detail." + } + }, + "description": "A field where the selling party can provide additional information for tax-related or any other purposes." + }, + "ItemQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Quantity of units available for a specific item." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the available quantity." + } + }, + "description": "Details of item quantity." + }, + "SubmitInvoiceResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitInvoice operation." + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-sandbox/v2021-10-28.json b/resources/models/vendor/direct-fulfillment-sandbox/v2021-10-28.json new file mode 100644 index 000000000..fada65f9b --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-sandbox/v2021-10-28.json @@ -0,0 +1,695 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data", + "description": "The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-10-28" + }, + "servers": [ + { + "url": "https:\/\/sandbox.sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/sandbox\/2021-10-28\/orders": { + "post": { + "tags": [ + "DirectFulfillmentSandboxV20211028" + ], + "description": "Submits a request to generate test order data for Vendor Direct Fulfillment API entities.", + "operationId": "generateOrderScenarios", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GenerateOrderScenarioRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionReference" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-amzn-api-sandbox-only": true, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/sandbox\/2021-10-28\/transactions\/{transactionId}": { + "get": { + "tags": [ + "DirectFulfillmentSandboxV20211028" + ], + "description": "Returns the status of the transaction indicated by the specified transactionId. If the transaction was successful, also returns the requested test order data.", + "operationId": "getOrderScenarios", + "parameters": [ + { + "name": "transactionId", + "in": "path", + "description": "The transaction identifier returned in the response to the generateOrderScenarios operation.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionStatus" + }, + "example": { + "transactionStatus": { + "transactionId": "ff35f39e-e69f-499e-903e-6c4f6c32609f-20210827003391", + "status": "Success", + "testCaseData": { + "scenarios": [ + { + "scenarioId": "SCENARIO_1", + "orders": [ + { + "orderId": "T11121" + }, + { + "orderId": "T11123" + } + ] + }, + { + "scenarioId": "SCENARIO_2", + "orders": [ + { + "orderId": "T22241" + }, + { + "orderId": "T22244" + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-amzn-api-sandbox-only": true + } + } + }, + "components": { + "schemas": { + "GenerateOrderScenarioRequest": { + "type": "object", + "properties": { + "orders": { + "type": "array", + "description": "The list of test orders requested as indicated by party identifiers.", + "items": { + "$ref": "#\/components\/schemas\/OrderScenarioRequest" + } + } + }, + "description": "The request body for the generateOrderScenarios operation." + }, + "OrderScenarioRequest": { + "required": [ + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + } + }, + "description": "The party identifiers required to generate the test data." + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details." + } + }, + "description": "The identification object for the party information. For example, warehouse code or vendor code. Please refer to specific party for more details." + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string" + } + }, + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string" + } + }, + "description": "A GUID assigned by Amazon to identify this transaction." + }, + "TransactionStatus": { + "type": "object", + "properties": { + "transactionStatus": { + "$ref": "#\/components\/schemas\/Transaction" + } + }, + "description": "The payload for the getOrderScenarios operation." + }, + "Transaction": { + "required": [ + "status", + "transactionId" + ], + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "The unique identifier returned in the response to the generateOrderScenarios request." + }, + "status": { + "type": "string", + "description": "The current processing status of the transaction.", + "enum": [ + "FAILURE", + "PROCESSING", + "SUCCESS" + ], + "x-docgen-enum-table-extension": [ + { + "value": "FAILURE", + "description": "Transaction has failed." + }, + { + "value": "PROCESSING", + "description": "Transaction is in process." + }, + { + "value": "SUCCESS", + "description": "Transaction has completed successfully." + } + ] + }, + "testCaseData": { + "$ref": "#\/components\/schemas\/TestCaseData" + } + }, + "description": "The transaction details including the status. If the transaction was successful, also includes the requested test order data." + }, + "TestCaseData": { + "type": "object", + "properties": { + "scenarios": { + "type": "array", + "description": "Set of use cases that describes the possible test scenarios.", + "items": { + "$ref": "#\/components\/schemas\/Scenario" + } + } + }, + "description": "The set of test case data returned in response to the test data request." + }, + "Scenario": { + "required": [ + "orders", + "scenarioId" + ], + "type": "object", + "properties": { + "scenarioId": { + "type": "string", + "description": "An identifier that identifies the type of scenario that user can use for testing." + }, + "orders": { + "type": "array", + "description": "A list of orders that can be used by the caller to test each life cycle or scenario.", + "items": { + "$ref": "#\/components\/schemas\/TestOrder" + } + } + }, + "description": "A scenario test case response returned when the request is successful." + }, + "TestOrder": { + "required": [ + "orderId" + ], + "type": "object", + "properties": { + "orderId": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occured." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-shipping/v1.json b/resources/models/vendor/direct-fulfillment-shipping/v1.json new file mode 100644 index 000000000..af2f67891 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-shipping/v1.json @@ -0,0 +1,4268 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Shipping", + "description": "The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/shipping\/v1\/shippingLabels": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShippingLabels", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by order creation date.", + "schema": { + "type": "string", + "default": "ASC", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "limit": { + "value": 2 + } + } + }, + "response": { + "payload": { + "shippingLabels": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJAwf7\/n+592UttTaZEABGBAOhuBrOZrtSFFCXhSCL5zz\/\/\/POvYRiGYRiGYRhG0fjnXwAAgGwCBAAAECAAAIAAAQAAECAAAIAAAQAAyA2Q\/zm81rd\/\/\/Z3I387epu\/jdn7EPU3I\/f1yf3\/6d9n7uun2\/vt+maXN3O7WV2m0XU7s709eRxGH6snf\/vktqO2ryfLFrG9P13PAMAlAfJ08rF6XU\/+bubfRv\/76v2Yvf2ZOBudAM\/eh9XbydgeRv776OP5dF2PLMNP\/z1imUYuH7l9ra7PmWVg7HV7JeBWozviNkZfY6M\/ONi1XgAESECAzH7iPTORHp0gzk7YBEh+gDz9lLxzgERF8UxsjD420dc1s12tbn\/eBNYn3tkT+E4BknUbAAJk4QpHJ26f\/mZkArTyxrA6UXq6XBEBEnFfs8KgKkBWtpvZx2D2ulY+RY5ez9HXnREzI3EtQHI\/LIr6mWrmZDvqejOWIeonxAAC5GGAjExcnkzkn34CmzkRG53YZ0wUoz5Nj1rGbgHyZLuZvf87AiR6W1n571nfvERufyZx8RP32X2BqiKkKkBGl2Hm2yMAAdIgQEYm2LMT2cwA+WnZBEh+gEROjiMez9nJxcwnrVlxMLp\/RXWAiJDciXtEgETGwq4AyVpW2y0gQILiI2Ji9zRkZl7MI\/bTGJmcrwTI06MgZQbI7H3I\/qnXzLqeOarSyuMZvePqyuM0cp0r21B0gKysBwSIAAG4PEBmJ3afJnVRE6+VCfvOAFmd2N36DcjsdhPxbUFVgIxOAGfjPyL+MgNk9gMGE7vn21WnSf7bAgTo84FL1jy44uAYVXP4VgGy+mnop5\/WVOwcmzk5\/3OZBEh8gERuNyPbUWWAfJswZu0v0jFAMibY1E\/yO9+36EPI2wZh\/+tW5nMxMhSqA2TXkfraBUjU5DZiQjzzN9kBMvN3tx4FK2O76RIgmT9vmj1fxuiBISKOShWx\/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AAABYggQAAAEiNE4QAzDMAzDMAzDMASIYRiGYRiGYRgCxDAMwzAMwzAMQ4AYhmEYhmEYhiFADMMwDMMwDMMw\/jdAAAAAio50JkAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAoRXbAT\/MX77myfXs3IfRu\/nymVXrn\/0PjxZ3qjlyngcV5Yx+7JRj2nGfcjYxla2n8rHonKbjFqf2a+B3V43Ml6rK99rop7jGa+Hu173std\/9uv86H1buQ8IEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkA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Pu4MiI0Ay94WJ2iYFiAARILEBUrGPmABBgCBABMiVAVJ9\/gsBIkAEiAARIAIEAYIAESACpEWARD5e1QGSeUJGASJABIgAESDmngLERiBABMi2AKlaD523GQGSf5SzrG3ylAD5baIpQASIAEGAIEAEyGsDJPLNLztAon\/O1DVAor41eroubw2QlZ+0ZWzvpwRI5ra6M0Aynm+r67\/qPEECBAGCABEgxwXIrslJ53NPnLa+d03kuq+jDtvfrQFySpCfuJwCBAGCABEgAkSACJBD19GbA+RNE3MBIkAQIAgQASJABIgAMYEVIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAA5KECythkBclaAnDIpFCACRIAIEAGCABEgAiQpQLLfqCu3mextOGObzHocd2+TGQGS8RrY7XUj47W68r2m8ihY2e+J2Y9jh9cHAYIAQYAIkBYBkvlGLEAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAg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AIAAAQAABAgAAIAAAQAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAAAeImAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAAAQIAACBAAAAAAQIAACBAAAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAECAAAgAABAAAECAAAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + }, + { + "purchaseOrderNumber": "2JK3S9VD", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG002", + "trackingNumber": "1Z6A34Y60369738805", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJAwf7\/n+592UttTaZEABGBAOhuBrOZrtSFFCXhSCL5zz\/\/\/POvYRiGYRiGYRhG0fjnXwAAgGwCBAAAECAAAIAA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OF+Zlyu+jqrl33X4+7FX4AIEAEiQASIAEGAmNgLEAEiQBAgAkSACBABAgJEgAgQAYIAESACRIAIEAGCAFl48kb8m\/tpHxD7gCBABIgAESACRIDwsgCpPgJR5tGIVu\/L6Kfxket+9ohVUUf8yl722dub3c5W1oUA8eIsQASIABEgAgQBsuGT6E6fUp9yexmPww3LfsO3NgJEgAgQASJABIgAQYAkvsl2+p3+KbeXOdk5edlv2G9FgAgQASJABIgAESAIEAEiQASIAEGACBABIkAEiPcgBIgAESACBAEiQASIABEgAgQBMjGBsg9I3aTTPiBnTv69+AsQASJABIgAESAIkIU32yf\/lnEUrIijGs0uw+6jYM1eZ6d1nbHOZq8z6ghdAsSLswARIAJEgAgQBEjDN+Wu\/5axDB6HunV20rczXvwFiAARIAJEgAgQBMiGN+RO\/5axDB6HunV22v4pXvwFiAARIAJEgAgQBIiJrwARIAIEASJABIgAESAgQASIx0GAIEAEiAARIAJEgCBAFp68Xf8tYxk8DvYBESACRIAIEAEiQAQIAmTiiZd5PdVHWIo4UtLIv+18HKLWS\/XRs3avp4j1KUAEiAARIAJEgAgQBEjzSdIp54q4\/ZP9U9bL7snlSc8tBIgAESACRIAIENoHSPVGesrZsm\/ft+GU9dJxYilAECACRIAIEAGCABEgAkSACBAEiAARIAJEgAgQBIiJtvUiQLz4CxABIkAEiAARIAiQzZMk+zpYLydNLk96biFABIgAESACRIDQOkAyjlw0e4Sl2fuZvewRR9laWX+zR23Kvi9RRwfLWL8ZRwATIAgQASJABIgAQYAkTow6nUOj06f7uyc5Xe\/LKdvLjsfdi78AESACRIAIEAGCAPn3nLOId9q\/oeMEp8N9OWV72fW4e\/EXIAJEgAgQASJAECACRIAIEAGCABEgAkSACBAQIAJEgAgQBIgAESACRIAIEK4MkG8TI\/uA2Afkxu3FPiAIEAEiQASIAIGNAfLnBjr6b5\/+rvo6Z64\/637O3peny777iFERR5Davb1kHMlLgAgQASJABIgAESAIkE1vwjuvs9O5TE759P6U66zeXpwHBAEiQASIABE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Xs3IfRu\/nymVXrn\/0PjxZ3qjlyngcV5Yx+7JRj2nGfcjYxla2n8rHonKbjFqf2a+B3V43Ml6rK99rop7jGa+Hu173std\/9uv86H1buQ8IEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkAEiAARIAgQBIgAESAh+wIIEAEiQASIABEgCBAEiAARIKVBIkDGY02ACBABIkAECAIEASJArgyQ7EmnABEgAkSACBABggBBgAgQAVIWICuHaRUgewMka5kFyP4AmX2vESBrAdLtKHkCBAGCABEg2wKkKkI6BUj1pHdl2QWIABEgvQJk9wE9BAgCBAEiQ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ZWzvpwRI5ra6M0Aynm+r67\/qPEECBAGCABEgxwXIrslJ53NPnLa+d03kuq+jDtvfrQFySpCfuJwCBAGCABEgAkSACJBD19GbA+RNE3MBIkAQIAgQASJABIgAMYEVIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAA5KECythkBclaAnDIpFCACRIAIEAGCABEgAiQpQLLfqCu3mextOGObzHocd2+TGQGS8RrY7XUj47W68r2m8ihY2e+J2Y9jh9cHAYIAQYAIkBYBkvlGLEAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAgQAABAgAgQAABAgAAAAAIEAABAgAAAAAI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AAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAECAAAgAABAAAECAAAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "shippingLabels": [ + { + "purchaseOrderNumber": "mockpurchaseOrderNumber1", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJAwf7\/n+592UttTaZEABGBAOhuBrOZrtSFFCXhSCL5zz\/\/\/POvYRiGYRiGYRhG0fjnXwAAgGwCBAAAECAAAIAAAQAAECAAAIAAAQAAyA2Q\/zm81rd\/\/\/Z3I387epu\/jdn7EPU3I\/f1yf3\/6d9n7uun2\/vt+maXN3O7WV2m0XU7s709eRxGH6snf\/vktqO2ryfLFrG9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tGIVu\/L6Kfxket+9ohVUUf8yl722dub3c5W1oUA8eIsQASIABEgAgQBsuGT6E6fUp9yexmPww3LfsO3NgJEgAgQASJABIgAQYAkvsl2+p3+KbeXOdk5edlv2G9FgAgQASJABIgAESAIEAEiQASIAEGACBABIkAEiPcgBIgAESACBAEiQASIABEgAgQBMjGBsg9I3aTTPiBnTv69+AsQASJABIgAESAIkIU32yf\/lnEUrIijGs0uw+6jYM1eZ6d1nbHOZq8z6ghdAsSLswARIAJEgAgQBEjDN+Wu\/5axDB6HunV20rczXvwFiAARIAJEgAgQBMiGN+RO\/5axDB6HunV22v4pXvwFiAARIAJEgAgQBIiJrwARIAIEASJABIgAESAgQASIx0GAIEAEiAARIAJEgCBAFp68Xf8tYxk8DvYBESACRIAIEAEiQAQIAmTiiZd5PdVHWIo4UtLIv+18HKLWS\/XRs3avp4j1KUAEiAARIAJEgAgQBEjzSdIp54q4\/ZP9U9bL7snlSc8tBIgAESACRIAIENoHSPVGesrZsm\/ft+GU9dJxYilAECACRIAIEAGCABEgAkSACBAEiAARIAJEgAgQBIiJtvUiQLz4CxABIkAEiAARIAiQzZMk+zpYLydNLk96biFABIgAESACRIDQOkAyjlw0e4Sl2fuZvewRR9laWX+zR23Kvi9RRwfLWL8ZRwATIAgQASJABIgAQYAkTow6nUOj06f7uyc5Xe\/LKdvLjsfdi78AESACRIAIEAGCAPn3nLOId9q\/oeMEp8N9OWV72fW4e\/EXIAJEgAgQASJAECACRIAIEAGCABEgAkSACBAQIAJEgAgQBIgAESACRIAIEK4MkG8TI\/uA2Afkxu3FPiAIEAEiQASIAIGNAfLnBjr6b5\/+rvo6Z64\/637O3peny777iFERR5Davb1kHMlLgAgQASJABIgAESAIkE1vwjuvs9O5TE759P6U66zeXpwHBAEiQASIABEgCJBD34CrrrPT2dxP2X\/hlOus3l6cCR0BIkAEiAARIHiPEyACRIAIEAAAASJABIgAESAAgADZGCE7r9M+IPYBsQ8IAMDBARJxxKOo68y4LxHrJeooShHXWX3Ur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IkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkAEiAARIAgQBIgAESAh+wIIEAEiQASIABEgCBAEiAARIKVBIkDGY02ACBABIkAECAIEASJArgyQ7EmnABEgAkSACBABggBBgAgQAVIWICuHaRUgewMka5kFyP4AmX2vESBrAdLtKHkCBAGCABEg2wKkKkI6BUj1pHdl2QWIABEgvQJk9wE9BAgCBAEiQK4IkC5vwgKkV4BEL7cAiQuQyAMgCBABIkDMPQWIjUCACJAtAdLhjbgiQHZMegWIAIkMkKplFyACRIAIEASIABEgZW9MAkSACJCeAVK57AJEgAgQAYIAESACpPSN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YEVIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAA5KECythkBclaAnDIpFCACRIAIEAGCABEgAiQpQLLfqCu3mextOGObzHocd2+TGQGS8RrY7XUj47W68r2m8ihY2e+J2Y9jh9cHAYIAQYAIkBYBkvlGLEAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAgQAABAgAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAwDsCxDAMwzAMwzAMo2hYCYZhGIZhGIZhCBDDMAzDMAzDMASIYRiGYRiGYRiGADEMwzAMwz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AAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + }, + { + "purchaseOrderNumber": "mockpurchaseOrderNumber2", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG002", + "trackingNumber": "1Z6A34Y60369738805", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJAwf7\/n+592UttTaZEABGBAOhuBrOZrtSFFCXhSCL5zz\/\/\/POvYRiGYRiGYRhG0fjnXwAAgGwCBAAAECAAAIAAAQAAECAAAIAAAQAAyA2Q\/zm81rd\/\/\/Z3I387epu\/jdn7EPU3I\/f1yf3\/6d9n7uun2\/vt+maXN3O7WV2m0XU7s709eRxGH6snf\/vktqO2ryfLFrG9P13PAMAlAfJ08rF6XU\/+bubfRv\/76v2Yvf2ZOBudAM\/eh9XbydgeRv776OP5dF2PLMNP\/z1imUYuH7l9ra7PmWVg7HV7JeBWozviNkZfY6M\/ONi1XgAESECAzH7iPTORHp0gzk7YBEh+gDz9lLxzgERF8UxsjD420dc1s12tbn\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EgAgQBMjGBsg9I3aTTPiBnTv69+AsQASJABIgAESAIkIU32yf\/lnEUrIijGs0uw+6jYM1eZ6d1nbHOZq8z6ghdAsSLswARIAJEgAgQBEjDN+Wu\/5axDB6HunV20rczXvwFiAARIAJEgAgQBMiGN+RO\/5axDB6HunV22v4pXvwFiAARIAJEgAgQBIiJrwARIAIEASJABIgAESAgQASIx0GAIEAEiAARIAJEgCBAFp68Xf8tYxk8DvYBESACRIAIEAEiQAQIAmTiiZd5PdVHWIo4UtLIv+18HKLWS\/XRs3avp4j1KUAEiAARIAJEgAgQBEjzSdIp54q4\/ZP9U9bL7snlSc8tBIgAESACRIAIENoHSPVGesrZsm\/ft+GU9dJxYilAECACRIAIEAGCABEgAkSACBAEiAARIAJEgAgQBIiJtvUiQLz4CxABIkAEiAARIAiQzZMk+zpYLydNLk96biFABIgAESACRIDQOkAyjlw0e4Sl2fuZvewRR9laWX+zR23Kvi9RRwfLWL8ZRwATIAgQASJABIgAQYAkTow6nUOj06f7uyc5Xe\/LKdvLjsfdi78AESACRIAIEAGCAPn3nLOId9q\/oeMEp8N9OWV72fW4e\/EXIAJEgAgQASJAECACRIAIEAGCABEgAkSACBAQIAJEgAgQBIgAESACRIAIEK4MkG8TI\/uA2Afkxu3FPiAIEAEiQASIAIGNAfLnBjr6b5\/+rvo6Z64\/637O3peny777iFERR5Davb1kHMlLgAgQASJABIgAESAIkE1vwjuvs9O5TE759P6U66zeXpwHBAEiQASIABEgCJBD34CrrrPT2dxP2X\/hlOus3l6cCR0BIkAEiAARIHiPEyACRIAIEAAAASJABIgAESAAgADZGCE7r9M+IPYBsQ8IAMDBARJxxKOo68y4LxHrJeooShHXWX3UrYjHOetx2LnsAgQAECDBk6ZOn+6\/+VuP6uVr+MQ44oSBAgQAECCDE6au+ze8eb+P6uXrHB879yURIACAABEgAkSACBAAAAEiQASIABEgAIAAmZg02QfEPiDdIqTzsgsQAECADE6cRv8t4zorjqp04nqpXr6OEXLKdQoQAECAAGWhJEAAAA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kIjHVYCsfUhweoDs\/PbjtADJ3j4ECALEECDJb9CRk8SK8ypETVRndxyPmDxkBkinN9wuAbIS6xHLkL1sOwMk8oOQqNe3ivWdscxZ8dEh7gUICBBDgKS+SY6+2UWetXlXeO2aaEYFyO7zgFTE28phmVdvp\/IgDh0DJGuiH3127YrtacffZ6+P7HPo7DhBrABBgBivC5CMN6FvL9JZbzYz35ZETPSzfjIV9Y1J9r4yqy9UlRPfjPNORE6CKg6NnT3ZqTypXdW2vvIaUHXAjN2v+5XrY+X1LuOcKVWHWgYBYhwbICuHvI26zOz+EFHnvpi5X7NHMFldjojHNurFJWLCnDEJGXk8q49I8\/T6Mp4fu46wU3WemuztPfvkdpnbU1R8rDxXs9dH5YkII7YPAYIAMXwDApsDhPvfiOg5Oai4HJ4zCBBDgADgAwQAAWIIEAAABIghQAAAQIAYAgQAAAFiCBAAAASIIUAAAECAGAIEAAABYggQAAAQIIYAAQBAgBgCBAAAAWJyLkAAAECAGAIEAAABYggQAAAQIIYAAQBAgBgCBAAABIgAAQAAAWIIEAAABIghQAAAQIAYAgQAAAFiCBAAABAgAgQAAASIIUAAABAghgABAAABYggQAAAEiNE4QAzDMAzDMAzDMASIYRiGYRiGYRgCxDAMwzAMwzAMQ4AYhmEYhmEYhiFADMMwDMMwDMMw\/jdAAAAAio50JkAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAoRXbAT\/MX77myfXs3IfRu\/nymVXrn\/0PjxZ3qjlyngcV5Yx+7JRj2nGfcjYxla2n8rHonKbjFqf2a+B3V43Ml6rK99rop7jGa+Hu173std\/9uv86H1buQ8IEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkAEiAARIAgQBIgAESAh+wIIEAEiQASIABEgCBAEiAARIKVBIkDGY02ACBABIkAECAIEASJArgyQ7EmnABEgAkSACBABggBBgAgQAVIWICuHaRUgewMka5kFyP4AmX2vESBrAdLtKHkCBAGCABEg2wKkKkI6BUj1pHdl2QWIABEgvQJk9wE9BAgCBAEiQK4IkC5vwgKkV4BEL7cAiQuQyAMgCBABIkDMPQWIjUCACJAtAdLhjbgiQHZMegWIAIkMkKplFyACRIAIEASIABEgZW9MAkSACJCeAVK57AJEgAgQAYIAESACpPSNSYAIkOhlFyBrz+XI7UuACBABggBBgAiQdgGy4805O0B2TXoFiACJeh2I2rYESMy2mPm+KUAQIAgQASJANkaIABEgNwXIbz9xy17nAsR5QAQIAgQBIkAEiAA5IkAyJp9vD5Dd25MAESACBAGCABEgAmTx9+rf1s\/pE0YBIkCqtyUBIk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EAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAgQAABAgAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAwDsCxDAMwzAMwzAMo2hYCYZhGIZhGIZhCBDDMAzDMAzDMASIYRiGYRiGYRiGADEMwzAMwzAMQ4AYhmEYhmEYhmEIEMMwDMMwDMMwBIhhGIZhGIZhGALEMAzDMAzDMAxDgBiGYRiGYRiGIUAMwzAMwzAMwzAEiGEYhmEYhmEYAsQwDMMwDMMwDAFiGIZhGIZhGIYhQAzDMAzDMAzDODNAAAAAsgkQAABAgAAAAAIEA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gQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-09-2100:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelListResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Creates a shipping label for a purchase order and returns a transactionId for reference.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShippingLabelRequest", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shippingLabelRequests": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "containers": [ + { + "containerType": "carton", + "containerIdentifier": "123", + "trackingNumber": "XXXX", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 1, + "buyerProductIdentifier": "B07DFVDRAB", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + } + ] + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "shippingLabelRequests": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + } + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "shippingLabelRequests": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "containers": [ + { + "containerType": "carton", + "containerIdentifier": "123", + "trackingNumber": "XXXX", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 1, + "buyerProductIdentifier": "B07DFVDRAA", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + }, + { + "itemSequenceNumber": 2, + "buyerProductIdentifier": "B07DFVDRAB", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + } + ] + }, + { + "containerType": "carton", + "containerIdentifier": "1234", + "trackingNumber": "XXXX", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 3, + "buyerProductIdentifier": "B07DFVDRAC", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + }, + { + "itemSequenceNumber": 4, + "buyerProductIdentifier": "B07DFVDRAD", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + } + } + ] + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shippingLabelRequests": [ + { + "purchaseOrderNumber": "MOCKPO" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid PO" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/shippingLabels\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a shipping label for the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShippingLabel", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + }, + "example": { + "payload": { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJAwf7\/n+592UttTaZEABGBAOhuBrOZrtSFFCXhSCL5zz\/\/\/POvYRiGYRiGYRhG0fjnXwAAgGwCBAAAECAAAIAAAQAAECAAAIAAAQAAyA2Q\/zm81rd\/\/\/Z3I387epu\/jdn7EPU3I\/f1yf3\/6d9n7uun2\/vt+maXN3O7WV2m0XU7s709eRxGH6snf\/vktqO2ryfLFrG9P13PAMAlAfJ08rF6XU\/+bubfRv\/76v2Yvf2ZOBudAM\/eh9XbydgeRv776OP5dF2PLMNP\/z1imUYuH7l9ra7PmWVg7HV7JeBWozviNkZfY6M\/ONi1XgAESECAzH7iPTORHp0gzk7YBEh+gD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ACBABIkAEiPcgBIgAESACBAEiQASIABEgAgQBMjGBsg9I3aTTPiBnTv69+AsQASJABIgAESAIkIU32yf\/lnEUrIijGs0uw+6jYM1eZ6d1nbHOZq8z6ghdAsSLswARIAJEgAgQBEjDN+Wu\/5axDB6HunV20rczXvwFiAARIAJEgAgQBMiGN+RO\/5axDB6HunV22v4pXvwFiAARIAJEgAgQBIiJrwARIAIEASJABIgAESAgQASIx0GAIEAEiAARIAJEgCBAFp68Xf8tYxk8DvYBESACRIAIEAEiQAQIAmTiiZd5PdVHWIo4UtLIv+18HKLWS\/XRs3avp4j1KUAEiAARIAJEgAgQBEjzSdIp54q4\/ZP9U9bL7snlSc8tBIgAESACRIAIENoHSPVGesrZsm\/ft+GU9dJxYilAECACRIAIEAGCABEgAkSACBAEiAARIAJEgAgQBIiJtvUiQLz4CxABIkAEiAARIAiQzZMk+zpYLydNLk96biFABIgAESACRIDQOkAyjlw0e4Sl2fuZvewRR9laWX+zR23Kvi9RRwfLWL8ZRwATIAgQASJABIgAQYAkTow6nUOj06f7uyc5Xe\/LKdvLjsfdi78AESACRIAIEAGCAPn3nLOId9q\/oeMEp8N9OWV72fW4e\/EXIAJEgAgQASJAECACRIAIEAGCABEgAkSACBAQIAJEgAgQBIgAESACRIAIEK4MkG8TI\/uA2Afkxu3FPiAIEAEiQASIAIGNAfLnBjr6b5\/+rvo6Z64\/637O3peny777iFERR5Davb1kHMlLgAgQASJABIgAESAIkE1vwjuvs9O5TE759P6U66zeXpwHBAEiQASIABEgCJBD34CrrrPT2dxP2X\/hlOus3l6cCR0BIkAEiAARIHiPEyACRIAIEAAAASJABIgAESAAgADZGCE7r9M+IPYBsQ8IAMDBARJxxKOo68y4LxHrJeooShHXWX3UrYjHOetx2LnsAgQAECDBk6ZOn+6\/+VuP6uVr+MQ44oSBAgQAECCDE6au+ze8eb+P6uXrHB879yURIACAABEgAkSACBAAAAEiQASIABEgAIAAmZg02QfEPiDdIqTzsgsQAECADE6cRv8t4zorjqp04nqp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BABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkAEiAARIAgQBIgAESAh+wIIEAEiQASIABEgCBAEiAARIKVBIkDGY02ACBABIkAECAIEASJArgyQ7EmnABEgAkSACBABggBBgAgQAVIWICuHaRUgewMka5kFyP4AmX2vESBrAdLtKHkCBAGCABEg2wKkKkI6BUj1pHdl2QWIABEgvQJk9wE9BAgCBAEiQK4IkC5vwgKkV4BEL7cAiQuQyAMgCBABIkDMPQWIjUCACJAtAdLhjbgiQHZMegWIAIkMkKplFyACRIAIEASIABEgZW9MAkSACJCeAVK57AJEgAgQAYIAESACpPSNSYAIkOhlFyBrz+XI7UuACBABggBBgAiQdgGy4805O0B2TXoFiACJeh2I2rYESMy2mPm+KUAQIAgQASJANkaIABEgNwXIbz9xy17nAsR5QAQIAgQBIkAEiAA5IkAyJp9vD5Dd25MAESACBAGCABEgAm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kvlGLEAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAgQAABAgAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAwDsCxDAMwzAMwzAMo2hYCYZhGIZhGIZhCBDDMAzDMAzDMASIYRiGYRiGYRiGADEMwzAMwzAMQ4AYhmEYhmEYhmEIEMMwDMMwDMMwBIhhGIZhGIZhGALEMAzDMAzDMAxDgBiGYRiGYRiGIUAMwzAMwzAMwzAEiGEYhmEYhmEYAsQwDMMwDMMwDAFiGIZhGIZhGIYhQAzDMAzDMA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AAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "2JK3S9VC" + } + } + }, + "response": { + "payload": { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "Base 64 encoded string goes here " + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "mockpurchaseOrderNumber", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "Base 64 encoded string goes here" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "DUMMYPO" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid PO ID.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShippingLabelResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/shipmentConfirmations": { + "post": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Submits one or more shipment confirmations for vendor orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShipmentConfirmations", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentConfirmations": [ + { + "purchaseOrderNumber": "PO00050003", + "shipmentDetails": { + "shippedDate": "2019-08-07T19:56:45.632Z", + "shipmentStatus": "SHIPPED", + "isPriorityShipment": true, + "estimatedDeliveryDate": "2019-08-07T19:56:45.632Z" + }, + "sellingParty": { + "partyId": "VENDORCODE" + }, + "shipFromParty": { + "partyId": "VENDORWAREHOUSECODE" + }, + "items": [ + { + "itemSequenceNumber": 1, + "buyerProductIdentifier": "ASIN001", + "vendorProductIdentifier": "9782700001659", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + }, + { + "itemSequenceNumber": 2, + "buyerProductIdentifier": "ASIN002", + "vendorProductIdentifier": "9782700001659", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + }, + { + "itemSequenceNumber": 3, + "buyerProductIdentifier": "ASIN003", + "vendorProductIdentifier": "9782700001659", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + }, + { + "itemSequenceNumber": 4, + "buyerProductIdentifier": "ASIN004", + "vendorProductIdentifier": "9782700001659", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + } + ], + "containers": [ + { + "containerType": "carton", + "containerIdentifier": "123", + "trackingNumber": "TRACK001", + "scacCode": "SCAC001", + "carrier": "ABCD001", + "shipMethod": "UPS", + "dimensions": { + "length": "10", + "width": "10", + "height": "10", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 1, + "buyerProductIdentifier": "ASIN001", + "packedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + } + ] + }, + { + "containerType": "carton", + "containerIdentifier": "234", + "trackingNumber": "TRACK002", + "scacCode": "SCAC001", + "carrier": "ABCD001", + "shipMethod": "UPS", + "dimensions": { + "length": "10", + "width": "10", + "height": "10", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 2, + "buyerProductIdentifier": "ASIN002", + "packedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + } + ] + }, + { + "containerType": "carton", + "containerIdentifier": "ABCD", + "trackingNumber": "TRACK003", + "scacCode": "SCAC001", + "carrier": "ABCD001", + "shipMethod": "UPS", + "dimensions": { + "length": "10", + "width": "10", + "height": "10", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 3, + "buyerProductIdentifier": "ASIN003", + "packedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + } + ] + }, + { + "containerType": "carton", + "containerIdentifier": "id12", + "trackingNumber": "TRACK004", + "scacCode": "SCAC001", + "carrier": "ABCD001", + "shipMethod": "UPS", + "dimensions": { + "length": "10", + "width": "10", + "height": "10", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": 4, + "buyerProductIdentifier": "ASIN004", + "packedQuantity": { + "amount": 100, + "unitOfMeasure": "Each" + } + } + ] + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentConfirmations": [ + { + "purchaseOrderNumber": "DummyPO" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "The content of element 'ShipmentConfirmation' is not complete. Pass valid PO.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/shipmentStatusUpdates": { + "post": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShipmentStatusUpdates", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentStatusUpdates": [ + { + "purchaseOrderNumber": "DX00050003", + "sellingParty": { + "partyId": "VENDORCODE" + }, + "shipFromParty": { + "partyId": "VENDORWAREHOUSECODE" + }, + "statusUpdateDetails": { + "trackingNumber": "TRACK001", + "statusCode": "D1", + "reasonCode": "NS", + "statusDateTime": "2020-08-07T19:56:45.632Z", + "statusLocationAddress": { + "city": "Berlin", + "postalCode": "10115", + "stateOrRegion": "Berlin", + "countryCode": "DE" + }, + "shipmentSchedule": { + "estimatedDeliveryDateTime": "2020-08-07T19:56:45.632Z", + "apptWindowStartDateTime": "2020-08-07T19:56:45.632Z", + "apptWindowEndDateTime": "2020-08-07T19:56:45.632Z" + } + } + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentStatusUpdates": [ + { + "purchaseOrderNumber": "DX00050003" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "The content of element 'PurchaseOrderNo' is not complete. One of PurchaseOrderNo is expected.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/customerInvoices": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCustomerInvoices", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "customerInvoices": [ + { + "purchaseOrderNumber": "PO98676856", + "content": "base 64 content goes here" + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "customerInvoices": [ + { + "purchaseOrderNumber": "mockpurchaseOrderNumber", + "content": "base 64 content goes here" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "shipFromPartyId": { + "value": "dummy" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-09-2100:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/customerInvoices\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a customer invoice based on the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCustomerInvoice", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "Purchase order number of the shipment for which to return the invoice.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + }, + "example": { + "payload": { + "purchaseOrderNumber": "PO98676856", + "content": "base 64 encoded string" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "PO98676856" + } + } + }, + "response": { + "payload": { + "purchaseOrderNumber": "PO98676856", + "content": "base 64 encoded string" + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "mockpurchaseOrderNumber", + "content": "base 64 encoded string" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "mockpurchaseOrderNumberDummy" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetCustomerInvoiceResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/packingSlips": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPackingSlips", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by packing slip creation date.", + "schema": { + "type": "string", + "default": "ASC", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by packing slip creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by packing slip creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by packing slip creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by packing slip creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + }, + "example": { + "payload": { + "pagination": { + "nextToken": "NEBxNEBxNEBxNR==" + }, + "packingSlips": [ + { + "purchaseOrderNumber": "UvgABdBjQ", + "content": "JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMyMjQ+PnN0cmVhbQp4nOVcW4\/dthF+31+hlwLJgxlyhlegKOD1ro32qUEW6IOTh6BOUhR2AqcB+vc7pEiJkmYlitrd3mwYx+LhZTjXb6g5\/HyjBkl\/X8UPF2D466ebzzdyUGOLlUrAoLTQ8Qs5\/HRz+3Dz1VscFAwPP9ZjlRRgTQjBheHh0\/D+i2+\/+PP3P\/0wfPnd8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MDAwMTY4NDEgMDAwMDAgbiAKMDAwMDAxNzczNSAwMDAwMCBuIAowMDAwMDIzMDE2IDAwMDAwIG4gCjAwMDAwMjk3NzUgMDAwMDAgbiAKMDAwMDA2MjY0NCAwMDAwMCBuIAowMDAwMDY1NjE5IDAwMDAwIG4gCjAwMDAwNjU2NjQgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDI4IDAgUi9JRCBbPGIxMjZlODIwMDdjNzZhNmUxNTFlNzQ0Zjg2MjBmNDJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + ] + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-02-20T00:00:00-08:00" + }, + "createdAfter": { + "value": "2020-02-15T14:00:00-08:00" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "NEBxNEBxNEBxNR==" + }, + "packingSlips": [ + { + "purchaseOrderNumber": "UvgABdBjQ", + "content": "JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMyMjQ+PnN0cmVhbQp4nOVcW4\/dthF+31+hlwLJgxlyhlegKOD1ro32qUEW6IOTh6BOUhR2AqcB+vc7pEiJkmYlitrd3mwYx+LhZTjXb6g5\/HyjBkl\/X8UPF2D466ebzzdyUGOLlUrAoLTQ8Qs5\/HRz+3Dz1VscFAwPP9ZjlRRgTQjBheHh0\/D+i2+\/+PP3P\/0wfPnd8PCnuSNaIRVIqaTeDlGrzhqE9RiCV2rbefjlx\/XkVu70X09unUBjpQTPdP72y7H3\/cPN1zU\/jMeKH6uvrPDTV5\/p76t5IwoEKEMPedT4jRoMGJHWtQMQEUYqeqBOw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wMCBuIAowMDAwMDY1NjE5IDAwMDAwIG4gCjAwMDAwNjU2NjQgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDI4IDAgUi9JRCBbPGIxMjZlODIwMDdjNzZhNmUxNTFlNzQ0Zjg2MjBmNDJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "pagination": { + "nextToken": "NEBxNEBxNEBxNR==" + }, + "packingSlips": [ + { + "purchaseOrderNumber": "mockpurchaseOrderNumber1", + "content": "Base 64 encoded string goes here", + "contentType": "application\/pdf" + }, + { + "purchaseOrderNumber": "mockpurchaseOrderNumber2", + "content": "Base 64 encoded string goes here", + "contentType": "application\/pdf" + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-09-2100:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipListResponse" + } + } + } + } + } + } + }, + "\/vendor\/directFulfillment\/shipping\/v1\/packingSlips\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV1" + ], + "description": "Returns a packing slip based on the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPackingSlip", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchaseOrderNumber for the packing slip you want.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + }, + "example": { + "payload": { + "purchaseOrderNumber": "UvgABdBjQ", + "content": "JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMyMjQ+PnN0cmVhbQp4nOVcW4\/dthF+31+hlwLJgxlyhlegKOD1ro32qUEW6IOTh6BOUhR2AqcB+vc7pEiJkmYlitrd3mwYx+LhZTjXb6g5\/HyjBkl\/X8UPF2D466ebzzdyUGOLlUrAoLTQ8Qs5\/HRz+3Dz1VscFAwPP9ZjlRRgTQjBheHh0\/D+i2+\/+PP3P\/0wfPnd8PCnuSNaIRVIqaTeDlGrzhqE9RiCV2rbefjlx\/XkVu70X09unUBjpQTPdP72y7H3\/cPN1zU\/jMeKH6uvrPDTV5\/p76t5IwoEKEMPedT4jRoMGJHWtQMQEUYqeqBOw6uKtXFU+vhU95fDx8WjAI\/UJKf\/\/W34y83PRN+7m\/ffUfMH+sJYO\/zzhp3qm0RX8ALBSYnj6uCFC\/EPPUAQ3iX9+OqPn9Rw98tiI8p4oRyOO\/zd8A7uhn\/89v2vvyUOvUuao4QkuSs\/zp2fnCOy5OCl0DorHwiPOkrDpY7jo7UucyLPF\/fpaNnh1x+GHxMpLeNoVZOGojk9FoTqHYrCm06KtQgjt86vagX2EuyE6x3qyQA6hSOF6paOUsKYxCl9fiwK27+w7ueVMolZXTQ70U+yJyfWOzYI6Dch2a+SAMV2z2sWYLLdLisCLUz3WJOst4tkK0L\/uuGKnwvC9TIaJcXAzqFqdJJdG0a8oJWoR\/PvW9leYDUN7me1F91DQ\/GVHRvWclTMrg0TosP+lXHkVo+71KbfXWqb3WVH9HYXrFiHkVldRBvJucuvMzb74ecPBc3XGJ7MSANKqWkE4eCv3oIeQgT6scvDh5vfE2bDPwwPfydsAWpu06mNoK\/Vc6PJHUPd06ZGQyjTz40uN6ok3tzoc6NGOzeG3C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wMDAgbiAKMDAwMDAwMDAwMCA2NTUzNiBuIAowMDAwMDY1NDEwIDAwMDAwIG4gCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDA2NTIxNyAwMDAwMCBuIAowMDAwMDA1OTcxIDAwMDAwIG4gCjAwMDAwMDMzMDcgMDAwMDAgbiAKMDAwMDAwNjgzMiAwMDAwMCBuIAowMDAwMDA2MDAzIDAwMDAwIG4gCjAwMDAwMDY4NjQgMDAwMDAgbiAKMDAwMDAxMjAwNSAwMDAwMCBuIAowMDAwMDA2OTU3IDAwMDAwIG4gCjAwMDAwMTE1OTggMDAwMDAgbiAKMDAwMDAxMTM3OSAwMDAwMCBuIAowMDAwMDA3NDgyIDAwMDAwIG4gCjAwMDAwMTEyODYgMDAwMDAgbiAKMDAwMDAxNzU5NCAwMDAwMCBuIAowMDAwMDEyMTQzIDAwMDAwIG4gCjAwMDAwMTcxNjAgMDAwMDAgbiAKMDAwMDAxNjkzOCAwMDAwMCBuIAowMDAwMDEyNjk4IDAwMDAwIG4gCjAwMDAwMTY4NDEgMDAwMDAgbiAKMDAwMDAxNzczNSAwMDAwMCBuIAowMDAwMDIzMDE2IDAwMDAwIG4gCjAwMDAwMjk3NzUgMDAwMDAgbiAKMDAwMDA2MjY0NCAwMDAwMCBuIAowMDAwMDY1NjE5IDAwMDAwIG4gCjAwMDAwNjU2NjQgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDI4IDAgUi9JRCBbPGIxMjZlODIwMDdjNzZhNmUxNTFlNzQ0Zjg2MjBmNDJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "UvgABdBjQ" + } + } + }, + "response": { + "payload": { + "purchaseOrderNum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wMDAgbiAKMDAwMDA2NTIxNyAwMDAwMCBuIAowMDAwMDA1OTcxIDAwMDAwIG4gCjAwMDAwMDMzMDcgMDAwMDAgbiAKMDAwMDAwNjgzMiAwMDAwMCBuIAowMDAwMDA2MDAzIDAwMDAwIG4gCjAwMDAwMDY4NjQgMDAwMDAgbiAKMDAwMDAxMjAwNSAwMDAwMCBuIAowMDAwMDA2OTU3IDAwMDAwIG4gCjAwMDAwMTE1OTggMDAwMDAgbiAKMDAwMDAxMTM3OSAwMDAwMCBuIAowMDAwMDA3NDgyIDAwMDAwIG4gCjAwMDAwMTEyODYgMDAwMDAgbiAKMDAwMDAxNzU5NCAwMDAwMCBuIAowMDAwMDEyMTQzIDAwMDAwIG4gCjAwMDAwMTcxNjAgMDAwMDAgbiAKMDAwMDAxNjkzOCAwMDAwMCBuIAowMDAwMDEyNjk4IDAwMDAwIG4gCjAwMDAwMTY4NDEgMDAwMDAgbiAKMDAwMDAxNzczNSAwMDAwMCBuIAowMDAwMDIzMDE2IDAwMDAwIG4gCjAwMDAwMjk3NzUgMDAwMDAgbiAKMDAwMDA2MjY0NCAwMDAwMCBuIAowMDAwMDY1NjE5IDAwMDAwIG4gCjAwMDAwNjU2NjQgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDI4IDAgUi9JRCBbPGIxMjZlODIwMDdjNzZhNmUxNTFlNzQ0Zjg2MjBmNDJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "mockpurchaseOrderNumber", + "content": "Base 64 encoded string goes here", + "contentType": "application\/pdf" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "mockpurchaseOrderNumberDummy" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "500": { + "description": "Encountered an unexpected condition which prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPackingSlipResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "PackingSlip": { + "required": [ + "content", + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the shipment that corresponds to the packing slip." + }, + "content": { + "type": "string", + "description": "A Base64encoded string of the packing slip PDF." + }, + "contentType": { + "type": "string", + "description": "The format of the file such as PDF, JPEG etc.", + "enum": [ + "application\/pdf" + ], + "x-docgen-enum-table-extension": [ + { + "value": "application\/pdf", + "description": "Portable Document Format (pdf)." + } + ] + } + }, + "description": "Packing slip information." + }, + "PackingSlipList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "packingSlips": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/PackingSlip" + } + } + }, + "description": "A list of packing slips." + }, + "GetPackingSlipListResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PackingSlipList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "GetPackingSlipResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/PackingSlip" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + }, + "SubmitShippingLabelsRequest": { + "type": "object", + "properties": { + "shippingLabelRequests": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShippingLabelRequest" + } + } + } + }, + "ShippingLabelRequest": { + "required": [ + "purchaseOrderNumber", + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the order for which to create a shipping label." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "containers": { + "type": "array", + "description": "A list of the packages in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + } + } + }, + "Item": { + "required": [ + "itemSequenceNumber", + "shippedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "integer", + "description": "Item Sequence Number for the item. This must be the same value as sent in order for a given item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number." + }, + "shippedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + }, + "description": "Details of the item being shipped." + }, + "PackedItem": { + "required": [ + "itemSequenceNumber", + "packedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "integer", + "description": "Item Sequence Number for the item. This must be the same value as sent in the order for a given item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number." + }, + "packedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + } + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned Identification for the party." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationDetails": { + "type": "array", + "description": "Tax registration details of the entity.", + "items": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + } + }, + "ShipmentDetails": { + "required": [ + "shipmentStatus", + "shippedDate" + ], + "type": "object", + "properties": { + "shippedDate": { + "type": "string", + "description": "This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse\/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future.", + "format": "date-time" + }, + "shipmentStatus": { + "type": "string", + "description": "Indicate the shipment status.", + "enum": [ + "SHIPPED", + "FLOOR_DENIAL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPPED", + "description": "Orders that have left the warehouse have shipped status." + }, + { + "value": "FLOOR_DENIAL", + "description": "Status for orders rejected due to quality issues with products on the floor, or the physical and virtual inventory do not match." + } + ] + }, + "isPriorityShipment": { + "type": "boolean", + "description": "Provide the priority of the shipment." + }, + "vendorOrderNumber": { + "type": "string", + "description": "The vendor order number is a unique identifier generated by a vendor for their reference." + }, + "estimatedDeliveryDate": { + "type": "string", + "description": "Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation.", + "format": "date-time" + } + }, + "description": "Details about a shipment." + }, + "StatusUpdateDetails": { + "required": [ + "reasonCode", + "statusCode", + "statusDateTime", + "statusLocationAddress", + "trackingNumber" + ], + "type": "object", + "properties": { + "trackingNumber": { + "type": "string", + "description": "This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation." + }, + "statusCode": { + "type": "string", + "description": "Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer." + }, + "reasonCode": { + "type": "string", + "description": "Provides a reason code for the status of the package that will provide additional information about the transportation status." + }, + "statusDateTime": { + "type": "string", + "description": "The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "statusLocationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipmentSchedule": { + "type": "object", + "properties": { + "estimatedDeliveryDateTime": { + "type": "string", + "description": "Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "apptWindowStartDateTime": { + "type": "string", + "description": "This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "apptWindowEndDateTime": { + "type": "string", + "description": "This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + } + } + } + }, + "description": "Details for the shipment status update given by the vendor for the specific package." + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services Tax (GST)." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the party. For example, VAT ID." + }, + "taxRegistrationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationMessages": { + "type": "string", + "description": "Tax registration message that can be used for additional tax related details." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code in ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "Dimensions": { + "required": [ + "height", + "length", + "unitOfMeasure", + "width" + ], + "type": "object", + "properties": { + "length": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "width": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "height": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "unitOfMeasure": { + "type": "string", + "description": "The unit of measure for dimensions.", + "enum": [ + "IN", + "CM" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IN", + "description": "Inches" + }, + { + "value": "CM", + "description": "Centimeters" + } + ] + } + }, + "description": "Physical dimensional measurements of a container." + }, + "Weight": { + "required": [ + "unitOfMeasure", + "value" + ], + "type": "object", + "properties": { + "unitOfMeasure": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "KG", + "LB" + ], + "x-docgen-enum-table-extension": [ + { + "value": "KG", + "description": "Kilogram" + }, + { + "value": "LB", + "description": "Pounds (Libra for Latin)." + } + ] + }, + "value": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The weight." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`." + }, + "ItemQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the shipped quantity." + } + }, + "description": "Details of item quantity." + }, + "SubmitShipmentConfirmationsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitShipmentConfirmations operation." + }, + "SubmitShipmentStatusUpdatesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitShipmentStatusUpdates operation." + }, + "GetShippingLabelListResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ShippingLabelList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShippingLabels operation." + }, + "GetShippingLabelResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ShippingLabel" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getShippingLabel operation." + }, + "ShippingLabelList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "shippingLabels": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShippingLabel" + } + } + } + }, + "LabelData": { + "required": [ + "content" + ], + "type": "object", + "properties": { + "packageIdentifier": { + "type": "string", + "description": "Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level." + }, + "trackingNumber": { + "type": "string", + "description": "Package tracking identifier from the shipping carrier." + }, + "shipMethod": { + "type": "string", + "description": "Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation." + }, + "shipMethodName": { + "type": "string", + "description": "Shipping method name for internal reference." + }, + "content": { + "type": "string", + "description": "This field will contain the Base64encoded string of the shipment label content." + } + }, + "description": "Details of the shipment label." + }, + "ShippingLabel": { + "required": [ + "labelData", + "labelFormat", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "This field will contain the Purchase Order Number for this order." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "labelFormat": { + "type": "string", + "description": "Format of the label.", + "enum": [ + "PNG", + "ZPL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PNG", + "description": "Portable Network Graphics (png) format." + }, + { + "value": "ZPL", + "description": "Zebra Programming Language (zpl) format." + } + ] + }, + "labelData": { + "type": "array", + "description": "Provides the details of the packages in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/LabelData" + } + } + } + }, + "SubmitShippingLabelsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitShippingLabelRequest operation." + }, + "SubmitShipmentConfirmationsRequest": { + "type": "object", + "properties": { + "shipmentConfirmations": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShipmentConfirmation" + } + } + } + }, + "ShipmentConfirmation": { + "required": [ + "items", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "shipmentDetails" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number corresponding to the shipment." + }, + "shipmentDetails": { + "$ref": "#\/components\/schemas\/ShipmentDetails" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "items": { + "type": "array", + "description": "Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "containers": { + "type": "array", + "description": "Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + } + } + }, + "SubmitShipmentStatusUpdatesRequest": { + "type": "object", + "properties": { + "shipmentStatusUpdates": { + "minItems": 1, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShipmentStatusUpdate" + } + } + } + }, + "ShipmentStatusUpdate": { + "required": [ + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "statusUpdateDetails" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the shipment for which to update the shipment status." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "statusUpdateDetails": { + "$ref": "#\/components\/schemas\/StatusUpdateDetails" + } + } + }, + "GetCustomerInvoicesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CustomerInvoiceList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getCustomerInvoices operation." + }, + "GetCustomerInvoiceResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/CustomerInvoice" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getCustomerInvoice operation." + }, + "CustomerInvoiceList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "customerInvoices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/CustomerInvoice" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + } + } + }, + "CustomerInvoice": { + "required": [ + "content", + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "The purchase order number for this order." + }, + "content": { + "type": "string", + "description": "The Base64encoded customer invoice." + } + } + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "Container": { + "required": [ + "containerIdentifier", + "containerType", + "packedItems", + "weight" + ], + "type": "object", + "properties": { + "containerType": { + "type": "string", + "description": "The type of container.", + "enum": [ + "carton", + "pallet" + ], + "x-docgen-enum-table-extension": [ + { + "value": "carton", + "description": "Packing container type. Typically used for drinks or food." + }, + { + "value": "pallet", + "description": "A flat transport structure which supports goods in a stable fashion while being lifted by a forklift." + } + ] + }, + "containerIdentifier": { + "type": "string", + "description": "The container identifier." + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number." + }, + "manifestId": { + "type": "string", + "description": "The manifest identifier." + }, + "manifestDate": { + "type": "string", + "description": "The date of the manifest." + }, + "shipMethod": { + "type": "string", + "description": "The shipment method." + }, + "scacCode": { + "type": "string", + "description": "SCAC code required for NA VOC vendors only." + }, + "carrier": { + "type": "string", + "description": "Carrier required for EU VOC vendors only." + }, + "containerSequenceNumber": { + "type": "integer", + "description": "An integer that must be submitted for multi-box shipments only, where one item may come in separate packages." + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "packedItems": { + "type": "array", + "description": "A list of packed items.", + "items": { + "$ref": "#\/components\/schemas\/PackedItem" + } + } + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-shipping/v2021-12-28.json b/resources/models/vendor/direct-fulfillment-shipping/v2021-12-28.json new file mode 100644 index 000000000..1f882cd2b --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-shipping/v2021-12-28.json @@ -0,0 +1,3245 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Shipping", + "description": "The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-12-28" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/shippingLabels": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShippingLabels", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by order creation date.", + "schema": { + "type": "string", + "default": "ASC", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ShippingLabelList" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "post": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Creates a shipping label for a purchase order and returns a transactionId for reference.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShippingLabelRequest", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShippingLabelsRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionReference" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/shippingLabels\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a shipping label for the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getShippingLabel", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ShippingLabel" + }, + "example": { + "purchaseOrderNumber": "2JK3S9VC", + "sellingParty": { + "partyId": "999US" + }, + "shipFromParty": { + "partyId": "ABCD" + }, + "labelFormat": "PNG", + "labelData": [ + { + "packageIdentifier": "PKG001", + "trackingNumber": "1Z6A34Y60369738804", + "shipMethod": "UPS_GR_RES", + "shipMethodName": "UPS Ground Residential", + "content": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAV4CAYAAABYfbnIAABfDUlEQVR42uzd25LjOJJ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9rug8INWTq06fbu\/8NmRHfGQt+03bmQBBgAgQASJABAgC5NA34A6Xm73O1dvrGh0Vy37ydiZAECACRIAIEAGC9zgBcmSAZIVIxeMnQAQIAkSACBABIkAQIALk0ABZDZIdj58AESAIEAEiQASIAEGAHPEm3PVys9d5+xPXPiACBAEiQASIABEg0CZAso9KtfuoRtFHwYpanxWXe7p8UUccy9jOMraXzOXz4i9ABIgAESACRIAgQBImTZ3OI1F9P6vXZ6fH4ZTHdsc24cVfgAgQASJABIgAQYAEv6E8udyb9\/votK\/Mmx\/bXduEF38BIkAEiAARIAIEASJABIgAESAIEAEiQASIAAEBIkAEiABBgAgQASJABIgA4XUBsjJpsg9I3frs9DjYB0SACBABIkAEiAARIAiQ6SfeT\/+\/+khJUfdl5DZ++7eM29t9ueyjRM1uL7PremQbjFg+AYIAESACRIAIEARI4qfGnb4tOOW+ZExIu32yX\/n4nXyuFi\/+AkSACBABIkAECAJk4InSaX+JU+5L5Jt15uVOefxOOWO7ABEgAkSACBABIkAQIAJEgAgQAYIAESACRIAIEO9BCBABIkAECAJEgAgQASJABAivDZBvkyT7gNgHZPfjZx8QBIgAESACRIAIEC4JkOwjF3W+L9VHwXq6DFGXO\/HIYSOP7dN\/W3lcIh9rL\/4CRIAIEAEiQAQIrw+Q28\/dMHu56ifr7d9sVN+e84AgQASIABEgAkSA0DBAbj979ezlqp+wt+\/bUX17zoSOABEgAkSACBABggARIAJEgHjxFyACRIAIEAEiQBAgAkSACBABggARIAJEgAgQKAqQlYmRfUD6Pw72AbEPCAJEgAgQASJAvAfRLkD+3ECrLvf0OmePzDR7hKWK5ctehtmjg2UcBStqe8w+ClbFNuHFX4AIEAEiQASIAEGAHPbGHnG5U56Abz6HRqdvPDpszwgQASJABIgAESAIkCZv6qOXO+VJ+OaziHfa50OAIEAEiAARIAIE73ECRIAIEAGCABEgAkSACBABggARIAJEgAgQASJABIgAESACBAFy2Rt7xOXsA2IfkF1h4MVfgAgQASJABIgAQYAUvTGv\/FvG0b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dAAAAAio50JkAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAoRXbAT\/MX77myfXs3IfRu\/nymVXrn\/0PjxZ3qjlyngcV5Yx+7JRj2nGfcjYxla2n8rHonKbjFqf2a+B3V43Ml6rK99rop7jGa+Hu173std\/9uv86H1buQ8IEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTcU4DYCASIABEgAkSACBABIkAECAIEASJABIgAESACRIAIEAEiQAQIAkSACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLu6YGyEQgQASJABIgAESACRIAIEAQIAkSACBABIkAEiAARIAJEgAgQBIgAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJAECAIEAEiQGLfmKJGxwCJmCQLEAEiQASIAEGAIEAEiAARIOEB8uftVU4wKh+fXQGyazs85b5FvdfsWp7M18PO21rE66MAQYAgQATINQHS6Y1WgAgQAbI2ORUgAkSAIEAQIAKkdYCcMgnM3oajJlQCRIB0CxEBIkAECAIEASJAWgTIaZPAjgHy7ZsTASJAOk9WBYgAESACBAEiQARIWYCcOAkUIAJk17cIp09a3xQgt0SIAEGAIEAEyFUBEvmGGHX9JwdI1k7E3SaZpwZI1YRtdRvInLjueoyinrMZl41+3YvefgQIAgQBIkCuCZCqiYQAESCd13\/HAIlcXxHvNTcGyOprkwARIAIEASJABEjhRFSACBAB0mcbqDhPjQARIAJEgCBABIgAESACRIC8LECibluACBABggBBgAgQASJABIgAKYsQASJABAgCBAEiQASIABEgAkSACBABggBBgAgQASJA7g6QlXUhQPYFSMXzWoAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIMtHRRIgAkSACBABIkAQIAJEgAgQAfLaAMma\/AsQASJABIgAQYAIEAEiQASIABEgAuRVAVL5+iBAECAIEAEiQBoHSOQ67BogqxEiQASIABEgAkSAIEAEiAA5LkAyJt4C5J4AyZz8CxABIkAEiABBgAgQASJABIgAESACRIAIEAQIAkSACJB3BUj0OrwtQEYmpwJEgAgQAYIAQYAIEAEiQATIEQGSPfkXIAKkKkC6vD4IEAQIAkSACJCGAZKxDgWIABEgAkSAIEAQIAJEgAgQAfJv\/qGJBYgAESACBAGCABEgAiR8MiFA5n7WJUAEiAC5P0A6fUAhQBAgCBABcmSARLwxCRABIkAEiAARIAgQBIgAESAh+wIIEAEiQASIABEgCBAEiAARIKVBIkDGY02ACBABIkAECAIEASJArgyQ7EmnABEgAkSACBABggBBgAgQ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IgAESDmngLERiBABMi2AKlaD523GQGSf5SzrG3ylAD5baIpQASIAEGAIEAEyGsDJPLNLztAon\/O1DVAor41eroubw2QlZ+0ZWzvpwRI5ra6M0Aynm+r67\/qPEECBAGCABEgxwXIrslJ53NPnLa+d03kuq+jDtvfrQFySpCfuJwCBAGCABEgAkSACJBD19GbA+RNE3MBIkAQIAgQASJABIgAMYEVIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAA5KECythkBclaAnDIpFCACRIAIEAGCABEgAiQpQLLfqCu3mextOGObzHocd2+TGQGS8RrY7XUj47W68r2m8ihY2e+J2Y9jh9cHAYIAQYAIkBYBkvlGLEAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAsTc0wNlIxAgAkSACBABIkAEiAARIAgQBIgAESACRIAIEAEiQASIABEgCBABIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSACBAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgJjXChAEiAARIAJEgAgQASJABIgAQYAgQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIABEgAgQBIkAEiAARIAJEgAgQASJAECAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQASIAEGACBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAgQBggARIAJEgAgQASJABIgAESACBAEiQASIABEgAkSACBABIkAQIAgQASJABIgAESACRIAIEAEiQBAgAkSACBABIkAEiAARIAIEAYIAESACRIAIEAEiQASIAEGAIEAEiAARIAJEgAgQASJABIgAQYAIEAEiQASIABEgAkSACBAECAJEgAgQASJABIgAESACRIAIEASIABEgAkSACBABIkAEiABBgCBABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQAWLuKUBsBAJEgAgQASJABIgAESACBAGCABEgAkSACBABIkAEiAARIAIEASJABIgAESACRIAIEAEiQBAgCBABIkAEiAARIAJEgAgQBAgCRIAIEAEiQASIABEgAkSAIEAQIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgAgQAYIAESACRIAIEAEiQASIABEgCBAEiAARIAJEgAgQASJABAgCBAEiQASIABEgAkSACBABIkAECAJEgAgQASJABIgAESACRIAgQBAgAkSACBABIkAEiAARIAJEgCBABIgAESACRIAIEAEiQAQIAgQBIkAEiAARIAJEgAgQAYIAQYAIEAEiQASIABEgAkSACBABggARIAJEgAgQASJABIgAESAIEASIABEgAkSACBABIkAEiAARIAgQASJABIgAESACRIAIEAGCAEGACBABIkAEiAARIAJEgCBAECACRIAIEAEiQASIABEgAkSAIEAEiAARIAJEgAgQASJABAgCBAEiQ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AAAQIAACBAAAAAAQIAACBAAAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAAAAAIEAABAgAAAAAIEAABAgAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAgAABAAAQIAAAgAABAAAQIAAAgAABAAAECAAAgAABAAAECAAAgAABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQNwEAACAAAEAAAQIAACAAAEAAAQIAACAAAEAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAYEv\/AasPkdDtNTO4AAAAAElFTkSuQmCC" + } + ] + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + }, + "post": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Creates shipping labels for a purchase order and returns the labels.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "createShippingLabels", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CreateShippingLabelsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ShippingLabel" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "409": { + "description": "The request conflicts with the current state of the resource (shipment).", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/shipmentConfirmations": { + "post": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Submits one or more shipment confirmations for vendor orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShipmentConfirmations", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionReference" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/shipmentStatusUpdates": { + "post": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "This operation is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API submits a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitShipmentStatusUpdates", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentStatusUpdatesRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionReference" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/customerInvoices": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCustomerInvoices", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CustomerInvoiceList" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/customerInvoices\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a customer invoice based on the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getCustomerInvoice", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "Purchase order number of the shipment for which to return the invoice.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/CustomerInvoice" + }, + "example": { + "purchaseOrderNumber": "PO98676856", + "content": "base 64 encoded string" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/packingSlips": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPackingSlips", + "parameters": [ + { + "name": "shipFromPartyId", + "in": "query", + "description": "The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses.", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date\/time format.", + "required": true, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort ASC or DESC by packing slip creation date.", + "schema": { + "type": "string", + "default": "ASC", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by packing slip creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by packing slip creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by packing slip creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by packing slip creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PackingSlipList" + }, + "example": { + "pagination": { + "nextToken": "NEBxNEBxNEBxNR==" + }, + "packingSlips": [ + { + "purchaseOrderNumber": "UvgABdBjQ", + "content": "JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMyMjQ+PnN0cmVhbQp4nOVcW4\/dthF+31+hlwLJgxlyhlegKOD1ro32qUEW6IOTh6BOUhR2AqcB+vc7pEiJkmYlitrd3mwYx+LhZTjXb6g5\/HyjBkl\/X8UPF2D466ebzzdyUGOLlUrAoLTQ8Qs5\/HRz+3Dz1VscFAwPP9ZjlRRgTQjBheHh0\/D+i2+\/+PP3P\/0wfPnd8PCnuSNaIRVIqaTeDlGrzhq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AKMDAwMDAxNzczNSAwMDAwMCBuIAowMDAwMDIzMDE2IDAwMDAwIG4gCjAwMDAwMjk3NzUgMDAwMDAgbiAKMDAwMDA2MjY0NCAwMDAwMCBuIAowMDAwMDY1NjE5IDAwMDAwIG4gCjAwMDAwNjU2NjQgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDI4IDAgUi9JRCBbPGIxMjZlODIwMDdjNzZhNmUxNTFlNzQ0Zjg2MjBmNDJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + ] + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "\/vendor\/directFulfillment\/shipping\/2021-12-28\/packingSlips\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "DirectFulfillmentShippingV20211228" + ], + "description": "Returns a packing slip based on the purchaseOrderNumber that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPackingSlip", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchaseOrderNumber for the packing slip you want.", + "required": true, + "schema": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/PackingSlip" + }, + "example": { + "purchaseOrderNumber": "UvgABdBjQ", + "content": "JVBERi0xLjQKJeLjz9MKNCAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMyMjQ+PnN0cmVhbQp4nOVcW4\/dthF+31+hlwLJgxlyhlegKOD1ro32qUEW6IOTh6BOUhR2AqcB+vc7pEiJkmYlitrd3mwYx+LhZTjXb6g5\/HyjBkl\/X8UPF2D466ebzzdyUGOLlUrAoLTQ8Qs5\/HRz+3Dz1VscFAwPP9ZjlRRgTQjBheHh0\/D+i2+\/+PP3P\/0wfPnd8PCnuSNaIRVIqaTeDlGrzhqE9RiCV2rbefjlx\/XkVu70X09unUBjpQTPdP72y7H3\/cPN1zU\/jMeKH6uvrPDTV5\/p76t5IwoEKEMPedT4jRoMGJHWtQMQEUYqeqBOw6uKtXFU+vhU95fDx8WjAI\/UJKf\/\/W34y83PRN+7m\/ffUfMH+sJYO\/zzhp3qm0RX8ALBSYnj6uCFC\/EPPUAQ3iX9+OqPn9Rw98tiI8p4oRyOO\/zd8A7uhn\/89v2vvyUOvUuao4QkuSs\/zp2fnCOy5OCl0DorHwiPOkrDpY7jo7UucyLPF\/fpaNnh1x+GHxMpLeNoVZOGojk9FoTqHYrCm06KtQgjt86vagX2EuyE6x3qyQA6hSOF6paOUsKYxCl9fiwK27+w7ueVMolZXTQ70U+yJyfWOzYI6Dch2a+SAMV2z2sWYLLd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DJmPjw1YmZlYjU4YTM5MjllZmRiZmQ2ZjU5MWM2MGIwNjc0MD5dL1Jvb3QgMjcgMCBSL1NpemUgMjk+PgpzdGFydHhyZWYKNjU3ODIKJSVFT0YK", + "contentType": "application\/pdf" + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + } + }, + "components": { + "schemas": { + "PackingSlip": { + "required": [ + "content", + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the shipment that the packing slip is for." + }, + "content": { + "type": "string", + "description": "A Base64encoded string of the packing slip PDF." + }, + "contentType": { + "type": "string", + "description": "The format of the file such as PDF, JPEG etc.", + "enum": [ + "application\/pdf" + ], + "x-docgen-enum-table-extension": [ + { + "value": "application\/pdf", + "description": "Portable Document Format (pdf)." + } + ] + } + }, + "description": "Packing slip information." + }, + "PackingSlipList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "packingSlips": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/PackingSlip" + } + } + }, + "description": "A list of packing slips." + }, + "CreateShippingLabelsRequest": { + "required": [ + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "containers": { + "type": "array", + "description": "A list of the packages in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + } + }, + "description": "The request body for the createShippingLabels operation." + }, + "SubmitShippingLabelsRequest": { + "type": "object", + "properties": { + "shippingLabelRequests": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShippingLabelRequest" + } + } + } + }, + "ShippingLabelRequest": { + "required": [ + "purchaseOrderNumber", + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the order for which to create a shipping label." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "containers": { + "type": "array", + "description": "A list of the packages in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + } + } + }, + "Item": { + "required": [ + "itemSequenceNumber", + "shippedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "integer", + "description": "Item Sequence Number for the item. This must be the same value as sent in order for a given item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order, like SKU Number." + }, + "shippedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + }, + "description": "Details of the item being shipped." + }, + "PackedItem": { + "required": [ + "itemSequenceNumber", + "packedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "integer", + "description": "Item Sequence Number for the item. This must be the same value as sent in the order for a given item." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's Standard Identification Number (ASIN) of an item. Either buyerProductIdentifier or vendorProductIdentifier is required." + }, + "pieceNumber": { + "type": "integer", + "description": "The piece number of the item in this container. This is required when the item is split across different containers." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the Purchase Order, like SKU Number." + }, + "packedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + } + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned Identification for the party." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationDetails": { + "type": "array", + "description": "Tax registration details of the entity.", + "items": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + } + }, + "ShipmentDetails": { + "required": [ + "shipmentStatus", + "shippedDate" + ], + "type": "object", + "properties": { + "shippedDate": { + "type": "string", + "description": "This field indicates the date of the departure of the shipment from vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse\/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the Shipment Confirmation should not be in the future.", + "format": "date-time" + }, + "shipmentStatus": { + "type": "string", + "description": "Indicate the shipment status.", + "enum": [ + "SHIPPED", + "FLOOR_DENIAL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SHIPPED", + "description": "Orders that have left the warehouse have shipped status." + }, + { + "value": "FLOOR_DENIAL", + "description": "Status for orders rejected due to quality issues with products on the floor, or the physical and virtual inventory do not match." + } + ] + }, + "isPriorityShipment": { + "type": "boolean", + "description": "Provide the priority of the shipment." + }, + "vendorOrderNumber": { + "type": "string", + "description": "The vendor order number is a unique identifier generated by a vendor for their reference." + }, + "estimatedDeliveryDate": { + "type": "string", + "description": "Date on which the shipment is expected to reach the buyer's warehouse. It needs to be an estimate based on the average transit time between the ship-from location and the destination. The exact appointment time will be provided by buyer and is potentially not known when creating the shipment confirmation.", + "format": "date-time" + } + }, + "description": "Details about a shipment." + }, + "StatusUpdateDetails": { + "required": [ + "reasonCode", + "statusCode", + "statusDateTime", + "statusLocationAddress", + "trackingNumber" + ], + "type": "object", + "properties": { + "trackingNumber": { + "type": "string", + "description": "This is required to be provided for every package and should match with the trackingNumber sent for the shipment confirmation." + }, + "statusCode": { + "type": "string", + "description": "Indicates the shipment status code of the package that provides transportation information for Amazon tracking systems and ultimately for the final customer." + }, + "reasonCode": { + "type": "string", + "description": "Provides a reason code for the status of the package that will provide additional information about the transportation status." + }, + "statusDateTime": { + "type": "string", + "description": "The date and time when the shipment status was updated. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "statusLocationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "shipmentSchedule": { + "$ref": "#\/components\/schemas\/ShipmentSchedule" + } + }, + "description": "Details for the shipment status update given by the vendor for the specific package." + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services Tax (GST)." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the party. For example, VAT ID." + }, + "taxRegistrationAddress": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationMessages": { + "type": "string", + "description": "Tax registration message that can be used for additional tax related details." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code in ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "ShipmentSchedule": { + "type": "object", + "properties": { + "estimatedDeliveryDateTime": { + "type": "string", + "description": "Date on which the shipment is expected to reach the customer delivery location. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "apptWindowStartDateTime": { + "type": "string", + "description": "This field indicates the date and time at the start of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + }, + "apptWindowEndDateTime": { + "type": "string", + "description": "This field indicates the date and time at the end of the appointment window scheduled to deliver the shipment. This field is expected to be in ISO-8601 date\/time format, with UTC time zone or UTC offset. For example, 2020-07-16T23:00:00Z or 2020-07-16T23:00:00+01:00.", + "format": "date-time" + } + }, + "description": "Details about the estimated delivery window." + }, + "Dimensions": { + "required": [ + "height", + "length", + "unitOfMeasure", + "width" + ], + "type": "object", + "properties": { + "length": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "width": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "height": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "unitOfMeasure": { + "type": "string", + "description": "The unit of measure for dimensions.", + "enum": [ + "IN", + "CM" + ], + "x-docgen-enum-table-extension": [ + { + "value": "IN", + "description": "Inches" + }, + { + "value": "CM", + "description": "Centimeters" + } + ] + } + }, + "description": "Physical dimensional measurements of a container." + }, + "Weight": { + "required": [ + "unitOfMeasure", + "value" + ], + "type": "object", + "properties": { + "unitOfMeasure": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "KG", + "LB" + ], + "x-docgen-enum-table-extension": [ + { + "value": "KG", + "description": "Kilogram" + }, + { + "value": "LB", + "description": "Pounds (Libra for Latin)." + } + ] + }, + "value": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The weight." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\\\d*))(\\\\.\\\\d+)?([eE][+-]?\\\\d+)?$`." + }, + "ItemQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the shipped quantity." + } + }, + "description": "Details of item quantity." + }, + "ShippingLabelList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "shippingLabels": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShippingLabel" + } + } + } + }, + "LabelData": { + "required": [ + "content" + ], + "type": "object", + "properties": { + "packageIdentifier": { + "type": "string", + "description": "Identifier for the package. The first package will be 001, the second 002, and so on. This number is used as a reference to refer to this package from the pallet level." + }, + "trackingNumber": { + "type": "string", + "description": "Package tracking identifier from the shipping carrier." + }, + "shipMethod": { + "type": "string", + "description": "Ship method to be used for shipping the order. Amazon defines Ship Method Codes indicating shipping carrier and shipment service level. Ship Method Codes are case and format sensitive. The same ship method code should returned on the shipment confirmation. Note that the Ship Method Codes are vendor specific and will be provided to each vendor during the implementation." + }, + "shipMethodName": { + "type": "string", + "description": "Shipping method name for internal reference." + }, + "content": { + "type": "string", + "description": "This field will contain the Base64encoded string of the shipment label content." + } + }, + "description": "Details of the shipment label." + }, + "ShippingLabel": { + "required": [ + "labelData", + "labelFormat", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "This field will contain the Purchase Order Number for this order." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "labelFormat": { + "type": "string", + "description": "Format of the label.", + "enum": [ + "PNG", + "ZPL" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PNG", + "description": "Portable Network Graphics (png) format." + }, + { + "value": "ZPL", + "description": "Zebra Programming Language (zpl) format." + } + ] + }, + "labelData": { + "type": "array", + "description": "Provides the details of the packages in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/LabelData" + } + } + } + }, + "SubmitShipmentConfirmationsRequest": { + "type": "object", + "properties": { + "shipmentConfirmations": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShipmentConfirmation" + } + } + } + }, + "ShipmentConfirmation": { + "required": [ + "items", + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "shipmentDetails" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number corresponding to the shipment." + }, + "shipmentDetails": { + "$ref": "#\/components\/schemas\/ShipmentDetails" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "items": { + "type": "array", + "description": "Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "containers": { + "type": "array", + "description": "Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package.", + "items": { + "$ref": "#\/components\/schemas\/Container" + } + } + } + }, + "SubmitShipmentStatusUpdatesRequest": { + "type": "object", + "properties": { + "shipmentStatusUpdates": { + "minItems": 1, + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShipmentStatusUpdate" + } + } + } + }, + "ShipmentStatusUpdate": { + "required": [ + "purchaseOrderNumber", + "sellingParty", + "shipFromParty", + "statusUpdateDetails" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "Purchase order number of the shipment for which to update the shipment status." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "statusUpdateDetails": { + "$ref": "#\/components\/schemas\/StatusUpdateDetails" + } + } + }, + "CustomerInvoiceList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "customerInvoices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/CustomerInvoice" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + } + } + }, + "CustomerInvoice": { + "required": [ + "content", + "purchaseOrderNumber" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string", + "description": "The purchase order number for this order." + }, + "content": { + "type": "string", + "description": "The Base64encoded customer invoice." + } + } + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "Container": { + "required": [ + "containerIdentifier", + "containerType", + "packedItems", + "weight" + ], + "type": "object", + "properties": { + "containerType": { + "type": "string", + "description": "The type of container.", + "enum": [ + "Carton", + "Pallet" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Carton", + "description": "Packing container type. Typically used for drinks or food." + }, + { + "value": "Pallet", + "description": "A flat transport structure which supports goods in a stable fashion while being lifted by a forklift." + } + ] + }, + "containerIdentifier": { + "type": "string", + "description": "The container identifier." + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number." + }, + "manifestId": { + "type": "string", + "description": "The manifest identifier." + }, + "manifestDate": { + "type": "string", + "description": "The date of the manifest." + }, + "shipMethod": { + "type": "string", + "description": "The shipment method. This property is required when calling the submitShipmentConfirmations operation, and optional otherwise." + }, + "scacCode": { + "type": "string", + "description": "SCAC code required for NA VOC vendors only." + }, + "carrier": { + "type": "string", + "description": "Carrier required for EU VOC vendors only." + }, + "containerSequenceNumber": { + "type": "integer", + "description": "An integer that must be submitted for multi-box shipments only, where one item may come in separate packages." + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "packedItems": { + "type": "array", + "description": "A list of packed items.", + "items": { + "$ref": "#\/components\/schemas\/PackedItem" + } + } + } + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-transactions/v1.json b/resources/models/vendor/direct-fulfillment-transactions/v1.json new file mode 100644 index 000000000..a4996a292 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-transactions/v1.json @@ -0,0 +1,437 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Transaction Status", + "description": "The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/transactions\/v1\/transactions\/{transactionId}": { + "get": { + "tags": [ + "DirectFulfillmentTransactionsV1" + ], + "description": "Returns the status of the transaction indicated by the specified transactionId.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getTransactionStatus", + "parameters": [ + { + "name": "transactionId", + "in": "path", + "description": "Previously returned in the response to the POST request of a specific transaction.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + }, + "example": { + "payload": { + "transactionStatus": { + "transactionId": "20190108091302-6ca0ac50-d06e-45f5-a1e2-eb448eadac50", + "status": "Processing" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "transactionId": { + "value": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a" + } + } + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a", + "status": "Processing" + } + } + } + }, + { + "request": { + "parameters": { + "transactionId": { + "value": "20190918190535-eef8cad8-418e-456f-ac72-789e2ee6813c" + } + } + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190918190535-eef8cad8-418e-456f-ac72-789e2ee6813c", + "status": "Failure", + "errors": [ + { + "code": "INVALID_ORDER_ID", + "message": "Invalid order ID." + } + ] + } + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a", + "status": "Processing" + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "transactionId": { + "value": "Tran0904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetTransactionResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionStatus" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getTransactionStatus operation." + }, + "TransactionStatus": { + "type": "object", + "properties": { + "transactionStatus": { + "$ref": "#\/components\/schemas\/Transaction" + } + }, + "description": "The payload for the getTransactionStatus operation." + }, + "Transaction": { + "required": [ + "status", + "transactionId" + ], + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction." + }, + "status": { + "type": "string", + "description": "Current processing status of the transaction.", + "enum": [ + "Failure", + "Processing", + "Success" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Failure", + "description": "Transaction has failed." + }, + { + "value": "Processing", + "description": "Transaction is in process." + }, + { + "value": "Success", + "description": "Transaction has completed successfully." + } + ] + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The transaction status details." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/direct-fulfillment-transactions/v2021-12-28.json b/resources/models/vendor/direct-fulfillment-transactions/v2021-12-28.json new file mode 100644 index 000000000..6e0c50f91 --- /dev/null +++ b/resources/models/vendor/direct-fulfillment-transactions/v2021-12-28.json @@ -0,0 +1,355 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Direct Fulfillment Transaction Status", + "description": "The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "2021-12-28" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/directFulfillment\/transactions\/2021-12-28\/transactions\/{transactionId}": { + "get": { + "tags": [ + "DirectFulfillmentTransactionsV20211228" + ], + "description": "Returns the status of the transaction indicated by the specified transactionId.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getTransactionStatus", + "parameters": [ + { + "name": "transactionId", + "in": "path", + "description": "Previously returned in the response to the POST request of a specific transaction.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/TransactionStatus" + }, + "example": { + "transactionStatus": { + "transactionId": "20190108091302-6ca0ac50-d06e-45f5-a1e2-eb448eadac50", + "status": "Processing" + } + } + } + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/ErrorList" + } + } + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/Error" + } + } + } + } + } + }, + "x-amzn-api-sandbox": { + "dynamic": {} + } + } + }, + "components": { + "schemas": { + "TransactionStatus": { + "type": "object", + "properties": { + "transactionStatus": { + "$ref": "#\/components\/schemas\/Transaction" + } + }, + "description": "The payload for the getTransactionStatus operation." + }, + "Transaction": { + "required": [ + "status", + "transactionId" + ], + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction." + }, + "status": { + "type": "string", + "description": "Current processing status of the transaction.", + "enum": [ + "Failure", + "Processing", + "Success" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Failure", + "description": "Transaction has failed." + }, + { + "value": "Processing", + "description": "Transaction is in process." + }, + { + "value": "Success", + "description": "Transaction has completed successfully." + } + ] + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The transaction status details." + }, + "ErrorList": { + "required": [ + "errors" + ], + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + } + }, + "description": "A list of error responses returned when a request is unsuccessful." + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/invoices/v1.json b/resources/models/vendor/invoices/v1.json new file mode 100644 index 000000000..ada14b932 --- /dev/null +++ b/resources/models/vendor/invoices/v1.json @@ -0,0 +1,1094 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Retail Procurement Payments", + "description": "The Selling Partner API for Retail Procurement Payments provides programmatic access to vendors payments data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/payments\/v1\/invoices": { + "post": { + "tags": [ + "InvoicesV1" + ], + "description": "Submit new invoices to Amazon.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitInvoices", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier. ", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + }, + "example": { + "payload": { + "transactionId": "20190904171225-e1275c33-d75b-4bfe-b95c-15a9abfc09cc" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "invoices": [ + { + "id": "TestInvoice202", + "date": "2020-06-08T12:00:00.000Z", + "billToParty": { + "partyId": "TES1" + }, + "invoiceType": "Invoice", + "remitToParty": { + "partyId": "ABCDE" + }, + "invoiceTotal": { + "amount": "112.05", + "currencyCode": "USD" + } + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190904171225-e1275c33-d75b-4bfe-b95c-15a9abfc09cc" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "invoices": [ + { + "invoiceType": "Invoic" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Value 'Invoic' is not valid with respect to enumeration '[CreditNote, Invoice]'. It must be a value from the enumeration.", + "details": "" + }, + { + "code": "InvalidInput", + "message": "The value 'Invoic' of element 'invoiceType' is not valid.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitInvoicesResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "components": { + "schemas": { + "SubmitInvoicesResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionId" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitInvoices operation." + }, + "TransactionId": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + }, + "SubmitInvoicesRequest": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Invoice" + } + } + }, + "description": "The request schema for the submitInvoices operation." + }, + "Invoice": { + "required": [ + "date", + "id", + "invoiceTotal", + "invoiceType", + "remitToParty" + ], + "type": "object", + "properties": { + "invoiceType": { + "type": "string", + "description": "Identifies the type of invoice.", + "enum": [ + "Invoice", + "CreditNote" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Invoice", + "description": "A commercial document issued by a seller to a buyer, relating to a sale transaction and indicating the products, quantities, and agreed prices for products or services the seller had provided the buyer." + }, + { + "value": "CreditNote", + "description": "A commercial document issued by a seller to a buyer. It is evidence of the reduction in sales." + } + ] + }, + "id": { + "type": "string", + "description": "Unique number relating to the charges defined in this document. This will be invoice number if the document type is Invoice or CreditNote number if the document type is Credit Note. Failure to provide this reference will result in a rejection." + }, + "referenceNumber": { + "type": "string", + "description": "An additional unique reference number used for regulatory or other purposes." + }, + "date": { + "$ref": "#\/components\/schemas\/DateTime" + }, + "remitToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "billToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "paymentTerms": { + "$ref": "#\/components\/schemas\/PaymentTerms" + }, + "invoiceTotal": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "type": "array", + "description": "Total tax amount details for all line items.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + }, + "additionalDetails": { + "type": "array", + "description": "Additional details provided by the selling party, for tax related or other purposes.", + "items": { + "$ref": "#\/components\/schemas\/AdditionalDetails" + } + }, + "chargeDetails": { + "type": "array", + "description": "Total charge amount details for all line items.", + "items": { + "$ref": "#\/components\/schemas\/ChargeDetails" + } + }, + "allowanceDetails": { + "type": "array", + "description": "Total allowance amount details for all line items.", + "items": { + "$ref": "#\/components\/schemas\/AllowanceDetails" + } + }, + "items": { + "type": "array", + "description": "The list of invoice items.", + "items": { + "$ref": "#\/components\/schemas\/InvoiceItem" + } + } + } + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxRegistrationDetails": { + "type": "array", + "description": "Tax registration details of the party.", + "items": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + } + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber", + "taxRegistrationType" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "The tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "The tax registration number for the entity. For example, VAT ID, Consumption Tax ID." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of street address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalOrZipCode": { + "type": "string", + "description": "The postal or zip code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "maxLength": 2, + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "A physical address." + }, + "InvoiceItem": { + "required": [ + "invoicedQuantity", + "itemSequenceNumber", + "netCost" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "integer", + "description": "Unique number related to this line item." + }, + "amazonProductIdentifier": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identifier of the item. Should be the same as was provided in the purchase order." + }, + "invoicedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "netCost": { + "$ref": "#\/components\/schemas\/Money" + }, + "purchaseOrderNumber": { + "type": "string", + "description": "The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote." + }, + "hsnCode": { + "type": "string", + "description": "HSN Tax code. The HSN number cannot contain alphabets." + }, + "creditNoteDetails": { + "$ref": "#\/components\/schemas\/CreditNoteDetails" + }, + "taxDetails": { + "type": "array", + "description": "Individual tax details per line item.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + }, + "chargeDetails": { + "type": "array", + "description": "Individual charge details per line item.", + "items": { + "$ref": "#\/components\/schemas\/ChargeDetails" + } + }, + "allowanceDetails": { + "type": "array", + "description": "Individual allowance details per line item.", + "items": { + "$ref": "#\/components\/schemas\/AllowanceDetails" + } + } + }, + "description": "Details of the item being invoiced." + }, + "TaxDetails": { + "required": [ + "taxAmount", + "taxType" + ], + "type": "object", + "properties": { + "taxType": { + "type": "string", + "description": "Type of the tax applied.", + "enum": [ + "CGST", + "SGST", + "CESS", + "UTGST", + "IGST", + "MwSt.", + "PST", + "TVA", + "VAT", + "GST", + "ST", + "Consumption", + "MutuallyDefined", + "DomesticVAT" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CGST", + "description": "Central Goods and Services Tax (CGST) is levied by the Indian government for intrastate movement of goods and services." + }, + { + "value": "SGST", + "description": "State Goods and Services Tax (SGST) is an indirect tax levied and collected by a State Government in India on the intra-state supplies." + }, + { + "value": "CESS", + "description": "A CESS is a form of tax levied by the government on tax with specific purposes till the time the government gets enough money for that purpose." + }, + { + "value": "UTGST", + "description": "Union Territory Goods and Services Tax in India." + }, + { + "value": "IGST", + "description": "Integrated Goods and Services Tax (IGST) is a tax levied on all Inter-State supplies of goods and\/or services in India." + }, + { + "value": "MwSt.", + "description": "Mehrwertsteuer, MwSt, is German for value-added tax." + }, + { + "value": "PST", + "description": "A provincial sales tax (PST) is imposed on consumers of goods and particular services in many Canadian provinces." + }, + { + "value": "TVA", + "description": "Taxe sur la Valeur Ajoutée (TVA) is French for value-added tax." + }, + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Tax levied on most goods and services sold for domestic consumption." + }, + { + "value": "ST", + "description": "Sales tax." + }, + { + "value": "Consumption", + "description": "Tax levied on consumption spending on goods and services." + }, + { + "value": "MutuallyDefined", + "description": "Tax component that was mutually agreed upon between Amazon and vendor." + }, + { + "value": "DomesticVAT", + "description": "Domestic value-added tax." + } + ] + }, + "taxRate": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "taxAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxableAmount": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Details of tax amount applied." + }, + "Money": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three-digit currency code in ISO 4217 format." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "AdditionalDetails": { + "required": [ + "detail", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of the additional information provided by the selling party.", + "enum": [ + "SUR", + "OCR", + "CartonCount" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SUR", + "description": "An additional tax on something already taxed, such as a higher rate of tax on incomes above a certain level." + }, + { + "value": "OCR", + "description": "OCR." + }, + { + "value": "CartonCount", + "description": "The total number of cartons invoiced." + } + ] + }, + "detail": { + "type": "string", + "description": "The detail of the additional information provided by the selling party." + }, + "languageCode": { + "type": "string", + "description": "The language code of the additional information detail." + } + }, + "description": "Additional information provided by the selling party for tax-related or any other purpose." + }, + "ChargeDetails": { + "required": [ + "chargeAmount", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of the charge applied.", + "enum": [ + "Freight", + "Packing", + "Duty", + "Service", + "SmallOrder", + "InsurancePlacementCost", + "InsuranceFee", + "SpecialHandlingService", + "CollectionAndRecyclingService", + "EnvironmentalProtectionService", + "TaxCollectedAtSource" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Freight", + "description": "Freight charges." + }, + { + "value": "Packing", + "description": "Packing fee." + }, + { + "value": "Duty", + "description": "Duty charges." + }, + { + "value": "Service", + "description": "Service fee." + }, + { + "value": "SmallOrder", + "description": "Small order fee." + }, + { + "value": "InsurancePlacementCost", + "description": "Insurance placement cost." + }, + { + "value": "InsuranceFee", + "description": "Insurance fee." + }, + { + "value": "SpecialHandlingService", + "description": "Special handling service fee." + }, + { + "value": "CollectionAndRecyclingService", + "description": "Collection and recycling service fee." + }, + { + "value": "EnvironmentalProtectionService", + "description": "Environmental protection service fee." + }, + { + "value": "TaxCollectedAtSource", + "description": "Tax collected at source." + } + ] + }, + "description": { + "type": "string", + "description": "Description of the charge." + }, + "chargeAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "type": "array", + "description": "Tax amount details applied on this charge.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + } + }, + "description": "Monetary and tax details of the charge." + }, + "AllowanceDetails": { + "required": [ + "allowanceAmount", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of the allowance applied.", + "enum": [ + "Discount", + "DiscountIncentive", + "Defective", + "Promotional", + "UnsaleableMerchandise", + "Special" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Discount", + "description": "Discount allowance." + }, + { + "value": "DiscountIncentive", + "description": "Discount incentive allowance." + }, + { + "value": "Defective", + "description": "Allowance applied for defective item." + }, + { + "value": "Promotional", + "description": "Promotional allowance." + }, + { + "value": "UnsaleableMerchandise", + "description": "Allowance applied due to unsaleable merchandise." + }, + { + "value": "Special", + "description": "Special allowances." + } + ] + }, + "description": { + "type": "string", + "description": "Description of the allowance." + }, + "allowanceAmount": { + "$ref": "#\/components\/schemas\/Money" + }, + "taxDetails": { + "type": "array", + "description": "Tax amount details applied on this allowance.", + "items": { + "$ref": "#\/components\/schemas\/TaxDetails" + } + } + }, + "description": "Monetary and tax details of the allowance." + }, + "PaymentTerms": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The payment term type for the invoice.", + "enum": [ + "Basic", + "EndOfMonth", + "FixedDate", + "Proximo", + "PaymentDueUponReceiptOfInvoice", + "LetterofCredit" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Basic", + "description": "Payment term that buyer and seller have agreed to." + }, + { + "value": "EndOfMonth", + "description": "Payment term where seller gets paid end of month." + }, + { + "value": "FixedDate", + "description": "Payment term where seller gets paid on a fixed date as agreed with buyer." + }, + { + "value": "Proximo", + "description": "Payment term where seller gets paid end of following month." + }, + { + "value": "PaymentDueUponReceiptOfInvoice", + "description": "Payment term where seller gets paid upon receipt of the invoice by the buyer." + }, + { + "value": "LetterofCredit", + "description": "A payment undertaking given by a bank to the seller and is issued on behalf of the applicant i.e. the buyer." + } + ] + }, + "discountPercent": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "discountDueDays": { + "type": "number", + "description": "The number of calendar days from the Base date (Invoice date) until the discount is no longer valid." + }, + "netDueDays": { + "type": "number", + "description": "The number of calendar days from the base date (invoice date) until the total amount on the invoice is due." + } + }, + "description": "Terms of the payment for the invoice. The basis of the payment terms is the invoice date." + }, + "CreditNoteDetails": { + "type": "object", + "properties": { + "referenceInvoiceNumber": { + "type": "string", + "description": "Original Invoice Number when sending a credit note relating to an existing invoice. One Invoice only to be processed per Credit Note. This is mandatory for AP Credit Notes." + }, + "debitNoteNumber": { + "type": "string", + "description": "Debit Note Number as generated by Amazon. Recommended for Returns and COOP Credit Notes." + }, + "returnsReferenceNumber": { + "type": "string", + "description": "Identifies the Returns Notice Number. Mandatory for all Returns Credit Notes." + }, + "goodsReturnDate": { + "$ref": "#\/components\/schemas\/DateTime" + }, + "rmaId": { + "type": "string", + "description": "Identifies the Returned Merchandise Authorization ID, if generated." + }, + "coopReferenceNumber": { + "type": "string", + "description": "Identifies the COOP reference used for COOP agreement. Failure to provide the COOP reference number or the Debit Note number may lead to a rejection of the Credit Note." + }, + "consignorsReferenceNumber": { + "type": "string", + "description": "Identifies the consignor reference number (VRET number), if generated by Amazon." + } + }, + "description": "References required in order to process a credit note. This information is required only if InvoiceType is CreditNote." + }, + "ItemQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Quantity of an item. This value should not be zero." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the quantity.", + "enum": [ + "Cases", + "Eaches" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cases", + "description": "Packing of individual items into a case." + }, + { + "value": "Eaches", + "description": "Individual items." + } + ] + }, + "unitSize": { + "type": "integer", + "description": "The case size, if the unit of measure value is Cases." + } + }, + "description": "Details of quantity." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`." + }, + "DateTime": { + "type": "string", + "description": "Defines a date and time according to ISO8601.", + "format": "date-time" + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/orders/v1.json b/resources/models/vendor/orders/v1.json new file mode 100644 index 000000000..44416edf6 --- /dev/null +++ b/resources/models/vendor/orders/v1.json @@ -0,0 +1,4034 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Retail Procurement Orders", + "description": "The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/orders\/v1\/purchaseOrders": { + "get": { + "tags": [ + "OrdersV1" + ], + "description": "Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPurchaseOrders", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned. Default value is 100 records.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort in ascending or descending order by purchase order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by purchase order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by purchase order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by purchase order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by purchase order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call", + "schema": { + "type": "string" + } + }, + { + "name": "includeDetails", + "in": "query", + "description": "When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.", + "schema": { + "type": "string", + "format": "boolean" + } + }, + { + "name": "changedAfter", + "in": "query", + "description": "Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "changedBefore", + "in": "query", + "description": "Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "poItemState", + "in": "query", + "description": "Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.", + "schema": { + "type": "string", + "enum": [ + "Cancelled" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cancelled", + "description": "Status for order items cancelled by vendors." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "Cancelled", + "description": "Status for order items cancelled by vendors." + } + ] + }, + { + "name": "isPOChanged", + "in": "query", + "description": "When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.", + "schema": { + "type": "string", + "format": "boolean" + } + }, + { + "name": "purchaseOrderState", + "in": "query", + "description": "Filters purchase orders based on the purchase order state.", + "schema": { + "type": "string", + "enum": [ + "New", + "Acknowledged", + "Closed" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "Status of the orders that are newly created." + }, + { + "value": "Acknowledged", + "description": "Status of the orders acknowledged by vendors." + }, + { + "value": "Closed", + "description": "Status of the orders that are completed." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "Status of the orders that are newly created." + }, + { + "value": "Acknowledged", + "description": "Status of the orders acknowledged by vendors." + }, + { + "value": "Closed", + "description": "Status of the orders that are completed." + } + ] + }, + { + "name": "orderingVendorCode", + "in": "query", + "description": "Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-09-21T00:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + }, + "includeDetails": { + "value": "true" + }, + "limit": { + "value": 2 + }, + "sortOrder": { + "value": "DESC" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "2JK3S9VC", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2019-08-20T15:51:00Z", + "purchaseOrderChangedDate": "2019-08-22T16:05:00Z", + "purchaseOrderStateChangedDate": "2019-08-20T15:51:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "346.27", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "346.27", + "currencyCode": "USD" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "229.47", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "229.47", + "currencyCode": "USD" + } + }, + { + "itemSequenceNumber": "3", + "amazonProductIdentifier": "B07MC84QAB", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 13, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "412.71", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "412.71", + "currencyCode": "USD" + } + } + ] + } + }, + { + "purchaseOrderNumber": "3TRD2IAB", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2019-08-20T16:29:00Z", + "purchaseOrderChangedDate": "2019-08-20T16:50:00Z", + "purchaseOrderStateChangedDate": "2019-08-20T16:29:00Z", + "purchaseOrderType": "RegularOrder", + "importDetails": { + "importContainers": "2-20'HC,1-45',1-45'HC", + "internationalCommercialTerms": "FreeOnBoard", + "methodOfPayment": "PrepaidBySeller", + "portOfDelivery": "INDIA", + "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" + }, + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABC1" + }, + "sellingParty": { + "partyId": "998US" + }, + "shipToParty": { + "partyId": "ABC1" + }, + "billToParty": { + "partyId": "ABC1" + }, + "shipWindow": "2019-08-21T07:00:00Z--2019-08-27T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "B01LNRIIAB", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "CASES", + "unitSize": 10 + }, + "isBackOrderAllowed": true, + "netCost": { + "amount": "94.97", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "94.97", + "currencyCode": "USD" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-08-21T00:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + }, + "includeDetails": { + "value": "false" + }, + "sortOrder": { + "value": "DESC" + }, + "nextToken": { + "value": "MDAwMDAwMDAwMQ==" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "2JK3S9XY", + "purchaseOrderState": "New" + }, + { + "purchaseOrderNumber": "3TRD2ABC", + "purchaseOrderState": "Acknowledged" + } + ] + } + } + }, + { + "request": { + "parameters": { + "changedBefore": { + "value": "2020-05-27T13:00:00" + }, + "changedAfter": { + "value": "2020-05-25T13:00:00" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + }, + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderState": "Acknowledged", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:49:20Z", + "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", + "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-27T07:00:00Z--2020-05-30T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B01XYZ3Z01", + "vendorProductIdentifier": "8806098095124", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "15" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "15" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "changedBefore": { + "value": "2020-05-25T13:00:00" + }, + "changedAfter": { + "value": "2020-05-27T13:00:00" + }, + "poItemState": { + "value": "Cancelled" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderState": "Acknowledged", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:49:20Z", + "purchaseOrderChangedDate": "2020-05-27T06:30:00Z", + "purchaseOrderStateChangedDate": "2020-05-26T19:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-27T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B01XYZ3Z01", + "vendorProductIdentifier": "8806098095124", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "15" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "15" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-05-26T13:00:00" + }, + "createdAfter": { + "value": "2020-05-25T13:00:00" + }, + "isPOChanged": { + "value": "true" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T16:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-05-27T13:00:00" + }, + "createdAfter": { + "value": "2020-05-25T13:00:00" + }, + "purchaseOrderState": { + "value": "New" + }, + "orderingVendorCode": { + "value": "API01" + } + } + }, + "response": { + "payload": { + "orders": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-25T19:29:23Z", + "purchaseOrderChangedDate": "2020-05-26T06:00:00Z", + "purchaseOrderStateChangedDate": "2020-05-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-05-29T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + } + } + ] + } + }, + { + "purchaseOrderNumber": "TestPO3", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:05:23Z", + "purchaseOrderStateChangedDate": "2020-05-26T18:05:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCF" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCF" + }, + "billToParty": { + "partyId": "ABCF" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-06-03T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z02", + "vendorProductIdentifier": "8806093095125", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "50" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "50" + } + } + ] + } + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "orders": [ + { + "purchaseOrderNumber": "mock-purchaseOrderNumber1", + "orderDetails": { + "purchaseOrderDate": "2019-08-14T13:51:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "34366.27", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00002", + "amazonProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "orderedQuantity": { + "amount": 2, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "22798.47", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00003", + "amazonProductIdentifier": "B07MC84QAB", + "vendorProductIdentifier": "8806098095123", + "orderedQuantity": { + "amount": 13, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "listPrice": { + "amount": "4362.71", + "currencyCode": "INR" + } + } + ] + } + }, + { + "purchaseOrderNumber": "mock-purchaseOrderNumber2", + "orderDetails": { + "purchaseOrderDate": "2019-08-13T06:29:00Z", + "purchaseOrderType": "RegularOrder", + "importDetails": { + "importContainers": "2-20'HC,1-45',1-45'HC", + "internationalCommercialTerms": "FreeOnBoard", + "methodOfPayment": "PrepaidBySeller", + "portOfDelivery": "INDIA", + "shippingInstructions": "PREFERENCE IS PALLET-LOAD, BUT IF CONTAINERS ARE FLOOR-LOADED" + }, + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABC1" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABC1" + }, + "billToParty": { + "partyId": "ABC1" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B01LNRIIAB", + "vendorProductIdentifier": "B01LNRIIAB", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Cases", + "unitSize": 5 + }, + "isBackOrderAllowed": true, + "netCost": { + "amount": "94.97", + "currencyCode": "INR" + } + } + ] + } + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2019-09-2100:00:00" + }, + "createdAfter": { + "value": "2019-08-20T14:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersResponse" + } + } + } + } + } + } + }, + "\/vendor\/orders\/v1\/purchaseOrders\/{purchaseOrderNumber}": { + "get": { + "tags": [ + "OrdersV1" + ], + "description": "Returns a purchase order based on the purchaseOrderNumber value that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPurchaseOrder", + "parameters": [ + { + "name": "purchaseOrderNumber", + "in": "path", + "description": "The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + }, + "example": { + "payload": { + "purchaseOrderNumber": "TestPO3", + "purchaseOrderState": "New", + "orderDetails": { + "purchaseOrderDate": "2020-05-26T18:05:23Z", + "purchaseOrderStateChangedDate": "2020-05-26T18:05:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCF" + }, + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABCF" + }, + "billToParty": { + "partyId": "ABCF" + }, + "shipWindow": "2020-05-26T07:00:00Z--2020-06-03T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B01XYZ3Z02", + "vendorProductIdentifier": "8806093095125", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": true, + "netCost": { + "currencyCode": "USD", + "amount": "50" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "50" + } + } + ] + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "4Z32PABC" + } + } + }, + "response": { + "payload": { + "purchaseOrderNumber": "4Z32PABC", + "purchaseOrderState": "Closed", + "orderDetails": { + "purchaseOrderDate": "2019-07-26T11:10:00Z", + "purchaseOrderStateChangedDate": "2019-08-25T19:29:23Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "shipWindow": "2019-07-26T07:00:00Z--2019-08-03T07:00:00Z", + "items": [ + { + "itemSequenceNumber": "1", + "amazonProductIdentifier": "B0748G1ABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 37, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "140", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "140", + "currencyCode": "USD" + } + }, + { + "itemSequenceNumber": "2", + "amazonProductIdentifier": "B0748JMABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "15.62", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "15.62", + "currencyCode": "USD" + } + }, + { + "itemSequenceNumber": "3", + "amazonProductIdentifier": "B076SDSABC", + "vendorProductIdentifier": "0017817755000", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "110.00", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "110.00", + "currencyCode": "USD" + } + } + ] + } + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "purchaseOrderNumber": "mock-purchaseOrderNumber", + "orderDetails": { + "purchaseOrderDate": "2019-07-26T11:10:00Z", + "purchaseOrderType": "RegularOrder", + "paymentMethod": "Invoice", + "buyingParty": { + "partyId": "ABCD" + }, + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "billToParty": { + "partyId": "ABCD" + }, + "items": [ + { + "itemSequenceNumber": "00001", + "amazonProductIdentifier": "B0748G1ABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 37, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00002", + "amazonProductIdentifier": "B0748JMABC", + "vendorProductIdentifier": "0017817748000", + "orderedQuantity": { + "amount": 24, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } + }, + { + "itemSequenceNumber": "00003", + "amazonProductIdentifier": "B076SDSABC", + "vendorProductIdentifier": "0017817755000", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "isBackOrderAllowed": false, + "netCost": { + "amount": "14162.00", + "currencyCode": "INR" + } + } + ] + } + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "null" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "purchaseOrderNumber cannot be null" + } + ] + } + } + ] + } + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrderResponse" + } + } + } + } + } + } + }, + "\/vendor\/orders\/v1\/acknowledgements": { + "post": { + "tags": [ + "OrdersV1" + ], + "description": "Submits acknowledgements for one or more purchase orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "submitAcknowledgement", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + }, + "example": { + "payload": { + "transactionId": "20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "acknowledgements": [ + { + "purchaseOrderNumber": "TestOrder202", + "sellingParty": { + "partyId": "API01" + }, + "acknowledgementDate": "2021-03-12T17:35:26.308Z", + "items": [ + { + "vendorProductIdentifier": "028877454078", + "orderedQuantity": { + "amount": 10 + }, + "netCost": { + "amount": "10.2" + }, + "itemAcknowledgements": [ + { + "acknowledgementCode": "Accepted", + "acknowledgedQuantity": { + "amount": 10 + } + } + ] + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190827182357-8725bde9-c61c-49f9-86ac-46efd82d4da5" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "acknowledgements": [ + { + "purchaseOrderNumber": "TestOrder400", + "sellingParty": {} + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "The content of element 'sellingParty' is not complete. One of '{partyId, address, taxInfo}' is expected.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitAcknowledgementResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/orders\/v1\/purchaseOrdersStatus": { + "get": { + "tags": [ + "OrdersV1" + ], + "description": "Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getPurchaseOrdersStatus", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned. Default value is 100 records.", + "schema": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort in ascending or descending order by purchase order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by purchase order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by purchase order creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by purchase order creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by purchase order creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more purchase orders than the specified result size limit.", + "schema": { + "type": "string" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "updatedAfter", + "in": "query", + "description": "Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "updatedBefore", + "in": "query", + "description": "Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "purchaseOrderNumber", + "in": "query", + "description": "Provides purchase order status for the specified purchase order number.", + "schema": { + "type": "string" + } + }, + { + "name": "purchaseOrderStatus", + "in": "query", + "description": "Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses.", + "schema": { + "type": "string", + "enum": [ + "OPEN", + "CLOSED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "OPEN", + "description": "Buyer has not yet received all of the items in the purchase order." + }, + { + "value": "CLOSED", + "description": "Buyer has received all of the items in the purchase order." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "OPEN", + "description": "Buyer has not yet received all of the items in the purchase order." + }, + { + "value": "CLOSED", + "description": "Buyer has received all of the items in the purchase order." + } + ] + }, + { + "name": "itemConfirmationStatus", + "in": "query", + "description": "Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included.", + "schema": { + "type": "string", + "enum": [ + "ACCEPTED", + "PARTIALLY_ACCEPTED", + "REJECTED", + "UNCONFIRMED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACCEPTED", + "description": "Provides a list of orders that has at least one item fully accepted by vendors." + }, + { + "value": "PARTIALLY_ACCEPTED", + "description": "Provides a list of orders that has at least one item partially accepted by vendors." + }, + { + "value": "REJECTED", + "description": "Provides a list of orders that has at least one item rejected by vendors." + }, + { + "value": "UNCONFIRMED", + "description": "Provides a list of orders that has at least one item yet to be confirmed by vendors." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ACCEPTED", + "description": "Provides a list of orders that has at least one item fully accepted by vendors." + }, + { + "value": "PARTIALLY_ACCEPTED", + "description": "Provides a list of orders that has at least one item partially accepted by vendors." + }, + { + "value": "REJECTED", + "description": "Provides a list of orders that has at least one item rejected by vendors." + }, + { + "value": "UNCONFIRMED", + "description": "Provides a list of orders that has at least one item yet to be confirmed by vendors." + } + ] + }, + { + "name": "itemReceiveStatus", + "in": "query", + "description": "Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included.", + "schema": { + "type": "string", + "enum": [ + "NOT_RECEIVED", + "PARTIALLY_RECEIVED", + "RECEIVED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "PARTIALLY_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "RECEIVED", + "description": "Provides a list of orders that have at least one item fully received by the buyer." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "NOT_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "PARTIALLY_RECEIVED", + "description": "Provides a list of orders that have at least one item not received by the buyer." + }, + { + "value": "RECEIVED", + "description": "Provides a list of orders that have at least one item fully received by the buyer." + } + ] + }, + { + "name": "orderingVendorCode", + "in": "query", + "description": "Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.", + "schema": { + "type": "string" + } + }, + { + "name": "shipToPartyId", + "in": "query", + "description": "Filters purchase orders for a specific buyer's Fulfillment Center\/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "createdBefore": { + "value": "2020-08-18T00:00:00" + }, + "createdAfter": { + "value": "2020-08-17T14:00:00" + }, + "limit": { + "value": 1 + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMZ==" + }, + "ordersStatus": [ + { + "purchaseOrderNumber": "2JK3S9VB", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T20:24:58.193Z", + "lastUpdatedDate": "2020-08-17T21:05:58.193Z", + "sellingParty": { + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCD" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B07DFVDRAB", + "vendorProductIdentifier": "8806098286500", + "netCost": { + "amount": "346.27", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "346.27", + "currencyCode": "USD" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "ACCEPTED", + "acceptedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "acceptedQuantity": { + "amount": 1, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "RECEIVED", + "receivedQuantity": { + "amount": 1, + "unitOfMeasure": "Cases", + "unitSize": 1 + }, + "lastReceiveDate": "2020-08-28T21:06:23.193Z" + } + }, + { + "itemSequenceNumber": "2", + "buyerProductIdentifier": "B07DFYF5AB", + "vendorProductIdentifier": "8806098286123", + "netCost": { + "amount": "229.47", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "229.47", + "currencyCode": "USD" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 20, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:35:00.00Z", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "PARTIALLY_ACCEPTED", + "acceptedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "acceptedQuantity": { + "amount": 15, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "PARTIALLY_RECEIVED", + "receivedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "lastReceiveDate": "2020-08-30T21:05:58.193Z" + } + }, + { + "itemSequenceNumber": "3", + "buyerProductIdentifier": "B07DFYF5XY", + "vendorProductIdentifier": "8806098286789", + "netCost": { + "amount": "20", + "currencyCode": "USD" + }, + "listPrice": { + "amount": "20", + "currencyCode": "USD" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T20:24:58.193Z", + "orderedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "REJECTED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "acknowledgementStatusDetails": [ + { + "acknowledgementDate": "2020-08-17T21:05:58.193Z", + "rejectedQuantity": { + "amount": 5, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": { + "purchaseOrderNumber": { + "value": "TestPO2" + } + } + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": { + "updatedBefore": { + "value": "2020-08-18T00:00:00.00Z" + }, + "updatedAfter": { + "value": "2020-08-16T00:00:00.00Z" + }, + "itemConfirmationStatus": { + "value": "UNCONFIRMED" + }, + "purchaseOrderStatus": { + "value": "OPEN" + } + } + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "TestPO2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + }, + { + "purchaseOrderNumber": "TestPO1", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-15T05:24:00.00Z", + "lastUpdatedDate": "2020-08-17T05:07:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z123", + "vendorProductIdentifier": "8806093095999", + "netCost": { + "currencyCode": "USD", + "amount": "25" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "25" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T05:07:00.00Z", + "cancelledQuantity": { + "amount": 50, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-15T05:24:00.00Z", + "orderedQuantity": { + "amount": 150, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "ordersStatus": [ + { + "purchaseOrderNumber": "mock-purchaseOrderNumber1", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-17T00:24:00.00Z", + "lastUpdatedDate": "2020-08-17T00:24:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z00", + "vendorProductIdentifier": "8806093095123", + "netCost": { + "currencyCode": "USD", + "amount": "70" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "70" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T00:24:00.00Z", + "orderedQuantity": { + "amount": 10, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + }, + { + "purchaseOrderNumber": "mock-purchaseOrderNumber2", + "purchaseOrderStatus": "OPEN", + "purchaseOrderDate": "2020-08-15T05:24:00.00Z", + "lastUpdatedDate": "2020-08-17T05:07:00.00Z", + "sellingParty": { + "partyId": "API01" + }, + "shipToParty": { + "partyId": "ABC09" + }, + "itemStatus": [ + { + "itemSequenceNumber": "1", + "buyerProductIdentifier": "B01XYZ3Z123", + "vendorProductIdentifier": "8806093095999", + "netCost": { + "currencyCode": "USD", + "amount": "25" + }, + "listPrice": { + "currencyCode": "USD", + "amount": "25" + }, + "orderedQuantity": { + "orderedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "orderedQuantityDetails": [ + { + "updatedDate": "2020-08-17T05:07:00.00Z", + "cancelledQuantity": { + "amount": 50, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + { + "updatedDate": "2020-08-15T05:24:00.00Z", + "orderedQuantity": { + "amount": 150, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + ] + }, + "acknowledgementStatus": { + "confirmationStatus": "UNCONFIRMED", + "acceptedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "rejectedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + }, + "receivingStatus": { + "receiveStatus": "NOT_RECEIVED", + "receivedQuantity": { + "amount": 0, + "unitOfMeasure": "Eaches", + "unitSize": 1 + } + } + } + ] + } + ] + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "updatedBefore": { + "value": "2019-09-2100:00:00" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid.", + "details": "" + } + ] + } + } + ] + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetPurchaseOrdersStatusResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetPurchaseOrdersResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderList" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPurchaseOrders operation." + }, + "GetPurchaseOrderResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/Order" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPurchaseOrder operation." + }, + "OrderList": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "orders": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Order" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more purchase order items to return." + } + } + }, + "Order": { + "required": [ + "purchaseOrderNumber", + "purchaseOrderState" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code." + }, + "purchaseOrderState": { + "type": "string", + "description": "This field will contain the current state of the purchase order.", + "enum": [ + "New", + "Acknowledged", + "Closed" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "The purchase order is newly created and needs to be acknowledged by vendor." + }, + { + "value": "Acknowledged", + "description": "The purchase order has been acknowledged by vendor." + }, + { + "value": "Closed", + "description": "The purchase order is closed and no further action is required from the vendor. PO can be in closed state for many reasons such as order is rejected by vendor, order is cancelled by Amazon or order is fully received by Amazon." + } + ] + }, + "orderDetails": { + "$ref": "#\/components\/schemas\/OrderDetails" + } + } + }, + "OrderDetails": { + "required": [ + "items", + "purchaseOrderDate", + "purchaseOrderStateChangedDate" + ], + "type": "object", + "properties": { + "purchaseOrderDate": { + "type": "string", + "description": "The date the purchase order was placed. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "purchaseOrderChangedDate": { + "type": "string", + "description": "The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than 'purchaseOrderDate'. This means the PO data was changed on that date and vendors are required to fulfill the updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "purchaseOrderStateChangedDate": { + "type": "string", + "description": "The date when current purchase order state was changed. Current purchase order state is available in the field 'purchaseOrderState'. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "purchaseOrderType": { + "type": "string", + "description": "Type of purchase order.", + "enum": [ + "RegularOrder", + "ConsignedOrder", + "NewProductIntroduction", + "RushOrder" + ], + "x-docgen-enum-table-extension": [ + { + "value": "RegularOrder", + "description": "A regular purchase order is a method for placing orders for a one-time purchase and payment for line item goods that have a specific quantity and unit price." + }, + { + "value": "ConsignedOrder", + "description": "A consignment purchase order is an agreement with a vendor that allows the product to be received, but the inventory still belong to the vendor until the product is used." + }, + { + "value": "NewProductIntroduction", + "description": "A purchase order where a new product is introduced." + }, + { + "value": "RushOrder", + "description": "Rush orders are purchases of goods that need to be processed and delivered by a certain date that is much sooner than the standard arrival date." + } + ] + }, + "importDetails": { + "$ref": "#\/components\/schemas\/ImportDetails" + }, + "dealCode": { + "type": "string", + "description": "If requested by the recipient, this field will contain a promotional\/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order." + }, + "paymentMethod": { + "type": "string", + "description": "Payment method used.", + "enum": [ + "Invoice", + "Consignment", + "CreditCard", + "Prepaid" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Invoice", + "description": "An invoice payment is submitted by a business to pay for products and services purchased from vendors." + }, + { + "value": "Consignment", + "description": "A retail merchandiser acts as a consignor for goods supplied by the consignee. The consignor pays the consignee after the sale and keeps a percentage of the proceeds" + }, + { + "value": "CreditCard", + "description": "Payment is made using a credit card." + }, + { + "value": "Prepaid", + "description": "Payment is prepaid." + } + ] + }, + "buyingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "billToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipWindow": { + "$ref": "#\/components\/schemas\/DateTimeInterval" + }, + "deliveryWindow": { + "$ref": "#\/components\/schemas\/DateTimeInterval" + }, + "items": { + "type": "array", + "description": "A list of items in this purchase order.", + "items": { + "$ref": "#\/components\/schemas\/OrderItem" + } + } + }, + "description": "Details of an order." + }, + "ImportDetails": { + "type": "object", + "properties": { + "methodOfPayment": { + "type": "string", + "description": "If the recipient requests, contains the shipment method of payment. This is for import PO's only.", + "enum": [ + "PaidByBuyer", + "CollectOnDelivery", + "DefinedByBuyerAndSeller", + "FOBPortOfCall", + "PrepaidBySeller", + "PaidBySeller" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PaidByBuyer", + "description": "Buyer pays for shipping." + }, + { + "value": "CollectOnDelivery", + "description": "Buyer pays for shipping on delivery." + }, + { + "value": "DefinedByBuyerAndSeller", + "description": "Shipping costs paid as agreed upon between buyer and seller." + }, + { + "value": "FOBPortOfCall", + "description": "Seller pays for transportation including loading and shipping." + }, + { + "value": "PrepaidBySeller", + "description": "Seller prepays for shipping." + }, + { + "value": "PaidBySeller", + "description": "Seller pays for shipping." + } + ] + }, + "internationalCommercialTerms": { + "type": "string", + "description": "Incoterms (International Commercial Terms) are used to divide transaction costs and responsibilities between buyer and seller and reflect state-of-the-art transportation practices. This is for import purchase orders only. ", + "enum": [ + "ExWorks", + "FreeCarrier", + "FreeOnBoard", + "FreeAlongSideShip", + "CarriagePaidTo", + "CostAndFreight", + "CarriageAndInsurancePaidTo", + "CostInsuranceAndFreight", + "DeliveredAtTerminal", + "DeliveredAtPlace", + "DeliverDutyPaid" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ExWorks", + "description": "Places the maximum obligation on the buyer and minimum obligations on the seller. The seller makes the goods available at its premises. The buyer is responsible for all costs of the transportation of the shipment and bears all the risks for bringing the goods to their final destination." + }, + { + "value": "FreeCarrier", + "description": "The seller hands over the goods, cleared for export, into the disposal of the carrier (named by the buyer). The buyer pays for all the additional costs of transportation and risk passes when the goods are handed over to the carrier." + }, + { + "value": "FreeOnBoard", + "description": "Ocean shipments only. The seller must deliver the goods alongside the ship at the named port, and clear the goods for export. The buyer pays for all the additional costs of transportation and risk passes when the goods are alongside the ship." + }, + { + "value": "FreeAlongSideShip", + "description": "Ocean shipments only. The seller must load the goods on board the vessel, cleared for export. The buyer pays for all the additional costs of transportation and risk passes when the goods are loaded on the ship." + }, + { + "value": "CarriagePaidTo", + "description": "The seller pays for transportation to the named port of destination, but risk transfers to the buyer upon handing goods over to the first carrier. The buyer pays for all destination charges." + }, + { + "value": "CostAndFreight", + "description": "Ocean shipments only. Seller pays for transportation to the named port of destination, but risk transfers to the buyer once the goods are loaded on the vessel. The buyer pays for all destination charges." + }, + { + "value": "CarriageAndInsurancePaidTo", + "description": "Seller pays for transportation and insurance to the named port of destination, but risk transfers to the buyer upon handing goods over to the first carrier. The buyer pays for all destination charges." + }, + { + "value": "CostInsuranceAndFreight", + "description": "Ocean shipments only. Seller pays for transportation and insurance to the named port of destination, but risk transfers to the buyer once the goods are loaded on the vessel. The buyer pays for all destination charges." + }, + { + "value": "DeliveredAtTerminal", + "description": "Seller pays for transportation up to the destination terminal, and risks up to the point that the goods are unloaded at the terminal. The buyer pays for import clearance, duties & taxes and delivery costs." + }, + { + "value": "DeliveredAtPlace", + "description": "Seller pays for transportation to the named destination, and risk transfers at the point that the goods are ready for unloading by the buyer. The buyer pays for import clearance, duties & taxes and delivery costs." + }, + { + "value": "DeliverDutyPaid", + "description": "Seller is responsible for delivering the goods to the named place in the country of the buyer, and pays all costs in bringing the goods to the destination including import duties and taxes. This term places the maximum obligations on the seller and minimum obligations on the buyer." + } + ] + }, + "portOfDelivery": { + "maxLength": 64, + "type": "string", + "description": "The port where goods on an import purchase order must be delivered by the vendor. This should only be specified when the internationalCommercialTerms is FOB." + }, + "importContainers": { + "maxLength": 64, + "type": "string", + "description": "Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if the shipment has multiple containers. HC signifies a high-capacity container. Free-text field, limited to 64 characters. The format will be a comma-delimited list containing values of the type: $NUMBER_OF_CONTAINERS_OF_THIS_TYPE-$CONTAINER_TYPE. The list of values for the container type is: 40'(40-foot container), 40'HC (40-foot high-capacity container), 45', 45'HC, 30', 30'HC, 20', 20'HC." + }, + "shippingInstructions": { + "type": "string", + "description": "Special instructions regarding the shipment. This field is for import purchase orders." + } + }, + "description": "Import details for an import order." + }, + "DateTimeInterval": { + "type": "string", + "description": "Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--)." + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "partyId": { + "type": "string", + "description": "Assigned identification for the party. For example, warehouse code or vendor code. Please refer to specific party for more details." + }, + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "taxInfo": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber", + "taxRegistrationType" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the entity. For example, VAT ID." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "maxLength": 2, + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "OrderItem": { + "required": [ + "isBackOrderAllowed", + "itemSequenceNumber", + "orderedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on." + }, + "amazonProductIdentifier": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item." + }, + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "isBackOrderAllowed": { + "type": "boolean", + "description": "When true, we will accept backorder confirmations for this item." + }, + "netCost": { + "$ref": "#\/components\/schemas\/Money" + }, + "listPrice": { + "$ref": "#\/components\/schemas\/Money" + } + } + }, + "Money": { + "type": "object", + "properties": { + "currencyCode": { + "maxLength": 3, + "type": "string", + "description": "Three digit currency code in ISO 4217 format. String of length 3." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`." + }, + "SubmitAcknowledgementResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionId" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the submitAcknowledgement operation" + }, + "TransactionId": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "SubmitAcknowledgementRequest": { + "type": "object", + "properties": { + "acknowledgements": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/OrderAcknowledgement" + } + } + }, + "description": "The request schema for the submitAcknowledgment operation." + }, + "OrderAcknowledgement": { + "required": [ + "acknowledgementDate", + "items", + "purchaseOrderNumber", + "sellingParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number. Formatting Notes: 8-character alpha-numeric code." + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "acknowledgementDate": { + "type": "string", + "description": "The date and time when the purchase order is acknowledged, in ISO-8601 date\/time format.", + "format": "date-time" + }, + "items": { + "type": "array", + "description": "A list of the items being acknowledged with associated details.", + "items": { + "$ref": "#\/components\/schemas\/OrderAcknowledgementItem" + } + } + } + }, + "OrderAcknowledgementItem": { + "required": [ + "itemAcknowledgements", + "orderedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Line item sequence number for the item." + }, + "amazonProductIdentifier": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order." + }, + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "netCost": { + "$ref": "#\/components\/schemas\/Money" + }, + "listPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "discountMultiplier": { + "type": "string", + "description": "The discount multiplier that should be applied to the price if a vendor sells books with a list price. This is a multiplier factor to arrive at a final discounted price. A multiplier of .90 would be the factor if a 10% discount is given." + }, + "itemAcknowledgements": { + "type": "array", + "description": "This is used to indicate acknowledged quantity.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemAcknowledgement" + } + } + }, + "description": "Details of the item being acknowledged." + }, + "OrderItemAcknowledgement": { + "required": [ + "acknowledgedQuantity", + "acknowledgementCode" + ], + "type": "object", + "properties": { + "acknowledgementCode": { + "type": "string", + "description": "This indicates the acknowledgement code.", + "enum": [ + "Accepted", + "Backordered", + "Rejected" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Accepted", + "description": "Vendor accepts to fulfill the order item(s)." + }, + { + "value": "Backordered", + "description": "Vendor placed a backorder to fulfill the original order and provides a scheduledShipDate or scheduledDeliveryDate which is different than the expectedShipDate or expectedDeliveryDate provided in the purchase order." + }, + { + "value": "Rejected", + "description": "Vendor rejects to fulfill the order item(s)." + } + ] + }, + "acknowledgedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "scheduledShipDate": { + "type": "string", + "description": "Estimated ship date per line item. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "scheduledDeliveryDate": { + "type": "string", + "description": "Estimated delivery date per line item. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "rejectionReason": { + "type": "string", + "description": "Indicates the reason for rejection.", + "enum": [ + "TemporarilyUnavailable", + "InvalidProductIdentifier", + "ObsoleteProduct" + ], + "x-docgen-enum-table-extension": [ + { + "value": "TemporarilyUnavailable", + "description": "Items are currently not available." + }, + { + "value": "InvalidProductIdentifier", + "description": "Item cannot be found with the provided identifier." + }, + { + "value": "ObsoleteProduct", + "description": "Item is no longer sold." + } + ] + } + } + }, + "ItemQuantity": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Acknowledged quantity. This value should not be zero." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the acknowledged quantity.", + "enum": [ + "Cases", + "Eaches" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cases", + "description": "Packing of individual items into a case." + }, + { + "value": "Eaches", + "description": "Individual items." + } + ] + }, + "unitSize": { + "type": "integer", + "description": "The case size, in the event that we ordered using cases." + } + }, + "description": "Details of quantity ordered." + }, + "GetPurchaseOrdersStatusResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/OrderListStatus" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getPurchaseOrdersStatus operation." + }, + "OrderListStatus": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "ordersStatus": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/OrderStatus" + } + } + } + }, + "OrderStatus": { + "required": [ + "itemStatus", + "purchaseOrderDate", + "purchaseOrderNumber", + "purchaseOrderStatus", + "sellingParty", + "shipToParty" + ], + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The buyer's purchase order number for this order. Formatting Notes: 8-character alpha-numeric code." + }, + "purchaseOrderStatus": { + "type": "string", + "description": "The status of the buyer's purchase order for this order.", + "enum": [ + "OPEN", + "CLOSED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "OPEN", + "description": "Buyer has not yet received all of the items in the purchase order." + }, + { + "value": "CLOSED", + "description": "Buyer has received all of the items in the purchase order." + } + ] + }, + "purchaseOrderDate": { + "type": "string", + "description": "The date the purchase order was placed. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "lastUpdatedDate": { + "type": "string", + "description": "The date when the purchase order was last updated. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "itemStatus": { + "$ref": "#\/components\/schemas\/ItemStatus" + } + }, + "description": "Current status of a purchase order." + }, + "ItemStatus": { + "type": "array", + "description": "Detailed description of items order status.", + "items": { + "$ref": "#\/components\/schemas\/OrderItemStatus" + } + }, + "OrderItemStatus": { + "required": [ + "itemSequenceNumber" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer's Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item." + }, + "netCost": { + "$ref": "#\/components\/schemas\/Money" + }, + "listPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "orderedQuantity": { + "type": "object", + "properties": { + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "orderedQuantityDetails": { + "type": "array", + "description": "Details of item quantity ordered.", + "items": { + "$ref": "#\/components\/schemas\/OrderedQuantityDetails" + } + } + }, + "description": "Ordered quantity information." + }, + "acknowledgementStatus": { + "type": "object", + "properties": { + "confirmationStatus": { + "type": "string", + "description": "Confirmation status of line item.", + "enum": [ + "ACCEPTED", + "PARTIALLY_ACCEPTED", + "REJECTED", + "UNCONFIRMED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ACCEPTED", + "description": "Status for orders accepted by vendors." + }, + { + "value": "PARTIALLY_ACCEPTED", + "description": "Status for orders that are partially accepted by vendors." + }, + { + "value": "REJECTED", + "description": "Status for orders that are rejected by vendors." + }, + { + "value": "UNCONFIRMED", + "description": "Status for orders that are yet to be confirmed by vendors." + } + ] + }, + "acceptedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "rejectedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "acknowledgementStatusDetails": { + "type": "array", + "description": "Details of item quantity confirmed.", + "items": { + "$ref": "#\/components\/schemas\/AcknowledgementStatusDetails" + } + } + }, + "description": "Acknowledgement status information." + }, + "receivingStatus": { + "type": "object", + "properties": { + "receiveStatus": { + "type": "string", + "description": "Receive status of the line item.", + "enum": [ + "NOT_RECEIVED", + "PARTIALLY_RECEIVED", + "RECEIVED" + ], + "x-docgen-enum-table-extension": [ + { + "value": "NOT_RECEIVED", + "description": "The buyer has not received any of the item." + }, + { + "value": "PARTIALLY_RECEIVE", + "description": "The buyer has received some of the item and is expecting to receive the rest of the confirmed quantity." + }, + { + "value": "RECEIVED", + "description": "Receiving is complete. The buyer has received all confirmed items." + } + ] + }, + "receivedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "lastReceiveDate": { + "type": "string", + "description": "The date when the most recent item was received at the buyer's warehouse. Must be in ISO-8601 date\/time format.", + "format": "date-time" + } + }, + "description": "Item receive status at the buyer's warehouse." + } + } + }, + "OrderedQuantityDetails": { + "type": "object", + "properties": { + "updatedDate": { + "type": "string", + "description": "The date when the line item quantity was updated by buyer. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "orderedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "cancelledQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + }, + "description": "Details of item quantity ordered" + }, + "AcknowledgementStatusDetails": { + "type": "object", + "properties": { + "acknowledgementDate": { + "type": "string", + "description": "The date when the line item was confirmed by vendor. Must be in ISO-8601 date\/time format.", + "format": "date-time" + }, + "acceptedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "rejectedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + } + }, + "description": "Details of item quantity ordered" + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/shipments/v1.json b/resources/models/vendor/shipments/v1.json new file mode 100644 index 000000000..b5f354a74 --- /dev/null +++ b/resources/models/vendor/shipments/v1.json @@ -0,0 +1,4033 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Retail Procurement Shipments", + "description": "The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/shipping\/v1\/shipmentConfirmations": { + "post": { + "tags": [ + "ShipmentsV1" + ], + "description": "Submits one or more shipment confirmations for vendor orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "SubmitShipmentConfirmations", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsRequest" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + }, + "example": { + "payload": { + "transactionId": { + "description": "GUID assigned by Amazon to identify this transaction. It will be used in Transaction Status API as reference to get status of this transaction.", + "type": "string" + } + } + } + } + }, + "x-amzn-api-sandbox": { + "static": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentConfirmations": [ + { + "shipmentIdentifier": "TestShipmentConfirmation202", + "shipmentConfirmationDate": "2021-03-11T12:38:23.388Z", + "sellingParty": { + "partyId": "ABCD1" + }, + "shipFromParty": { + "partyId": "EFGH1" + }, + "shipToParty": { + "partyId": "JKL1" + }, + "shipmentConfirmationType": "Original", + "shippedItems": [ + { + "itemSequenceNumber": "001", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches" + }, + "itemDetails": { + "purchaseOrderNumber": "TestOrder202" + } + } + ] + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-20190905010908-8a3b6901-ef20-412f-9270-21c021796605" + } + } + } + ] + } + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipmentConfirmations": [ + { + "shipmentIdentifier": "MOCKSHIPMENTID" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Shipment ID" + } + ] + } + } + ] + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/shipping\/v1\/shipments": { + "get": { + "tags": [ + "ShipmentsV1" + ], + "description": "Returns the Details about Shipment, Carrier Details, status of the shipment, container details and other details related to shipment based on the filter parameters value that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "GetShipmentDetails", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned. Default value is 50 records.", + "schema": { + "maximum": 50, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort in ascending or descending order by purchase order creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by shipment creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by shipment creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by shipment creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by shipment creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more shipments than the specified result size limit.", + "schema": { + "type": "string" + } + }, + { + "name": "createdAfter", + "in": "query", + "description": "Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "createdBefore", + "in": "query", + "description": "Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shipmentConfirmedBefore", + "in": "query", + "description": "Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shipmentConfirmedAfter", + "in": "query", + "description": "Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "packageLabelCreatedBefore", + "in": "query", + "description": "Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "packageLabelCreatedAfter", + "in": "query", + "description": "Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shippedBefore", + "in": "query", + "description": "Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shippedAfter", + "in": "query", + "description": "Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "estimatedDeliveryBefore", + "in": "query", + "description": "Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "estimatedDeliveryAfter", + "in": "query", + "description": "Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shipmentDeliveryBefore", + "in": "query", + "description": "Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "shipmentDeliveryAfter", + "in": "query", + "description": "Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "requestedPickUpBefore", + "in": "query", + "description": "Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "requestedPickUpAfter", + "in": "query", + "description": "Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "scheduledPickUpBefore", + "in": "query", + "description": "Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "scheduledPickUpAfter", + "in": "query", + "description": "Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "currentShipmentStatus", + "in": "query", + "description": "Get Shipment Details by passing Current shipment status.", + "schema": { + "type": "string" + } + }, + { + "name": "vendorShipmentIdentifier", + "in": "query", + "description": "Get Shipment Details by passing Vendor Shipment ID", + "schema": { + "type": "string" + } + }, + { + "name": "buyerReferenceNumber", + "in": "query", + "description": "Get Shipment Details by passing buyer Reference ID", + "schema": { + "type": "string" + } + }, + { + "name": "buyerWarehouseCode", + "in": "query", + "description": "Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment.", + "schema": { + "type": "string" + } + }, + { + "name": "sellerWarehouseCode", + "in": "query", + "description": "Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + }, + "example": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "shipments": [ + { + "vendorShipmentIdentifier": "00050003", + "buyerReferenceNumber": "1234567", + "currentShipmentStatus": "CarrierAssigned", + "currentshipmentStatusDate": "2019-08-09T19:56:45.632", + "shipmentStatusDetails": [ + { + "shipmentStatus": "CarrierAssigned", + "shipmentStatusDate": "2019-08-09T19:56:45.632" + }, + { + "shipmentStatus": "TransportationRequested", + "shipmentStatusDate": "2019-07-07T19:56:45.632" + }, + { + "shipmentStatus": "Created", + "shipmentStatusDate": "2019-07-06T19:56:45.632" + } + ], + "shipmentCreateDate": "2019-07-07T19:56:45.632", + "shipmentConfirmDate": "2019-08-07T19:56:45.632", + "packageLabelCreateDate": "2019-08-07T19:56:45.632", + "shipmentFreightTerm": "Collect", + "sellingParty": { + "partyId": "998US" + }, + "shipFromParty": { + "address": { + "name": "ABC electronics warehouse", + "addressLine1": "DEF 1st street", + "city": "Lisses", + "stateOrRegion": "abcland", + "postalCode": "91090", + "countryCode": "DE" + }, + "partyId": "ABCD12" + }, + "shipToParty": { + "partyId": "999US" + }, + "shipmentMeasurements": { + "totalCartonCount": 30, + "totalPalletStackable": 30, + "totalPalletNonStackable": 30, + "shipmentWeight": { + "unitOfMeasure": "Kg", + "value": "120.45" + }, + "shipmentVolume": { + "unitOfMeasure": "CuFt", + "value": "2.4" + } + }, + "collectFreightPickupDetails": { + "requestedPickUp": "2019-08-07T19:56:45.632", + "scheduledPickUp": "2019-08-07T19:56:45.632", + "carrierAssignmentDate": "2019-08-07T19:56:45.632" + }, + "purchaseOrders": [ + { + "purchaseOrderNumber": "1BBBAAAA", + "purchaseOrderDate": "2019-08-06T19:56:45.632", + "shipWindow": "08\/25\/2021 - 08\/31\/2021", + "items": [ + { + "itemSequenceNumber": "001", + "vendorProductIdentifier": "9782700001659", + "buyerProductIdentifier": "9782700001690", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "maximumRetailPrice": { + "currencyCode": "USD", + "amount": "12345" + } + } + ] + } + ], + "importDetails": { + "methodOfPayment": "PaidByBuyer", + "sealNumber": "1232142132", + "route": { + "stops": [ + { + "functionCode": "PortOfDischarge", + "locationIdentification": { + "type": "string", + "locationCode": "string", + "countryCode": "US" + }, + "arrivalTime": "2021-07-12T22:22:25.038Z", + "departureTime": "2021-07-12T22:22:25.038Z" + } + ] + }, + "importContainers": "string", + "billableWeight": { + "unitOfMeasure": "G", + "value": "10" + }, + "estimatedShipByDate": "2021-07-12T22:22:25.038Z", + "handlingInstructions": "Oversized" + }, + "containers": [ + { + "containerType": "carton", + "containerSequenceNumber": "001", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "213124134213" + } + ], + "trackingNumber": "XXXX", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "string", + "lotNumber": "string", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + }, + { + "containerType": "pallet", + "containerSequenceNumber": "002", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "ARK123214214213" + } + ], + "trackingNumber": "TRACK001", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "tier": 2, + "block": 2, + "innerContainersDetails": { + "containerCount": 10, + "containerSequenceNumbers": [ + { + "containerSequenceNumber": "002" + }, + { + "containerSequenceNumber": "003" + } + ] + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "string", + "lotNumber": "string", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + } + ] + } + ] + } + ], + "transportationDetails": { + "shipMode": "LessThanTruckLoad", + "transportationMode": "Road", + "shippedDate": "2019-08-07T19:56:45.632", + "estimatedDeliveryDate": "2019-08-07T19:56:45.632", + "shipmentDeliveryDate": "2019-08-07T19:56:45.632", + "carrierDetails": { + "name": "UPS", + "phone": "1234567890", + "email": "abc@xyz.com", + "code": "string", + "shipmentReferenceNumber": "TRACK001" + }, + "billOfLadingNumber": "string" + } + } + ] + } + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "vendorShipmentIdentifier": { + "value": "12345678" + } + } + }, + "response": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "shipments": [ + { + "vendorShipmentIdentifier": "00050003", + "buyerReferenceNumber": "1234567", + "currentShipmentStatus": "Created", + "currentshipmentStatusDate": "2019-08-07T19:56:45.632", + "shipmentStatusDetails": [ + { + "shipmentStatus": "Created", + "shipmentStatusDate": "2019-08-07T19:56:45.632" + } + ], + "shipmentCreateDate": "2019-07-07T19:56:45.632", + "shipmentConfirmDate": "2019-08-07T19:56:45.632", + "packageLabelCreateDate": "2019-08-07T19:56:45.632", + "shipmentFreightTerm": "Collect", + "sellingParty": { + "partyId": "998US" + }, + "shipFromParty": { + "address": { + "name": "ABC electronics warehouse", + "addressLine1": "DEF 1st street", + "city": "Lisses", + "stateOrRegion": "abcland", + "postalCode": "91090", + "countryCode": "DE" + }, + "partyId": "ABCD12" + }, + "shipToParty": { + "partyId": "999US" + }, + "shipmentMeasurements": { + "totalCartonCount": 30, + "totalPalletStackable": 30, + "totalPalletNonStackable": 30, + "shipmentWeight": { + "unitOfMeasure": "Kg", + "value": "120.45" + }, + "shipmentVolume": { + "unitOfMeasure": "CuFt", + "value": "2.4" + } + }, + "collectFreightPickupDetails": { + "requestedPickUp": "2019-08-07T19:56:45.632", + "scheduledPickUp": "2019-08-07T19:56:45.632", + "carrierAssignmentDate": "2019-08-07T19:56:45.632" + }, + "purchaseOrders": [ + { + "purchaseOrderNumber": "1BBBAAAA", + "purchaseOrderDate": "2019-08-07T19:56:45.632", + "shipWindow": "08\/25\/2021 - 08\/31\/2021", + "items": [ + { + "itemSequenceNumber": "001", + "vendorProductIdentifier": "9782700001659", + "buyerProductIdentifier": "9782700001690", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "maximumRetailPrice": { + "currencyCode": "USD", + "amount": "12345" + } + } + ] + } + ], + "importDetails": { + "methodOfPayment": "PaidByBuyer", + "sealNumber": "1232142132", + "route": { + "stops": [ + { + "functionCode": "PortOfDischarge", + "locationIdentification": { + "type": "string", + "locationCode": "string", + "countryCode": "US" + }, + "arrivalTime": "2021-07-12T22:22:25.038Z", + "departureTime": "2021-07-12T22:22:25.038Z" + } + ] + }, + "importContainers": "string", + "billableWeight": { + "unitOfMeasure": "G", + "value": "10" + }, + "estimatedShipByDate": "2021-07-12T22:22:25.038Z", + "handlingInstructions": "Oversized" + }, + "containers": [ + { + "containerType": "carton", + "containerSequenceNumber": "001", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "213124134213" + } + ], + "trackingNumber": "XXXX", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "string", + "lotNumber": "string", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + } + ] + }, + { + "containerType": "pallet", + "containerSequenceNumber": "002", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "ARK123214214213" + } + ], + "trackingNumber": "TRACK001", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "tier": 2, + "block": 2, + "innerContainersDetails": { + "containerCount": 10, + "containerSequenceNumbers": [ + { + "containerSequenceNumber": "002" + }, + { + "containerSequenceNumber": "003" + } + ] + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "123142341", + "lotNumber": "A12312412", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + } + ] + } + ], + "transportationDetails": { + "shipMode": "LessThanTruckLoad", + "transportationMode": "Road", + "shippedDate": "2019-08-07T19:56:45.632", + "estimatedDeliveryDate": "2019-08-07T19:56:45.632", + "shipmentDeliveryDate": "2019-08-07T19:56:45.632", + "carrierDetails": { + "name": "UPS", + "phone": "1234567890", + "email": "abc@xyz.com", + "code": "1-1231", + "shipmentReferenceNumber": "TRACK001" + }, + "billOfLadingNumber": "12534233421" + } + } + ] + } + } + } + ] + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "vendorShipmentIdentifier": { + "value": "null" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "vendor Shipment Identifier cannot be null" + } + ] + } + } + ] + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentDetailsResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "ShipmentsV1" + ], + "description": "Submits one or more shipment request for vendor Orders.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "SubmitShipments", + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipments" + } + } + }, + "required": true + }, + "responses": { + "202": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipments": [ + { + "vendorShipmentIdentifier": "00050003", + "buyerReferenceNumber": "1234567", + "transactionType": "New", + "transactionDate": "2019-08-07T19:56:45.632", + "shipmentFreightTerm": "Collect", + "sellingParty": { + "partyId": "PQRSS" + }, + "shipFromParty": { + "address": { + "name": "ABC electronics warehouse", + "addressLine1": "DEF 1st street", + "city": "Lisses", + "stateOrRegion": "abcland", + "postalCode": "91090", + "countryCode": "DE" + }, + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCDF" + }, + "shipmentMeasurements": { + "totalCartonCount": 30, + "totalPalletStackable": 30, + "totalPalletNonStackable": 30, + "shipmentWeight": { + "unitOfMeasure": "Kg", + "value": "120.45" + }, + "shipmentVolume": { + "unitOfMeasure": "CuFt", + "value": "2.4" + } + }, + "collectFreightPickupDetails": { + "requestedPickUp": "2019-08-07T19:56:45.632" + }, + "purchaseOrders": [ + { + "purchaseOrderNumber": "1BBBAAAA", + "items": [ + { + "itemSequenceNumber": "001", + "vendorProductIdentifier": "9782700001659", + "buyerProductIdentifier": "9782700001610", + "shippedQuantity": { + "amount": 100, + "unitOfMeasure": "Eaches", + "unitSize": 1 + }, + "maximumRetailPrice": { + "currencyCode": "USD", + "amount": "90.80" + } + } + ] + } + ], + "importDetails": { + "methodOfPayment": "PaidByBuyer", + "sealNumber": "0010101", + "route": { + "stops": [ + { + "functionCode": "PortOfDischarge", + "locationIdentification": { + "type": "string", + "locationCode": "string", + "countryCode": "US" + }, + "arrivalTime": "2021-07-12T22:22:25.038Z", + "departureTime": "2021-07-12T22:22:25.038Z" + } + ] + }, + "importContainers": "string", + "billableWeight": { + "unitOfMeasure": "G", + "value": "string" + }, + "estimatedShipByDate": "2021-07-12T22:22:25.038Z" + }, + "containers": [ + { + "containerType": "carton", + "containerSequenceNumber": "001", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "4251245123534" + } + ], + "trackingNumber": "1Z69663R0347795889", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "MBvnLr0fw", + "lotNumber": "10101010", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + } + ] + }, + { + "containerType": "pallet", + "containerSequenceNumber": "002", + "containerIdentifiers": [ + { + "containerIdentificationType": "SSCC", + "containerIdentificationNumber": "ATR123213216" + } + ], + "trackingNumber": "TRACK12345", + "dimensions": { + "length": "12", + "width": "12", + "height": "12", + "unitOfMeasure": "IN" + }, + "weight": { + "unitOfMeasure": "KG", + "value": "10" + }, + "tier": 2, + "block": 2, + "innerContainersDetails": { + "containerCount": 10, + "containerSequenceNumbers": [ + { + "containerSequenceNumber": "002" + }, + { + "containerSequenceNumber": "003" + } + ] + }, + "packedItems": [ + { + "itemSequenceNumber": "001", + "buyerProductIdentifier": "B07DFVDRAA", + "vendorProductIdentifier": "12312412421", + "packedQuantity": { + "amount": 1, + "unitOfMeasure": "Each" + }, + "itemDetails": { + "purchaseOrderNumber": "MBvnLr0fw", + "lotNumber": "101001", + "expiry": { + "manufacturerDate": "2021-07-12T22:22:25.038Z", + "expiryDate": "2021-07-12T22:22:25.038Z", + "expiryAfterDuration": { + "durationUnit": "Days", + "durationValue": 0 + } + } + } + } + ] + } + ], + "transportationDetails": { + "shipMode": "LessThanTruckLoad", + "transportationMode": "Road", + "shippedDate": "2019-08-07T19:56:45.632", + "estimatedDeliveryDate": "2019-08-07T19:56:45.632", + "shipmentDeliveryDate": "2019-08-07T19:56:45.632", + "carrierDetails": { + "name": "UPS", + "phone": "1234567890", + "email": "abc@xyz.com", + "code": "string", + "shipmentReferenceNumber": "TRACK123123" + }, + "billOfLadingNumber": "1234567890" + } + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-5a3066ab-e904-42bd-b6ae-bc70ca1c37e6-20210728234390" + } + } + }, + { + "request": { + "parameters": { + "body": { + "value": { + "shipments": [ + { + "vendorShipmentIdentifier": "00050003", + "buyerReferenceNumber": "1234567", + "transactionType": "Cancel", + "transactionDate": "2019-08-07T19:56:45.632", + "shipmentFreightTerm": "Collect", + "sellingParty": { + "partyId": "PQRSS" + }, + "shipFromParty": { + "address": { + "name": "ABC electronics warehouse", + "addressLine1": "DEF 1st street", + "city": "Lisses", + "stateOrRegion": "abcland", + "postalCode": "91090", + "countryCode": "DE" + }, + "partyId": "999US" + }, + "shipToParty": { + "partyId": "ABCDF" + } + } + ] + } + } + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-5a3066ab-e904-42bd-b6ae-bc70ca1c37e6-20210728234390" + } + } + }, + { + "request": { + "parameters": { + "body": {} + } + }, + "response": { + "payload": { + "transactionId": "mock-TransactionId-a3066ab-e904-42bd-b6ae-bc70ca1c37e6-20210728234395" + } + } + } + ] + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "body": { + "value": { + "shipments": [ + { + "vendorShipmentIdentifier": "MOCKSHIPID" + } + ] + } + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid Vendor Shipment ID" + } + ] + } + } + ] + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "413": { + "description": "The request size exceeded the maximum accepted size.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/SubmitShipmentConfirmationsResponse" + } + } + } + } + }, + "x-codegen-request-body-name": "body" + } + }, + "\/vendor\/shipping\/v1\/transportLabels": { + "get": { + "tags": [ + "ShipmentsV1" + ], + "description": "Returns transport Labels based on the filters that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "GetShipmentLabels", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The limit to the number of records returned. Default value is 50 records.", + "schema": { + "maximum": 50, + "minimum": 1, + "type": "integer", + "format": "int64" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Sort in ascending or descending order by transport label creation date.", + "schema": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ], + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by transport label creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by transport label creation date." + } + ] + }, + "x-docgen-enum-table-extension": [ + { + "value": "ASC", + "description": "Sort in ascending order by transport label creation date." + }, + { + "value": "DESC", + "description": "Sort in descending order by transport label creation date." + } + ] + }, + { + "name": "nextToken", + "in": "query", + "description": "Used for pagination when there are more transport label than the specified result size limit.", + "schema": { + "type": "string" + } + }, + { + "name": "labelCreatedAfter", + "in": "query", + "description": "transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "labelcreatedBefore", + "in": "query", + "description": "transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date\/time format.", + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "name": "buyerReferenceNumber", + "in": "query", + "description": "Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label.", + "schema": { + "type": "string" + } + }, + { + "name": "vendorShipmentIdentifier", + "in": "query", + "description": "Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label.", + "schema": { + "type": "string" + } + }, + { + "name": "sellerWarehouseCode", + "in": "query", + "description": "Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + }, + "example": { + "payload": { + "pagination": { + "nextToken": "MDAwMDAwMDAwMQ==" + }, + "transportLabels": [ + { + "labelCreateDateTime": "1628505423212", + "shipmentInformation": { + "vendorDetails": { + "sellingParty": { + "partyId": "WHF47" + }, + "vendorShipmentId": "7822" + }, + "buyerReferenceNumber": "14511336331", + "shipToParty": { + "partyId": "LAX9" + }, + "shipFromParty": { + "partyId": "0-55767831", + "address": { + "name": "Wheeler Bros., Inc. HQ", + "addressLine1": "384 Drum Ave", + "addressLine2": "", + "addressLine3": "", + "city": "Somerset", + "stateOrRegion": "PA", + "postalCode": "15501", + "countryCode": "US" + } + }, + "masterTrackingId": "1ZR873R70319165935", + "totalLabelCount": 1, + "shipMode": "SmallParcel" + }, + "labelData": [ + { + "labelSequenceNumber": 1, + "labelFormat": "PDF", + "carrierCode": "UPSN", + "trackingId": "1ZR873R70319165935", + "label": "JVBERi0xLjQKJfbk\/N8KMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovVmVyc2lvbiAvMS40Ci9QYWdlcyAyIDAgUgo+PgplbmRvYmoKMyAwIG9iago8PAovTW9kRGF0ZSAoRDoyMDIxMDgwNjE0MzU1MFopCi9DcmVhdGlvbkRhdGUgKEQ6MjAyMTA4MDYxNDM1NTBaKQovUHJvZHVjZXIgKGlUZXh0IDIuMS43IGJ5IDFUM1hUKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZ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OEpPmcJfJnDq6DSiyLUV0KIF6PfTuJAzvypWcoJEb0yseIjHPtPVPEC1DmiCPWVEOLF6KeXOJAP\/nvhhIhemVjxEfTfGUQd6hxRhPpKCPFi9NNLHMgH\/71wQkSvTKz4CPrvDKIOdY4oQn0lhHgx+uklDkT\/XtiCEiuei\/47g6hDnSOKUF8JIV6MfnqJA9G\/F7agxIrnov\/OIOpQ54gi1FdCiBejn17iQPTvhS0oseK56L8ziDrUOaII9ZUQ4sXop5c4EP17YQtKrHgu+u8Mog51jihCfSWEeDH66SUORP9e2IISK56L\/juDqEOdI4pQXwkhXox+eokD0b8XtqDEiuei\/84g6lDniCLUV0KIF6OfXuJA9O+FLSix4rnovzOIOtQ5ogjX4hJCCCGEEEII8TJ2\/6tUvI3dHS2EEEIIIYQQYie7\/1Uq3sb\/AB78i4gNCmVuZHN0cmVhbQplbmRvYmoKeHJlZgowIDcKMDAwMDAwMDAwMCA2NTUzNSBmDQowMDAwMDAwMDE1IDAwMDAwIG4NCjAwMDAwMDAxOTUgMDAwMDAgbg0KMDAwMDAwMDA3OCAwMDAwMCBuDQowMDAwMDAwMjUyIDAwMDAwIG4NCjAwMDAwMDA0NzkgMDAwMDAgbg0KMDAwMDAwMDYyMSAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9Sb290IDEgMCBSCi9JbmZvIDMgMCBSCi9JRCBbPDZENEMxOEUzNENDNDYzQ0FEQTU1NUNFMTIxOTg0QUIzPiA8NkQ0QzE4RTM0Q0M0NjNDQURBNTU1Q0UxMjE5ODRBQjM+XQovU2l6ZSA3Cj4+CnN0YXJ0eHJlZgo0MDQ4NQolJUVPRgo=" + } + ] + } + ] + } + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "vendorShipmentIdentifier": { + "value": "12345678" + } + } + }, + "response": { + "payload": { + "labelCreateDateTime": "1628505423212", + "shipmentInformation": { + "vendorDetails": { + "sellingParty": { + "partyId": "WHF47" + }, + "vendorShipmentId": "7822" + }, + "buyerReferenceNumber": "14511336331", + "shipToParty": { + "partyId": "LAX9" + }, + "shipFromParty": { + "partyId": "0-55767831", + "address": { + "name": "Wheeler Bros., Inc. HQ", + "addressLine1": "384 Drum Ave", + "addressLine2": "Suite 123", + "addressLine3": "DOOR 1", + "city": "Somerset", + "stateOrRegion": "PA", + "postalCode": "15501", + "countryCode": "US" + } + }, + "masterTrackingId": "1ZR873R70319165935", + "totalLabelCount": 1, + "shipMode": "SmallParcel" + }, + "labelData": [ + { + "labelSequenceNumber": 1, + "labelFormat": "PDF", + "carrierCode": "UPSN", + "trackingId": "1ZR873R70319165935", + "label": "JVBERi0xLjQKJfbk\/N8KMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovVmVyc2lvbiAvMS40Ci9QYWdlcyAyIDAgUgo+PgplbmRvYmoKMyAwIG9iago8PAovTW9kRGF0ZSAoRDoyMDIxMDgwNjE0MzU1MFopCi9DcmVhdGlvbkRhdGUgKEQ6MjAyMTA4MDYxNDM1NTBaKQovUHJvZHVjZXIgKGlUZXh0IDIuMS43IGJ5IDFUM1hUKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0tpZHMgWzQgMCBSXQovQ291bnQgMQo+PgplbmRvYmoKNCAwIG9iago8PAovQ29udGVudHMgNSAwIFIKL1R5cGUgL1BhZ2UKL1Jlc291cmNlcyA8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL1hPYmplY3QgPDwKL2ltZzAgNiAwIFIKPj4KPj4KL1BhcmVudCAyIDAgUgovUm90YXRlIDkwCi9NZWRpYUJveCBbMC4wIDAuMCA1OTUuMCA4NDIuMF0KL0Nyb3BCb3ggWzAuMCAwLjAgNTk1LjAgODQyLjBdCj4+CmVuZG9iago1IDAgb2JqCjw8Ci9MZW5ndGggNjkKL0ZpbHRlciAvRmxhdGVEZWNvZGUKPj4Kc3RyZWFtDQp4nDNQMFTQNVQwUDC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CmVuZHN0cmVhbQplbmRvYmoKeHJlZgowIDcKMDAwMDAwMDAwMCA2NTUzNSBmDQowMDAwMDAwMDE1IDAwMDAwIG4NCjAwMDAwMDAxOTUgMDAwMDAgbg0KMDAwMDAwMDA3OCAwMDAwMCBuDQowMDAwMDAwMjUyIDAwMDAwIG4NCjAwMDAwMDA0NzkgMDAwMDAgbg0KMDAwMDAwMDYyMSAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9Sb290IDEgMCBSCi9JbmZvIDMgMCBSCi9JRCBbPDZENEMxOEUzNENDNDYzQ0FEQTU1NUNFMTIxOTg0QUIzPiA8NkQ0QzE4RTM0Q0M0NjNDQURBNTU1Q0UxMjE5ODRBQjM+XQovU2l6ZSA3Cj4+CnN0YXJ0eHJlZgo0MDQ4NQolJUVPRgo=" + } + ] + } + } + } + ] + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + }, + "example": { + "errors": [ + { + "code": "InvalidRequest", + "message": "The request is invalid." + } + ] + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "vendorShipmentIdentifier": { + "value": "null" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidRequest", + "message": "Request is missing or has invalid parameters", + "details": "vendor Shipment Identifier cannot be null" + } + ] + } + } + ] + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetShipmentLabels" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "SubmitShipmentConfirmationsRequest": { + "type": "object", + "properties": { + "shipmentConfirmations": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/ShipmentConfirmation" + } + } + }, + "description": "The request schema for the SubmitShipmentConfirmations operation." + }, + "SubmitShipments": { + "type": "object", + "properties": { + "shipments": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Shipment" + } + } + }, + "description": "The request schema for the SubmitTransportRequestConfirmations operation." + }, + "GetShipmentDetailsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/ShipmentDetails" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the GetShipmentDetails operation." + }, + "GetShipmentLabels": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/transportationLabels" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the GetShipmentLabels operation." + }, + "ShipmentDetails": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "shipments": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Shipment" + } + } + } + }, + "transportationLabels": { + "type": "object", + "properties": { + "pagination": { + "$ref": "#\/components\/schemas\/Pagination" + }, + "transportLabels": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/transportLabel" + } + } + } + }, + "Pagination": { + "type": "object", + "properties": { + "nextToken": { + "type": "string", + "description": "A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return." + } + } + }, + "ShipmentConfirmation": { + "required": [ + "sellingParty", + "shipFromParty", + "shipToParty", + "shipmentConfirmationDate", + "shipmentConfirmationType", + "shipmentIdentifier", + "shippedItems" + ], + "type": "object", + "properties": { + "shipmentIdentifier": { + "type": "string", + "description": "Unique shipment ID (not used over the last 365 days)." + }, + "shipmentConfirmationType": { + "type": "string", + "description": "Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation. If replacing an existing shipment confirmation, be sure to provide the identical shipmentIdentifier and sellingParty information as in the previous confirmation.", + "enum": [ + "Original", + "Replace" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Original", + "description": "Initial shipment confirmation message." + }, + { + "value": "Replace", + "description": "Replace the original shipment confirmation message." + } + ] + }, + "shipmentType": { + "type": "string", + "description": "The type of shipment.", + "enum": [ + "TruckLoad", + "LessThanTruckLoad", + "SmallParcel" + ], + "x-docgen-enum-table-extension": [ + { + "value": "TruckLoad", + "description": "Truckload shipping is the movement of large amounts of homogeneous cargo, generally the amount necessary to fill an entire semi-trailer or intermodal container." + }, + { + "value": "LessThanTruckLoad", + "description": "Shipping does not fill the entire truck." + }, + { + "value": "SmallParcel", + "description": "Small parcel shipments are under 70 pounds per and shipped in your own packaging or carrier supplied boxes." + } + ] + }, + "shipmentStructure": { + "type": "string", + "description": "Shipment hierarchical structure.", + "enum": [ + "PalletizedAssortmentCase", + "LooseAssortmentCase", + "PalletOfItems", + "PalletizedStandardCase", + "LooseStandardCase", + "MasterPallet", + "MasterCase" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PalletizedAssortmentCase", + "description": "Shipment -> Order -> Pallet\/Tare -> Carton\/Package -> Item" + }, + { + "value": "LooseAssortmentCase", + "description": "Shipment -> Order -> Carton\/Package -> Item" + }, + { + "value": "PalletOfItems", + "description": "Shipment -> Order -> Pallet\/Tare -> Item" + }, + { + "value": "PalletizedStandardCase", + "description": "Shipment -> Order -> Pallet\/Tare -> Item -> Carton\/Package" + }, + { + "value": "LooseStandardCase", + "description": "Shipment -> Order -> Item -> Carton\/Package" + }, + { + "value": "MasterPallet", + "description": "Shipment -> Pallet\/Tare -> Order -> Item" + }, + { + "value": "MasterCase", + "description": "Shipment -> Carton\/Package -> Order -> Item" + } + ] + }, + "transportationDetails": { + "$ref": "#\/components\/schemas\/TransportationDetails" + }, + "amazonReferenceNumber": { + "type": "string", + "description": "The Amazon Reference Number is a unique identifier generated by Amazon for all Collect\/WePay shipments when you submit a routing request. This field is mandatory for Collect\/WePay shipments." + }, + "shipmentConfirmationDate": { + "type": "string", + "description": "Date on which the shipment confirmation was submitted.", + "format": "date-time" + }, + "shippedDate": { + "type": "string", + "description": "The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse\/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future.", + "format": "date-time" + }, + "estimatedDeliveryDate": { + "type": "string", + "description": "The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation.", + "format": "date-time" + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipmentMeasurements": { + "$ref": "#\/components\/schemas\/ShipmentMeasurements" + }, + "importDetails": { + "$ref": "#\/components\/schemas\/ImportDetails" + }, + "shippedItems": { + "type": "array", + "description": "A list of the items in this shipment and their associated details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level.", + "items": { + "$ref": "#\/components\/schemas\/Item" + } + }, + "cartons": { + "type": "array", + "description": "A list of the cartons in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/Carton" + } + }, + "pallets": { + "type": "array", + "description": "A list of the pallets in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/Pallet" + } + } + } + }, + "Shipment": { + "required": [ + "sellingParty", + "shipFromParty", + "shipToParty", + "transactionDate", + "transactionType", + "vendorShipmentIdentifier" + ], + "type": "object", + "properties": { + "vendorShipmentIdentifier": { + "type": "string", + "description": "Unique Transportation ID created by Vendor (Should not be used over the last 365 days)." + }, + "transactionType": { + "type": "string", + "description": "Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation.", + "enum": [ + "New", + "Cancel" + ], + "x-docgen-enum-table-extension": [ + { + "value": "New", + "description": "Initial shipment Request." + }, + { + "value": "Cancel", + "description": "Cancel existing shipment Request message. should be used only to cancel Shipment request" + }, + { + "value": "Confirm", + "description": "Confirm the original Transport Request confirmation message." + }, + { + "value": "PackageLabelRequest", + "description": "Label request the original Transport Request confirmation message." + } + ] + }, + "buyerReferenceNumber": { + "type": "string", + "description": "The buyer Reference Number is a unique identifier generated by buyer for all Collect\/WePay shipments when you submit a transportation request. This field is mandatory for Collect\/WePay shipments." + }, + "transactionDate": { + "type": "string", + "description": "Date on which the transportation request was submitted.", + "format": "date-time" + }, + "currentShipmentStatus": { + "type": "string", + "description": "Indicates the current shipment status.", + "enum": [ + "Created", + "TransportationRequested", + "CarrierAssigned", + "Shipped" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Created", + "description": "Shipment request was received by buyer." + }, + { + "value": "Transportation requested", + "description": "Buyer to confirm with the carrier for pickup" + }, + { + "value": "Carrier assigned", + "description": "Shipment is assigned to a carrier for pickup from vendor warehouse to Buyer FC \/ Warehouse." + }, + { + "value": "Shipped", + "description": "Shipment sent to buyer warehouse." + } + ] + }, + "currentshipmentStatusDate": { + "type": "string", + "description": "Date and time when the last status was updated.", + "format": "date-time" + }, + "shipmentStatusDetails": { + "type": "array", + "description": "Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response.", + "items": { + "$ref": "#\/components\/schemas\/ShipmentStatusDetails" + } + }, + "shipmentCreateDate": { + "type": "string", + "description": "The date and time of the shipment request created by vendor.", + "format": "date-time" + }, + "shipmentConfirmDate": { + "type": "string", + "description": "The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse\/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future.", + "format": "date-time" + }, + "packageLabelCreateDate": { + "type": "string", + "description": "The date and time of the package label created for the shipment by buyer.", + "format": "date-time" + }, + "shipmentFreightTerm": { + "type": "string", + "description": "Indicates if this transportation request is WePay\/Collect or TheyPay\/Prepaid. This is a mandatory information.", + "enum": [ + "Collect", + "Prepaid" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Collect", + "description": "Buyer Pays \/ We Pay for the the transportation. Buyer pays for the shipment and provides Vendor and picks up shipment from vendor warehouse \/ location" + }, + { + "value": "Prepaid", + "description": "Vendor pays \/ They Pay for the transportation. Vendor pays for the shipment and ships the goods to buyer warehouse \/ location" + } + ] + }, + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipmentMeasurements": { + "$ref": "#\/components\/schemas\/TransportShipmentMeasurements" + }, + "collectFreightPickupDetails": { + "$ref": "#\/components\/schemas\/collectFreightPickupDetails" + }, + "purchaseOrders": { + "type": "array", + "description": "Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay\/Collect)", + "items": { + "$ref": "#\/components\/schemas\/purchaseOrders" + } + }, + "importDetails": { + "$ref": "#\/components\/schemas\/ImportDetails" + }, + "containers": { + "type": "array", + "description": "A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level.", + "items": { + "$ref": "#\/components\/schemas\/containers" + } + }, + "transportationDetails": { + "$ref": "#\/components\/schemas\/TransportationDetails" + } + } + }, + "transportLabel": { + "type": "object", + "properties": { + "labelCreateDateTime": { + "type": "string", + "description": "Date on which label is created." + }, + "shipmentInformation": { + "$ref": "#\/components\/schemas\/ShipmentInformation" + }, + "labelData": { + "type": "array", + "description": "Indicates the label data,format and type associated .", + "items": { + "$ref": "#\/components\/schemas\/LabelData" + } + } + } + }, + "ShipmentMeasurements": { + "type": "object", + "properties": { + "grossShipmentWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "shipmentVolume": { + "$ref": "#\/components\/schemas\/Volume" + }, + "cartonCount": { + "type": "integer", + "description": "Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments." + }, + "palletCount": { + "type": "integer", + "description": "Number of pallets present in the shipment. Provide the palletCount only for palletized shipments." + } + }, + "description": "Shipment measurement details." + }, + "ShipmentInformation": { + "type": "object", + "properties": { + "vendorDetails": { + "$ref": "#\/components\/schemas\/VendorDetails" + }, + "buyerReferenceNumber": { + "type": "string", + "description": "Buyer Reference number which is a unique number." + }, + "shipToParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "shipFromParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "warehouseId": { + "type": "string", + "description": "Vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer \/ Carrier." + }, + "masterTrackingId": { + "type": "string", + "description": "Unique Id with which the shipment can be tracked for Small Parcels." + }, + "totalLabelCount": { + "type": "integer", + "description": "Number of Labels that are created as part of this shipment." + }, + "shipMode": { + "type": "string", + "description": "Type of shipment whether it is Small Parcel", + "enum": [ + "SmallParcel", + "LTL" + ] + } + }, + "description": "Shipment Information details for Label request." + }, + "LabelData": { + "type": "object", + "properties": { + "labelSequenceNumber": { + "type": "integer", + "description": "Label list sequence number" + }, + "labelFormat": { + "type": "string", + "description": "Type of the label format like PDF", + "enum": [ + "PDF" + ] + }, + "carrierCode": { + "type": "string", + "description": "Unique identification for the carrier like UPS,DHL,USPS..etc" + }, + "trackingId": { + "type": "string", + "description": "Tracking Id for the transportation." + }, + "label": { + "type": "string", + "description": "Label created as part of the transportation and it is base64 encoded" + } + }, + "description": "Label details as part of the transport label response" + }, + "VendorDetails": { + "type": "object", + "properties": { + "sellingParty": { + "$ref": "#\/components\/schemas\/PartyIdentification" + }, + "vendorShipmentId": { + "type": "string", + "description": "Unique vendor shipment id which is not used in last 365 days", + "format": "date-time" + } + }, + "description": "Vendor Details as part of Label response." + }, + "ShipmentStatusDetails": { + "type": "object", + "properties": { + "shipmentStatus": { + "type": "string", + "description": "Current status of the shipment on whether it is picked up or scheduled.", + "enum": [ + "Created", + "TransportationRequested", + "CarrierAssigned", + "Shipped" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Created", + "description": "Shipment request was received by buyer." + }, + { + "value": "Transportation requested", + "description": "Buyer to confirm with the carrier for pickup" + }, + { + "value": "Carrier assigned", + "description": "Shipment is assigned to a carrier for pickup from vendor warehouse to Buyer FC \/ Warehouse." + }, + { + "value": "Shipped", + "description": "Shipment done to buyer warehouse." + } + ] + }, + "shipmentStatusDate": { + "type": "string", + "description": "Date and time on last status update received for the shipment", + "format": "date-time" + } + }, + "description": "Shipment Status details." + }, + "TransportShipmentMeasurements": { + "type": "object", + "properties": { + "totalCartonCount": { + "type": "integer", + "description": "Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments." + }, + "totalPalletStackable": { + "type": "integer", + "description": "Total number of Stackable Pallets present in the shipment." + }, + "totalPalletNonStackable": { + "type": "integer", + "description": "Total number of Non Stackable Pallets present in the shipment." + }, + "shipmentWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "shipmentVolume": { + "$ref": "#\/components\/schemas\/Volume" + } + }, + "description": "Shipment measurement details." + }, + "collectFreightPickupDetails": { + "type": "object", + "properties": { + "requestedPickUp": { + "type": "string", + "description": "Date on which the items can be picked up from vendor warehouse by Buyer used for WePay\/Collect vendors.", + "format": "date-time" + }, + "scheduledPickUp": { + "type": "string", + "description": "Date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay\/Collect vendors.", + "format": "date-time" + }, + "carrierAssignmentDate": { + "type": "string", + "description": "Date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay\/Collect vendors.", + "format": "date-time" + } + }, + "description": "Transport Request pickup date from Vendor Warehouse by Buyer" + }, + "purchaseOrders": { + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment." + }, + "purchaseOrderDate": { + "type": "string", + "description": "Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment.", + "format": "date-time" + }, + "shipWindow": { + "type": "string", + "description": "Date range in which shipment is expected for these purchase orders." + }, + "items": { + "type": "array", + "description": "A list of the items that are associated to the PO in this transport and their associated details.", + "items": { + "$ref": "#\/components\/schemas\/PurchaseOrderItems" + } + } + }, + "description": "Transport Request pickup date" + }, + "TransportationDetails": { + "type": "object", + "properties": { + "shipMode": { + "type": "string", + "description": "The type of shipment.", + "enum": [ + "TruckLoad", + "LessThanTruckLoad", + "SmallParcel" + ], + "x-docgen-enum-table-extension": [ + { + "value": "TruckLoad", + "description": "Truckload shipping is the movement of large amounts of homogeneous cargo, generally the amount necessary to fill an entire semi-trailer or intermodal container." + }, + { + "value": "LessThanTruckLoad", + "description": "Shipping does not fill the entire truck." + }, + { + "value": "SmallParcel", + "description": "Small parcel shipments are under 70 pounds per parcel and shipped with your own packaging or carrier supplied boxes." + } + ] + }, + "transportationMode": { + "type": "string", + "description": "The mode of transportation for this shipment.", + "enum": [ + "Road", + "Air", + "Ocean" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Road", + "description": "The mode of transportation is by Road (on a truck)." + }, + { + "value": "Air", + "description": "The mode of transportation is by Air (on a plane)." + }, + { + "value": "Ocean", + "description": "The mode of transportation is by Ocean (on a ship)." + } + ] + }, + "shippedDate": { + "type": "string", + "description": "Date when shipment is performed by the Vendor to Buyer", + "format": "date-time" + }, + "estimatedDeliveryDate": { + "type": "string", + "description": "Estimated Date on which shipment will be delivered from Vendor to Buyer", + "format": "date-time" + }, + "shipmentDeliveryDate": { + "type": "string", + "description": "Date on which shipment will be delivered from Vendor to Buyer", + "format": "date-time" + }, + "carrierDetails": { + "$ref": "#\/components\/schemas\/CarrierDetails" + }, + "billOfLadingNumber": { + "type": "string", + "description": "Bill Of Lading (BOL) number is the unique number assigned by the vendor. The BOL present in the Shipment Confirmation message ideally matches the paper BOL provided with the shipment, but that is no must. Instead of BOL, an alternative reference number (like Delivery Note Number) for the shipment can also be sent in this field." + } + } + }, + "CarrierDetails": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The field is used to represent the carrier used for performing the shipment." + }, + "code": { + "type": "string", + "description": "Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association)." + }, + "phone": { + "type": "string", + "description": "The field is used to represent the Carrier contact number." + }, + "email": { + "type": "string", + "description": "The field is used to represent the carrier Email id." + }, + "shipmentReferenceNumber": { + "type": "string", + "description": "The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations." + } + } + }, + "ImportDetails": { + "type": "object", + "properties": { + "methodOfPayment": { + "type": "string", + "description": "This is used for import purchase orders only. If the recipient requests, this field will contain the shipment method of payment.", + "enum": [ + "PaidByBuyer", + "CollectOnDelivery", + "DefinedByBuyerAndSeller", + "FOBPortOfCall", + "PrepaidBySeller", + "PaidBySeller" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PaidByBuyer", + "description": "Buyer pays for shipping." + }, + { + "value": "CollectOnDelivery", + "description": "Buyer pays for shipping on delivery." + }, + { + "value": "DefinedByBuyerAndSeller", + "description": "Shipping costs paid as agreed upon between buyer and seller." + }, + { + "value": "FOBPortOfCall", + "description": "Seller pays for transportation incl. loading, shipping." + }, + { + "value": "PrepaidBySeller", + "description": "Seller prepays for shipping." + }, + { + "value": "PaidBySeller", + "description": "Seller pays for shipping." + } + ] + }, + "sealNumber": { + "type": "string", + "description": "The container's seal number." + }, + "route": { + "$ref": "#\/components\/schemas\/Route" + }, + "importContainers": { + "maxLength": 64, + "type": "string", + "description": "Types and numbers of container(s) for import purchase orders. Can be a comma-separated list if shipment has multiple containers." + }, + "billableWeight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "estimatedShipByDate": { + "type": "string", + "description": "Date on which the shipment is expected to be shipped. This value should not be in the past and not more than 60 days out in the future.", + "format": "date-time" + }, + "handlingInstructions": { + "type": "string", + "description": "Identification of the instructions on how specified item\/carton\/pallet should be handled.", + "enum": [ + "Oversized", + "Fragile", + "Food", + "HandleWithCare" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Oversized", + "description": "A package weighing 150 pounds or less and measuring greater than 130 inches in length and girth is classified as an oversized package." + }, + { + "value": "Fragile", + "description": "A package containing easily breakable items." + }, + { + "value": "Food", + "description": "A package containing edible items." + }, + { + "value": "HandleWithCare", + "description": "A package containing fragile or dangerous items." + } + ] + } + } + }, + "containers": { + "required": [ + "containerIdentifiers", + "containerType" + ], + "type": "object", + "properties": { + "containerType": { + "type": "string", + "description": "The type of container.", + "enum": [ + "carton", + "pallet" + ], + "x-docgen-enum-table-extension": [ + { + "value": "carton", + "description": "A carton is a box or container usually made of liquid packaging board, paperboard and sometimes of corrugated fiberboard" + }, + { + "value": "pallet", + "description": "A flat transport structure which supports goods in a stable fashion while being lifted by a forklift." + } + ] + }, + "containerSequenceNumber": { + "type": "string", + "description": "An integer that must be submitted for multi-box shipments only, where one item may come in separate packages." + }, + "containerIdentifiers": { + "type": "array", + "description": "A list of carton identifiers.", + "items": { + "$ref": "#\/components\/schemas\/ContainerIdentification" + } + }, + "trackingNumber": { + "type": "string", + "description": "The tracking number used for identifying the shipment." + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "tier": { + "type": "integer", + "description": "Number of layers per pallet." + }, + "block": { + "type": "integer", + "description": "Number of cartons per layer on the pallet." + }, + "innerContainersDetails": { + "$ref": "#\/components\/schemas\/InnerContainersDetails" + }, + "packedItems": { + "type": "array", + "description": "A list of packed items.", + "items": { + "$ref": "#\/components\/schemas\/PackedItems" + } + } + } + }, + "PackedItems": { + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Buyer Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order." + }, + "packedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "itemDetails": { + "$ref": "#\/components\/schemas\/PackageItemDetails" + } + }, + "description": "Details of the item being shipped." + }, + "Item": { + "required": [ + "itemSequenceNumber", + "shippedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level." + }, + "amazonProductIdentifier": { + "type": "string", + "description": "Buyer Standard Identification Number (ASIN) of an item." + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order." + }, + "shippedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "itemDetails": { + "$ref": "#\/components\/schemas\/ItemDetails" + } + }, + "description": "Details of the item being shipped." + }, + "PurchaseOrderItems": { + "required": [ + "itemSequenceNumber", + "shippedQuantity" + ], + "type": "object", + "properties": { + "itemSequenceNumber": { + "type": "string", + "description": "Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level." + }, + "buyerProductIdentifier": { + "type": "string", + "description": "Amazon Standard Identification Number (ASIN) for a SKU" + }, + "vendorProductIdentifier": { + "type": "string", + "description": "The vendor selected product identification of the item. Should be the same as was sent in the purchase order." + }, + "shippedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "maximumRetailPrice": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Details of the item being shipped." + }, + "Carton": { + "required": [ + "cartonSequenceNumber", + "items" + ], + "type": "object", + "properties": { + "cartonIdentifiers": { + "type": "array", + "description": "A list of carton identifiers.", + "items": { + "$ref": "#\/components\/schemas\/ContainerIdentification" + } + }, + "cartonSequenceNumber": { + "type": "string", + "description": "Carton sequence number for the carton. The first carton will be 001, the second 002, and so on. This number is used as a reference to refer to this carton from the pallet level." + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "trackingNumber": { + "type": "string", + "description": "This is required to be provided for every carton in the small parcel shipments." + }, + "items": { + "type": "array", + "description": "A list of container item details.", + "items": { + "$ref": "#\/components\/schemas\/ContainerItem" + } + } + }, + "description": "Details of the carton\/package being shipped." + }, + "InnerContainersDetails": { + "type": "object", + "properties": { + "containerCount": { + "type": "integer", + "description": "Total containers as part of the shipment" + }, + "containerSequenceNumbers": { + "type": "array", + "description": "Container sequence numbers that are involved in this shipment.", + "items": { + "$ref": "#\/components\/schemas\/ContainerSequenceNumbers" + } + } + }, + "description": "Details of the innerContainersDetails." + }, + "ContainerSequenceNumbers": { + "type": "object", + "properties": { + "containerSequenceNumber": { + "type": "string", + "description": "A list of containers shipped" + } + } + }, + "Pallet": { + "required": [ + "palletIdentifiers" + ], + "type": "object", + "properties": { + "palletIdentifiers": { + "type": "array", + "description": "A list of pallet identifiers.", + "items": { + "$ref": "#\/components\/schemas\/ContainerIdentification" + } + }, + "tier": { + "type": "integer", + "description": "Number of layers per pallet. Only applicable to container type Pallet." + }, + "block": { + "type": "integer", + "description": "Number of cartons per layer on the pallet. Only applicable to container type Pallet." + }, + "dimensions": { + "$ref": "#\/components\/schemas\/Dimensions" + }, + "weight": { + "$ref": "#\/components\/schemas\/Weight" + }, + "cartonReferenceDetails": { + "$ref": "#\/components\/schemas\/CartonReferenceDetails" + }, + "items": { + "type": "array", + "description": "A list of container item details.", + "items": { + "$ref": "#\/components\/schemas\/ContainerItem" + } + } + }, + "description": "Details of the Pallet\/Tare being shipped." + }, + "ItemDetails": { + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code." + }, + "lotNumber": { + "type": "string", + "description": "The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items." + }, + "expiry": { + "$ref": "#\/components\/schemas\/Expiry" + }, + "maximumRetailPrice": { + "$ref": "#\/components\/schemas\/Money" + }, + "handlingCode": { + "type": "string", + "description": "Identification of the instructions on how specified item\/carton\/pallet should be handled.", + "enum": [ + "Oversized", + "Fragile", + "Food", + "HandleWithCare" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Oversized", + "description": "A package weighing 150 pounds or less and measuring greater than 130 inches in length and girth is classified as an oversized package." + }, + { + "value": "Fragile", + "description": "A package containing easily breakable items." + }, + { + "value": "Food", + "description": "A package containing edible items." + }, + { + "value": "HandleWithCare", + "description": "A package containing fragile or dangerous items." + } + ] + } + }, + "description": "Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate." + }, + "PackageItemDetails": { + "type": "object", + "properties": { + "purchaseOrderNumber": { + "type": "string", + "description": "The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code." + }, + "lotNumber": { + "type": "string", + "description": "The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items." + }, + "expiry": { + "$ref": "#\/components\/schemas\/Expiry" + } + }, + "description": "Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate." + }, + "PurchaseOrderItemDetails": { + "type": "object", + "properties": { + "maximumRetailPrice": { + "$ref": "#\/components\/schemas\/Money" + } + }, + "description": "Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever is appropriate." + }, + "ContainerIdentification": { + "required": [ + "containerIdentificationNumber", + "containerIdentificationType" + ], + "type": "object", + "properties": { + "containerIdentificationType": { + "type": "string", + "description": "The container identification type.", + "enum": [ + "SSCC", + "AMZNCC", + "GTIN", + "BPS", + "CID" + ], + "x-docgen-enum-table-extension": [ + { + "value": "SSCC", + "description": "2 Digit Application Identifier (00) followed by unique 18-digit Serial Shipment Container Code (SSCC) to be included to define a pallet\/carton and to identify its contents." + }, + { + "value": "AMZNCC", + "description": "Amazon Container Code - a substitute for a SSCC that is generated by Amazon for small vendors and associated with a pallet\/carton label." + }, + { + "value": "GTIN", + "description": "Global Trade Identification Number (part of the standard GS1 barcoding and product identification system)." + }, + { + "value": "BPS", + "description": "Barcode Packing Slip." + }, + { + "value": "CID", + "description": "Container identifier for import shipments." + } + ] + }, + "containerIdentificationNumber": { + "type": "string", + "description": "Container identification number that adheres to the definition of the container identification type." + } + } + }, + "ContainerItem": { + "required": [ + "itemReference", + "shippedQuantity" + ], + "type": "object", + "properties": { + "itemReference": { + "type": "string", + "description": "The reference number for the item. Please provide the itemSequenceNumber from the 'items' segment to refer to that item's details here." + }, + "shippedQuantity": { + "$ref": "#\/components\/schemas\/ItemQuantity" + }, + "itemDetails": { + "$ref": "#\/components\/schemas\/ItemDetails" + } + }, + "description": "Carton\/Pallet level details for the item." + }, + "CartonReferenceDetails": { + "required": [ + "cartonReferenceNumbers" + ], + "type": "object", + "properties": { + "cartonCount": { + "type": "integer", + "description": "Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet." + }, + "cartonReferenceNumbers": { + "type": "array", + "description": "Array of reference numbers for the carton that are part of this pallet\/shipment. Please provide the cartonSequenceNumber from the 'cartons' segment to refer to that carton's details here.", + "items": { + "type": "string" + } + } + } + }, + "PartyIdentification": { + "required": [ + "partyId" + ], + "type": "object", + "properties": { + "address": { + "$ref": "#\/components\/schemas\/Address" + }, + "partyId": { + "type": "string", + "description": "Assigned identification for the party." + }, + "taxRegistrationDetails": { + "type": "array", + "description": "Tax registration details of the entity.", + "items": { + "$ref": "#\/components\/schemas\/TaxRegistrationDetails" + } + } + } + }, + "TaxRegistrationDetails": { + "required": [ + "taxRegistrationNumber", + "taxRegistrationType" + ], + "type": "object", + "properties": { + "taxRegistrationType": { + "type": "string", + "description": "Tax registration type for the entity.", + "enum": [ + "VAT", + "GST" + ], + "x-docgen-enum-table-extension": [ + { + "value": "VAT", + "description": "Value-added tax." + }, + { + "value": "GST", + "description": "Goods and Services tax." + } + ] + }, + "taxRegistrationNumber": { + "type": "string", + "description": "Tax registration number for the entity. For example, VAT ID." + } + }, + "description": "Tax registration details of the entity." + }, + "Address": { + "required": [ + "addressLine1", + "countryCode", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the person, business or institution at that address." + }, + "addressLine1": { + "type": "string", + "description": "First line of the address." + }, + "addressLine2": { + "type": "string", + "description": "Additional street address information, if required." + }, + "addressLine3": { + "type": "string", + "description": "Additional street address information, if required." + }, + "city": { + "type": "string", + "description": "The city where the person, business or institution is located." + }, + "county": { + "type": "string", + "description": "The county where person, business or institution is located." + }, + "district": { + "type": "string", + "description": "The district where person, business or institution is located." + }, + "stateOrRegion": { + "type": "string", + "description": "The state or region where person, business or institution is located." + }, + "postalCode": { + "type": "string", + "description": "The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code in ISO 3166-1 alpha-2 format." + }, + "phone": { + "type": "string", + "description": "The phone number of the person, business or institution located at that address." + } + }, + "description": "Address of the party." + }, + "Route": { + "required": [ + "stops" + ], + "type": "object", + "properties": { + "stops": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/Stop" + } + } + }, + "description": "This is used only for direct import shipment confirmations." + }, + "Stop": { + "required": [ + "functionCode" + ], + "type": "object", + "properties": { + "functionCode": { + "type": "string", + "description": "Provide the function code.", + "enum": [ + "PortOfDischarge", + "FreightPayableAt", + "PortOfLoading" + ], + "x-docgen-enum-table-extension": [ + { + "value": "PortOfDischarge", + "description": "Port of Discharge is a place where a vessel discharges or unloads some or all of its shipments." + }, + { + "value": "FreightPayableAt", + "description": "Place where the payment for the freight is made." + }, + { + "value": "PortOfLoading", + "description": "The port where goods are put on a ship." + } + ] + }, + "locationIdentification": { + "$ref": "#\/components\/schemas\/Location" + }, + "arrivalTime": { + "type": "string", + "description": "Date and time of the arrival of the cargo.", + "format": "date-time" + }, + "departureTime": { + "type": "string", + "description": "Date and time of the departure of the cargo.", + "format": "date-time" + } + }, + "description": "Contractual or operational port or point relevant to the movement of the cargo." + }, + "Location": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Type of location identification." + }, + "locationCode": { + "type": "string", + "description": "Location code." + }, + "countryCode": { + "type": "string", + "description": "The two digit country code. In ISO 3166-1 alpha-2 format." + } + }, + "description": "Location identifier." + }, + "Dimensions": { + "required": [ + "height", + "length", + "unitOfMeasure", + "width" + ], + "type": "object", + "properties": { + "length": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "width": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "height": { + "$ref": "#\/components\/schemas\/Decimal" + }, + "unitOfMeasure": { + "type": "string", + "description": "The unit of measure for dimensions.", + "enum": [ + "In", + "Ft", + "Meter", + "Yard" + ], + "x-docgen-enum-table-extension": [ + { + "value": "In", + "description": "Inches" + }, + { + "value": "Ft", + "description": "Feet" + }, + { + "value": "Meter", + "description": "Meters" + }, + { + "value": "Yard", + "description": "Yards" + } + ] + } + }, + "description": "Physical dimensional measurements of a container." + }, + "Volume": { + "required": [ + "unitOfMeasure", + "value" + ], + "type": "object", + "properties": { + "unitOfMeasure": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "CuFt", + "CuIn", + "CuM", + "CuY" + ], + "x-docgen-enum-table-extension": [ + { + "value": "CuFt", + "description": "Cubic feet." + }, + { + "value": "CuIn", + "description": "Cubic inches." + }, + { + "value": "CuM", + "description": "Cubic meter." + }, + { + "value": "CuY", + "description": "Cubic yard." + } + ] + }, + "value": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The volume of the shipment." + }, + "Weight": { + "required": [ + "unitOfMeasure", + "value" + ], + "type": "object", + "properties": { + "unitOfMeasure": { + "type": "string", + "description": "The unit of measurement.", + "enum": [ + "G", + "Kg", + "Oz", + "Lb" + ], + "x-docgen-enum-table-extension": [ + { + "value": "G", + "description": "Grams" + }, + { + "value": "Kg", + "description": "Kilograms" + }, + { + "value": "Oz", + "description": "Ounces" + }, + { + "value": "Lb", + "description": "Pounds" + } + ] + }, + "value": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "The weight of the shipment." + }, + "Money": { + "required": [ + "amount", + "currencyCode" + ], + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "Three digit currency code in ISO 4217 format." + }, + "amount": { + "$ref": "#\/components\/schemas\/Decimal" + } + }, + "description": "An amount of money, including units in the form of currency." + }, + "Decimal": { + "type": "string", + "description": "A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`." + }, + "ItemQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the shipped quantity.", + "enum": [ + "Cases", + "Eaches" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cases", + "description": "Packing of individual items into a case." + }, + { + "value": "Eaches", + "description": "Individual items." + } + ] + }, + "unitSize": { + "type": "integer", + "description": "The case size, in the event that we ordered using cases. Otherwise, 1." + } + }, + "description": "Details of item quantity." + }, + "packedQuantity": { + "required": [ + "amount", + "unitOfMeasure" + ], + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level." + }, + "unitOfMeasure": { + "type": "string", + "description": "Unit of measure for the shipped quantity.", + "enum": [ + "Cases", + "Eaches" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Cases", + "description": "Packing of individual items into a case." + }, + { + "value": "Eaches", + "description": "Individual items." + } + ] + }, + "unitSize": { + "type": "integer", + "description": "The case size, in the event that we ordered using cases. Otherwise, 1." + } + }, + "description": "Details of item quantity." + }, + "Expiry": { + "type": "object", + "properties": { + "manufacturerDate": { + "type": "string", + "description": "Production, packaging or assembly date determined by the manufacturer. Its meaning is determined based on the trade item context.", + "format": "date-time" + }, + "expiryDate": { + "type": "string", + "description": "The date that determines the limit of consumption or use of a product. Its meaning is determined based on the trade item context.", + "format": "date-time" + }, + "expiryAfterDuration": { + "$ref": "#\/components\/schemas\/Duration" + } + } + }, + "Duration": { + "required": [ + "durationUnit", + "durationValue" + ], + "type": "object", + "properties": { + "durationUnit": { + "type": "string", + "description": "Unit for duration.", + "enum": [ + "Days", + "Months" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Days", + "description": "Days" + }, + { + "value": "Months", + "description": "Months" + } + ] + }, + "durationValue": { + "type": "integer", + "description": "Value for the duration in terms of the durationUnit." + } + } + }, + "SubmitShipmentConfirmationsResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionReference" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the SubmitShipmentConfirmations operation." + }, + "TransactionReference": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction." + } + } + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/models/vendor/transaction-status/v1.json b/resources/models/vendor/transaction-status/v1.json new file mode 100644 index 000000000..7de54c0f7 --- /dev/null +++ b/resources/models/vendor/transaction-status/v1.json @@ -0,0 +1,426 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Selling Partner API for Retail Procurement Transaction Status", + "description": "The Selling Partner API for Retail Procurement Transaction Status provides programmatic access to status information on specific asynchronous POST transactions for vendors.", + "contact": { + "name": "Selling Partner API Developer Support", + "url": "https:\/\/sellercentral.amazon.com\/gp\/mws\/contactus.html" + }, + "license": { + "name": "Apache License 2.0", + "url": "http:\/\/www.apache.org\/licenses\/LICENSE-2.0" + }, + "version": "v1" + }, + "servers": [ + { + "url": "https:\/\/sellingpartnerapi-na.amazon.com\/" + } + ], + "paths": { + "\/vendor\/transactions\/v1\/transactions\/{transactionId}": { + "get": { + "tags": [ + "TransactionStatusV1" + ], + "description": "Returns the status of the transaction that you specify.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 10 | 20 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https:\/\/developer-docs.amazon.com\/sp-api\/docs\/usage-plans-and-rate-limits-in-the-sp-api).", + "operationId": "getTransaction", + "parameters": [ + { + "name": "transactionId", + "in": "path", + "description": "The GUID provided by Amazon in the 'transactionId' field in response to the post request of a specific transaction.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + }, + "example": { + "payload": { + "transactionStatus": { + "transactionId": "20190108091302-6ca0ac50-d06e-45f5-a1e2-eb448eadac50", + "status": "Processing" + } + } + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "transactionId": { + "value": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a" + } + } + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a", + "status": "Processing" + } + } + } + }, + { + "request": { + "parameters": { + "transactionId": { + "value": "20190918190535-eef8cad8-418e-456f-ac72-789e2ee6813c" + } + } + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190918190535-eef8cad8-418e-456f-ac72-789e2ee6813c", + "status": "Failure", + "errors": [ + { + "code": "INVALID_ORDER_ID", + "message": "Invalid order ID." + } + ] + } + } + } + }, + { + "request": { + "parameters": {} + }, + "response": { + "payload": { + "transactionStatus": { + "transactionId": "20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a", + "status": "Processing" + } + } + } + } + ] + }, + "400": { + "description": "Request has missing or invalid parameters and cannot be parsed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + }, + "x-amazon-spds-sandbox-behaviors": [ + { + "request": { + "parameters": { + "transactionId": { + "value": "Tran0904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a" + } + } + }, + "response": { + "errors": [ + { + "code": "InvalidInput", + "message": "Invalid transmission ID.", + "details": "" + } + ] + } + } + ] + }, + "401": { + "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "403": { + "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "404": { + "description": "The resource specified does not exist.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "415": { + "description": "The request payload is in an unsupported format.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "429": { + "description": "The frequency of requests was greater than allowed.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "500": { + "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + }, + "503": { + "description": "Temporary overloading or maintenance of the server.", + "headers": { + "x-amzn-RequestId": { + "description": "Unique request reference identifier.", + "schema": { + "type": "string" + } + }, + "x-amzn-RateLimit-Limit": { + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/GetTransactionResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "GetTransactionResponse": { + "type": "object", + "properties": { + "payload": { + "$ref": "#\/components\/schemas\/TransactionStatus" + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The response schema for the getTransaction operation." + }, + "TransactionStatus": { + "type": "object", + "properties": { + "transactionStatus": { + "$ref": "#\/components\/schemas\/Transaction" + } + } + }, + "Transaction": { + "required": [ + "status", + "transactionId" + ], + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "The unique identifier returned in the 'transactionId' field in response to the post request of a specific transaction." + }, + "status": { + "type": "string", + "description": "Current processing status of the transaction.", + "enum": [ + "Failure", + "Processing", + "Success" + ], + "x-docgen-enum-table-extension": [ + { + "value": "Failure", + "description": "Transaction has failed." + }, + { + "value": "Processing", + "description": "Transaction is in process." + }, + { + "value": "Success", + "description": "Transaction has completed successfully." + } + ] + }, + "errors": { + "$ref": "#\/components\/schemas\/ErrorList" + } + }, + "description": "The transaction status." + }, + "ErrorList": { + "type": "array", + "description": "A list of error responses returned when a request is unsuccessful.", + "items": { + "$ref": "#\/components\/schemas\/Error" + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "An error code that identifies the type of error that occurred." + }, + "message": { + "type": "string", + "description": "A message that describes the error condition." + }, + "details": { + "type": "string", + "description": "Additional details that can help the caller understand or fix the issue." + } + }, + "description": "Error response returned when the request is unsuccessful." + } + } + }, + "x-original-swagger-version": "2.0" +} \ No newline at end of file diff --git a/resources/reports.json b/resources/reports.json new file mode 100644 index 000000000..3c1200b5d --- /dev/null +++ b/resources/reports.json @@ -0,0 +1,814 @@ +{ + "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_SALES_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_SALES_DIAGNOSTIC_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_TRAFFIC_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_INVENTORY_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_FORECASTING_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_DEMAND_FORECAST_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_SALES_AND_TRAFFIC_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_OPEN_LISTINGS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_ALL_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_INACTIVE_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_DATA_LITE": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_DATA_LITER": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANT_CANCELLED_LISTINGS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MERCHANTS_LISTINGS_FYP_REPORT": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_MERCHANT_LISTINGS_DEFECT_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_PAN_EU_OFFER_STATUS": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_MFN_PAN_EU_OFFER_STATUS": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_GEO_OPPORTUNITIES": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_REFERRAL_FEE_PREVIEW_REPORT": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_ORDER_REPORT_DATA_INVOICING": { + "contentType": "text/xml", + "restricted": true, + "requestable": false, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_ORDER_REPORT_DATA_TAX": { + "contentType": "text/xml", + "restricted": true, + "requestable": false, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_ORDER_REPORT_DATA_SHIPPING": { + "contentType": "text/xml", + "restricted": true, + "requestable": false, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ORDER_REPORT_DATA_INVOICING": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ORDER_REPORT_DATA_TAX": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_XML_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_PENDING_ORDERS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_PENDING_ORDERS_DATA": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_CONVERGED_FLAT_FILE_PENDING_ORDERS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_XML_RETURNS_DATA_BY_RETURN_DATE": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_XML_MFN_PRIME_RETURNS_REPORT": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_CSV_MFN_PRIME_RETURNS_REPORT": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_XML_MFN_SKU_RETURN_ATTRIBUTES_REPORT": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_MFN_SKU_RETURN_ATTRIBUTES_REPORT": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_SELLER_FEEDBACK_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_V1_SELLER_PERFORMANCE_REPORT": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_V2_SELLER_PERFORMANCE_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_PROMOTION_PERFORMANCE_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_COUPON_PERFORMANCE_REPORT": { + "contentType": "application/json", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_V2_SETTLEMENT_REPORT_DATA_XML": { + "contentType": "text/xml", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_INVOICING": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_TAX": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_SALES_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_REMOTE_FULFILLMENT_ELIGIBILITY": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_AFN_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_AFN_INVENTORY_DATA_BY_COUNTRY": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_LEDGER_SUMMARY_VIEW_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": true + }, + "GET_LEDGER_DETAIL_VIEW_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": true + }, + "GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_RESERVED_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_INVENTORY_HEALTH_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_MYI_ALL_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_INBOUND_NONCOMPLIANCE_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_STRANDED_INVENTORY_UI_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_STRANDED_INVENTORY_LOADER_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_INVENTORY_AGED_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EXCESS_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_STORAGE_FEE_CHARGES_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_PRODUCT_EXCHANGE_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_INVENTORY_PLANNING_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_OVERAGE_FEE_CHARGES_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_REIMBURSEMENTS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_RECOMMENDED_REMOVAL_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FBA_UNO_INVENTORY_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_SALES_TAX_DATA": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "SC_VAT_TAX_REPORT": { + "contentType": "text/csv", + "restricted": true, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_VAT_TRANSACTION_DATA": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_GST_MTR_B2B_CUSTOM": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_GST_MTR_B2C_CUSTOM": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_GST_STR_ADHOC": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_VAT_INVOICE_DATA_REPORT": { + "contentType": "text/tab-separated-values", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_XML_VAT_INVOICE_DATA_REPORT": { + "contentType": "text/xml", + "restricted": true, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_XML_BROWSE_TREE_DATA": { + "contentType": "text/xml", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_EASYSHIP_DOCUMENTS": { + "contentType": "application/pdf", + "restricted": true, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EASYSHIP_PICKEDUP": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EASYSHIP_WAITING_FOR_PICKUP": { + "contentType": "text/tab-separated-values", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "RFQD_BULK_DOWNLOAD": { + "contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "FEE_DISCOUNTS_REPORT": { + "contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "restricted": false, + "requestable": true, + "schedulable": true, + "quoteEnclosure": false + }, + "GET_FLAT_FILE_OFFAMAZONPAYMENTS_SANDBOX_SETTLEMENT_DATA": { + "contentType": "text/csv", + "restricted": false, + "requestable": false, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_B2B_PRODUCT_OPPORTUNITIES_RECOMMENDED_FOR_YOU": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_B2B_PRODUCT_OPPORTUNITIES_NOT_YET_ON_AMAZON": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EPR_MONTHLY_REPORTS": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EPR_QUARTERLY_REPORTS": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + }, + "GET_EPR_ANNUAL_REPORTS": { + "contentType": "text/csv", + "restricted": false, + "requestable": true, + "schedulable": false, + "quoteEnclosure": false + } +} diff --git a/src/Authentication/AbstractAuthenticator.php b/src/Authentication/AbstractAuthenticator.php new file mode 100644 index 000000000..00abf68b9 --- /dev/null +++ b/src/Authentication/AbstractAuthenticator.php @@ -0,0 +1,50 @@ +headers()->add('X-AMZ-Access-Token', $this->getAccessToken()); + } + + protected function makeTokenRequest(array $jsonData): array + { + $lwaTokenRequest = new Request( + 'POST', + static::LWA_AUTH_URL, + [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ], + Utils::jsonEncode($jsonData) + ); + $res = $this->connector->authenticationClient->send($lwaTokenRequest); + + $body = stream_get_contents(StreamWrapper::getResource($res->getBody())); + + return json_decode($body, true); + } +} diff --git a/src/Authentication/AccessToken.php b/src/Authentication/AccessToken.php new file mode 100644 index 000000000..c3b04107b --- /dev/null +++ b/src/Authentication/AccessToken.php @@ -0,0 +1,23 @@ +expiresAt < (new DateTime()); + } +} diff --git a/src/Authentication/GrantlessAuthenticator.php b/src/Authentication/GrantlessAuthenticator.php new file mode 100644 index 000000000..00ff524cd --- /dev/null +++ b/src/Authentication/GrantlessAuthenticator.php @@ -0,0 +1,34 @@ + 'client_credentials', + 'client_id' => $this->connector->clientId, + 'client_secret' => $this->connector->clientSecret, + 'scope' => $this->scope->value, + ]; + + $data = $this->makeTokenRequest($jsonData); + + return $data['access_token']; + } +} diff --git a/src/Authentication/LWAAuthenticator.php b/src/Authentication/LWAAuthenticator.php new file mode 100644 index 000000000..cf8123e5c --- /dev/null +++ b/src/Authentication/LWAAuthenticator.php @@ -0,0 +1,51 @@ + AccessToken] + */ + private static array $accessTokens = []; + + public function __construct(protected SellingPartnerApi $connector) + { + } + + /** + * Gets the access token for OAuth + */ + protected function getAccessToken(): ?string + { + $accessToken = Arr::get(static::$accessTokens, $this->connector->clientId); + if (! $accessToken || $accessToken->expired()) { + $jsonData = [ + 'grant_type' => 'refresh_token', + 'client_id' => $this->connector->clientId, + 'client_secret' => $this->connector->clientSecret, + 'refresh_token' => $this->connector->refreshToken, + ]; + + $data = $this->makeTokenRequest($jsonData); + + $accessToken = new AccessToken( + $data['access_token'], + new DateTime("+{$data['expires_in']} seconds") + ); + + $accessToken = static::$accessTokens[$this->connector->clientId] = $accessToken; + } + + return $accessToken->token; + } +} diff --git a/src/Authentication/RestrictedDataTokenAuthenticator.php b/src/Authentication/RestrictedDataTokenAuthenticator.php new file mode 100644 index 000000000..053528b94 --- /dev/null +++ b/src/Authentication/RestrictedDataTokenAuthenticator.php @@ -0,0 +1,73 @@ + [string => AccessToken]] + */ + protected static array $tokens = []; + + public function __construct( + protected SellingPartnerApi $connector, + protected string $path, + protected string $method, + protected ?array $dataElements, + ) { + } + + protected function getAccessToken(): ?string + { + $clientId = $this->connector->clientId; + $token = Arr::get( + static::$tokens, + "{$clientId}.{$this->path}.{$this->method}" + ); + + if (! $token || $token->expired()) { + try { + $tokensApi = $this->connector->seller()->tokensV20210301(); + } catch (RequestException $e) { + throw new RequestException( + $e->getResponse(), + "Failed to create restricted data token: {$e->getMessage()}", + $e->getCode(), + $e->getPrevious() + ); + } + + $response = $tokensApi->createRestrictedDataToken( + new CreateRestrictedDataTokenRequest( + [ + new RestrictedResource( + strtoupper($this->method), + $this->path, + $this->dataElements ?: null, + ), + ], + $this->connector->delegatee + ) + )->dto(); + + $token = static::$tokens[$clientId][$this->path][$this->method] = new AccessToken( + $response->restrictedDataToken, + new DateTime("+{$response->expiresIn} seconds"), + ); + } + + return $token->token; + } +} diff --git a/src/BaseResource.php b/src/BaseResource.php new file mode 100644 index 000000000..67c48001d --- /dev/null +++ b/src/BaseResource.php @@ -0,0 +1,11 @@ +value); + } +} diff --git a/src/Enums/GrantlessScope.php b/src/Enums/GrantlessScope.php new file mode 100644 index 000000000..1414619ee --- /dev/null +++ b/src/Enums/GrantlessScope.php @@ -0,0 +1,15 @@ +schemas = static::filterSchemas($input); + + foreach ($this->schemas as $schema) { + echo "Handling schema {$schema->code} ...\n"; + + try { + $returnCode = $this->handleSchema($schema); + if ($returnCode > 0) { + return $returnCode; + } + } catch (Exception $e) { + echo "\n\nFailed to handle schema {$schema->code}: {$e->getMessage()}\n"; + + return 1; + } + + echo "Done\n"; + } + + return 0; + } + + /** + * The method that will be called for each schema matching the input options. + * + * @return int The exit code for the command for a particular schema. + */ + abstract protected function handleSchema(Schema $schema): int; +} diff --git a/src/Generator/Commands/DownloadSchemas.php b/src/Generator/Commands/DownloadSchemas.php new file mode 100644 index 000000000..1985a95c1 --- /dev/null +++ b/src/Generator/Commands/DownloadSchemas.php @@ -0,0 +1,24 @@ +download(); + + return 0; + } +} diff --git a/src/Generator/Commands/GenerateSchemas.php b/src/Generator/Commands/GenerateSchemas.php new file mode 100644 index 000000000..a018650bf --- /dev/null +++ b/src/Generator/Commands/GenerateSchemas.php @@ -0,0 +1,24 @@ +generate(); + + return 0; + } +} diff --git a/src/Generator/Commands/HasSchemaArgs.php b/src/Generator/Commands/HasSchemaArgs.php new file mode 100644 index 000000000..da012b2f7 --- /dev/null +++ b/src/Generator/Commands/HasSchemaArgs.php @@ -0,0 +1,67 @@ + $_) { + $availableSchemaCodes[] = $code; + } + } + $availableSchemaCodes = array_unique($availableSchemaCodes); + + $this->setDefinition([ + new InputOption( + 'category', + mode: InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, + description: 'A list of the Selling Partner API categories to generate (seller and/or vendor). If this option is not passed, both Seller and Vendor APIs will be generated.', + suggestedValues: ApiCategory::values(), + ), + new InputOption( + 'schema', + mode: InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, + description: 'A list of the schemas to generate, based on the schema codes in resources/apis.json. If this option is not passed, all schemas will be generated.', + suggestedValues: $availableSchemaCodes, + ), + ]); + } + + /** + * Retrieve metadata about the schemas matching the given input options. + * + * @return array The filtered categories and names. + */ + protected static function filterSchemas(InputInterface $input): array + { + $categories = $input->getOption('category'); + $schemas = $input->getOption('schema'); + + return Schema::where( + is_string($categories) ? [$categories] : $categories, + is_string($schemas) ? [$schemas] : $schemas, + ); + } +} diff --git a/src/Generator/Commands/RefactorSchemas.php b/src/Generator/Commands/RefactorSchemas.php new file mode 100644 index 000000000..c58c4094a --- /dev/null +++ b/src/Generator/Commands/RefactorSchemas.php @@ -0,0 +1,22 @@ +refactor(); + + return 0; + } +} diff --git a/src/Generator/Commands/UpdateVersion.php b/src/Generator/Commands/UpdateVersion.php new file mode 100644 index 000000000..69dc3bcfe --- /dev/null +++ b/src/Generator/Commands/UpdateVersion.php @@ -0,0 +1,72 @@ +normalize($newVersionRaw); + $newVersion = implode('.', array_slice(explode('.', $newVersion), 0, 3)); + } catch (UnexpectedValueException $e) { + echo $e->getMessage().". Please try again.\n"; + } + } while (! $newVersion); + + if (Comparator::equalTo($currentVersion, $newVersion)) { + echo "New version is the same as the current version. Exiting...\n"; + + return 0; + } + + $config = json_decode(file_get_contents(GENERATOR_CONFIG_FILE), true); + $config['version'] = $newVersion; + file_put_contents(GENERATOR_CONFIG_FILE, json_encode($config, JSON_PRETTY_PRINT)); + + $composerFile = ROOT_DIR.'/composer.json'; + $composerConfig = json_decode(file_get_contents($composerFile), true); + $composerConfig['version'] = $newVersion; + file_put_contents( + $composerFile, + json_encode($composerConfig, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) + ); + + $ynCommit = strtolower(readline('Do you want to commit version-related file changes? [Y/n] ')); + $commit = $ynCommit === 'y' || $ynCommit === 'yes'; + if ($commit) { + exec('git stash --include-untracked'); + } + + $configFile = GENERATOR_CONFIG_FILE; + exec("git add $configFile $composerFile && git commit -m 'Update package version to $newVersion' && git stash pop"); + + echo "\nVersioning-related changes have been committed.\n"; + + return 0; + } +} diff --git a/src/Generator/FileHandler.php b/src/Generator/FileHandler.php new file mode 100644 index 000000000..24a878310 --- /dev/null +++ b/src/Generator/FileHandler.php @@ -0,0 +1,35 @@ +config->outputDir, + str_replace($this->config->namespace, '', Arr::first($file->getNamespaces())->getName()), + Arr::first($file->getClasses())->getName(), + ]; + $path = implode('/', $components).'.php'; + + $filePath = Str::of($path)->replace('\\', '/')->replace('//', '/')->toString(); + + return $filePath; + } +} diff --git a/src/Generator/Generator.php b/src/Generator/Generator.php new file mode 100644 index 000000000..38e47b50a --- /dev/null +++ b/src/Generator/Generator.php @@ -0,0 +1,39 @@ +addMethod('__construct') + ->addPromotedParameter('connector') + ->setType(SellingPartnerApi::class) + ->setProtected(); + + $classFile = new PhpFile(); + $namespace = $this->config->baseResourceNamespace ?? $this->config->namespace; + $classFile->addNamespace($namespace) + ->addUse(SellingPartnerApi::class) + ->add($classType); + + return $classFile; + } +} diff --git a/src/Generator/Generators/RequestGenerator.php b/src/Generator/Generators/RequestGenerator.php new file mode 100644 index 000000000..2f65ef77f --- /dev/null +++ b/src/Generator/Generators/RequestGenerator.php @@ -0,0 +1,213 @@ +name); + [$classFile, $namespace, $classType] = $this->makeClass($className, $this->config->requestNamespaceSuffix); + + $classType->setExtends(Request::class) + ->setComment($endpoint->name); + + // TODO: We assume JSON body if post/patch, make these assumptions configurable in the future. + if ($endpoint->method->isPost() || $endpoint->method->isPatch()) { + $classType + ->addImplement(HasBody::class) + ->addTrait(HasJsonBody::class); + + $namespace + ->addUse(HasBody::class) + ->addUse(HasJsonBody::class); + } + + $classType->addProperty('method') + ->setProtected() + ->setType(SaloonHttpMethod::class) + ->setValue( + new Literal( + sprintf('Method::%s', $endpoint->method->value) + ) + ); + + $constructor = $this->generateConstructor($endpoint, $classType); + + $path = $this->buildGenericPath($endpoint->pathSegments); + $httpMethod = strtolower($endpoint->method->value); + + $isRestricted = isset($restrictedOperations->{$path}->operations->{$httpMethod}); + $isGrantless = isset($grantlessOperations->{$path}->{$httpMethod}); + if ($isRestricted || $isGrantless) { + if ($isRestricted) { + $namespace->addUse(RestrictedDataToken::class); + $useGenericPath = $restrictedOperations->{$path}->genericPath; + $knownDataElements = $restrictedOperations->{$path}->operations->{$httpMethod}; + $constructor->addBody( + new Literal(sprintf( + '$rdtMiddleware = new RestrictedDataToken(%s, \'%s\', %s);', + $useGenericPath ? "'$path'" : '$this->resolveEndpoint()', + strtoupper($httpMethod), + '['.implode(', ', array_map(fn ($el) => "'$el'", $knownDataElements)).']' + )) + ); + $constructor->addBody('$this->middleware()->onRequest($rdtMiddleware);'); + } elseif ($isGrantless) { + $namespace + ->addUse(Grantless::class) + ->addUse(GrantlessScope::class); + $scope = GrantlessScope::from($grantlessOperations->{$path}->{$httpMethod}); + + $constructor->addBody( + new Literal(sprintf( + '$this->middleware()->onRequest(new Grantless(GrantlessScope::%s));', + $scope->name + )) + ); + } + } + + $requestMiddleware = $middleware->{$path}->{$httpMethod}->request ?? []; + foreach ($requestMiddleware as $cls) { + $namespace->addUse(PACKAGE_NAMESPACE."\\Middleware\\$cls"); + $constructor->addBody(new Literal(sprintf('$this->middleware()->onRequest(new %s);', $cls))); + } + + // Remove the constructor if it's not being used + if (count($constructor->getParameters()) === 0 && $constructor->getBody() === '') { + $classType->removeMethod('__construct'); + } + + $classType->addMethod('resolveEndpoint') + ->setPublic() + ->setReturnType('string') + ->addBody( + collect($endpoint->pathSegments) + ->map(fn ($segment) => Str::startsWith($segment, ':') + ? new Literal(sprintf('{$this->%s}', NameHelper::safeVariableName($segment))) + : $segment + ) + ->pipe(fn (Collection $segments) => new Literal(sprintf('return "/%s";', $segments->implode('/')))) + ); + + $responseSuffix = NameHelper::optionalNamespaceSuffix($this->config->responseNamespaceSuffix); + $responseNamespace = "{$this->config->namespace}{$responseSuffix}"; + + $codesByResponseType = collect($endpoint->responses) + // TODO: We assume JSON is the only response content type for each HTTP status code. + // We should support multiple response types in the future + ->mapWithKeys(function (array $response, int $httpCode) use ($namespace, $responseNamespace) { + if (count($response) === 0) { + $cls = EmptyResponse::class; + } else { + $className = NameHelper::responseClassName($response[array_key_first($response)]->name); + $cls = "{$responseNamespace}\\{$className}"; + } + $namespace->addUse($cls); + $alias = array_flip($namespace->getUses())[$cls]; + + return [$httpCode => $alias]; + }) + ->reduce(function (Collection $carry, string $className, int $httpCode) { + $carry->put( + $className, + [...$carry->get($className, []), $httpCode] + ); + + return $carry; + }, collect()); + + $namespace + ->addUse(Exception::class) + ->addUse(Response::class); + + $aliasMap = $namespace->getUses(); + $returnType = $codesByResponseType->map(fn (array $codes, string $className) => $aliasMap[$className])->implode('|'); + $createDtoMethod = $classType->addMethod('createDtoFromResponse') + ->setPublic() + ->setReturnType($returnType) + ->addBody('$status = $response->status();') + ->addBody('$responseCls = match ($status) {') + ->addBody( + $codesByResponseType + ->map(fn (array $codes, string $className) => sprintf( + ' %s => %s::class,', + implode(', ', $codes), Helpers::extractShortName($className) + )) + ->values() + ->implode("\n") + ) + ->addBody(' default => throw new Exception("Unhandled response status: {$status}")') + ->addBody('};') + ->addBody('return $responseCls::deserialize($response->json(), $responseCls);'); + $createDtoMethod + ->addParameter('response') + ->setType(Response::class); + + if ($endpoint->bodySchema) { + $bodyType = $endpoint->bodySchema->type; + if (SimpleType::isScalar($bodyType)) { + $returnValText = '[$this->%s]'; + } elseif ($bodyType === 'DateTime') { + $returnValText = '$this->%s->format(\DateTime::RFC3339)'; + } elseif (! Utils::isBuiltinType($bodyType)) { + $returnValText = '$this->%s->toArray()'; + } else { + $returnValText = '$this->%s'; + } + $classType + ->addMethod('defaultBody') + ->setReturnType('array') + ->addBody( + sprintf("return {$returnValText};", NameHelper::safeVariableName($endpoint->bodySchema->name)) + ); + + $bodyFQN = $this->bodyFQN($endpoint->bodySchema); + $namespace->addUse($bodyFQN); + } + + $namespace + ->addUse(SaloonHttpMethod::class) + ->addUse(Request::class) + ->add($classType); + + return $classFile; + } + + /** + * @param array $segments + */ + private function buildGenericPath(array $segments): string + { + $path = '/'.implode('/', $segments); + $withBraces = preg_replace('/\:([a-zA-Z0-9_]+)(\/|$)/', '{$1}$2', $path); + + return $withBraces; + } +} diff --git a/src/Generator/Generators/ResourceGenerator.php b/src/Generator/Generators/ResourceGenerator.php new file mode 100644 index 000000000..ac2489bd2 --- /dev/null +++ b/src/Generator/Generators/ResourceGenerator.php @@ -0,0 +1,111 @@ +config->baseResourceNamespace ?? $this->config->namespace; + $classType->setExtends("{$baseResourceNs}\\BaseResource"); + + $classFile = new PhpFile; + $resourceNamespaceSuffix = NameHelper::optionalNamespaceSuffix($this->config->resourceNamespaceSuffix); + $namespace = $classFile + ->addNamespace("{$this->config->namespace}{$resourceNamespaceSuffix}") + ->addUse("{$baseResourceNs}\\BaseResource"); + + $duplicateCounter = 1; + + foreach ($endpoints as $endpoint) { + $requestClassName = NameHelper::resourceClassName($endpoint->name); + $methodName = NameHelper::safeVariableName($requestClassName); + $requestClassNameAlias = $requestClassName == $resourceName ? "{$requestClassName}Request" : null; + $requestNamespaceSuffix = NameHelper::optionalNamespaceSuffix($this->config->requestNamespaceSuffix); + $requestClassFQN = "{$this->config->namespace}{$requestNamespaceSuffix}\\{$requestClassName}"; + + $namespace + ->addUse(Response::class) + ->addUse( + name: $requestClassFQN, + alias: $requestClassNameAlias, + ); + + try { + $method = $classType->addMethod($methodName); + } catch (InvalidStateException $exception) { + // TODO: handle more gracefully in the future + $deduplicatedMethodName = NameHelper::safeVariableName( + sprintf('%s%s', $methodName, 'Duplicate'.$duplicateCounter) + ); + $duplicateCounter++; + dump("DUPLICATE: {$requestClassName} -> {$deduplicatedMethodName}"); + + $method = $classType + ->addMethod($deduplicatedMethodName) + ->addComment('@todo Fix duplicated method name'); + } + + $method->setReturnType(Response::class); + + $args = []; + + foreach ($endpoint->pathParameters as $parameter) { + MethodGeneratorHelper::addParameterToMethod($method, $parameter); + $args[] = new Literal(sprintf('$%s', NameHelper::safeVariableName($parameter->name))); + } + + if ($endpoint->bodySchema) { + $dtoNamespaceSuffix = NameHelper::optionalNamespaceSuffix($this->config->dtoNamespaceSuffix); + $dtoNamespace = "{$this->config->namespace}{$dtoNamespaceSuffix}"; + + // Don't need to import the DTO if the body is an array + if (SimpleType::tryFrom($endpoint->bodySchema->type) !== SimpleType::ARRAY) { + $safeSchemaName = NameHelper::requestClassName($endpoint->bodySchema->name); + $bodyFQN = "{$dtoNamespace}\\{$safeSchemaName}"; + $namespace->addUse($bodyFQN); + } + + MethodGeneratorHelper::addParameterToMethod($method, $endpoint->bodySchema, namespace: $dtoNamespace); + $args[] = new Literal(sprintf('$%s', NameHelper::safeVariableName($endpoint->bodySchema->name))); + } + + foreach ($endpoint->queryParameters as $parameter) { + if (in_array($parameter->name, $this->config->ignoredQueryParams)) { + continue; + } + MethodGeneratorHelper::addParameterToMethod($method, $parameter); + $args[] = new Literal(sprintf('$%s', NameHelper::safeVariableName($parameter->name))); + } + + $method->addBody( + new Literal(sprintf( + '$request = new %s(%s);', + $requestClassNameAlias ?? $requestClassName, + implode(', ', $args) + )) + ); + + $method->addBody('return $this->connector->send($request);'); + } + + $namespace->add($classType); + + return $classFile; + } +} diff --git a/src/Generator/Generators/ResponseGenerator.php b/src/Generator/Generators/ResponseGenerator.php new file mode 100644 index 000000000..25268d5f8 --- /dev/null +++ b/src/Generator/Generators/ResponseGenerator.php @@ -0,0 +1,157 @@ +traits = Arr::get($allTraits, Generator::$currentlyGenerating, []); + } + + public function generate(ApiSpecification $specification): PhpFile|array + { + $classes = []; + + foreach ($specification->responses as $response) { + $classes[] = $this->generateResponseClass($response); + } + + return $classes; + } + + public function generateResponseClass(Schema $schema): PhpFile + { + $className = NameHelper::responseClassName($schema->name); + [$classFile, $namespace, $classType] = $this->makeClass($className, $this->config->responseNamespaceSuffix); + + $namespace->addUse(BaseResponse::class); + + $classType + ->setFinal() + ->setExtends(BaseResponse::class); + + $classConstructor = $classType->addMethod('__construct'); + + $dtoNamespace = $this->config->dtoNamespace(); + $attributeMap = []; + $complexArrayTypes = []; + + if ($schema->type === SimpleType::ARRAY->value) { + $schema->items->name = NameHelper::safeVariableName($schema->name); + MethodGeneratorHelper::addParameterToMethod( + $classConstructor, + $schema, + namespace: $dtoNamespace, + promote: true, + visibility: 'public', + readonly: true, + ); + + if ($schema->name !== $schema->rawName) { + $attributeMap[$schema->name] = $schema->rawName; + } + + if (! Utils::isBuiltInType($schema->items->type)) { + $safeName = NameHelper::safeVariableName($schema->name); + $complexArrayTypes[$safeName] = $schema->items; + } + } else { + foreach ($schema->properties as $parameterName => $property) { + $safeName = NameHelper::safeVariableName($parameterName); + + // Clone property before modifying to avoid any weird downstream effects + $param = clone $property; + // Make sure the constructor parameter is named the same thing as the parameter + // in the original spec + $param->name = $safeName; + MethodGeneratorHelper::addParameterToMethod( + $classConstructor, + $param, + namespace: $dtoNamespace, + promote: true, + visibility: 'public', + readonly: true, + ); + + $type = $property->type; + if (! Utils::isBuiltInType($type)) { + $safeType = NameHelper::dtoClassName($type); + $type = "{$dtoNamespace}\\{$safeType}"; + $namespace->addUse($type); + } + + if ($parameterName !== $safeName) { + $attributeMap[$safeName] = $property->rawName; + } + + if ( + $property->type === SimpleType::ARRAY->value + && $property->items + && ! Utils::isBuiltInType($property->items->type) + ) { + $complexArrayTypes[$safeName] = $property->items; + } + } + } + + if ($attributeMap) { + $classType->addProperty('attributeMap', $attributeMap) + ->setStatic() + ->setType('array') + ->setProtected(); + } + + if ($complexArrayTypes) { + foreach ($complexArrayTypes as $name => $schema) { + if ($schema->isResponse) { + $type = NameHelper::responseClassName($schema->type); + $namespacePath = $this->config->responseNamespace(); + } else { + $type = NameHelper::dtoClassName($schema->type); + $namespacePath = $dtoNamespace; + } + + $fqn = "{$namespacePath}\\{$type}"; + $namespace->addUse($fqn); + + $literalType = new Literal(sprintf('%s::class', $type)); + $complexArrayTypes[$name] = [$literalType]; + } + $classType->addProperty('complexArrayTypes', $complexArrayTypes) + ->setStatic() + ->setType('array') + ->setProtected(); + } + + $traits = $this->traits[$className] ?? []; + foreach ($traits as $traitClass) { + $traitFullNs = PACKAGE_NAMESPACE."\\Traits\\$traitClass"; + $namespace->addUse($traitFullNs); + $classType->addTrait($traitFullNs); + } + + return $classFile; + } +} diff --git a/src/Generator/Package.php b/src/Generator/Package.php new file mode 100644 index 000000000..e561c1295 --- /dev/null +++ b/src/Generator/Package.php @@ -0,0 +1,40 @@ +normalize($rawVersion); + } + + /** + * Get the package's name. + */ + public static function name(): string + { + return json_decode(file_get_contents(__DIR__.'/../../composer.json'), true)['name']; + } + + /** + * Get the base namespace for the package. + */ + public static function namespace(): string + { + return json_decode(file_get_contents(GENERATOR_CONFIG_FILE), true)['namespace']; + } +} diff --git a/src/Generator/Schema.php b/src/Generator/Schema.php new file mode 100644 index 000000000..8a7a0d82d --- /dev/null +++ b/src/Generator/Schema.php @@ -0,0 +1,170 @@ + + */ + private array $versions = []; + + /** + * The decoded JSON data from the apis.json file. + */ + private static array $allSchemaData; + + public function __construct(public string $code, public ApiCategory $category) + { + if (! static::$allSchemaData) { + static::loadSchemaData(); + } + + $apiData = static::$allSchemaData[$this->category->value][$this->code]; + $this->name = $apiData['name']; + + $latestVersionIdx = count($apiData['versions']) - 1; + foreach ($apiData['versions'] as $i => $version) { + $this->versions[] = new SchemaVersion( + $this, + $version['url'], + // Casting to string because json_decode automatically casts numeric strings to ints + (string) $version['version'], + latest: $i === $latestVersionIdx, + deprecated: $version['deprecated'] ?? false, + selector: $version['selector'] ?? null, + ); + } + } + + /** + * Download all the versions of this schema. + */ + public function download(): void + { + $savePath = $this->path(true); + if (! file_exists($savePath)) { + mkdir($savePath, 0755, true); + } + + foreach ($this->versions as $version) { + $version->download(); + } + } + + /** + * Convert a raw Amazon schema to the schema format we need for generating code. + * + * @return string The path to the folder containing each of the converted versions of this schema. + */ + public function refactor(): string + { + foreach ($this->versions as $version) { + $version->refactor(); + } + + return $this->path(); + } + + /** + * Generate code for all the versions of this schema. + */ + public function generate(): void + { + foreach ($this->versions as $version) { + $version->generate(); + } + } + + /** + * Get the path where versions of this schema are stored. + * + * @param bool $upstream If true, return the path where original Amazon schemas are stored. + */ + public function path(bool $upstream = false): string + { + return MODEL_DIR.($upstream ? '/raw' : '')."/{$this->category->value}/{$this->code}"; + } + + /** + * Get all schemas. + * + * @return array + */ + public static function all(): array + { + return static::where([], []); + } + + /** + * Get metadata about each of the schemas that match the given filters. + * If $categories and/or $schemas are null, then all categories and/or + * schemas will be included. + * + * @param array|null $categories + * @param array|null $schemas + * @return array All the schemas that match the given filters. + * + * @throws InvalidArgumentException + */ + public static function where(array $categories, array $apiCodes): array + { + static::loadSchemaData(); + + $allCats = ApiCategory::values(); + $cats = null; + if ($categories === []) { + $cats = $allCats; + } else { + $cats = array_intersect($allCats, $categories); + } + + if (empty($cats)) { + throw new InvalidArgumentException('No matching categories found.'); + } + + $schemas = []; + foreach ($cats as $cat) { + $apis = null; + $allCatApis = array_keys(static::$allSchemaData[$cat]); + if ($apiCodes === []) { + $apis = $allCatApis; + } else { + $apis = array_intersect($allCatApis, $apiCodes); + } + + if (empty($apis)) { + echo "No matching API names found in the {$cat} category. Skipping...\n"; + } + + foreach ($apis as $apiCode) { + $schemas[] = new Schema($apiCode, ApiCategory::from($cat)); + } + } + + return $schemas; + } + + /** + * Load the raw schema data from resources/apis.json. + */ + private static function loadSchemaData(): void + { + static::$allSchemaData = json_decode(file_get_contents(static::API_DATA_FILE), true); + } +} diff --git a/src/Generator/Schema/SchemaVersion.php b/src/Generator/Schema/SchemaVersion.php new file mode 100644 index 000000000..841ddbe0d --- /dev/null +++ b/src/Generator/Schema/SchemaVersion.php @@ -0,0 +1,186 @@ +id(); + Generator::$currentlyGenerating = $schemaVersionCode; + + $baseNamespace = Package::namespace(); + $categoryNamespace = ucfirst($this->schema->category->value); + $schemaNamespace = $this->studlyName(); + + $inputPath = $this->path(); + $generator = Generator::make([ + 'namespace' => "$baseNamespace\\$categoryNamespace\\$schemaNamespace", + 'outputDir' => "src/$categoryNamespace/$schemaNamespace", + ]); + $result = $generator->run($inputPath); + $result->dumpFiles(); + + Generator::$currentlyGenerating = null; + } + + public function refactor(): void + { + $schema = json_decode(file_get_contents($this->path(true))); + + foreach ($schema->paths as $path => $operations) { + $ops = new stdClass; + foreach ($operations as $method => $operation) { + // Amazon sometimes puts random data in the operations list + if (! in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) { + continue; + } + + // Standardize tags + $operation->tags = [$this->studlyName()]; + + foreach ($operation->responses as $code => $response) { + $content = new stdClass; + foreach ($response->content as $contentType => $mediaType) { + // Sometimes Amazon puts response payload examples in the response content list, + // which is not valid OpenAPI spec. This regex will have some false positives, but + // it should be fine for our purposes. + $regex = '/^(application|audio|image|message|multipart|text|video)\/.+$/'; + if (! preg_match($regex, $contentType)) { + continue; + } + $content->{$contentType} = $mediaType; + } + $response->content = $content; + $operation->responses->{$code} = $response; + } + $ops->{$method} = $operation; + } + $schema->paths->{$path} = $operations; + } + + $schema = $this->modifySchema($schema); + + $path = $this->path(); + $pathDir = dirname($path); + if (! is_dir($pathDir)) { + mkdir($pathDir, 0755, true); + } + file_put_contents( + $path, + json_encode($schema, JSON_PRETTY_PRINT) + ); + } + + /** + * Download the schema, converting it from Swagger 2.0 to OpenAPI 3.0 in the process. + */ + public function download(): void + { + $client = new Client(); + $convertUrl = 'https://converter.swagger.io/api/convert'; + + if ($this->selector !== null) { + $fullPage = $client->get($this->url); + $html = HtmlDomParser::str_get_html($fullPage->getBody()->getContents()); + $rawSchemaData = $html->findOne($this->selector)->text(); + $originalJson = json_decode(html_entity_decode($rawSchemaData)); + + $res = $client->post($convertUrl, [ + 'json' => $originalJson, + ]); + } else { + $res = $client->get($convertUrl, [ + 'query' => ['url' => $this->url], + ]); + } + $json = json_decode($res->getBody()->getContents()); + + $path = $this->path(true); + $pathDir = dirname($path); + if (! is_dir($pathDir)) { + mkdir($pathDir, 0755, true); + } + file_put_contents( + $path, + json_encode($json, JSON_PRETTY_PRINT) + ); + } + + /** + * Get the path for this schema version. + * + * @param bool $upstream If true, return the path where original Amazon schemas are stored. + */ + public function path(bool $upstream = false): string + { + return "{$this->schema->path($upstream)}/v{$this->version}.json"; + } + + public function studlyName(): string + { + return Str::studly($this->schema->name).'V'.str_replace('-', '', $this->version); + } + + protected function id(): string + { + return "{$this->schema->category->value}.{$this->schema->code}.{$this->version}"; + } + + protected function modifySchema(stdClass &$schema): stdClass + { + $modifications = json_decode(file_get_contents(METADATA_DIR.'/modifications.json')); + + foreach ($schema->paths as $path => $_) { + if (! isset($modifications->{$path})) { + continue; + } + + foreach ($modifications->{$path} as $mod) { + $original = data_get($schema, $mod->path); + $modified = match ($mod->action) { + 'remove' => null, + 'replace' => $mod->value, + 'merge' => match (true) { + is_array($original) => array_merge($original, $mod->value), + is_object($original) => (object) array_merge((array) $original, (array) $mod->value), + default => throw new InvalidArgumentException('Cannot merge scalar schema values'), + }, + default => throw new InvalidArgumentException("Invalid schema modification action '{$mod->action}'"), + }; + + if ($modified === null) { + data_forget($schema, $mod->path); + } else { + data_set($schema, $mod->path, $modified); + } + } + } + + return $schema; + } +} diff --git a/src/Generator/constants.php b/src/Generator/constants.php new file mode 100644 index 000000000..372f7a5e7 --- /dev/null +++ b/src/Generator/constants.php @@ -0,0 +1,33 @@ +getConnector(); + $pendingRequest->authenticate($connector->grantlessAuth($this->scope)); + } +} diff --git a/src/Middleware/RestrictedDataToken.php b/src/Middleware/RestrictedDataToken.php new file mode 100644 index 000000000..2392d9801 --- /dev/null +++ b/src/Middleware/RestrictedDataToken.php @@ -0,0 +1,31 @@ +getConnector(); + if (! Endpoint::isSandbox($connector->endpoint)) { + $pendingRequest->authenticate($connector->restrictedAuth( + $this->path, + $this->method, + $this->knownDataElements + )); + } + } +} diff --git a/src/Middleware/RestrictedReport.php b/src/Middleware/RestrictedReport.php new file mode 100644 index 000000000..116d21a65 --- /dev/null +++ b/src/Middleware/RestrictedReport.php @@ -0,0 +1,35 @@ +query()->get('reportType'); + + if (! isset($reports[$reportType])) { + throw new InvalidArgumentException("Report type '{$reportType}' is not supported"); + } + + $connector = $pendingRequest->getConnector(); + if ( + ! $reports[$reportType]['restricted'] + || Endpoint::isSandbox(Endpoint::tryFrom($connector->endpoint)) + ) { + $pendingRequest->authenticate($connector->lwaAuth()); + } + + // The reportType key is not part of the actual API request. We added it to make it + // possible to automate the report RDT retrieval process. + $pendingRequest->query()->remove('reportType'); + } +} diff --git a/src/Seller/APlusContentV20201101/Api.php b/src/Seller/APlusContentV20201101/Api.php new file mode 100644 index 000000000..43d931a62 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Api.php @@ -0,0 +1,154 @@ +connector->send($request); + } + + /** + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + */ + public function createContentDocument( + PostContentDocumentRequest $postContentDocumentRequest, + string $marketplaceId, + ): Response { + $request = new CreateContentDocument($postContentDocumentRequest, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + * @param array $includedDataSet The set of A+ Content data types to include in the response. + */ + public function getContentDocument( + string $contentReferenceKey, + string $marketplaceId, + array $includedDataSet, + ): Response { + $request = new GetContentDocument($contentReferenceKey, $marketplaceId, $includedDataSet); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + */ + public function updateContentDocument( + string $contentReferenceKey, + PostContentDocumentRequest $postContentDocumentRequest, + string $marketplaceId, + ): Response { + $request = new UpdateContentDocument($contentReferenceKey, $postContentDocumentRequest, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + * @param ?array $includedDataSet The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. + * @param ?array $asinSet The set of ASINs. + * @param ?string $pageToken A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. + */ + public function listContentDocumentAsinRelations( + string $contentReferenceKey, + string $marketplaceId, + ?array $includedDataSet = null, + ?array $asinSet = null, + ?string $pageToken = null, + ): Response { + $request = new ListContentDocumentAsinRelations($contentReferenceKey, $marketplaceId, $includedDataSet, $asinSet, $pageToken); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + */ + public function postContentDocumentAsinRelations( + string $contentReferenceKey, + PostContentDocumentAsinRelationsRequest $postContentDocumentAsinRelationsRequest, + string $marketplaceId, + ): Response { + $request = new PostContentDocumentAsinRelations($contentReferenceKey, $postContentDocumentAsinRelationsRequest, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + * @param ?array $asinSet The set of ASINs. + */ + public function validateContentDocumentAsinRelations( + PostContentDocumentRequest $postContentDocumentRequest, + string $marketplaceId, + ?array $asinSet = null, + ): Response { + $request = new ValidateContentDocumentAsinRelations($postContentDocumentRequest, $marketplaceId, $asinSet); + + return $this->connector->send($request); + } + + /** + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + * @param string $asin The Amazon Standard Identification Number (ASIN). + * @param ?string $pageToken A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. + */ + public function searchContentPublishRecords(string $marketplaceId, string $asin, ?string $pageToken = null): Response + { + $request = new SearchContentPublishRecords($marketplaceId, $asin, $pageToken); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + */ + public function postContentDocumentApprovalSubmission(string $contentReferenceKey, string $marketplaceId): Response + { + $request = new PostContentDocumentApprovalSubmission($contentReferenceKey, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $contentReferenceKey The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. + * @param string $marketplaceId The identifier for the marketplace where the A+ Content is published. + */ + public function postContentDocumentSuspendSubmission(string $contentReferenceKey, string $marketplaceId): Response + { + $request = new PostContentDocumentSuspendSubmission($contentReferenceKey, $marketplaceId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/AplusPaginatedResponse.php b/src/Seller/APlusContentV20201101/Dto/AplusPaginatedResponse.php new file mode 100644 index 000000000..0417a0106 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/AplusPaginatedResponse.php @@ -0,0 +1,20 @@ + [Error::class]]; + + /** + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + * @param ?string $nextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. + */ + public function __construct( + public readonly ?array $warnings = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/AplusResponse.php b/src/Seller/APlusContentV20201101/Dto/AplusResponse.php new file mode 100644 index 000000000..0399ff546 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/AplusResponse.php @@ -0,0 +1,18 @@ + [Error::class]]; + + /** + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/AsinMetadata.php b/src/Seller/APlusContentV20201101/Dto/AsinMetadata.php new file mode 100644 index 000000000..5930a4534 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/AsinMetadata.php @@ -0,0 +1,26 @@ + [ContentModule::class]]; + + /** + * @param string $name The A+ Content document name. + * @param string $contentType The A+ Content document type. + * @param string $locale The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. + * **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ + * @param ContentModule[] $contentModuleList A list of A+ Content modules. + * @param ?string $contentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. + */ + public function __construct( + public readonly string $name, + public readonly string $contentType, + public readonly string $locale, + public readonly array $contentModuleList, + public readonly ?string $contentSubType = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/ContentMetadata.php b/src/Seller/APlusContentV20201101/Dto/ContentMetadata.php new file mode 100644 index 000000000..aaadec3d3 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/ContentMetadata.php @@ -0,0 +1,24 @@ + [TextItem::class]]; + + /** + * @param TextItem[] $textList + */ + public function __construct( + public readonly array $textList, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/PlainTextItem.php b/src/Seller/APlusContentV20201101/Dto/PlainTextItem.php new file mode 100644 index 000000000..f541a9795 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/PlainTextItem.php @@ -0,0 +1,18 @@ + [PlainTextItem::class]]; + + /** + * @param int $position The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module. + * @param ?ImageComponent $image A reference to an image, hosted in the A+ Content media library. + * @param ?string $title The comparison product title. + * @param ?string $asin The Amazon Standard Identification Number (ASIN). + * @param ?bool $highlight Determines whether this block of content is visually highlighted. + * @param PlainTextItem[]|null $metrics Comparison metrics for the product. + */ + public function __construct( + public readonly int $position, + public readonly ?ImageComponent $image = null, + public readonly ?string $title = null, + public readonly ?string $asin = null, + public readonly ?bool $highlight = null, + public readonly ?array $metrics = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/StandardComparisonTableModule.php b/src/Seller/APlusContentV20201101/Dto/StandardComparisonTableModule.php new file mode 100644 index 000000000..a95579754 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/StandardComparisonTableModule.php @@ -0,0 +1,23 @@ + [StandardComparisonProductBlock::class], + 'metricRowLabels' => [PlainTextItem::class], + ]; + + /** + * @param StandardComparisonProductBlock[]|null $productColumns + * @param PlainTextItem[]|null $metricRowLabels + */ + public function __construct( + public readonly ?array $productColumns = null, + public readonly ?array $metricRowLabels = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/StandardFourImageTextModule.php b/src/Seller/APlusContentV20201101/Dto/StandardFourImageTextModule.php new file mode 100644 index 000000000..a7ce5ade7 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/StandardFourImageTextModule.php @@ -0,0 +1,24 @@ + [StandardImageTextCaptionBlock::class]]; + + /** + * @param StandardImageTextCaptionBlock[]|null $blocks + */ + public function __construct( + public readonly ?array $blocks = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/StandardProductDescriptionModule.php b/src/Seller/APlusContentV20201101/Dto/StandardProductDescriptionModule.php new file mode 100644 index 000000000..4b999f451 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/StandardProductDescriptionModule.php @@ -0,0 +1,16 @@ + [StandardTextPairBlock::class]]; + + /** + * @param StandardTextPairBlock[] $specificationList The specification list. + * @param ?TextComponent $headline Rich text content. + * @param ?int $tableCount The number of tables to present. Features are evenly divided between the tables. + */ + public function __construct( + public readonly array $specificationList, + public readonly ?TextComponent $headline = null, + public readonly ?int $tableCount = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/StandardTextBlock.php b/src/Seller/APlusContentV20201101/Dto/StandardTextBlock.php new file mode 100644 index 000000000..fe9c88208 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/StandardTextBlock.php @@ -0,0 +1,18 @@ + [TextItem::class]]; + + /** + * @param TextItem[] $textList + */ + public function __construct( + public readonly array $textList, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/StandardTextModule.php b/src/Seller/APlusContentV20201101/Dto/StandardTextModule.php new file mode 100644 index 000000000..bba34ff4f --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/StandardTextModule.php @@ -0,0 +1,18 @@ + [Decorator::class]]; + + /** + * @param string $value The actual plain text. + * @param Decorator[]|null $decoratorSet A set of content decorators. + */ + public function __construct( + public readonly string $value, + public readonly ?array $decoratorSet = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Dto/TextItem.php b/src/Seller/APlusContentV20201101/Dto/TextItem.php new file mode 100644 index 000000000..bae7231c5 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Dto/TextItem.php @@ -0,0 +1,18 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return '/aplus/2020-11-01/contentDocuments'; + } + + public function createDtoFromResponse(Response $response): PostContentDocumentResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PostContentDocumentResponse::class, + 400, 401, 403, 404, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->postContentDocumentRequest->toArray(); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/GetContentDocument.php b/src/Seller/APlusContentV20201101/Requests/GetContentDocument.php new file mode 100644 index 000000000..4a0708f32 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/GetContentDocument.php @@ -0,0 +1,52 @@ + $this->marketplaceId, 'includedDataSet' => $this->includedDataSet]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}"; + } + + public function createDtoFromResponse(Response $response): GetContentDocumentResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetContentDocumentResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/ListContentDocumentAsinRelations.php b/src/Seller/APlusContentV20201101/Requests/ListContentDocumentAsinRelations.php new file mode 100644 index 000000000..3fe95899f --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/ListContentDocumentAsinRelations.php @@ -0,0 +1,61 @@ + $this->marketplaceId, + 'includedDataSet' => $this->includedDataSet, + 'asinSet' => $this->asinSet, + 'pageToken' => $this->pageToken, + ]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}/asins"; + } + + public function createDtoFromResponse(Response $response): ListContentDocumentAsinRelationsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListContentDocumentAsinRelationsResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/PostContentDocumentApprovalSubmission.php b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentApprovalSubmission.php new file mode 100644 index 000000000..f65d672c8 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentApprovalSubmission.php @@ -0,0 +1,54 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}/approvalSubmissions"; + } + + public function createDtoFromResponse(Response $response): PostContentDocumentApprovalSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PostContentDocumentApprovalSubmissionResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/PostContentDocumentAsinRelations.php b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentAsinRelations.php new file mode 100644 index 000000000..20ef6928d --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentAsinRelations.php @@ -0,0 +1,61 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}/asins"; + } + + public function createDtoFromResponse(Response $response): PostContentDocumentAsinRelationsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PostContentDocumentAsinRelationsResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->postContentDocumentAsinRelationsRequest->toArray(); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/PostContentDocumentSuspendSubmission.php b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentSuspendSubmission.php new file mode 100644 index 000000000..968441b4b --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/PostContentDocumentSuspendSubmission.php @@ -0,0 +1,54 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}/suspendSubmissions"; + } + + public function createDtoFromResponse(Response $response): PostContentDocumentSuspendSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PostContentDocumentSuspendSubmissionResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/SearchContentDocuments.php b/src/Seller/APlusContentV20201101/Requests/SearchContentDocuments.php new file mode 100644 index 000000000..7541fd9c2 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/SearchContentDocuments.php @@ -0,0 +1,50 @@ + $this->marketplaceId, 'pageToken' => $this->pageToken]); + } + + public function resolveEndpoint(): string + { + return '/aplus/2020-11-01/contentDocuments'; + } + + public function createDtoFromResponse(Response $response): SearchContentDocumentsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SearchContentDocumentsResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/SearchContentPublishRecords.php b/src/Seller/APlusContentV20201101/Requests/SearchContentPublishRecords.php new file mode 100644 index 000000000..c4c0e533b --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/SearchContentPublishRecords.php @@ -0,0 +1,52 @@ + $this->marketplaceId, 'asin' => $this->asin, 'pageToken' => $this->pageToken]); + } + + public function resolveEndpoint(): string + { + return '/aplus/2020-11-01/contentPublishRecords'; + } + + public function createDtoFromResponse(Response $response): SearchContentPublishRecordsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SearchContentPublishRecordsResponse::class, + 400, 401, 403, 404, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/UpdateContentDocument.php b/src/Seller/APlusContentV20201101/Requests/UpdateContentDocument.php new file mode 100644 index 000000000..c26d76ab3 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/UpdateContentDocument.php @@ -0,0 +1,61 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/aplus/2020-11-01/contentDocuments/{$this->contentReferenceKey}"; + } + + public function createDtoFromResponse(Response $response): PostContentDocumentResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PostContentDocumentResponse::class, + 400, 401, 403, 404, 410, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->postContentDocumentRequest->toArray(); + } +} diff --git a/src/Seller/APlusContentV20201101/Requests/ValidateContentDocumentAsinRelations.php b/src/Seller/APlusContentV20201101/Requests/ValidateContentDocumentAsinRelations.php new file mode 100644 index 000000000..b5c630ca5 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Requests/ValidateContentDocumentAsinRelations.php @@ -0,0 +1,61 @@ + $this->marketplaceId, 'asinSet' => $this->asinSet]); + } + + public function resolveEndpoint(): string + { + return '/aplus/2020-11-01/contentAsinValidations'; + } + + public function createDtoFromResponse(Response $response): ValidateContentDocumentAsinRelationsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ValidateContentDocumentAsinRelationsResponse::class, + 400, 401, 403, 404, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->postContentDocumentRequest->toArray(); + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/ErrorList.php b/src/Seller/APlusContentV20201101/Responses/ErrorList.php new file mode 100644 index 000000000..49038b603 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/GetContentDocumentResponse.php b/src/Seller/APlusContentV20201101/Responses/GetContentDocumentResponse.php new file mode 100644 index 000000000..34bdca180 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/GetContentDocumentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ContentRecord $contentRecord A content document with additional information for content management. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly ContentRecord $contentRecord, + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/ListContentDocumentAsinRelationsResponse.php b/src/Seller/APlusContentV20201101/Responses/ListContentDocumentAsinRelationsResponse.php new file mode 100644 index 000000000..8e092492f --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/ListContentDocumentAsinRelationsResponse.php @@ -0,0 +1,24 @@ + [AsinMetadata::class], 'warnings' => [Error::class]]; + + /** + * @param AsinMetadata[] $asinMetadataSet The set of ASIN metadata. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + * @param ?string $nextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. + */ + public function __construct( + public readonly array $asinMetadataSet, + public readonly ?array $warnings = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/PostContentDocumentApprovalSubmissionResponse.php b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentApprovalSubmissionResponse.php new file mode 100644 index 000000000..704b6730a --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentApprovalSubmissionResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/PostContentDocumentAsinRelationsResponse.php b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentAsinRelationsResponse.php new file mode 100644 index 000000000..af412366c --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentAsinRelationsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/PostContentDocumentResponse.php b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentResponse.php new file mode 100644 index 000000000..69e538d39 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentResponse.php @@ -0,0 +1,21 @@ + [Error::class]]; + + /** + * @param string $contentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly string $contentReferenceKey, + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/PostContentDocumentSuspendSubmissionResponse.php b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentSuspendSubmissionResponse.php new file mode 100644 index 000000000..d17469c57 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/PostContentDocumentSuspendSubmissionResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/SearchContentDocumentsResponse.php b/src/Seller/APlusContentV20201101/Responses/SearchContentDocumentsResponse.php new file mode 100644 index 000000000..884fad270 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/SearchContentDocumentsResponse.php @@ -0,0 +1,27 @@ + [ContentMetadataRecord::class], + 'warnings' => [Error::class], + ]; + + /** + * @param ContentMetadataRecord[] $contentMetadataRecords A list of A+ Content metadata records. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + * @param ?string $nextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. + */ + public function __construct( + public readonly array $contentMetadataRecords, + public readonly ?array $warnings = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/SearchContentPublishRecordsResponse.php b/src/Seller/APlusContentV20201101/Responses/SearchContentPublishRecordsResponse.php new file mode 100644 index 000000000..b1801e46a --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/SearchContentPublishRecordsResponse.php @@ -0,0 +1,27 @@ + [PublishRecord::class], + 'warnings' => [Error::class], + ]; + + /** + * @param PublishRecord[] $publishRecordList A list of A+ Content publishing records. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + * @param ?string $nextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. + */ + public function __construct( + public readonly array $publishRecordList, + public readonly ?array $warnings = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/APlusContentV20201101/Responses/ValidateContentDocumentAsinRelationsResponse.php b/src/Seller/APlusContentV20201101/Responses/ValidateContentDocumentAsinRelationsResponse.php new file mode 100644 index 000000000..9575c06f7 --- /dev/null +++ b/src/Seller/APlusContentV20201101/Responses/ValidateContentDocumentAsinRelationsResponse.php @@ -0,0 +1,21 @@ + [Error::class], 'warnings' => [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + * @param Error[]|null $warnings A set of messages to the user, such as warnings or comments. + */ + public function __construct( + public readonly array $errors, + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/ApplicationManagementV20231130/Api.php b/src/Seller/ApplicationManagementV20231130/Api.php new file mode 100644 index 000000000..7ea508a29 --- /dev/null +++ b/src/Seller/ApplicationManagementV20231130/Api.php @@ -0,0 +1,17 @@ +connector->send($request); + } +} diff --git a/src/Seller/ApplicationManagementV20231130/Dto/Error.php b/src/Seller/ApplicationManagementV20231130/Dto/Error.php new file mode 100644 index 000000000..fb6305fcf --- /dev/null +++ b/src/Seller/ApplicationManagementV20231130/Dto/Error.php @@ -0,0 +1,20 @@ +status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ApplicationManagementV20231130/Responses/ErrorList.php b/src/Seller/ApplicationManagementV20231130/Responses/ErrorList.php new file mode 100644 index 000000000..e7912e4a0 --- /dev/null +++ b/src/Seller/ApplicationManagementV20231130/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors array of errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/AuthorizationV1/Api.php b/src/Seller/AuthorizationV1/Api.php new file mode 100644 index 000000000..808bcf2ec --- /dev/null +++ b/src/Seller/AuthorizationV1/Api.php @@ -0,0 +1,22 @@ +connector->send($request); + } +} diff --git a/src/Seller/AuthorizationV1/Dto/AuthorizationCode.php b/src/Seller/AuthorizationV1/Dto/AuthorizationCode.php new file mode 100644 index 000000000..de8b21573 --- /dev/null +++ b/src/Seller/AuthorizationV1/Dto/AuthorizationCode.php @@ -0,0 +1,16 @@ +middleware()->onRequest(new Grantless(GrantlessScope::TOKEN_MIGRATION)); + } + + public function defaultQuery(): array + { + return array_filter([ + 'sellingPartnerId' => $this->sellingPartnerId, + 'developerId' => $this->developerId, + 'mwsAuthToken' => $this->mwsAuthToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/authorization/v1/authorizationCode'; + } + + public function createDtoFromResponse(Response $response): GetAuthorizationCodeResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetAuthorizationCodeResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/AuthorizationV1/Responses/GetAuthorizationCodeResponse.php b/src/Seller/AuthorizationV1/Responses/GetAuthorizationCodeResponse.php new file mode 100644 index 000000000..1dd5f9db2 --- /dev/null +++ b/src/Seller/AuthorizationV1/Responses/GetAuthorizationCodeResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?AuthorizationCode $payload A Login with Amazon (LWA) authorization code. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?AuthorizationCode $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Api.php b/src/Seller/CatalogItemsV0/Api.php new file mode 100644 index 000000000..41fc9e5e1 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Api.php @@ -0,0 +1,63 @@ +connector->send($request); + } + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for the item. + */ + public function getCatalogItem(string $asin, string $marketplaceId): Response + { + $request = new GetCatalogItem($asin, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for the item. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $sellerSku Used to identify items in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. + */ + public function listCatalogCategories( + string $marketplaceId, + ?string $asin = null, + ?string $sellerSku = null, + ): Response { + $request = new ListCatalogCategories($marketplaceId, $asin, $sellerSku); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/AsinIdentifier.php b/src/Seller/CatalogItemsV0/Dto/AsinIdentifier.php new file mode 100644 index 000000000..83fd26655 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/AsinIdentifier.php @@ -0,0 +1,20 @@ + 'MarketplaceId', 'asin' => 'ASIN']; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $asin, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/AttributeSetListType.php b/src/Seller/CatalogItemsV0/Dto/AttributeSetListType.php new file mode 100644 index 000000000..74c82d84f --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/AttributeSetListType.php @@ -0,0 +1,307 @@ + 'Actor', + 'artist' => 'Artist', + 'aspectRatio' => 'AspectRatio', + 'audienceRating' => 'AudienceRating', + 'author' => 'Author', + 'backFinding' => 'BackFinding', + 'bandMaterialType' => 'BandMaterialType', + 'binding' => 'Binding', + 'blurayRegion' => 'BlurayRegion', + 'brand' => 'Brand', + 'ceroAgeRating' => 'CeroAgeRating', + 'chainType' => 'ChainType', + 'claspType' => 'ClaspType', + 'color' => 'Color', + 'cpuManufacturer' => 'CpuManufacturer', + 'cpuSpeed' => 'CpuSpeed', + 'cpuType' => 'CpuType', + 'creator' => 'Creator', + 'department' => 'Department', + 'director' => 'Director', + 'displaySize' => 'DisplaySize', + 'edition' => 'Edition', + 'episodeSequence' => 'EpisodeSequence', + 'esrbAgeRating' => 'EsrbAgeRating', + 'feature' => 'Feature', + 'flavor' => 'Flavor', + 'format' => 'Format', + 'gemType' => 'GemType', + 'genre' => 'Genre', + 'golfClubFlex' => 'GolfClubFlex', + 'golfClubLoft' => 'GolfClubLoft', + 'handOrientation' => 'HandOrientation', + 'hardDiskInterface' => 'HardDiskInterface', + 'hardDiskSize' => 'HardDiskSize', + 'hardwarePlatform' => 'HardwarePlatform', + 'hazardousMaterialType' => 'HazardousMaterialType', + 'itemDimensions' => 'ItemDimensions', + 'isAdultProduct' => 'IsAdultProduct', + 'isAutographed' => 'IsAutographed', + 'isEligibleForTradeIn' => 'IsEligibleForTradeIn', + 'isMemorabilia' => 'IsMemorabilia', + 'issuesPerYear' => 'IssuesPerYear', + 'itemPartNumber' => 'ItemPartNumber', + 'label' => 'Label', + 'languages' => 'Languages', + 'legalDisclaimer' => 'LegalDisclaimer', + 'listPrice' => 'ListPrice', + 'manufacturer' => 'Manufacturer', + 'manufacturerMaximumAge' => 'ManufacturerMaximumAge', + 'manufacturerMinimumAge' => 'ManufacturerMinimumAge', + 'manufacturerPartsWarrantyDescription' => 'ManufacturerPartsWarrantyDescription', + 'materialType' => 'MaterialType', + 'maximumResolution' => 'MaximumResolution', + 'mediaType' => 'MediaType', + 'metalStamp' => 'MetalStamp', + 'metalType' => 'MetalType', + 'model' => 'Model', + 'numberOfDiscs' => 'NumberOfDiscs', + 'numberOfIssues' => 'NumberOfIssues', + 'numberOfItems' => 'NumberOfItems', + 'numberOfPages' => 'NumberOfPages', + 'numberOfTracks' => 'NumberOfTracks', + 'operatingSystem' => 'OperatingSystem', + 'opticalZoom' => 'OpticalZoom', + 'packageDimensions' => 'PackageDimensions', + 'packageQuantity' => 'PackageQuantity', + 'partNumber' => 'PartNumber', + 'pegiRating' => 'PegiRating', + 'platform' => 'Platform', + 'processorCount' => 'ProcessorCount', + 'productGroup' => 'ProductGroup', + 'productTypeName' => 'ProductTypeName', + 'productTypeSubcategory' => 'ProductTypeSubcategory', + 'publicationDate' => 'PublicationDate', + 'publisher' => 'Publisher', + 'regionCode' => 'RegionCode', + 'releaseDate' => 'ReleaseDate', + 'ringSize' => 'RingSize', + 'runningTime' => 'RunningTime', + 'shaftMaterial' => 'ShaftMaterial', + 'scent' => 'Scent', + 'seasonSequence' => 'SeasonSequence', + 'seikodoProductCode' => 'SeikodoProductCode', + 'size' => 'Size', + 'sizePerPearl' => 'SizePerPearl', + 'smallImage' => 'SmallImage', + 'studio' => 'Studio', + 'subscriptionLength' => 'SubscriptionLength', + 'systemMemorySize' => 'SystemMemorySize', + 'systemMemoryType' => 'SystemMemoryType', + 'theatricalReleaseDate' => 'TheatricalReleaseDate', + 'title' => 'Title', + 'totalDiamondWeight' => 'TotalDiamondWeight', + 'totalGemWeight' => 'TotalGemWeight', + 'warranty' => 'Warranty', + 'weeeTaxValue' => 'WeeeTaxValue', + ]; + + protected static array $complexArrayTypes = ['creator' => [CreatorType::class], 'languages' => [LanguageType::class]]; + + /** + * @param ?string[] $actor The actor attributes of the item. + * @param ?string[] $artist The artist attributes of the item. + * @param ?string $aspectRatio The aspect ratio attribute of the item. + * @param ?string $audienceRating The audience rating attribute of the item. + * @param ?string[] $author The author attributes of the item. + * @param ?string $backFinding The back finding attribute of the item. + * @param ?string $bandMaterialType The band material type attribute of the item. + * @param ?string $binding The binding attribute of the item. + * @param ?string $blurayRegion The Bluray region attribute of the item. + * @param ?string $brand The brand attribute of the item. + * @param ?string $ceroAgeRating The CERO age rating attribute of the item. + * @param ?string $chainType The chain type attribute of the item. + * @param ?string $claspType The clasp type attribute of the item. + * @param ?string $color The color attribute of the item. + * @param ?string $cpuManufacturer The CPU manufacturer attribute of the item. + * @param ?DecimalWithUnits $cpuSpeed The decimal value and unit. + * @param ?string $cpuType The CPU type attribute of the item. + * @param CreatorType[]|null $creator The creator attributes of the item. + * @param ?string $department The department attribute of the item. + * @param ?string[] $director The director attributes of the item. + * @param ?DecimalWithUnits $displaySize The decimal value and unit. + * @param ?string $edition The edition attribute of the item. + * @param ?string $episodeSequence The episode sequence attribute of the item. + * @param ?string $esrbAgeRating The ESRB age rating attribute of the item. + * @param ?string[] $feature The feature attributes of the item + * @param ?string $flavor The flavor attribute of the item. + * @param ?string[] $format The format attributes of the item. + * @param ?string[] $gemType The gem type attributes of the item. + * @param ?string $genre The genre attribute of the item. + * @param ?string $golfClubFlex The golf club flex attribute of the item. + * @param ?DecimalWithUnits $golfClubLoft The decimal value and unit. + * @param ?string $handOrientation The hand orientation attribute of the item. + * @param ?string $hardDiskInterface The hard disk interface attribute of the item. + * @param ?DecimalWithUnits $hardDiskSize The decimal value and unit. + * @param ?string $hardwarePlatform The hardware platform attribute of the item. + * @param ?string $hazardousMaterialType The hazardous material type attribute of the item. + * @param ?DimensionType $itemDimensions The dimension type attribute of an item. + * @param ?bool $isAdultProduct The adult product attribute of the item. + * @param ?bool $isAutographed The autographed attribute of the item. + * @param ?bool $isEligibleForTradeIn The is eligible for trade in attribute of the item. + * @param ?bool $isMemorabilia The is memorabilia attribute of the item. + * @param ?string $issuesPerYear The issues per year attribute of the item. + * @param ?string $itemPartNumber The item part number attribute of the item. + * @param ?string $label The label attribute of the item. + * @param LanguageType[]|null $languages The languages attribute of the item. + * @param ?string $legalDisclaimer The legal disclaimer attribute of the item. + * @param ?Price $listPrice The price attribute of the item. + * @param ?string $manufacturer The manufacturer attribute of the item. + * @param ?DecimalWithUnits $manufacturerMaximumAge The decimal value and unit. + * @param ?DecimalWithUnits $manufacturerMinimumAge The decimal value and unit. + * @param ?string $manufacturerPartsWarrantyDescription The manufacturer parts warranty description attribute of the item. + * @param ?string[] $materialType The material type attributes of the item. + * @param ?DecimalWithUnits $maximumResolution The decimal value and unit. + * @param ?string[] $mediaType The media type attributes of the item. + * @param ?string $metalStamp The metal stamp attribute of the item. + * @param ?string $metalType The metal type attribute of the item. + * @param ?string $model The model attribute of the item. + * @param ?int $numberOfDiscs The number of discs attribute of the item. + * @param ?int $numberOfIssues The number of issues attribute of the item. + * @param ?int $numberOfItems The number of items attribute of the item. + * @param ?int $numberOfPages The number of pages attribute of the item. + * @param ?int $numberOfTracks The number of tracks attribute of the item. + * @param ?string[] $operatingSystem The operating system attributes of the item. + * @param ?DecimalWithUnits $opticalZoom The decimal value and unit. + * @param ?DimensionType $packageDimensions The dimension type attribute of an item. + * @param ?int $packageQuantity The package quantity attribute of the item. + * @param ?string $partNumber The part number attribute of the item. + * @param ?string $pegiRating The PEGI rating attribute of the item. + * @param ?string[] $platform The platform attributes of the item. + * @param ?int $processorCount The processor count attribute of the item. + * @param ?string $productGroup The product group attribute of the item. + * @param ?string $productTypeName The product type name attribute of the item. + * @param ?string $productTypeSubcategory The product type subcategory attribute of the item. + * @param ?string $publicationDate The publication date attribute of the item. + * @param ?string $publisher The publisher attribute of the item. + * @param ?string $regionCode The region code attribute of the item. + * @param ?string $releaseDate The release date attribute of the item. + * @param ?string $ringSize The ring size attribute of the item. + * @param ?DecimalWithUnits $runningTime The decimal value and unit. + * @param ?string $shaftMaterial The shaft material attribute of the item. + * @param ?string $scent The scent attribute of the item. + * @param ?string $seasonSequence The season sequence attribute of the item. + * @param ?string $seikodoProductCode The Seikodo product code attribute of the item. + * @param ?string $size The size attribute of the item. + * @param ?string $sizePerPearl The size per pearl attribute of the item. + * @param ?Image $smallImage The image attribute of the item. + * @param ?string $studio The studio attribute of the item. + * @param ?DecimalWithUnits $subscriptionLength The decimal value and unit. + * @param ?DecimalWithUnits $systemMemorySize The decimal value and unit. + * @param ?string $systemMemoryType The system memory type attribute of the item. + * @param ?string $theatricalReleaseDate The theatrical release date attribute of the item. + * @param ?string $title The title attribute of the item. + * @param ?DecimalWithUnits $totalDiamondWeight The decimal value and unit. + * @param ?DecimalWithUnits $totalGemWeight The decimal value and unit. + * @param ?string $warranty The warranty attribute of the item. + * @param ?Price $weeeTaxValue The price attribute of the item. + */ + public function __construct( + public readonly ?array $actor = null, + public readonly ?array $artist = null, + public readonly ?string $aspectRatio = null, + public readonly ?string $audienceRating = null, + public readonly ?array $author = null, + public readonly ?string $backFinding = null, + public readonly ?string $bandMaterialType = null, + public readonly ?string $binding = null, + public readonly ?string $blurayRegion = null, + public readonly ?string $brand = null, + public readonly ?string $ceroAgeRating = null, + public readonly ?string $chainType = null, + public readonly ?string $claspType = null, + public readonly ?string $color = null, + public readonly ?string $cpuManufacturer = null, + public readonly ?DecimalWithUnits $cpuSpeed = null, + public readonly ?string $cpuType = null, + public readonly ?array $creator = null, + public readonly ?string $department = null, + public readonly ?array $director = null, + public readonly ?DecimalWithUnits $displaySize = null, + public readonly ?string $edition = null, + public readonly ?string $episodeSequence = null, + public readonly ?string $esrbAgeRating = null, + public readonly ?array $feature = null, + public readonly ?string $flavor = null, + public readonly ?array $format = null, + public readonly ?array $gemType = null, + public readonly ?string $genre = null, + public readonly ?string $golfClubFlex = null, + public readonly ?DecimalWithUnits $golfClubLoft = null, + public readonly ?string $handOrientation = null, + public readonly ?string $hardDiskInterface = null, + public readonly ?DecimalWithUnits $hardDiskSize = null, + public readonly ?string $hardwarePlatform = null, + public readonly ?string $hazardousMaterialType = null, + public readonly ?DimensionType $itemDimensions = null, + public readonly ?bool $isAdultProduct = null, + public readonly ?bool $isAutographed = null, + public readonly ?bool $isEligibleForTradeIn = null, + public readonly ?bool $isMemorabilia = null, + public readonly ?string $issuesPerYear = null, + public readonly ?string $itemPartNumber = null, + public readonly ?string $label = null, + public readonly ?array $languages = null, + public readonly ?string $legalDisclaimer = null, + public readonly ?Price $listPrice = null, + public readonly ?string $manufacturer = null, + public readonly ?DecimalWithUnits $manufacturerMaximumAge = null, + public readonly ?DecimalWithUnits $manufacturerMinimumAge = null, + public readonly ?string $manufacturerPartsWarrantyDescription = null, + public readonly ?array $materialType = null, + public readonly ?DecimalWithUnits $maximumResolution = null, + public readonly ?array $mediaType = null, + public readonly ?string $metalStamp = null, + public readonly ?string $metalType = null, + public readonly ?string $model = null, + public readonly ?int $numberOfDiscs = null, + public readonly ?int $numberOfIssues = null, + public readonly ?int $numberOfItems = null, + public readonly ?int $numberOfPages = null, + public readonly ?int $numberOfTracks = null, + public readonly ?array $operatingSystem = null, + public readonly ?DecimalWithUnits $opticalZoom = null, + public readonly ?DimensionType $packageDimensions = null, + public readonly ?int $packageQuantity = null, + public readonly ?string $partNumber = null, + public readonly ?string $pegiRating = null, + public readonly ?array $platform = null, + public readonly ?int $processorCount = null, + public readonly ?string $productGroup = null, + public readonly ?string $productTypeName = null, + public readonly ?string $productTypeSubcategory = null, + public readonly ?string $publicationDate = null, + public readonly ?string $publisher = null, + public readonly ?string $regionCode = null, + public readonly ?string $releaseDate = null, + public readonly ?string $ringSize = null, + public readonly ?DecimalWithUnits $runningTime = null, + public readonly ?string $shaftMaterial = null, + public readonly ?string $scent = null, + public readonly ?string $seasonSequence = null, + public readonly ?string $seikodoProductCode = null, + public readonly ?string $size = null, + public readonly ?string $sizePerPearl = null, + public readonly ?Image $smallImage = null, + public readonly ?string $studio = null, + public readonly ?DecimalWithUnits $subscriptionLength = null, + public readonly ?DecimalWithUnits $systemMemorySize = null, + public readonly ?string $systemMemoryType = null, + public readonly ?string $theatricalReleaseDate = null, + public readonly ?string $title = null, + public readonly ?DecimalWithUnits $totalDiamondWeight = null, + public readonly ?DecimalWithUnits $totalGemWeight = null, + public readonly ?string $warranty = null, + public readonly ?Price $weeeTaxValue = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/Categories.php b/src/Seller/CatalogItemsV0/Dto/Categories.php new file mode 100644 index 000000000..25016e5df --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/Categories.php @@ -0,0 +1,25 @@ + 'ProductCategoryId', + 'productCategoryName' => 'ProductCategoryName', + ]; + + /** + * @param ?string $productCategoryId The identifier for the product category (or browse node). + * @param ?string $productCategoryName The name of the product category (or browse node). + * @param ?mixed[] $parent The parent product category. + */ + public function __construct( + public readonly ?string $productCategoryId = null, + public readonly ?string $productCategoryName = null, + public readonly ?array $parent = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/CreatorType.php b/src/Seller/CatalogItemsV0/Dto/CreatorType.php new file mode 100644 index 000000000..938b58ca3 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/CreatorType.php @@ -0,0 +1,20 @@ + 'Role']; + + /** + * @param ?string $value The value of the attribute. + * @param ?string $role The role of the value. + */ + public function __construct( + public readonly ?string $value = null, + public readonly ?string $role = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/DecimalWithUnits.php b/src/Seller/CatalogItemsV0/Dto/DecimalWithUnits.php new file mode 100644 index 000000000..bc1ae046a --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/DecimalWithUnits.php @@ -0,0 +1,20 @@ + 'Units']; + + /** + * @param ?float $value The decimal value. + * @param ?string $units The unit of the decimal value. + */ + public function __construct( + public readonly ?float $value = null, + public readonly ?string $units = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/DimensionType.php b/src/Seller/CatalogItemsV0/Dto/DimensionType.php new file mode 100644 index 000000000..4d3f3e61d --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/DimensionType.php @@ -0,0 +1,29 @@ + 'Height', + 'length' => 'Length', + 'width' => 'Width', + 'weight' => 'Weight', + ]; + + /** + * @param ?DecimalWithUnits $height The decimal value and unit. + * @param ?DecimalWithUnits $length The decimal value and unit. + * @param ?DecimalWithUnits $width The decimal value and unit. + * @param ?DecimalWithUnits $weight The decimal value and unit. + */ + public function __construct( + public readonly ?DecimalWithUnits $height = null, + public readonly ?DecimalWithUnits $length = null, + public readonly ?DecimalWithUnits $width = null, + public readonly ?DecimalWithUnits $weight = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/Error.php b/src/Seller/CatalogItemsV0/Dto/Error.php new file mode 100644 index 000000000..9d6ec9afb --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'MarketplaceASIN', 'skuIdentifier' => 'SKUIdentifier']; + + /** + * @param ?AsinIdentifier $marketplaceAsin + * @param ?SellerSkuIdentifier $skuIdentifier + */ + public function __construct( + public readonly ?AsinIdentifier $marketplaceAsin = null, + public readonly ?SellerSkuIdentifier $skuIdentifier = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/Image.php b/src/Seller/CatalogItemsV0/Dto/Image.php new file mode 100644 index 000000000..47e555c99 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/Image.php @@ -0,0 +1,22 @@ + 'URL', 'height' => 'Height', 'width' => 'Width']; + + /** + * @param ?string $url The image URL attribute of the item. + * @param ?DecimalWithUnits $height The decimal value and unit. + * @param ?DecimalWithUnits $width The decimal value and unit. + */ + public function __construct( + public readonly ?string $url = null, + public readonly ?DecimalWithUnits $height = null, + public readonly ?DecimalWithUnits $width = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/Item.php b/src/Seller/CatalogItemsV0/Dto/Item.php new file mode 100644 index 000000000..ca2c086aa --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/Item.php @@ -0,0 +1,34 @@ + 'Identifiers', + 'attributeSets' => 'AttributeSets', + 'relationships' => 'Relationships', + 'salesRankings' => 'SalesRankings', + ]; + + protected static array $complexArrayTypes = [ + 'attributeSets' => [AttributeSetListType::class], + 'relationships' => [RelationshipType::class], + 'salesRankings' => [SalesRankType::class], + ]; + + /** + * @param AttributeSetListType[]|null $attributeSets A list of attributes for the item. + * @param RelationshipType[]|null $relationships A list of variation relationship information, if applicable for the item. + * @param SalesRankType[]|null $salesRankings A list of sales rank information for the item by category. + */ + public function __construct( + public readonly IdentifierType $identifiers, + public readonly ?array $attributeSets = null, + public readonly ?array $relationships = null, + public readonly ?array $salesRankings = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/LanguageType.php b/src/Seller/CatalogItemsV0/Dto/LanguageType.php new file mode 100644 index 000000000..3cadfca10 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/LanguageType.php @@ -0,0 +1,22 @@ + 'Name', 'type' => 'Type', 'audioFormat' => 'AudioFormat']; + + /** + * @param ?string $name The name attribute of the item. + * @param ?string $type The type attribute of the item. + * @param ?string $audioFormat The audio format attribute of the item. + */ + public function __construct( + public readonly ?string $name = null, + public readonly ?string $type = null, + public readonly ?string $audioFormat = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/ListMatchingItemsResponse.php b/src/Seller/CatalogItemsV0/Dto/ListMatchingItemsResponse.php new file mode 100644 index 000000000..d1d34f306 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/ListMatchingItemsResponse.php @@ -0,0 +1,20 @@ + 'Items']; + + protected static array $complexArrayTypes = ['items' => [Item::class]]; + + /** + * @param Item[]|null $items A list of items. + */ + public function __construct( + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/Price.php b/src/Seller/CatalogItemsV0/Dto/Price.php new file mode 100644 index 000000000..c88fad828 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/Price.php @@ -0,0 +1,20 @@ + 'Amount', 'currencyCode' => 'CurrencyCode']; + + /** + * @param ?float $amount The amount. + * @param ?string $currencyCode The currency code of the amount. + */ + public function __construct( + public readonly ?float $amount = null, + public readonly ?string $currencyCode = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/RelationshipType.php b/src/Seller/CatalogItemsV0/Dto/RelationshipType.php new file mode 100644 index 000000000..1c018d185 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/RelationshipType.php @@ -0,0 +1,86 @@ + 'Identifiers', + 'color' => 'Color', + 'edition' => 'Edition', + 'flavor' => 'Flavor', + 'gemType' => 'GemType', + 'golfClubFlex' => 'GolfClubFlex', + 'handOrientation' => 'HandOrientation', + 'hardwarePlatform' => 'HardwarePlatform', + 'materialType' => 'MaterialType', + 'metalType' => 'MetalType', + 'model' => 'Model', + 'operatingSystem' => 'OperatingSystem', + 'productTypeSubcategory' => 'ProductTypeSubcategory', + 'ringSize' => 'RingSize', + 'shaftMaterial' => 'ShaftMaterial', + 'scent' => 'Scent', + 'size' => 'Size', + 'sizePerPearl' => 'SizePerPearl', + 'golfClubLoft' => 'GolfClubLoft', + 'totalDiamondWeight' => 'TotalDiamondWeight', + 'totalGemWeight' => 'TotalGemWeight', + 'packageQuantity' => 'PackageQuantity', + 'itemDimensions' => 'ItemDimensions', + ]; + + /** + * @param ?IdentifierType $identifiers + * @param ?string $color The color variation of the item. + * @param ?string $edition The edition variation of the item. + * @param ?string $flavor The flavor variation of the item. + * @param ?string[] $gemType The gem type attributes of the item. + * @param ?string $golfClubFlex The golf club flex variation of an item. + * @param ?string $handOrientation The hand orientation variation of an item. + * @param ?string $hardwarePlatform The hardware platform variation of an item. + * @param ?string[] $materialType The material type attributes of the item. + * @param ?string $metalType The metal type variation of an item. + * @param ?string $model The model variation of an item. + * @param ?string[] $operatingSystem The operating system attributes of the item. + * @param ?string $productTypeSubcategory The product type subcategory variation of an item. + * @param ?string $ringSize The ring size variation of an item. + * @param ?string $shaftMaterial The shaft material variation of an item. + * @param ?string $scent The scent variation of an item. + * @param ?string $size The size variation of an item. + * @param ?string $sizePerPearl The size per pearl variation of an item. + * @param ?DecimalWithUnits $golfClubLoft The decimal value and unit. + * @param ?DecimalWithUnits $totalDiamondWeight The decimal value and unit. + * @param ?DecimalWithUnits $totalGemWeight The decimal value and unit. + * @param ?int $packageQuantity The package quantity variation of an item. + * @param ?DimensionType $itemDimensions The dimension type attribute of an item. + */ + public function __construct( + public readonly ?IdentifierType $identifiers = null, + public readonly ?string $color = null, + public readonly ?string $edition = null, + public readonly ?string $flavor = null, + public readonly ?array $gemType = null, + public readonly ?string $golfClubFlex = null, + public readonly ?string $handOrientation = null, + public readonly ?string $hardwarePlatform = null, + public readonly ?array $materialType = null, + public readonly ?string $metalType = null, + public readonly ?string $model = null, + public readonly ?array $operatingSystem = null, + public readonly ?string $productTypeSubcategory = null, + public readonly ?string $ringSize = null, + public readonly ?string $shaftMaterial = null, + public readonly ?string $scent = null, + public readonly ?string $size = null, + public readonly ?string $sizePerPearl = null, + public readonly ?DecimalWithUnits $golfClubLoft = null, + public readonly ?DecimalWithUnits $totalDiamondWeight = null, + public readonly ?DecimalWithUnits $totalGemWeight = null, + public readonly ?int $packageQuantity = null, + public readonly ?DimensionType $itemDimensions = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/SalesRankType.php b/src/Seller/CatalogItemsV0/Dto/SalesRankType.php new file mode 100644 index 000000000..d479b1543 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/SalesRankType.php @@ -0,0 +1,20 @@ + 'ProductCategoryId', 'rank' => 'Rank']; + + /** + * @param string $productCategoryId Identifies the item category from which the sales rank is taken. + * @param int $rank The sales rank of the item within the item category. + */ + public function __construct( + public readonly string $productCategoryId, + public readonly int $rank, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Dto/SellerSkuIdentifier.php b/src/Seller/CatalogItemsV0/Dto/SellerSkuIdentifier.php new file mode 100644 index 000000000..d64f81bbc --- /dev/null +++ b/src/Seller/CatalogItemsV0/Dto/SellerSkuIdentifier.php @@ -0,0 +1,26 @@ + 'MarketplaceId', + 'sellerId' => 'SellerId', + 'sellerSku' => 'SellerSKU', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $sellerId The seller identifier submitted for the operation. + * @param string $sellerSku The seller stock keeping unit (SKU) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $sellerId, + public readonly string $sellerSku, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Requests/GetCatalogItem.php b/src/Seller/CatalogItemsV0/Requests/GetCatalogItem.php new file mode 100644 index 000000000..265350d90 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Requests/GetCatalogItem.php @@ -0,0 +1,48 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/catalog/v0/items/{$this->asin}"; + } + + public function createDtoFromResponse(Response $response): GetCatalogItemResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetCatalogItemResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV0/Requests/ListCatalogCategories.php b/src/Seller/CatalogItemsV0/Requests/ListCatalogCategories.php new file mode 100644 index 000000000..139f3f368 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Requests/ListCatalogCategories.php @@ -0,0 +1,50 @@ + $this->marketplaceId, 'ASIN' => $this->asin, 'SellerSKU' => $this->sellerSku]); + } + + public function resolveEndpoint(): string + { + return '/catalog/v0/categories'; + } + + public function createDtoFromResponse(Response $response): ListCatalogCategoriesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ListCatalogCategoriesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV0/Requests/ListCatalogItems.php b/src/Seller/CatalogItemsV0/Requests/ListCatalogItems.php new file mode 100644 index 000000000..2676c5a9c --- /dev/null +++ b/src/Seller/CatalogItemsV0/Requests/ListCatalogItems.php @@ -0,0 +1,69 @@ + $this->marketplaceId, + 'Query' => $this->query, + 'QueryContextId' => $this->queryContextId, + 'SellerSKU' => $this->sellerSku, + 'UPC' => $this->upc, + 'EAN' => $this->ean, + 'ISBN' => $this->isbn, + 'JAN' => $this->jan, + ]); + } + + public function resolveEndpoint(): string + { + return '/catalog/v0/items'; + } + + public function createDtoFromResponse(Response $response): ListCatalogItemsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ListCatalogItemsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV0/Responses/GetCatalogItemResponse.php b/src/Seller/CatalogItemsV0/Responses/GetCatalogItemResponse.php new file mode 100644 index 000000000..77b0676fa --- /dev/null +++ b/src/Seller/CatalogItemsV0/Responses/GetCatalogItemResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Item $payload An item in the Amazon catalog. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Item $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Responses/ListCatalogCategoriesResponse.php b/src/Seller/CatalogItemsV0/Responses/ListCatalogCategoriesResponse.php new file mode 100644 index 000000000..958f08f17 --- /dev/null +++ b/src/Seller/CatalogItemsV0/Responses/ListCatalogCategoriesResponse.php @@ -0,0 +1,22 @@ + [Categories::class], 'errors' => [Error::class]]; + + /** + * @param Categories[]|null $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV0/Responses/ListCatalogItemsResponse.php b/src/Seller/CatalogItemsV0/Responses/ListCatalogItemsResponse.php new file mode 100644 index 000000000..efc25944e --- /dev/null +++ b/src/Seller/CatalogItemsV0/Responses/ListCatalogItemsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ListMatchingItemsResponse $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ListMatchingItemsResponse $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Api.php b/src/Seller/CatalogItemsV20201201/Api.php new file mode 100644 index 000000000..fac91735a --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Api.php @@ -0,0 +1,55 @@ +connector->send($request); + } + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. + * @param ?array $includedData A comma-delimited list of data sets to include in the response. Default: summaries. + * @param ?string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. + */ + public function getCatalogItem( + string $asin, + array $marketplaceIds, + ?array $includedData = null, + ?string $locale = null, + ): Response { + $request = new GetCatalogItem($asin, $marketplaceIds, $includedData, $locale); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/CatalogItemsV20201201/Dto/BrandRefinement.php b/src/Seller/CatalogItemsV20201201/Dto/BrandRefinement.php new file mode 100644 index 000000000..43bd9803c --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Dto/BrandRefinement.php @@ -0,0 +1,18 @@ + [ItemIdentifier::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemIdentifier[] $identifiers Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $identifiers, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Dto/ItemImage.php b/src/Seller/CatalogItemsV20201201/Dto/ItemImage.php new file mode 100644 index 000000000..0fc9dacd3 --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Dto/ItemImage.php @@ -0,0 +1,22 @@ + [ItemImage::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemImage[] $images Images for an item in the Amazon catalog for the indicated Amazon marketplace. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $images, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Dto/ItemProductTypeByMarketplace.php b/src/Seller/CatalogItemsV20201201/Dto/ItemProductTypeByMarketplace.php new file mode 100644 index 000000000..fb5040657 --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Dto/ItemProductTypeByMarketplace.php @@ -0,0 +1,18 @@ + [ItemSalesRank::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemSalesRank[] $ranks Sales ranks of an Amazon catalog item for an Amazon marketplace. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $ranks, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Dto/ItemSummaryByMarketplace.php b/src/Seller/CatalogItemsV20201201/Dto/ItemSummaryByMarketplace.php new file mode 100644 index 000000000..13e871c6d --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Dto/ItemSummaryByMarketplace.php @@ -0,0 +1,32 @@ + [BrandRefinement::class], + 'classifications' => [ClassificationRefinement::class], + ]; + + /** + * @param BrandRefinement[] $brands Brand search refinements. + * @param ClassificationRefinement[] $classifications Classification search refinements. + */ + public function __construct( + public readonly array $brands, + public readonly array $classifications, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Requests/GetCatalogItem.php b/src/Seller/CatalogItemsV20201201/Requests/GetCatalogItem.php new file mode 100644 index 000000000..99bed5eae --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Requests/GetCatalogItem.php @@ -0,0 +1,54 @@ + $this->marketplaceIds, 'includedData' => $this->includedData, 'locale' => $this->locale]); + } + + public function resolveEndpoint(): string + { + return "/catalog/2020-12-01/items/{$this->asin}"; + } + + public function createDtoFromResponse(Response $response): Item|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Item::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV20201201/Requests/SearchCatalogItems.php b/src/Seller/CatalogItemsV20201201/Requests/SearchCatalogItems.php new file mode 100644 index 000000000..206f6a643 --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Requests/SearchCatalogItems.php @@ -0,0 +1,74 @@ + $this->keywords, + 'marketplaceIds' => $this->marketplaceIds, + 'includedData' => $this->includedData, + 'brandNames' => $this->brandNames, + 'classificationIds' => $this->classificationIds, + 'pageSize' => $this->pageSize, + 'pageToken' => $this->pageToken, + 'keywordsLocale' => $this->keywordsLocale, + 'locale' => $this->locale, + ]); + } + + public function resolveEndpoint(): string + { + return '/catalog/2020-12-01/items'; + } + + public function createDtoFromResponse(Response $response): ItemSearchResults|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ItemSearchResults::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV20201201/Responses/ErrorList.php b/src/Seller/CatalogItemsV20201201/Responses/ErrorList.php new file mode 100644 index 000000000..80e0cfc1e --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Responses/Item.php b/src/Seller/CatalogItemsV20201201/Responses/Item.php new file mode 100644 index 000000000..c8f115d83 --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Responses/Item.php @@ -0,0 +1,49 @@ + [ItemIdentifiersByMarketplace::class], + 'images' => [ItemImagesByMarketplace::class], + 'productTypes' => [ItemProductTypeByMarketplace::class], + 'salesRanks' => [ItemSalesRanksByMarketplace::class], + 'summaries' => [ItemSummaryByMarketplace::class], + 'variations' => [ItemVariationsByMarketplace::class], + 'vendorDetails' => [ItemVendorDetailsByMarketplace::class], + ]; + + /** + * @param string $asin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. + * @param ?mixed[] $attributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. + * @param ItemIdentifiersByMarketplace[]|null $identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. + * @param ItemImagesByMarketplace[]|null $images Images for an item in the Amazon catalog. All image variants are provided to brand owners. Otherwise, a thumbnail of the "MAIN" image variant is provided. + * @param ItemProductTypeByMarketplace[]|null $productTypes Product types associated with the Amazon catalog item. + * @param ItemSalesRanksByMarketplace[]|null $salesRanks Sales ranks of an Amazon catalog item. + * @param ItemSummaryByMarketplace[]|null $summaries Summary details of an Amazon catalog item. + * @param ItemVariationsByMarketplace[]|null $variations Variation details by marketplace for an Amazon catalog item (variation relationships). + * @param ItemVendorDetailsByMarketplace[]|null $vendorDetails Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. + */ + public function __construct( + public readonly string $asin, + public readonly ?array $attributes = null, + public readonly ?array $identifiers = null, + public readonly ?array $images = null, + public readonly ?array $productTypes = null, + public readonly ?array $salesRanks = null, + public readonly ?array $summaries = null, + public readonly ?array $variations = null, + public readonly ?array $vendorDetails = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20201201/Responses/ItemSearchResults.php b/src/Seller/CatalogItemsV20201201/Responses/ItemSearchResults.php new file mode 100644 index 000000000..48e87344c --- /dev/null +++ b/src/Seller/CatalogItemsV20201201/Responses/ItemSearchResults.php @@ -0,0 +1,28 @@ + [Item::class]]; + + /** + * @param int $numberOfResults The estimated total number of products matched by the search query (only results up to the page count limit will be returned per request regardless of the number found). + * + * Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. + * @param Pagination $pagination When a request produces a response that exceeds the pageSize, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the nextToken value or the previousToken value as the pageToken parameter in the next request. When you receive the last page, there will be no nextToken key in the pagination object. + * @param Refinements $refinements Search refinements. + * @param Item[] $items A list of items from the Amazon catalog. + */ + public function __construct( + public readonly int $numberOfResults, + public readonly Pagination $pagination, + public readonly Refinements $refinements, + public readonly array $items, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Api.php b/src/Seller/CatalogItemsV20220401/Api.php new file mode 100644 index 000000000..8bc8f22be --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Api.php @@ -0,0 +1,61 @@ +connector->send($request); + } + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. + * @param ?array $includedData A comma-delimited list of data sets to include in the response. Default: `summaries`. + * @param ?string $locale Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. + */ + public function getCatalogItem( + string $asin, + array $marketplaceIds, + ?array $includedData = null, + ?string $locale = null, + ): Response { + $request = new GetCatalogItem($asin, $marketplaceIds, $includedData, $locale); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/BrandRefinement.php b/src/Seller/CatalogItemsV20220401/Dto/BrandRefinement.php new file mode 100644 index 000000000..21e2869e3 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/BrandRefinement.php @@ -0,0 +1,18 @@ + [ItemIdentifier::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemIdentifier[] $identifiers Identifiers associated with the item in the Amazon catalog for the indicated Amazon marketplace. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $identifiers, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/ItemImage.php b/src/Seller/CatalogItemsV20220401/Dto/ItemImage.php new file mode 100644 index 000000000..abaa31485 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/ItemImage.php @@ -0,0 +1,22 @@ + [ItemImage::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemImage[] $images Images for an item in the Amazon catalog for the indicated Amazon marketplace. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $images, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/ItemProductTypeByMarketplace.php b/src/Seller/CatalogItemsV20220401/Dto/ItemProductTypeByMarketplace.php new file mode 100644 index 000000000..0f661a0d4 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/ItemProductTypeByMarketplace.php @@ -0,0 +1,18 @@ + [ItemRelationship::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemRelationship[] $relationships Relationships for the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $relationships, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/ItemSalesRanksByMarketplace.php b/src/Seller/CatalogItemsV20220401/Dto/ItemSalesRanksByMarketplace.php new file mode 100644 index 000000000..c1823d45d --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/ItemSalesRanksByMarketplace.php @@ -0,0 +1,25 @@ + [ItemClassificationSalesRank::class], + 'displayGroupRanks' => [ItemDisplayGroupSalesRank::class], + ]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ItemClassificationSalesRank[]|null $classificationRanks Sales ranks of an Amazon catalog item for an Amazon marketplace by classification. + * @param ItemDisplayGroupSalesRank[]|null $displayGroupRanks Sales ranks of an Amazon catalog item for an Amazon marketplace by website display group. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly ?array $classificationRanks = null, + public readonly ?array $displayGroupRanks = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/ItemSummaryByMarketplace.php b/src/Seller/CatalogItemsV20220401/Dto/ItemSummaryByMarketplace.php new file mode 100644 index 000000000..59def702b --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/ItemSummaryByMarketplace.php @@ -0,0 +1,56 @@ + [ItemContributor::class]]; + + /** + * @param string $marketplaceId Amazon marketplace identifier. + * @param ?bool $adultProduct Identifies an Amazon catalog item is intended for an adult audience or is sexual in nature. + * @param ?bool $autographed Identifies an Amazon catalog item is autographed by a player or celebrity. + * @param ?string $brand Name of the brand associated with an Amazon catalog item. + * @param ?ItemBrowseClassification $browseClassification Classification (browse node) associated with an Amazon catalog item. + * @param ?string $color Name of the color associated with an Amazon catalog item. + * @param ItemContributor[]|null $contributors Individual contributors to the creation of an item, such as the authors or actors. + * @param ?string $itemClassification Classification type associated with the Amazon catalog item. + * @param ?string $itemName Name, or title, associated with an Amazon catalog item. + * @param ?string $manufacturer Name of the manufacturer associated with an Amazon catalog item. + * @param ?bool $memorabilia Identifies an Amazon catalog item is memorabilia valued for its connection with historical events, culture, or entertainment. + * @param ?string $modelNumber Model number associated with an Amazon catalog item. + * @param ?int $packageQuantity Quantity of an Amazon catalog item in one package. + * @param ?string $partNumber Part number associated with an Amazon catalog item. + * @param ?DateTime $releaseDate First date on which an Amazon catalog item is shippable to customers. + * @param ?string $size Name of the size associated with an Amazon catalog item. + * @param ?string $style Name of the style associated with an Amazon catalog item. + * @param ?bool $tradeInEligible Identifies an Amazon catalog item is eligible for trade-in. + * @param ?string $websiteDisplayGroup Identifier of the website display group associated with an Amazon catalog item. + * @param ?string $websiteDisplayGroupName Display name of the website display group associated with an Amazon catalog item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly ?bool $adultProduct = null, + public readonly ?bool $autographed = null, + public readonly ?string $brand = null, + public readonly ?ItemBrowseClassification $browseClassification = null, + public readonly ?string $color = null, + public readonly ?array $contributors = null, + public readonly ?string $itemClassification = null, + public readonly ?string $itemName = null, + public readonly ?string $manufacturer = null, + public readonly ?bool $memorabilia = null, + public readonly ?string $modelNumber = null, + public readonly ?int $packageQuantity = null, + public readonly ?string $partNumber = null, + public readonly ?\DateTime $releaseDate = null, + public readonly ?string $size = null, + public readonly ?string $style = null, + public readonly ?bool $tradeInEligible = null, + public readonly ?string $websiteDisplayGroup = null, + public readonly ?string $websiteDisplayGroupName = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Dto/ItemVariationTheme.php b/src/Seller/CatalogItemsV20220401/Dto/ItemVariationTheme.php new file mode 100644 index 000000000..37575d83a --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Dto/ItemVariationTheme.php @@ -0,0 +1,18 @@ + [BrandRefinement::class], + 'classifications' => [ClassificationRefinement::class], + ]; + + /** + * @param BrandRefinement[] $brands Brand search refinements. + * @param ClassificationRefinement[] $classifications Classification search refinements. + */ + public function __construct( + public readonly array $brands, + public readonly array $classifications, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Requests/GetCatalogItem.php b/src/Seller/CatalogItemsV20220401/Requests/GetCatalogItem.php new file mode 100644 index 000000000..3e8c3d52e --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Requests/GetCatalogItem.php @@ -0,0 +1,54 @@ + $this->marketplaceIds, 'includedData' => $this->includedData, 'locale' => $this->locale]); + } + + public function resolveEndpoint(): string + { + return "/catalog/2022-04-01/items/{$this->asin}"; + } + + public function createDtoFromResponse(Response $response): Item|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Item::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV20220401/Requests/SearchCatalogItems.php b/src/Seller/CatalogItemsV20220401/Requests/SearchCatalogItems.php new file mode 100644 index 000000000..8419384fa --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Requests/SearchCatalogItems.php @@ -0,0 +1,83 @@ + $this->marketplaceIds, + 'identifiers' => $this->identifiers, + 'identifiersType' => $this->identifiersType, + 'includedData' => $this->includedData, + 'locale' => $this->locale, + 'sellerId' => $this->sellerId, + 'keywords' => $this->keywords, + 'brandNames' => $this->brandNames, + 'classificationIds' => $this->classificationIds, + 'pageSize' => $this->pageSize, + 'pageToken' => $this->pageToken, + 'keywordsLocale' => $this->keywordsLocale, + ]); + } + + public function resolveEndpoint(): string + { + return '/catalog/2022-04-01/items'; + } + + public function createDtoFromResponse(Response $response): ItemSearchResults|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ItemSearchResults::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/CatalogItemsV20220401/Responses/ErrorList.php b/src/Seller/CatalogItemsV20220401/Responses/ErrorList.php new file mode 100644 index 000000000..27b7a4ba8 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Responses/Item.php b/src/Seller/CatalogItemsV20220401/Responses/Item.php new file mode 100644 index 000000000..7cc04a5c4 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Responses/Item.php @@ -0,0 +1,53 @@ + [ItemDimensionsByMarketplace::class], + 'identifiers' => [ItemIdentifiersByMarketplace::class], + 'images' => [ItemImagesByMarketplace::class], + 'productTypes' => [ItemProductTypeByMarketplace::class], + 'relationships' => [ItemRelationshipsByMarketplace::class], + 'salesRanks' => [ItemSalesRanksByMarketplace::class], + 'summaries' => [ItemSummaryByMarketplace::class], + 'vendorDetails' => [ItemVendorDetailsByMarketplace::class], + ]; + + /** + * @param string $asin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog. + * @param ?mixed[] $attributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions. + * @param ItemDimensionsByMarketplace[]|null $dimensions Array of dimensions associated with the item in the Amazon catalog by Amazon marketplace. + * @param ItemIdentifiersByMarketplace[]|null $identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers. + * @param ItemImagesByMarketplace[]|null $images Images for an item in the Amazon catalog. + * @param ItemProductTypeByMarketplace[]|null $productTypes Product types associated with the Amazon catalog item. + * @param ItemRelationshipsByMarketplace[]|null $relationships Relationships by marketplace for an Amazon catalog item (for example, variations). + * @param ItemSalesRanksByMarketplace[]|null $salesRanks Sales ranks of an Amazon catalog item. + * @param ItemSummaryByMarketplace[]|null $summaries Summary details of an Amazon catalog item. + * @param ItemVendorDetailsByMarketplace[]|null $vendorDetails Vendor details associated with an Amazon catalog item. Vendor details are available to vendors only. + */ + public function __construct( + public readonly string $asin, + public readonly ?array $attributes = null, + public readonly ?array $dimensions = null, + public readonly ?array $identifiers = null, + public readonly ?array $images = null, + public readonly ?array $productTypes = null, + public readonly ?array $relationships = null, + public readonly ?array $salesRanks = null, + public readonly ?array $summaries = null, + public readonly ?array $vendorDetails = null, + ) { + } +} diff --git a/src/Seller/CatalogItemsV20220401/Responses/ItemSearchResults.php b/src/Seller/CatalogItemsV20220401/Responses/ItemSearchResults.php new file mode 100644 index 000000000..3b6bcc462 --- /dev/null +++ b/src/Seller/CatalogItemsV20220401/Responses/ItemSearchResults.php @@ -0,0 +1,28 @@ + [Item::class]]; + + /** + * @param int $numberOfResults For `identifiers`-based searches, the total number of Amazon catalog items found. For `keywords`-based searches, the estimated total number of Amazon catalog items matched by the search query (only results up to the page count limit will be returned per request regardless of the number found). + * + * Note: The maximum number of items (ASINs) that can be returned and paged through is 1000. + * @param Pagination $pagination When a request produces a response that exceeds the `pageSize`, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. When you receive the last page, there will be no `nextToken` key in the pagination object. + * @param Refinements $refinements Search refinements. + * @param Item[] $items A list of items from the Amazon catalog. + */ + public function __construct( + public readonly int $numberOfResults, + public readonly Pagination $pagination, + public readonly Refinements $refinements, + public readonly array $items, + ) { + } +} diff --git a/src/Seller/DataKioskV20231115/Api.php b/src/Seller/DataKioskV20231115/Api.php new file mode 100644 index 000000000..f794f2158 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Api.php @@ -0,0 +1,74 @@ +connector->send($request); + } + + /** + * @param CreateQuerySpecification $createQuerySpecification Information required to create the query. + */ + public function createQuery(CreateQuerySpecification $createQuerySpecification): Response + { + $request = new CreateQuery($createQuerySpecification); + + return $this->connector->send($request); + } + + /** + * @param string $queryId The query identifier. + */ + public function getQuery(string $queryId): Response + { + $request = new GetQuery($queryId); + + return $this->connector->send($request); + } + + /** + * @param string $queryId The identifier for the query. This identifier is unique only in combination with a selling partner account ID. + */ + public function cancelQuery(string $queryId): Response + { + $request = new CancelQuery($queryId); + + return $this->connector->send($request); + } + + /** + * @param string $documentId The identifier for the Data Kiosk document. + */ + public function getDocument(string $documentId): Response + { + $request = new GetDocument($documentId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/DataKioskV20231115/Dto/CreateQuerySpecification.php b/src/Seller/DataKioskV20231115/Dto/CreateQuerySpecification.php new file mode 100644 index 000000000..abefb0952 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Dto/CreateQuerySpecification.php @@ -0,0 +1,18 @@ +queryId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => EmptyResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/DataKioskV20231115/Requests/CreateQuery.php b/src/Seller/DataKioskV20231115/Requests/CreateQuery.php new file mode 100644 index 000000000..92170f495 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Requests/CreateQuery.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 202 => CreateQueryResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createQuerySpecification->toArray(); + } +} diff --git a/src/Seller/DataKioskV20231115/Requests/GetDocument.php b/src/Seller/DataKioskV20231115/Requests/GetDocument.php new file mode 100644 index 000000000..b8a331f07 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Requests/GetDocument.php @@ -0,0 +1,43 @@ +documentId}"; + } + + public function createDtoFromResponse(Response $response): GetDocumentResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetDocumentResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/DataKioskV20231115/Requests/GetQueries.php b/src/Seller/DataKioskV20231115/Requests/GetQueries.php new file mode 100644 index 000000000..a6cd178e8 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Requests/GetQueries.php @@ -0,0 +1,62 @@ + $this->processingStatuses, + 'pageSize' => $this->pageSize, + 'createdSince' => $this->createdSince?->format(\DateTime::RFC3339), + 'createdUntil' => $this->createdUntil?->format(\DateTime::RFC3339), + 'paginationToken' => $this->paginationToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/dataKiosk/2023-11-15/queries'; + } + + public function createDtoFromResponse(Response $response): GetQueriesResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetQueriesResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/DataKioskV20231115/Requests/GetQuery.php b/src/Seller/DataKioskV20231115/Requests/GetQuery.php new file mode 100644 index 000000000..a23b4938c --- /dev/null +++ b/src/Seller/DataKioskV20231115/Requests/GetQuery.php @@ -0,0 +1,43 @@ +queryId}"; + } + + public function createDtoFromResponse(Response $response): Query|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Query::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/DataKioskV20231115/Responses/CreateQueryResponse.php b/src/Seller/DataKioskV20231115/Responses/CreateQueryResponse.php new file mode 100644 index 000000000..30eab9a52 --- /dev/null +++ b/src/Seller/DataKioskV20231115/Responses/CreateQueryResponse.php @@ -0,0 +1,16 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/DataKioskV20231115/Responses/GetDocumentResponse.php b/src/Seller/DataKioskV20231115/Responses/GetDocumentResponse.php new file mode 100644 index 000000000..3bc16f70c --- /dev/null +++ b/src/Seller/DataKioskV20231115/Responses/GetDocumentResponse.php @@ -0,0 +1,20 @@ + [Query::class]]; + + /** + * @param Query[] $queries A list of queries. + * @param ?Pagination $pagination When a query produces results that are not included in the data document, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass a `CreateQuerySpecification` object with `paginationToken` set to this object's `nextToken` and with `query` set to this object's `query` in the subsequent `createQuery` request. When there are no more pages to fetch, the `nextToken` field will be absent. + */ + public function __construct( + public readonly array $queries, + public readonly ?Pagination $pagination = null, + ) { + } +} diff --git a/src/Seller/DataKioskV20231115/Responses/Query.php b/src/Seller/DataKioskV20231115/Responses/Query.php new file mode 100644 index 000000000..854b208da --- /dev/null +++ b/src/Seller/DataKioskV20231115/Responses/Query.php @@ -0,0 +1,33 @@ +connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. + * @param string $marketplaceId An identifier for the marketplace in which the seller is selling. + */ + public function getScheduledPackage(string $amazonOrderId, string $marketplaceId): Response + { + $request = new GetScheduledPackage($amazonOrderId, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param CreateScheduledPackageRequest $createScheduledPackageRequest The request schema for the `createScheduledPackage` operation. + */ + public function createScheduledPackage(CreateScheduledPackageRequest $createScheduledPackageRequest): Response + { + $request = new CreateScheduledPackage($createScheduledPackageRequest); + + return $this->connector->send($request); + } + + /** + * @param UpdateScheduledPackagesRequest $updateScheduledPackagesRequest The request schema for the `updateScheduledPackages` operation. + */ + public function updateScheduledPackages(UpdateScheduledPackagesRequest $updateScheduledPackagesRequest): Response + { + $request = new UpdateScheduledPackages($updateScheduledPackagesRequest); + + return $this->connector->send($request); + } + + /** + * @param CreateScheduledPackagesRequest $createScheduledPackagesRequest The request body for the POST /easyShip/2022-03-23/packages/bulk API. + */ + public function createScheduledPackageBulk(CreateScheduledPackagesRequest $createScheduledPackagesRequest): Response + { + $request = new CreateScheduledPackageBulk($createScheduledPackagesRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/EasyShipV20220323/Dto/CreateScheduledPackageRequest.php b/src/Seller/EasyShipV20220323/Dto/CreateScheduledPackageRequest.php new file mode 100644 index 000000000..7ed4e102c --- /dev/null +++ b/src/Seller/EasyShipV20220323/Dto/CreateScheduledPackageRequest.php @@ -0,0 +1,20 @@ + [OrderScheduleDetails::class]]; + + /** + * @param string $marketplaceId A string of up to 255 characters. + * @param OrderScheduleDetails[] $orderScheduleDetailsList An array allowing users to specify orders to be scheduled. + * @param string $labelFormat The file format in which the shipping label will be created. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $orderScheduleDetailsList, + public readonly string $labelFormat, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Dto/Dimensions.php b/src/Seller/EasyShipV20220323/Dto/Dimensions.php new file mode 100644 index 000000000..91431fd71 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Dto/Dimensions.php @@ -0,0 +1,24 @@ + [Item::class]]; + + /** + * @param TimeSlot $packageTimeSlot A time window to hand over an Easy Ship package to Amazon Logistics. + * @param Item[]|null $packageItems A list of items contained in the package. + * @param ?string $packageIdentifier Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. + */ + public function __construct( + public readonly TimeSlot $packageTimeSlot, + public readonly ?array $packageItems = null, + public readonly ?string $packageIdentifier = null, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Dto/RejectedOrder.php b/src/Seller/EasyShipV20220323/Dto/RejectedOrder.php new file mode 100644 index 000000000..2cc51b28f --- /dev/null +++ b/src/Seller/EasyShipV20220323/Dto/RejectedOrder.php @@ -0,0 +1,18 @@ + [UpdatePackageDetails::class]]; + + /** + * @param string $marketplaceId A string of up to 255 characters. + * @param UpdatePackageDetails[] $updatePackageDetailsList A list of package update details. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $updatePackageDetailsList, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Dto/Weight.php b/src/Seller/EasyShipV20220323/Dto/Weight.php new file mode 100644 index 000000000..389a4ba5a --- /dev/null +++ b/src/Seller/EasyShipV20220323/Dto/Weight.php @@ -0,0 +1,18 @@ +status(); + $responseCls = match ($status) { + 200 => Package::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createScheduledPackageRequest->toArray(); + } +} diff --git a/src/Seller/EasyShipV20220323/Requests/CreateScheduledPackageBulk.php b/src/Seller/EasyShipV20220323/Requests/CreateScheduledPackageBulk.php new file mode 100644 index 000000000..cd9b9561a --- /dev/null +++ b/src/Seller/EasyShipV20220323/Requests/CreateScheduledPackageBulk.php @@ -0,0 +1,56 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return '/easyShip/2022-03-23/packages/bulk'; + } + + public function createDtoFromResponse(Response $response): CreateScheduledPackagesResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => CreateScheduledPackagesResponse::class, + 400, 401, 403, 404, 429, 415, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createScheduledPackagesRequest->toArray(); + } +} diff --git a/src/Seller/EasyShipV20220323/Requests/GetScheduledPackage.php b/src/Seller/EasyShipV20220323/Requests/GetScheduledPackage.php new file mode 100644 index 000000000..88676edd2 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Requests/GetScheduledPackage.php @@ -0,0 +1,50 @@ + $this->amazonOrderId, 'marketplaceId' => $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return '/easyShip/2022-03-23/package'; + } + + public function createDtoFromResponse(Response $response): Package|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Package::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/EasyShipV20220323/Requests/ListHandoverSlots.php b/src/Seller/EasyShipV20220323/Requests/ListHandoverSlots.php new file mode 100644 index 000000000..aa87d8017 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Requests/ListHandoverSlots.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => ListHandoverSlotsResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listHandoverSlotsRequest->toArray(); + } +} diff --git a/src/Seller/EasyShipV20220323/Requests/UpdateScheduledPackages.php b/src/Seller/EasyShipV20220323/Requests/UpdateScheduledPackages.php new file mode 100644 index 000000000..040b7aa64 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Requests/UpdateScheduledPackages.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => Packages::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateScheduledPackagesRequest->toArray(); + } +} diff --git a/src/Seller/EasyShipV20220323/Responses/CreateScheduledPackagesResponse.php b/src/Seller/EasyShipV20220323/Responses/CreateScheduledPackagesResponse.php new file mode 100644 index 000000000..f5456ede5 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Responses/CreateScheduledPackagesResponse.php @@ -0,0 +1,26 @@ + [Package::class], + 'rejectedOrders' => [RejectedOrder::class], + ]; + + /** + * @param Package[]|null $scheduledPackages A list of packages. Refer to the `Package` object. + * @param RejectedOrder[]|null $rejectedOrders A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error. + * @param ?string $printableDocumentsUrl A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace. + */ + public function __construct( + public readonly ?array $scheduledPackages = null, + public readonly ?array $rejectedOrders = null, + public readonly ?string $printableDocumentsUrl = null, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Responses/ErrorList.php b/src/Seller/EasyShipV20220323/Responses/ErrorList.php new file mode 100644 index 000000000..57eec3c3e --- /dev/null +++ b/src/Seller/EasyShipV20220323/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Responses/ListHandoverSlotsResponse.php b/src/Seller/EasyShipV20220323/Responses/ListHandoverSlotsResponse.php new file mode 100644 index 000000000..62cad261a --- /dev/null +++ b/src/Seller/EasyShipV20220323/Responses/ListHandoverSlotsResponse.php @@ -0,0 +1,21 @@ + [TimeSlot::class]]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. + * @param TimeSlot[] $timeSlots A list of time slots. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly array $timeSlots, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Responses/Package.php b/src/Seller/EasyShipV20220323/Responses/Package.php new file mode 100644 index 000000000..d7072cd0d --- /dev/null +++ b/src/Seller/EasyShipV20220323/Responses/Package.php @@ -0,0 +1,41 @@ + [Item::class]]; + + /** + * @param ScheduledPackageId $scheduledPackageId Identifies the scheduled package to be updated. + * @param Dimensions $packageDimensions The dimensions of the scheduled package. + * @param Weight $packageWeight The weight of the scheduled package + * @param TimeSlot $packageTimeSlot A time window to hand over an Easy Ship package to Amazon Logistics. + * @param Item[]|null $packageItems A list of items contained in the package. + * @param ?string $packageIdentifier Optional seller-created identifier that is printed on the shipping label to help the seller identify the package. + * @param ?InvoiceData $invoice Invoice number and date. + * @param ?string $packageStatus The status of the package. + * @param ?TrackingDetails $trackingDetails Representation of tracking metadata. + */ + public function __construct( + public readonly ScheduledPackageId $scheduledPackageId, + public readonly Dimensions $packageDimensions, + public readonly Weight $packageWeight, + public readonly TimeSlot $packageTimeSlot, + public readonly ?array $packageItems = null, + public readonly ?string $packageIdentifier = null, + public readonly ?InvoiceData $invoice = null, + public readonly ?string $packageStatus = null, + public readonly ?TrackingDetails $trackingDetails = null, + ) { + } +} diff --git a/src/Seller/EasyShipV20220323/Responses/Packages.php b/src/Seller/EasyShipV20220323/Responses/Packages.php new file mode 100644 index 000000000..46fa73ff2 --- /dev/null +++ b/src/Seller/EasyShipV20220323/Responses/Packages.php @@ -0,0 +1,18 @@ + [Package::class]]; + + /** + * @param Package[] $packages + */ + public function __construct( + public readonly array $packages, + ) { + } +} diff --git a/src/Seller/FBAInboundEligibilityV1/Api.php b/src/Seller/FBAInboundEligibilityV1/Api.php new file mode 100644 index 000000000..b4da72977 --- /dev/null +++ b/src/Seller/FBAInboundEligibilityV1/Api.php @@ -0,0 +1,22 @@ +connector->send($request); + } +} diff --git a/src/Seller/FBAInboundEligibilityV1/Dto/Error.php b/src/Seller/FBAInboundEligibilityV1/Dto/Error.php new file mode 100644 index 000000000..9b71d4f2c --- /dev/null +++ b/src/Seller/FBAInboundEligibilityV1/Dto/Error.php @@ -0,0 +1,20 @@ + $this->asin, 'program' => $this->program, 'marketplaceIds' => $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return '/fba/inbound/v1/eligibility/itemPreview'; + } + + public function createDtoFromResponse(Response $response): GetItemEligibilityPreviewResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetItemEligibilityPreviewResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundEligibilityV1/Responses/GetItemEligibilityPreviewResponse.php b/src/Seller/FBAInboundEligibilityV1/Responses/GetItemEligibilityPreviewResponse.php new file mode 100644 index 000000000..2714aa69d --- /dev/null +++ b/src/Seller/FBAInboundEligibilityV1/Responses/GetItemEligibilityPreviewResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ItemEligibilityPreview $payload The response object which contains the ASIN, marketplaceId if required, eligibility program, the eligibility status (boolean), and a list of ineligibility reason codes. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ItemEligibilityPreview $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Api.php b/src/Seller/FBAInboundV0/Api.php new file mode 100644 index 000000000..66ddf1cd6 --- /dev/null +++ b/src/Seller/FBAInboundV0/Api.php @@ -0,0 +1,262 @@ +connector->send($request); + } + + /** + * @param CreateInboundShipmentPlanRequest $createInboundShipmentPlanRequest The request schema for the createInboundShipmentPlan operation. + */ + public function createInboundShipmentPlan( + CreateInboundShipmentPlanRequest $createInboundShipmentPlanRequest, + ): Response { + $request = new CreateInboundShipmentPlan($createInboundShipmentPlanRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param InboundShipmentRequest $inboundShipmentRequest The request schema for an inbound shipment. + */ + public function updateInboundShipment(string $shipmentId, InboundShipmentRequest $inboundShipmentRequest): Response + { + $request = new UpdateInboundShipment($shipmentId, $inboundShipmentRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param InboundShipmentRequest $inboundShipmentRequest The request schema for an inbound shipment. + */ + public function createInboundShipment(string $shipmentId, InboundShipmentRequest $inboundShipmentRequest): Response + { + $request = new CreateInboundShipment($shipmentId, $inboundShipmentRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace the shipment is tied to. + */ + public function getPreorderInfo(string $shipmentId, string $marketplaceId): Response + { + $request = new GetPreorderInfo($shipmentId, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param DateTime $needByDate 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. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace the shipment is tied to. + */ + public function confirmPreorder(string $shipmentId, \DateTime $needByDate, string $marketplaceId): Response + { + $request = new ConfirmPreorder($shipmentId, $needByDate, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $shipToCountryCode 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. + * @param ?array $sellerSkuList 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. + * @param ?array $asinList 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. + */ + public function getPrepInstructions( + string $shipToCountryCode, + ?array $sellerSkuList = null, + ?array $asinList = null, + ): Response { + $request = new GetPrepInstructions($shipToCountryCode, $sellerSkuList, $asinList); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + */ + public function getTransportDetails(string $shipmentId): Response + { + $request = new GetTransportDetails($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param PutTransportDetailsRequest $putTransportDetailsRequest The request schema for a putTransportDetails operation. + */ + public function putTransportDetails( + string $shipmentId, + PutTransportDetailsRequest $putTransportDetailsRequest, + ): Response { + $request = new PutTransportDetails($shipmentId, $putTransportDetailsRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + */ + public function voidTransport(string $shipmentId): Response + { + $request = new VoidTransport($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + */ + public function estimateTransport(string $shipmentId): Response + { + $request = new EstimateTransport($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + */ + public function confirmTransport(string $shipmentId): Response + { + $request = new ConfirmTransport($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param string $pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. + * @param string $labelType The type of labels requested. + * @param ?int $numberOfPackages The number of packages in the shipment. + * @param ?array $packageLabelsToPrint 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. + * @param ?int $numberOfPallets The number of pallets in the shipment. This returns four identical labels for each pallet. + * @param ?int $pageSize The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. + * @param ?int $pageStartIndex The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. + */ + public function getLabels( + string $shipmentId, + string $pageType, + string $labelType, + ?int $numberOfPackages = null, + ?array $packageLabelsToPrint = null, + ?int $numberOfPallets = null, + ?int $pageSize = null, + ?int $pageStartIndex = null, + ): Response { + $request = new GetLabels($shipmentId, $pageType, $labelType, $numberOfPackages, $packageLabelsToPrint, $numberOfPallets, $pageSize, $pageStartIndex); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + */ + public function getBillOfLading(string $shipmentId): Response + { + $request = new GetBillOfLading($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $queryType 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. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. + * @param ?array $shipmentStatusList A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. + * @param ?array $shipmentIdList 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. + * @param ?DateTime $lastUpdatedAfter 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. + * @param ?DateTime $lastUpdatedBefore 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. + * @param ?string $nextToken A string token returned in the response to your previous request. + */ + public function getShipments( + string $queryType, + string $marketplaceId, + ?array $shipmentStatusList = null, + ?array $shipmentIdList = null, + ?\DateTime $lastUpdatedAfter = null, + ?\DateTime $lastUpdatedBefore = null, + ?string $nextToken = null, + ): Response { + $request = new GetShipments($queryType, $marketplaceId, $shipmentStatusList, $shipmentIdList, $lastUpdatedAfter, $lastUpdatedBefore, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId A shipment identifier used for selecting items in a specific inbound shipment. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. + */ + public function getShipmentItemsByShipmentId(string $shipmentId, string $marketplaceId): Response + { + $request = new GetShipmentItemsByShipmentId($shipmentId, $marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $queryType 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. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. + * @param ?DateTime $lastUpdatedAfter 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. + * @param ?DateTime $lastUpdatedBefore 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. + * @param ?string $nextToken A string token returned in the response to your previous request. + */ + public function getShipmentItems( + string $queryType, + string $marketplaceId, + ?\DateTime $lastUpdatedAfter = null, + ?\DateTime $lastUpdatedBefore = null, + ?string $nextToken = null, + ): Response { + $request = new GetShipmentItems($queryType, $marketplaceId, $lastUpdatedAfter, $lastUpdatedBefore, $nextToken); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Address.php b/src/Seller/FBAInboundV0/Dto/Address.php new file mode 100644 index 000000000..2a013d435 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Address.php @@ -0,0 +1,45 @@ + 'Name', + 'addressLine1' => 'AddressLine1', + 'city' => 'City', + 'stateOrProvinceCode' => 'StateOrProvinceCode', + 'countryCode' => 'CountryCode', + 'postalCode' => 'PostalCode', + 'addressLine2' => 'AddressLine2', + 'districtOrCounty' => 'DistrictOrCounty', + ]; + + /** + * @param string $name Name of the individual or business. + * @param string $addressLine1 The street address information. + * @param string $city The city. + * @param string $stateOrProvinceCode The state or province code. + * + * If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan. + * @param string $countryCode The country code in two-character ISO 3166-1 alpha-2 format. + * @param string $postalCode The postal code. + * + * If postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan. + * @param ?string $addressLine2 Additional street address information, if required. + * @param ?string $districtOrCounty The district or county. + */ + public function __construct( + public readonly string $name, + public readonly string $addressLine1, + public readonly string $city, + public readonly string $stateOrProvinceCode, + public readonly string $countryCode, + public readonly string $postalCode, + public readonly ?string $addressLine2 = null, + public readonly ?string $districtOrCounty = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/AmazonPrepFeesDetails.php b/src/Seller/FBAInboundV0/Dto/AmazonPrepFeesDetails.php new file mode 100644 index 000000000..695e24a6a --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/AmazonPrepFeesDetails.php @@ -0,0 +1,20 @@ + 'PrepInstruction', 'feePerUnit' => 'FeePerUnit']; + + /** + * @param ?string $prepInstruction 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. + * @param ?Amount $feePerUnit The monetary value. + */ + public function __construct( + public readonly ?string $prepInstruction = null, + public readonly ?Amount $feePerUnit = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Amount.php b/src/Seller/FBAInboundV0/Dto/Amount.php new file mode 100644 index 000000000..6178bdaa7 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Amount.php @@ -0,0 +1,19 @@ + 'CurrencyCode', 'value' => 'Value']; + + /** + * @param string $currencyCode The currency code. + */ + public function __construct( + public readonly string $currencyCode, + public readonly float $value, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/AsinInboundGuidance.php b/src/Seller/FBAInboundV0/Dto/AsinInboundGuidance.php new file mode 100644 index 000000000..fcf66b24a --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/AsinInboundGuidance.php @@ -0,0 +1,26 @@ + 'ASIN', + 'inboundGuidance' => 'InboundGuidance', + 'guidanceReasonList' => 'GuidanceReasonList', + ]; + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $inboundGuidance Specific inbound guidance for an item. + * @param ?string[] $guidanceReasonList A list of inbound guidance reason information. + */ + public function __construct( + public readonly string $asin, + public readonly string $inboundGuidance, + public readonly ?array $guidanceReasonList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/AsinPrepInstructions.php b/src/Seller/FBAInboundV0/Dto/AsinPrepInstructions.php new file mode 100644 index 000000000..0466d8a4c --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/AsinPrepInstructions.php @@ -0,0 +1,29 @@ + 'ASIN', + 'barcodeInstruction' => 'BarcodeInstruction', + 'prepGuidance' => 'PrepGuidance', + 'prepInstructionList' => 'PrepInstructionList', + ]; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $barcodeInstruction Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace. + * @param ?string $prepGuidance Item preparation instructions. + * @param ?string[] $prepInstructionList A list of preparation instructions to help with item sourcing decisions. + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?string $barcodeInstruction = null, + public readonly ?string $prepGuidance = null, + public readonly ?array $prepInstructionList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/BillOfLadingDownloadUrl.php b/src/Seller/FBAInboundV0/Dto/BillOfLadingDownloadUrl.php new file mode 100644 index 000000000..c65c99fd6 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/BillOfLadingDownloadUrl.php @@ -0,0 +1,18 @@ + 'DownloadURL']; + + /** + * @param ?string $downloadUrl URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds + */ + public function __construct( + public readonly ?string $downloadUrl = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/BoxContentsFeeDetails.php b/src/Seller/FBAInboundV0/Dto/BoxContentsFeeDetails.php new file mode 100644 index 000000000..0b41e4192 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/BoxContentsFeeDetails.php @@ -0,0 +1,26 @@ + 'TotalUnits', + 'feePerUnit' => 'FeePerUnit', + 'totalFee' => 'TotalFee', + ]; + + /** + * @param ?int $totalUnits The item quantity. + * @param ?Amount $feePerUnit The monetary value. + * @param ?Amount $totalFee The monetary value. + */ + public function __construct( + public readonly ?int $totalUnits = null, + public readonly ?Amount $feePerUnit = null, + public readonly ?Amount $totalFee = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/CommonTransportResult.php b/src/Seller/FBAInboundV0/Dto/CommonTransportResult.php new file mode 100644 index 000000000..dbbcc3f18 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/CommonTransportResult.php @@ -0,0 +1,18 @@ + 'TransportResult']; + + /** + * @param ?TransportResult $transportResult The workflow status for a shipment with an Amazon-partnered carrier. + */ + public function __construct( + public readonly ?TransportResult $transportResult = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/ConfirmPreorderResult.php b/src/Seller/FBAInboundV0/Dto/ConfirmPreorderResult.php new file mode 100644 index 000000000..5e2486772 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/ConfirmPreorderResult.php @@ -0,0 +1,23 @@ + 'ConfirmedNeedByDate', + 'confirmedFulfillableDate' => 'ConfirmedFulfillableDate', + ]; + + /** + * @param ?DateTime $confirmedNeedByDate + * @param ?DateTime $confirmedFulfillableDate + */ + public function __construct( + public readonly ?\DateTime $confirmedNeedByDate = null, + public readonly ?\DateTime $confirmedFulfillableDate = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Contact.php b/src/Seller/FBAInboundV0/Dto/Contact.php new file mode 100644 index 000000000..51c0dbd48 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Contact.php @@ -0,0 +1,24 @@ + 'Name', 'phone' => 'Phone', 'email' => 'Email', 'fax' => 'Fax']; + + /** + * @param string $name The name of the contact person. + * @param string $phone The phone number of the contact person. + * @param string $email The email address of the contact person. + * @param ?string $fax The fax number of the contact person. + */ + public function __construct( + public readonly string $name, + public readonly string $phone, + public readonly string $email, + public readonly ?string $fax = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanRequest.php b/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanRequest.php new file mode 100644 index 000000000..a0cf38a3f --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanRequest.php @@ -0,0 +1,55 @@ + 'ShipFromAddress', + 'labelPrepPreference' => 'LabelPrepPreference', + 'inboundShipmentPlanRequestItems' => 'InboundShipmentPlanRequestItems', + 'shipToCountryCode' => 'ShipToCountryCode', + 'shipToCountrySubdivisionCode' => 'ShipToCountrySubdivisionCode', + ]; + + protected static array $complexArrayTypes = [ + 'inboundShipmentPlanRequestItems' => [InboundShipmentPlanRequestItem::class], + ]; + + /** + * @param string $labelPrepPreference The preference for label preparation for an inbound shipment. + * @param InboundShipmentPlanRequestItem[] $inboundShipmentPlanRequestItems + * @param ?string $shipToCountryCode The two-character country code for the country where the inbound shipment is to be sent. + * + * Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. + * + * Values: + * + * ShipToCountryCode values for North America: + * * CA – Canada + * * MX - Mexico + * * US - United States + * + * ShipToCountryCode values for MCI sellers in Europe: + * * DE – Germany + * * ES – Spain + * * FR – France + * * GB – United Kingdom + * * IT – Italy + * + * Default: The country code for the seller's home marketplace. + * @param ?string $shipToCountrySubdivisionCode The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, "IN-MH". In full ISO 3166-2 format. + * + * Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. + */ + public function __construct( + public readonly Address $shipFromAddress, + public readonly string $labelPrepPreference, + public readonly array $inboundShipmentPlanRequestItems, + public readonly ?string $shipToCountryCode = null, + public readonly ?string $shipToCountrySubdivisionCode = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanResult.php b/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanResult.php new file mode 100644 index 000000000..187d61c7d --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/CreateInboundShipmentPlanResult.php @@ -0,0 +1,20 @@ + 'InboundShipmentPlans']; + + protected static array $complexArrayTypes = ['inboundShipmentPlans' => [InboundShipmentPlan::class]]; + + /** + * @param InboundShipmentPlan[]|null $inboundShipmentPlans A list of inbound shipment plan information + */ + public function __construct( + public readonly ?array $inboundShipmentPlans = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Dimensions.php b/src/Seller/FBAInboundV0/Dto/Dimensions.php new file mode 100644 index 000000000..99fdf90db --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Dimensions.php @@ -0,0 +1,26 @@ + 'Length', + 'width' => 'Width', + 'height' => 'Height', + 'unit' => 'Unit', + ]; + + /** + * @param string $unit Indicates the unit of measurement. + */ + public function __construct( + public readonly float $length, + public readonly float $width, + public readonly float $height, + public readonly string $unit, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Error.php b/src/Seller/FBAInboundV0/Dto/Error.php new file mode 100644 index 000000000..53839295c --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'SKUInboundGuidanceList', + 'invalidSkuList' => 'InvalidSKUList', + 'asinInboundGuidanceList' => 'ASINInboundGuidanceList', + 'invalidAsinList' => 'InvalidASINList', + ]; + + protected static array $complexArrayTypes = [ + 'skuInboundGuidanceList' => [SkuInboundGuidance::class], + 'invalidSkuList' => [InvalidSku::class], + 'asinInboundGuidanceList' => [AsinInboundGuidance::class], + 'invalidAsinList' => [InvalidAsin::class], + ]; + + /** + * @param SkuInboundGuidance[]|null $skuInboundGuidanceList A list of SKU inbound guidance information. + * @param InvalidSku[]|null $invalidSkuList A list of invalid SKU values and the reason they are invalid. + * @param AsinInboundGuidance[]|null $asinInboundGuidanceList A list of ASINs and their associated inbound guidance. + * @param InvalidAsin[]|null $invalidAsinList A list of invalid ASIN values and the reasons they are invalid. + */ + public function __construct( + public readonly ?array $skuInboundGuidanceList = null, + public readonly ?array $invalidSkuList = null, + public readonly ?array $asinInboundGuidanceList = null, + public readonly ?array $invalidAsinList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/GetPreorderInfoResult.php b/src/Seller/FBAInboundV0/Dto/GetPreorderInfoResult.php new file mode 100644 index 000000000..c064a8149 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/GetPreorderInfoResult.php @@ -0,0 +1,29 @@ + 'ShipmentContainsPreorderableItems', + 'shipmentConfirmedForPreorder' => 'ShipmentConfirmedForPreorder', + 'needByDate' => 'NeedByDate', + 'confirmedFulfillableDate' => 'ConfirmedFulfillableDate', + ]; + + /** + * @param ?bool $shipmentContainsPreorderableItems Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help. + * @param ?bool $shipmentConfirmedForPreorder Indicates whether this shipment has been confirmed for pre-order. + * @param ?DateTime $needByDate + * @param ?DateTime $confirmedFulfillableDate + */ + public function __construct( + public readonly ?bool $shipmentContainsPreorderableItems = null, + public readonly ?bool $shipmentConfirmedForPreorder = null, + public readonly ?\DateTime $needByDate = null, + public readonly ?\DateTime $confirmedFulfillableDate = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/GetPrepInstructionsResult.php b/src/Seller/FBAInboundV0/Dto/GetPrepInstructionsResult.php new file mode 100644 index 000000000..add374305 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/GetPrepInstructionsResult.php @@ -0,0 +1,36 @@ + 'SKUPrepInstructionsList', + 'invalidSkuList' => 'InvalidSKUList', + 'asinPrepInstructionsList' => 'ASINPrepInstructionsList', + 'invalidAsinList' => 'InvalidASINList', + ]; + + protected static array $complexArrayTypes = [ + 'skuPrepInstructionsList' => [SkuPrepInstructions::class], + 'invalidSkuList' => [InvalidSku::class], + 'asinPrepInstructionsList' => [AsinPrepInstructions::class], + 'invalidAsinList' => [InvalidAsin::class], + ]; + + /** + * @param SkuPrepInstructions[]|null $skuPrepInstructionsList A list of SKU labeling requirements and item preparation instructions. + * @param InvalidSku[]|null $invalidSkuList A list of invalid SKU values and the reason they are invalid. + * @param AsinPrepInstructions[]|null $asinPrepInstructionsList A list of item preparation instructions. + * @param InvalidAsin[]|null $invalidAsinList A list of invalid ASIN values and the reasons they are invalid. + */ + public function __construct( + public readonly ?array $skuPrepInstructionsList = null, + public readonly ?array $invalidSkuList = null, + public readonly ?array $asinPrepInstructionsList = null, + public readonly ?array $invalidAsinList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/GetShipmentItemsResult.php b/src/Seller/FBAInboundV0/Dto/GetShipmentItemsResult.php new file mode 100644 index 000000000..5c5d7331a --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/GetShipmentItemsResult.php @@ -0,0 +1,22 @@ + 'ItemData', 'nextToken' => 'NextToken']; + + protected static array $complexArrayTypes = ['itemData' => [InboundShipmentItem::class]]; + + /** + * @param InboundShipmentItem[]|null $itemData A list of inbound shipment item information. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + */ + public function __construct( + public readonly ?array $itemData = null, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/GetShipmentsResult.php b/src/Seller/FBAInboundV0/Dto/GetShipmentsResult.php new file mode 100644 index 000000000..57976fedf --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/GetShipmentsResult.php @@ -0,0 +1,22 @@ + 'ShipmentData', 'nextToken' => 'NextToken']; + + protected static array $complexArrayTypes = ['shipmentData' => [InboundShipmentInfo::class]]; + + /** + * @param InboundShipmentInfo[]|null $shipmentData A list of inbound shipment information. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + */ + public function __construct( + public readonly ?array $shipmentData = null, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/GetTransportDetailsResult.php b/src/Seller/FBAInboundV0/Dto/GetTransportDetailsResult.php new file mode 100644 index 000000000..744e892be --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/GetTransportDetailsResult.php @@ -0,0 +1,18 @@ + 'TransportContent']; + + /** + * @param ?TransportContent $transportContent Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier. + */ + public function __construct( + public readonly ?TransportContent $transportContent = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentHeader.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentHeader.php new file mode 100644 index 000000000..be9f48325 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentHeader.php @@ -0,0 +1,45 @@ + 'ShipmentName', + 'shipFromAddress' => 'ShipFromAddress', + 'destinationFulfillmentCenterId' => 'DestinationFulfillmentCenterId', + 'shipmentStatus' => 'ShipmentStatus', + 'labelPrepPreference' => 'LabelPrepPreference', + 'areCasesRequired' => 'AreCasesRequired', + 'intendedBoxContentsSource' => 'IntendedBoxContentsSource', + ]; + + /** + * @param string $shipmentName The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created. + * @param string $destinationFulfillmentCenterId The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation. + * @param string $shipmentStatus 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. + * @param string $labelPrepPreference The preference for label preparation for an inbound shipment. + * @param ?bool $areCasesRequired Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes. + * + * Possible values: + * + * true - All boxes in the shipment must be case packed. + * + * false - All boxes in the shipment must be individually packed. + * + * Note: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error. + * @param ?string $intendedBoxContentsSource How the seller intends to provide box contents information for a shipment. Leaving this field blank is equivalent to selecting `NONE`, which will incur a fee if the seller does not provide box contents information. + */ + public function __construct( + public readonly string $shipmentName, + public readonly Address $shipFromAddress, + public readonly string $destinationFulfillmentCenterId, + public readonly string $shipmentStatus, + public readonly string $labelPrepPreference, + public readonly ?bool $areCasesRequired = null, + public readonly ?string $intendedBoxContentsSource = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentInfo.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentInfo.php new file mode 100644 index 000000000..948b408da --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentInfo.php @@ -0,0 +1,46 @@ + 'ShipFromAddress', + 'areCasesRequired' => 'AreCasesRequired', + 'shipmentId' => 'ShipmentId', + 'shipmentName' => 'ShipmentName', + 'destinationFulfillmentCenterId' => 'DestinationFulfillmentCenterId', + 'shipmentStatus' => 'ShipmentStatus', + 'labelPrepType' => 'LabelPrepType', + 'confirmedNeedByDate' => 'ConfirmedNeedByDate', + 'boxContentsSource' => 'BoxContentsSource', + 'estimatedBoxContentsFee' => 'EstimatedBoxContentsFee', + ]; + + /** + * @param bool $areCasesRequired Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed. + * @param ?string $shipmentId The shipment identifier submitted in the request. + * @param ?string $shipmentName The name for the inbound shipment. + * @param ?string $destinationFulfillmentCenterId An Amazon fulfillment center identifier created by Amazon. + * @param ?string $shipmentStatus 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. + * @param ?string $labelPrepType The type of label preparation that is required for the inbound shipment. + * @param ?DateTime $confirmedNeedByDate + * @param ?string $boxContentsSource Where the seller provided box contents information for a shipment. + * @param ?BoxContentsFeeDetails $estimatedBoxContentsFee The manual processing fee per unit and total fee for a shipment. + */ + public function __construct( + public readonly Address $shipFromAddress, + public readonly bool $areCasesRequired, + public readonly ?string $shipmentId = null, + public readonly ?string $shipmentName = null, + public readonly ?string $destinationFulfillmentCenterId = null, + public readonly ?string $shipmentStatus = null, + public readonly ?string $labelPrepType = null, + public readonly ?\DateTime $confirmedNeedByDate = null, + public readonly ?string $boxContentsSource = null, + public readonly ?BoxContentsFeeDetails $estimatedBoxContentsFee = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentItem.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentItem.php new file mode 100644 index 000000000..263e5fec4 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentItem.php @@ -0,0 +1,43 @@ + 'SellerSKU', + 'quantityShipped' => 'QuantityShipped', + 'shipmentId' => 'ShipmentId', + 'fulfillmentNetworkSku' => 'FulfillmentNetworkSKU', + 'quantityReceived' => 'QuantityReceived', + 'quantityInCase' => 'QuantityInCase', + 'releaseDate' => 'ReleaseDate', + 'prepDetailsList' => 'PrepDetailsList', + ]; + + protected static array $complexArrayTypes = ['prepDetailsList' => [PrepDetails::class]]; + + /** + * @param string $sellerSku The seller SKU of the item. + * @param int $quantityShipped The item quantity. + * @param ?string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param ?string $fulfillmentNetworkSku Amazon's fulfillment network SKU of the item. + * @param ?int $quantityReceived The item quantity. + * @param ?int $quantityInCase The item quantity. + * @param ?DateTime $releaseDate + * @param PrepDetails[]|null $prepDetailsList A list of preparation instructions and who is responsible for that preparation. + */ + public function __construct( + public readonly string $sellerSku, + public readonly int $quantityShipped, + public readonly ?string $shipmentId = null, + public readonly ?string $fulfillmentNetworkSku = null, + public readonly ?int $quantityReceived = null, + public readonly ?int $quantityInCase = null, + public readonly ?\DateTime $releaseDate = null, + public readonly ?array $prepDetailsList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentPlan.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlan.php new file mode 100644 index 000000000..ddf2cbd4d --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlan.php @@ -0,0 +1,36 @@ + 'ShipmentId', + 'destinationFulfillmentCenterId' => 'DestinationFulfillmentCenterId', + 'shipToAddress' => 'ShipToAddress', + 'labelPrepType' => 'LabelPrepType', + 'items' => 'Items', + 'estimatedBoxContentsFee' => 'EstimatedBoxContentsFee', + ]; + + protected static array $complexArrayTypes = ['items' => [InboundShipmentPlanItem::class]]; + + /** + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param string $destinationFulfillmentCenterId An Amazon fulfillment center identifier created by Amazon. + * @param string $labelPrepType The type of label preparation that is required for the inbound shipment. + * @param InboundShipmentPlanItem[] $items A list of inbound shipment plan item information. + * @param ?BoxContentsFeeDetails $estimatedBoxContentsFee The manual processing fee per unit and total fee for a shipment. + */ + public function __construct( + public readonly string $shipmentId, + public readonly string $destinationFulfillmentCenterId, + public readonly Address $shipToAddress, + public readonly string $labelPrepType, + public readonly array $items, + public readonly ?BoxContentsFeeDetails $estimatedBoxContentsFee = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanItem.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanItem.php new file mode 100644 index 000000000..033153076 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanItem.php @@ -0,0 +1,31 @@ + 'SellerSKU', + 'fulfillmentNetworkSku' => 'FulfillmentNetworkSKU', + 'quantity' => 'Quantity', + 'prepDetailsList' => 'PrepDetailsList', + ]; + + protected static array $complexArrayTypes = ['prepDetailsList' => [PrepDetails::class]]; + + /** + * @param string $sellerSku The seller SKU of the item. + * @param string $fulfillmentNetworkSku Amazon's fulfillment network SKU of the item. + * @param int $quantity The item quantity. + * @param PrepDetails[]|null $prepDetailsList A list of preparation instructions and who is responsible for that preparation. + */ + public function __construct( + public readonly string $sellerSku, + public readonly string $fulfillmentNetworkSku, + public readonly int $quantity, + public readonly ?array $prepDetailsList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanRequestItem.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanRequestItem.php new file mode 100644 index 000000000..922029514 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentPlanRequestItem.php @@ -0,0 +1,37 @@ + 'SellerSKU', + 'asin' => 'ASIN', + 'condition' => 'Condition', + 'quantity' => 'Quantity', + 'quantityInCase' => 'QuantityInCase', + 'prepDetailsList' => 'PrepDetailsList', + ]; + + protected static array $complexArrayTypes = ['prepDetailsList' => [PrepDetails::class]]; + + /** + * @param string $sellerSku The seller SKU of the item. + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $condition The condition of the item. + * @param int $quantity The item quantity. + * @param ?int $quantityInCase The item quantity. + * @param PrepDetails[]|null $prepDetailsList A list of preparation instructions and who is responsible for that preparation. + */ + public function __construct( + public readonly string $sellerSku, + public readonly string $asin, + public readonly string $condition, + public readonly int $quantity, + public readonly ?int $quantityInCase = null, + public readonly ?array $prepDetailsList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentRequest.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentRequest.php new file mode 100644 index 000000000..b4526a153 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentRequest.php @@ -0,0 +1,28 @@ + 'InboundShipmentHeader', + 'inboundShipmentItems' => 'InboundShipmentItems', + 'marketplaceId' => 'MarketplaceId', + ]; + + protected static array $complexArrayTypes = ['inboundShipmentItems' => [InboundShipmentItem::class]]; + + /** + * @param InboundShipmentHeader $inboundShipmentHeader Inbound shipment information used to create and update inbound shipments. + * @param InboundShipmentItem[] $inboundShipmentItems A list of inbound shipment item information. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. + */ + public function __construct( + public readonly InboundShipmentHeader $inboundShipmentHeader, + public readonly array $inboundShipmentItems, + public readonly string $marketplaceId, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InboundShipmentResult.php b/src/Seller/FBAInboundV0/Dto/InboundShipmentResult.php new file mode 100644 index 000000000..30f54b06e --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InboundShipmentResult.php @@ -0,0 +1,18 @@ + 'ShipmentId']; + + /** + * @param string $shipmentId The shipment identifier submitted in the request. + */ + public function __construct( + public readonly string $shipmentId, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InvalidAsin.php b/src/Seller/FBAInboundV0/Dto/InvalidAsin.php new file mode 100644 index 000000000..ba6fb1167 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InvalidAsin.php @@ -0,0 +1,20 @@ + 'ASIN', 'errorReason' => 'ErrorReason']; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $errorReason The reason that the ASIN is invalid. + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?string $errorReason = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/InvalidSku.php b/src/Seller/FBAInboundV0/Dto/InvalidSku.php new file mode 100644 index 000000000..2366b1ed3 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/InvalidSku.php @@ -0,0 +1,20 @@ + 'SellerSKU', 'errorReason' => 'ErrorReason']; + + /** + * @param ?string $sellerSku The seller SKU of the item. + * @param ?string $errorReason The reason that the ASIN is invalid. + */ + public function __construct( + public readonly ?string $sellerSku = null, + public readonly ?string $errorReason = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/LabelDownloadUrl.php b/src/Seller/FBAInboundV0/Dto/LabelDownloadUrl.php new file mode 100644 index 000000000..df087cd85 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/LabelDownloadUrl.php @@ -0,0 +1,18 @@ + 'DownloadURL']; + + /** + * @param ?string $downloadUrl URL to download the label for the package. Note: The URL will only be valid for 15 seconds + */ + public function __construct( + public readonly ?string $downloadUrl = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataInput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataInput.php new file mode 100644 index 000000000..0dc3a0fd8 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataInput.php @@ -0,0 +1,20 @@ + 'CarrierName', 'proNumber' => 'ProNumber']; + + /** + * @param string $carrierName The carrier that you are using for the inbound shipment. + * @param string $proNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier. + */ + public function __construct( + public readonly string $carrierName, + public readonly string $proNumber, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataOutput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataOutput.php new file mode 100644 index 000000000..942a50024 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredLtlDataOutput.php @@ -0,0 +1,20 @@ + 'CarrierName', 'proNumber' => 'ProNumber']; + + /** + * @param string $carrierName The carrier that you are using for the inbound shipment. + * @param string $proNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier. + */ + public function __construct( + public readonly string $carrierName, + public readonly string $proNumber, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataInput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataInput.php new file mode 100644 index 000000000..87d812119 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataInput.php @@ -0,0 +1,22 @@ + 'CarrierName', 'packageList' => 'PackageList']; + + protected static array $complexArrayTypes = ['packageList' => [NonPartneredSmallParcelPackageInput::class]]; + + /** + * @param string $carrierName The carrier that you are using for the inbound shipment. + * @param NonPartneredSmallParcelPackageInput[] $packageList A list of package tracking information. + */ + public function __construct( + public readonly string $carrierName, + public readonly array $packageList, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataOutput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataOutput.php new file mode 100644 index 000000000..03725644d --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelDataOutput.php @@ -0,0 +1,20 @@ + 'PackageList']; + + protected static array $complexArrayTypes = ['packageList' => [NonPartneredSmallParcelPackageOutput::class]]; + + /** + * @param NonPartneredSmallParcelPackageOutput[] $packageList A list of packages, including carrier, tracking number, and status information for each package. + */ + public function __construct( + public readonly array $packageList, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageInput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageInput.php new file mode 100644 index 000000000..7b41d5a03 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageInput.php @@ -0,0 +1,18 @@ + 'TrackingId']; + + /** + * @param string $trackingId The tracking number of the package, provided by the carrier. + */ + public function __construct( + public readonly string $trackingId, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageOutput.php b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageOutput.php new file mode 100644 index 000000000..dc63e7a49 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/NonPartneredSmallParcelPackageOutput.php @@ -0,0 +1,26 @@ + 'CarrierName', + 'trackingId' => 'TrackingId', + 'packageStatus' => 'PackageStatus', + ]; + + /** + * @param string $carrierName The carrier that you are using for the inbound shipment. + * @param string $trackingId The tracking number of the package, provided by the carrier. + * @param string $packageStatus The shipment status of the package. + */ + public function __construct( + public readonly string $carrierName, + public readonly string $trackingId, + public readonly string $packageStatus, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Pallet.php b/src/Seller/FBAInboundV0/Dto/Pallet.php new file mode 100644 index 000000000..3e097ae25 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Pallet.php @@ -0,0 +1,22 @@ + 'Dimensions', 'isStacked' => 'IsStacked', 'weight' => 'Weight']; + + /** + * @param Dimensions $dimensions The dimension values and unit of measurement. + * @param bool $isStacked Indicates whether pallets will be stacked when carrier arrives for pick-up. + * @param ?Weight $weight The weight of the package. + */ + public function __construct( + public readonly Dimensions $dimensions, + public readonly bool $isStacked, + public readonly ?Weight $weight = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredEstimate.php b/src/Seller/FBAInboundV0/Dto/PartneredEstimate.php new file mode 100644 index 000000000..c24b121b9 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredEstimate.php @@ -0,0 +1,26 @@ + 'Amount', + 'confirmDeadline' => 'ConfirmDeadline', + 'voidDeadline' => 'VoidDeadline', + ]; + + /** + * @param Amount $amount The monetary value. + * @param ?DateTime $confirmDeadline + * @param ?DateTime $voidDeadline + */ + public function __construct( + public readonly Amount $amount, + public readonly ?\DateTime $confirmDeadline = null, + public readonly ?\DateTime $voidDeadline = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredLtlDataInput.php b/src/Seller/FBAInboundV0/Dto/PartneredLtlDataInput.php new file mode 100644 index 000000000..6f0b253be --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredLtlDataInput.php @@ -0,0 +1,40 @@ + 'Contact', + 'boxCount' => 'BoxCount', + 'sellerFreightClass' => 'SellerFreightClass', + 'freightReadyDate' => 'FreightReadyDate', + 'palletList' => 'PalletList', + 'totalWeight' => 'TotalWeight', + 'sellerDeclaredValue' => 'SellerDeclaredValue', + ]; + + protected static array $complexArrayTypes = ['palletList' => [Pallet::class]]; + + /** + * @param ?Contact $contact Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. + * @param ?int $boxCount + * @param ?string $sellerFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. + * @param ?DateTime $freightReadyDate + * @param Pallet[]|null $palletList A list of pallet information. + * @param ?Weight $totalWeight The weight of the package. + * @param ?Amount $sellerDeclaredValue The monetary value. + */ + public function __construct( + public readonly ?Contact $contact = null, + public readonly ?int $boxCount = null, + public readonly ?string $sellerFreightClass = null, + public readonly ?\DateTime $freightReadyDate = null, + public readonly ?array $palletList = null, + public readonly ?Weight $totalWeight = null, + public readonly ?Amount $sellerDeclaredValue = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredLtlDataOutput.php b/src/Seller/FBAInboundV0/Dto/PartneredLtlDataOutput.php new file mode 100644 index 000000000..2e135f2bc --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredLtlDataOutput.php @@ -0,0 +1,63 @@ + 'Contact', + 'boxCount' => 'BoxCount', + 'freightReadyDate' => 'FreightReadyDate', + 'palletList' => 'PalletList', + 'totalWeight' => 'TotalWeight', + 'previewPickupDate' => 'PreviewPickupDate', + 'previewDeliveryDate' => 'PreviewDeliveryDate', + 'previewFreightClass' => 'PreviewFreightClass', + 'amazonReferenceId' => 'AmazonReferenceId', + 'isBillOfLadingAvailable' => 'IsBillOfLadingAvailable', + 'carrierName' => 'CarrierName', + 'sellerFreightClass' => 'SellerFreightClass', + 'sellerDeclaredValue' => 'SellerDeclaredValue', + 'amazonCalculatedValue' => 'AmazonCalculatedValue', + 'partneredEstimate' => 'PartneredEstimate', + ]; + + protected static array $complexArrayTypes = ['palletList' => [Pallet::class]]; + + /** + * @param Contact $contact Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. + * @param DateTime $freightReadyDate + * @param Pallet[] $palletList A list of pallet information. + * @param Weight $totalWeight The weight of the package. + * @param DateTime $previewPickupDate + * @param DateTime $previewDeliveryDate + * @param string $previewFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. + * @param string $amazonReferenceId A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment. + * @param bool $isBillOfLadingAvailable Indicates whether the bill of lading for the shipment is available. + * @param string $carrierName The carrier for the inbound shipment. + * @param ?string $sellerFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. + * @param ?Amount $sellerDeclaredValue The monetary value. + * @param ?Amount $amazonCalculatedValue The monetary value. + * @param ?PartneredEstimate $partneredEstimate The estimated shipping cost for a shipment using an Amazon-partnered carrier. + */ + public function __construct( + public readonly Contact $contact, + public readonly int $boxCount, + public readonly \DateTime $freightReadyDate, + public readonly array $palletList, + public readonly Weight $totalWeight, + public readonly \DateTime $previewPickupDate, + public readonly \DateTime $previewDeliveryDate, + public readonly string $previewFreightClass, + public readonly string $amazonReferenceId, + public readonly bool $isBillOfLadingAvailable, + public readonly string $carrierName, + public readonly ?string $sellerFreightClass = null, + public readonly ?Amount $sellerDeclaredValue = null, + public readonly ?Amount $amazonCalculatedValue = null, + public readonly ?PartneredEstimate $partneredEstimate = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataInput.php b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataInput.php new file mode 100644 index 000000000..fd3682941 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataInput.php @@ -0,0 +1,22 @@ + 'PackageList', 'carrierName' => 'CarrierName']; + + protected static array $complexArrayTypes = ['packageList' => [PartneredSmallParcelPackageInput::class]]; + + /** + * @param PartneredSmallParcelPackageInput[]|null $packageList A list of dimensions and weight information for packages. + * @param ?string $carrierName The Amazon-partnered carrier to use for the inbound shipment. **`CarrierName`** values in France (FR), Italy (IT), Spain (ES), the United Kingdom (UK), and the United States (US): `UNITED_PARCEL_SERVICE_INC`.
**`CarrierName`** values in Germany (DE): `DHL_STANDARD`,`UNITED_PARCEL_SERVICE_INC`.
Default: `UNITED_PARCEL_SERVICE_INC`. + */ + public function __construct( + public readonly ?array $packageList = null, + public readonly ?string $carrierName = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataOutput.php b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataOutput.php new file mode 100644 index 000000000..82e23ec74 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelDataOutput.php @@ -0,0 +1,22 @@ + 'PackageList', 'partneredEstimate' => 'PartneredEstimate']; + + protected static array $complexArrayTypes = ['packageList' => [PartneredSmallParcelPackageOutput::class]]; + + /** + * @param PartneredSmallParcelPackageOutput[] $packageList A list of packages, including shipping information from the Amazon-partnered carrier. + * @param ?PartneredEstimate $partneredEstimate The estimated shipping cost for a shipment using an Amazon-partnered carrier. + */ + public function __construct( + public readonly array $packageList, + public readonly ?PartneredEstimate $partneredEstimate = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageInput.php b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageInput.php new file mode 100644 index 000000000..bb6a94dda --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageInput.php @@ -0,0 +1,20 @@ + 'Dimensions', 'weight' => 'Weight']; + + /** + * @param Dimensions $dimensions The dimension values and unit of measurement. + * @param Weight $weight The weight of the package. + */ + public function __construct( + public readonly Dimensions $dimensions, + public readonly Weight $weight, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageOutput.php b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageOutput.php new file mode 100644 index 000000000..140ee39f6 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PartneredSmallParcelPackageOutput.php @@ -0,0 +1,32 @@ + 'Dimensions', + 'weight' => 'Weight', + 'carrierName' => 'CarrierName', + 'trackingId' => 'TrackingId', + 'packageStatus' => 'PackageStatus', + ]; + + /** + * @param Dimensions $dimensions The dimension values and unit of measurement. + * @param Weight $weight The weight of the package. + * @param string $carrierName The carrier specified with a previous call to putTransportDetails. + * @param string $trackingId The tracking number of the package, provided by the carrier. + * @param string $packageStatus The shipment status of the package. + */ + public function __construct( + public readonly Dimensions $dimensions, + public readonly Weight $weight, + public readonly string $carrierName, + public readonly string $trackingId, + public readonly string $packageStatus, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PrepDetails.php b/src/Seller/FBAInboundV0/Dto/PrepDetails.php new file mode 100644 index 000000000..25d4e9a07 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PrepDetails.php @@ -0,0 +1,20 @@ + 'PrepInstruction', 'prepOwner' => 'PrepOwner']; + + /** + * @param string $prepInstruction 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. + * @param string $prepOwner Indicates who will prepare the item. + */ + public function __construct( + public readonly string $prepInstruction, + public readonly string $prepOwner, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/PutTransportDetailsRequest.php b/src/Seller/FBAInboundV0/Dto/PutTransportDetailsRequest.php new file mode 100644 index 000000000..557254b43 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/PutTransportDetailsRequest.php @@ -0,0 +1,26 @@ + 'IsPartnered', + 'shipmentType' => 'ShipmentType', + 'transportDetails' => 'TransportDetails', + ]; + + /** + * @param bool $isPartnered Indicates whether a putTransportDetails request is for an Amazon-partnered carrier. + * @param string $shipmentType Specifies the carrier shipment type in a putTransportDetails request. + * @param TransportDetailInput $transportDetails 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. + */ + public function __construct( + public readonly bool $isPartnered, + public readonly string $shipmentType, + public readonly TransportDetailInput $transportDetails, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/SkuInboundGuidance.php b/src/Seller/FBAInboundV0/Dto/SkuInboundGuidance.php new file mode 100644 index 000000000..660e109da --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/SkuInboundGuidance.php @@ -0,0 +1,29 @@ + 'SellerSKU', + 'asin' => 'ASIN', + 'inboundGuidance' => 'InboundGuidance', + 'guidanceReasonList' => 'GuidanceReasonList', + ]; + + /** + * @param string $sellerSku The seller SKU of the item. + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $inboundGuidance Specific inbound guidance for an item. + * @param ?string[] $guidanceReasonList A list of inbound guidance reason information. + */ + public function __construct( + public readonly string $sellerSku, + public readonly string $asin, + public readonly string $inboundGuidance, + public readonly ?array $guidanceReasonList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/SkuPrepInstructions.php b/src/Seller/FBAInboundV0/Dto/SkuPrepInstructions.php new file mode 100644 index 000000000..803ba8a5a --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/SkuPrepInstructions.php @@ -0,0 +1,37 @@ + 'SellerSKU', + 'asin' => 'ASIN', + 'barcodeInstruction' => 'BarcodeInstruction', + 'prepGuidance' => 'PrepGuidance', + 'prepInstructionList' => 'PrepInstructionList', + 'amazonPrepFeesDetailsList' => 'AmazonPrepFeesDetailsList', + ]; + + protected static array $complexArrayTypes = ['amazonPrepFeesDetailsList' => [AmazonPrepFeesDetails::class]]; + + /** + * @param ?string $sellerSku The seller SKU of the item. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $barcodeInstruction Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace. + * @param ?string $prepGuidance Item preparation instructions. + * @param ?string[] $prepInstructionList A list of preparation instructions to help with item sourcing decisions. + * @param AmazonPrepFeesDetails[]|null $amazonPrepFeesDetailsList A list of preparation instructions and fees for Amazon to prep goods for shipment. + */ + public function __construct( + public readonly ?string $sellerSku = null, + public readonly ?string $asin = null, + public readonly ?string $barcodeInstruction = null, + public readonly ?string $prepGuidance = null, + public readonly ?array $prepInstructionList = null, + public readonly ?array $amazonPrepFeesDetailsList = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/TransportContent.php b/src/Seller/FBAInboundV0/Dto/TransportContent.php new file mode 100644 index 000000000..567641128 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/TransportContent.php @@ -0,0 +1,26 @@ + 'TransportHeader', + 'transportDetails' => 'TransportDetails', + 'transportResult' => 'TransportResult', + ]; + + /** + * @param TransportHeader $transportHeader 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). + * @param TransportDetailOutput $transportDetails Inbound shipment information, including carrier details and shipment status. + * @param TransportResult $transportResult The workflow status for a shipment with an Amazon-partnered carrier. + */ + public function __construct( + public readonly TransportHeader $transportHeader, + public readonly TransportDetailOutput $transportDetails, + public readonly TransportResult $transportResult, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/TransportDetailInput.php b/src/Seller/FBAInboundV0/Dto/TransportDetailInput.php new file mode 100644 index 000000000..1b38e7669 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/TransportDetailInput.php @@ -0,0 +1,29 @@ + 'PartneredSmallParcelData', + 'nonPartneredSmallParcelData' => 'NonPartneredSmallParcelData', + 'partneredLtlData' => 'PartneredLtlData', + 'nonPartneredLtlData' => 'NonPartneredLtlData', + ]; + + /** + * @param ?PartneredSmallParcelDataInput $partneredSmallParcelData Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment. + * @param ?NonPartneredSmallParcelDataInput $nonPartneredSmallParcelData Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon. + * @param ?PartneredLtlDataInput $partneredLtlData Information that is required by an Amazon-partnered carrier to ship a Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. + * @param ?NonPartneredLtlDataInput $nonPartneredLtlData 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. + */ + public function __construct( + public readonly ?PartneredSmallParcelDataInput $partneredSmallParcelData = null, + public readonly ?NonPartneredSmallParcelDataInput $nonPartneredSmallParcelData = null, + public readonly ?PartneredLtlDataInput $partneredLtlData = null, + public readonly ?NonPartneredLtlDataInput $nonPartneredLtlData = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/TransportDetailOutput.php b/src/Seller/FBAInboundV0/Dto/TransportDetailOutput.php new file mode 100644 index 000000000..b3384c620 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/TransportDetailOutput.php @@ -0,0 +1,29 @@ + 'PartneredSmallParcelData', + 'nonPartneredSmallParcelData' => 'NonPartneredSmallParcelData', + 'partneredLtlData' => 'PartneredLtlData', + 'nonPartneredLtlData' => 'NonPartneredLtlData', + ]; + + /** + * @param ?PartneredSmallParcelDataOutput $partneredSmallParcelData Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier. + * @param ?NonPartneredSmallParcelDataOutput $nonPartneredSmallParcelData Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon. + * @param ?PartneredLtlDataOutput $partneredLtlData Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier. + * @param ?NonPartneredLtlDataOutput $nonPartneredLtlData Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment shipped by a carrier that has not partnered with Amazon. + */ + public function __construct( + public readonly ?PartneredSmallParcelDataOutput $partneredSmallParcelData = null, + public readonly ?NonPartneredSmallParcelDataOutput $nonPartneredSmallParcelData = null, + public readonly ?PartneredLtlDataOutput $partneredLtlData = null, + public readonly ?NonPartneredLtlDataOutput $nonPartneredLtlData = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/TransportHeader.php b/src/Seller/FBAInboundV0/Dto/TransportHeader.php new file mode 100644 index 000000000..704b413c6 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/TransportHeader.php @@ -0,0 +1,35 @@ + 'SellerId', + 'shipmentId' => 'ShipmentId', + 'isPartnered' => 'IsPartnered', + 'shipmentType' => 'ShipmentType', + ]; + + /** + * @param string $sellerId The Amazon seller identifier. + * @param string $shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. + * @param bool $isPartnered Indicates whether a putTransportDetails request is for a partnered carrier. + * + * Possible values: + * + * * true – Request is for an Amazon-partnered carrier. + * + * * false – Request is for a non-Amazon-partnered carrier. + * @param string $shipmentType Specifies the carrier shipment type in a putTransportDetails request. + */ + public function __construct( + public readonly string $sellerId, + public readonly string $shipmentId, + public readonly bool $isPartnered, + public readonly string $shipmentType, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/TransportResult.php b/src/Seller/FBAInboundV0/Dto/TransportResult.php new file mode 100644 index 000000000..d8e98bd8d --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/TransportResult.php @@ -0,0 +1,26 @@ + 'TransportStatus', + 'errorCode' => 'ErrorCode', + 'errorDescription' => 'ErrorDescription', + ]; + + /** + * @param string $transportStatus Indicates the status of the Amazon-partnered carrier shipment. + * @param ?string $errorCode An error code that identifies the type of error that occured. + * @param ?string $errorDescription A message that describes the error condition. + */ + public function __construct( + public readonly string $transportStatus, + public readonly ?string $errorCode = null, + public readonly ?string $errorDescription = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Dto/Weight.php b/src/Seller/FBAInboundV0/Dto/Weight.php new file mode 100644 index 000000000..98edbffd7 --- /dev/null +++ b/src/Seller/FBAInboundV0/Dto/Weight.php @@ -0,0 +1,19 @@ + 'Value', 'unit' => 'Unit']; + + /** + * @param string $unit Indicates the unit of weight. + */ + public function __construct( + public readonly float $value, + public readonly string $unit, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Requests/ConfirmPreorder.php b/src/Seller/FBAInboundV0/Requests/ConfirmPreorder.php new file mode 100644 index 000000000..233cbbfa9 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/ConfirmPreorder.php @@ -0,0 +1,50 @@ + $this->needByDate?->format(\DateTime::RFC3339), 'MarketplaceId' => $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/fba/inbound/v0/shipments/{$this->shipmentId}/preorder/confirm"; + } + + public function createDtoFromResponse(Response $response): ConfirmPreorderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ConfirmPreorderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/ConfirmTransport.php b/src/Seller/FBAInboundV0/Requests/ConfirmTransport.php new file mode 100644 index 000000000..10d56337f --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/ConfirmTransport.php @@ -0,0 +1,45 @@ +shipmentId}/transport/confirm"; + } + + public function createDtoFromResponse(Response $response): ConfirmTransportResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ConfirmTransportResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/CreateInboundShipment.php b/src/Seller/FBAInboundV0/Requests/CreateInboundShipment.php new file mode 100644 index 000000000..aad1065a0 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/CreateInboundShipment.php @@ -0,0 +1,53 @@ +shipmentId}"; + } + + public function createDtoFromResponse(Response $response): InboundShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => InboundShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->inboundShipmentRequest->toArray(); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/CreateInboundShipmentPlan.php b/src/Seller/FBAInboundV0/Requests/CreateInboundShipmentPlan.php new file mode 100644 index 000000000..e6a50fbb1 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/CreateInboundShipmentPlan.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CreateInboundShipmentPlanResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createInboundShipmentPlanRequest->toArray(); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/EstimateTransport.php b/src/Seller/FBAInboundV0/Requests/EstimateTransport.php new file mode 100644 index 000000000..ce4ae84d4 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/EstimateTransport.php @@ -0,0 +1,45 @@ +shipmentId}/transport/estimate"; + } + + public function createDtoFromResponse(Response $response): EstimateTransportResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => EstimateTransportResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetBillOfLading.php b/src/Seller/FBAInboundV0/Requests/GetBillOfLading.php new file mode 100644 index 000000000..3ba19e7a3 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetBillOfLading.php @@ -0,0 +1,41 @@ +shipmentId}/billOfLading"; + } + + public function createDtoFromResponse(Response $response): GetBillOfLadingResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetBillOfLadingResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetInboundGuidance.php b/src/Seller/FBAInboundV0/Requests/GetInboundGuidance.php new file mode 100644 index 000000000..501ec4f9c --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetInboundGuidance.php @@ -0,0 +1,50 @@ + $this->marketplaceId, 'SellerSKUList' => $this->sellerSkuList, 'ASINList' => $this->asinList]); + } + + public function resolveEndpoint(): string + { + return '/fba/inbound/v0/itemsGuidance'; + } + + public function createDtoFromResponse(Response $response): GetInboundGuidanceResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetInboundGuidanceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetLabels.php b/src/Seller/FBAInboundV0/Requests/GetLabels.php new file mode 100644 index 000000000..a4ee4bc67 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetLabels.php @@ -0,0 +1,70 @@ + $this->pageType, + 'LabelType' => $this->labelType, + 'NumberOfPackages' => $this->numberOfPackages, + 'PackageLabelsToPrint' => $this->packageLabelsToPrint, + 'NumberOfPallets' => $this->numberOfPallets, + 'PageSize' => $this->pageSize, + 'PageStartIndex' => $this->pageStartIndex, + ]); + } + + public function resolveEndpoint(): string + { + return "/fba/inbound/v0/shipments/{$this->shipmentId}/labels"; + } + + public function createDtoFromResponse(Response $response): GetLabelsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetLabelsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetPreorderInfo.php b/src/Seller/FBAInboundV0/Requests/GetPreorderInfo.php new file mode 100644 index 000000000..88d209a6b --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetPreorderInfo.php @@ -0,0 +1,48 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/fba/inbound/v0/shipments/{$this->shipmentId}/preorder"; + } + + public function createDtoFromResponse(Response $response): GetPreorderInfoResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetPreorderInfoResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetPrepInstructions.php b/src/Seller/FBAInboundV0/Requests/GetPrepInstructions.php new file mode 100644 index 000000000..21f76bf12 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetPrepInstructions.php @@ -0,0 +1,58 @@ + $this->shipToCountryCode, + 'SellerSKUList' => $this->sellerSkuList, + 'ASINList' => $this->asinList, + ]); + } + + public function resolveEndpoint(): string + { + return '/fba/inbound/v0/prepInstructions'; + } + + public function createDtoFromResponse(Response $response): GetPrepInstructionsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetPrepInstructionsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetShipmentItems.php b/src/Seller/FBAInboundV0/Requests/GetShipmentItems.php new file mode 100644 index 000000000..aa3f96e1d --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetShipmentItems.php @@ -0,0 +1,60 @@ + $this->queryType, + 'MarketplaceId' => $this->marketplaceId, + 'LastUpdatedAfter' => $this->lastUpdatedAfter?->format(\DateTime::RFC3339), + 'LastUpdatedBefore' => $this->lastUpdatedBefore?->format(\DateTime::RFC3339), + 'NextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/fba/inbound/v0/shipmentItems'; + } + + public function createDtoFromResponse(Response $response): GetShipmentItemsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetShipmentItemsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetShipmentItemsByShipmentId.php b/src/Seller/FBAInboundV0/Requests/GetShipmentItemsByShipmentId.php new file mode 100644 index 000000000..e025e6c1d --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetShipmentItemsByShipmentId.php @@ -0,0 +1,48 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/fba/inbound/v0/shipments/{$this->shipmentId}/items"; + } + + public function createDtoFromResponse(Response $response): GetShipmentItemsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetShipmentItemsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetShipments.php b/src/Seller/FBAInboundV0/Requests/GetShipments.php new file mode 100644 index 000000000..89ff9c263 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetShipments.php @@ -0,0 +1,66 @@ + $this->queryType, + 'MarketplaceId' => $this->marketplaceId, + 'ShipmentStatusList' => $this->shipmentStatusList, + 'ShipmentIdList' => $this->shipmentIdList, + 'LastUpdatedAfter' => $this->lastUpdatedAfter?->format(\DateTime::RFC3339), + 'LastUpdatedBefore' => $this->lastUpdatedBefore?->format(\DateTime::RFC3339), + 'NextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/fba/inbound/v0/shipments'; + } + + public function createDtoFromResponse(Response $response): GetShipmentsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetShipmentsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/GetTransportDetails.php b/src/Seller/FBAInboundV0/Requests/GetTransportDetails.php new file mode 100644 index 000000000..79fbb558b --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/GetTransportDetails.php @@ -0,0 +1,41 @@ +shipmentId}/transport"; + } + + public function createDtoFromResponse(Response $response): GetTransportDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetTransportDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/PutTransportDetails.php b/src/Seller/FBAInboundV0/Requests/PutTransportDetails.php new file mode 100644 index 000000000..195c55bef --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/PutTransportDetails.php @@ -0,0 +1,49 @@ +shipmentId}/transport"; + } + + public function createDtoFromResponse(Response $response): PutTransportDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => PutTransportDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->putTransportDetailsRequest->toArray(); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/UpdateInboundShipment.php b/src/Seller/FBAInboundV0/Requests/UpdateInboundShipment.php new file mode 100644 index 000000000..0160ae265 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/UpdateInboundShipment.php @@ -0,0 +1,49 @@ +shipmentId}"; + } + + public function createDtoFromResponse(Response $response): InboundShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => InboundShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->inboundShipmentRequest->toArray(); + } +} diff --git a/src/Seller/FBAInboundV0/Requests/VoidTransport.php b/src/Seller/FBAInboundV0/Requests/VoidTransport.php new file mode 100644 index 000000000..afa540d83 --- /dev/null +++ b/src/Seller/FBAInboundV0/Requests/VoidTransport.php @@ -0,0 +1,45 @@ +shipmentId}/transport/void"; + } + + public function createDtoFromResponse(Response $response): VoidTransportResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => VoidTransportResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInboundV0/Responses/ConfirmPreorderResponse.php b/src/Seller/FBAInboundV0/Responses/ConfirmPreorderResponse.php new file mode 100644 index 000000000..20fb18b61 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/ConfirmPreorderResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ConfirmPreorderResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ConfirmPreorderResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/ConfirmTransportResponse.php b/src/Seller/FBAInboundV0/Responses/ConfirmTransportResponse.php new file mode 100644 index 000000000..9e60fee6a --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/ConfirmTransportResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CommonTransportResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CommonTransportResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/CreateInboundShipmentPlanResponse.php b/src/Seller/FBAInboundV0/Responses/CreateInboundShipmentPlanResponse.php new file mode 100644 index 000000000..088d03a7c --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/CreateInboundShipmentPlanResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CreateInboundShipmentPlanResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CreateInboundShipmentPlanResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/EstimateTransportResponse.php b/src/Seller/FBAInboundV0/Responses/EstimateTransportResponse.php new file mode 100644 index 000000000..f2faeaa26 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/EstimateTransportResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CommonTransportResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CommonTransportResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetBillOfLadingResponse.php b/src/Seller/FBAInboundV0/Responses/GetBillOfLadingResponse.php new file mode 100644 index 000000000..af175f564 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetBillOfLadingResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?BillOfLadingDownloadUrl $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?BillOfLadingDownloadUrl $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetInboundGuidanceResponse.php b/src/Seller/FBAInboundV0/Responses/GetInboundGuidanceResponse.php new file mode 100644 index 000000000..9cc860b3a --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetInboundGuidanceResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetInboundGuidanceResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetInboundGuidanceResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetLabelsResponse.php b/src/Seller/FBAInboundV0/Responses/GetLabelsResponse.php new file mode 100644 index 000000000..b045dc6d2 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetLabelsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?LabelDownloadUrl $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?LabelDownloadUrl $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetPreorderInfoResponse.php b/src/Seller/FBAInboundV0/Responses/GetPreorderInfoResponse.php new file mode 100644 index 000000000..1ca3ebfd2 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetPreorderInfoResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetPreorderInfoResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetPreorderInfoResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetPrepInstructionsResponse.php b/src/Seller/FBAInboundV0/Responses/GetPrepInstructionsResponse.php new file mode 100644 index 000000000..6cf0ee56b --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetPrepInstructionsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetPrepInstructionsResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetPrepInstructionsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetShipmentItemsResponse.php b/src/Seller/FBAInboundV0/Responses/GetShipmentItemsResponse.php new file mode 100644 index 000000000..a6f0540cd --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetShipmentItemsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetShipmentItemsResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetShipmentItemsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetShipmentsResponse.php b/src/Seller/FBAInboundV0/Responses/GetShipmentsResponse.php new file mode 100644 index 000000000..6bbd3411f --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetShipmentsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetShipmentsResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetShipmentsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/GetTransportDetailsResponse.php b/src/Seller/FBAInboundV0/Responses/GetTransportDetailsResponse.php new file mode 100644 index 000000000..5b4bf7759 --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/GetTransportDetailsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetTransportDetailsResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetTransportDetailsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/InboundShipmentResponse.php b/src/Seller/FBAInboundV0/Responses/InboundShipmentResponse.php new file mode 100644 index 000000000..b350df9fa --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/InboundShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?InboundShipmentResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?InboundShipmentResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/PutTransportDetailsResponse.php b/src/Seller/FBAInboundV0/Responses/PutTransportDetailsResponse.php new file mode 100644 index 000000000..a5020955d --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/PutTransportDetailsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CommonTransportResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CommonTransportResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInboundV0/Responses/VoidTransportResponse.php b/src/Seller/FBAInboundV0/Responses/VoidTransportResponse.php new file mode 100644 index 000000000..580ad10ba --- /dev/null +++ b/src/Seller/FBAInboundV0/Responses/VoidTransportResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CommonTransportResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CommonTransportResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAInventoryV1/Api.php b/src/Seller/FBAInventoryV1/Api.php new file mode 100644 index 000000000..b32c52f96 --- /dev/null +++ b/src/Seller/FBAInventoryV1/Api.php @@ -0,0 +1,35 @@ +connector->send($request); + } +} diff --git a/src/Seller/FBAInventoryV1/Dto/Error.php b/src/Seller/FBAInventoryV1/Dto/Error.php new file mode 100644 index 000000000..8949393f9 --- /dev/null +++ b/src/Seller/FBAInventoryV1/Dto/Error.php @@ -0,0 +1,20 @@ + [InventorySummary::class]]; + + /** + * @param Granularity $granularity 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. + * @param InventorySummary[] $inventorySummaries A list of inventory summaries. + */ + public function __construct( + public readonly Granularity $granularity, + public readonly array $inventorySummaries, + ) { + } +} diff --git a/src/Seller/FBAInventoryV1/Dto/Granularity.php b/src/Seller/FBAInventoryV1/Dto/Granularity.php new file mode 100644 index 000000000..e6278248d --- /dev/null +++ b/src/Seller/FBAInventoryV1/Dto/Granularity.php @@ -0,0 +1,18 @@ + [ResearchingQuantityEntry::class]]; + + /** + * @param ?int $totalResearchingQuantity The total number of units currently being researched in Amazon's fulfillment network. + * @param ResearchingQuantityEntry[]|null $researchingQuantityBreakdown A list of quantity details for items currently being researched. + */ + public function __construct( + public readonly ?int $totalResearchingQuantity = null, + public readonly ?array $researchingQuantityBreakdown = null, + ) { + } +} diff --git a/src/Seller/FBAInventoryV1/Dto/ResearchingQuantityEntry.php b/src/Seller/FBAInventoryV1/Dto/ResearchingQuantityEntry.php new file mode 100644 index 000000000..009fe6012 --- /dev/null +++ b/src/Seller/FBAInventoryV1/Dto/ResearchingQuantityEntry.php @@ -0,0 +1,18 @@ + $this->granularityType, + 'granularityId' => $this->granularityId, + 'marketplaceIds' => $this->marketplaceIds, + 'details' => $this->details, + 'startDateTime' => $this->startDateTime?->format(\DateTime::RFC3339), + 'sellerSkus' => $this->sellerSkus, + 'sellerSku' => $this->sellerSku, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/fba/inventory/v1/summaries'; + } + + public function createDtoFromResponse(Response $response): GetInventorySummariesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetInventorySummariesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAInventoryV1/Responses/GetInventorySummariesResponse.php b/src/Seller/FBAInventoryV1/Responses/GetInventorySummariesResponse.php new file mode 100644 index 000000000..dda0525e8 --- /dev/null +++ b/src/Seller/FBAInventoryV1/Responses/GetInventorySummariesResponse.php @@ -0,0 +1,25 @@ + [Error::class]]; + + /** + * @param ?GetInventorySummariesResult $payload The payload schema for the getInventorySummaries operation. + * @param ?Pagination $pagination 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. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetInventorySummariesResult $payload = null, + public readonly ?Pagination $pagination = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Api.php b/src/Seller/FBAOutboundV20200701/Api.php new file mode 100644 index 000000000..22f73ee4e --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Api.php @@ -0,0 +1,178 @@ +connector->send($request); + } + + /** + * @param ?DateTime $queryStartDate A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order. + * @param ?string $nextToken A string token returned in the response to your previous request. + */ + public function listAllFulfillmentOrders(?\DateTime $queryStartDate = null, ?string $nextToken = null): Response + { + $request = new ListAllFulfillmentOrders($queryStartDate, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param CreateFulfillmentOrderRequest $createFulfillmentOrderRequest The request body schema for the createFulfillmentOrder operation. + */ + public function createFulfillmentOrder(CreateFulfillmentOrderRequest $createFulfillmentOrderRequest): Response + { + $request = new CreateFulfillmentOrder($createFulfillmentOrderRequest); + + return $this->connector->send($request); + } + + /** + * @param int $packageNumber The unencrypted package identifier returned by the getFulfillmentOrder operation. + */ + public function getPackageTrackingDetails(int $packageNumber): Response + { + $request = new GetPackageTrackingDetails($packageNumber); + + return $this->connector->send($request); + } + + /** + * @param string $sellerSku The seller SKU for which return reason codes are required. + * @param string $language The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. + * @param ?string $marketplaceId The marketplace for which the seller wants return reason codes. + * @param ?string $sellerFulfillmentOrderId 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. + */ + public function listReturnReasonCodes( + string $sellerSku, + string $language, + ?string $marketplaceId = null, + ?string $sellerFulfillmentOrderId = null, + ): Response { + $request = new ListReturnReasonCodes($sellerSku, $language, $marketplaceId, $sellerFulfillmentOrderId); + + return $this->connector->send($request); + } + + /** + * @param string $sellerFulfillmentOrderId 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. + * @param CreateFulfillmentReturnRequest $createFulfillmentReturnRequest 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. + */ + public function createFulfillmentReturn( + string $sellerFulfillmentOrderId, + CreateFulfillmentReturnRequest $createFulfillmentReturnRequest, + ): Response { + $request = new CreateFulfillmentReturn($sellerFulfillmentOrderId, $createFulfillmentReturnRequest); + + return $this->connector->send($request); + } + + /** + * @param string $sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created. + */ + public function getFulfillmentOrder(string $sellerFulfillmentOrderId): Response + { + $request = new GetFulfillmentOrder($sellerFulfillmentOrderId); + + return $this->connector->send($request); + } + + /** + * @param string $sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created. + * @param UpdateFulfillmentOrderRequest $updateFulfillmentOrderRequest The request body schema for the updateFulfillmentOrder operation. + */ + public function updateFulfillmentOrder( + string $sellerFulfillmentOrderId, + UpdateFulfillmentOrderRequest $updateFulfillmentOrderRequest, + ): Response { + $request = new UpdateFulfillmentOrder($sellerFulfillmentOrderId, $updateFulfillmentOrderRequest); + + return $this->connector->send($request); + } + + /** + * @param string $sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created. + */ + public function cancelFulfillmentOrder(string $sellerFulfillmentOrderId): Response + { + $request = new CancelFulfillmentOrder($sellerFulfillmentOrderId); + + return $this->connector->send($request); + } + + /** + * @param string $sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created. + * @param SubmitFulfillmentOrderStatusUpdateRequest $submitFulfillmentOrderStatusUpdateRequest The request body schema for the submitFulfillmentOrderStatusUpdate operation. + */ + public function submitFulfillmentOrderStatusUpdate( + string $sellerFulfillmentOrderId, + SubmitFulfillmentOrderStatusUpdateRequest $submitFulfillmentOrderStatusUpdateRequest, + ): Response { + $request = new SubmitFulfillmentOrderStatusUpdate($sellerFulfillmentOrderId, $submitFulfillmentOrderStatusUpdateRequest); + + return $this->connector->send($request); + } + + /** + * @param string $marketplaceId The marketplace for which to return the list of features. + */ + public function getFeatures(string $marketplaceId): Response + { + $request = new GetFeatures($marketplaceId); + + return $this->connector->send($request); + } + + /** + * @param string $featureName The name of the feature for which to return a list of eligible inventory. + * @param string $marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature. + * @param ?string $nextToken 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. + */ + public function getFeatureInventory(string $featureName, string $marketplaceId, ?string $nextToken = null): Response + { + $request = new GetFeatureInventory($featureName, $marketplaceId, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $featureName The name of the feature. + * @param string $sellerSku 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. + * @param string $marketplaceId The marketplace for which to return the count. + */ + public function getFeatureSku(string $featureName, string $sellerSku, string $marketplaceId): Response + { + $request = new GetFeatureSku($featureName, $sellerSku, $marketplaceId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/Address.php b/src/Seller/FBAOutboundV20200701/Dto/Address.php new file mode 100644 index 000000000..fab781008 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/Address.php @@ -0,0 +1,34 @@ + [CreateFulfillmentOrderItem::class], + 'featureConstraints' => [FeatureSettings::class], + ]; + + /** + * @param string $sellerFulfillmentOrderId A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use. + * @param string $displayableOrderId A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. + * + * The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed. + * @param DateTime $displayableOrderDate + * @param string $displayableOrderComment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. + * @param string $shippingSpeedCategory The shipping method used for the fulfillment order. When this value is ScheduledDelivery, choose Ship for the fulfillmentAction. Hold is not a valid fulfillmentAction value when the shippingSpeedCategory value is ScheduledDelivery. + * @param Address $destinationAddress A physical address. + * @param CreateFulfillmentOrderItem[] $items An array of item information for creating a fulfillment order. + * @param ?string $marketplaceId The marketplace the fulfillment order is placed against. + * @param ?DeliveryWindow $deliveryWindow The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace. + * @param ?string $fulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it. + * @param ?string $fulfillmentPolicy The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. + * @param ?CodSettings $codSettings The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. + * @param ?string $shipFromCountryCode The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. + * @param ?string[] $notificationEmails 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. + * @param FeatureSettings[]|null $featureConstraints A list of features and their fulfillment policies to apply to the order. + */ + public function __construct( + public readonly string $sellerFulfillmentOrderId, + public readonly string $displayableOrderId, + public readonly \DateTime $displayableOrderDate, + public readonly string $displayableOrderComment, + public readonly string $shippingSpeedCategory, + public readonly Address $destinationAddress, + public readonly array $items, + public readonly ?string $marketplaceId = null, + public readonly ?DeliveryWindow $deliveryWindow = null, + public readonly ?string $fulfillmentAction = null, + public readonly ?string $fulfillmentPolicy = null, + public readonly ?CodSettings $codSettings = null, + public readonly ?string $shipFromCountryCode = null, + public readonly ?array $notificationEmails = null, + public readonly ?array $featureConstraints = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnRequest.php b/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnRequest.php new file mode 100644 index 000000000..4ffac014d --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnRequest.php @@ -0,0 +1,18 @@ + [CreateReturnItem::class]]; + + /** + * @param CreateReturnItem[] $items An array of items to be returned. + */ + public function __construct( + public readonly array $items, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnResult.php b/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnResult.php new file mode 100644 index 000000000..d2e5535bc --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/CreateFulfillmentReturnResult.php @@ -0,0 +1,26 @@ + [ReturnItem::class], + 'invalidReturnItems' => [InvalidReturnItem::class], + 'returnAuthorizations' => [ReturnAuthorization::class], + ]; + + /** + * @param ReturnItem[]|null $returnItems An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. + * @param InvalidReturnItem[]|null $invalidReturnItems An array of invalid return item information. + * @param ReturnAuthorization[]|null $returnAuthorizations An array of return authorization information. + */ + public function __construct( + public readonly ?array $returnItems = null, + public readonly ?array $invalidReturnItems = null, + public readonly ?array $returnAuthorizations = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/CreateReturnItem.php b/src/Seller/FBAOutboundV20200701/Dto/CreateReturnItem.php new file mode 100644 index 000000000..37273185f --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/CreateReturnItem.php @@ -0,0 +1,24 @@ + [FeatureSettings::class]]; + + /** + * @param string $sellerFulfillmentOrderId The fulfillment order identifier submitted with the createFulfillmentOrder operation. + * @param string $marketplaceId The identifier for the marketplace the fulfillment order is placed against. + * @param string $displayableOrderId A fulfillment order identifier submitted with the createFulfillmentOrder operation. Displays as the order identifier in recipient-facing materials such as the packing slip. + * @param DateTime $displayableOrderDate + * @param string $displayableOrderComment A text block submitted with the createFulfillmentOrder operation. Displays in recipient-facing materials such as the packing slip. + * @param string $shippingSpeedCategory The shipping method used for the fulfillment order. When this value is ScheduledDelivery, choose Ship for the fulfillmentAction. Hold is not a valid fulfillmentAction value when the shippingSpeedCategory value is ScheduledDelivery. + * @param Address $destinationAddress A physical address. + * @param DateTime $receivedDate + * @param string $fulfillmentOrderStatus The current status of the fulfillment order. + * @param DateTime $statusUpdatedDate + * @param ?DeliveryWindow $deliveryWindow The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace. + * @param ?string $fulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it. + * @param ?string $fulfillmentPolicy The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. + * @param ?CodSettings $codSettings The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. + * @param ?string[] $notificationEmails 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. + * @param FeatureSettings[]|null $featureConstraints A list of features and their fulfillment policies to apply to the order. + */ + public function __construct( + public readonly string $sellerFulfillmentOrderId, + public readonly string $marketplaceId, + public readonly string $displayableOrderId, + public readonly \DateTime $displayableOrderDate, + public readonly string $displayableOrderComment, + public readonly string $shippingSpeedCategory, + public readonly Address $destinationAddress, + public readonly \DateTime $receivedDate, + public readonly string $fulfillmentOrderStatus, + public readonly \DateTime $statusUpdatedDate, + public readonly ?DeliveryWindow $deliveryWindow = null, + public readonly ?string $fulfillmentAction = null, + public readonly ?string $fulfillmentPolicy = null, + public readonly ?CodSettings $codSettings = null, + public readonly ?array $notificationEmails = null, + public readonly ?array $featureConstraints = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/FulfillmentOrderItem.php b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentOrderItem.php new file mode 100644 index 000000000..327025434 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentOrderItem.php @@ -0,0 +1,42 @@ + 'isCODCapable']; + + protected static array $complexArrayTypes = [ + 'estimatedFees' => [Fee::class], + 'fulfillmentPreviewShipments' => [FulfillmentPreviewShipment::class], + 'unfulfillablePreviewItems' => [UnfulfillablePreviewItem::class], + 'featureConstraints' => [FeatureSettings::class], + ]; + + /** + * @param string $shippingSpeedCategory The shipping method used for the fulfillment order. When this value is ScheduledDelivery, choose Ship for the fulfillmentAction. Hold is not a valid fulfillmentAction value when the shippingSpeedCategory value is ScheduledDelivery. + * @param bool $isFulfillable When true, this fulfillment order preview is fulfillable. + * @param bool $isCodCapable When true, this fulfillment order preview is for COD (Cash On Delivery). + * @param string $marketplaceId The marketplace the fulfillment order is placed against. + * @param ?ScheduledDeliveryInfo $scheduledDeliveryInfo Delivery information for a scheduled delivery. This is only available in the JP marketplace. + * @param ?Weight $estimatedShippingWeight The weight. + * @param Fee[]|null $estimatedFees An array of fee type and cost pairs. + * @param FulfillmentPreviewShipment[]|null $fulfillmentPreviewShipments An array of fulfillment preview shipment information. + * @param UnfulfillablePreviewItem[]|null $unfulfillablePreviewItems An array of unfulfillable preview item information. + * @param ?string[] $orderUnfulfillableReasons + * @param FeatureSettings[]|null $featureConstraints A list of features and their fulfillment policies to apply to the order. + */ + public function __construct( + public readonly string $shippingSpeedCategory, + public readonly bool $isFulfillable, + public readonly bool $isCodCapable, + public readonly string $marketplaceId, + public readonly ?ScheduledDeliveryInfo $scheduledDeliveryInfo = null, + public readonly ?Weight $estimatedShippingWeight = null, + public readonly ?array $estimatedFees = null, + public readonly ?array $fulfillmentPreviewShipments = null, + public readonly ?array $unfulfillablePreviewItems = null, + public readonly ?array $orderUnfulfillableReasons = null, + public readonly ?array $featureConstraints = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/FulfillmentPreviewItem.php b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentPreviewItem.php new file mode 100644 index 000000000..de78901a9 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentPreviewItem.php @@ -0,0 +1,24 @@ + [FulfillmentPreviewItem::class]]; + + /** + * @param FulfillmentPreviewItem[] $fulfillmentPreviewItems An array of fulfillment preview item information. + * @param ?DateTime $earliestShipDate + * @param ?DateTime $latestShipDate + * @param ?DateTime $earliestArrivalDate + * @param ?DateTime $latestArrivalDate + * @param ?string[] $shippingNotes Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed. + */ + public function __construct( + public readonly array $fulfillmentPreviewItems, + public readonly ?\DateTime $earliestShipDate = null, + public readonly ?\DateTime $latestShipDate = null, + public readonly ?\DateTime $earliestArrivalDate = null, + public readonly ?\DateTime $latestArrivalDate = null, + public readonly ?array $shippingNotes = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipment.php b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipment.php new file mode 100644 index 000000000..18754980a --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipment.php @@ -0,0 +1,35 @@ + [FulfillmentShipmentItem::class], + 'fulfillmentShipmentPackage' => [FulfillmentShipmentPackage::class], + ]; + + /** + * @param string $amazonShipmentId A shipment identifier assigned by Amazon. + * @param string $fulfillmentCenterId An identifier for the fulfillment center that the shipment will be sent from. + * @param string $fulfillmentShipmentStatus The current status of the shipment. + * @param FulfillmentShipmentItem[] $fulfillmentShipmentItem An array of fulfillment shipment item information. + * @param ?DateTime $shippingDate + * @param ?DateTime $estimatedArrivalDate + * @param ?string[] $shippingNotes Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed. + * @param FulfillmentShipmentPackage[]|null $fulfillmentShipmentPackage An array of fulfillment shipment package information. + */ + public function __construct( + public readonly string $amazonShipmentId, + public readonly string $fulfillmentCenterId, + public readonly string $fulfillmentShipmentStatus, + public readonly array $fulfillmentShipmentItem, + public readonly ?\DateTime $shippingDate = null, + public readonly ?\DateTime $estimatedArrivalDate = null, + public readonly ?array $shippingNotes = null, + public readonly ?array $fulfillmentShipmentPackage = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipmentItem.php b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipmentItem.php new file mode 100644 index 000000000..549c6a309 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/FulfillmentShipmentItem.php @@ -0,0 +1,24 @@ + [FeatureSku::class]]; + + /** + * @param string $marketplaceId The requested marketplace. + * @param string $featureName The name of the feature. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + * @param FeatureSku[]|null $featureSkus An array of SKUs eligible for this feature and the quantity available. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $featureName, + public readonly ?string $nextToken = null, + public readonly ?array $featureSkus = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/GetFeatureSkuResult.php b/src/Seller/FBAOutboundV20200701/Dto/GetFeatureSkuResult.php new file mode 100644 index 000000000..d068fd01f --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/GetFeatureSkuResult.php @@ -0,0 +1,29 @@ + [Feature::class]]; + + /** + * @param Feature[] $features An array of features. + */ + public function __construct( + public readonly array $features, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentOrderResult.php b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentOrderResult.php new file mode 100644 index 000000000..ab590d114 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentOrderResult.php @@ -0,0 +1,31 @@ + [FulfillmentOrderItem::class], + 'returnItems' => [ReturnItem::class], + 'returnAuthorizations' => [ReturnAuthorization::class], + 'fulfillmentShipments' => [FulfillmentShipment::class], + ]; + + /** + * @param FulfillmentOrder $fulfillmentOrder General information about a fulfillment order, including its status. + * @param FulfillmentOrderItem[] $fulfillmentOrderItems An array of fulfillment order item information. + * @param ReturnItem[] $returnItems An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. + * @param ReturnAuthorization[] $returnAuthorizations An array of return authorization information. + * @param FulfillmentShipment[]|null $fulfillmentShipments An array of fulfillment shipment information. + */ + public function __construct( + public readonly FulfillmentOrder $fulfillmentOrder, + public readonly array $fulfillmentOrderItems, + public readonly array $returnItems, + public readonly array $returnAuthorizations, + public readonly ?array $fulfillmentShipments = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewItem.php b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewItem.php new file mode 100644 index 000000000..fe15f6599 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewItem.php @@ -0,0 +1,22 @@ + 'includeCODFulfillmentPreview']; + + protected static array $complexArrayTypes = [ + 'items' => [GetFulfillmentPreviewItem::class], + 'featureConstraints' => [FeatureSettings::class], + ]; + + /** + * @param Address $address A physical address. + * @param GetFulfillmentPreviewItem[] $items An array of fulfillment preview item information. + * @param ?string $marketplaceId The marketplace the fulfillment order is placed against. + * @param ?string[] $shippingSpeedCategories + * @param ?bool $includeCodFulfillmentPreview When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. + * @param ?bool $includeDeliveryWindows When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. + * @param FeatureSettings[]|null $featureConstraints A list of features and their fulfillment policies to apply to the order. + */ + public function __construct( + public readonly Address $address, + public readonly array $items, + public readonly ?string $marketplaceId = null, + public readonly ?array $shippingSpeedCategories = null, + public readonly ?bool $includeCodFulfillmentPreview = null, + public readonly ?bool $includeDeliveryWindows = null, + public readonly ?array $featureConstraints = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewResult.php b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewResult.php new file mode 100644 index 000000000..e75aa9083 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/GetFulfillmentPreviewResult.php @@ -0,0 +1,18 @@ + [FulfillmentPreview::class]]; + + /** + * @param FulfillmentPreview[]|null $fulfillmentPreviews An array of fulfillment preview information. + */ + public function __construct( + public readonly ?array $fulfillmentPreviews = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/InvalidItemReason.php b/src/Seller/FBAOutboundV20200701/Dto/InvalidItemReason.php new file mode 100644 index 000000000..45d3914e2 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/InvalidItemReason.php @@ -0,0 +1,18 @@ + [FulfillmentOrder::class]]; + + /** + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + * @param FulfillmentOrder[]|null $fulfillmentOrders An array of fulfillment order information. + */ + public function __construct( + public readonly ?string $nextToken = null, + public readonly ?array $fulfillmentOrders = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/ListReturnReasonCodesResult.php b/src/Seller/FBAOutboundV20200701/Dto/ListReturnReasonCodesResult.php new file mode 100644 index 000000000..6145529ca --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/ListReturnReasonCodesResult.php @@ -0,0 +1,18 @@ + [ReasonCodeDetails::class]]; + + /** + * @param ReasonCodeDetails[]|null $reasonCodeDetails An array of return reason code details. + */ + public function __construct( + public readonly ?array $reasonCodeDetails = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/Money.php b/src/Seller/FBAOutboundV20200701/Dto/Money.php new file mode 100644 index 000000000..290668848 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/Money.php @@ -0,0 +1,18 @@ + 'carrierURL']; + + protected static array $complexArrayTypes = ['trackingEvents' => [TrackingEvent::class]]; + + /** + * @param int $packageNumber The package identifier. + * @param ?string $trackingNumber The tracking number for the package. + * @param ?string $customerTrackingLink Link on swiship.com that allows customers to track the package. + * @param ?string $carrierCode The name of the carrier. + * @param ?string $carrierPhoneNumber The phone number of the carrier. + * @param ?string $carrierUrl The URL of the carrier's website. + * @param ?DateTime $shipDate + * @param ?DateTime $estimatedArrivalDate + * @param ?TrackingAddress $shipToAddress Address information for tracking the package. + * @param ?string $currentStatus The current delivery status of the package. + * @param ?string $currentStatusDescription Description corresponding to the CurrentStatus value. + * @param ?string $signedForBy The name of the person who signed for the package. + * @param ?string $additionalLocationInfo Additional location information. + * @param TrackingEvent[]|null $trackingEvents An array of tracking event information. + */ + public function __construct( + public readonly int $packageNumber, + public readonly ?string $trackingNumber = null, + public readonly ?string $customerTrackingLink = null, + public readonly ?string $carrierCode = null, + public readonly ?string $carrierPhoneNumber = null, + public readonly ?string $carrierUrl = null, + public readonly ?\DateTime $shipDate = null, + public readonly ?\DateTime $estimatedArrivalDate = null, + public readonly ?TrackingAddress $shipToAddress = null, + public readonly ?string $currentStatus = null, + public readonly ?string $currentStatusDescription = null, + public readonly ?string $signedForBy = null, + public readonly ?string $additionalLocationInfo = null, + public readonly ?array $trackingEvents = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/ReasonCodeDetails.php b/src/Seller/FBAOutboundV20200701/Dto/ReasonCodeDetails.php new file mode 100644 index 000000000..38807bc19 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/ReasonCodeDetails.php @@ -0,0 +1,20 @@ + 'rmaPageURL']; + + /** + * @param string $returnAuthorizationId An identifier for the return authorization. This identifier associates return items with the return authorization used to return them. + * @param string $fulfillmentCenterId An identifier for the Amazon fulfillment center that the return items should be sent to. + * @param Address $returnToAddress A physical address. + * @param string $amazonRmaId The return merchandise authorization (RMA) that Amazon needs to process the return. + * @param string $rmaPageUrl A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping. + */ + public function __construct( + public readonly string $returnAuthorizationId, + public readonly string $fulfillmentCenterId, + public readonly Address $returnToAddress, + public readonly string $amazonRmaId, + public readonly string $rmaPageUrl, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/ReturnItem.php b/src/Seller/FBAOutboundV20200701/Dto/ReturnItem.php new file mode 100644 index 000000000..dbe0e62e9 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/ReturnItem.php @@ -0,0 +1,36 @@ + [DeliveryWindow::class]]; + + /** + * @param string $deliveryTimeZone The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo. + * @param DeliveryWindow[] $deliveryWindows An array of delivery windows. + */ + public function __construct( + public readonly string $deliveryTimeZone, + public readonly array $deliveryWindows, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/SubmitFulfillmentOrderStatusUpdateRequest.php b/src/Seller/FBAOutboundV20200701/Dto/SubmitFulfillmentOrderStatusUpdateRequest.php new file mode 100644 index 000000000..5e2d3e5f1 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/SubmitFulfillmentOrderStatusUpdateRequest.php @@ -0,0 +1,16 @@ + [FeatureSettings::class], + 'items' => [UpdateFulfillmentOrderItem::class], + ]; + + /** + * @param ?string $marketplaceId The marketplace the fulfillment order is placed against. + * @param ?string $displayableOrderId A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. + * @param ?DateTime $displayableOrderDate + * @param ?string $displayableOrderComment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. + * @param ?string $shippingSpeedCategory The shipping method used for the fulfillment order. When this value is ScheduledDelivery, choose Ship for the fulfillmentAction. Hold is not a valid fulfillmentAction value when the shippingSpeedCategory value is ScheduledDelivery. + * @param ?Address $destinationAddress A physical address. + * @param ?string $fulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it. + * @param ?string $fulfillmentPolicy The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. + * @param ?string $shipFromCountryCode The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. + * @param ?string[] $notificationEmails 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. + * @param FeatureSettings[]|null $featureConstraints A list of features and their fulfillment policies to apply to the order. + * @param UpdateFulfillmentOrderItem[]|null $items An array of fulfillment order item information for updating a fulfillment order. + */ + public function __construct( + public readonly ?string $marketplaceId = null, + public readonly ?string $displayableOrderId = null, + public readonly ?\DateTime $displayableOrderDate = null, + public readonly ?string $displayableOrderComment = null, + public readonly ?string $shippingSpeedCategory = null, + public readonly ?Address $destinationAddress = null, + public readonly ?string $fulfillmentAction = null, + public readonly ?string $fulfillmentPolicy = null, + public readonly ?string $shipFromCountryCode = null, + public readonly ?array $notificationEmails = null, + public readonly ?array $featureConstraints = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Dto/Weight.php b/src/Seller/FBAOutboundV20200701/Dto/Weight.php new file mode 100644 index 000000000..9bec71dc9 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Dto/Weight.php @@ -0,0 +1,18 @@ +sellerFulfillmentOrderId}/cancel"; + } + + public function createDtoFromResponse(Response $response): CancelFulfillmentOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CancelFulfillmentOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentOrder.php b/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentOrder.php new file mode 100644 index 000000000..472d70c1f --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentOrder.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CreateFulfillmentOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createFulfillmentOrderRequest->toArray(); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentReturn.php b/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentReturn.php new file mode 100644 index 000000000..cd575600f --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/CreateFulfillmentReturn.php @@ -0,0 +1,49 @@ +sellerFulfillmentOrderId}/return"; + } + + public function createDtoFromResponse(Response $response): CreateFulfillmentReturnResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CreateFulfillmentReturnResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createFulfillmentReturnRequest->toArray(); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetFeatureInventory.php b/src/Seller/FBAOutboundV20200701/Requests/GetFeatureInventory.php new file mode 100644 index 000000000..64068c27a --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetFeatureInventory.php @@ -0,0 +1,50 @@ + $this->marketplaceId, 'nextToken' => $this->nextToken]); + } + + public function resolveEndpoint(): string + { + return "/fba/outbound/2020-07-01/features/inventory/{$this->featureName}"; + } + + public function createDtoFromResponse(Response $response): GetFeatureInventoryResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetFeatureInventoryResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetFeatureSku.php b/src/Seller/FBAOutboundV20200701/Requests/GetFeatureSku.php new file mode 100644 index 000000000..e7d4040bd --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetFeatureSku.php @@ -0,0 +1,50 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return "/fba/outbound/2020-07-01/features/inventory/{$this->featureName}/{$this->sellerSku}"; + } + + public function createDtoFromResponse(Response $response): GetFeatureSkuResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetFeatureSkuResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetFeatures.php b/src/Seller/FBAOutboundV20200701/Requests/GetFeatures.php new file mode 100644 index 000000000..6a8b794de --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetFeatures.php @@ -0,0 +1,46 @@ + $this->marketplaceId]); + } + + public function resolveEndpoint(): string + { + return '/fba/outbound/2020-07-01/features'; + } + + public function createDtoFromResponse(Response $response): GetFeaturesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetFeaturesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentOrder.php b/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentOrder.php new file mode 100644 index 000000000..cd2aa1855 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentOrder.php @@ -0,0 +1,41 @@ +sellerFulfillmentOrderId}"; + } + + public function createDtoFromResponse(Response $response): GetFulfillmentOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetFulfillmentOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentPreview.php b/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentPreview.php new file mode 100644 index 000000000..d07d0f1b2 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetFulfillmentPreview.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetFulfillmentPreviewResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getFulfillmentPreviewRequest->toArray(); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/GetPackageTrackingDetails.php b/src/Seller/FBAOutboundV20200701/Requests/GetPackageTrackingDetails.php new file mode 100644 index 000000000..744e9643a --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/GetPackageTrackingDetails.php @@ -0,0 +1,46 @@ + $this->packageNumber]); + } + + public function resolveEndpoint(): string + { + return '/fba/outbound/2020-07-01/tracking'; + } + + public function createDtoFromResponse(Response $response): GetPackageTrackingDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetPackageTrackingDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/ListAllFulfillmentOrders.php b/src/Seller/FBAOutboundV20200701/Requests/ListAllFulfillmentOrders.php new file mode 100644 index 000000000..9eb29cef6 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/ListAllFulfillmentOrders.php @@ -0,0 +1,48 @@ + $this->queryStartDate?->format(\DateTime::RFC3339), 'nextToken' => $this->nextToken]); + } + + public function resolveEndpoint(): string + { + return '/fba/outbound/2020-07-01/fulfillmentOrders'; + } + + public function createDtoFromResponse(Response $response): ListAllFulfillmentOrdersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ListAllFulfillmentOrdersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/ListReturnReasonCodes.php b/src/Seller/FBAOutboundV20200701/Requests/ListReturnReasonCodes.php new file mode 100644 index 000000000..ad3eb0007 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/ListReturnReasonCodes.php @@ -0,0 +1,57 @@ + $this->sellerSku, + 'language' => $this->language, + 'marketplaceId' => $this->marketplaceId, + 'sellerFulfillmentOrderId' => $this->sellerFulfillmentOrderId, + ]); + } + + public function resolveEndpoint(): string + { + return '/fba/outbound/2020-07-01/returnReasonCodes'; + } + + public function createDtoFromResponse(Response $response): ListReturnReasonCodesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => ListReturnReasonCodesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/SubmitFulfillmentOrderStatusUpdate.php b/src/Seller/FBAOutboundV20200701/Requests/SubmitFulfillmentOrderStatusUpdate.php new file mode 100644 index 000000000..fa7888d41 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/SubmitFulfillmentOrderStatusUpdate.php @@ -0,0 +1,49 @@ +sellerFulfillmentOrderId}/status"; + } + + public function createDtoFromResponse(Response $response): SubmitFulfillmentOrderStatusUpdateResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => SubmitFulfillmentOrderStatusUpdateResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitFulfillmentOrderStatusUpdateRequest->toArray(); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Requests/UpdateFulfillmentOrder.php b/src/Seller/FBAOutboundV20200701/Requests/UpdateFulfillmentOrder.php new file mode 100644 index 000000000..f13c11204 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Requests/UpdateFulfillmentOrder.php @@ -0,0 +1,49 @@ +sellerFulfillmentOrderId}"; + } + + public function createDtoFromResponse(Response $response): UpdateFulfillmentOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => UpdateFulfillmentOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateFulfillmentOrderRequest->toArray(); + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/CancelFulfillmentOrderResponse.php b/src/Seller/FBAOutboundV20200701/Responses/CancelFulfillmentOrderResponse.php new file mode 100644 index 000000000..95de12d5d --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/CancelFulfillmentOrderResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentOrderResponse.php b/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentOrderResponse.php new file mode 100644 index 000000000..7e78dcd96 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentOrderResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentReturnResponse.php b/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentReturnResponse.php new file mode 100644 index 000000000..fa54e9b19 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/CreateFulfillmentReturnResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CreateFulfillmentReturnResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CreateFulfillmentReturnResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetFeatureInventoryResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetFeatureInventoryResponse.php new file mode 100644 index 000000000..46e457518 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetFeatureInventoryResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetFeatureInventoryResult $payload The payload for the getEligibileInventory operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetFeatureInventoryResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetFeatureSkuResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetFeatureSkuResponse.php new file mode 100644 index 000000000..bc2c2d900 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetFeatureSkuResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetFeatureSkuResult $payload The payload for the getFeatureSKU operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetFeatureSkuResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetFeaturesResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetFeaturesResponse.php new file mode 100644 index 000000000..c5997ef1e --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetFeaturesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetFeaturesResult $payload The payload for the getFeatures operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetFeaturesResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentOrderResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentOrderResponse.php new file mode 100644 index 000000000..00d46dc12 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentOrderResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetFulfillmentOrderResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetFulfillmentOrderResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentPreviewResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentPreviewResponse.php new file mode 100644 index 000000000..481627690 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetFulfillmentPreviewResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetFulfillmentPreviewResult $payload A list of fulfillment order previews, including estimated shipping weights, estimated shipping fees, and estimated ship dates and arrival dates. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetFulfillmentPreviewResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/GetPackageTrackingDetailsResponse.php b/src/Seller/FBAOutboundV20200701/Responses/GetPackageTrackingDetailsResponse.php new file mode 100644 index 000000000..9ef1f50bf --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/GetPackageTrackingDetailsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?PackageTrackingDetails $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?PackageTrackingDetails $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/ListAllFulfillmentOrdersResponse.php b/src/Seller/FBAOutboundV20200701/Responses/ListAllFulfillmentOrdersResponse.php new file mode 100644 index 000000000..981b80359 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/ListAllFulfillmentOrdersResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ListAllFulfillmentOrdersResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ListAllFulfillmentOrdersResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/ListReturnReasonCodesResponse.php b/src/Seller/FBAOutboundV20200701/Responses/ListReturnReasonCodesResponse.php new file mode 100644 index 000000000..7f44bbe67 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/ListReturnReasonCodesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ListReturnReasonCodesResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ListReturnReasonCodesResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/SubmitFulfillmentOrderStatusUpdateResponse.php b/src/Seller/FBAOutboundV20200701/Responses/SubmitFulfillmentOrderStatusUpdateResponse.php new file mode 100644 index 000000000..153e63b05 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/SubmitFulfillmentOrderStatusUpdateResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBAOutboundV20200701/Responses/UpdateFulfillmentOrderResponse.php b/src/Seller/FBAOutboundV20200701/Responses/UpdateFulfillmentOrderResponse.php new file mode 100644 index 000000000..666d66e07 --- /dev/null +++ b/src/Seller/FBAOutboundV20200701/Responses/UpdateFulfillmentOrderResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Api.php b/src/Seller/FBASmallAndLightV1/Api.php new file mode 100644 index 000000000..4368d85a5 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Api.php @@ -0,0 +1,69 @@ +connector->send($request); + } + + /** + * @param string $sellerSku The seller SKU that identifies the item. + * @param array $marketplaceIds The marketplace in which to enroll the item. Note: Accepts a single marketplace only. + */ + public function putSmallAndLightEnrollmentBySellerSku(string $sellerSku, array $marketplaceIds): Response + { + $request = new PutSmallAndLightEnrollmentBySellerSku($sellerSku, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $sellerSku The seller SKU that identifies the item. + * @param array $marketplaceIds The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. + */ + public function deleteSmallAndLightEnrollmentBySellerSku(string $sellerSku, array $marketplaceIds): Response + { + $request = new DeleteSmallAndLightEnrollmentBySellerSku($sellerSku, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $sellerSku The seller SKU that identifies the item. + * @param array $marketplaceIds The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. + */ + public function getSmallAndLightEligibilityBySellerSku(string $sellerSku, array $marketplaceIds): Response + { + $request = new GetSmallAndLightEligibilityBySellerSku($sellerSku, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param SmallAndLightFeePreviewRequest $smallAndLightFeePreviewRequest Request schema for submitting items for which to retrieve fee estimates. + */ + public function getSmallAndLightFeePreview(SmallAndLightFeePreviewRequest $smallAndLightFeePreviewRequest): Response + { + $request = new GetSmallAndLightFeePreview($smallAndLightFeePreviewRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Dto/Error.php b/src/Seller/FBASmallAndLightV1/Dto/Error.php new file mode 100644 index 000000000..38cb847bd --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Dto/Error.php @@ -0,0 +1,20 @@ + [FeeLineItem::class], 'errors' => [Error::class]]; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN) value used to identify the item. + * @param ?MoneyType $price + * @param FeeLineItem[]|null $feeBreakdown A list of the Small and Light fees for the item. + * @param ?MoneyType $totalFees + * @param Error[]|null $errors + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?MoneyType $price = null, + public readonly ?array $feeBreakdown = null, + public readonly ?MoneyType $totalFees = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Dto/Item.php b/src/Seller/FBASmallAndLightV1/Dto/Item.php new file mode 100644 index 000000000..7fa29e881 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Dto/Item.php @@ -0,0 +1,17 @@ + [Item::class]]; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param Item[] $items A list of items for which to retrieve fee estimates (limit: 25). + */ + public function __construct( + public readonly string $marketplaceId, + public readonly array $items, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Requests/DeleteSmallAndLightEnrollmentBySellerSku.php b/src/Seller/FBASmallAndLightV1/Requests/DeleteSmallAndLightEnrollmentBySellerSku.php new file mode 100644 index 000000000..8863d85ba --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Requests/DeleteSmallAndLightEnrollmentBySellerSku.php @@ -0,0 +1,50 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/fba/smallAndLight/v1/enrollments/{$this->sellerSku}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEligibilityBySellerSku.php b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEligibilityBySellerSku.php new file mode 100644 index 000000000..107651829 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEligibilityBySellerSku.php @@ -0,0 +1,50 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/fba/smallAndLight/v1/eligibilities/{$this->sellerSku}"; + } + + public function createDtoFromResponse(Response $response): SmallAndLightEligibility|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SmallAndLightEligibility::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEnrollmentBySellerSku.php b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEnrollmentBySellerSku.php new file mode 100644 index 000000000..cfcfb7921 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightEnrollmentBySellerSku.php @@ -0,0 +1,50 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/fba/smallAndLight/v1/enrollments/{$this->sellerSku}"; + } + + public function createDtoFromResponse(Response $response): SmallAndLightEnrollment|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SmallAndLightEnrollment::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightFeePreview.php b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightFeePreview.php new file mode 100644 index 000000000..690642a95 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Requests/GetSmallAndLightFeePreview.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => SmallAndLightFeePreviews::class, + 400, 401, 403, 404, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->smallAndLightFeePreviewRequest->toArray(); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Requests/PutSmallAndLightEnrollmentBySellerSku.php b/src/Seller/FBASmallAndLightV1/Requests/PutSmallAndLightEnrollmentBySellerSku.php new file mode 100644 index 000000000..2a1ed5fb8 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Requests/PutSmallAndLightEnrollmentBySellerSku.php @@ -0,0 +1,50 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/fba/smallAndLight/v1/enrollments/{$this->sellerSku}"; + } + + public function createDtoFromResponse(Response $response): SmallAndLightEnrollment|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SmallAndLightEnrollment::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FBASmallAndLightV1/Responses/ErrorList.php b/src/Seller/FBASmallAndLightV1/Responses/ErrorList.php new file mode 100644 index 000000000..ae51cf1c7 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEligibility.php b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEligibility.php new file mode 100644 index 000000000..439f1ac0d --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEligibility.php @@ -0,0 +1,22 @@ + 'sellerSKU']; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $sellerSku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. + * @param string $status The Small and Light eligibility status of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $sellerSku, + public readonly string $status, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEnrollment.php b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEnrollment.php new file mode 100644 index 000000000..57aa47e5e --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightEnrollment.php @@ -0,0 +1,22 @@ + 'sellerSKU']; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $sellerSku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. + * @param string $status The Small and Light enrollment status of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $sellerSku, + public readonly string $status, + ) { + } +} diff --git a/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightFeePreviews.php b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightFeePreviews.php new file mode 100644 index 000000000..446536849 --- /dev/null +++ b/src/Seller/FBASmallAndLightV1/Responses/SmallAndLightFeePreviews.php @@ -0,0 +1,19 @@ + [FeePreview::class]]; + + /** + * @param FeePreview[]|null $data A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed. + */ + public function __construct( + public readonly ?array $data = null, + ) { + } +} diff --git a/src/Seller/FeedsV20210630/Api.php b/src/Seller/FeedsV20210630/Api.php new file mode 100644 index 000000000..2fbfc0a80 --- /dev/null +++ b/src/Seller/FeedsV20210630/Api.php @@ -0,0 +1,90 @@ +connector->send($request); + } + + /** + * @param CreateFeedSpecification $createFeedSpecification Information required to create the feed. + */ + public function createFeed(CreateFeedSpecification $createFeedSpecification): Response + { + $request = new CreateFeed($createFeedSpecification); + + return $this->connector->send($request); + } + + /** + * @param string $feedId The identifier for the feed. This identifier is unique only in combination with a seller ID. + */ + public function getFeed(string $feedId): Response + { + $request = new GetFeed($feedId); + + return $this->connector->send($request); + } + + /** + * @param string $feedId The identifier for the feed. This identifier is unique only in combination with a seller ID. + */ + public function cancelFeed(string $feedId): Response + { + $request = new CancelFeed($feedId); + + return $this->connector->send($request); + } + + /** + * @param CreateFeedDocumentSpecification $createFeedDocumentSpecification Specifies the content type for the createFeedDocument operation. + */ + public function createFeedDocument(CreateFeedDocumentSpecification $createFeedDocumentSpecification): Response + { + $request = new CreateFeedDocument($createFeedDocumentSpecification); + + return $this->connector->send($request); + } + + /** + * @param string $feedDocumentId The identifier of the feed document. + */ + public function getFeedDocument(string $feedDocumentId): Response + { + $request = new GetFeedDocument($feedDocumentId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/FeedsV20210630/Dto/CreateFeedDocumentSpecification.php b/src/Seller/FeedsV20210630/Dto/CreateFeedDocumentSpecification.php new file mode 100644 index 000000000..d525a075d --- /dev/null +++ b/src/Seller/FeedsV20210630/Dto/CreateFeedDocumentSpecification.php @@ -0,0 +1,16 @@ +feedId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => EmptyResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FeedsV20210630/Requests/CreateFeed.php b/src/Seller/FeedsV20210630/Requests/CreateFeed.php new file mode 100644 index 000000000..b75b2b09d --- /dev/null +++ b/src/Seller/FeedsV20210630/Requests/CreateFeed.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 202 => CreateFeedResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createFeedSpecification->toArray(); + } +} diff --git a/src/Seller/FeedsV20210630/Requests/CreateFeedDocument.php b/src/Seller/FeedsV20210630/Requests/CreateFeedDocument.php new file mode 100644 index 000000000..b2357325c --- /dev/null +++ b/src/Seller/FeedsV20210630/Requests/CreateFeedDocument.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 201 => CreateFeedDocumentResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createFeedDocumentSpecification->toArray(); + } +} diff --git a/src/Seller/FeedsV20210630/Requests/GetFeed.php b/src/Seller/FeedsV20210630/Requests/GetFeed.php new file mode 100644 index 000000000..af9021654 --- /dev/null +++ b/src/Seller/FeedsV20210630/Requests/GetFeed.php @@ -0,0 +1,43 @@ +feedId}"; + } + + public function createDtoFromResponse(Response $response): Feed|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Feed::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FeedsV20210630/Requests/GetFeedDocument.php b/src/Seller/FeedsV20210630/Requests/GetFeedDocument.php new file mode 100644 index 000000000..985ff5f23 --- /dev/null +++ b/src/Seller/FeedsV20210630/Requests/GetFeedDocument.php @@ -0,0 +1,43 @@ +feedDocumentId}"; + } + + public function createDtoFromResponse(Response $response): FeedDocument|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => FeedDocument::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FeedsV20210630/Requests/GetFeeds.php b/src/Seller/FeedsV20210630/Requests/GetFeeds.php new file mode 100644 index 000000000..238c784ab --- /dev/null +++ b/src/Seller/FeedsV20210630/Requests/GetFeeds.php @@ -0,0 +1,68 @@ + $this->feedTypes, + 'marketplaceIds' => $this->marketplaceIds, + 'pageSize' => $this->pageSize, + 'processingStatuses' => $this->processingStatuses, + 'createdSince' => $this->createdSince?->format(\DateTime::RFC3339), + 'createdUntil' => $this->createdUntil?->format(\DateTime::RFC3339), + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/feeds/2021-06-30/feeds'; + } + + public function createDtoFromResponse(Response $response): GetFeedsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetFeedsResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FeedsV20210630/Responses/CreateFeedDocumentResponse.php b/src/Seller/FeedsV20210630/Responses/CreateFeedDocumentResponse.php new file mode 100644 index 000000000..c26d65fd8 --- /dev/null +++ b/src/Seller/FeedsV20210630/Responses/CreateFeedDocumentResponse.php @@ -0,0 +1,21 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/FeedsV20210630/Responses/Feed.php b/src/Seller/FeedsV20210630/Responses/Feed.php new file mode 100644 index 000000000..8fad164bc --- /dev/null +++ b/src/Seller/FeedsV20210630/Responses/Feed.php @@ -0,0 +1,30 @@ + [Feed::class]]; + + /** + * @param Feed[] $feeds A list of feeds. + * @param ?string $nextToken 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. + */ + public function __construct( + public readonly array $feeds, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Api.php b/src/Seller/FinancesV0/Api.php new file mode 100644 index 000000000..84dff8ecb --- /dev/null +++ b/src/Seller/FinancesV0/Api.php @@ -0,0 +1,81 @@ +connector->send($request); + } + + /** + * @param string $eventGroupId The identifier of the financial event group to which the events belong. + * @param ?int $maxResultsPerPage The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + * @param ?DateTime $postedAfter A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format. + * @param ?DateTime $postedBefore A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was submitted, in ISO 8601 date time format. If `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes. + * @param ?string $nextToken A string token returned in the response of your previous request. + */ + public function listFinancialEventsByGroupId( + string $eventGroupId, + ?int $maxResultsPerPage = null, + ?\DateTime $postedAfter = null, + ?\DateTime $postedBefore = null, + ?string $nextToken = null, + ): Response { + $request = new ListFinancialEventsByGroupId($eventGroupId, $maxResultsPerPage, $postedAfter, $postedBefore, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?int $maxResultsPerPage The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + * @param ?string $nextToken A string token returned in the response of your previous request. + */ + public function listFinancialEventsByOrderId( + string $orderId, + ?int $maxResultsPerPage = null, + ?string $nextToken = null, + ): Response { + $request = new ListFinancialEventsByOrderId($orderId, $maxResultsPerPage, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param ?int $maxResultsPerPage The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'. + * @param ?DateTime $postedAfter A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format. + * @param ?DateTime $postedBefore A date used for selecting financial events posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes. + * @param ?string $nextToken A string token returned in the response of your previous request. + */ + public function listFinancialEvents( + ?int $maxResultsPerPage = null, + ?\DateTime $postedAfter = null, + ?\DateTime $postedBefore = null, + ?string $nextToken = null, + ): Response { + $request = new ListFinancialEvents($maxResultsPerPage, $postedAfter, $postedBefore, $nextToken); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/FinancesV0/Dto/AdhocDisbursementEvent.php b/src/Seller/FinancesV0/Dto/AdhocDisbursementEvent.php new file mode 100644 index 000000000..a90afa7f4 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/AdhocDisbursementEvent.php @@ -0,0 +1,31 @@ + 'TransactionType', + 'postedDate' => 'PostedDate', + 'transactionId' => 'TransactionId', + 'transactionAmount' => 'TransactionAmount', + ]; + + /** + * @param ?string $transactionType Indicates the type of transaction. + * + * Example: "Disbursed to Amazon Gift Card balance" + * @param ?DateTime $postedDate + * @param ?string $transactionId The identifier for the transaction. + * @param ?Currency $transactionAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $transactionType = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $transactionId = null, + public readonly ?Currency $transactionAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/AdjustmentEvent.php b/src/Seller/FinancesV0/Dto/AdjustmentEvent.php new file mode 100644 index 000000000..9b03ead79 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/AdjustmentEvent.php @@ -0,0 +1,49 @@ + 'AdjustmentType', + 'postedDate' => 'PostedDate', + 'adjustmentAmount' => 'AdjustmentAmount', + 'adjustmentItemList' => 'AdjustmentItemList', + ]; + + protected static array $complexArrayTypes = ['adjustmentItemList' => [AdjustmentItem::class]]; + + /** + * @param ?string $adjustmentType The type of adjustment. + * + * Possible values: + * + * * FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged. + * + * * ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back. + * + * * PostageBilling - The amount paid by a seller for shipping labels. + * + * * PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded. + * + * * LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged. + * + * * CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace. + * + * * ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace. + * + * * SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace. + * @param ?DateTime $postedDate + * @param ?Currency $adjustmentAmount A currency type and amount. + * @param AdjustmentItem[]|null $adjustmentItemList A list of information about items in an adjustment to the seller's account. + */ + public function __construct( + public readonly ?string $adjustmentType = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?Currency $adjustmentAmount = null, + public readonly ?array $adjustmentItemList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/AdjustmentItem.php b/src/Seller/FinancesV0/Dto/AdjustmentItem.php new file mode 100644 index 000000000..e6bc7b693 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/AdjustmentItem.php @@ -0,0 +1,38 @@ + 'Quantity', + 'perUnitAmount' => 'PerUnitAmount', + 'totalAmount' => 'TotalAmount', + 'sellerSku' => 'SellerSKU', + 'fnSku' => 'FnSKU', + 'productDescription' => 'ProductDescription', + 'asin' => 'ASIN', + ]; + + /** + * @param ?string $quantity Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement. + * @param ?Currency $perUnitAmount A currency type and amount. + * @param ?Currency $totalAmount A currency type and amount. + * @param ?string $sellerSku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. + * @param ?string $fnSku A unique identifier assigned to products stored in and fulfilled from a fulfillment center. + * @param ?string $productDescription A short description of the item. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + */ + public function __construct( + public readonly ?string $quantity = null, + public readonly ?Currency $perUnitAmount = null, + public readonly ?Currency $totalAmount = null, + public readonly ?string $sellerSku = null, + public readonly ?string $fnSku = null, + public readonly ?string $productDescription = null, + public readonly ?string $asin = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/AffordabilityExpenseEvent.php b/src/Seller/FinancesV0/Dto/AffordabilityExpenseEvent.php new file mode 100644 index 000000000..58e1cfb24 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/AffordabilityExpenseEvent.php @@ -0,0 +1,50 @@ + 'TaxTypeCGST', + 'taxTypeSgst' => 'TaxTypeSGST', + 'taxTypeIgst' => 'TaxTypeIGST', + 'amazonOrderId' => 'AmazonOrderId', + 'postedDate' => 'PostedDate', + 'marketplaceId' => 'MarketplaceId', + 'transactionType' => 'TransactionType', + 'baseExpense' => 'BaseExpense', + 'totalExpense' => 'TotalExpense', + ]; + + /** + * @param Currency $taxTypeCgst A currency type and amount. + * @param Currency $taxTypeSgst A currency type and amount. + * @param Currency $taxTypeIgst A currency type and amount. + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?DateTime $postedDate + * @param ?string $marketplaceId An encrypted, Amazon-defined marketplace identifier. + * @param ?string $transactionType Indicates the type of transaction. + * + * Possible values: + * + * * Charge - For an affordability promotion expense. + * + * * Refund - For an affordability promotion expense reversal. + * @param ?Currency $baseExpense A currency type and amount. + * @param ?Currency $totalExpense A currency type and amount. + */ + public function __construct( + public readonly Currency $taxTypeCgst, + public readonly Currency $taxTypeSgst, + public readonly Currency $taxTypeIgst, + public readonly ?string $amazonOrderId = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $marketplaceId = null, + public readonly ?string $transactionType = null, + public readonly ?Currency $baseExpense = null, + public readonly ?Currency $totalExpense = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/CapacityReservationBillingEvent.php b/src/Seller/FinancesV0/Dto/CapacityReservationBillingEvent.php new file mode 100644 index 000000000..0e98747d3 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/CapacityReservationBillingEvent.php @@ -0,0 +1,29 @@ + 'TransactionType', + 'postedDate' => 'PostedDate', + 'description' => 'Description', + 'transactionAmount' => 'TransactionAmount', + ]; + + /** + * @param ?string $transactionType Indicates the type of transaction. For example, FBA Inventory Fee + * @param ?DateTime $postedDate + * @param ?string $description A short description of the capacity reservation billing event. + * @param ?Currency $transactionAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $transactionType = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $description = null, + public readonly ?Currency $transactionAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ChargeComponent.php b/src/Seller/FinancesV0/Dto/ChargeComponent.php new file mode 100644 index 000000000..18cc75366 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ChargeComponent.php @@ -0,0 +1,20 @@ + 'ChargeType', 'chargeAmount' => 'ChargeAmount']; + + /** + * @param ?string $chargeType The type of charge. + * @param ?Currency $chargeAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $chargeType = null, + public readonly ?Currency $chargeAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ChargeInstrument.php b/src/Seller/FinancesV0/Dto/ChargeInstrument.php new file mode 100644 index 000000000..b7886c04f --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ChargeInstrument.php @@ -0,0 +1,22 @@ + 'Description', 'tail' => 'Tail', 'amount' => 'Amount']; + + /** + * @param ?string $description A short description of the charge instrument. + * @param ?string $tail The account tail (trailing digits) of the charge instrument. + * @param ?Currency $amount A currency type and amount. + */ + public function __construct( + public readonly ?string $description = null, + public readonly ?string $tail = null, + public readonly ?Currency $amount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ChargeRefundEvent.php b/src/Seller/FinancesV0/Dto/ChargeRefundEvent.php new file mode 100644 index 000000000..11a7687e8 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ChargeRefundEvent.php @@ -0,0 +1,35 @@ + 'PostedDate', + 'reasonCode' => 'ReasonCode', + 'reasonCodeDescription' => 'ReasonCodeDescription', + 'chargeRefundTransactions' => 'ChargeRefundTransactions', + ]; + + protected static array $complexArrayTypes = ['chargeRefundTransactions' => [ChargeRefundTransaction::class]]; + + /** + * @param ?DateTime $postedDate + * @param ?string $reasonCode The reason given for a charge refund. + * + * Example: `SubscriptionFeeCorrection` + * @param ?string $reasonCodeDescription A description of the Reason Code. + * + * Example: `SubscriptionFeeCorrection` + * @param ChargeRefundTransaction[]|null $chargeRefundTransactions A list of `ChargeRefund` transactions. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $reasonCode = null, + public readonly ?string $reasonCodeDescription = null, + public readonly ?array $chargeRefundTransactions = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ChargeRefundTransaction.php b/src/Seller/FinancesV0/Dto/ChargeRefundTransaction.php new file mode 100644 index 000000000..54776f459 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ChargeRefundTransaction.php @@ -0,0 +1,20 @@ + 'ChargeAmount', 'chargeType' => 'ChargeType']; + + /** + * @param ?Currency $chargeAmount A currency type and amount. + * @param ?string $chargeType The type of charge. + */ + public function __construct( + public readonly ?Currency $chargeAmount = null, + public readonly ?string $chargeType = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/CouponPaymentEvent.php b/src/Seller/FinancesV0/Dto/CouponPaymentEvent.php new file mode 100644 index 000000000..7b1b56539 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/CouponPaymentEvent.php @@ -0,0 +1,105 @@ + 'PostedDate', + 'couponId' => 'CouponId', + 'sellerCouponDescription' => 'SellerCouponDescription', + 'clipOrRedemptionCount' => 'ClipOrRedemptionCount', + 'paymentEventId' => 'PaymentEventId', + 'feeComponent' => 'FeeComponent', + 'chargeComponent' => 'ChargeComponent', + 'totalAmount' => 'TotalAmount', + ]; + + /** + * @param ?DateTime $postedDate + * @param ?string $couponId A coupon identifier. + * @param ?string $sellerCouponDescription The description provided by the seller when they created the coupon. + * @param ?int $clipOrRedemptionCount The number of coupon clips or redemptions. + * @param ?string $paymentEventId A payment event identifier. + * @param ?FeeComponent $feeComponent A fee associated with the event. + * @param ?ChargeComponent $chargeComponent 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). + * @param ?Currency $totalAmount A currency type and amount. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $couponId = null, + public readonly ?string $sellerCouponDescription = null, + public readonly ?int $clipOrRedemptionCount = null, + public readonly ?string $paymentEventId = null, + public readonly ?FeeComponent $feeComponent = null, + public readonly ?ChargeComponent $chargeComponent = null, + public readonly ?Currency $totalAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/Currency.php b/src/Seller/FinancesV0/Dto/Currency.php new file mode 100644 index 000000000..2f267519e --- /dev/null +++ b/src/Seller/FinancesV0/Dto/Currency.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'currencyAmount' => 'CurrencyAmount']; + + /** + * @param ?string $currencyCode The three-digit currency code in ISO 4217 format. + * @param ?float $currencyAmount + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?float $currencyAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/DebtRecoveryEvent.php b/src/Seller/FinancesV0/Dto/DebtRecoveryEvent.php new file mode 100644 index 000000000..8ef9d57a3 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/DebtRecoveryEvent.php @@ -0,0 +1,45 @@ + 'DebtRecoveryType', + 'recoveryAmount' => 'RecoveryAmount', + 'overPaymentCredit' => 'OverPaymentCredit', + 'debtRecoveryItemList' => 'DebtRecoveryItemList', + 'chargeInstrumentList' => 'ChargeInstrumentList', + ]; + + protected static array $complexArrayTypes = [ + 'debtRecoveryItemList' => [DebtRecoveryItem::class], + 'chargeInstrumentList' => [ChargeInstrument::class], + ]; + + /** + * @param ?string $debtRecoveryType The debt recovery type. + * + * Possible values: + * + * * DebtPayment + * + * * DebtPaymentFailure + * + * *DebtAdjustment + * @param ?Currency $recoveryAmount A currency type and amount. + * @param ?Currency $overPaymentCredit A currency type and amount. + * @param DebtRecoveryItem[]|null $debtRecoveryItemList A list of debt recovery item information. + * @param ChargeInstrument[]|null $chargeInstrumentList A list of payment instruments. + */ + public function __construct( + public readonly ?string $debtRecoveryType = null, + public readonly ?Currency $recoveryAmount = null, + public readonly ?Currency $overPaymentCredit = null, + public readonly ?array $debtRecoveryItemList = null, + public readonly ?array $chargeInstrumentList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/DebtRecoveryItem.php b/src/Seller/FinancesV0/Dto/DebtRecoveryItem.php new file mode 100644 index 000000000..80800e501 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/DebtRecoveryItem.php @@ -0,0 +1,29 @@ + 'RecoveryAmount', + 'originalAmount' => 'OriginalAmount', + 'groupBeginDate' => 'GroupBeginDate', + 'groupEndDate' => 'GroupEndDate', + ]; + + /** + * @param ?Currency $recoveryAmount A currency type and amount. + * @param ?Currency $originalAmount A currency type and amount. + * @param ?DateTime $groupBeginDate + * @param ?DateTime $groupEndDate + */ + public function __construct( + public readonly ?Currency $recoveryAmount = null, + public readonly ?Currency $originalAmount = null, + public readonly ?\DateTime $groupBeginDate = null, + public readonly ?\DateTime $groupEndDate = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/DirectPayment.php b/src/Seller/FinancesV0/Dto/DirectPayment.php new file mode 100644 index 000000000..4c947df72 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/DirectPayment.php @@ -0,0 +1,37 @@ + 'DirectPaymentType', + 'directPaymentAmount' => 'DirectPaymentAmount', + ]; + + /** + * @param ?string $directPaymentType The type of payment. + * + * Possible values: + * + * * StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card. + * + * * StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded. + * + * * PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon. + * + * * PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded. + * + * * CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer. + * + * * CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded. + * @param ?Currency $directPaymentAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $directPaymentType = null, + public readonly ?Currency $directPaymentAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/Error.php b/src/Seller/FinancesV0/Dto/Error.php new file mode 100644 index 000000000..592d6a87e --- /dev/null +++ b/src/Seller/FinancesV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'FundsTransfersType', + 'transferId' => 'TransferId', + 'disbursementId' => 'DisbursementId', + 'paymentDisbursementType' => 'PaymentDisbursementType', + 'status' => 'Status', + 'transferAmount' => 'TransferAmount', + 'postedDate' => 'PostedDate', + ]; + + /** + * @param ?string $fundsTransfersType The type of fund transfer. + * + * Example "Refund" + * @param ?string $transferId The transfer identifier. + * @param ?string $disbursementId The disbursement identifier. + * @param ?string $paymentDisbursementType The type of payment for disbursement. + * + * Example `CREDIT_CARD` + * @param ?string $status The status of the failed `AdhocDisbursement`. + * + * Example `HARD_DECLINED` + * @param ?Currency $transferAmount A currency type and amount. + * @param ?DateTime $postedDate + */ + public function __construct( + public readonly ?string $fundsTransfersType = null, + public readonly ?string $transferId = null, + public readonly ?string $disbursementId = null, + public readonly ?string $paymentDisbursementType = null, + public readonly ?string $status = null, + public readonly ?Currency $transferAmount = null, + public readonly ?\DateTime $postedDate = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/FbaLiquidationEvent.php b/src/Seller/FinancesV0/Dto/FbaLiquidationEvent.php new file mode 100644 index 000000000..35cc2c3f8 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/FbaLiquidationEvent.php @@ -0,0 +1,29 @@ + 'PostedDate', + 'originalRemovalOrderId' => 'OriginalRemovalOrderId', + 'liquidationProceedsAmount' => 'LiquidationProceedsAmount', + 'liquidationFeeAmount' => 'LiquidationFeeAmount', + ]; + + /** + * @param ?DateTime $postedDate + * @param ?string $originalRemovalOrderId The identifier for the original removal order. + * @param ?Currency $liquidationProceedsAmount A currency type and amount. + * @param ?Currency $liquidationFeeAmount A currency type and amount. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $originalRemovalOrderId = null, + public readonly ?Currency $liquidationProceedsAmount = null, + public readonly ?Currency $liquidationFeeAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/FeeComponent.php b/src/Seller/FinancesV0/Dto/FeeComponent.php new file mode 100644 index 000000000..17c60f779 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/FeeComponent.php @@ -0,0 +1,20 @@ + 'FeeType', 'feeAmount' => 'FeeAmount']; + + /** + * @param ?string $feeType The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central. + * @param ?Currency $feeAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $feeType = null, + public readonly ?Currency $feeAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/FinancialEventGroup.php b/src/Seller/FinancesV0/Dto/FinancialEventGroup.php new file mode 100644 index 000000000..f28486a3e --- /dev/null +++ b/src/Seller/FinancesV0/Dto/FinancialEventGroup.php @@ -0,0 +1,56 @@ + 'FinancialEventGroupId', + 'processingStatus' => 'ProcessingStatus', + 'fundTransferStatus' => 'FundTransferStatus', + 'originalTotal' => 'OriginalTotal', + 'convertedTotal' => 'ConvertedTotal', + 'fundTransferDate' => 'FundTransferDate', + 'traceId' => 'TraceId', + 'accountTail' => 'AccountTail', + 'beginningBalance' => 'BeginningBalance', + 'financialEventGroupStart' => 'FinancialEventGroupStart', + 'financialEventGroupEnd' => 'FinancialEventGroupEnd', + ]; + + /** + * @param ?string $financialEventGroupId A unique identifier for the financial event group. + * @param ?string $processingStatus The processing status of the financial event group indicates whether the balance of the financial event group is settled. + * + * Possible values: + * + * * Open + * + * * Closed + * @param ?string $fundTransferStatus The status of the fund transfer. + * @param ?Currency $originalTotal A currency type and amount. + * @param ?Currency $convertedTotal A currency type and amount. + * @param ?DateTime $fundTransferDate + * @param ?string $traceId The trace identifier used by sellers to look up transactions externally. + * @param ?string $accountTail The account tail of the payment instrument. + * @param ?Currency $beginningBalance A currency type and amount. + * @param ?DateTime $financialEventGroupStart + * @param ?DateTime $financialEventGroupEnd + */ + public function __construct( + public readonly ?string $financialEventGroupId = null, + public readonly ?string $processingStatus = null, + public readonly ?string $fundTransferStatus = null, + public readonly ?Currency $originalTotal = null, + public readonly ?Currency $convertedTotal = null, + public readonly ?\DateTime $fundTransferDate = null, + public readonly ?string $traceId = null, + public readonly ?string $accountTail = null, + public readonly ?Currency $beginningBalance = null, + public readonly ?\DateTime $financialEventGroupStart = null, + public readonly ?\DateTime $financialEventGroupEnd = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/FinancialEvents.php b/src/Seller/FinancesV0/Dto/FinancialEvents.php new file mode 100644 index 000000000..8528ef694 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/FinancialEvents.php @@ -0,0 +1,152 @@ + 'ShipmentEventList', + 'shipmentSettleEventList' => 'ShipmentSettleEventList', + 'refundEventList' => 'RefundEventList', + 'guaranteeClaimEventList' => 'GuaranteeClaimEventList', + 'chargebackEventList' => 'ChargebackEventList', + 'payWithAmazonEventList' => 'PayWithAmazonEventList', + 'serviceProviderCreditEventList' => 'ServiceProviderCreditEventList', + 'retrochargeEventList' => 'RetrochargeEventList', + 'rentalTransactionEventList' => 'RentalTransactionEventList', + 'productAdsPaymentEventList' => 'ProductAdsPaymentEventList', + 'serviceFeeEventList' => 'ServiceFeeEventList', + 'sellerDealPaymentEventList' => 'SellerDealPaymentEventList', + 'debtRecoveryEventList' => 'DebtRecoveryEventList', + 'loanServicingEventList' => 'LoanServicingEventList', + 'adjustmentEventList' => 'AdjustmentEventList', + 'safetReimbursementEventList' => 'SAFETReimbursementEventList', + 'sellerReviewEnrollmentPaymentEventList' => 'SellerReviewEnrollmentPaymentEventList', + 'fbaLiquidationEventList' => 'FBALiquidationEventList', + 'couponPaymentEventList' => 'CouponPaymentEventList', + 'imagingServicesFeeEventList' => 'ImagingServicesFeeEventList', + 'networkComminglingTransactionEventList' => 'NetworkComminglingTransactionEventList', + 'affordabilityExpenseEventList' => 'AffordabilityExpenseEventList', + 'affordabilityExpenseReversalEventList' => 'AffordabilityExpenseReversalEventList', + 'removalShipmentEventList' => 'RemovalShipmentEventList', + 'removalShipmentAdjustmentEventList' => 'RemovalShipmentAdjustmentEventList', + 'trialShipmentEventList' => 'TrialShipmentEventList', + 'tdsReimbursementEventList' => 'TDSReimbursementEventList', + 'adhocDisbursementEventList' => 'AdhocDisbursementEventList', + 'taxWithholdingEventList' => 'TaxWithholdingEventList', + 'chargeRefundEventList' => 'ChargeRefundEventList', + 'failedAdhocDisbursementEventList' => 'FailedAdhocDisbursementEventList', + 'valueAddedServiceChargeEventList' => 'ValueAddedServiceChargeEventList', + 'capacityReservationBillingEventList' => 'CapacityReservationBillingEventList', + ]; + + protected static array $complexArrayTypes = [ + 'shipmentEventList' => [ShipmentEvent::class], + 'shipmentSettleEventList' => [ShipmentEvent::class], + 'refundEventList' => [ShipmentEvent::class], + 'guaranteeClaimEventList' => [ShipmentEvent::class], + 'chargebackEventList' => [ShipmentEvent::class], + 'payWithAmazonEventList' => [PayWithAmazonEvent::class], + 'serviceProviderCreditEventList' => [SolutionProviderCreditEvent::class], + 'retrochargeEventList' => [RetrochargeEvent::class], + 'rentalTransactionEventList' => [RentalTransactionEvent::class], + 'productAdsPaymentEventList' => [ProductAdsPaymentEvent::class], + 'serviceFeeEventList' => [ServiceFeeEvent::class], + 'sellerDealPaymentEventList' => [SellerDealPaymentEvent::class], + 'debtRecoveryEventList' => [DebtRecoveryEvent::class], + 'loanServicingEventList' => [LoanServicingEvent::class], + 'adjustmentEventList' => [AdjustmentEvent::class], + 'safetReimbursementEventList' => [SafetReimbursementEvent::class], + 'sellerReviewEnrollmentPaymentEventList' => [SellerReviewEnrollmentPaymentEvent::class], + 'fbaLiquidationEventList' => [FbaLiquidationEvent::class], + 'couponPaymentEventList' => [CouponPaymentEvent::class], + 'imagingServicesFeeEventList' => [ImagingServicesFeeEvent::class], + 'networkComminglingTransactionEventList' => [NetworkComminglingTransactionEvent::class], + 'affordabilityExpenseEventList' => [AffordabilityExpenseEvent::class], + 'affordabilityExpenseReversalEventList' => [AffordabilityExpenseEvent::class], + 'removalShipmentEventList' => [RemovalShipmentEvent::class], + 'removalShipmentAdjustmentEventList' => [RemovalShipmentAdjustmentEvent::class], + 'trialShipmentEventList' => [TrialShipmentEvent::class], + 'tdsReimbursementEventList' => [TdsReimbursementEvent::class], + 'adhocDisbursementEventList' => [AdhocDisbursementEvent::class], + 'taxWithholdingEventList' => [TaxWithholdingEvent::class], + 'chargeRefundEventList' => [ChargeRefundEvent::class], + 'failedAdhocDisbursementEventList' => [FailedAdhocDisbursementEvent::class], + 'valueAddedServiceChargeEventList' => [ValueAddedServiceChargeEvent::class], + 'capacityReservationBillingEventList' => [CapacityReservationBillingEvent::class], + ]; + + /** + * @param ShipmentEvent[]|null $shipmentEventList A list of shipment event information. + * @param ShipmentEvent[]|null $shipmentSettleEventList A list of `ShipmentEvent` items. + * @param ShipmentEvent[]|null $refundEventList A list of shipment event information. + * @param ShipmentEvent[]|null $guaranteeClaimEventList A list of shipment event information. + * @param ShipmentEvent[]|null $chargebackEventList A list of shipment event information. + * @param PayWithAmazonEvent[]|null $payWithAmazonEventList A list of events related to the seller's Pay with Amazon account. + * @param SolutionProviderCreditEvent[]|null $serviceProviderCreditEventList A list of information about solution provider credits. + * @param RetrochargeEvent[]|null $retrochargeEventList A list of information about Retrocharge or RetrochargeReversal events. + * @param RentalTransactionEvent[]|null $rentalTransactionEventList A list of rental transaction event information. + * @param ProductAdsPaymentEvent[]|null $productAdsPaymentEventList A list of sponsored products payment events. + * @param ServiceFeeEvent[]|null $serviceFeeEventList A list of information about service fee events. + * @param SellerDealPaymentEvent[]|null $sellerDealPaymentEventList A list of payment events for deal-related fees. + * @param DebtRecoveryEvent[]|null $debtRecoveryEventList A list of debt recovery event information. + * @param LoanServicingEvent[]|null $loanServicingEventList A list of loan servicing events. + * @param AdjustmentEvent[]|null $adjustmentEventList A list of adjustment event information for the seller's account. + * @param SafetReimbursementEvent[]|null $safetReimbursementEventList A list of SAFETReimbursementEvents. + * @param SellerReviewEnrollmentPaymentEvent[]|null $sellerReviewEnrollmentPaymentEventList A list of information about fee events for the Early Reviewer Program. + * @param FbaLiquidationEvent[]|null $fbaLiquidationEventList A list of FBA inventory liquidation payment events. + * @param CouponPaymentEvent[]|null $couponPaymentEventList A list of coupon payment event information. + * @param ImagingServicesFeeEvent[]|null $imagingServicesFeeEventList A list of fee events related to Amazon Imaging services. + * @param NetworkComminglingTransactionEvent[]|null $networkComminglingTransactionEventList A list of network commingling transaction events. + * @param AffordabilityExpenseEvent[]|null $affordabilityExpenseEventList A list of expense information related to an affordability promotion. + * @param AffordabilityExpenseEvent[]|null $affordabilityExpenseReversalEventList A list of expense information related to an affordability promotion. + * @param RemovalShipmentEvent[]|null $removalShipmentEventList A list of removal shipment event information. + * @param RemovalShipmentAdjustmentEvent[]|null $removalShipmentAdjustmentEventList A comma-delimited list of Removal shipmentAdjustment details for FBA inventory. + * @param TrialShipmentEvent[]|null $trialShipmentEventList A list of information about trial shipment financial events. + * @param TdsReimbursementEvent[]|null $tdsReimbursementEventList A list of `TDSReimbursementEvent` items. + * @param AdhocDisbursementEvent[]|null $adhocDisbursementEventList A list of `AdhocDisbursement` events. + * @param TaxWithholdingEvent[]|null $taxWithholdingEventList A list of `TaxWithholding` events. + * @param ChargeRefundEvent[]|null $chargeRefundEventList A list of charge refund events. + * @param FailedAdhocDisbursementEvent[]|null $failedAdhocDisbursementEventList A list of `FailedAdhocDisbursementEvent`s. + * @param ValueAddedServiceChargeEvent[]|null $valueAddedServiceChargeEventList A list of `ValueAddedServiceCharge` events. + * @param CapacityReservationBillingEvent[]|null $capacityReservationBillingEventList A list of `CapacityReservationBillingEvent` events. + */ + public function __construct( + public readonly ?array $shipmentEventList = null, + public readonly ?array $shipmentSettleEventList = null, + public readonly ?array $refundEventList = null, + public readonly ?array $guaranteeClaimEventList = null, + public readonly ?array $chargebackEventList = null, + public readonly ?array $payWithAmazonEventList = null, + public readonly ?array $serviceProviderCreditEventList = null, + public readonly ?array $retrochargeEventList = null, + public readonly ?array $rentalTransactionEventList = null, + public readonly ?array $productAdsPaymentEventList = null, + public readonly ?array $serviceFeeEventList = null, + public readonly ?array $sellerDealPaymentEventList = null, + public readonly ?array $debtRecoveryEventList = null, + public readonly ?array $loanServicingEventList = null, + public readonly ?array $adjustmentEventList = null, + public readonly ?array $safetReimbursementEventList = null, + public readonly ?array $sellerReviewEnrollmentPaymentEventList = null, + public readonly ?array $fbaLiquidationEventList = null, + public readonly ?array $couponPaymentEventList = null, + public readonly ?array $imagingServicesFeeEventList = null, + public readonly ?array $networkComminglingTransactionEventList = null, + public readonly ?array $affordabilityExpenseEventList = null, + public readonly ?array $affordabilityExpenseReversalEventList = null, + public readonly ?array $removalShipmentEventList = null, + public readonly ?array $removalShipmentAdjustmentEventList = null, + public readonly ?array $trialShipmentEventList = null, + public readonly ?array $tdsReimbursementEventList = null, + public readonly ?array $adhocDisbursementEventList = null, + public readonly ?array $taxWithholdingEventList = null, + public readonly ?array $chargeRefundEventList = null, + public readonly ?array $failedAdhocDisbursementEventList = null, + public readonly ?array $valueAddedServiceChargeEventList = null, + public readonly ?array $capacityReservationBillingEventList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ImagingServicesFeeEvent.php b/src/Seller/FinancesV0/Dto/ImagingServicesFeeEvent.php new file mode 100644 index 000000000..826349fad --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ImagingServicesFeeEvent.php @@ -0,0 +1,31 @@ + 'ImagingRequestBillingItemID', + 'asin' => 'ASIN', + 'postedDate' => 'PostedDate', + 'feeList' => 'FeeList', + ]; + + protected static array $complexArrayTypes = ['feeList' => [FeeComponent::class]]; + + /** + * @param ?string $imagingRequestBillingItemId The identifier for the imaging services request. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested. + * @param ?DateTime $postedDate + * @param FeeComponent[]|null $feeList A list of fee component information. + */ + public function __construct( + public readonly ?string $imagingRequestBillingItemId = null, + public readonly ?string $asin = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?array $feeList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ListFinancialEventGroupsPayload.php b/src/Seller/FinancesV0/Dto/ListFinancialEventGroupsPayload.php new file mode 100644 index 000000000..3591cdfd5 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ListFinancialEventGroupsPayload.php @@ -0,0 +1,25 @@ + 'NextToken', + 'financialEventGroupList' => 'FinancialEventGroupList', + ]; + + protected static array $complexArrayTypes = ['financialEventGroupList' => [FinancialEventGroup::class]]; + + /** + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + * @param FinancialEventGroup[]|null $financialEventGroupList A list of financial event group information. + */ + public function __construct( + public readonly ?string $nextToken = null, + public readonly ?array $financialEventGroupList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ListFinancialEventsPayload.php b/src/Seller/FinancesV0/Dto/ListFinancialEventsPayload.php new file mode 100644 index 000000000..da5b52c5e --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ListFinancialEventsPayload.php @@ -0,0 +1,20 @@ + 'NextToken', 'financialEvents' => 'FinancialEvents']; + + /** + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + * @param ?FinancialEvents $financialEvents Contains all information related to a financial event. + */ + public function __construct( + public readonly ?string $nextToken = null, + public readonly ?FinancialEvents $financialEvents = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/LoanServicingEvent.php b/src/Seller/FinancesV0/Dto/LoanServicingEvent.php new file mode 100644 index 000000000..2e7d9989b --- /dev/null +++ b/src/Seller/FinancesV0/Dto/LoanServicingEvent.php @@ -0,0 +1,31 @@ + 'LoanAmount', + 'sourceBusinessEventType' => 'SourceBusinessEventType', + ]; + + /** + * @param ?Currency $loanAmount A currency type and amount. + * @param ?string $sourceBusinessEventType The type of event. + * + * Possible values: + * + * * LoanAdvance + * + * * LoanPayment + * + * * LoanRefund + */ + public function __construct( + public readonly ?Currency $loanAmount = null, + public readonly ?string $sourceBusinessEventType = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/NetworkComminglingTransactionEvent.php b/src/Seller/FinancesV0/Dto/NetworkComminglingTransactionEvent.php new file mode 100644 index 000000000..13ad08301 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/NetworkComminglingTransactionEvent.php @@ -0,0 +1,47 @@ + 'TransactionType', + 'postedDate' => 'PostedDate', + 'netCoTransactionId' => 'NetCoTransactionID', + 'swapReason' => 'SwapReason', + 'asin' => 'ASIN', + 'marketplaceId' => 'MarketplaceId', + 'taxExclusiveAmount' => 'TaxExclusiveAmount', + 'taxAmount' => 'TaxAmount', + ]; + + /** + * @param ?string $transactionType The type of network item swap. + * + * Possible values: + * + * * NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace. + * + * * ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces. + * @param ?DateTime $postedDate + * @param ?string $netCoTransactionId The identifier for the network item swap. + * @param ?string $swapReason The reason for the network item swap. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the swapped item. + * @param ?string $marketplaceId The marketplace in which the event took place. + * @param ?Currency $taxExclusiveAmount A currency type and amount. + * @param ?Currency $taxAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $transactionType = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $netCoTransactionId = null, + public readonly ?string $swapReason = null, + public readonly ?string $asin = null, + public readonly ?string $marketplaceId = null, + public readonly ?Currency $taxExclusiveAmount = null, + public readonly ?Currency $taxAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/PayWithAmazonEvent.php b/src/Seller/FinancesV0/Dto/PayWithAmazonEvent.php new file mode 100644 index 000000000..b40ad3017 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/PayWithAmazonEvent.php @@ -0,0 +1,123 @@ + 'SellerOrderId', + 'transactionPostedDate' => 'TransactionPostedDate', + 'businessObjectType' => 'BusinessObjectType', + 'salesChannel' => 'SalesChannel', + 'charge' => 'Charge', + 'feeList' => 'FeeList', + 'paymentAmountType' => 'PaymentAmountType', + 'amountDescription' => 'AmountDescription', + 'fulfillmentChannel' => 'FulfillmentChannel', + 'storeName' => 'StoreName', + ]; + + protected static array $complexArrayTypes = ['feeList' => [FeeComponent::class]]; + + /** + * @param ?string $sellerOrderId An order identifier that is specified by the seller. + * @param ?DateTime $transactionPostedDate + * @param ?string $businessObjectType The type of business object. + * @param ?string $salesChannel The sales channel for the transaction. + * @param ?ChargeComponent $charge 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). + * @param FeeComponent[]|null $feeList A list of fee component information. + * @param ?string $paymentAmountType The type of payment. + * + * Possible values: + * + * * Sales + * @param ?string $amountDescription A short description of this payment event. + * @param ?string $fulfillmentChannel The fulfillment channel. + * + * Possible values: + * + * * AFN - Amazon Fulfillment Network (Fulfillment by Amazon) + * + * * MFN - Merchant Fulfillment Network (self-fulfilled) + * @param ?string $storeName The store name where the event occurred. + */ + public function __construct( + public readonly ?string $sellerOrderId = null, + public readonly ?\DateTime $transactionPostedDate = null, + public readonly ?string $businessObjectType = null, + public readonly ?string $salesChannel = null, + public readonly ?ChargeComponent $charge = null, + public readonly ?array $feeList = null, + public readonly ?string $paymentAmountType = null, + public readonly ?string $amountDescription = null, + public readonly ?string $fulfillmentChannel = null, + public readonly ?string $storeName = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ProductAdsPaymentEvent.php b/src/Seller/FinancesV0/Dto/ProductAdsPaymentEvent.php new file mode 100644 index 000000000..5994373fa --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ProductAdsPaymentEvent.php @@ -0,0 +1,32 @@ + 'PromotionType', + 'promotionId' => 'PromotionId', + 'promotionAmount' => 'PromotionAmount', + ]; + + /** + * @param ?string $promotionType The type of promotion. + * @param ?string $promotionId The seller-specified identifier for the promotion. + * @param ?Currency $promotionAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $promotionType = null, + public readonly ?string $promotionId = null, + public readonly ?Currency $promotionAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RemovalShipmentAdjustmentEvent.php b/src/Seller/FinancesV0/Dto/RemovalShipmentAdjustmentEvent.php new file mode 100644 index 000000000..fbfcf9e8f --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RemovalShipmentAdjustmentEvent.php @@ -0,0 +1,43 @@ + 'PostedDate', + 'adjustmentEventId' => 'AdjustmentEventId', + 'merchantOrderId' => 'MerchantOrderId', + 'orderId' => 'OrderId', + 'transactionType' => 'TransactionType', + 'removalShipmentItemAdjustmentList' => 'RemovalShipmentItemAdjustmentList', + ]; + + protected static array $complexArrayTypes = [ + 'removalShipmentItemAdjustmentList' => [RemovalShipmentItemAdjustment::class], + ]; + + /** + * @param ?DateTime $postedDate + * @param ?string $adjustmentEventId The unique identifier for the adjustment event. + * @param ?string $merchantOrderId The merchant removal orderId. + * @param ?string $orderId The orderId for shipping inventory. + * @param ?string $transactionType The type of removal order. + * + * Possible values: + * + * * WHOLESALE_LIQUIDATION. + * @param RemovalShipmentItemAdjustment[]|null $removalShipmentItemAdjustmentList A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $adjustmentEventId = null, + public readonly ?string $merchantOrderId = null, + public readonly ?string $orderId = null, + public readonly ?string $transactionType = null, + public readonly ?array $removalShipmentItemAdjustmentList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RemovalShipmentEvent.php b/src/Seller/FinancesV0/Dto/RemovalShipmentEvent.php new file mode 100644 index 000000000..eee699afa --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RemovalShipmentEvent.php @@ -0,0 +1,38 @@ + 'PostedDate', + 'merchantOrderId' => 'MerchantOrderId', + 'orderId' => 'OrderId', + 'transactionType' => 'TransactionType', + 'removalShipmentItemList' => 'RemovalShipmentItemList', + ]; + + protected static array $complexArrayTypes = ['removalShipmentItemList' => [RemovalShipmentItem::class]]; + + /** + * @param ?DateTime $postedDate + * @param ?string $merchantOrderId The merchant removal orderId. + * @param ?string $orderId The identifier for the removal shipment order. + * @param ?string $transactionType The type of removal order. + * + * Possible values: + * + * * WHOLESALE_LIQUIDATION + * @param RemovalShipmentItem[]|null $removalShipmentItemList A list of information about removal shipment items. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $merchantOrderId = null, + public readonly ?string $orderId = null, + public readonly ?string $transactionType = null, + public readonly ?array $removalShipmentItemList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RemovalShipmentItem.php b/src/Seller/FinancesV0/Dto/RemovalShipmentItem.php new file mode 100644 index 000000000..44085ed25 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RemovalShipmentItem.php @@ -0,0 +1,47 @@ + 'RemovalShipmentItemId', + 'taxCollectionModel' => 'TaxCollectionModel', + 'fulfillmentNetworkSku' => 'FulfillmentNetworkSKU', + 'quantity' => 'Quantity', + 'revenue' => 'Revenue', + 'feeAmount' => 'FeeAmount', + 'taxAmount' => 'TaxAmount', + 'taxWithheld' => 'TaxWithheld', + ]; + + /** + * @param ?string $removalShipmentItemId An identifier for an item in a removal shipment. + * @param ?string $taxCollectionModel The tax collection model applied to the item. + * + * Possible values: + * + * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. + * + * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. + * @param ?string $fulfillmentNetworkSku The Amazon fulfillment network SKU for the item. + * @param ?int $quantity The quantity of the item. + * @param ?Currency $revenue A currency type and amount. + * @param ?Currency $feeAmount A currency type and amount. + * @param ?Currency $taxAmount A currency type and amount. + * @param ?Currency $taxWithheld A currency type and amount. + */ + public function __construct( + public readonly ?string $removalShipmentItemId = null, + public readonly ?string $taxCollectionModel = null, + public readonly ?string $fulfillmentNetworkSku = null, + public readonly ?int $quantity = null, + public readonly ?Currency $revenue = null, + public readonly ?Currency $feeAmount = null, + public readonly ?Currency $taxAmount = null, + public readonly ?Currency $taxWithheld = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RemovalShipmentItemAdjustment.php b/src/Seller/FinancesV0/Dto/RemovalShipmentItemAdjustment.php new file mode 100644 index 000000000..4c5097419 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RemovalShipmentItemAdjustment.php @@ -0,0 +1,44 @@ + 'RemovalShipmentItemId', + 'taxCollectionModel' => 'TaxCollectionModel', + 'fulfillmentNetworkSku' => 'FulfillmentNetworkSKU', + 'adjustedQuantity' => 'AdjustedQuantity', + 'revenueAdjustment' => 'RevenueAdjustment', + 'taxAmountAdjustment' => 'TaxAmountAdjustment', + 'taxWithheldAdjustment' => 'TaxWithheldAdjustment', + ]; + + /** + * @param ?string $removalShipmentItemId An identifier for an item in a removal shipment. + * @param ?string $taxCollectionModel The tax collection model applied to the item. + * + * Possible values: + * + * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. + * + * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. + * @param ?string $fulfillmentNetworkSku The Amazon fulfillment network SKU for the item. + * @param ?int $adjustedQuantity Adjusted quantity of removal shipmentItemAdjustment items. + * @param ?Currency $revenueAdjustment A currency type and amount. + * @param ?Currency $taxAmountAdjustment A currency type and amount. + * @param ?Currency $taxWithheldAdjustment A currency type and amount. + */ + public function __construct( + public readonly ?string $removalShipmentItemId = null, + public readonly ?string $taxCollectionModel = null, + public readonly ?string $fulfillmentNetworkSku = null, + public readonly ?int $adjustedQuantity = null, + public readonly ?Currency $revenueAdjustment = null, + public readonly ?Currency $taxAmountAdjustment = null, + public readonly ?Currency $taxWithheldAdjustment = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RentalTransactionEvent.php b/src/Seller/FinancesV0/Dto/RentalTransactionEvent.php new file mode 100644 index 000000000..fd3bc67ff --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RentalTransactionEvent.php @@ -0,0 +1,69 @@ + 'AmazonOrderId', + 'rentalEventType' => 'RentalEventType', + 'extensionLength' => 'ExtensionLength', + 'postedDate' => 'PostedDate', + 'rentalChargeList' => 'RentalChargeList', + 'rentalFeeList' => 'RentalFeeList', + 'marketplaceName' => 'MarketplaceName', + 'rentalInitialValue' => 'RentalInitialValue', + 'rentalReimbursement' => 'RentalReimbursement', + 'rentalTaxWithheldList' => 'RentalTaxWithheldList', + ]; + + protected static array $complexArrayTypes = [ + 'rentalChargeList' => [ChargeComponent::class], + 'rentalFeeList' => [FeeComponent::class], + 'rentalTaxWithheldList' => [TaxWithheldComponent::class], + ]; + + /** + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?string $rentalEventType The type of rental event. + * + * Possible values: + * + * * RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item. + * + * * RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period. + * + * * RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item. + * + * * RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item. + * + * * RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon. + * + * * RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge. + * + * * RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item. + * @param ?int $extensionLength The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events. + * @param ?DateTime $postedDate + * @param ChargeComponent[]|null $rentalChargeList A list of charge information on the seller's account. + * @param FeeComponent[]|null $rentalFeeList A list of fee component information. + * @param ?string $marketplaceName The name of the marketplace. + * @param ?Currency $rentalInitialValue A currency type and amount. + * @param ?Currency $rentalReimbursement A currency type and amount. + * @param TaxWithheldComponent[]|null $rentalTaxWithheldList A list of information about taxes withheld. + */ + public function __construct( + public readonly ?string $amazonOrderId = null, + public readonly ?string $rentalEventType = null, + public readonly ?int $extensionLength = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?array $rentalChargeList = null, + public readonly ?array $rentalFeeList = null, + public readonly ?string $marketplaceName = null, + public readonly ?Currency $rentalInitialValue = null, + public readonly ?Currency $rentalReimbursement = null, + public readonly ?array $rentalTaxWithheldList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/RetrochargeEvent.php b/src/Seller/FinancesV0/Dto/RetrochargeEvent.php new file mode 100644 index 000000000..a6c3efa26 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/RetrochargeEvent.php @@ -0,0 +1,46 @@ + 'RetrochargeEventType', + 'amazonOrderId' => 'AmazonOrderId', + 'postedDate' => 'PostedDate', + 'baseTax' => 'BaseTax', + 'shippingTax' => 'ShippingTax', + 'marketplaceName' => 'MarketplaceName', + 'retrochargeTaxWithheldList' => 'RetrochargeTaxWithheldList', + ]; + + protected static array $complexArrayTypes = ['retrochargeTaxWithheldList' => [TaxWithheldComponent::class]]; + + /** + * @param ?string $retrochargeEventType The type of event. + * + * Possible values: + * + * * Retrocharge + * + * * RetrochargeReversal + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?DateTime $postedDate + * @param ?Currency $baseTax A currency type and amount. + * @param ?Currency $shippingTax A currency type and amount. + * @param ?string $marketplaceName The name of the marketplace where the retrocharge event occurred. + * @param TaxWithheldComponent[]|null $retrochargeTaxWithheldList A list of information about taxes withheld. + */ + public function __construct( + public readonly ?string $retrochargeEventType = null, + public readonly ?string $amazonOrderId = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?Currency $baseTax = null, + public readonly ?Currency $shippingTax = null, + public readonly ?string $marketplaceName = null, + public readonly ?array $retrochargeTaxWithheldList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/SafetReimbursementEvent.php b/src/Seller/FinancesV0/Dto/SafetReimbursementEvent.php new file mode 100644 index 000000000..b626858ae --- /dev/null +++ b/src/Seller/FinancesV0/Dto/SafetReimbursementEvent.php @@ -0,0 +1,34 @@ + 'PostedDate', + 'safetClaimId' => 'SAFETClaimId', + 'reimbursedAmount' => 'ReimbursedAmount', + 'reasonCode' => 'ReasonCode', + 'safetReimbursementItemList' => 'SAFETReimbursementItemList', + ]; + + protected static array $complexArrayTypes = ['safetReimbursementItemList' => [SafetReimbursementItem::class]]; + + /** + * @param ?DateTime $postedDate + * @param ?string $safetClaimId A SAFE-T claim identifier. + * @param ?Currency $reimbursedAmount A currency type and amount. + * @param ?string $reasonCode Indicates why the seller was reimbursed. + * @param SafetReimbursementItem[]|null $safetReimbursementItemList A list of SAFETReimbursementItems. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $safetClaimId = null, + public readonly ?Currency $reimbursedAmount = null, + public readonly ?string $reasonCode = null, + public readonly ?array $safetReimbursementItemList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/SafetReimbursementItem.php b/src/Seller/FinancesV0/Dto/SafetReimbursementItem.php new file mode 100644 index 000000000..bee2613f6 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/SafetReimbursementItem.php @@ -0,0 +1,22 @@ + [ChargeComponent::class]]; + + /** + * @param ChargeComponent[]|null $itemChargeList A list of charge information on the seller's account. + * @param ?string $productDescription The description of the item as shown on the product detail page on the retail website. + * @param ?string $quantity The number of units of the item being reimbursed. + */ + public function __construct( + public readonly ?array $itemChargeList = null, + public readonly ?string $productDescription = null, + public readonly ?string $quantity = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/SellerDealPaymentEvent.php b/src/Seller/FinancesV0/Dto/SellerDealPaymentEvent.php new file mode 100644 index 000000000..af2642e52 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/SellerDealPaymentEvent.php @@ -0,0 +1,30 @@ + 'PostedDate', + 'enrollmentId' => 'EnrollmentId', + 'parentAsin' => 'ParentASIN', + 'feeComponent' => 'FeeComponent', + 'chargeComponent' => 'ChargeComponent', + 'totalAmount' => 'TotalAmount', + ]; + + /** + * @param ?DateTime $postedDate + * @param ?string $enrollmentId An enrollment identifier. + * @param ?string $parentAsin The Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program. + * @param ?FeeComponent $feeComponent A fee associated with the event. + * @param ?ChargeComponent $chargeComponent 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). + * @param ?Currency $totalAmount A currency type and amount. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $enrollmentId = null, + public readonly ?string $parentAsin = null, + public readonly ?FeeComponent $feeComponent = null, + public readonly ?ChargeComponent $chargeComponent = null, + public readonly ?Currency $totalAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ServiceFeeEvent.php b/src/Seller/FinancesV0/Dto/ServiceFeeEvent.php new file mode 100644 index 000000000..da63d6920 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ServiceFeeEvent.php @@ -0,0 +1,40 @@ + 'AmazonOrderId', + 'feeReason' => 'FeeReason', + 'feeList' => 'FeeList', + 'sellerSku' => 'SellerSKU', + 'fnSku' => 'FnSKU', + 'feeDescription' => 'FeeDescription', + 'asin' => 'ASIN', + ]; + + protected static array $complexArrayTypes = ['feeList' => [FeeComponent::class]]; + + /** + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?string $feeReason A short description of the service fee reason. + * @param FeeComponent[]|null $feeList A list of fee component information. + * @param ?string $sellerSku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. + * @param ?string $fnSku A unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center. + * @param ?string $feeDescription A short description of the service fee event. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + */ + public function __construct( + public readonly ?string $amazonOrderId = null, + public readonly ?string $feeReason = null, + public readonly ?array $feeList = null, + public readonly ?string $sellerSku = null, + public readonly ?string $fnSku = null, + public readonly ?string $feeDescription = null, + public readonly ?string $asin = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ShipmentEvent.php b/src/Seller/FinancesV0/Dto/ShipmentEvent.php new file mode 100644 index 000000000..4d37a7627 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ShipmentEvent.php @@ -0,0 +1,68 @@ + 'AmazonOrderId', + 'sellerOrderId' => 'SellerOrderId', + 'marketplaceName' => 'MarketplaceName', + 'orderChargeList' => 'OrderChargeList', + 'orderChargeAdjustmentList' => 'OrderChargeAdjustmentList', + 'shipmentFeeList' => 'ShipmentFeeList', + 'shipmentFeeAdjustmentList' => 'ShipmentFeeAdjustmentList', + 'orderFeeList' => 'OrderFeeList', + 'orderFeeAdjustmentList' => 'OrderFeeAdjustmentList', + 'directPaymentList' => 'DirectPaymentList', + 'postedDate' => 'PostedDate', + 'shipmentItemList' => 'ShipmentItemList', + 'shipmentItemAdjustmentList' => 'ShipmentItemAdjustmentList', + ]; + + protected static array $complexArrayTypes = [ + 'orderChargeList' => [ChargeComponent::class], + 'orderChargeAdjustmentList' => [ChargeComponent::class], + 'shipmentFeeList' => [FeeComponent::class], + 'shipmentFeeAdjustmentList' => [FeeComponent::class], + 'orderFeeList' => [FeeComponent::class], + 'orderFeeAdjustmentList' => [FeeComponent::class], + 'directPaymentList' => [DirectPayment::class], + 'shipmentItemList' => [ShipmentItem::class], + 'shipmentItemAdjustmentList' => [ShipmentItem::class], + ]; + + /** + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?string $sellerOrderId A seller-defined identifier for an order. + * @param ?string $marketplaceName The name of the marketplace where the event occurred. + * @param ChargeComponent[]|null $orderChargeList A list of charge information on the seller's account. + * @param ChargeComponent[]|null $orderChargeAdjustmentList A list of charge information on the seller's account. + * @param FeeComponent[]|null $shipmentFeeList A list of fee component information. + * @param FeeComponent[]|null $shipmentFeeAdjustmentList A list of fee component information. + * @param FeeComponent[]|null $orderFeeList A list of fee component information. + * @param FeeComponent[]|null $orderFeeAdjustmentList A list of fee component information. + * @param DirectPayment[]|null $directPaymentList A list of direct payment information. + * @param ?DateTime $postedDate + * @param ShipmentItem[]|null $shipmentItemList A list of shipment items. + * @param ShipmentItem[]|null $shipmentItemAdjustmentList A list of shipment items. + */ + public function __construct( + public readonly ?string $amazonOrderId = null, + public readonly ?string $sellerOrderId = null, + public readonly ?string $marketplaceName = null, + public readonly ?array $orderChargeList = null, + public readonly ?array $orderChargeAdjustmentList = null, + public readonly ?array $shipmentFeeList = null, + public readonly ?array $shipmentFeeAdjustmentList = null, + public readonly ?array $orderFeeList = null, + public readonly ?array $orderFeeAdjustmentList = null, + public readonly ?array $directPaymentList = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?array $shipmentItemList = null, + public readonly ?array $shipmentItemAdjustmentList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ShipmentItem.php b/src/Seller/FinancesV0/Dto/ShipmentItem.php new file mode 100644 index 000000000..58d5999cb --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ShipmentItem.php @@ -0,0 +1,66 @@ + 'SellerSKU', + 'orderItemId' => 'OrderItemId', + 'orderAdjustmentItemId' => 'OrderAdjustmentItemId', + 'quantityShipped' => 'QuantityShipped', + 'itemChargeList' => 'ItemChargeList', + 'itemChargeAdjustmentList' => 'ItemChargeAdjustmentList', + 'itemFeeList' => 'ItemFeeList', + 'itemFeeAdjustmentList' => 'ItemFeeAdjustmentList', + 'itemTaxWithheldList' => 'ItemTaxWithheldList', + 'promotionList' => 'PromotionList', + 'promotionAdjustmentList' => 'PromotionAdjustmentList', + 'costOfPointsGranted' => 'CostOfPointsGranted', + 'costOfPointsReturned' => 'CostOfPointsReturned', + ]; + + protected static array $complexArrayTypes = [ + 'itemChargeList' => [ChargeComponent::class], + 'itemChargeAdjustmentList' => [ChargeComponent::class], + 'itemFeeList' => [FeeComponent::class], + 'itemFeeAdjustmentList' => [FeeComponent::class], + 'itemTaxWithheldList' => [TaxWithheldComponent::class], + 'promotionList' => [Promotion::class], + 'promotionAdjustmentList' => [Promotion::class], + ]; + + /** + * @param ?string $sellerSku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. + * @param ?string $orderItemId An Amazon-defined order item identifier. + * @param ?string $orderAdjustmentItemId An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events. + * @param ?int $quantityShipped The number of items shipped. + * @param ChargeComponent[]|null $itemChargeList A list of charge information on the seller's account. + * @param ChargeComponent[]|null $itemChargeAdjustmentList A list of charge information on the seller's account. + * @param FeeComponent[]|null $itemFeeList A list of fee component information. + * @param FeeComponent[]|null $itemFeeAdjustmentList A list of fee component information. + * @param TaxWithheldComponent[]|null $itemTaxWithheldList A list of information about taxes withheld. + * @param Promotion[]|null $promotionList A list of promotions. + * @param Promotion[]|null $promotionAdjustmentList A list of promotions. + * @param ?Currency $costOfPointsGranted A currency type and amount. + * @param ?Currency $costOfPointsReturned A currency type and amount. + */ + public function __construct( + public readonly ?string $sellerSku = null, + public readonly ?string $orderItemId = null, + public readonly ?string $orderAdjustmentItemId = null, + public readonly ?int $quantityShipped = null, + public readonly ?array $itemChargeList = null, + public readonly ?array $itemChargeAdjustmentList = null, + public readonly ?array $itemFeeList = null, + public readonly ?array $itemFeeAdjustmentList = null, + public readonly ?array $itemTaxWithheldList = null, + public readonly ?array $promotionList = null, + public readonly ?array $promotionAdjustmentList = null, + public readonly ?Currency $costOfPointsGranted = null, + public readonly ?Currency $costOfPointsReturned = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/SolutionProviderCreditEvent.php b/src/Seller/FinancesV0/Dto/SolutionProviderCreditEvent.php new file mode 100644 index 000000000..35972032e --- /dev/null +++ b/src/Seller/FinancesV0/Dto/SolutionProviderCreditEvent.php @@ -0,0 +1,47 @@ + 'ProviderTransactionType', + 'sellerOrderId' => 'SellerOrderId', + 'marketplaceId' => 'MarketplaceId', + 'marketplaceCountryCode' => 'MarketplaceCountryCode', + 'sellerId' => 'SellerId', + 'sellerStoreName' => 'SellerStoreName', + 'providerId' => 'ProviderId', + 'providerStoreName' => 'ProviderStoreName', + 'transactionAmount' => 'TransactionAmount', + 'transactionCreationDate' => 'TransactionCreationDate', + ]; + + /** + * @param ?string $providerTransactionType The transaction type. + * @param ?string $sellerOrderId A seller-defined identifier for an order. + * @param ?string $marketplaceId The identifier of the marketplace where the order was placed. + * @param ?string $marketplaceCountryCode The two-letter country code of the country associated with the marketplace where the order was placed. + * @param ?string $sellerId The Amazon-defined identifier of the seller. + * @param ?string $sellerStoreName The store name where the payment event occurred. + * @param ?string $providerId The Amazon-defined identifier of the solution provider. + * @param ?string $providerStoreName The store name where the payment event occurred. + * @param ?Currency $transactionAmount A currency type and amount. + * @param ?DateTime $transactionCreationDate + */ + public function __construct( + public readonly ?string $providerTransactionType = null, + public readonly ?string $sellerOrderId = null, + public readonly ?string $marketplaceId = null, + public readonly ?string $marketplaceCountryCode = null, + public readonly ?string $sellerId = null, + public readonly ?string $sellerStoreName = null, + public readonly ?string $providerId = null, + public readonly ?string $providerStoreName = null, + public readonly ?Currency $transactionAmount = null, + public readonly ?\DateTime $transactionCreationDate = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/TaxWithheldComponent.php b/src/Seller/FinancesV0/Dto/TaxWithheldComponent.php new file mode 100644 index 000000000..a443732db --- /dev/null +++ b/src/Seller/FinancesV0/Dto/TaxWithheldComponent.php @@ -0,0 +1,31 @@ + 'TaxCollectionModel', + 'taxesWithheld' => 'TaxesWithheld', + ]; + + protected static array $complexArrayTypes = ['taxesWithheld' => [ChargeComponent::class]]; + + /** + * @param ?string $taxCollectionModel The tax collection model applied to the item. + * + * Possible values: + * + * * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. + * + * * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. + * @param ChargeComponent[]|null $taxesWithheld A list of charge information on the seller's account. + */ + public function __construct( + public readonly ?string $taxCollectionModel = null, + public readonly ?array $taxesWithheld = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/TaxWithholdingEvent.php b/src/Seller/FinancesV0/Dto/TaxWithholdingEvent.php new file mode 100644 index 000000000..f272c2ff6 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/TaxWithholdingEvent.php @@ -0,0 +1,29 @@ + 'PostedDate', + 'baseAmount' => 'BaseAmount', + 'withheldAmount' => 'WithheldAmount', + 'taxWithholdingPeriod' => 'TaxWithholdingPeriod', + ]; + + /** + * @param ?DateTime $postedDate + * @param ?Currency $baseAmount A currency type and amount. + * @param ?Currency $withheldAmount A currency type and amount. + * @param ?TaxWithholdingPeriod $taxWithholdingPeriod Period which taxwithholding on seller's account is calculated. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?Currency $baseAmount = null, + public readonly ?Currency $withheldAmount = null, + public readonly ?TaxWithholdingPeriod $taxWithholdingPeriod = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/TaxWithholdingPeriod.php b/src/Seller/FinancesV0/Dto/TaxWithholdingPeriod.php new file mode 100644 index 000000000..c30488d29 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/TaxWithholdingPeriod.php @@ -0,0 +1,20 @@ + 'StartDate', 'endDate' => 'EndDate']; + + /** + * @param ?DateTime $startDate + * @param ?DateTime $endDate + */ + public function __construct( + public readonly ?\DateTime $startDate = null, + public readonly ?\DateTime $endDate = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/TdsReimbursementEvent.php b/src/Seller/FinancesV0/Dto/TdsReimbursementEvent.php new file mode 100644 index 000000000..0d0c10073 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/TdsReimbursementEvent.php @@ -0,0 +1,26 @@ + 'PostedDate', + 'tdsOrderId' => 'TDSOrderId', + 'reimbursedAmount' => 'ReimbursedAmount', + ]; + + /** + * @param ?DateTime $postedDate + * @param ?string $tdsOrderId The Tax-Deducted-at-Source (TDS) identifier. + * @param ?Currency $reimbursedAmount A currency type and amount. + */ + public function __construct( + public readonly ?\DateTime $postedDate = null, + public readonly ?string $tdsOrderId = null, + public readonly ?Currency $reimbursedAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/TrialShipmentEvent.php b/src/Seller/FinancesV0/Dto/TrialShipmentEvent.php new file mode 100644 index 000000000..06fc610b9 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/TrialShipmentEvent.php @@ -0,0 +1,34 @@ + 'AmazonOrderId', + 'financialEventGroupId' => 'FinancialEventGroupId', + 'postedDate' => 'PostedDate', + 'sku' => 'SKU', + 'feeList' => 'FeeList', + ]; + + protected static array $complexArrayTypes = ['feeList' => [FeeComponent::class]]; + + /** + * @param ?string $amazonOrderId An Amazon-defined identifier for an order. + * @param ?string $financialEventGroupId The identifier of the financial event group. + * @param ?DateTime $postedDate + * @param ?string $sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. + * @param FeeComponent[]|null $feeList A list of fee component information. + */ + public function __construct( + public readonly ?string $amazonOrderId = null, + public readonly ?string $financialEventGroupId = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $sku = null, + public readonly ?array $feeList = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Dto/ValueAddedServiceChargeEvent.php b/src/Seller/FinancesV0/Dto/ValueAddedServiceChargeEvent.php new file mode 100644 index 000000000..cdcc712c0 --- /dev/null +++ b/src/Seller/FinancesV0/Dto/ValueAddedServiceChargeEvent.php @@ -0,0 +1,31 @@ + 'TransactionType', + 'postedDate' => 'PostedDate', + 'description' => 'Description', + 'transactionAmount' => 'TransactionAmount', + ]; + + /** + * @param ?string $transactionType Indicates the type of transaction. + * + * Example: 'Other Support Service fees' + * @param ?DateTime $postedDate + * @param ?string $description A short description of the service charge event. + * @param ?Currency $transactionAmount A currency type and amount. + */ + public function __construct( + public readonly ?string $transactionType = null, + public readonly ?\DateTime $postedDate = null, + public readonly ?string $description = null, + public readonly ?Currency $transactionAmount = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Requests/ListFinancialEventGroups.php b/src/Seller/FinancesV0/Requests/ListFinancialEventGroups.php new file mode 100644 index 000000000..5c4f74a5a --- /dev/null +++ b/src/Seller/FinancesV0/Requests/ListFinancialEventGroups.php @@ -0,0 +1,57 @@ + $this->maxResultsPerPage, + 'FinancialEventGroupStartedBefore' => $this->financialEventGroupStartedBefore?->format(\DateTime::RFC3339), + 'FinancialEventGroupStartedAfter' => $this->financialEventGroupStartedAfter?->format(\DateTime::RFC3339), + 'NextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/finances/v0/financialEventGroups'; + } + + public function createDtoFromResponse(Response $response): ListFinancialEventGroupsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => ListFinancialEventGroupsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FinancesV0/Requests/ListFinancialEvents.php b/src/Seller/FinancesV0/Requests/ListFinancialEvents.php new file mode 100644 index 000000000..139b1756c --- /dev/null +++ b/src/Seller/FinancesV0/Requests/ListFinancialEvents.php @@ -0,0 +1,57 @@ + $this->maxResultsPerPage, + 'PostedAfter' => $this->postedAfter?->format(\DateTime::RFC3339), + 'PostedBefore' => $this->postedBefore?->format(\DateTime::RFC3339), + 'NextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/finances/v0/financialEvents'; + } + + public function createDtoFromResponse(Response $response): ListFinancialEventsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => ListFinancialEventsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FinancesV0/Requests/ListFinancialEventsByGroupId.php b/src/Seller/FinancesV0/Requests/ListFinancialEventsByGroupId.php new file mode 100644 index 000000000..170bd3efe --- /dev/null +++ b/src/Seller/FinancesV0/Requests/ListFinancialEventsByGroupId.php @@ -0,0 +1,59 @@ + $this->maxResultsPerPage, + 'PostedAfter' => $this->postedAfter?->format(\DateTime::RFC3339), + 'PostedBefore' => $this->postedBefore?->format(\DateTime::RFC3339), + 'NextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return "/finances/v0/financialEventGroups/{$this->eventGroupId}/financialEvents"; + } + + public function createDtoFromResponse(Response $response): ListFinancialEventsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => ListFinancialEventsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FinancesV0/Requests/ListFinancialEventsByOrderId.php b/src/Seller/FinancesV0/Requests/ListFinancialEventsByOrderId.php new file mode 100644 index 000000000..8a999ecef --- /dev/null +++ b/src/Seller/FinancesV0/Requests/ListFinancialEventsByOrderId.php @@ -0,0 +1,50 @@ + $this->maxResultsPerPage, 'NextToken' => $this->nextToken]); + } + + public function resolveEndpoint(): string + { + return "/finances/v0/orders/{$this->orderId}/financialEvents"; + } + + public function createDtoFromResponse(Response $response): ListFinancialEventsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => ListFinancialEventsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/FinancesV0/Responses/ListFinancialEventGroupsResponse.php b/src/Seller/FinancesV0/Responses/ListFinancialEventGroupsResponse.php new file mode 100644 index 000000000..e37810684 --- /dev/null +++ b/src/Seller/FinancesV0/Responses/ListFinancialEventGroupsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ListFinancialEventGroupsPayload $payload The payload for the listFinancialEventGroups operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ListFinancialEventGroupsPayload $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/FinancesV0/Responses/ListFinancialEventsResponse.php b/src/Seller/FinancesV0/Responses/ListFinancialEventsResponse.php new file mode 100644 index 000000000..97b80647d --- /dev/null +++ b/src/Seller/FinancesV0/Responses/ListFinancialEventsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ListFinancialEventsPayload $payload The payload for the listFinancialEvents operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ListFinancialEventsPayload $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20200901/Api.php b/src/Seller/ListingsItemsV20200901/Api.php new file mode 100644 index 000000000..091fca911 --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Api.php @@ -0,0 +1,69 @@ +connector->send($request); + } + + /** + * @param string $sellerId A selling partner identifier, such as a merchant account or vendor code. + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * @param ?string $issueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale. + */ + public function deleteListingsItem( + string $sellerId, + string $sku, + array $marketplaceIds, + ?string $issueLocale = null, + ): Response { + $request = new DeleteListingsItem($sellerId, $sku, $marketplaceIds, $issueLocale); + + return $this->connector->send($request); + } + + /** + * @param string $sellerId A selling partner identifier, such as a merchant account or vendor code. + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param ListingsItemPatchRequest $listingsItemPatchRequest The request body schema for the patchListingsItem operation. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * @param ?string $issueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale. + */ + public function patchListingsItem( + string $sellerId, + string $sku, + ListingsItemPatchRequest $listingsItemPatchRequest, + array $marketplaceIds, + ?string $issueLocale = null, + ): Response { + $request = new PatchListingsItem($sellerId, $sku, $listingsItemPatchRequest, $marketplaceIds, $issueLocale); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ListingsItemsV20200901/Dto/Error.php b/src/Seller/ListingsItemsV20200901/Dto/Error.php new file mode 100644 index 000000000..07f06083f --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Dto/Error.php @@ -0,0 +1,20 @@ + [PatchOperation::class]]; + + /** + * @param string $productType The Amazon product type of the listings item. + * @param PatchOperation[] $patches One or more JSON Patch operations to perform on the listings item. + */ + public function __construct( + public readonly string $productType, + public readonly array $patches, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20200901/Dto/ListingsItemPutRequest.php b/src/Seller/ListingsItemsV20200901/Dto/ListingsItemPutRequest.php new file mode 100644 index 000000000..603396200 --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Dto/ListingsItemPutRequest.php @@ -0,0 +1,20 @@ +. + * @param string $path JSON Pointer path of the element to patch. See . + * @param mixed[][]|null $value JSON value to add, replace, or delete. + */ + public function __construct( + public readonly string $op, + public readonly string $path, + public readonly ?array $value = null, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20200901/Requests/DeleteListingsItem.php b/src/Seller/ListingsItemsV20200901/Requests/DeleteListingsItem.php new file mode 100644 index 000000000..56d2dbcc1 --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Requests/DeleteListingsItem.php @@ -0,0 +1,54 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2020-09-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ListingsItemsV20200901/Requests/PatchListingsItem.php b/src/Seller/ListingsItemsV20200901/Requests/PatchListingsItem.php new file mode 100644 index 000000000..257155c5a --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Requests/PatchListingsItem.php @@ -0,0 +1,66 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2020-09-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listingsItemPatchRequest->toArray(); + } +} diff --git a/src/Seller/ListingsItemsV20200901/Requests/PutListingsItem.php b/src/Seller/ListingsItemsV20200901/Requests/PutListingsItem.php new file mode 100644 index 000000000..a7055a572 --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Requests/PutListingsItem.php @@ -0,0 +1,62 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2020-09-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listingsItemPutRequest->toArray(); + } +} diff --git a/src/Seller/ListingsItemsV20200901/Responses/ErrorList.php b/src/Seller/ListingsItemsV20200901/Responses/ErrorList.php new file mode 100644 index 000000000..2ca5d4703 --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20200901/Responses/ListingsItemSubmissionResponse.php b/src/Seller/ListingsItemsV20200901/Responses/ListingsItemSubmissionResponse.php new file mode 100644 index 000000000..66d039aab --- /dev/null +++ b/src/Seller/ListingsItemsV20200901/Responses/ListingsItemSubmissionResponse.php @@ -0,0 +1,25 @@ + [Issue::class]]; + + /** + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param string $status The status of the listings item submission. + * @param string $submissionId The unique identifier of the listings item submission. + * @param Issue[]|null $issues Listings item issues related to the listings item submission. + */ + public function __construct( + public readonly string $sku, + public readonly string $status, + public readonly string $submissionId, + public readonly ?array $issues = null, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20210801/Api.php b/src/Seller/ListingsItemsV20210801/Api.php new file mode 100644 index 000000000..104c80167 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Api.php @@ -0,0 +1,89 @@ +connector->send($request); + } + + /** + * @param string $sellerId A selling partner identifier, such as a merchant account or vendor code. + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param ListingsItemPutRequest $listingsItemPutRequest The request body schema for the putListingsItem operation. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * @param ?string $issueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale. + */ + public function putListingsItem( + string $sellerId, + string $sku, + ListingsItemPutRequest $listingsItemPutRequest, + array $marketplaceIds, + ?string $issueLocale = null, + ): Response { + $request = new PutListingsItem($sellerId, $sku, $listingsItemPutRequest, $marketplaceIds, $issueLocale); + + return $this->connector->send($request); + } + + /** + * @param string $sellerId A selling partner identifier, such as a merchant account or vendor code. + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * @param ?string $issueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale. + */ + public function deleteListingsItem( + string $sellerId, + string $sku, + array $marketplaceIds, + ?string $issueLocale = null, + ): Response { + $request = new DeleteListingsItem($sellerId, $sku, $marketplaceIds, $issueLocale); + + return $this->connector->send($request); + } + + /** + * @param string $sellerId A selling partner identifier, such as a merchant account or vendor code. + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param ListingsItemPatchRequest $listingsItemPatchRequest The request body schema for the patchListingsItem operation. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * @param ?string $issueLocale A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale. + */ + public function patchListingsItem( + string $sellerId, + string $sku, + ListingsItemPatchRequest $listingsItemPatchRequest, + array $marketplaceIds, + ?string $issueLocale = null, + ): Response { + $request = new PatchListingsItem($sellerId, $sku, $listingsItemPatchRequest, $marketplaceIds, $issueLocale); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ListingsItemsV20210801/Dto/Error.php b/src/Seller/ListingsItemsV20210801/Dto/Error.php new file mode 100644 index 000000000..656c2aff5 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Dto/Error.php @@ -0,0 +1,20 @@ + [PatchOperation::class]]; + + /** + * @param string $productType The Amazon product type of the listings item. + * @param PatchOperation[] $patches One or more JSON Patch operations to perform on the listings item. + */ + public function __construct( + public readonly string $productType, + public readonly array $patches, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20210801/Dto/ListingsItemPutRequest.php b/src/Seller/ListingsItemsV20210801/Dto/ListingsItemPutRequest.php new file mode 100644 index 000000000..869f7de75 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Dto/ListingsItemPutRequest.php @@ -0,0 +1,20 @@ +. + * @param string $path JSON Pointer path of the element to patch. See . + * @param mixed[][]|null $value JSON value to add, replace, or delete. + */ + public function __construct( + public readonly string $op, + public readonly string $path, + public readonly ?array $value = null, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20210801/Dto/Points.php b/src/Seller/ListingsItemsV20210801/Dto/Points.php new file mode 100644 index 000000000..c042f6abb --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Dto/Points.php @@ -0,0 +1,13 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2021-08-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ListingsItemsV20210801/Requests/GetListingsItem.php b/src/Seller/ListingsItemsV20210801/Requests/GetListingsItem.php new file mode 100644 index 000000000..156543a05 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Requests/GetListingsItem.php @@ -0,0 +1,56 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale, 'includedData' => $this->includedData]); + } + + public function resolveEndpoint(): string + { + return "/listings/2021-08-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): Item|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Item::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ListingsItemsV20210801/Requests/PatchListingsItem.php b/src/Seller/ListingsItemsV20210801/Requests/PatchListingsItem.php new file mode 100644 index 000000000..9ba7a9285 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Requests/PatchListingsItem.php @@ -0,0 +1,66 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2021-08-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listingsItemPatchRequest->toArray(); + } +} diff --git a/src/Seller/ListingsItemsV20210801/Requests/PutListingsItem.php b/src/Seller/ListingsItemsV20210801/Requests/PutListingsItem.php new file mode 100644 index 000000000..6ee31a260 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Requests/PutListingsItem.php @@ -0,0 +1,62 @@ + $this->marketplaceIds, 'issueLocale' => $this->issueLocale]); + } + + public function resolveEndpoint(): string + { + return "/listings/2021-08-01/items/{$this->sellerId}/{$this->sku}"; + } + + public function createDtoFromResponse(Response $response): ListingsItemSubmissionResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ListingsItemSubmissionResponse::class, + 400, 403, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listingsItemPutRequest->toArray(); + } +} diff --git a/src/Seller/ListingsItemsV20210801/Responses/ErrorList.php b/src/Seller/ListingsItemsV20210801/Responses/ErrorList.php new file mode 100644 index 000000000..a82d6938a --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20210801/Responses/Item.php b/src/Seller/ListingsItemsV20210801/Responses/Item.php new file mode 100644 index 000000000..1ebe5e3e6 --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Responses/Item.php @@ -0,0 +1,41 @@ + [ItemSummaryByMarketplace::class], + 'issues' => [Issue::class], + 'offers' => [ItemOfferByMarketplace::class], + 'fulfillmentAvailability' => [FulfillmentAvailability::class], + 'procurement' => [ItemProcurement::class], + ]; + + /** + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param ItemSummaryByMarketplace[]|null $summaries Summary details of a listings item. + * @param ?mixed[] $attributes JSON object containing structured listings item attribute data keyed by attribute name. + * @param Issue[]|null $issues Issues associated with the listings item. + * @param ItemOfferByMarketplace[]|null $offers Offer details for the listings item. + * @param FulfillmentAvailability[]|null $fulfillmentAvailability Fulfillment availability for the listings item. + * @param ItemProcurement[]|null $procurement Vendor procurement information for the listings item. + */ + public function __construct( + public readonly string $sku, + public readonly ?array $summaries = null, + public readonly ?array $attributes = null, + public readonly ?array $issues = null, + public readonly ?array $offers = null, + public readonly ?array $fulfillmentAvailability = null, + public readonly ?array $procurement = null, + ) { + } +} diff --git a/src/Seller/ListingsItemsV20210801/Responses/ListingsItemSubmissionResponse.php b/src/Seller/ListingsItemsV20210801/Responses/ListingsItemSubmissionResponse.php new file mode 100644 index 000000000..404355a6a --- /dev/null +++ b/src/Seller/ListingsItemsV20210801/Responses/ListingsItemSubmissionResponse.php @@ -0,0 +1,25 @@ + [Issue::class]]; + + /** + * @param string $sku A selling partner provided identifier for an Amazon listing. + * @param string $status The status of the listings item submission. + * @param string $submissionId The unique identifier of the listings item submission. + * @param Issue[]|null $issues Listings item issues related to the listings item submission. + */ + public function __construct( + public readonly string $sku, + public readonly string $status, + public readonly string $submissionId, + public readonly ?array $issues = null, + ) { + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Api.php b/src/Seller/ListingsRestrictionsV20210801/Api.php new file mode 100644 index 000000000..5e7406513 --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Api.php @@ -0,0 +1,29 @@ +connector->send($request); + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Dto/Error.php b/src/Seller/ListingsRestrictionsV20210801/Dto/Error.php new file mode 100644 index 000000000..df20b477b --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Dto/Error.php @@ -0,0 +1,20 @@ + [Link::class]]; + + /** + * @param string $message A message describing the reason for the restriction. + * @param ?string $reasonCode A code indicating why the listing is restricted. + * @param Link[]|null $links A list of path forward links that may allow Selling Partners to remove the restriction. + */ + public function __construct( + public readonly string $message, + public readonly ?string $reasonCode = null, + public readonly ?array $links = null, + ) { + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Dto/Restriction.php b/src/Seller/ListingsRestrictionsV20210801/Dto/Restriction.php new file mode 100644 index 000000000..0f4a9d330 --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Dto/Restriction.php @@ -0,0 +1,22 @@ + [Reason::class]]; + + /** + * @param string $marketplaceId A marketplace identifier. Identifies the Amazon marketplace where the restriction is enforced. + * @param ?string $conditionType The condition that applies to the restriction. + * @param Reason[]|null $reasons A list of reasons for the restriction. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly ?string $conditionType = null, + public readonly ?array $reasons = null, + ) { + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Requests/GetListingsRestrictions.php b/src/Seller/ListingsRestrictionsV20210801/Requests/GetListingsRestrictions.php new file mode 100644 index 000000000..65bf86120 --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Requests/GetListingsRestrictions.php @@ -0,0 +1,62 @@ + $this->asin, + 'sellerId' => $this->sellerId, + 'marketplaceIds' => $this->marketplaceIds, + 'conditionType' => $this->conditionType, + 'reasonLocale' => $this->reasonLocale, + ]); + } + + public function resolveEndpoint(): string + { + return '/listings/2021-08-01/restrictions'; + } + + public function createDtoFromResponse(Response $response): RestrictionList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => RestrictionList::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Responses/ErrorList.php b/src/Seller/ListingsRestrictionsV20210801/Responses/ErrorList.php new file mode 100644 index 000000000..b61c6da6b --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errorList A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errorList, + ) { + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Responses/Errors.php b/src/Seller/ListingsRestrictionsV20210801/Responses/Errors.php new file mode 100644 index 000000000..3b4ecc7fc --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Responses/Errors.php @@ -0,0 +1,21 @@ + null]; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ListingsRestrictionsV20210801/Responses/RestrictionList.php b/src/Seller/ListingsRestrictionsV20210801/Responses/RestrictionList.php new file mode 100644 index 000000000..9f13b2d94 --- /dev/null +++ b/src/Seller/ListingsRestrictionsV20210801/Responses/RestrictionList.php @@ -0,0 +1,19 @@ + [Restriction::class]]; + + /** + * @param Restriction[] $restrictions + */ + public function __construct( + public readonly array $restrictions, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Api.php b/src/Seller/MerchantFulfillmentV0/Api.php new file mode 100644 index 000000000..8c6954d05 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Api.php @@ -0,0 +1,104 @@ +connector->send($request); + } + + /** + * @param GetEligibleShipmentServicesRequest $getEligibleShipmentServicesRequest Request schema. + */ + public function getEligibleShipmentServices( + GetEligibleShipmentServicesRequest $getEligibleShipmentServicesRequest, + ): Response { + $request = new GetEligibleShipmentServices($getEligibleShipmentServicesRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The Amazon-defined shipment identifier for the shipment. + */ + public function getShipment(string $shipmentId): Response + { + $request = new GetShipment($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The Amazon-defined shipment identifier for the shipment to cancel. + */ + public function cancelShipment(string $shipmentId): Response + { + $request = new CancelShipment($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The Amazon-defined shipment identifier for the shipment to cancel. + */ + public function cancelShipmentOld(string $shipmentId): Response + { + $request = new CancelShipmentOld($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param CreateShipmentRequest $createShipmentRequest Request schema. + */ + public function createShipment(CreateShipmentRequest $createShipmentRequest): Response + { + $request = new CreateShipment($createShipmentRequest); + + return $this->connector->send($request); + } + + /** + * @param GetAdditionalSellerInputsRequest $getAdditionalSellerInputsRequest Request schema. + */ + public function getAdditionalSellerInputsOld( + GetAdditionalSellerInputsRequest $getAdditionalSellerInputsRequest, + ): Response { + $request = new GetAdditionalSellerInputsOld($getAdditionalSellerInputsRequest); + + return $this->connector->send($request); + } + + /** + * @param GetAdditionalSellerInputsRequest $getAdditionalSellerInputsRequest Request schema. + */ + public function getAdditionalSellerInputs( + GetAdditionalSellerInputsRequest $getAdditionalSellerInputsRequest, + ): Response { + $request = new GetAdditionalSellerInputs($getAdditionalSellerInputsRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AdditionalInputs.php b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalInputs.php new file mode 100644 index 000000000..259a5c4b1 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalInputs.php @@ -0,0 +1,23 @@ + 'AdditionalInputFieldName', + 'sellerInputDefinition' => 'SellerInputDefinition', + ]; + + /** + * @param ?string $additionalInputFieldName The field name. + * @param ?SellerInputDefinition $sellerInputDefinition Specifies characteristics that apply to a seller input. + */ + public function __construct( + public readonly ?string $additionalInputFieldName = null, + public readonly ?SellerInputDefinition $sellerInputDefinition = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInput.php b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInput.php new file mode 100644 index 000000000..5776e1b64 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInput.php @@ -0,0 +1,44 @@ + 'DataType', + 'valueAsString' => 'ValueAsString', + 'valueAsBoolean' => 'ValueAsBoolean', + 'valueAsInteger' => 'ValueAsInteger', + 'valueAsTimestamp' => 'ValueAsTimestamp', + 'valueAsAddress' => 'ValueAsAddress', + 'valueAsWeight' => 'ValueAsWeight', + 'valueAsDimension' => 'ValueAsDimension', + 'valueAsCurrency' => 'ValueAsCurrency', + ]; + + /** + * @param ?string $dataType The data type of the additional information. + * @param ?string $valueAsString The value when the data type is string. + * @param ?bool $valueAsBoolean The value when the data type is boolean. + * @param ?int $valueAsInteger The value when the data type is integer. + * @param ?DateTime $valueAsTimestamp + * @param ?Address $valueAsAddress The postal address information. + * @param ?Weight $valueAsWeight The weight. + * @param ?Length $valueAsDimension The length. + * @param ?CurrencyAmount $valueAsCurrency Currency type and amount. + */ + public function __construct( + public readonly ?string $dataType = null, + public readonly ?string $valueAsString = null, + public readonly ?bool $valueAsBoolean = null, + public readonly ?int $valueAsInteger = null, + public readonly ?\DateTime $valueAsTimestamp = null, + public readonly ?Address $valueAsAddress = null, + public readonly ?Weight $valueAsWeight = null, + public readonly ?Length $valueAsDimension = null, + public readonly ?CurrencyAmount $valueAsCurrency = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInputs.php b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInputs.php new file mode 100644 index 000000000..05bff27b3 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AdditionalSellerInputs.php @@ -0,0 +1,23 @@ + 'AdditionalInputFieldName', + 'additionalSellerInput' => 'AdditionalSellerInput', + ]; + + /** + * @param string $additionalInputFieldName The name of the additional input field. + * @param AdditionalSellerInput $additionalSellerInput Additional information required to purchase shipping. + */ + public function __construct( + public readonly string $additionalInputFieldName, + public readonly AdditionalSellerInput $additionalSellerInput, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Address.php b/src/Seller/MerchantFulfillmentV0/Dto/Address.php new file mode 100644 index 000000000..d03e68156 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Address.php @@ -0,0 +1,50 @@ + 'Name', + 'addressLine1' => 'AddressLine1', + 'email' => 'Email', + 'city' => 'City', + 'postalCode' => 'PostalCode', + 'countryCode' => 'CountryCode', + 'phone' => 'Phone', + 'addressLine2' => 'AddressLine2', + 'addressLine3' => 'AddressLine3', + 'districtOrCounty' => 'DistrictOrCounty', + 'stateOrProvinceCode' => 'StateOrProvinceCode', + ]; + + /** + * @param string $name The name of the addressee, or business name. + * @param string $addressLine1 The street address information. + * @param string $email The email address. + * @param string $city The city. + * @param string $postalCode The zip code or postal code. + * @param string $countryCode The country code. A two-character country code, in ISO 3166-1 alpha-2 format. + * @param string $phone The phone number. + * @param ?string $addressLine2 Additional street address information. + * @param ?string $addressLine3 Additional street address information. + * @param ?string $districtOrCounty The district or county. + * @param ?string $stateOrProvinceCode The state or province code. **Note.** Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China. + */ + public function __construct( + public readonly string $name, + public readonly string $addressLine1, + public readonly string $email, + public readonly string $city, + public readonly string $postalCode, + public readonly string $countryCode, + public readonly string $phone, + public readonly ?string $addressLine2 = null, + public readonly ?string $addressLine3 = null, + public readonly ?string $districtOrCounty = null, + public readonly ?string $stateOrProvinceCode = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AvailableCarrierWillPickUpOption.php b/src/Seller/MerchantFulfillmentV0/Dto/AvailableCarrierWillPickUpOption.php new file mode 100644 index 000000000..cfebcfc0e --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AvailableCarrierWillPickUpOption.php @@ -0,0 +1,20 @@ + 'CarrierWillPickUpOption', 'charge' => 'Charge']; + + /** + * @param string $carrierWillPickUpOption Carrier will pick up option. + * @param CurrencyAmount $charge Currency type and amount. + */ + public function __construct( + public readonly string $carrierWillPickUpOption, + public readonly CurrencyAmount $charge, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AvailableDeliveryExperienceOption.php b/src/Seller/MerchantFulfillmentV0/Dto/AvailableDeliveryExperienceOption.php new file mode 100644 index 000000000..e01a8d760 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AvailableDeliveryExperienceOption.php @@ -0,0 +1,20 @@ + 'DeliveryExperienceOption', 'charge' => 'Charge']; + + /** + * @param string $deliveryExperienceOption The delivery confirmation level. + * @param CurrencyAmount $charge Currency type and amount. + */ + public function __construct( + public readonly string $deliveryExperienceOption, + public readonly CurrencyAmount $charge, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/AvailableShippingServiceOptions.php b/src/Seller/MerchantFulfillmentV0/Dto/AvailableShippingServiceOptions.php new file mode 100644 index 000000000..d49e0b223 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/AvailableShippingServiceOptions.php @@ -0,0 +1,28 @@ + 'AvailableCarrierWillPickUpOptions', + 'availableDeliveryExperienceOptions' => 'AvailableDeliveryExperienceOptions', + ]; + + protected static array $complexArrayTypes = [ + 'availableCarrierWillPickUpOptions' => [AvailableCarrierWillPickUpOption::class], + 'availableDeliveryExperienceOptions' => [AvailableDeliveryExperienceOption::class], + ]; + + /** + * @param AvailableCarrierWillPickUpOption[] $availableCarrierWillPickUpOptions List of available carrier pickup options. + * @param AvailableDeliveryExperienceOption[] $availableDeliveryExperienceOptions List of available delivery experience options. + */ + public function __construct( + public readonly array $availableCarrierWillPickUpOptions, + public readonly array $availableDeliveryExperienceOptions, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Constraint.php b/src/Seller/MerchantFulfillmentV0/Dto/Constraint.php new file mode 100644 index 000000000..ebcb1bf2b --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Constraint.php @@ -0,0 +1,23 @@ + 'ValidationString', + 'validationRegEx' => 'ValidationRegEx', + ]; + + /** + * @param string $validationString A validation string. + * @param ?string $validationRegEx A regular expression. + */ + public function __construct( + public readonly string $validationString, + public readonly ?string $validationRegEx = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/CreateShipmentRequest.php b/src/Seller/MerchantFulfillmentV0/Dto/CreateShipmentRequest.php new file mode 100644 index 000000000..15e272b63 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/CreateShipmentRequest.php @@ -0,0 +1,37 @@ + 'ShipmentRequestDetails', + 'shippingServiceId' => 'ShippingServiceId', + 'shippingServiceOfferId' => 'ShippingServiceOfferId', + 'hazmatType' => 'HazmatType', + 'labelFormatOption' => 'LabelFormatOption', + 'shipmentLevelSellerInputsList' => 'ShipmentLevelSellerInputsList', + ]; + + protected static array $complexArrayTypes = ['shipmentLevelSellerInputsList' => [AdditionalSellerInputs::class]]; + + /** + * @param ShipmentRequestDetails $shipmentRequestDetails Shipment information required for requesting shipping service offers or for creating a shipment. + * @param string $shippingServiceId An Amazon-defined shipping service identifier. + * @param ?string $shippingServiceOfferId Identifies a shipping service order made by a carrier. + * @param ?string $hazmatType Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information on hazardous materials. + * @param ?LabelFormatOptionRequest $labelFormatOption Whether to include a packing slip. + * @param AdditionalSellerInputs[]|null $shipmentLevelSellerInputsList A list of additional seller input pairs required to purchase shipping. + */ + public function __construct( + public readonly ShipmentRequestDetails $shipmentRequestDetails, + public readonly string $shippingServiceId, + public readonly ?string $shippingServiceOfferId = null, + public readonly ?string $hazmatType = null, + public readonly ?LabelFormatOptionRequest $labelFormatOption = null, + public readonly ?array $shipmentLevelSellerInputsList = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/CurrencyAmount.php b/src/Seller/MerchantFulfillmentV0/Dto/CurrencyAmount.php new file mode 100644 index 000000000..f2e3edecc --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/CurrencyAmount.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'amount' => 'Amount']; + + /** + * @param string $currencyCode Three-digit currency code in ISO 4217 format. + * @param float $amount The currency amount. + */ + public function __construct( + public readonly string $currencyCode, + public readonly float $amount, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Error.php b/src/Seller/MerchantFulfillmentV0/Dto/Error.php new file mode 100644 index 000000000..c80769cfb --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'Contents', 'fileType' => 'FileType', 'checksum' => 'Checksum']; + + /** + * @param string $contents Data for printing labels, in the form of a Base64-encoded, GZip-compressed string. + * @param string $fileType The file type for a label. + * @param string $checksum An MD5 hash to validate the PDF document data, in the form of a Base64-encoded string. + */ + public function __construct( + public readonly string $contents, + public readonly string $fileType, + public readonly string $checksum, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsRequest.php b/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsRequest.php new file mode 100644 index 000000000..83e80c57f --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsRequest.php @@ -0,0 +1,26 @@ + 'ShippingServiceId', + 'shipFromAddress' => 'ShipFromAddress', + 'orderId' => 'OrderId', + ]; + + /** + * @param string $shippingServiceId An Amazon-defined shipping service identifier. + * @param Address $shipFromAddress The postal address information. + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + */ + public function __construct( + public readonly string $shippingServiceId, + public readonly Address $shipFromAddress, + public readonly string $orderId, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsResult.php b/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsResult.php new file mode 100644 index 000000000..ee71f844b --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/GetAdditionalSellerInputsResult.php @@ -0,0 +1,28 @@ + 'ShipmentLevelFields', + 'itemLevelFieldsList' => 'ItemLevelFieldsList', + ]; + + protected static array $complexArrayTypes = [ + 'shipmentLevelFields' => [AdditionalInputs::class], + 'itemLevelFieldsList' => [ItemLevelFields::class], + ]; + + /** + * @param AdditionalInputs[]|null $shipmentLevelFields A list of additional inputs. + * @param ItemLevelFields[]|null $itemLevelFieldsList A list of item level fields. + */ + public function __construct( + public readonly ?array $shipmentLevelFields = null, + public readonly ?array $itemLevelFieldsList = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesRequest.php b/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesRequest.php new file mode 100644 index 000000000..7ed6093c6 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesRequest.php @@ -0,0 +1,23 @@ + 'ShipmentRequestDetails', + 'shippingOfferingFilter' => 'ShippingOfferingFilter', + ]; + + /** + * @param ShipmentRequestDetails $shipmentRequestDetails Shipment information required for requesting shipping service offers or for creating a shipment. + * @param ?ShippingOfferingFilter $shippingOfferingFilter Filter for use when requesting eligible shipping services. + */ + public function __construct( + public readonly ShipmentRequestDetails $shipmentRequestDetails, + public readonly ?ShippingOfferingFilter $shippingOfferingFilter = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesResult.php b/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesResult.php new file mode 100644 index 000000000..09bad13bf --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/GetEligibleShipmentServicesResult.php @@ -0,0 +1,36 @@ + 'ShippingServiceList', + 'rejectedShippingServiceList' => 'RejectedShippingServiceList', + 'temporarilyUnavailableCarrierList' => 'TemporarilyUnavailableCarrierList', + 'termsAndConditionsNotAcceptedCarrierList' => 'TermsAndConditionsNotAcceptedCarrierList', + ]; + + protected static array $complexArrayTypes = [ + 'shippingServiceList' => [ShippingService::class], + 'rejectedShippingServiceList' => [RejectedShippingService::class], + 'temporarilyUnavailableCarrierList' => [TemporarilyUnavailableCarrier::class], + 'termsAndConditionsNotAcceptedCarrierList' => [TermsAndConditionsNotAcceptedCarrier::class], + ]; + + /** + * @param ShippingService[] $shippingServiceList A list of shipping services offers. + * @param RejectedShippingService[]|null $rejectedShippingServiceList List of services that were for some reason unavailable for this request + * @param TemporarilyUnavailableCarrier[]|null $temporarilyUnavailableCarrierList A list of temporarily unavailable carriers. + * @param TermsAndConditionsNotAcceptedCarrier[]|null $termsAndConditionsNotAcceptedCarrierList List of carriers whose terms and conditions were not accepted by the seller. + */ + public function __construct( + public readonly array $shippingServiceList, + public readonly ?array $rejectedShippingServiceList = null, + public readonly ?array $temporarilyUnavailableCarrierList = null, + public readonly ?array $termsAndConditionsNotAcceptedCarrierList = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Item.php b/src/Seller/MerchantFulfillmentV0/Dto/Item.php new file mode 100644 index 000000000..007d27b9f --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Item.php @@ -0,0 +1,37 @@ + 'OrderItemId', + 'quantity' => 'Quantity', + 'itemWeight' => 'ItemWeight', + 'itemDescription' => 'ItemDescription', + 'transparencyCodeList' => 'TransparencyCodeList', + 'itemLevelSellerInputsList' => 'ItemLevelSellerInputsList', + ]; + + protected static array $complexArrayTypes = ['itemLevelSellerInputsList' => [AdditionalSellerInputs::class]]; + + /** + * @param string $orderItemId An Amazon-defined identifier for an individual item in an order. + * @param int $quantity The number of items. + * @param ?Weight $itemWeight The weight. + * @param ?string $itemDescription The description of the item. + * @param ?string[] $transparencyCodeList A list of transparency codes. + * @param AdditionalSellerInputs[]|null $itemLevelSellerInputsList A list of additional seller input pairs required to purchase shipping. + */ + public function __construct( + public readonly string $orderItemId, + public readonly int $quantity, + public readonly ?Weight $itemWeight = null, + public readonly ?string $itemDescription = null, + public readonly ?array $transparencyCodeList = null, + public readonly ?array $itemLevelSellerInputsList = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/ItemLevelFields.php b/src/Seller/MerchantFulfillmentV0/Dto/ItemLevelFields.php new file mode 100644 index 000000000..094dabc38 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/ItemLevelFields.php @@ -0,0 +1,22 @@ + 'Asin', 'additionalInputs' => 'AdditionalInputs']; + + protected static array $complexArrayTypes = ['additionalInputs' => [AdditionalInputs::class]]; + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param AdditionalInputs[] $additionalInputs A list of additional inputs. + */ + public function __construct( + public readonly string $asin, + public readonly array $additionalInputs, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Label.php b/src/Seller/MerchantFulfillmentV0/Dto/Label.php new file mode 100644 index 000000000..96779ffff --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Label.php @@ -0,0 +1,34 @@ + 'Dimensions', + 'fileContents' => 'FileContents', + 'customTextForLabel' => 'CustomTextForLabel', + 'labelFormat' => 'LabelFormat', + 'standardIdForLabel' => 'StandardIdForLabel', + ]; + + /** + * @param LabelDimensions $dimensions Dimensions for printing a shipping label. + * @param FileContents $fileContents The document data and checksum. + * @param ?string $customTextForLabel Custom text to print on the label. + * + * Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. + * @param ?string $labelFormat The label format. + * @param ?string $standardIdForLabel The type of standard identifier to print on the label. + */ + public function __construct( + public readonly LabelDimensions $dimensions, + public readonly FileContents $fileContents, + public readonly ?string $customTextForLabel = null, + public readonly ?string $labelFormat = null, + public readonly ?string $standardIdForLabel = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/LabelCustomization.php b/src/Seller/MerchantFulfillmentV0/Dto/LabelCustomization.php new file mode 100644 index 000000000..385c6bf90 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/LabelCustomization.php @@ -0,0 +1,25 @@ + 'CustomTextForLabel', + 'standardIdForLabel' => 'StandardIdForLabel', + ]; + + /** + * @param ?string $customTextForLabel Custom text to print on the label. + * + * Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel. + * @param ?string $standardIdForLabel The type of standard identifier to print on the label. + */ + public function __construct( + public readonly ?string $customTextForLabel = null, + public readonly ?string $standardIdForLabel = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/LabelDimensions.php b/src/Seller/MerchantFulfillmentV0/Dto/LabelDimensions.php new file mode 100644 index 000000000..b87502fc8 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/LabelDimensions.php @@ -0,0 +1,22 @@ + 'Length', 'width' => 'Width', 'unit' => 'Unit']; + + /** + * @param float $length A label dimension. + * @param float $width A label dimension. + * @param string $unit The unit of length. + */ + public function __construct( + public readonly float $length, + public readonly float $width, + public readonly string $unit, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOption.php b/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOption.php new file mode 100644 index 000000000..71a1992cb --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOption.php @@ -0,0 +1,23 @@ + 'IncludePackingSlipWithLabel', + 'labelFormat' => 'LabelFormat', + ]; + + /** + * @param ?bool $includePackingSlipWithLabel When true, include a packing slip with the label. + * @param ?string $labelFormat The label format. + */ + public function __construct( + public readonly ?bool $includePackingSlipWithLabel = null, + public readonly ?string $labelFormat = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOptionRequest.php b/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOptionRequest.php new file mode 100644 index 000000000..7acb2fce2 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/LabelFormatOptionRequest.php @@ -0,0 +1,18 @@ + 'IncludePackingSlipWithLabel']; + + /** + * @param ?bool $includePackingSlipWithLabel When true, include a packing slip with the label. + */ + public function __construct( + public readonly ?bool $includePackingSlipWithLabel = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Length.php b/src/Seller/MerchantFulfillmentV0/Dto/Length.php new file mode 100644 index 000000000..eacd7732d --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Length.php @@ -0,0 +1,18 @@ + 'Length', + 'width' => 'Width', + 'height' => 'Height', + 'unit' => 'Unit', + 'predefinedPackageDimensions' => 'PredefinedPackageDimensions', + ]; + + /** + * @param ?float $length + * @param ?float $width + * @param ?float $height + * @param ?string $unit The unit of length. + * @param ?string $predefinedPackageDimensions An enumeration of predefined parcel tokens. If you specify a PredefinedPackageDimensions token, you are not obligated to use a branded package from a carrier. For example, if you specify the FedEx_Box_10kg token, you do not have to use that particular package from FedEx. You are only obligated to use a box that matches the dimensions specified by the token. + * + * Note: Please note that carriers can have restrictions on the type of package allowed for certain ship methods. Check the carrier website for all details. Example: Flat rate pricing is available when materials are sent by USPS in a USPS-produced Flat Rate Envelope or Box. + */ + public function __construct( + public readonly ?float $length = null, + public readonly ?float $width = null, + public readonly ?float $height = null, + public readonly ?string $unit = null, + public readonly ?string $predefinedPackageDimensions = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/RejectedShippingService.php b/src/Seller/MerchantFulfillmentV0/Dto/RejectedShippingService.php new file mode 100644 index 000000000..92b930f25 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/RejectedShippingService.php @@ -0,0 +1,32 @@ + 'CarrierName', + 'shippingServiceName' => 'ShippingServiceName', + 'shippingServiceId' => 'ShippingServiceId', + 'rejectionReasonCode' => 'RejectionReasonCode', + 'rejectionReasonMessage' => 'RejectionReasonMessage', + ]; + + /** + * @param string $carrierName The rejected shipping carrier name. e.g. USPS + * @param string $shippingServiceName The rejected shipping service localized name. e.g. FedEx Standard Overnight + * @param string $shippingServiceId An Amazon-defined shipping service identifier. + * @param string $rejectionReasonCode A reason code meant to be consumed programatically. e.g. CARRIER_CANNOT_SHIP_TO_POBOX + * @param ?string $rejectionReasonMessage A localized human readable description of the rejected reason. + */ + public function __construct( + public readonly string $carrierName, + public readonly string $shippingServiceName, + public readonly string $shippingServiceId, + public readonly string $rejectionReasonCode, + public readonly ?string $rejectionReasonMessage = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/SellerInputDefinition.php b/src/Seller/MerchantFulfillmentV0/Dto/SellerInputDefinition.php new file mode 100644 index 000000000..df394f9dd --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/SellerInputDefinition.php @@ -0,0 +1,40 @@ + 'IsRequired', + 'dataType' => 'DataType', + 'constraints' => 'Constraints', + 'inputDisplayText' => 'InputDisplayText', + 'storedValue' => 'StoredValue', + 'inputTarget' => 'InputTarget', + 'restrictedSetValues' => 'RestrictedSetValues', + ]; + + protected static array $complexArrayTypes = ['constraints' => [Constraint::class]]; + + /** + * @param bool $isRequired When true, the additional input field is required. + * @param string $dataType The data type of the additional input field. + * @param Constraint[] $constraints List of constraints. + * @param string $inputDisplayText The display text for the additional input field. + * @param AdditionalSellerInput $storedValue Additional information required to purchase shipping. + * @param ?string $inputTarget Indicates whether the additional seller input is at the item or shipment level. + * @param ?string[] $restrictedSetValues The set of fixed values in an additional seller input. + */ + public function __construct( + public readonly bool $isRequired, + public readonly string $dataType, + public readonly array $constraints, + public readonly string $inputDisplayText, + public readonly AdditionalSellerInput $storedValue, + public readonly ?string $inputTarget = null, + public readonly ?array $restrictedSetValues = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Shipment.php b/src/Seller/MerchantFulfillmentV0/Dto/Shipment.php new file mode 100644 index 000000000..be7c7371c --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Shipment.php @@ -0,0 +1,64 @@ + 'ShipmentId', + 'amazonOrderId' => 'AmazonOrderId', + 'itemList' => 'ItemList', + 'shipFromAddress' => 'ShipFromAddress', + 'shipToAddress' => 'ShipToAddress', + 'packageDimensions' => 'PackageDimensions', + 'weight' => 'Weight', + 'insurance' => 'Insurance', + 'shippingService' => 'ShippingService', + 'label' => 'Label', + 'status' => 'Status', + 'createdDate' => 'CreatedDate', + 'sellerOrderId' => 'SellerOrderId', + 'trackingId' => 'TrackingId', + 'lastUpdatedDate' => 'LastUpdatedDate', + ]; + + protected static array $complexArrayTypes = ['itemList' => [Item::class]]; + + /** + * @param string $shipmentId An Amazon-defined shipment identifier. + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param Item[] $itemList The list of items to be included in a shipment. + * @param Address $shipFromAddress The postal address information. + * @param Address $shipToAddress The postal address information. + * @param PackageDimensions $packageDimensions The dimensions of a package contained in a shipment. + * @param Weight $weight The weight. + * @param CurrencyAmount $insurance Currency type and amount. + * @param ShippingService $shippingService A shipping service offer made by a carrier. + * @param Label $label Data for creating a shipping label and dimensions for printing the label. + * @param string $status The shipment status. + * @param DateTime $createdDate + * @param ?string $sellerOrderId A seller-defined order identifier. + * @param ?string $trackingId The shipment tracking identifier provided by the carrier. + * @param ?DateTime $lastUpdatedDate + */ + public function __construct( + public readonly string $shipmentId, + public readonly string $amazonOrderId, + public readonly array $itemList, + public readonly Address $shipFromAddress, + public readonly Address $shipToAddress, + public readonly PackageDimensions $packageDimensions, + public readonly Weight $weight, + public readonly CurrencyAmount $insurance, + public readonly ShippingService $shippingService, + public readonly Label $label, + public readonly string $status, + public readonly \DateTime $createdDate, + public readonly ?string $sellerOrderId = null, + public readonly ?string $trackingId = null, + public readonly ?\DateTime $lastUpdatedDate = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/ShipmentRequestDetails.php b/src/Seller/MerchantFulfillmentV0/Dto/ShipmentRequestDetails.php new file mode 100644 index 000000000..0f702e625 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/ShipmentRequestDetails.php @@ -0,0 +1,49 @@ + 'AmazonOrderId', + 'itemList' => 'ItemList', + 'shipFromAddress' => 'ShipFromAddress', + 'packageDimensions' => 'PackageDimensions', + 'weight' => 'Weight', + 'shippingServiceOptions' => 'ShippingServiceOptions', + 'sellerOrderId' => 'SellerOrderId', + 'mustArriveByDate' => 'MustArriveByDate', + 'shipDate' => 'ShipDate', + 'labelCustomization' => 'LabelCustomization', + ]; + + protected static array $complexArrayTypes = ['itemList' => [Item::class]]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param Item[] $itemList The list of items to be included in a shipment. + * @param Address $shipFromAddress The postal address information. + * @param PackageDimensions $packageDimensions The dimensions of a package contained in a shipment. + * @param Weight $weight The weight. + * @param ShippingServiceOptions $shippingServiceOptions Extra services provided by a carrier. + * @param ?string $sellerOrderId A seller-defined order identifier. + * @param ?DateTime $mustArriveByDate + * @param ?DateTime $shipDate + * @param ?LabelCustomization $labelCustomization Custom text for shipping labels. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly array $itemList, + public readonly Address $shipFromAddress, + public readonly PackageDimensions $packageDimensions, + public readonly Weight $weight, + public readonly ShippingServiceOptions $shippingServiceOptions, + public readonly ?string $sellerOrderId = null, + public readonly ?\DateTime $mustArriveByDate = null, + public readonly ?\DateTime $shipDate = null, + public readonly ?LabelCustomization $labelCustomization = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/ShippingOfferingFilter.php b/src/Seller/MerchantFulfillmentV0/Dto/ShippingOfferingFilter.php new file mode 100644 index 000000000..e70117b6c --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/ShippingOfferingFilter.php @@ -0,0 +1,29 @@ + 'IncludePackingSlipWithLabel', + 'includeComplexShippingOptions' => 'IncludeComplexShippingOptions', + 'carrierWillPickUp' => 'CarrierWillPickUp', + 'deliveryExperience' => 'DeliveryExperience', + ]; + + /** + * @param ?bool $includePackingSlipWithLabel When true, include a packing slip with the label. + * @param ?bool $includeComplexShippingOptions When true, include complex shipping options. + * @param ?string $carrierWillPickUp Carrier will pick up option. + * @param ?string $deliveryExperience The delivery confirmation level. + */ + public function __construct( + public readonly ?bool $includePackingSlipWithLabel = null, + public readonly ?bool $includeComplexShippingOptions = null, + public readonly ?string $carrierWillPickUp = null, + public readonly ?string $deliveryExperience = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/ShippingService.php b/src/Seller/MerchantFulfillmentV0/Dto/ShippingService.php new file mode 100644 index 000000000..b91b53ced --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/ShippingService.php @@ -0,0 +1,58 @@ + 'ShippingServiceName', + 'carrierName' => 'CarrierName', + 'shippingServiceId' => 'ShippingServiceId', + 'shippingServiceOfferId' => 'ShippingServiceOfferId', + 'shipDate' => 'ShipDate', + 'rate' => 'Rate', + 'shippingServiceOptions' => 'ShippingServiceOptions', + 'requiresAdditionalSellerInputs' => 'RequiresAdditionalSellerInputs', + 'earliestEstimatedDeliveryDate' => 'EarliestEstimatedDeliveryDate', + 'latestEstimatedDeliveryDate' => 'LatestEstimatedDeliveryDate', + 'availableShippingServiceOptions' => 'AvailableShippingServiceOptions', + 'availableLabelFormats' => 'AvailableLabelFormats', + 'availableFormatOptionsForLabel' => 'AvailableFormatOptionsForLabel', + ]; + + protected static array $complexArrayTypes = ['availableFormatOptionsForLabel' => [LabelFormatOption::class]]; + + /** + * @param string $shippingServiceName A plain text representation of a carrier's shipping service. For example, "UPS Ground" or "FedEx Standard Overnight". + * @param string $carrierName The name of the carrier. + * @param string $shippingServiceId An Amazon-defined shipping service identifier. + * @param string $shippingServiceOfferId An Amazon-defined shipping service offer identifier. + * @param DateTime $shipDate + * @param CurrencyAmount $rate Currency type and amount. + * @param ShippingServiceOptions $shippingServiceOptions Extra services provided by a carrier. + * @param bool $requiresAdditionalSellerInputs When true, additional seller inputs are required. + * @param ?DateTime $earliestEstimatedDeliveryDate + * @param ?DateTime $latestEstimatedDeliveryDate + * @param ?AvailableShippingServiceOptions $availableShippingServiceOptions The available shipping service options. + * @param ?string[] $availableLabelFormats List of label formats. + * @param LabelFormatOption[]|null $availableFormatOptionsForLabel The available label formats. + */ + public function __construct( + public readonly string $shippingServiceName, + public readonly string $carrierName, + public readonly string $shippingServiceId, + public readonly string $shippingServiceOfferId, + public readonly \DateTime $shipDate, + public readonly CurrencyAmount $rate, + public readonly ShippingServiceOptions $shippingServiceOptions, + public readonly bool $requiresAdditionalSellerInputs, + public readonly ?\DateTime $earliestEstimatedDeliveryDate = null, + public readonly ?\DateTime $latestEstimatedDeliveryDate = null, + public readonly ?AvailableShippingServiceOptions $availableShippingServiceOptions = null, + public readonly ?array $availableLabelFormats = null, + public readonly ?array $availableFormatOptionsForLabel = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/ShippingServiceOptions.php b/src/Seller/MerchantFulfillmentV0/Dto/ShippingServiceOptions.php new file mode 100644 index 000000000..1b6f24f72 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/ShippingServiceOptions.php @@ -0,0 +1,34 @@ + 'DeliveryExperience', + 'carrierWillPickUp' => 'CarrierWillPickUp', + 'declaredValue' => 'DeclaredValue', + 'carrierWillPickUpOption' => 'CarrierWillPickUpOption', + 'labelFormat' => 'LabelFormat', + ]; + + /** + * @param string $deliveryExperience The delivery confirmation level. + * @param bool $carrierWillPickUp 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). + * @param ?CurrencyAmount $declaredValue Currency type and amount. + * @param ?string $carrierWillPickUpOption Carrier will pick up option. + * @param ?string $labelFormat The label format. + */ + public function __construct( + public readonly string $deliveryExperience, + public readonly bool $carrierWillPickUp, + public readonly ?CurrencyAmount $declaredValue = null, + public readonly ?string $carrierWillPickUpOption = null, + public readonly ?string $labelFormat = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/TemporarilyUnavailableCarrier.php b/src/Seller/MerchantFulfillmentV0/Dto/TemporarilyUnavailableCarrier.php new file mode 100644 index 000000000..3e8942efa --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/TemporarilyUnavailableCarrier.php @@ -0,0 +1,18 @@ + 'CarrierName']; + + /** + * @param string $carrierName The name of the carrier. + */ + public function __construct( + public readonly string $carrierName, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/TermsAndConditionsNotAcceptedCarrier.php b/src/Seller/MerchantFulfillmentV0/Dto/TermsAndConditionsNotAcceptedCarrier.php new file mode 100644 index 000000000..3a70eaa1e --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/TermsAndConditionsNotAcceptedCarrier.php @@ -0,0 +1,18 @@ + 'CarrierName']; + + /** + * @param string $carrierName The name of the carrier. + */ + public function __construct( + public readonly string $carrierName, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Dto/Weight.php b/src/Seller/MerchantFulfillmentV0/Dto/Weight.php new file mode 100644 index 000000000..68497632f --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Dto/Weight.php @@ -0,0 +1,20 @@ + 'Value', 'unit' => 'Unit']; + + /** + * @param float $value The weight value. + * @param string $unit The unit of weight. + */ + public function __construct( + public readonly float $value, + public readonly string $unit, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/CancelShipment.php b/src/Seller/MerchantFulfillmentV0/Requests/CancelShipment.php new file mode 100644 index 000000000..fbea05832 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/CancelShipment.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/mfn/v0/shipments/{$this->shipmentId}"; + } + + public function createDtoFromResponse(Response $response): CancelShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CancelShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/CancelShipmentOld.php b/src/Seller/MerchantFulfillmentV0/Requests/CancelShipmentOld.php new file mode 100644 index 000000000..4afd46c67 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/CancelShipmentOld.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/mfn/v0/shipments/{$this->shipmentId}/cancel"; + } + + public function createDtoFromResponse(Response $response): CancelShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CancelShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/CreateShipment.php b/src/Seller/MerchantFulfillmentV0/Requests/CreateShipment.php new file mode 100644 index 000000000..82424ff44 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/CreateShipment.php @@ -0,0 +1,54 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return '/mfn/v0/shipments'; + } + + public function createDtoFromResponse(Response $response): CreateShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CreateShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createShipmentRequest->toArray(); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputs.php b/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputs.php new file mode 100644 index 000000000..4505f68d9 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputs.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetAdditionalSellerInputsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getAdditionalSellerInputsRequest->toArray(); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputsOld.php b/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputsOld.php new file mode 100644 index 000000000..49e01b2ef --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/GetAdditionalSellerInputsOld.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetAdditionalSellerInputsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getAdditionalSellerInputsRequest->toArray(); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServices.php b/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServices.php new file mode 100644 index 000000000..803818d60 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServices.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetEligibleShipmentServicesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getEligibleShipmentServicesRequest->toArray(); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServicesOld.php b/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServicesOld.php new file mode 100644 index 000000000..5f6beb942 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/GetEligibleShipmentServicesOld.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetEligibleShipmentServicesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getEligibleShipmentServicesRequest->toArray(); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Requests/GetShipment.php b/src/Seller/MerchantFulfillmentV0/Requests/GetShipment.php new file mode 100644 index 000000000..dd587b695 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Requests/GetShipment.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/mfn/v0/shipments/{$this->shipmentId}"; + } + + public function createDtoFromResponse(Response $response): GetShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Responses/CancelShipmentResponse.php b/src/Seller/MerchantFulfillmentV0/Responses/CancelShipmentResponse.php new file mode 100644 index 000000000..15d81b069 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Responses/CancelShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Shipment $payload The details of a shipment, including the shipment status. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Shipment $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Responses/CreateShipmentResponse.php b/src/Seller/MerchantFulfillmentV0/Responses/CreateShipmentResponse.php new file mode 100644 index 000000000..1dc4b0044 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Responses/CreateShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Shipment $payload The details of a shipment, including the shipment status. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Shipment $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Responses/GetAdditionalSellerInputsResponse.php b/src/Seller/MerchantFulfillmentV0/Responses/GetAdditionalSellerInputsResponse.php new file mode 100644 index 000000000..ddad6afc8 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Responses/GetAdditionalSellerInputsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetAdditionalSellerInputsResult $payload The payload for the getAdditionalSellerInputs operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetAdditionalSellerInputsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Responses/GetEligibleShipmentServicesResponse.php b/src/Seller/MerchantFulfillmentV0/Responses/GetEligibleShipmentServicesResponse.php new file mode 100644 index 000000000..49dcd464e --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Responses/GetEligibleShipmentServicesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetEligibleShipmentServicesResult $payload The payload for the getEligibleShipmentServices operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetEligibleShipmentServicesResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MerchantFulfillmentV0/Responses/GetShipmentResponse.php b/src/Seller/MerchantFulfillmentV0/Responses/GetShipmentResponse.php new file mode 100644 index 000000000..665885e17 --- /dev/null +++ b/src/Seller/MerchantFulfillmentV0/Responses/GetShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Shipment $payload The details of a shipment, including the shipment status. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Shipment $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Api.php b/src/Seller/MessagingV1/Api.php new file mode 100644 index 000000000..955fd7786 --- /dev/null +++ b/src/Seller/MessagingV1/Api.php @@ -0,0 +1,212 @@ +connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateConfirmCustomizationDetailsRequest $createConfirmCustomizationDetailsRequest The request schema for the confirmCustomizationDetails operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function confirmCustomizationDetails( + string $amazonOrderId, + CreateConfirmCustomizationDetailsRequest $createConfirmCustomizationDetailsRequest, + array $marketplaceIds, + ): Response { + $request = new ConfirmCustomizationDetails($amazonOrderId, $createConfirmCustomizationDetailsRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateConfirmDeliveryDetailsRequest $createConfirmDeliveryDetailsRequest The request schema for the createConfirmDeliveryDetails operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createConfirmDeliveryDetails( + string $amazonOrderId, + CreateConfirmDeliveryDetailsRequest $createConfirmDeliveryDetailsRequest, + array $marketplaceIds, + ): Response { + $request = new CreateConfirmDeliveryDetails($amazonOrderId, $createConfirmDeliveryDetailsRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateLegalDisclosureRequest $createLegalDisclosureRequest The request schema for the createLegalDisclosure operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createLegalDisclosure( + string $amazonOrderId, + CreateLegalDisclosureRequest $createLegalDisclosureRequest, + array $marketplaceIds, + ): Response { + $request = new CreateLegalDisclosure($amazonOrderId, $createLegalDisclosureRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createNegativeFeedbackRemoval(string $amazonOrderId, array $marketplaceIds): Response + { + $request = new CreateNegativeFeedbackRemoval($amazonOrderId, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateConfirmOrderDetailsRequest $createConfirmOrderDetailsRequest The request schema for the createConfirmOrderDetails operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createConfirmOrderDetails( + string $amazonOrderId, + CreateConfirmOrderDetailsRequest $createConfirmOrderDetailsRequest, + array $marketplaceIds, + ): Response { + $request = new CreateConfirmOrderDetails($amazonOrderId, $createConfirmOrderDetailsRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateConfirmServiceDetailsRequest $createConfirmServiceDetailsRequest The request schema for the createConfirmServiceDetails operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createConfirmServiceDetails( + string $amazonOrderId, + CreateConfirmServiceDetailsRequest $createConfirmServiceDetailsRequest, + array $marketplaceIds, + ): Response { + $request = new CreateConfirmServiceDetails($amazonOrderId, $createConfirmServiceDetailsRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateAmazonMotorsRequest $createAmazonMotorsRequest The request schema for the createAmazonMotors operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createAmazonMotors( + string $amazonOrderId, + CreateAmazonMotorsRequest $createAmazonMotorsRequest, + array $marketplaceIds, + ): Response { + $request = new CreateAmazonMotors($amazonOrderId, $createAmazonMotorsRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateWarrantyRequest $createWarrantyRequest The request schema for the createWarranty operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createWarranty( + string $amazonOrderId, + CreateWarrantyRequest $createWarrantyRequest, + array $marketplaceIds, + ): Response { + $request = new CreateWarranty($amazonOrderId, $createWarrantyRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function getAttributes(string $amazonOrderId, array $marketplaceIds): Response + { + $request = new GetAttributes($amazonOrderId, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateDigitalAccessKeyRequest $createDigitalAccessKeyRequest The request schema for the createDigitalAccessKey operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createDigitalAccessKey( + string $amazonOrderId, + CreateDigitalAccessKeyRequest $createDigitalAccessKeyRequest, + array $marketplaceIds, + ): Response { + $request = new CreateDigitalAccessKey($amazonOrderId, $createDigitalAccessKeyRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param CreateUnexpectedProblemRequest $createUnexpectedProblemRequest The request schema for the createUnexpectedProblem operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createUnexpectedProblem( + string $amazonOrderId, + CreateUnexpectedProblemRequest $createUnexpectedProblemRequest, + array $marketplaceIds, + ): Response { + $request = new CreateUnexpectedProblem($amazonOrderId, $createUnexpectedProblemRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a message is sent. + * @param InvoiceRequest $invoiceRequest The request schema for the sendInvoice operation. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function sendInvoice(string $amazonOrderId, InvoiceRequest $invoiceRequest, array $marketplaceIds): Response + { + $request = new SendInvoice($amazonOrderId, $invoiceRequest, $marketplaceIds); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/MessagingV1/Dto/Attachment.php b/src/Seller/MessagingV1/Dto/Attachment.php new file mode 100644 index 000000000..c2a20d4b6 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/Attachment.php @@ -0,0 +1,18 @@ + [Attachment::class]]; + + /** + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + */ + public function __construct( + public readonly ?array $attachments = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/CreateConfirmCustomizationDetailsRequest.php b/src/Seller/MessagingV1/Dto/CreateConfirmCustomizationDetailsRequest.php new file mode 100644 index 000000000..22882a50d --- /dev/null +++ b/src/Seller/MessagingV1/Dto/CreateConfirmCustomizationDetailsRequest.php @@ -0,0 +1,20 @@ + [Attachment::class]]; + + /** + * @param ?string $text The text to be sent to the buyer. Only links related to customization details are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + */ + public function __construct( + public readonly ?string $text = null, + public readonly ?array $attachments = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/CreateConfirmDeliveryDetailsRequest.php b/src/Seller/MessagingV1/Dto/CreateConfirmDeliveryDetailsRequest.php new file mode 100644 index 000000000..ffd8aae73 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/CreateConfirmDeliveryDetailsRequest.php @@ -0,0 +1,16 @@ + [Attachment::class]]; + + /** + * @param ?string $text The text to be sent to the buyer. Only links related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation. + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + */ + public function __construct( + public readonly ?string $text = null, + public readonly ?array $attachments = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/CreateLegalDisclosureRequest.php b/src/Seller/MessagingV1/Dto/CreateLegalDisclosureRequest.php new file mode 100644 index 000000000..2555c7c06 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/CreateLegalDisclosureRequest.php @@ -0,0 +1,18 @@ + [Attachment::class]]; + + /** + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + */ + public function __construct( + public readonly ?array $attachments = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/CreateUnexpectedProblemRequest.php b/src/Seller/MessagingV1/Dto/CreateUnexpectedProblemRequest.php new file mode 100644 index 000000000..d4dbadad5 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/CreateUnexpectedProblemRequest.php @@ -0,0 +1,16 @@ + [Attachment::class]]; + + /** + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + * @param ?DateTime $coverageStartDate The start date of the warranty coverage to include in the message to the buyer. + * @param ?DateTime $coverageEndDate The end date of the warranty coverage to include in the message to the buyer. + */ + public function __construct( + public readonly ?array $attachments = null, + public readonly ?\DateTime $coverageStartDate = null, + public readonly ?\DateTime $coverageEndDate = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/Embedded.php b/src/Seller/MessagingV1/Dto/Embedded.php new file mode 100644 index 000000000..e382cce5a --- /dev/null +++ b/src/Seller/MessagingV1/Dto/Embedded.php @@ -0,0 +1,18 @@ + [LinkObject::class]]; + + /** + * @param LinkObject[] $actions Eligible actions for the specified amazonOrderId. + */ + public function __construct( + public readonly array $actions, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/Error.php b/src/Seller/MessagingV1/Dto/Error.php new file mode 100644 index 000000000..1883a55c8 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/Error.php @@ -0,0 +1,20 @@ + '_links', 'embedded' => '_embedded']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?Embedded $embedded + * @param ?MessagingAction $payload A simple object containing the name of the template. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?Embedded $embedded = null, + public readonly ?MessagingAction $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/GetSchemaResponse.php b/src/Seller/MessagingV1/Dto/GetSchemaResponse.php new file mode 100644 index 000000000..a5c74bc49 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/GetSchemaResponse.php @@ -0,0 +1,24 @@ + '_links']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?array[] $payload A JSON schema document describing the expected payload of the action. This object can be validated against
http://json-schema.org/draft-04/schema. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/InvoiceRequest.php b/src/Seller/MessagingV1/Dto/InvoiceRequest.php new file mode 100644 index 000000000..d750a9e35 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/InvoiceRequest.php @@ -0,0 +1,18 @@ + [Attachment::class]]; + + /** + * @param Attachment[]|null $attachments Attachments to include in the message to the buyer. + */ + public function __construct( + public readonly ?array $attachments = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/LinkObject.php b/src/Seller/MessagingV1/Dto/LinkObject.php new file mode 100644 index 000000000..70ac2f75e --- /dev/null +++ b/src/Seller/MessagingV1/Dto/LinkObject.php @@ -0,0 +1,18 @@ + [LinkObject::class]]; + + /** + * @param LinkObject $self A Link object. + * @param LinkObject[] $actions Eligible actions for the specified amazonOrderId. + */ + public function __construct( + public readonly LinkObject $self, + public readonly array $actions, + ) { + } +} diff --git a/src/Seller/MessagingV1/Dto/MessagingAction.php b/src/Seller/MessagingV1/Dto/MessagingAction.php new file mode 100644 index 000000000..d39fc0361 --- /dev/null +++ b/src/Seller/MessagingV1/Dto/MessagingAction.php @@ -0,0 +1,13 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/confirmCustomizationDetails"; + } + + public function createDtoFromResponse(Response $response): CreateConfirmCustomizationDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateConfirmCustomizationDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createConfirmCustomizationDetailsRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateAmazonMotors.php b/src/Seller/MessagingV1/Requests/CreateAmazonMotors.php new file mode 100644 index 000000000..cf3d6b7e4 --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateAmazonMotors.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/amazonMotors"; + } + + public function createDtoFromResponse(Response $response): CreateAmazonMotorsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateAmazonMotorsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createAmazonMotorsRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateConfirmDeliveryDetails.php b/src/Seller/MessagingV1/Requests/CreateConfirmDeliveryDetails.php new file mode 100644 index 000000000..4fd0e6da7 --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateConfirmDeliveryDetails.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/confirmDeliveryDetails"; + } + + public function createDtoFromResponse(Response $response): CreateConfirmDeliveryDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateConfirmDeliveryDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createConfirmDeliveryDetailsRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateConfirmOrderDetails.php b/src/Seller/MessagingV1/Requests/CreateConfirmOrderDetails.php new file mode 100644 index 000000000..b2fbcf3db --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateConfirmOrderDetails.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/confirmOrderDetails"; + } + + public function createDtoFromResponse(Response $response): CreateConfirmOrderDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateConfirmOrderDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createConfirmOrderDetailsRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateConfirmServiceDetails.php b/src/Seller/MessagingV1/Requests/CreateConfirmServiceDetails.php new file mode 100644 index 000000000..a4d58cfaf --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateConfirmServiceDetails.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/confirmServiceDetails"; + } + + public function createDtoFromResponse(Response $response): CreateConfirmServiceDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateConfirmServiceDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createConfirmServiceDetailsRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateDigitalAccessKey.php b/src/Seller/MessagingV1/Requests/CreateDigitalAccessKey.php new file mode 100644 index 000000000..3a252ebd1 --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateDigitalAccessKey.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/digitalAccessKey"; + } + + public function createDtoFromResponse(Response $response): CreateDigitalAccessKeyResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateDigitalAccessKeyResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createDigitalAccessKeyRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateLegalDisclosure.php b/src/Seller/MessagingV1/Requests/CreateLegalDisclosure.php new file mode 100644 index 000000000..673911392 --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateLegalDisclosure.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/legalDisclosure"; + } + + public function createDtoFromResponse(Response $response): CreateLegalDisclosureResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateLegalDisclosureResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createLegalDisclosureRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateNegativeFeedbackRemoval.php b/src/Seller/MessagingV1/Requests/CreateNegativeFeedbackRemoval.php new file mode 100644 index 000000000..581dd235c --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateNegativeFeedbackRemoval.php @@ -0,0 +1,52 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/negativeFeedbackRemoval"; + } + + public function createDtoFromResponse(Response $response): CreateNegativeFeedbackRemovalResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateNegativeFeedbackRemovalResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateUnexpectedProblem.php b/src/Seller/MessagingV1/Requests/CreateUnexpectedProblem.php new file mode 100644 index 000000000..c1891e50f --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateUnexpectedProblem.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/unexpectedProblem"; + } + + public function createDtoFromResponse(Response $response): CreateUnexpectedProblemResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateUnexpectedProblemResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createUnexpectedProblemRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/CreateWarranty.php b/src/Seller/MessagingV1/Requests/CreateWarranty.php new file mode 100644 index 000000000..ebe386d2d --- /dev/null +++ b/src/Seller/MessagingV1/Requests/CreateWarranty.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/warranty"; + } + + public function createDtoFromResponse(Response $response): CreateWarrantyResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateWarrantyResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createWarrantyRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Requests/GetAttributes.php b/src/Seller/MessagingV1/Requests/GetAttributes.php new file mode 100644 index 000000000..f5fe6ed3b --- /dev/null +++ b/src/Seller/MessagingV1/Requests/GetAttributes.php @@ -0,0 +1,48 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/attributes"; + } + + public function createDtoFromResponse(Response $response): GetAttributesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetAttributesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MessagingV1/Requests/GetMessagingActionsForOrder.php b/src/Seller/MessagingV1/Requests/GetMessagingActionsForOrder.php new file mode 100644 index 000000000..666d8f40b --- /dev/null +++ b/src/Seller/MessagingV1/Requests/GetMessagingActionsForOrder.php @@ -0,0 +1,48 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}"; + } + + public function createDtoFromResponse(Response $response): GetMessagingActionsForOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetMessagingActionsForOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/MessagingV1/Requests/SendInvoice.php b/src/Seller/MessagingV1/Requests/SendInvoice.php new file mode 100644 index 000000000..c07da0941 --- /dev/null +++ b/src/Seller/MessagingV1/Requests/SendInvoice.php @@ -0,0 +1,60 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/messaging/v1/orders/{$this->amazonOrderId}/messages/invoice"; + } + + public function createDtoFromResponse(Response $response): InvoiceResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => InvoiceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->invoiceRequest->toArray(); + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateAmazonMotorsResponse.php b/src/Seller/MessagingV1/Responses/CreateAmazonMotorsResponse.php new file mode 100644 index 000000000..ae277ea6b --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateAmazonMotorsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateConfirmCustomizationDetailsResponse.php b/src/Seller/MessagingV1/Responses/CreateConfirmCustomizationDetailsResponse.php new file mode 100644 index 000000000..671a049e9 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateConfirmCustomizationDetailsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateConfirmDeliveryDetailsResponse.php b/src/Seller/MessagingV1/Responses/CreateConfirmDeliveryDetailsResponse.php new file mode 100644 index 000000000..5ac3b24e7 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateConfirmDeliveryDetailsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateConfirmOrderDetailsResponse.php b/src/Seller/MessagingV1/Responses/CreateConfirmOrderDetailsResponse.php new file mode 100644 index 000000000..2a73da070 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateConfirmOrderDetailsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateConfirmServiceDetailsResponse.php b/src/Seller/MessagingV1/Responses/CreateConfirmServiceDetailsResponse.php new file mode 100644 index 000000000..832c5eafe --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateConfirmServiceDetailsResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateDigitalAccessKeyResponse.php b/src/Seller/MessagingV1/Responses/CreateDigitalAccessKeyResponse.php new file mode 100644 index 000000000..43f66ede7 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateDigitalAccessKeyResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateLegalDisclosureResponse.php b/src/Seller/MessagingV1/Responses/CreateLegalDisclosureResponse.php new file mode 100644 index 000000000..48d493a30 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateLegalDisclosureResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateNegativeFeedbackRemovalResponse.php b/src/Seller/MessagingV1/Responses/CreateNegativeFeedbackRemovalResponse.php new file mode 100644 index 000000000..98cef41ea --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateNegativeFeedbackRemovalResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateUnexpectedProblemResponse.php b/src/Seller/MessagingV1/Responses/CreateUnexpectedProblemResponse.php new file mode 100644 index 000000000..50d5add7e --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateUnexpectedProblemResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/CreateWarrantyResponse.php b/src/Seller/MessagingV1/Responses/CreateWarrantyResponse.php new file mode 100644 index 000000000..289be591c --- /dev/null +++ b/src/Seller/MessagingV1/Responses/CreateWarrantyResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/GetAttributesResponse.php b/src/Seller/MessagingV1/Responses/GetAttributesResponse.php new file mode 100644 index 000000000..c5704265e --- /dev/null +++ b/src/Seller/MessagingV1/Responses/GetAttributesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Buyer $buyer The list of attributes related to the buyer. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Buyer $buyer = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/GetMessagingActionsForOrderResponse.php b/src/Seller/MessagingV1/Responses/GetMessagingActionsForOrderResponse.php new file mode 100644 index 000000000..f6213d8c0 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/GetMessagingActionsForOrderResponse.php @@ -0,0 +1,27 @@ + '_links', 'embedded' => '_embedded']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?Embedded $embedded + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?Embedded $embedded = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/MessagingV1/Responses/InvoiceResponse.php b/src/Seller/MessagingV1/Responses/InvoiceResponse.php new file mode 100644 index 000000000..30f6ac129 --- /dev/null +++ b/src/Seller/MessagingV1/Responses/InvoiceResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Api.php b/src/Seller/NotificationsV1/Api.php new file mode 100644 index 000000000..5311ec763 --- /dev/null +++ b/src/Seller/NotificationsV1/Api.php @@ -0,0 +1,109 @@ +connector->send($request); + } + + /** + * @param string $notificationType The type of notification. + * + * For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). + * @param CreateSubscriptionRequest $createSubscriptionRequest The request schema for the createSubscription operation. + */ + public function createSubscription( + string $notificationType, + CreateSubscriptionRequest $createSubscriptionRequest, + ): Response { + $request = new CreateSubscription($notificationType, $createSubscriptionRequest); + + return $this->connector->send($request); + } + + /** + * @param string $subscriptionId The identifier for the subscription that you want to get. + * @param string $notificationType The type of notification. + * + * For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). + */ + public function getSubscriptionById(string $subscriptionId, string $notificationType): Response + { + $request = new GetSubscriptionById($subscriptionId, $notificationType); + + return $this->connector->send($request); + } + + /** + * @param string $subscriptionId The identifier for the subscription that you want to delete. + * @param string $notificationType The type of notification. + * + * For more information about notification types, see [the Notifications API Use Case Guide](doc:notifications-api-v1-use-case-guide). + */ + public function deleteSubscriptionById(string $subscriptionId, string $notificationType): Response + { + $request = new DeleteSubscriptionById($subscriptionId, $notificationType); + + return $this->connector->send($request); + } + + public function getDestinations(): Response + { + $request = new GetDestinations(); + + return $this->connector->send($request); + } + + /** + * @param CreateDestinationRequest $createDestinationRequest The request schema for the createDestination operation. + */ + public function createDestination(CreateDestinationRequest $createDestinationRequest): Response + { + $request = new CreateDestination($createDestinationRequest); + + return $this->connector->send($request); + } + + /** + * @param string $destinationId The identifier generated when you created the destination. + */ + public function getDestination(string $destinationId): Response + { + $request = new GetDestination($destinationId); + + return $this->connector->send($request); + } + + /** + * @param string $destinationId The identifier for the destination that you want to delete. + */ + public function deleteDestination(string $destinationId): Response + { + $request = new DeleteDestination($destinationId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/NotificationsV1/Dto/AggregationFilter.php b/src/Seller/NotificationsV1/Dto/AggregationFilter.php new file mode 100644 index 000000000..81de25f33 --- /dev/null +++ b/src/Seller/NotificationsV1/Dto/AggregationFilter.php @@ -0,0 +1,16 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return '/notifications/v1/destinations'; + } + + public function createDtoFromResponse(Response $response): CreateDestinationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => CreateDestinationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createDestinationRequest->toArray(); + } +} diff --git a/src/Seller/NotificationsV1/Requests/CreateSubscription.php b/src/Seller/NotificationsV1/Requests/CreateSubscription.php new file mode 100644 index 000000000..58028a57f --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/CreateSubscription.php @@ -0,0 +1,55 @@ +notificationType}"; + } + + public function createDtoFromResponse(Response $response): CreateSubscriptionResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => CreateSubscriptionResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createSubscriptionRequest->toArray(); + } +} diff --git a/src/Seller/NotificationsV1/Requests/DeleteDestination.php b/src/Seller/NotificationsV1/Requests/DeleteDestination.php new file mode 100644 index 000000000..0fb92a137 --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/DeleteDestination.php @@ -0,0 +1,44 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return "/notifications/v1/destinations/{$this->destinationId}"; + } + + public function createDtoFromResponse(Response $response): DeleteDestinationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => DeleteDestinationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Requests/DeleteSubscriptionById.php b/src/Seller/NotificationsV1/Requests/DeleteSubscriptionById.php new file mode 100644 index 000000000..b6fea22c8 --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/DeleteSubscriptionById.php @@ -0,0 +1,48 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return "/notifications/v1/subscriptions/{$this->notificationType}/{$this->subscriptionId}"; + } + + public function createDtoFromResponse(Response $response): DeleteSubscriptionByIdResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => DeleteSubscriptionByIdResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Requests/GetDestination.php b/src/Seller/NotificationsV1/Requests/GetDestination.php new file mode 100644 index 000000000..7c2009648 --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/GetDestination.php @@ -0,0 +1,44 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return "/notifications/v1/destinations/{$this->destinationId}"; + } + + public function createDtoFromResponse(Response $response): GetDestinationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => GetDestinationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Requests/GetDestinations.php b/src/Seller/NotificationsV1/Requests/GetDestinations.php new file mode 100644 index 000000000..d7b4278b9 --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/GetDestinations.php @@ -0,0 +1,40 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return '/notifications/v1/destinations'; + } + + public function createDtoFromResponse(Response $response): GetDestinationsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 409, 413, 415, 429, 500, 503 => GetDestinationsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Requests/GetSubscription.php b/src/Seller/NotificationsV1/Requests/GetSubscription.php new file mode 100644 index 000000000..aafaa114b --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/GetSubscription.php @@ -0,0 +1,43 @@ +notificationType}"; + } + + public function createDtoFromResponse(Response $response): GetSubscriptionResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetSubscriptionResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Requests/GetSubscriptionById.php b/src/Seller/NotificationsV1/Requests/GetSubscriptionById.php new file mode 100644 index 000000000..3aba773f5 --- /dev/null +++ b/src/Seller/NotificationsV1/Requests/GetSubscriptionById.php @@ -0,0 +1,50 @@ +middleware()->onRequest(new Grantless(GrantlessScope::NOTIFICATIONS)); + } + + public function resolveEndpoint(): string + { + return "/notifications/v1/subscriptions/{$this->notificationType}/{$this->subscriptionId}"; + } + + public function createDtoFromResponse(Response $response): GetSubscriptionByIdResponse|GetSubscriptionResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 409, 413, 415, 429, 500, 503 => GetSubscriptionByIdResponse::class, + 404 => GetSubscriptionResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/NotificationsV1/Responses/CreateDestinationResponse.php b/src/Seller/NotificationsV1/Responses/CreateDestinationResponse.php new file mode 100644 index 000000000..1354615d7 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/CreateDestinationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Destination $payload Represents a destination created when you call the createDestination operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Destination $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/CreateSubscriptionResponse.php b/src/Seller/NotificationsV1/Responses/CreateSubscriptionResponse.php new file mode 100644 index 000000000..ae2a0022f --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/CreateSubscriptionResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Subscription $payload Represents a subscription to receive notifications. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Subscription $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/DeleteDestinationResponse.php b/src/Seller/NotificationsV1/Responses/DeleteDestinationResponse.php new file mode 100644 index 000000000..3d7e7a291 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/DeleteDestinationResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/DeleteSubscriptionByIdResponse.php b/src/Seller/NotificationsV1/Responses/DeleteSubscriptionByIdResponse.php new file mode 100644 index 000000000..29f3b68e3 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/DeleteSubscriptionByIdResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/GetDestinationResponse.php b/src/Seller/NotificationsV1/Responses/GetDestinationResponse.php new file mode 100644 index 000000000..4da8d7896 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/GetDestinationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Destination $payload Represents a destination created when you call the createDestination operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Destination $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/GetDestinationsResponse.php b/src/Seller/NotificationsV1/Responses/GetDestinationsResponse.php new file mode 100644 index 000000000..d175aa2a6 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/GetDestinationsResponse.php @@ -0,0 +1,22 @@ + [Destination::class], 'errors' => [Error::class]]; + + /** + * @param Destination[]|null $payload A list of destinations. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/GetSubscriptionByIdResponse.php b/src/Seller/NotificationsV1/Responses/GetSubscriptionByIdResponse.php new file mode 100644 index 000000000..a59293d27 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/GetSubscriptionByIdResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Subscription $payload Represents a subscription to receive notifications. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Subscription $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/NotificationsV1/Responses/GetSubscriptionResponse.php b/src/Seller/NotificationsV1/Responses/GetSubscriptionResponse.php new file mode 100644 index 000000000..44e9dd907 --- /dev/null +++ b/src/Seller/NotificationsV1/Responses/GetSubscriptionResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Subscription $payload Represents a subscription to receive notifications. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Subscription $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Api.php b/src/Seller/OrdersV0/Api.php new file mode 100644 index 000000000..506ecd413 --- /dev/null +++ b/src/Seller/OrdersV0/Api.php @@ -0,0 +1,211 @@ +connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + */ + public function getOrder(string $orderId): Response + { + $request = new GetOrder($orderId); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. + */ + public function getOrderBuyerInfo(string $orderId): Response + { + $request = new GetOrderBuyerInfo($orderId); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. + */ + public function getOrderAddress(string $orderId): Response + { + $request = new GetOrderAddress($orderId); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $nextToken A string token returned in the response of your previous request. + */ + public function getOrderItems(string $orderId, ?string $nextToken = null): Response + { + $request = new GetOrderItems($orderId, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $nextToken A string token returned in the response of your previous request. + */ + public function getOrderItemsBuyerInfo(string $orderId, ?string $nextToken = null): Response + { + $request = new GetOrderItemsBuyerInfo($orderId, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + * @param UpdateShipmentStatusRequest $updateShipmentStatusRequest The request body for the updateShipmentStatus operation. + */ + public function updateShipmentStatus( + string $orderId, + UpdateShipmentStatusRequest $updateShipmentStatusRequest, + ): Response { + $request = new UpdateShipmentStatus($orderId, $updateShipmentStatusRequest); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. + */ + public function getOrderRegulatedInfo(string $orderId): Response + { + $request = new GetOrderRegulatedInfo($orderId); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. + * @param UpdateVerificationStatusRequest $updateVerificationStatusRequest The request body for the updateVerificationStatus operation. + */ + public function updateVerificationStatus( + string $orderId, + UpdateVerificationStatusRequest $updateVerificationStatusRequest, + ): Response { + $request = new UpdateVerificationStatus($orderId, $updateVerificationStatusRequest); + + return $this->connector->send($request); + } + + /** + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ConfirmShipmentRequest $confirmShipmentRequest The request schema for an shipment confirmation. + */ + public function confirmShipment(string $orderId, ConfirmShipmentRequest $confirmShipmentRequest): Response + { + $request = new ConfirmShipment($orderId, $confirmShipmentRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/OrdersV0/Dto/Address.php b/src/Seller/OrdersV0/Dto/Address.php new file mode 100644 index 000000000..abc3a2e23 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/Address.php @@ -0,0 +1,56 @@ + 'Name', + 'addressLine1' => 'AddressLine1', + 'addressLine2' => 'AddressLine2', + 'addressLine3' => 'AddressLine3', + 'city' => 'City', + 'county' => 'County', + 'district' => 'District', + 'stateOrRegion' => 'StateOrRegion', + 'municipality' => 'Municipality', + 'postalCode' => 'PostalCode', + 'countryCode' => 'CountryCode', + 'phone' => 'Phone', + 'addressType' => 'AddressType', + ]; + + /** + * @param string $name The name. + * @param ?string $addressLine1 The street address. + * @param ?string $addressLine2 Additional street address information, if required. + * @param ?string $addressLine3 Additional street address information, if required. + * @param ?string $city The city + * @param ?string $county The county. + * @param ?string $district The district. + * @param ?string $stateOrRegion The state or region. + * @param ?string $municipality The municipality. + * @param ?string $postalCode The postal code. + * @param ?string $countryCode The country code. A two-character country code, in ISO 3166-1 alpha-2 format. + * @param ?string $phone The phone number. Not returned for Fulfillment by Amazon (FBA) orders. + * @param ?string $addressType The address type of the shipping address. + */ + public function __construct( + public readonly string $name, + public readonly ?string $addressLine1 = null, + public readonly ?string $addressLine2 = null, + public readonly ?string $addressLine3 = null, + public readonly ?string $city = null, + public readonly ?string $county = null, + public readonly ?string $district = null, + public readonly ?string $stateOrRegion = null, + public readonly ?string $municipality = null, + public readonly ?string $postalCode = null, + public readonly ?string $countryCode = null, + public readonly ?string $phone = null, + public readonly ?string $addressType = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/AssociatedItem.php b/src/Seller/OrdersV0/Dto/AssociatedItem.php new file mode 100644 index 000000000..4f5598363 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/AssociatedItem.php @@ -0,0 +1,26 @@ + 'OrderId', + 'orderItemId' => 'OrderItemId', + 'associationType' => 'AssociationType', + ]; + + /** + * @param ?string $orderId The order item's order identifier, in 3-7-7 format. + * @param ?string $orderItemId An Amazon-defined item identifier for the associated item. + * @param ?string $associationType The type of association an item has with an order item. + */ + public function __construct( + public readonly ?string $orderId = null, + public readonly ?string $orderItemId = null, + public readonly ?string $associationType = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/AutomatedShippingSettings.php b/src/Seller/OrdersV0/Dto/AutomatedShippingSettings.php new file mode 100644 index 000000000..090caac4e --- /dev/null +++ b/src/Seller/OrdersV0/Dto/AutomatedShippingSettings.php @@ -0,0 +1,26 @@ + 'HasAutomatedShippingSettings', + 'automatedCarrier' => 'AutomatedCarrier', + 'automatedShipMethod' => 'AutomatedShipMethod', + ]; + + /** + * @param ?bool $hasAutomatedShippingSettings When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. + * @param ?string $automatedCarrier Auto-generated carrier for SSA orders. + * @param ?string $automatedShipMethod Auto-generated ship method for SSA orders. + */ + public function __construct( + public readonly ?bool $hasAutomatedShippingSettings = null, + public readonly ?string $automatedCarrier = null, + public readonly ?string $automatedShipMethod = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BusinessHours.php b/src/Seller/OrdersV0/Dto/BusinessHours.php new file mode 100644 index 000000000..701362f83 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BusinessHours.php @@ -0,0 +1,22 @@ + 'DayOfWeek', 'openIntervals' => 'OpenIntervals']; + + protected static array $complexArrayTypes = ['openIntervals' => [OpenInterval::class]]; + + /** + * @param ?string $dayOfWeek Day of the week. + * @param OpenInterval[]|null $openIntervals Time window during the day when the business is open. + */ + public function __construct( + public readonly ?string $dayOfWeek = null, + public readonly ?array $openIntervals = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BuyerCustomizedInfoDetail.php b/src/Seller/OrdersV0/Dto/BuyerCustomizedInfoDetail.php new file mode 100644 index 000000000..ea8ff15ff --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BuyerCustomizedInfoDetail.php @@ -0,0 +1,18 @@ + 'CustomizedURL']; + + /** + * @param ?string $customizedUrl The location of a zip file containing Amazon Custom data. + */ + public function __construct( + public readonly ?string $customizedUrl = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BuyerInfo.php b/src/Seller/OrdersV0/Dto/BuyerInfo.php new file mode 100644 index 000000000..0bf1af510 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BuyerInfo.php @@ -0,0 +1,32 @@ + 'BuyerEmail', + 'buyerName' => 'BuyerName', + 'buyerCounty' => 'BuyerCounty', + 'buyerTaxInfo' => 'BuyerTaxInfo', + 'purchaseOrderNumber' => 'PurchaseOrderNumber', + ]; + + /** + * @param ?string $buyerEmail The anonymized email address of the buyer. + * @param ?string $buyerName The buyer name or the recipient name. + * @param ?string $buyerCounty The county of the buyer. + * @param ?BuyerTaxInfo $buyerTaxInfo Tax information about the buyer. + * @param ?string $purchaseOrderNumber The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. + */ + public function __construct( + public readonly ?string $buyerEmail = null, + public readonly ?string $buyerName = null, + public readonly ?string $buyerCounty = null, + public readonly ?BuyerTaxInfo $buyerTaxInfo = null, + public readonly ?string $purchaseOrderNumber = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BuyerRequestedCancel.php b/src/Seller/OrdersV0/Dto/BuyerRequestedCancel.php new file mode 100644 index 000000000..d073c8125 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BuyerRequestedCancel.php @@ -0,0 +1,23 @@ + 'IsBuyerRequestedCancel', + 'buyerCancelReason' => 'BuyerCancelReason', + ]; + + /** + * @param ?bool $isBuyerRequestedCancel When true, the buyer has requested cancellation. + * @param ?string $buyerCancelReason The reason that the buyer requested cancellation. + */ + public function __construct( + public readonly ?bool $isBuyerRequestedCancel = null, + public readonly ?string $buyerCancelReason = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BuyerTaxInfo.php b/src/Seller/OrdersV0/Dto/BuyerTaxInfo.php new file mode 100644 index 000000000..9b6a8228a --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BuyerTaxInfo.php @@ -0,0 +1,28 @@ + 'CompanyLegalName', + 'taxingRegion' => 'TaxingRegion', + 'taxClassifications' => 'TaxClassifications', + ]; + + protected static array $complexArrayTypes = ['taxClassifications' => [TaxClassification::class]]; + + /** + * @param ?string $companyLegalName The legal name of the company. + * @param ?string $taxingRegion The country or region imposing the tax. + * @param TaxClassification[]|null $taxClassifications A list of tax classifications that apply to the order. + */ + public function __construct( + public readonly ?string $companyLegalName = null, + public readonly ?string $taxingRegion = null, + public readonly ?array $taxClassifications = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/BuyerTaxInformation.php b/src/Seller/OrdersV0/Dto/BuyerTaxInformation.php new file mode 100644 index 000000000..1f1b4d360 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/BuyerTaxInformation.php @@ -0,0 +1,29 @@ + 'BuyerLegalCompanyName', + 'buyerBusinessAddress' => 'BuyerBusinessAddress', + 'buyerTaxRegistrationId' => 'BuyerTaxRegistrationId', + 'buyerTaxOffice' => 'BuyerTaxOffice', + ]; + + /** + * @param ?string $buyerLegalCompanyName Business buyer's company legal name. + * @param ?string $buyerBusinessAddress Business buyer's address. + * @param ?string $buyerTaxRegistrationId Business buyer's tax registration ID. + * @param ?string $buyerTaxOffice Business buyer's tax office. + */ + public function __construct( + public readonly ?string $buyerLegalCompanyName = null, + public readonly ?string $buyerBusinessAddress = null, + public readonly ?string $buyerTaxRegistrationId = null, + public readonly ?string $buyerTaxOffice = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/ConfirmShipmentOrderItem.php b/src/Seller/OrdersV0/Dto/ConfirmShipmentOrderItem.php new file mode 100644 index 000000000..dfffd4af8 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/ConfirmShipmentOrderItem.php @@ -0,0 +1,20 @@ + 'DropOffLocation', + 'preferredDeliveryTime' => 'PreferredDeliveryTime', + 'otherAttributes' => 'OtherAttributes', + 'addressInstructions' => 'AddressInstructions', + ]; + + /** + * @param ?string $dropOffLocation Drop-off location selected by the customer. + * @param ?PreferredDeliveryTime $preferredDeliveryTime The time window when the delivery is preferred. + * @param ?string[] $otherAttributes Enumerated list of miscellaneous delivery attributes associated with the shipping address. + * @param ?string $addressInstructions Building instructions, nearby landmark or navigation instructions. + */ + public function __construct( + public readonly ?string $dropOffLocation = null, + public readonly ?PreferredDeliveryTime $preferredDeliveryTime = null, + public readonly ?array $otherAttributes = null, + public readonly ?string $addressInstructions = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/Error.php b/src/Seller/OrdersV0/Dto/Error.php new file mode 100644 index 000000000..9bc36517f --- /dev/null +++ b/src/Seller/OrdersV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'ExceptionDate', + 'isOpen' => 'IsOpen', + 'openIntervals' => 'OpenIntervals', + ]; + + protected static array $complexArrayTypes = ['openIntervals' => [OpenInterval::class]]; + + /** + * @param ?string $exceptionDate Date when the business is closed, in ISO-8601 date format. + * @param ?bool $isOpen Boolean indicating if the business is closed or open on that date. + * @param OpenInterval[]|null $openIntervals Time window during the day when the business is open. + */ + public function __construct( + public readonly ?string $exceptionDate = null, + public readonly ?bool $isOpen = null, + public readonly ?array $openIntervals = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/FulfillmentInstruction.php b/src/Seller/OrdersV0/Dto/FulfillmentInstruction.php new file mode 100644 index 000000000..0002f3c61 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/FulfillmentInstruction.php @@ -0,0 +1,18 @@ + 'FulfillmentSupplySourceId']; + + /** + * @param ?string $fulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. + */ + public function __construct( + public readonly ?string $fulfillmentSupplySourceId = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/ItemBuyerInfo.php b/src/Seller/OrdersV0/Dto/ItemBuyerInfo.php new file mode 100644 index 000000000..638d3bd8a --- /dev/null +++ b/src/Seller/OrdersV0/Dto/ItemBuyerInfo.php @@ -0,0 +1,32 @@ + 'BuyerCustomizedInfo', + 'giftWrapPrice' => 'GiftWrapPrice', + 'giftWrapTax' => 'GiftWrapTax', + 'giftMessageText' => 'GiftMessageText', + 'giftWrapLevel' => 'GiftWrapLevel', + ]; + + /** + * @param ?BuyerCustomizedInfoDetail $buyerCustomizedInfo Buyer information for custom orders from the Amazon Custom program. + * @param ?Money $giftWrapPrice The monetary value of the order. + * @param ?Money $giftWrapTax The monetary value of the order. + * @param ?string $giftMessageText A gift message provided by the buyer. + * @param ?string $giftWrapLevel The gift wrap level specified by the buyer. + */ + public function __construct( + public readonly ?BuyerCustomizedInfoDetail $buyerCustomizedInfo = null, + public readonly ?Money $giftWrapPrice = null, + public readonly ?Money $giftWrapTax = null, + public readonly ?string $giftMessageText = null, + public readonly ?string $giftWrapLevel = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/MarketplaceTaxInfo.php b/src/Seller/OrdersV0/Dto/MarketplaceTaxInfo.php new file mode 100644 index 000000000..d98acf874 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/MarketplaceTaxInfo.php @@ -0,0 +1,20 @@ + 'TaxClassifications']; + + protected static array $complexArrayTypes = ['taxClassifications' => [TaxClassification::class]]; + + /** + * @param TaxClassification[]|null $taxClassifications A list of tax classifications that apply to the order. + */ + public function __construct( + public readonly ?array $taxClassifications = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/Measurement.php b/src/Seller/OrdersV0/Dto/Measurement.php new file mode 100644 index 000000000..b6447a913 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/Measurement.php @@ -0,0 +1,20 @@ + 'Unit', 'value' => 'Value']; + + /** + * @param string $unit The unit of measure for this measurement. + * @param float $value The value of the measurement. + */ + public function __construct( + public readonly string $unit, + public readonly float $value, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/Money.php b/src/Seller/OrdersV0/Dto/Money.php new file mode 100644 index 000000000..9a9bab6e8 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/Money.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'amount' => 'Amount']; + + /** + * @param ?string $currencyCode The three-digit currency code. In ISO 4217 format. + * @param ?string $amount The currency amount. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?string $amount = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OpenInterval.php b/src/Seller/OrdersV0/Dto/OpenInterval.php new file mode 100644 index 000000000..b2ec2ff48 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OpenInterval.php @@ -0,0 +1,20 @@ + 'StartTime', 'endTime' => 'EndTime']; + + /** + * @param ?OpenTimeInterval $startTime The time when the business opens or closes. + * @param ?OpenTimeInterval $endTime The time when the business opens or closes. + */ + public function __construct( + public readonly ?OpenTimeInterval $startTime = null, + public readonly ?OpenTimeInterval $endTime = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OpenTimeInterval.php b/src/Seller/OrdersV0/Dto/OpenTimeInterval.php new file mode 100644 index 000000000..c2532b59e --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OpenTimeInterval.php @@ -0,0 +1,20 @@ + 'Hour', 'minute' => 'Minute']; + + /** + * @param ?int $hour The hour when the business opens or closes. + * @param ?int $minute The minute when the business opens or closes. + */ + public function __construct( + public readonly ?int $hour = null, + public readonly ?int $minute = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/Order.php b/src/Seller/OrdersV0/Dto/Order.php new file mode 100644 index 000000000..1273f9a91 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/Order.php @@ -0,0 +1,168 @@ + 'AmazonOrderId', + 'purchaseDate' => 'PurchaseDate', + 'lastUpdateDate' => 'LastUpdateDate', + 'orderStatus' => 'OrderStatus', + 'sellerOrderId' => 'SellerOrderId', + 'fulfillmentChannel' => 'FulfillmentChannel', + 'salesChannel' => 'SalesChannel', + 'orderChannel' => 'OrderChannel', + 'shipServiceLevel' => 'ShipServiceLevel', + 'orderTotal' => 'OrderTotal', + 'numberOfItemsShipped' => 'NumberOfItemsShipped', + 'numberOfItemsUnshipped' => 'NumberOfItemsUnshipped', + 'paymentExecutionDetail' => 'PaymentExecutionDetail', + 'paymentMethod' => 'PaymentMethod', + 'paymentMethodDetails' => 'PaymentMethodDetails', + 'marketplaceId' => 'MarketplaceId', + 'shipmentServiceLevelCategory' => 'ShipmentServiceLevelCategory', + 'easyShipShipmentStatus' => 'EasyShipShipmentStatus', + 'cbaDisplayableShippingLabel' => 'CbaDisplayableShippingLabel', + 'orderType' => 'OrderType', + 'earliestShipDate' => 'EarliestShipDate', + 'latestShipDate' => 'LatestShipDate', + 'earliestDeliveryDate' => 'EarliestDeliveryDate', + 'latestDeliveryDate' => 'LatestDeliveryDate', + 'isBusinessOrder' => 'IsBusinessOrder', + 'isPrime' => 'IsPrime', + 'isPremiumOrder' => 'IsPremiumOrder', + 'isGlobalExpressEnabled' => 'IsGlobalExpressEnabled', + 'replacedOrderId' => 'ReplacedOrderId', + 'isReplacementOrder' => 'IsReplacementOrder', + 'promiseResponseDueDate' => 'PromiseResponseDueDate', + 'isEstimatedShipDateSet' => 'IsEstimatedShipDateSet', + 'isSoldByAb' => 'IsSoldByAB', + 'isIba' => 'IsIBA', + 'defaultShipFromLocationAddress' => 'DefaultShipFromLocationAddress', + 'buyerInvoicePreference' => 'BuyerInvoicePreference', + 'buyerTaxInformation' => 'BuyerTaxInformation', + 'fulfillmentInstruction' => 'FulfillmentInstruction', + 'isIspu' => 'IsISPU', + 'isAccessPointOrder' => 'IsAccessPointOrder', + 'marketplaceTaxInfo' => 'MarketplaceTaxInfo', + 'sellerDisplayName' => 'SellerDisplayName', + 'shippingAddress' => 'ShippingAddress', + 'buyerInfo' => 'BuyerInfo', + 'automatedShippingSettings' => 'AutomatedShippingSettings', + 'hasRegulatedItems' => 'HasRegulatedItems', + 'electronicInvoiceStatus' => 'ElectronicInvoiceStatus', + ]; + + protected static array $complexArrayTypes = ['paymentExecutionDetail' => [PaymentExecutionDetailItem::class]]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param string $purchaseDate The date when the order was created. + * @param string $lastUpdateDate The date when the order was last updated. + * + * __Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01. + * @param string $orderStatus The current order status. + * @param ?string $sellerOrderId A seller-defined order identifier. + * @param ?string $fulfillmentChannel Whether the order was fulfilled by Amazon (AFN) or by the seller (MFN). + * @param ?string $salesChannel The sales channel of the first item in the order. + * @param ?string $orderChannel The order channel of the first item in the order. + * @param ?string $shipServiceLevel The shipment service level of the order. + * @param ?Money $orderTotal The monetary value of the order. + * @param ?int $numberOfItemsShipped The number of items shipped. + * @param ?int $numberOfItemsUnshipped The number of items unshipped. + * @param PaymentExecutionDetailItem[]|null $paymentExecutionDetail A list of payment execution detail items. + * @param ?string $paymentMethod The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information. + * @param ?string[] $paymentMethodDetails A list of payment method detail items. + * @param ?string $marketplaceId The identifier for the marketplace where the order was placed. + * @param ?string $shipmentServiceLevelCategory The shipment service level category of the order. + * + * Possible values: Expedited, FreeEconomy, NextDay, Priority, SameDay, SecondDay, Scheduled, Standard. + * @param ?string $easyShipShipmentStatus The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders. + * @param ?string $cbaDisplayableShippingLabel Custom ship label for Checkout by Amazon (CBA). + * @param ?string $orderType The type of the order. + * @param ?string $earliestShipDate The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. + * + * __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013. + * @param ?string $latestShipDate The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. + * + * __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013. + * @param ?string $earliestDeliveryDate The start of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. + * @param ?string $latestDeliveryDate The end of the time period within which you have committed to fulfill the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending, or Canceled status. + * @param ?bool $isBusinessOrder When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer. + * @param ?bool $isPrime When true, the order is a seller-fulfilled Amazon Prime order. + * @param ?bool $isPremiumOrder When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, see "Premium Shipping Options" in the Seller Central Help for your marketplace. + * @param ?bool $isGlobalExpressEnabled When true, the order is a GlobalExpress order. + * @param ?string $replacedOrderId The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true. + * @param ?bool $isReplacementOrder When true, this is a replacement order. + * @param ?string $promiseResponseDueDate Indicates the date by which the seller must respond to the buyer with an estimated ship date. Returned only for Sourcing on Demand orders. + * @param ?bool $isEstimatedShipDateSet When true, the estimated ship date is set for the order. Returned only for Sourcing on Demand orders. + * @param ?bool $isSoldByAb When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. + * @param ?bool $isIba When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller. + * @param ?Address $defaultShipFromLocationAddress The shipping address for the order. + * @param ?string $buyerInvoicePreference The buyer's invoicing preference. Available only in the TR marketplace. + * @param ?BuyerTaxInformation $buyerTaxInformation Contains the business invoice tax information. Available only in the TR marketplace. + * @param ?FulfillmentInstruction $fulfillmentInstruction Contains the instructions about the fulfillment like where should it be fulfilled from. + * @param ?bool $isIspu When true, this order is marked to be picked up from a store rather than delivered. + * @param ?bool $isAccessPointOrder When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers. + * @param ?MarketplaceTaxInfo $marketplaceTaxInfo Tax information about the marketplace. + * @param ?string $sellerDisplayName The seller’s friendly name registered in the marketplace. + * @param ?Address $shippingAddress The shipping address for the order. + * @param ?BuyerInfo $buyerInfo Buyer information. + * @param ?AutomatedShippingSettings $automatedShippingSettings Contains information regarding the Shipping Settings Automation program, such as whether the order's shipping settings were generated automatically, and what those settings are. + * @param ?bool $hasRegulatedItems Whether the order contains regulated items which may require additional approval steps before being fulfilled. + * @param ?string $electronicInvoiceStatus The status of the electronic invoice. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly string $purchaseDate, + public readonly string $lastUpdateDate, + public readonly string $orderStatus, + public readonly ?string $sellerOrderId = null, + public readonly ?string $fulfillmentChannel = null, + public readonly ?string $salesChannel = null, + public readonly ?string $orderChannel = null, + public readonly ?string $shipServiceLevel = null, + public readonly ?Money $orderTotal = null, + public readonly ?int $numberOfItemsShipped = null, + public readonly ?int $numberOfItemsUnshipped = null, + public readonly ?array $paymentExecutionDetail = null, + public readonly ?string $paymentMethod = null, + public readonly ?array $paymentMethodDetails = null, + public readonly ?string $marketplaceId = null, + public readonly ?string $shipmentServiceLevelCategory = null, + public readonly ?string $easyShipShipmentStatus = null, + public readonly ?string $cbaDisplayableShippingLabel = null, + public readonly ?string $orderType = null, + public readonly ?string $earliestShipDate = null, + public readonly ?string $latestShipDate = null, + public readonly ?string $earliestDeliveryDate = null, + public readonly ?string $latestDeliveryDate = null, + public readonly ?bool $isBusinessOrder = null, + public readonly ?bool $isPrime = null, + public readonly ?bool $isPremiumOrder = null, + public readonly ?bool $isGlobalExpressEnabled = null, + public readonly ?string $replacedOrderId = null, + public readonly ?bool $isReplacementOrder = null, + public readonly ?string $promiseResponseDueDate = null, + public readonly ?bool $isEstimatedShipDateSet = null, + public readonly ?bool $isSoldByAb = null, + public readonly ?bool $isIba = null, + public readonly ?Address $defaultShipFromLocationAddress = null, + public readonly ?string $buyerInvoicePreference = null, + public readonly ?BuyerTaxInformation $buyerTaxInformation = null, + public readonly ?FulfillmentInstruction $fulfillmentInstruction = null, + public readonly ?bool $isIspu = null, + public readonly ?bool $isAccessPointOrder = null, + public readonly ?MarketplaceTaxInfo $marketplaceTaxInfo = null, + public readonly ?string $sellerDisplayName = null, + public readonly ?Address $shippingAddress = null, + public readonly ?BuyerInfo $buyerInfo = null, + public readonly ?AutomatedShippingSettings $automatedShippingSettings = null, + public readonly ?bool $hasRegulatedItems = null, + public readonly ?string $electronicInvoiceStatus = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderAddress.php b/src/Seller/OrdersV0/Dto/OrderAddress.php new file mode 100644 index 000000000..c689bd403 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderAddress.php @@ -0,0 +1,29 @@ + 'AmazonOrderId', + 'buyerCompanyName' => 'BuyerCompanyName', + 'shippingAddress' => 'ShippingAddress', + 'deliveryPreferences' => 'DeliveryPreferences', + ]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $buyerCompanyName Company Name of the Buyer. + * @param ?Address $shippingAddress The shipping address for the order. + * @param ?DeliveryPreferences $deliveryPreferences Contains all of the delivery instructions provided by the customer for the shipping address. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly ?string $buyerCompanyName = null, + public readonly ?Address $shippingAddress = null, + public readonly ?DeliveryPreferences $deliveryPreferences = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderBuyerInfo.php b/src/Seller/OrdersV0/Dto/OrderBuyerInfo.php new file mode 100644 index 000000000..9df820ca5 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderBuyerInfo.php @@ -0,0 +1,35 @@ + 'AmazonOrderId', + 'buyerEmail' => 'BuyerEmail', + 'buyerName' => 'BuyerName', + 'buyerCounty' => 'BuyerCounty', + 'buyerTaxInfo' => 'BuyerTaxInfo', + 'purchaseOrderNumber' => 'PurchaseOrderNumber', + ]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $buyerEmail The anonymized email address of the buyer. + * @param ?string $buyerName The buyer name or the recipient name. + * @param ?string $buyerCounty The county of the buyer. + * @param ?BuyerTaxInfo $buyerTaxInfo Tax information about the buyer. + * @param ?string $purchaseOrderNumber The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly ?string $buyerEmail = null, + public readonly ?string $buyerName = null, + public readonly ?string $buyerCounty = null, + public readonly ?BuyerTaxInfo $buyerTaxInfo = null, + public readonly ?string $purchaseOrderNumber = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderItem.php b/src/Seller/OrdersV0/Dto/OrderItem.php new file mode 100644 index 000000000..463349404 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderItem.php @@ -0,0 +1,145 @@ + 'ASIN', + 'orderItemId' => 'OrderItemId', + 'quantityOrdered' => 'QuantityOrdered', + 'sellerSku' => 'SellerSKU', + 'associatedItems' => 'AssociatedItems', + 'title' => 'Title', + 'quantityShipped' => 'QuantityShipped', + 'productInfo' => 'ProductInfo', + 'pointsGranted' => 'PointsGranted', + 'itemPrice' => 'ItemPrice', + 'shippingPrice' => 'ShippingPrice', + 'itemTax' => 'ItemTax', + 'shippingTax' => 'ShippingTax', + 'shippingDiscount' => 'ShippingDiscount', + 'shippingDiscountTax' => 'ShippingDiscountTax', + 'promotionDiscount' => 'PromotionDiscount', + 'promotionDiscountTax' => 'PromotionDiscountTax', + 'promotionIds' => 'PromotionIds', + 'codFee' => 'CODFee', + 'codFeeDiscount' => 'CODFeeDiscount', + 'isGift' => 'IsGift', + 'conditionNote' => 'ConditionNote', + 'conditionId' => 'ConditionId', + 'conditionSubtypeId' => 'ConditionSubtypeId', + 'scheduledDeliveryStartDate' => 'ScheduledDeliveryStartDate', + 'scheduledDeliveryEndDate' => 'ScheduledDeliveryEndDate', + 'priceDesignation' => 'PriceDesignation', + 'taxCollection' => 'TaxCollection', + 'serialNumberRequired' => 'SerialNumberRequired', + 'isTransparency' => 'IsTransparency', + 'iossNumber' => 'IossNumber', + 'storeChainStoreId' => 'StoreChainStoreId', + 'deemedResellerCategory' => 'DeemedResellerCategory', + 'buyerInfo' => 'BuyerInfo', + 'buyerRequestedCancel' => 'BuyerRequestedCancel', + 'serialNumbers' => 'SerialNumbers', + 'substitutionPreferences' => 'SubstitutionPreferences', + 'measurement' => 'Measurement', + ]; + + protected static array $complexArrayTypes = ['associatedItems' => [AssociatedItem::class]]; + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $orderItemId An Amazon-defined order item identifier. + * @param int $quantityOrdered The number of items in the order. + * @param ?string $sellerSku The seller stock keeping unit (SKU) of the item. + * @param AssociatedItem[]|null $associatedItems A list of associated items that a customer has purchased with a product. For example, a tire installation service purchased with tires. + * @param ?string $title The name of the item. + * @param ?int $quantityShipped The number of items shipped. + * @param ?ProductInfoDetail $productInfo Product information on the number of items. + * @param ?PointsGrantedDetail $pointsGranted The number of Amazon Points offered with the purchase of an item, and their monetary value. + * @param ?Money $itemPrice The monetary value of the order. + * @param ?Money $shippingPrice The monetary value of the order. + * @param ?Money $itemTax The monetary value of the order. + * @param ?Money $shippingTax The monetary value of the order. + * @param ?Money $shippingDiscount The monetary value of the order. + * @param ?Money $shippingDiscountTax The monetary value of the order. + * @param ?Money $promotionDiscount The monetary value of the order. + * @param ?Money $promotionDiscountTax The monetary value of the order. + * @param ?string[] $promotionIds A list of promotion identifiers provided by the seller when the promotions were created. + * @param ?Money $codFee The monetary value of the order. + * @param ?Money $codFeeDiscount The monetary value of the order. + * @param ?bool $isGift When true, the item is a gift. + * @param ?string $conditionNote The condition of the item as described by the seller. + * @param ?string $conditionId The condition of the item. + * + * Possible values: New, Used, Collectible, Refurbished, Preorder, Club. + * @param ?string $conditionSubtypeId The subcondition of the item. + * + * Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other. + * @param ?string $scheduledDeliveryStartDate The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. + * @param ?string $scheduledDeliveryEndDate The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format. + * @param ?string $priceDesignation Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business). + * + * Possible values: BusinessPrice - A special price that is available only for Amazon Business orders. + * @param ?TaxCollection $taxCollection Information about withheld taxes. + * @param ?bool $serialNumberRequired When true, the product type for this item has a serial number. + * + * Returned only for Amazon Easy Ship orders. + * @param ?bool $isTransparency When true, the ASIN is enrolled in Transparency and the Transparency serial number that needs to be submitted can be determined by the following: + * + * **1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN). + * **2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number will be applied to the same side of the packaging as the GTIN (UPC/EAN/ISBN) barcode. + * **QR code SN:** Submit the URL that the QR code generates. + * @param ?string $iossNumber The IOSS number for the marketplace. Sellers shipping to the European Union (EU) from outside of the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale. + * @param ?string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. + * @param ?string $deemedResellerCategory The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK. + * @param ?ItemBuyerInfo $buyerInfo A single item's buyer information. + * @param ?BuyerRequestedCancel $buyerRequestedCancel Information about whether or not a buyer requested cancellation. + * @param ?string[] $serialNumbers A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. + * @param ?SubstitutionPreferences $substitutionPreferences + * @param ?Measurement $measurement + */ + public function __construct( + public readonly string $asin, + public readonly string $orderItemId, + public readonly int $quantityOrdered, + public readonly ?string $sellerSku = null, + public readonly ?array $associatedItems = null, + public readonly ?string $title = null, + public readonly ?int $quantityShipped = null, + public readonly ?ProductInfoDetail $productInfo = null, + public readonly ?PointsGrantedDetail $pointsGranted = null, + public readonly ?Money $itemPrice = null, + public readonly ?Money $shippingPrice = null, + public readonly ?Money $itemTax = null, + public readonly ?Money $shippingTax = null, + public readonly ?Money $shippingDiscount = null, + public readonly ?Money $shippingDiscountTax = null, + public readonly ?Money $promotionDiscount = null, + public readonly ?Money $promotionDiscountTax = null, + public readonly ?array $promotionIds = null, + public readonly ?Money $codFee = null, + public readonly ?Money $codFeeDiscount = null, + public readonly ?bool $isGift = null, + public readonly ?string $conditionNote = null, + public readonly ?string $conditionId = null, + public readonly ?string $conditionSubtypeId = null, + public readonly ?string $scheduledDeliveryStartDate = null, + public readonly ?string $scheduledDeliveryEndDate = null, + public readonly ?string $priceDesignation = null, + public readonly ?TaxCollection $taxCollection = null, + public readonly ?bool $serialNumberRequired = null, + public readonly ?bool $isTransparency = null, + public readonly ?string $iossNumber = null, + public readonly ?string $storeChainStoreId = null, + public readonly ?string $deemedResellerCategory = null, + public readonly ?ItemBuyerInfo $buyerInfo = null, + public readonly ?BuyerRequestedCancel $buyerRequestedCancel = null, + public readonly ?array $serialNumbers = null, + public readonly ?SubstitutionPreferences $substitutionPreferences = null, + public readonly ?Measurement $measurement = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderItemBuyerInfo.php b/src/Seller/OrdersV0/Dto/OrderItemBuyerInfo.php new file mode 100644 index 000000000..27094b9c7 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderItemBuyerInfo.php @@ -0,0 +1,35 @@ + 'OrderItemId', + 'buyerCustomizedInfo' => 'BuyerCustomizedInfo', + 'giftWrapPrice' => 'GiftWrapPrice', + 'giftWrapTax' => 'GiftWrapTax', + 'giftMessageText' => 'GiftMessageText', + 'giftWrapLevel' => 'GiftWrapLevel', + ]; + + /** + * @param string $orderItemId An Amazon-defined order item identifier. + * @param ?BuyerCustomizedInfoDetail $buyerCustomizedInfo Buyer information for custom orders from the Amazon Custom program. + * @param ?Money $giftWrapPrice The monetary value of the order. + * @param ?Money $giftWrapTax The monetary value of the order. + * @param ?string $giftMessageText A gift message provided by the buyer. + * @param ?string $giftWrapLevel The gift wrap level specified by the buyer. + */ + public function __construct( + public readonly string $orderItemId, + public readonly ?BuyerCustomizedInfoDetail $buyerCustomizedInfo = null, + public readonly ?Money $giftWrapPrice = null, + public readonly ?Money $giftWrapTax = null, + public readonly ?string $giftMessageText = null, + public readonly ?string $giftWrapLevel = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderItems.php b/src/Seller/OrdersV0/Dto/OrderItems.php new file mode 100644 index 000000000..e07dca9dd --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderItems.php @@ -0,0 +1,18 @@ + 'OrderItems', + 'amazonOrderId' => 'AmazonOrderId', + 'nextToken' => 'NextToken', + ]; + + protected static array $complexArrayTypes = ['orderItems' => [OrderItemBuyerInfo::class]]; + + /** + * @param OrderItemBuyerInfo[] $orderItems A single order item's buyer information list. + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + */ + public function __construct( + public readonly array $orderItems, + public readonly string $amazonOrderId, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderItemsList.php b/src/Seller/OrdersV0/Dto/OrderItemsList.php new file mode 100644 index 000000000..06ad814ab --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderItemsList.php @@ -0,0 +1,28 @@ + 'OrderItems', + 'amazonOrderId' => 'AmazonOrderId', + 'nextToken' => 'NextToken', + ]; + + protected static array $complexArrayTypes = ['orderItems' => [OrderItem::class]]; + + /** + * @param OrderItem[] $orderItems A list of order items. + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + */ + public function __construct( + public readonly array $orderItems, + public readonly string $amazonOrderId, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrderRegulatedInfo.php b/src/Seller/OrdersV0/Dto/OrderRegulatedInfo.php new file mode 100644 index 000000000..dc03301a2 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrderRegulatedInfo.php @@ -0,0 +1,29 @@ + 'AmazonOrderId', + 'regulatedInformation' => 'RegulatedInformation', + 'requiresDosageLabel' => 'RequiresDosageLabel', + 'regulatedOrderVerificationStatus' => 'RegulatedOrderVerificationStatus', + ]; + + /** + * @param string $amazonOrderId An Amazon-defined order identifier, in 3-7-7 format. + * @param RegulatedInformation $regulatedInformation The regulated information collected during purchase and used to verify the order. + * @param bool $requiresDosageLabel When true, the order requires attaching a dosage information label when shipped. + * @param RegulatedOrderVerificationStatus $regulatedOrderVerificationStatus The verification status of the order along with associated approval or rejection metadata. + */ + public function __construct( + public readonly string $amazonOrderId, + public readonly RegulatedInformation $regulatedInformation, + public readonly bool $requiresDosageLabel, + public readonly RegulatedOrderVerificationStatus $regulatedOrderVerificationStatus, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/OrdersList.php b/src/Seller/OrdersV0/Dto/OrdersList.php new file mode 100644 index 000000000..1f573ca33 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/OrdersList.php @@ -0,0 +1,31 @@ + 'Orders', + 'nextToken' => 'NextToken', + 'lastUpdatedBefore' => 'LastUpdatedBefore', + 'createdBefore' => 'CreatedBefore', + ]; + + protected static array $complexArrayTypes = ['orders' => [Order::class]]; + + /** + * @param Order[] $orders A list of orders. + * @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page. + * @param ?string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. All dates must be in ISO 8601 format. + * @param ?string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. + */ + public function __construct( + public readonly array $orders, + public readonly ?string $nextToken = null, + public readonly ?string $lastUpdatedBefore = null, + public readonly ?string $createdBefore = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/PackageDetail.php b/src/Seller/OrdersV0/Dto/PackageDetail.php new file mode 100644 index 000000000..9004fb948 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/PackageDetail.php @@ -0,0 +1,32 @@ + [ConfirmShipmentOrderItem::class]]; + + /** + * @param string $packageReferenceId A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. + * @param string $carrierCode Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). + * @param string $trackingNumber The tracking number used to obtain tracking and delivery information. + * @param DateTime $shipDate The shipping date for the package. Must be in ISO-8601 date/time format. + * @param ConfirmShipmentOrderItem[] $orderItems A list of order items. + * @param ?string $carrierName Carrier Name that will deliver the package. Required when carrierCode is "Others" + * @param ?string $shippingMethod Ship method to be used for shipping the order. + * @param ?string $shipFromSupplySourceId The unique identifier of the supply source. + */ + public function __construct( + public readonly string $packageReferenceId, + public readonly string $carrierCode, + public readonly string $trackingNumber, + public readonly \DateTime $shipDate, + public readonly array $orderItems, + public readonly ?string $carrierName = null, + public readonly ?string $shippingMethod = null, + public readonly ?string $shipFromSupplySourceId = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/PaymentExecutionDetailItem.php b/src/Seller/OrdersV0/Dto/PaymentExecutionDetailItem.php new file mode 100644 index 000000000..baf9b9c66 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/PaymentExecutionDetailItem.php @@ -0,0 +1,26 @@ + 'Payment', 'paymentMethod' => 'PaymentMethod']; + + /** + * @param Money $payment The monetary value of the order. + * @param string $paymentMethod A sub-payment method for a COD order. + * + * Possible values: + * * `COD`: Cash On Delivery. + * * `GC`: Gift Card. + * * `PointsAccount`: Amazon Points. + * * `Invoice`: Invoice. + */ + public function __construct( + public readonly Money $payment, + public readonly string $paymentMethod, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/PointsGrantedDetail.php b/src/Seller/OrdersV0/Dto/PointsGrantedDetail.php new file mode 100644 index 000000000..2e03ee64b --- /dev/null +++ b/src/Seller/OrdersV0/Dto/PointsGrantedDetail.php @@ -0,0 +1,23 @@ + 'PointsNumber', + 'pointsMonetaryValue' => 'PointsMonetaryValue', + ]; + + /** + * @param ?int $pointsNumber The number of Amazon Points granted with the purchase of an item. + * @param ?Money $pointsMonetaryValue The monetary value of the order. + */ + public function __construct( + public readonly ?int $pointsNumber = null, + public readonly ?Money $pointsMonetaryValue = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/PreferredDeliveryTime.php b/src/Seller/OrdersV0/Dto/PreferredDeliveryTime.php new file mode 100644 index 000000000..3e21a7b2d --- /dev/null +++ b/src/Seller/OrdersV0/Dto/PreferredDeliveryTime.php @@ -0,0 +1,25 @@ + 'BusinessHours', 'exceptionDates' => 'ExceptionDates']; + + protected static array $complexArrayTypes = [ + 'businessHours' => [BusinessHours::class], + 'exceptionDates' => [ExceptionDates::class], + ]; + + /** + * @param BusinessHours[]|null $businessHours Business hours when the business is open for deliveries. + * @param ExceptionDates[]|null $exceptionDates Dates when the business is closed in the next 30 days. + */ + public function __construct( + public readonly ?array $businessHours = null, + public readonly ?array $exceptionDates = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/ProductInfoDetail.php b/src/Seller/OrdersV0/Dto/ProductInfoDetail.php new file mode 100644 index 000000000..bce59fc53 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/ProductInfoDetail.php @@ -0,0 +1,18 @@ + 'NumberOfItems']; + + /** + * @param ?int $numberOfItems The total number of items that are included in the ASIN. + */ + public function __construct( + public readonly ?int $numberOfItems = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/RegulatedInformation.php b/src/Seller/OrdersV0/Dto/RegulatedInformation.php new file mode 100644 index 000000000..ea675e505 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/RegulatedInformation.php @@ -0,0 +1,20 @@ + 'Fields']; + + protected static array $complexArrayTypes = ['fields' => [RegulatedInformationField::class]]; + + /** + * @param RegulatedInformationField[] $fields A list of regulated information fields as collected from the regulatory form. + */ + public function __construct( + public readonly array $fields, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/RegulatedInformationField.php b/src/Seller/OrdersV0/Dto/RegulatedInformationField.php new file mode 100644 index 000000000..98dacc829 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/RegulatedInformationField.php @@ -0,0 +1,29 @@ + 'FieldId', + 'fieldLabel' => 'FieldLabel', + 'fieldType' => 'FieldType', + 'fieldValue' => 'FieldValue', + ]; + + /** + * @param string $fieldId The unique identifier for the field. + * @param string $fieldLabel The name for the field. + * @param string $fieldType The type of field. + * @param string $fieldValue The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here. + */ + public function __construct( + public readonly string $fieldId, + public readonly string $fieldLabel, + public readonly string $fieldType, + public readonly string $fieldValue, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/RegulatedOrderVerificationStatus.php b/src/Seller/OrdersV0/Dto/RegulatedOrderVerificationStatus.php new file mode 100644 index 000000000..e953c1f0d --- /dev/null +++ b/src/Seller/OrdersV0/Dto/RegulatedOrderVerificationStatus.php @@ -0,0 +1,37 @@ + 'Status', + 'requiresMerchantAction' => 'RequiresMerchantAction', + 'validRejectionReasons' => 'ValidRejectionReasons', + 'rejectionReason' => 'RejectionReason', + 'reviewDate' => 'ReviewDate', + 'externalReviewerId' => 'ExternalReviewerId', + ]; + + protected static array $complexArrayTypes = ['validRejectionReasons' => [RejectionReason::class]]; + + /** + * @param string $status The verification status of the order. + * @param bool $requiresMerchantAction When true, the regulated information provided in the order requires a review by the merchant. + * @param RejectionReason[] $validRejectionReasons A list of valid rejection reasons that may be used to reject the order's regulated information. + * @param ?RejectionReason $rejectionReason The reason for rejecting the order's regulated information. Not present if the order isn't rejected. + * @param ?string $reviewDate The date the order was reviewed. In ISO 8601 date time format. + * @param ?string $externalReviewerId The identifier for the order's regulated information reviewer. + */ + public function __construct( + public readonly string $status, + public readonly bool $requiresMerchantAction, + public readonly array $validRejectionReasons, + public readonly ?RejectionReason $rejectionReason = null, + public readonly ?string $reviewDate = null, + public readonly ?string $externalReviewerId = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/RejectionReason.php b/src/Seller/OrdersV0/Dto/RejectionReason.php new file mode 100644 index 000000000..0a4d5b973 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/RejectionReason.php @@ -0,0 +1,23 @@ + 'RejectionReasonId', + 'rejectionReasonDescription' => 'RejectionReasonDescription', + ]; + + /** + * @param string $rejectionReasonId The unique identifier for the rejection reason. + * @param string $rejectionReasonDescription The description of this rejection reason. + */ + public function __construct( + public readonly string $rejectionReasonId, + public readonly string $rejectionReasonDescription, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/SubstitutionOption.php b/src/Seller/OrdersV0/Dto/SubstitutionOption.php new file mode 100644 index 000000000..1d0a6ad25 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/SubstitutionOption.php @@ -0,0 +1,32 @@ + 'ASIN', + 'quantityOrdered' => 'QuantityOrdered', + 'sellerSku' => 'SellerSKU', + 'title' => 'Title', + 'measurement' => 'Measurement', + ]; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?int $quantityOrdered The number of items to be picked for this substitution option. + * @param ?string $sellerSku The seller stock keeping unit (SKU) of the item. + * @param ?string $title The title of the item. + * @param ?Measurement $measurement + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?int $quantityOrdered = null, + public readonly ?string $sellerSku = null, + public readonly ?string $title = null, + public readonly ?Measurement $measurement = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/SubstitutionPreferences.php b/src/Seller/OrdersV0/Dto/SubstitutionPreferences.php new file mode 100644 index 000000000..353fa94e2 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/SubstitutionPreferences.php @@ -0,0 +1,25 @@ + 'SubstitutionType', + 'substitutionOptions' => 'SubstitutionOptions', + ]; + + protected static array $complexArrayTypes = ['substitutionOptions' => [SubstitutionOption::class]]; + + /** + * @param string $substitutionType The type of substitution that these preferences represent. + * @param SubstitutionOption[]|null $substitutionOptions A collection of substitution options. + */ + public function __construct( + public readonly string $substitutionType, + public readonly ?array $substitutionOptions = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/TaxClassification.php b/src/Seller/OrdersV0/Dto/TaxClassification.php new file mode 100644 index 000000000..a242992a3 --- /dev/null +++ b/src/Seller/OrdersV0/Dto/TaxClassification.php @@ -0,0 +1,20 @@ + 'Name', 'value' => 'Value']; + + /** + * @param ?string $name The type of tax. + * @param ?string $value The buyer's tax identifier. + */ + public function __construct( + public readonly ?string $name = null, + public readonly ?string $value = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/TaxCollection.php b/src/Seller/OrdersV0/Dto/TaxCollection.php new file mode 100644 index 000000000..fa4498fca --- /dev/null +++ b/src/Seller/OrdersV0/Dto/TaxCollection.php @@ -0,0 +1,20 @@ + 'Model', 'responsibleParty' => 'ResponsibleParty']; + + /** + * @param ?string $model The tax collection model applied to the item. + * @param ?string $responsibleParty The party responsible for withholding the taxes and remitting them to the taxing authority. + */ + public function __construct( + public readonly ?string $model = null, + public readonly ?string $responsibleParty = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Dto/UpdateShipmentStatusRequest.php b/src/Seller/OrdersV0/Dto/UpdateShipmentStatusRequest.php new file mode 100644 index 000000000..a343b868c --- /dev/null +++ b/src/Seller/OrdersV0/Dto/UpdateShipmentStatusRequest.php @@ -0,0 +1,20 @@ +orderId}/shipmentConfirmation"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ConfirmShipmentErrorResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 401, 403, 404, 429, 500, 503 => ConfirmShipmentErrorResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->confirmShipmentRequest->toArray(); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrder.php b/src/Seller/OrdersV0/Requests/GetOrder.php new file mode 100644 index 000000000..ecd3a60c5 --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrder.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}"; + } + + public function createDtoFromResponse(Response $response): GetOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrderAddress.php b/src/Seller/OrdersV0/Requests/GetOrderAddress.php new file mode 100644 index 000000000..8047437ef --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrderAddress.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}/address"; + } + + public function createDtoFromResponse(Response $response): GetOrderAddressResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderAddressResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrderBuyerInfo.php b/src/Seller/OrdersV0/Requests/GetOrderBuyerInfo.php new file mode 100644 index 000000000..92ac85089 --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrderBuyerInfo.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}/buyerInfo"; + } + + public function createDtoFromResponse(Response $response): GetOrderBuyerInfoResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderBuyerInfoResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrderItems.php b/src/Seller/OrdersV0/Requests/GetOrderItems.php new file mode 100644 index 000000000..7fe5c2965 --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrderItems.php @@ -0,0 +1,51 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter(['NextToken' => $this->nextToken]); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}/orderItems"; + } + + public function createDtoFromResponse(Response $response): GetOrderItemsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderItemsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrderItemsBuyerInfo.php b/src/Seller/OrdersV0/Requests/GetOrderItemsBuyerInfo.php new file mode 100644 index 000000000..7460de7d3 --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrderItemsBuyerInfo.php @@ -0,0 +1,51 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter(['NextToken' => $this->nextToken]); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}/orderItems/buyerInfo"; + } + + public function createDtoFromResponse(Response $response): GetOrderItemsBuyerInfoResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderItemsBuyerInfoResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrderRegulatedInfo.php b/src/Seller/OrdersV0/Requests/GetOrderRegulatedInfo.php new file mode 100644 index 000000000..b84ad6fd7 --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrderRegulatedInfo.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/orders/v0/orders/{$this->orderId}/regulatedInfo"; + } + + public function createDtoFromResponse(Response $response): GetOrderRegulatedInfoResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrderRegulatedInfoResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/GetOrders.php b/src/Seller/OrdersV0/Requests/GetOrders.php new file mode 100644 index 000000000..ad077c47f --- /dev/null +++ b/src/Seller/OrdersV0/Requests/GetOrders.php @@ -0,0 +1,151 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'MarketplaceIds' => $this->marketplaceIds, + 'CreatedAfter' => $this->createdAfter, + 'CreatedBefore' => $this->createdBefore, + 'LastUpdatedAfter' => $this->lastUpdatedAfter, + 'LastUpdatedBefore' => $this->lastUpdatedBefore, + 'OrderStatuses' => $this->orderStatuses, + 'FulfillmentChannels' => $this->fulfillmentChannels, + 'PaymentMethods' => $this->paymentMethods, + 'BuyerEmail' => $this->buyerEmail, + 'SellerOrderId' => $this->sellerOrderId, + 'MaxResultsPerPage' => $this->maxResultsPerPage, + 'EasyShipShipmentStatuses' => $this->easyShipShipmentStatuses, + 'ElectronicInvoiceStatuses' => $this->electronicInvoiceStatuses, + 'NextToken' => $this->nextToken, + 'AmazonOrderIds' => $this->amazonOrderIds, + 'ActualFulfillmentSupplySourceId' => $this->actualFulfillmentSupplySourceId, + 'IsISPU' => $this->isIspu, + 'StoreChainStoreId' => $this->storeChainStoreId, + 'EarliestDeliveryDateBefore' => $this->earliestDeliveryDateBefore, + 'EarliestDeliveryDateAfter' => $this->earliestDeliveryDateAfter, + 'LatestDeliveryDateBefore' => $this->latestDeliveryDateBefore, + 'LatestDeliveryDateAfter' => $this->latestDeliveryDateAfter, + ]); + } + + public function resolveEndpoint(): string + { + return '/orders/v0/orders'; + } + + public function createDtoFromResponse(Response $response): GetOrdersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 429, 500, 503 => GetOrdersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/OrdersV0/Requests/UpdateShipmentStatus.php b/src/Seller/OrdersV0/Requests/UpdateShipmentStatus.php new file mode 100644 index 000000000..24263b39d --- /dev/null +++ b/src/Seller/OrdersV0/Requests/UpdateShipmentStatus.php @@ -0,0 +1,55 @@ +orderId}/shipment"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|UpdateShipmentStatusErrorResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => UpdateShipmentStatusErrorResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateShipmentStatusRequest->toArray(); + } +} diff --git a/src/Seller/OrdersV0/Requests/UpdateVerificationStatus.php b/src/Seller/OrdersV0/Requests/UpdateVerificationStatus.php new file mode 100644 index 000000000..a3889504a --- /dev/null +++ b/src/Seller/OrdersV0/Requests/UpdateVerificationStatus.php @@ -0,0 +1,55 @@ +orderId}/regulatedInfo"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|UpdateVerificationStatusErrorResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => UpdateVerificationStatusErrorResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateVerificationStatusRequest->toArray(); + } +} diff --git a/src/Seller/OrdersV0/Responses/ConfirmShipmentErrorResponse.php b/src/Seller/OrdersV0/Responses/ConfirmShipmentErrorResponse.php new file mode 100644 index 000000000..879aebf1b --- /dev/null +++ b/src/Seller/OrdersV0/Responses/ConfirmShipmentErrorResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderAddressResponse.php b/src/Seller/OrdersV0/Responses/GetOrderAddressResponse.php new file mode 100644 index 000000000..05544d910 --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderAddressResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderAddress $payload The shipping address for the order. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderAddress $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderBuyerInfoResponse.php b/src/Seller/OrdersV0/Responses/GetOrderBuyerInfoResponse.php new file mode 100644 index 000000000..e9522c197 --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderBuyerInfoResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderBuyerInfo $payload Buyer information for an order. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderBuyerInfo $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderItemsBuyerInfoResponse.php b/src/Seller/OrdersV0/Responses/GetOrderItemsBuyerInfoResponse.php new file mode 100644 index 000000000..66eabcc26 --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderItemsBuyerInfoResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderItemsBuyerInfoList $payload A single order item's buyer information list with the order ID. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderItemsBuyerInfoList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderItemsResponse.php b/src/Seller/OrdersV0/Responses/GetOrderItemsResponse.php new file mode 100644 index 000000000..3e4a59d2a --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderItemsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderItemsList $payload The order items list along with the order ID. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderItemsList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderRegulatedInfoResponse.php b/src/Seller/OrdersV0/Responses/GetOrderRegulatedInfoResponse.php new file mode 100644 index 000000000..0fbeb6e7a --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderRegulatedInfoResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderRegulatedInfo $payload The order's regulated information along with its verification status. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderRegulatedInfo $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrderResponse.php b/src/Seller/OrdersV0/Responses/GetOrderResponse.php new file mode 100644 index 000000000..30f26295d --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrderResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Order $payload Order information. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Order $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/GetOrdersResponse.php b/src/Seller/OrdersV0/Responses/GetOrdersResponse.php new file mode 100644 index 000000000..0c52737cb --- /dev/null +++ b/src/Seller/OrdersV0/Responses/GetOrdersResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrdersList $payload A list of orders along with additional information to make subsequent API calls. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrdersList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/UpdateShipmentStatusErrorResponse.php b/src/Seller/OrdersV0/Responses/UpdateShipmentStatusErrorResponse.php new file mode 100644 index 000000000..021ca7726 --- /dev/null +++ b/src/Seller/OrdersV0/Responses/UpdateShipmentStatusErrorResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/OrdersV0/Responses/UpdateVerificationStatusErrorResponse.php b/src/Seller/OrdersV0/Responses/UpdateVerificationStatusErrorResponse.php new file mode 100644 index 000000000..dd7c5d93c --- /dev/null +++ b/src/Seller/OrdersV0/Responses/UpdateVerificationStatusErrorResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Api.php b/src/Seller/ProductFeesV0/Api.php new file mode 100644 index 000000000..094c407f1 --- /dev/null +++ b/src/Seller/ProductFeesV0/Api.php @@ -0,0 +1,47 @@ +connector->send($request); + } + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param GetMyFeesEstimateRequest $getMyFeesEstimateRequest Request schema. + */ + public function getMyFeesEstimateForAsin(string $asin, GetMyFeesEstimateRequest $getMyFeesEstimateRequest): Response + { + $request = new GetMyFeesEstimateForAsin($asin, $getMyFeesEstimateRequest); + + return $this->connector->send($request); + } + + /** + * @param FeesEstimateByIdRequest[] $getMyFeesEstimatesRequest Request for estimated fees for a list of products. + */ + public function getMyFeesEstimates(array $getMyFeesEstimatesRequest): Response + { + $request = new GetMyFeesEstimates($getMyFeesEstimatesRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ProductFeesV0/Dto/Error.php b/src/Seller/ProductFeesV0/Dto/Error.php new file mode 100644 index 000000000..7c2096e96 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'FeeType', + 'feeAmount' => 'FeeAmount', + 'finalFee' => 'FinalFee', + 'feePromotion' => 'FeePromotion', + 'taxAmount' => 'TaxAmount', + 'includedFeeDetailList' => 'IncludedFeeDetailList', + ]; + + protected static array $complexArrayTypes = ['includedFeeDetailList' => [IncludedFeeDetail::class]]; + + /** + * @param string $feeType The type of fee charged to a seller. + * @param ?MoneyType $feePromotion + * @param ?MoneyType $taxAmount + * @param IncludedFeeDetail[]|null $includedFeeDetailList A list of other fees that contribute to a given fee. + */ + public function __construct( + public readonly string $feeType, + public readonly MoneyType $feeAmount, + public readonly MoneyType $finalFee, + public readonly ?MoneyType $feePromotion = null, + public readonly ?MoneyType $taxAmount = null, + public readonly ?array $includedFeeDetailList = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimate.php b/src/Seller/ProductFeesV0/Dto/FeesEstimate.php new file mode 100644 index 000000000..48b3b0dcf --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimate.php @@ -0,0 +1,28 @@ + 'TimeOfFeesEstimation', + 'totalFeesEstimate' => 'TotalFeesEstimate', + 'feeDetailList' => 'FeeDetailList', + ]; + + protected static array $complexArrayTypes = ['feeDetailList' => [FeeDetail::class]]; + + /** + * @param DateTime $timeOfFeesEstimation The time at which the fees were estimated. This defaults to the time the request is made. + * @param ?MoneyType $totalFeesEstimate + * @param FeeDetail[]|null $feeDetailList A list of other fees that contribute to a given fee. + */ + public function __construct( + public readonly \DateTime $timeOfFeesEstimation, + public readonly ?MoneyType $totalFeesEstimate = null, + public readonly ?array $feeDetailList = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimateByIdRequest.php b/src/Seller/ProductFeesV0/Dto/FeesEstimateByIdRequest.php new file mode 100644 index 000000000..bba4737c9 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimateByIdRequest.php @@ -0,0 +1,26 @@ + 'IdType', + 'idValue' => 'IdValue', + 'feesEstimateRequest' => 'FeesEstimateRequest', + ]; + + /** + * @param string $idType The type of product identifier used in a `FeesEstimateByIdRequest`. + * @param string $idValue The item identifier. + * @param ?FeesEstimateRequest $feesEstimateRequest A product, marketplace, and proposed price used to request estimated fees. + */ + public function __construct( + public readonly string $idType, + public readonly string $idValue, + public readonly ?FeesEstimateRequest $feesEstimateRequest = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimateError.php b/src/Seller/ProductFeesV0/Dto/FeesEstimateError.php new file mode 100644 index 000000000..f139865ff --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimateError.php @@ -0,0 +1,29 @@ + 'Type', + 'code' => 'Code', + 'message' => 'Message', + 'detail' => 'Detail', + ]; + + /** + * @param string $type An error type, identifying either the receiver or the sender as the originator of the error. + * @param string $code An error code that identifies the type of error that occurred. + * @param string $message A message that describes the error condition. + * @param mixed[] $detail + */ + public function __construct( + public readonly string $type, + public readonly string $code, + public readonly string $message, + public readonly array $detail, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimateIdentifier.php b/src/Seller/ProductFeesV0/Dto/FeesEstimateIdentifier.php new file mode 100644 index 000000000..65b8f59b5 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimateIdentifier.php @@ -0,0 +1,41 @@ + 'MarketplaceId', + 'sellerId' => 'SellerId', + 'idType' => 'IdType', + 'idValue' => 'IdValue', + 'isAmazonFulfilled' => 'IsAmazonFulfilled', + 'priceToEstimateFees' => 'PriceToEstimateFees', + 'sellerInputIdentifier' => 'SellerInputIdentifier', + 'optionalFulfillmentProgram' => 'OptionalFulfillmentProgram', + ]; + + /** + * @param ?string $marketplaceId A marketplace identifier. + * @param ?string $sellerId The seller identifier. + * @param ?string $idType The type of product identifier used in a `FeesEstimateByIdRequest`. + * @param ?string $idValue The item identifier. + * @param ?bool $isAmazonFulfilled When true, the offer is fulfilled by Amazon. + * @param ?PriceToEstimateFees $priceToEstimateFees Price information for an item, used to estimate fees. + * @param ?string $sellerInputIdentifier A unique identifier provided by the caller to track this request. + * @param ?string $optionalFulfillmentProgram An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true). + */ + public function __construct( + public readonly ?string $marketplaceId = null, + public readonly ?string $sellerId = null, + public readonly ?string $idType = null, + public readonly ?string $idValue = null, + public readonly ?bool $isAmazonFulfilled = null, + public readonly ?PriceToEstimateFees $priceToEstimateFees = null, + public readonly ?string $sellerInputIdentifier = null, + public readonly ?string $optionalFulfillmentProgram = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimateRequest.php b/src/Seller/ProductFeesV0/Dto/FeesEstimateRequest.php new file mode 100644 index 000000000..c00d9d40c --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimateRequest.php @@ -0,0 +1,32 @@ + 'MarketplaceId', + 'priceToEstimateFees' => 'PriceToEstimateFees', + 'identifier' => 'Identifier', + 'isAmazonFulfilled' => 'IsAmazonFulfilled', + 'optionalFulfillmentProgram' => 'OptionalFulfillmentProgram', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param PriceToEstimateFees $priceToEstimateFees Price information for an item, used to estimate fees. + * @param string $identifier A unique identifier provided by the caller to track this request. + * @param ?bool $isAmazonFulfilled When true, the offer is fulfilled by Amazon. + * @param ?string $optionalFulfillmentProgram An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true). + */ + public function __construct( + public readonly string $marketplaceId, + public readonly PriceToEstimateFees $priceToEstimateFees, + public readonly string $identifier, + public readonly ?bool $isAmazonFulfilled = null, + public readonly ?string $optionalFulfillmentProgram = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/FeesEstimateResult.php b/src/Seller/ProductFeesV0/Dto/FeesEstimateResult.php new file mode 100644 index 000000000..922eb5682 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/FeesEstimateResult.php @@ -0,0 +1,29 @@ + 'Status', + 'feesEstimateIdentifier' => 'FeesEstimateIdentifier', + 'feesEstimate' => 'FeesEstimate', + 'error' => 'Error', + ]; + + /** + * @param ?string $status The status of the fee request. Possible values: Success, ClientError, ServiceError. + * @param ?FeesEstimateIdentifier $feesEstimateIdentifier An item identifier, marketplace, time of request, and other details that identify an estimate. + * @param ?FeesEstimate $feesEstimate The total estimated fees for an item and a list of details. + * @param ?FeesEstimateError $error An unexpected error occurred during this operation. + */ + public function __construct( + public readonly ?string $status = null, + public readonly ?FeesEstimateIdentifier $feesEstimateIdentifier = null, + public readonly ?FeesEstimate $feesEstimate = null, + public readonly ?FeesEstimateError $error = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateRequest.php b/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateRequest.php new file mode 100644 index 000000000..98e0e9415 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateRequest.php @@ -0,0 +1,18 @@ + 'FeesEstimateRequest']; + + /** + * @param ?FeesEstimateRequest $feesEstimateRequest A product, marketplace, and proposed price used to request estimated fees. + */ + public function __construct( + public readonly ?FeesEstimateRequest $feesEstimateRequest = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateResult.php b/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateResult.php new file mode 100644 index 000000000..15491dc7c --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/GetMyFeesEstimateResult.php @@ -0,0 +1,18 @@ + 'FeesEstimateResult']; + + /** + * @param ?FeesEstimateResult $feesEstimateResult An item identifier and the estimated fees for the item. + */ + public function __construct( + public readonly ?FeesEstimateResult $feesEstimateResult = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/IncludedFeeDetail.php b/src/Seller/ProductFeesV0/Dto/IncludedFeeDetail.php new file mode 100644 index 000000000..d9859048f --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/IncludedFeeDetail.php @@ -0,0 +1,30 @@ + 'FeeType', + 'feeAmount' => 'FeeAmount', + 'finalFee' => 'FinalFee', + 'feePromotion' => 'FeePromotion', + 'taxAmount' => 'TaxAmount', + ]; + + /** + * @param string $feeType The type of fee charged to a seller. + * @param ?MoneyType $feePromotion + * @param ?MoneyType $taxAmount + */ + public function __construct( + public readonly string $feeType, + public readonly MoneyType $feeAmount, + public readonly MoneyType $finalFee, + public readonly ?MoneyType $feePromotion = null, + public readonly ?MoneyType $taxAmount = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/MoneyType.php b/src/Seller/ProductFeesV0/Dto/MoneyType.php new file mode 100644 index 000000000..9f5d2458b --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/MoneyType.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'amount' => 'Amount']; + + /** + * @param ?string $currencyCode The currency code in ISO 4217 format. + * @param ?float $amount The monetary value. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?float $amount = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/Points.php b/src/Seller/ProductFeesV0/Dto/Points.php new file mode 100644 index 000000000..15e1aae2b --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/Points.php @@ -0,0 +1,23 @@ + 'PointsNumber', + 'pointsMonetaryValue' => 'PointsMonetaryValue', + ]; + + /** + * @param ?int $pointsNumber + * @param ?MoneyType $pointsMonetaryValue + */ + public function __construct( + public readonly ?int $pointsNumber = null, + public readonly ?MoneyType $pointsMonetaryValue = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Dto/PriceToEstimateFees.php b/src/Seller/ProductFeesV0/Dto/PriceToEstimateFees.php new file mode 100644 index 000000000..bc54a9202 --- /dev/null +++ b/src/Seller/ProductFeesV0/Dto/PriceToEstimateFees.php @@ -0,0 +1,25 @@ + 'ListingPrice', + 'shipping' => 'Shipping', + 'points' => 'Points', + ]; + + /** + * @param ?MoneyType $shipping + * @param ?Points $points + */ + public function __construct( + public readonly MoneyType $listingPrice, + public readonly ?MoneyType $shipping = null, + public readonly ?Points $points = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForAsin.php b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForAsin.php new file mode 100644 index 000000000..dd49f69d2 --- /dev/null +++ b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForAsin.php @@ -0,0 +1,53 @@ +asin}/feesEstimate"; + } + + public function createDtoFromResponse(Response $response): GetMyFeesEstimateResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetMyFeesEstimateResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getMyFeesEstimateRequest->toArray(); + } +} diff --git a/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForSku.php b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForSku.php new file mode 100644 index 000000000..f514e933f --- /dev/null +++ b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForSku.php @@ -0,0 +1,53 @@ +sellerSku}/feesEstimate"; + } + + public function createDtoFromResponse(Response $response): GetMyFeesEstimateResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetMyFeesEstimateResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getMyFeesEstimateRequest->toArray(); + } +} diff --git a/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimates.php b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimates.php new file mode 100644 index 000000000..437273bed --- /dev/null +++ b/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimates.php @@ -0,0 +1,52 @@ +status(); + $responseCls = match ($status) { + 200 => GetMyFeesEstimatesResponse::class, + 400, 401, 403, 404, 429, 500, 503 => GetMyFeesEstimatesErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getMyFeesEstimatesRequest; + } +} diff --git a/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimateResponse.php b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimateResponse.php new file mode 100644 index 000000000..d49f56be0 --- /dev/null +++ b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimateResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetMyFeesEstimateResult $payload Response schema. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetMyFeesEstimateResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesErrorList.php b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesErrorList.php new file mode 100644 index 000000000..d4f6ba6eb --- /dev/null +++ b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesResponse.php b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesResponse.php new file mode 100644 index 000000000..5b7321db5 --- /dev/null +++ b/src/Seller/ProductFeesV0/Responses/GetMyFeesEstimatesResponse.php @@ -0,0 +1,19 @@ + [FeesEstimateResult::class]]; + + /** + * @param FeesEstimateResult[] $getMyFeesEstimatesResponse Estimated fees for a list of products. + */ + public function __construct( + public readonly array $getMyFeesEstimatesResponse, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Api.php b/src/Seller/ProductPricingV0/Api.php new file mode 100644 index 000000000..9efbb8afa --- /dev/null +++ b/src/Seller/ProductPricingV0/Api.php @@ -0,0 +1,111 @@ +connector->send($request); + } + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemType 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. + * @param ?array $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. + * @param ?array $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. + * @param ?string $customerType Indicates whether to request pricing information from the point of view of Consumer or Business buyers. Default is Consumer. + */ + public function getCompetitivePricing( + string $marketplaceId, + string $itemType, + ?array $asins = null, + ?array $skus = null, + ?string $customerType = null, + ): Response { + $request = new GetCompetitivePricing($marketplaceId, $itemType, $asins, $skus, $customerType); + + return $this->connector->send($request); + } + + /** + * @param string $sellerSku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function getListingOffers( + string $sellerSku, + string $marketplaceId, + string $itemCondition, + ?string $customerType = null, + ): Response { + $request = new GetListingOffers($sellerSku, $marketplaceId, $itemCondition, $customerType); + + return $this->connector->send($request); + } + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function getItemOffers( + string $asin, + string $marketplaceId, + string $itemCondition, + ?string $customerType = null, + ): Response { + $request = new GetItemOffers($asin, $marketplaceId, $itemCondition, $customerType); + + return $this->connector->send($request); + } + + /** + * @param GetItemOffersBatchRequest $getItemOffersBatchRequest The request associated with the `getItemOffersBatch` API call. + */ + public function getItemOffersBatch(GetItemOffersBatchRequest $getItemOffersBatchRequest): Response + { + $request = new GetItemOffersBatch($getItemOffersBatchRequest); + + return $this->connector->send($request); + } + + /** + * @param GetListingOffersBatchRequest $getListingOffersBatchRequest The request associated with the `getListingOffersBatch` API call. + */ + public function getListingOffersBatch(GetListingOffersBatchRequest $getListingOffersBatchRequest): Response + { + $request = new GetListingOffersBatch($getListingOffersBatchRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ProductPricingV0/Dto/AsinIdentifier.php b/src/Seller/ProductPricingV0/Dto/AsinIdentifier.php new file mode 100644 index 000000000..c8e19d795 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/AsinIdentifier.php @@ -0,0 +1,20 @@ + 'MarketplaceId', 'asin' => 'ASIN']; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $asin, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/BatchOffersRequestParams.php b/src/Seller/ProductPricingV0/Dto/BatchOffersRequestParams.php new file mode 100644 index 000000000..941929f3d --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/BatchOffersRequestParams.php @@ -0,0 +1,26 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'customerType' => 'CustomerType', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly ?string $customerType = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/BatchOffersResponse.php b/src/Seller/ProductPricingV0/Dto/BatchOffersResponse.php new file mode 100644 index 000000000..a9a5e231a --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/BatchOffersResponse.php @@ -0,0 +1,21 @@ + 'LandedPrice', + 'listingPrice' => 'ListingPrice', + 'shipping' => 'Shipping', + 'points' => 'Points', + ]; + + /** + * @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. + * @param ?string $offerType + * @param ?int $quantityTier Indicates at what quantity this price becomes active. + * @param ?string $quantityDiscountType + * @param ?Points $points + * @param ?string $sellerId The seller identifier for the offer. + */ + public function __construct( + public readonly string $condition, + public readonly MoneyType $landedPrice, + public readonly MoneyType $listingPrice, + public readonly MoneyType $shipping, + public readonly ?string $offerType = null, + public readonly ?int $quantityTier = null, + public readonly ?string $quantityDiscountType = null, + public readonly ?Points $points = null, + public readonly ?string $sellerId = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/CompetitivePriceType.php b/src/Seller/ProductPricingV0/Dto/CompetitivePriceType.php new file mode 100644 index 000000000..ce6a01d1a --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/CompetitivePriceType.php @@ -0,0 +1,38 @@ + 'CompetitivePriceId', 'price' => 'Price']; + + /** + * @param string $competitivePriceId The pricing model for each price that is returned. + * + * Possible values: + * + * * 1 - New Buy Box Price. + * * 2 - Used Buy Box Price. + * @param ?string $condition Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club. + * @param ?string $subcondition Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. + * @param ?string $offerType + * @param ?int $quantityTier Indicates at what quantity this price becomes active. + * @param ?string $quantityDiscountType + * @param ?string $sellerId The seller identifier for the offer. + * @param ?bool $belongsToRequester Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false. + */ + public function __construct( + public readonly string $competitivePriceId, + public readonly PriceType $price, + public readonly ?string $condition = null, + public readonly ?string $subcondition = null, + public readonly ?string $offerType = null, + public readonly ?int $quantityTier = null, + public readonly ?string $quantityDiscountType = null, + public readonly ?string $sellerId = null, + public readonly ?bool $belongsToRequester = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/CompetitivePricingType.php b/src/Seller/ProductPricingV0/Dto/CompetitivePricingType.php new file mode 100644 index 000000000..796d486d4 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/CompetitivePricingType.php @@ -0,0 +1,31 @@ + 'CompetitivePrices', + 'numberOfOfferListings' => 'NumberOfOfferListings', + 'tradeInValue' => 'TradeInValue', + ]; + + protected static array $complexArrayTypes = [ + 'competitivePrices' => [CompetitivePriceType::class], + 'numberOfOfferListings' => [OfferListingCountType::class], + ]; + + /** + * @param CompetitivePriceType[] $competitivePrices A list of competitive pricing information. + * @param OfferListingCountType[] $numberOfOfferListings 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. + * @param ?MoneyType $tradeInValue + */ + public function __construct( + public readonly array $competitivePrices, + public readonly array $numberOfOfferListings, + public readonly ?MoneyType $tradeInValue = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/DetailedShippingTimeType.php b/src/Seller/ProductPricingV0/Dto/DetailedShippingTimeType.php new file mode 100644 index 000000000..fd92a22f5 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/DetailedShippingTimeType.php @@ -0,0 +1,22 @@ + [ItemOffersRequest::class]]; + + /** + * @param ItemOffersRequest[]|null $requests A list of `getListingOffers` batched requests to run. + */ + public function __construct( + public readonly ?array $requests = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/GetListingOffersBatchRequest.php b/src/Seller/ProductPricingV0/Dto/GetListingOffersBatchRequest.php new file mode 100644 index 000000000..898ecffd0 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/GetListingOffersBatchRequest.php @@ -0,0 +1,18 @@ + [ListingOffersRequest::class]]; + + /** + * @param ListingOffersRequest[]|null $requests A list of `getListingOffers` batched requests to run. + */ + public function __construct( + public readonly ?array $requests = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/GetOffersHttpStatusLine.php b/src/Seller/ProductPricingV0/Dto/GetOffersHttpStatusLine.php new file mode 100644 index 000000000..0b9fe7ae4 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/GetOffersHttpStatusLine.php @@ -0,0 +1,18 @@ + 'MarketplaceID', + 'itemCondition' => 'ItemCondition', + 'identifier' => 'Identifier', + 'summary' => 'Summary', + 'offers' => 'Offers', + 'asin' => 'ASIN', + 'sku' => 'SKU', + ]; + + protected static array $complexArrayTypes = ['offers' => [OfferDetail::class]]; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $itemCondition Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club. + * @param string $status The status of the operation. + * @param ItemIdentifier $identifier Information that identifies an item. + * @param Summary $summary Contains price information about the product, including the LowestPrices and BuyBoxPrices, the ListPrice, the SuggestedLowerPricePlusShipping, and NumberOfOffers and NumberOfBuyBoxEligibleOffers. + * @param OfferDetail[] $offers + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $sku The stock keeping unit (SKU) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly string $status, + public readonly ItemIdentifier $identifier, + public readonly Summary $summary, + public readonly array $offers, + public readonly ?string $asin = null, + public readonly ?string $sku = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/HttpResponseHeaders.php b/src/Seller/ProductPricingV0/Dto/HttpResponseHeaders.php new file mode 100644 index 000000000..8b7567bab --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/HttpResponseHeaders.php @@ -0,0 +1,26 @@ + 'Date', 'xAmznRequestId' => 'x-amzn-RequestId']; + + /** + * @param ?string $date The timestamp that the API request was received. For more information, consult [RFC 2616 Section 14](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + * @param ?string $xAmznRequestId Unique request reference ID. + * @param ?string $additionalProperties + */ + public function __construct( + public readonly ?string $date = null, + public readonly ?string $xAmznRequestId = null, + ?string ...$additionalProperties, + ) { + $this->additionalProperties = $additionalProperties; + } +} diff --git a/src/Seller/ProductPricingV0/Dto/IdentifierType.php b/src/Seller/ProductPricingV0/Dto/IdentifierType.php new file mode 100644 index 000000000..d7fe58c93 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/IdentifierType.php @@ -0,0 +1,19 @@ + 'MarketplaceASIN', 'skuIdentifier' => 'SKUIdentifier']; + + /** + * @param ?SellerSkuIdentifier $skuIdentifier + */ + public function __construct( + public readonly AsinIdentifier $marketplaceAsin, + public readonly ?SellerSkuIdentifier $skuIdentifier = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ItemIdentifier.php b/src/Seller/ProductPricingV0/Dto/ItemIdentifier.php new file mode 100644 index 000000000..3561356d4 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ItemIdentifier.php @@ -0,0 +1,29 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'asin' => 'ASIN', + 'sellerSku' => 'SellerSKU', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace from which prices are returned. + * @param string $itemCondition Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $sellerSku The seller stock keeping unit (SKU) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly ?string $asin = null, + public readonly ?string $sellerSku = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ItemOffersRequest.php b/src/Seller/ProductPricingV0/Dto/ItemOffersRequest.php new file mode 100644 index 000000000..70ac719fa --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ItemOffersRequest.php @@ -0,0 +1,40 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'customerType' => 'CustomerType', + ]; + + /** + * @param string $uri The resource path of the operation you are calling in batch without any query parameters. + * + * If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`. + * + * **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` + * + * If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`. + * + * **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` + * @param string $method The HTTP method associated with the individual APIs being called as part of the batch request. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string[] $headers A mapping of additional HTTP headers to send/receive for the individual batch request. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function __construct( + public readonly string $uri, + public readonly string $method, + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly ?array $headers = null, + public readonly ?string $customerType = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ItemOffersRequestParams.php b/src/Seller/ProductPricingV0/Dto/ItemOffersRequestParams.php new file mode 100644 index 000000000..90af311d0 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ItemOffersRequestParams.php @@ -0,0 +1,29 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'customerType' => 'CustomerType', + 'asin' => 'Asin', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. This is the same Asin passed as a request parameter. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly ?string $customerType = null, + public readonly ?string $asin = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ItemOffersResponse.php b/src/Seller/ProductPricingV0/Dto/ItemOffersResponse.php new file mode 100644 index 000000000..6d8908fab --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ItemOffersResponse.php @@ -0,0 +1,22 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'customerType' => 'CustomerType', + ]; + + /** + * @param string $uri The resource path of the operation you are calling in batch without any query parameters. + * + * If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`. + * + * **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers` + * + * If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`. + * + * **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers` + * @param string $method The HTTP method associated with the individual APIs being called as part of the batch request. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param ?string[] $headers A mapping of additional HTTP headers to send/receive for the individual batch request. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function __construct( + public readonly string $uri, + public readonly string $method, + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly ?array $headers = null, + public readonly ?string $customerType = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ListingOffersRequestParams.php b/src/Seller/ProductPricingV0/Dto/ListingOffersRequestParams.php new file mode 100644 index 000000000..94aab7eed --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ListingOffersRequestParams.php @@ -0,0 +1,29 @@ + 'MarketplaceId', + 'itemCondition' => 'ItemCondition', + 'sellerSku' => 'SellerSKU', + 'customerType' => 'CustomerType', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which prices are returned. + * @param string $itemCondition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. + * @param string $sellerSku The seller stock keeping unit (SKU) of the item. This is the same SKU passed as a path parameter. + * @param ?string $customerType Indicates whether to request Consumer or Business offers. Default is Consumer. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $itemCondition, + public readonly string $sellerSku, + public readonly ?string $customerType = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ListingOffersResponse.php b/src/Seller/ProductPricingV0/Dto/ListingOffersResponse.php new file mode 100644 index 000000000..c9e392345 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ListingOffersResponse.php @@ -0,0 +1,23 @@ + 'ListingPrice', + 'landedPrice' => 'LandedPrice', + 'shipping' => 'Shipping', + 'points' => 'Points', + ]; + + /** + * @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. + * @param string $fulfillmentChannel Indicates whether the item is fulfilled by Amazon or by the seller. + * @param ?string $offerType + * @param ?int $quantityTier Indicates at what quantity this price becomes active. + * @param ?string $quantityDiscountType + * @param ?MoneyType $landedPrice + * @param ?MoneyType $shipping + * @param ?Points $points + */ + public function __construct( + public readonly string $condition, + public readonly string $fulfillmentChannel, + public readonly MoneyType $listingPrice, + public readonly ?string $offerType = null, + public readonly ?int $quantityTier = null, + public readonly ?string $quantityDiscountType = null, + public readonly ?MoneyType $landedPrice = null, + public readonly ?MoneyType $shipping = null, + public readonly ?Points $points = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/MoneyType.php b/src/Seller/ProductPricingV0/Dto/MoneyType.php new file mode 100644 index 000000000..f066104d3 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/MoneyType.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'amount' => 'Amount']; + + /** + * @param ?string $currencyCode The currency code in ISO 4217 format. + * @param ?float $amount The monetary value. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?float $amount = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/OfferCountType.php b/src/Seller/ProductPricingV0/Dto/OfferCountType.php new file mode 100644 index 000000000..6d3bd6316 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/OfferCountType.php @@ -0,0 +1,22 @@ + 'OfferCount']; + + /** + * @param ?string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club. + * @param ?string $fulfillmentChannel Indicates whether the item is fulfilled by Amazon or by the seller (merchant). + * @param ?int $offerCount The number of offers in a fulfillment channel that meet a specific condition. + */ + public function __construct( + public readonly ?string $condition = null, + public readonly ?string $fulfillmentChannel = null, + public readonly ?int $offerCount = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/OfferDetail.php b/src/Seller/ProductPricingV0/Dto/OfferDetail.php new file mode 100644 index 000000000..eb30e12da --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/OfferDetail.php @@ -0,0 +1,63 @@ + 'SubCondition', + 'shippingTime' => 'ShippingTime', + 'listingPrice' => 'ListingPrice', + 'shipping' => 'Shipping', + 'isFulfilledByAmazon' => 'IsFulfilledByAmazon', + 'myOffer' => 'MyOffer', + 'sellerId' => 'SellerId', + 'conditionNotes' => 'ConditionNotes', + 'sellerFeedbackRating' => 'SellerFeedbackRating', + 'points' => 'Points', + 'shipsFrom' => 'ShipsFrom', + 'primeInformation' => 'PrimeInformation', + 'isBuyBoxWinner' => 'IsBuyBoxWinner', + 'isFeaturedMerchant' => 'IsFeaturedMerchant', + ]; + + protected static array $complexArrayTypes = ['quantityDiscountPrices' => [QuantityDiscountPriceType::class]]; + + /** + * @param string $subCondition The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. + * @param DetailedShippingTimeType $shippingTime The time range in which an item will likely be shipped once an order has been placed. + * @param bool $isFulfilledByAmazon When true, the offer is fulfilled by Amazon. + * @param ?bool $myOffer When true, this is the seller's offer. + * @param ?string $offerType + * @param ?string $sellerId The seller identifier for the offer. + * @param ?string $conditionNotes Information about the condition of the item. + * @param ?SellerFeedbackType $sellerFeedbackRating Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received. + * @param QuantityDiscountPriceType[]|null $quantityDiscountPrices + * @param ?Points $points + * @param ?ShipsFromType $shipsFrom The state and country from where the item is shipped. + * @param ?PrimeInformationType $primeInformation Amazon Prime information. + * @param ?bool $isBuyBoxWinner When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime. + * @param ?bool $isFeaturedMerchant When true, the seller of the item is eligible to win the Buy Box. + */ + public function __construct( + public readonly string $subCondition, + public readonly DetailedShippingTimeType $shippingTime, + public readonly MoneyType $listingPrice, + public readonly MoneyType $shipping, + public readonly bool $isFulfilledByAmazon, + public readonly ?bool $myOffer = null, + public readonly ?string $offerType = null, + public readonly ?string $sellerId = null, + public readonly ?string $conditionNotes = null, + public readonly ?SellerFeedbackType $sellerFeedbackRating = null, + public readonly ?array $quantityDiscountPrices = null, + public readonly ?Points $points = null, + public readonly ?ShipsFromType $shipsFrom = null, + public readonly ?PrimeInformationType $primeInformation = null, + public readonly ?bool $isBuyBoxWinner = null, + public readonly ?bool $isFeaturedMerchant = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/OfferListingCountType.php b/src/Seller/ProductPricingV0/Dto/OfferListingCountType.php new file mode 100644 index 000000000..9a69a03ac --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/OfferListingCountType.php @@ -0,0 +1,20 @@ + 'Count']; + + /** + * @param int $count The number of offer listings. + * @param string $condition The condition of the item. + */ + public function __construct( + public readonly int $count, + public readonly string $condition, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/OfferType.php b/src/Seller/ProductPricingV0/Dto/OfferType.php new file mode 100644 index 000000000..b6082a99c --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/OfferType.php @@ -0,0 +1,44 @@ + 'BuyingPrice', + 'regularPrice' => 'RegularPrice', + 'fulfillmentChannel' => 'FulfillmentChannel', + 'itemCondition' => 'ItemCondition', + 'itemSubCondition' => 'ItemSubCondition', + 'sellerSku' => 'SellerSKU', + ]; + + protected static array $complexArrayTypes = ['quantityDiscountPrices' => [QuantityDiscountPriceType::class]]; + + /** + * @param string $fulfillmentChannel The fulfillment channel for the offer listing. Possible values: + * + * * Amazon - Fulfilled by Amazon. + * * Merchant - Fulfilled by the seller. + * @param string $itemCondition The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club. + * @param string $itemSubCondition The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other. + * @param string $sellerSku The seller stock keeping unit (SKU) of the item. + * @param ?string $offerType + * @param ?MoneyType $businessPrice + * @param QuantityDiscountPriceType[]|null $quantityDiscountPrices + */ + public function __construct( + public readonly PriceType $buyingPrice, + public readonly MoneyType $regularPrice, + public readonly string $fulfillmentChannel, + public readonly string $itemCondition, + public readonly string $itemSubCondition, + public readonly string $sellerSku, + public readonly ?string $offerType = null, + public readonly ?MoneyType $businessPrice = null, + public readonly ?array $quantityDiscountPrices = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/Points.php b/src/Seller/ProductPricingV0/Dto/Points.php new file mode 100644 index 000000000..417b25f10 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/Points.php @@ -0,0 +1,23 @@ + 'PointsNumber', + 'pointsMonetaryValue' => 'PointsMonetaryValue', + ]; + + /** + * @param ?int $pointsNumber The number of points. + * @param ?MoneyType $pointsMonetaryValue + */ + public function __construct( + public readonly ?int $pointsNumber = null, + public readonly ?MoneyType $pointsMonetaryValue = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/Price.php b/src/Seller/ProductPricingV0/Dto/Price.php new file mode 100644 index 000000000..f8482c83a --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/Price.php @@ -0,0 +1,24 @@ + 'SellerSKU', 'asin' => 'ASIN', 'product' => 'Product']; + + /** + * @param string $status The status of the operation. + * @param ?string $sellerSku The seller stock keeping unit (SKU) of the item. + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?Product $product An item. + */ + public function __construct( + public readonly string $status, + public readonly ?string $sellerSku = null, + public readonly ?string $asin = null, + public readonly ?Product $product = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/PriceType.php b/src/Seller/ProductPricingV0/Dto/PriceType.php new file mode 100644 index 000000000..f75d48332 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/PriceType.php @@ -0,0 +1,28 @@ + 'ListingPrice', + 'landedPrice' => 'LandedPrice', + 'shipping' => 'Shipping', + 'points' => 'Points', + ]; + + /** + * @param ?MoneyType $landedPrice + * @param ?MoneyType $shipping + * @param ?Points $points + */ + public function __construct( + public readonly MoneyType $listingPrice, + public readonly ?MoneyType $landedPrice = null, + public readonly ?MoneyType $shipping = null, + public readonly ?Points $points = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/PrimeInformationType.php b/src/Seller/ProductPricingV0/Dto/PrimeInformationType.php new file mode 100644 index 000000000..9d58d2eb9 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/PrimeInformationType.php @@ -0,0 +1,20 @@ + 'IsPrime', 'isNationalPrime' => 'IsNationalPrime']; + + /** + * @param bool $isPrime Indicates whether the offer is an Amazon Prime offer. + * @param bool $isNationalPrime Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace where it is listed. + */ + public function __construct( + public readonly bool $isPrime, + public readonly bool $isNationalPrime, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/Product.php b/src/Seller/ProductPricingV0/Dto/Product.php new file mode 100644 index 000000000..f53a2f5f5 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/Product.php @@ -0,0 +1,37 @@ + 'Identifiers', + 'attributeSets' => 'AttributeSets', + 'relationships' => 'Relationships', + 'competitivePricing' => 'CompetitivePricing', + 'salesRankings' => 'SalesRankings', + 'offers' => 'Offers', + ]; + + protected static array $complexArrayTypes = ['salesRankings' => [SalesRankType::class], 'offers' => [OfferType::class]]; + + /** + * @param IdentifierType $identifiers Specifies the identifiers used to uniquely identify an item. + * @param ?mixed[] $attributeSets + * @param ?mixed[] $relationships + * @param ?CompetitivePricingType $competitivePricing Competitive pricing information for the item. + * @param SalesRankType[]|null $salesRankings A list of sales rank information for the item, by category. + * @param OfferType[]|null $offers A list of offers. + */ + public function __construct( + public readonly IdentifierType $identifiers, + public readonly ?array $attributeSets = null, + public readonly ?array $relationships = null, + public readonly ?CompetitivePricingType $competitivePricing = null, + public readonly ?array $salesRankings = null, + public readonly ?array $offers = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/QuantityDiscountPriceType.php b/src/Seller/ProductPricingV0/Dto/QuantityDiscountPriceType.php new file mode 100644 index 000000000..7448ab09b --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/QuantityDiscountPriceType.php @@ -0,0 +1,18 @@ + 'ProductCategoryId', 'rank' => 'Rank']; + + /** + * @param string $productCategoryId Identifies the item category from which the sales rank is taken. + * @param int $rank The sales rank of the item within the item category. + */ + public function __construct( + public readonly string $productCategoryId, + public readonly int $rank, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/SellerFeedbackType.php b/src/Seller/ProductPricingV0/Dto/SellerFeedbackType.php new file mode 100644 index 000000000..c38111df8 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/SellerFeedbackType.php @@ -0,0 +1,23 @@ + 'FeedbackCount', + 'sellerPositiveFeedbackRating' => 'SellerPositiveFeedbackRating', + ]; + + /** + * @param int $feedbackCount The number of ratings received about the seller. + * @param ?float $sellerPositiveFeedbackRating The percentage of positive feedback for the seller in the past 365 days. + */ + public function __construct( + public readonly int $feedbackCount, + public readonly ?float $sellerPositiveFeedbackRating = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/SellerSkuIdentifier.php b/src/Seller/ProductPricingV0/Dto/SellerSkuIdentifier.php new file mode 100644 index 000000000..500844dc0 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/SellerSkuIdentifier.php @@ -0,0 +1,26 @@ + 'MarketplaceId', + 'sellerId' => 'SellerId', + 'sellerSku' => 'SellerSKU', + ]; + + /** + * @param string $marketplaceId A marketplace identifier. + * @param string $sellerId The seller identifier submitted for the operation. + * @param string $sellerSku The seller stock keeping unit (SKU) of the item. + */ + public function __construct( + public readonly string $marketplaceId, + public readonly string $sellerId, + public readonly string $sellerSku, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/ShipsFromType.php b/src/Seller/ProductPricingV0/Dto/ShipsFromType.php new file mode 100644 index 000000000..dae861163 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/ShipsFromType.php @@ -0,0 +1,20 @@ + 'State', 'country' => 'Country']; + + /** + * @param ?string $state The state from where the item is shipped. + * @param ?string $country The country from where the item is shipped. + */ + public function __construct( + public readonly ?string $state = null, + public readonly ?string $country = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Dto/Summary.php b/src/Seller/ProductPricingV0/Dto/Summary.php new file mode 100644 index 000000000..811e105f3 --- /dev/null +++ b/src/Seller/ProductPricingV0/Dto/Summary.php @@ -0,0 +1,55 @@ + 'TotalOfferCount', + 'numberOfOffers' => 'NumberOfOffers', + 'lowestPrices' => 'LowestPrices', + 'buyBoxPrices' => 'BuyBoxPrices', + 'listPrice' => 'ListPrice', + 'competitivePriceThreshold' => 'CompetitivePriceThreshold', + 'suggestedLowerPricePlusShipping' => 'SuggestedLowerPricePlusShipping', + 'salesRankings' => 'SalesRankings', + 'buyBoxEligibleOffers' => 'BuyBoxEligibleOffers', + 'offersAvailableTime' => 'OffersAvailableTime', + ]; + + protected static array $complexArrayTypes = [ + 'numberOfOffers' => [OfferCountType::class], + 'lowestPrices' => [LowestPriceType::class], + 'buyBoxPrices' => [BuyBoxPriceType::class], + 'salesRankings' => [SalesRankType::class], + 'buyBoxEligibleOffers' => [OfferCountType::class], + ]; + + /** + * @param int $totalOfferCount The number of unique offers contained in NumberOfOffers. + * @param OfferCountType[]|null $numberOfOffers + * @param LowestPriceType[]|null $lowestPrices + * @param BuyBoxPriceType[]|null $buyBoxPrices + * @param ?MoneyType $listPrice + * @param ?MoneyType $competitivePriceThreshold + * @param ?MoneyType $suggestedLowerPricePlusShipping + * @param SalesRankType[]|null $salesRankings A list of sales rank information for the item, by category. + * @param OfferCountType[]|null $buyBoxEligibleOffers + * @param ?DateTime $offersAvailableTime When the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing. + */ + public function __construct( + public readonly int $totalOfferCount, + public readonly ?array $numberOfOffers = null, + public readonly ?array $lowestPrices = null, + public readonly ?array $buyBoxPrices = null, + public readonly ?MoneyType $listPrice = null, + public readonly ?MoneyType $competitivePriceThreshold = null, + public readonly ?MoneyType $suggestedLowerPricePlusShipping = null, + public readonly ?array $salesRankings = null, + public readonly ?array $buyBoxEligibleOffers = null, + public readonly ?\DateTime $offersAvailableTime = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetCompetitivePricing.php b/src/Seller/ProductPricingV0/Requests/GetCompetitivePricing.php new file mode 100644 index 000000000..9e3517e1a --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetCompetitivePricing.php @@ -0,0 +1,60 @@ + $this->marketplaceId, + 'ItemType' => $this->itemType, + 'Asins' => $this->asins, + 'Skus' => $this->skus, + 'CustomerType' => $this->customerType, + ]); + } + + public function resolveEndpoint(): string + { + return '/products/pricing/v0/competitivePrice'; + } + + public function createDtoFromResponse(Response $response): GetPricingResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetPricingResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetItemOffers.php b/src/Seller/ProductPricingV0/Requests/GetItemOffers.php new file mode 100644 index 000000000..f502f7072 --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetItemOffers.php @@ -0,0 +1,56 @@ + $this->marketplaceId, + 'ItemCondition' => $this->itemCondition, + 'CustomerType' => $this->customerType, + ]); + } + + public function resolveEndpoint(): string + { + return "/products/pricing/v0/items/{$this->asin}/offers"; + } + + public function createDtoFromResponse(Response $response): GetOffersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetOffersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetItemOffersBatch.php b/src/Seller/ProductPricingV0/Requests/GetItemOffersBatch.php new file mode 100644 index 000000000..5fdc93428 --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetItemOffersBatch.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => GetItemOffersBatchResponse::class, + 400, 401, 403, 404, 429, 500, 503 => Errors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getItemOffersBatchRequest->toArray(); + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetListingOffers.php b/src/Seller/ProductPricingV0/Requests/GetListingOffers.php new file mode 100644 index 000000000..9dc620d79 --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetListingOffers.php @@ -0,0 +1,56 @@ + $this->marketplaceId, + 'ItemCondition' => $this->itemCondition, + 'CustomerType' => $this->customerType, + ]); + } + + public function resolveEndpoint(): string + { + return "/products/pricing/v0/listings/{$this->sellerSku}/offers"; + } + + public function createDtoFromResponse(Response $response): GetOffersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetOffersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetListingOffersBatch.php b/src/Seller/ProductPricingV0/Requests/GetListingOffersBatch.php new file mode 100644 index 000000000..812f02acc --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetListingOffersBatch.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => GetListingOffersBatchResponse::class, + 400, 401, 403, 404, 429, 500, 503 => Errors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getListingOffersBatchRequest->toArray(); + } +} diff --git a/src/Seller/ProductPricingV0/Requests/GetPricing.php b/src/Seller/ProductPricingV0/Requests/GetPricing.php new file mode 100644 index 000000000..ca8a5fa58 --- /dev/null +++ b/src/Seller/ProductPricingV0/Requests/GetPricing.php @@ -0,0 +1,63 @@ + $this->marketplaceId, + 'ItemType' => $this->itemType, + 'Asins' => $this->asins, + 'Skus' => $this->skus, + 'ItemCondition' => $this->itemCondition, + 'OfferType' => $this->offerType, + ]); + } + + public function resolveEndpoint(): string + { + return '/products/pricing/v0/price'; + } + + public function createDtoFromResponse(Response $response): GetPricingResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetPricingResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductPricingV0/Responses/Errors.php b/src/Seller/ProductPricingV0/Responses/Errors.php new file mode 100644 index 000000000..f9549b64b --- /dev/null +++ b/src/Seller/ProductPricingV0/Responses/Errors.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Responses/GetItemOffersBatchResponse.php b/src/Seller/ProductPricingV0/Responses/GetItemOffersBatchResponse.php new file mode 100644 index 000000000..c181c6a85 --- /dev/null +++ b/src/Seller/ProductPricingV0/Responses/GetItemOffersBatchResponse.php @@ -0,0 +1,19 @@ + [ItemOffersResponse::class]]; + + /** + * @param ItemOffersResponse[]|null $responses A list of `getItemOffers` batched responses. + */ + public function __construct( + public readonly ?array $responses = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Responses/GetListingOffersBatchResponse.php b/src/Seller/ProductPricingV0/Responses/GetListingOffersBatchResponse.php new file mode 100644 index 000000000..9f6211e37 --- /dev/null +++ b/src/Seller/ProductPricingV0/Responses/GetListingOffersBatchResponse.php @@ -0,0 +1,19 @@ + [ListingOffersResponse::class]]; + + /** + * @param ListingOffersResponse[]|null $responses A list of `getListingOffers` batched responses. + */ + public function __construct( + public readonly ?array $responses = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Responses/GetOffersResponse.php b/src/Seller/ProductPricingV0/Responses/GetOffersResponse.php new file mode 100644 index 000000000..66dee6ba9 --- /dev/null +++ b/src/Seller/ProductPricingV0/Responses/GetOffersResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetOffersResult $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetOffersResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV0/Responses/GetPricingResponse.php b/src/Seller/ProductPricingV0/Responses/GetPricingResponse.php new file mode 100644 index 000000000..4d30fd393 --- /dev/null +++ b/src/Seller/ProductPricingV0/Responses/GetPricingResponse.php @@ -0,0 +1,22 @@ + [Price::class], 'errors' => [Error::class]]; + + /** + * @param Price[]|null $payload + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Api.php b/src/Seller/ProductPricingV20220501/Api.php new file mode 100644 index 000000000..2378f59ab --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Api.php @@ -0,0 +1,34 @@ +connector->send($request); + } + + /** + * @param CompetitiveSummaryBatchRequest $competitiveSummaryBatchRequest The `competitiveSummary` batch request data. + */ + public function getCompetitiveSummary(CompetitiveSummaryBatchRequest $competitiveSummaryBatchRequest): Response + { + $request = new GetCompetitiveSummary($competitiveSummaryBatchRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/BatchRequest.php b/src/Seller/ProductPricingV20220501/Dto/BatchRequest.php new file mode 100644 index 000000000..2b939b5d6 --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/BatchRequest.php @@ -0,0 +1,22 @@ + [CompetitiveSummaryRequest::class]]; + + /** + * @param CompetitiveSummaryRequest[] $requests A batched list of `competitiveSummary` requests. + */ + public function __construct( + public readonly array $requests, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/CompetitiveSummaryRequest.php b/src/Seller/ProductPricingV20220501/Dto/CompetitiveSummaryRequest.php new file mode 100644 index 000000000..80d52bf1a --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/CompetitiveSummaryRequest.php @@ -0,0 +1,24 @@ + [FeaturedBuyingOption::class]]; + + /** + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $marketplaceId A marketplace identifier. Specifies the marketplace for which data is returned. + * @param FeaturedBuyingOption[]|null $featuredBuyingOptions A list of featured buying options for the given ASIN `marketplaceId` combination. + * @param ?Errors $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly string $asin, + public readonly string $marketplaceId, + public readonly ?array $featuredBuyingOptions = null, + public readonly ?Errors $errors = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/Error.php b/src/Seller/ProductPricingV20220501/Dto/Error.php new file mode 100644 index 000000000..af7ce4c9b --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/Error.php @@ -0,0 +1,20 @@ + [SegmentedFeaturedOffer::class]]; + + /** + * @param string $buyingOptionType The buying option type of the featured offer. This field represents the buying options that a customer sees on the detail page. For example, B2B, Fresh, and Subscribe n Save. Currently supports `NEW` + * @param SegmentedFeaturedOffer[] $segmentedFeaturedOffers A list of segmented featured offers for the current buying option type. A segment can be considered as a group of regional contexts that all have the same featured offer. A regional context is a combination of factors such as customer type, region or postal code and buying option. + */ + public function __construct( + public readonly string $buyingOptionType, + public readonly array $segmentedFeaturedOffers, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/FeaturedOffer.php b/src/Seller/ProductPricingV20220501/Dto/FeaturedOffer.php new file mode 100644 index 000000000..c7dc5acff --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/FeaturedOffer.php @@ -0,0 +1,20 @@ + [FeaturedOfferExpectedPriceResult::class], + 'errors' => [Error::class], + ]; + + /** + * @param OfferIdentifier $offerIdentifier Identifies an offer from a particular seller on an ASIN. + * @param FeaturedOfferExpectedPriceResult[]|null $featuredOfferExpectedPriceResults A list of featured offer expected price results for the requested offer. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly OfferIdentifier $offerIdentifier, + public readonly ?array $featuredOfferExpectedPriceResults = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/FeaturedOfferExpectedPriceResult.php b/src/Seller/ProductPricingV20220501/Dto/FeaturedOfferExpectedPriceResult.php new file mode 100644 index 000000000..a23ae28da --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/FeaturedOfferExpectedPriceResult.php @@ -0,0 +1,22 @@ + [FeaturedOfferExpectedPriceRequest::class]]; + + /** + * @param FeaturedOfferExpectedPriceRequest[]|null $requests A batched list of featured offer expected price requests. + */ + public function __construct( + public readonly ?array $requests = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/HttpStatusLine.php b/src/Seller/ProductPricingV20220501/Dto/HttpStatusLine.php new file mode 100644 index 000000000..ebb1c698f --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/HttpStatusLine.php @@ -0,0 +1,18 @@ + [ShippingOption::class]]; + + /** + * @param string $sellerId The seller identifier for the offer. + * @param string $condition The condition of the item. + * @param string $fulfillmentType Indicates whether the item is fulfilled by Amazon or by the seller (merchant). + * @param ShippingOption[]|null $shippingOptions A list of shipping options associated with this offer + * @param ?Points $points + */ + public function __construct( + public readonly string $sellerId, + public readonly string $condition, + public readonly string $fulfillmentType, + public readonly MoneyType $listingPrice, + public readonly ?array $shippingOptions = null, + public readonly ?Points $points = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/OfferIdentifier.php b/src/Seller/ProductPricingV20220501/Dto/OfferIdentifier.php new file mode 100644 index 000000000..6fb87fc7f --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/OfferIdentifier.php @@ -0,0 +1,24 @@ + [FeaturedOfferSegment::class], + 'shippingOptions' => [ShippingOption::class], + ]; + + /** + * @param string $sellerId The seller identifier for the offer. + * @param string $condition The condition of the item. + * @param string $fulfillmentType Indicates whether the item is fulfilled by Amazon or by the seller (merchant). + * @param FeaturedOfferSegment[] $featuredOfferSegments The list of segment information in which the offer is featured. + * @param ShippingOption[]|null $shippingOptions A list of shipping options associated with this offer + * @param ?Points $points + */ + public function __construct( + public readonly string $sellerId, + public readonly string $condition, + public readonly string $fulfillmentType, + public readonly MoneyType $listingPrice, + public readonly array $featuredOfferSegments, + public readonly ?array $shippingOptions = null, + public readonly ?Points $points = null, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Dto/ShippingOption.php b/src/Seller/ProductPricingV20220501/Dto/ShippingOption.php new file mode 100644 index 000000000..ed6a9ecb5 --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Dto/ShippingOption.php @@ -0,0 +1,17 @@ +status(); + $responseCls = match ($status) { + 200 => CompetitiveSummaryBatchResponse::class, + 400, 403, 404, 429, 500, 503 => Errors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->competitiveSummaryBatchRequest->toArray(); + } +} diff --git a/src/Seller/ProductPricingV20220501/Requests/GetFeaturedOfferExpectedPriceBatch.php b/src/Seller/ProductPricingV20220501/Requests/GetFeaturedOfferExpectedPriceBatch.php new file mode 100644 index 000000000..8f49bfe78 --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Requests/GetFeaturedOfferExpectedPriceBatch.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => GetFeaturedOfferExpectedPriceBatchResponse::class, + 400, 401, 403, 404, 429, 500, 503 => Errors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getFeaturedOfferExpectedPriceBatchRequest->toArray(); + } +} diff --git a/src/Seller/ProductPricingV20220501/Responses/CompetitiveSummaryBatchResponse.php b/src/Seller/ProductPricingV20220501/Responses/CompetitiveSummaryBatchResponse.php new file mode 100644 index 000000000..170cb8147 --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Responses/CompetitiveSummaryBatchResponse.php @@ -0,0 +1,19 @@ + [CompetitiveSummaryResponse::class]]; + + /** + * @param CompetitiveSummaryResponse[] $responses The response list of the `competitiveSummaryBatch` operation. + */ + public function __construct( + public readonly array $responses, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Responses/Errors.php b/src/Seller/ProductPricingV20220501/Responses/Errors.php new file mode 100644 index 000000000..1a0ea8314 --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Responses/Errors.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ProductPricingV20220501/Responses/GetFeaturedOfferExpectedPriceBatchResponse.php b/src/Seller/ProductPricingV20220501/Responses/GetFeaturedOfferExpectedPriceBatchResponse.php new file mode 100644 index 000000000..00c8eaeee --- /dev/null +++ b/src/Seller/ProductPricingV20220501/Responses/GetFeaturedOfferExpectedPriceBatchResponse.php @@ -0,0 +1,19 @@ + [FeaturedOfferExpectedPriceResponse::class]]; + + /** + * @param FeaturedOfferExpectedPriceResponse[]|null $responses A batched list of featured offer expected price responses. + */ + public function __construct( + public readonly ?array $responses = null, + ) { + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Api.php b/src/Seller/ProductTypeDefinitionsV20200901/Api.php new file mode 100644 index 000000000..311f5cea0 --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Api.php @@ -0,0 +1,54 @@ +connector->send($request); + } + + /** + * @param string $productType The Amazon product type name. + * @param array $marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. + * Note: This parameter is limited to one marketplaceId at this time. + * @param ?string $sellerId A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner. + * @param ?string $productTypeVersion The version of the Amazon product type to retrieve. Defaults to "LATEST",. Prerelease versions of product type definitions may be retrieved with "RELEASE_CANDIDATE". If no prerelease version is currently available, the "LATEST" live version will be provided. + * @param ?string $requirements The name of the requirements set to retrieve requirements for. + * @param ?string $requirementsEnforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates). + * @param ?string $locale Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request. + */ + public function getDefinitionsProductType( + string $productType, + array $marketplaceIds, + ?string $sellerId = null, + ?string $productTypeVersion = null, + ?string $requirements = null, + ?string $requirementsEnforced = null, + ?string $locale = null, + ): Response { + $request = new GetDefinitionsProductType($productType, $marketplaceIds, $sellerId, $productTypeVersion, $requirements, $requirementsEnforced, $locale); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Dto/Error.php b/src/Seller/ProductTypeDefinitionsV20200901/Dto/Error.php new file mode 100644 index 000000000..465e384a9 --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Dto/Error.php @@ -0,0 +1,20 @@ + $this->marketplaceIds, + 'sellerId' => $this->sellerId, + 'productTypeVersion' => $this->productTypeVersion, + 'requirements' => $this->requirements, + 'requirementsEnforced' => $this->requirementsEnforced, + 'locale' => $this->locale, + ]); + } + + public function resolveEndpoint(): string + { + return "/definitions/2020-09-01/productTypes/{$this->productType}"; + } + + public function createDtoFromResponse(Response $response): ProductTypeDefinition|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ProductTypeDefinition::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Requests/SearchDefinitionsProductTypes.php b/src/Seller/ProductTypeDefinitionsV20200901/Requests/SearchDefinitionsProductTypes.php new file mode 100644 index 000000000..2044c2e46 --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Requests/SearchDefinitionsProductTypes.php @@ -0,0 +1,62 @@ + $this->marketplaceIds, + 'keywords' => $this->keywords, + 'itemName' => $this->itemName, + 'locale' => $this->locale, + 'searchLocale' => $this->searchLocale, + ]); + } + + public function resolveEndpoint(): string + { + return '/definitions/2020-09-01/productTypes'; + } + + public function createDtoFromResponse(Response $response): ProductTypeList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ProductTypeList::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Responses/ErrorList.php b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ErrorList.php new file mode 100644 index 000000000..7277ccf9b --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeDefinition.php b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeDefinition.php new file mode 100644 index 000000000..afb556408 --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeDefinition.php @@ -0,0 +1,38 @@ + [PropertyGroup::class]]; + + /** + * @param string $requirements Name of the requirements set represented in this product type definition. + * @param string $requirementsEnforced Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates). + * @param PropertyGroup[] $propertyGroups Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes. + * @param string $locale Locale of the display elements contained in the product type definition. + * @param string[] $marketplaceIds Amazon marketplace identifiers for which the product type definition is applicable. + * @param string $productType The name of the Amazon product type that this product type definition applies to. + * @param string $displayName Human-readable and localized description of the Amazon product type. + * @param ProductTypeVersion $productTypeVersion The version details for an Amazon product type. + * @param ?SchemaLink $metaSchema + */ + public function __construct( + public readonly SchemaLink $schema, + public readonly string $requirements, + public readonly string $requirementsEnforced, + public readonly array $propertyGroups, + public readonly string $locale, + public readonly array $marketplaceIds, + public readonly string $productType, + public readonly string $displayName, + public readonly ProductTypeVersion $productTypeVersion, + public readonly ?SchemaLink $metaSchema = null, + ) { + } +} diff --git a/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeList.php b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeList.php new file mode 100644 index 000000000..d7926b8d6 --- /dev/null +++ b/src/Seller/ProductTypeDefinitionsV20200901/Responses/ProductTypeList.php @@ -0,0 +1,22 @@ + [ProductType::class]]; + + /** + * @param ProductType[] $productTypes + * @param ProductTypeVersion $productTypeVersion The version details for an Amazon product type. + */ + public function __construct( + public readonly array $productTypes, + public readonly ProductTypeVersion $productTypeVersion, + ) { + } +} diff --git a/src/Seller/ReplenishmentV20221107/Api.php b/src/Seller/ReplenishmentV20221107/Api.php new file mode 100644 index 000000000..44b087cf8 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Api.php @@ -0,0 +1,45 @@ +connector->send($request); + } + + /** + * @param ListOfferMetricsRequest $listOfferMetricsRequest The request body for the `listOfferMetrics` operation. + */ + public function listOfferMetrics(ListOfferMetricsRequest $listOfferMetricsRequest): Response + { + $request = new ListOfferMetrics($listOfferMetricsRequest); + + return $this->connector->send($request); + } + + /** + * @param ListOffersRequest $listOffersRequest The request body for the `listOffers` operation. + */ + public function listOffers(ListOffersRequest $listOffersRequest): Response + { + $request = new ListOffers($listOffersRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ReplenishmentV20221107/Dto/DiscountFunding.php b/src/Seller/ReplenishmentV20221107/Dto/DiscountFunding.php new file mode 100644 index 000000000..c6bae5249 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Dto/DiscountFunding.php @@ -0,0 +1,16 @@ + 'notDeliveredDueToOOS']; + + /** + * @param ?float $notDeliveredDueToOos The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $totalSubscriptionsRevenue The revenue generated from subscriptions over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. + * @param ?float $shippedSubscriptionUnits The number of units shipped to the subscribers over a period of time. Applicable for both the PERFORMANCE and FORECAST timePeriodType. + * @param ?float $activeSubscriptions The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $subscriberAverageRevenue The average revenue per subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $nonSubscriberAverageRevenue The average revenue per non-subscriber of the program over a period of past 12 months for sellers and 6 months for vendors. Applicable only for the PERFORMANCE timePeriodType. + * @param ?TimeInterval $timeInterval A date-time interval in ISO 8601 format which is used to compute metrics. Only the date is required, but you must pass the complete date and time value. For example, November 11, 2022 should be passed as "2022-11-07T00:00:00Z". Note that only data for the trailing 2 years is supported. + * + * **Note**: The `listOfferMetrics` operation only supports a time interval which covers a single unit of the aggregation frequency. For example, for a MONTH aggregation frequency, the duration of the interval between the startDate and endDate can not be more than 1 month. + * @param ?string $currencyCode The currency code in ISO 4217 format. + */ + public function __construct( + public readonly ?float $notDeliveredDueToOos = null, + public readonly ?float $totalSubscriptionsRevenue = null, + public readonly ?float $shippedSubscriptionUnits = null, + public readonly ?float $activeSubscriptions = null, + public readonly ?float $subscriberAverageRevenue = null, + public readonly ?float $nonSubscriberAverageRevenue = null, + public readonly ?TimeInterval $timeInterval = null, + public readonly ?string $currencyCode = null, + ) { + } +} diff --git a/src/Seller/ReplenishmentV20221107/Dto/ListOfferMetricsRequest.php b/src/Seller/ReplenishmentV20221107/Dto/ListOfferMetricsRequest.php new file mode 100644 index 000000000..a02e429ac --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Dto/ListOfferMetricsRequest.php @@ -0,0 +1,20 @@ + 'notDeliveredDueToOOS', + 'next30dayTotalSubscriptionsRevenue' => 'next30DayTotalSubscriptionsRevenue', + 'next60dayTotalSubscriptionsRevenue' => 'next60DayTotalSubscriptionsRevenue', + 'next90dayTotalSubscriptionsRevenue' => 'next90DayTotalSubscriptionsRevenue', + 'next30dayShippedSubscriptionUnits' => 'next30DayShippedSubscriptionUnits', + 'next60dayShippedSubscriptionUnits' => 'next60DayShippedSubscriptionUnits', + 'next90dayShippedSubscriptionUnits' => 'next90DayShippedSubscriptionUnits', + ]; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN). + * @param ?float $notDeliveredDueToOos The percentage of items that were not shipped out of the total shipped units over a period of time due to being out of stock. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $totalSubscriptionsRevenue The revenue generated from subscriptions over a period of time. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $shippedSubscriptionUnits The number of units shipped to the subscribers over a period of time. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $activeSubscriptions The number of active subscriptions present at the end of the period. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $revenuePenetration The percentage of total program revenue out of total product revenue. Applicable only for the PERFORMANCE timePeriodType. + * @param ?float $next30dayTotalSubscriptionsRevenue The forecasted total subscription revenue for the next 30 days. Applicable only for the FORECAST timePeriodType. + * @param ?float $next60dayTotalSubscriptionsRevenue The forecasted total subscription revenue for the next 60 days. Applicable only for the FORECAST timePeriodType. + * @param ?float $next90dayTotalSubscriptionsRevenue The forecasted total subscription revenue for the next 90 days. Applicable only for the FORECAST timePeriodType. + * @param ?float $next30dayShippedSubscriptionUnits The forecasted shipped subscription units for the next 30 days. Applicable only for the FORECAST timePeriodType. + * @param ?float $next60dayShippedSubscriptionUnits The forecasted shipped subscription units for the next 60 days. Applicable only for the FORECAST timePeriodType. + * @param ?float $next90dayShippedSubscriptionUnits The forecasted shipped subscription units for the next 90 days. Applicable only for the FORECAST timePeriodType. + * @param ?TimeInterval $timeInterval A date-time interval in ISO 8601 format which is used to compute metrics. Only the date is required, but you must pass the complete date and time value. For example, November 11, 2022 should be passed as "2022-11-07T00:00:00Z". Note that only data for the trailing 2 years is supported. + * + * **Note**: The `listOfferMetrics` operation only supports a time interval which covers a single unit of the aggregation frequency. For example, for a MONTH aggregation frequency, the duration of the interval between the startDate and endDate can not be more than 1 month. + * @param ?string $currencyCode The currency code in ISO 4217 format. + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?float $notDeliveredDueToOos = null, + public readonly ?float $totalSubscriptionsRevenue = null, + public readonly ?float $shippedSubscriptionUnits = null, + public readonly ?float $activeSubscriptions = null, + public readonly ?float $revenuePenetration = null, + public readonly ?float $next30dayTotalSubscriptionsRevenue = null, + public readonly ?float $next60dayTotalSubscriptionsRevenue = null, + public readonly ?float $next90dayTotalSubscriptionsRevenue = null, + public readonly ?float $next30dayShippedSubscriptionUnits = null, + public readonly ?float $next60dayShippedSubscriptionUnits = null, + public readonly ?float $next90dayShippedSubscriptionUnits = null, + public readonly ?TimeInterval $timeInterval = null, + public readonly ?string $currencyCode = null, + ) { + } +} diff --git a/src/Seller/ReplenishmentV20221107/Dto/ListOffersRequest.php b/src/Seller/ReplenishmentV20221107/Dto/ListOffersRequest.php new file mode 100644 index 000000000..7847e00fc --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Dto/ListOffersRequest.php @@ -0,0 +1,20 @@ +status(); + $responseCls = match ($status) { + 200 => GetSellingPartnerMetricsResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getSellingPartnerMetricsRequest->toArray(); + } +} diff --git a/src/Seller/ReplenishmentV20221107/Requests/ListOfferMetrics.php b/src/Seller/ReplenishmentV20221107/Requests/ListOfferMetrics.php new file mode 100644 index 000000000..4717e89f0 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Requests/ListOfferMetrics.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => ListOfferMetricsResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listOfferMetricsRequest->toArray(); + } +} diff --git a/src/Seller/ReplenishmentV20221107/Requests/ListOffers.php b/src/Seller/ReplenishmentV20221107/Requests/ListOffers.php new file mode 100644 index 000000000..d11896bcf --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Requests/ListOffers.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => ListOffersResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->listOffersRequest->toArray(); + } +} diff --git a/src/Seller/ReplenishmentV20221107/Responses/ErrorList.php b/src/Seller/ReplenishmentV20221107/Responses/ErrorList.php new file mode 100644 index 000000000..7a1180cd8 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ReplenishmentV20221107/Responses/GetSellingPartnerMetricsResponse.php b/src/Seller/ReplenishmentV20221107/Responses/GetSellingPartnerMetricsResponse.php new file mode 100644 index 000000000..82d4236d9 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Responses/GetSellingPartnerMetricsResponse.php @@ -0,0 +1,16 @@ + [ListOfferMetricsResponseOffer::class]]; + + /** + * @param ListOfferMetricsResponseOffer[]|null $offers A list of offers and associated metrics. + * @param ?PaginationResponse $pagination Use these parameters to paginate through the response. + */ + public function __construct( + public readonly ?array $offers = null, + public readonly ?PaginationResponse $pagination = null, + ) { + } +} diff --git a/src/Seller/ReplenishmentV20221107/Responses/ListOffersResponse.php b/src/Seller/ReplenishmentV20221107/Responses/ListOffersResponse.php new file mode 100644 index 000000000..b69d11498 --- /dev/null +++ b/src/Seller/ReplenishmentV20221107/Responses/ListOffersResponse.php @@ -0,0 +1,22 @@ + [ListOfferMetricsResponseOffer::class]]; + + /** + * @param ListOfferMetricsResponseOffer[]|null $offers A list of offers and associated metrics. + * @param ?PaginationResponse $pagination Use these parameters to paginate through the response. + */ + public function __construct( + public readonly ?array $offers = null, + public readonly ?PaginationResponse $pagination = null, + ) { + } +} diff --git a/src/Seller/ReportsV20210630/Api.php b/src/Seller/ReportsV20210630/Api.php new file mode 100644 index 000000000..b7c3dc5c1 --- /dev/null +++ b/src/Seller/ReportsV20210630/Api.php @@ -0,0 +1,121 @@ +connector->send($request); + } + + /** + * @param CreateReportSpecification $createReportSpecification Information required to create the report. + */ + public function createReport(CreateReportSpecification $createReportSpecification): Response + { + $request = new CreateReport($createReportSpecification); + + return $this->connector->send($request); + } + + /** + * @param string $reportId The identifier for the report. This identifier is unique only in combination with a seller ID. + */ + public function getReport(string $reportId): Response + { + $request = new GetReport($reportId); + + return $this->connector->send($request); + } + + /** + * @param string $reportId The identifier for the report. This identifier is unique only in combination with a seller ID. + */ + public function cancelReport(string $reportId): Response + { + $request = new CancelReport($reportId); + + return $this->connector->send($request); + } + + /** + * @param array $reportTypes A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. + */ + public function getReportSchedules(array $reportTypes): Response + { + $request = new GetReportSchedules($reportTypes); + + return $this->connector->send($request); + } + + public function createReportSchedule(CreateReportScheduleSpecification $createReportScheduleSpecification): Response + { + $request = new CreateReportSchedule($createReportScheduleSpecification); + + return $this->connector->send($request); + } + + /** + * @param string $reportScheduleId The identifier for the report schedule. This identifier is unique only in combination with a seller ID. + */ + public function getReportSchedule(string $reportScheduleId): Response + { + $request = new GetReportSchedule($reportScheduleId); + + return $this->connector->send($request); + } + + /** + * @param string $reportScheduleId The identifier for the report schedule. This identifier is unique only in combination with a seller ID. + */ + public function cancelReportSchedule(string $reportScheduleId): Response + { + $request = new CancelReportSchedule($reportScheduleId); + + return $this->connector->send($request); + } + + /** + * @param string $reportDocumentId The identifier for the report document. + * @param string $reportType The report type of the report document. + */ + public function getReportDocument(string $reportDocumentId, string $reportType): Response + { + $request = new GetReportDocument($reportDocumentId, $reportType); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ReportsV20210630/Dto/CreateReportScheduleSpecification.php b/src/Seller/ReportsV20210630/Dto/CreateReportScheduleSpecification.php new file mode 100644 index 000000000..9e3cde1f6 --- /dev/null +++ b/src/Seller/ReportsV20210630/Dto/CreateReportScheduleSpecification.php @@ -0,0 +1,24 @@ +reportId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => EmptyResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/CancelReportSchedule.php b/src/Seller/ReportsV20210630/Requests/CancelReportSchedule.php new file mode 100644 index 000000000..24859700e --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/CancelReportSchedule.php @@ -0,0 +1,43 @@ +reportScheduleId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => EmptyResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/CreateReport.php b/src/Seller/ReportsV20210630/Requests/CreateReport.php new file mode 100644 index 000000000..6d586ff95 --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/CreateReport.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 202 => CreateReportResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createReportSpecification->toArray(); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/CreateReportSchedule.php b/src/Seller/ReportsV20210630/Requests/CreateReportSchedule.php new file mode 100644 index 000000000..329a14262 --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/CreateReportSchedule.php @@ -0,0 +1,50 @@ +status(); + $responseCls = match ($status) { + 201 => CreateReportScheduleResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createReportScheduleSpecification->toArray(); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/GetReport.php b/src/Seller/ReportsV20210630/Requests/GetReport.php new file mode 100644 index 000000000..bf9960f48 --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/GetReport.php @@ -0,0 +1,43 @@ +reportId}"; + } + + public function createDtoFromResponse(Response $response): Report|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Report::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/GetReportDocument.php b/src/Seller/ReportsV20210630/Requests/GetReportDocument.php new file mode 100644 index 000000000..600cc147a --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/GetReportDocument.php @@ -0,0 +1,55 @@ +resolveEndpoint(), 'GET', []); + $this->middleware()->onRequest($rdtMiddleware); + $this->middleware()->onRequest(new RestrictedReport); + } + + public function defaultQuery(): array + { + return array_filter(['reportType' => $this->reportType]); + } + + public function resolveEndpoint(): string + { + return "/reports/2021-06-30/documents/{$this->reportDocumentId}"; + } + + public function createDtoFromResponse(Response $response): ReportDocument|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ReportDocument::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/GetReportSchedule.php b/src/Seller/ReportsV20210630/Requests/GetReportSchedule.php new file mode 100644 index 000000000..df28f4f8c --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/GetReportSchedule.php @@ -0,0 +1,43 @@ +reportScheduleId}"; + } + + public function createDtoFromResponse(Response $response): ReportSchedule|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ReportSchedule::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/GetReportSchedules.php b/src/Seller/ReportsV20210630/Requests/GetReportSchedules.php new file mode 100644 index 000000000..35c505fa7 --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/GetReportSchedules.php @@ -0,0 +1,48 @@ + $this->reportTypes]); + } + + public function resolveEndpoint(): string + { + return '/reports/2021-06-30/schedules'; + } + + public function createDtoFromResponse(Response $response): ReportScheduleList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ReportScheduleList::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Requests/GetReports.php b/src/Seller/ReportsV20210630/Requests/GetReports.php new file mode 100644 index 000000000..c84be5f65 --- /dev/null +++ b/src/Seller/ReportsV20210630/Requests/GetReports.php @@ -0,0 +1,68 @@ + $this->reportTypes, + 'processingStatuses' => $this->processingStatuses, + 'marketplaceIds' => $this->marketplaceIds, + 'pageSize' => $this->pageSize, + 'createdSince' => $this->createdSince?->format(\DateTime::RFC3339), + 'createdUntil' => $this->createdUntil?->format(\DateTime::RFC3339), + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/reports/2021-06-30/reports'; + } + + public function createDtoFromResponse(Response $response): GetReportsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetReportsResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ReportsV20210630/Responses/CreateReportResponse.php b/src/Seller/ReportsV20210630/Responses/CreateReportResponse.php new file mode 100644 index 000000000..3f87d07d1 --- /dev/null +++ b/src/Seller/ReportsV20210630/Responses/CreateReportResponse.php @@ -0,0 +1,16 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ReportsV20210630/Responses/GetReportsResponse.php b/src/Seller/ReportsV20210630/Responses/GetReportsResponse.php new file mode 100644 index 000000000..1ed251993 --- /dev/null +++ b/src/Seller/ReportsV20210630/Responses/GetReportsResponse.php @@ -0,0 +1,20 @@ + [Report::class]]; + + /** + * @param Report[] $reports A list of reports. + * @param ?string $nextToken Returned when the number of results exceeds pageSize. To get the next page of results, call getReports with this token as the only parameter. + */ + public function __construct( + public readonly array $reports, + public readonly ?string $nextToken = null, + ) { + } +} diff --git a/src/Seller/ReportsV20210630/Responses/Report.php b/src/Seller/ReportsV20210630/Responses/Report.php new file mode 100644 index 000000000..26202f350 --- /dev/null +++ b/src/Seller/ReportsV20210630/Responses/Report.php @@ -0,0 +1,36 @@ + [ReportSchedule::class]]; + + /** + * @param ReportSchedule[] $reportSchedules + */ + public function __construct( + public readonly array $reportSchedules, + ) { + } +} diff --git a/src/Seller/SalesV1/Api.php b/src/Seller/SalesV1/Api.php new file mode 100644 index 000000000..02daf7bef --- /dev/null +++ b/src/Seller/SalesV1/Api.php @@ -0,0 +1,39 @@ +connector->send($request); + } +} diff --git a/src/Seller/SalesV1/Dto/Error.php b/src/Seller/SalesV1/Dto/Error.php new file mode 100644 index 000000000..b1c69e5da --- /dev/null +++ b/src/Seller/SalesV1/Dto/Error.php @@ -0,0 +1,20 @@ + $this->marketplaceIds, + 'interval' => $this->interval, + 'granularity' => $this->granularity, + 'granularityTimeZone' => $this->granularityTimeZone, + 'buyerType' => $this->buyerType, + 'fulfillmentNetwork' => $this->fulfillmentNetwork, + 'firstDayOfWeek' => $this->firstDayOfWeek, + 'asin' => $this->asin, + 'sku' => $this->sku, + ]); + } + + public function resolveEndpoint(): string + { + return '/sales/v1/orderMetrics'; + } + + public function createDtoFromResponse(Response $response): GetOrderMetricsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetOrderMetricsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SalesV1/Responses/GetOrderMetricsResponse.php b/src/Seller/SalesV1/Responses/GetOrderMetricsResponse.php new file mode 100644 index 000000000..78d7f2c2c --- /dev/null +++ b/src/Seller/SalesV1/Responses/GetOrderMetricsResponse.php @@ -0,0 +1,22 @@ + [OrderMetricsInterval::class], 'errors' => [Error::class]]; + + /** + * @param OrderMetricsInterval[]|null $payload A set of order metrics, each scoped to a particular time interval. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/SellerConnector.php b/src/Seller/SellerConnector.php new file mode 100644 index 000000000..c9b6a3daa --- /dev/null +++ b/src/Seller/SellerConnector.php @@ -0,0 +1,355 @@ +aPlusContentV20201101(); + } + + public function authorization(): AuthorizationV1\Api + { + return $this->authorizationV1(); + } + + public function catalogItems(): CatalogItemsV20220401\Api + { + return $this->catalogItemsV20220401(); + } + + public function dataKiosk(): DataKioskV20231115\Api + { + return $this->dataKioskV20231115(); + } + + public function easyShip(): EasyShipV20220323\Api + { + return $this->easyShipV20220323(); + } + + public function fbaInbound(): FBAInboundV0\Api + { + return $this->fbaInboundV0(); + } + + public function fbaInboundEligibility(): FBAInboundEligibilityV1\Api + { + return $this->fbaInboundEligibilityV1(); + } + + public function fbaInventory(): FBAInventoryV1\Api + { + return $this->fbaInventoryV1(); + } + + public function fbaOutbound(): FBAOutboundV20200701\Api + { + return $this->fbaOutboundV20200701(); + } + + public function fbaSmallAndLight(): FBASmallAndLightV1\Api + { + return $this->fbaSmallAndLightV1(); + } + + public function feeds(): FeedsV20210630\Api + { + return $this->feedsV20210630(); + } + + public function finances(): FinancesV0\Api + { + return $this->financesV0(); + } + + public function listingsItems(): ListingsItemsV20210801\Api + { + return $this->listingsItemsV20210801(); + } + + public function listingsRestrictions(): ListingsRestrictionsV20210801\Api + { + return $this->listingsRestrictionsV20210801(); + } + + public function merchantFulfillment(): MerchantFulfillmentV0\Api + { + return $this->merchantFulfillmentV0(); + } + + public function messaging(): MessagingV1\Api + { + return $this->messagingV1(); + } + + public function notifications(): NotificationsV1\Api + { + return $this->notificationsV1(); + } + + public function orders(): OrdersV0\Api + { + return $this->ordersV0(); + } + + public function productFees(): ProductFeesV0\Api + { + return $this->productFeesV0(); + } + + public function productPricing(): ProductPricingV20220501\Api + { + return $this->productPricingV20220501(); + } + + public function productTypeDefinitions(): ProductTypeDefinitionsV20200901\Api + { + return $this->productTypeDefinitionsV20200901(); + } + + public function replenishment(): ReplenishmentV20221107\Api + { + return $this->replenishmentV20221107(); + } + + public function reports(): ReportsV20210630\Api + { + return $this->reportsV20210630(); + } + + public function sales(): SalesV1\Api + { + return $this->salesV1(); + } + + public function sellers(): SellersV1\Api + { + return $this->sellersV1(); + } + + public function services(): ServicesV1\Api + { + return $this->servicesV1(); + } + + public function shipmentInvoicing(): ShipmentInvoicingV0\Api + { + return $this->shipmentInvoicingV0(); + } + + public function shipping(): ShippingV2\Api + { + return $this->shippingV2(); + } + + public function solicitations(): SolicitationsV1\Api + { + return $this->solicitationsV1(); + } + + public function supplySources(): SupplySourcesV20200701\Api + { + return $this->supplySourcesV20200701(); + } + + public function tokens(): TokensV20210301\Api + { + return $this->tokensV20210301(); + } + + public function uploads(): UploadsV20201101\Api + { + return $this->uploadsV20201101(); + } + + public function aPlusContentV20201101(): APlusContentV20201101\Api + { + return new APlusContentV20201101\Api($this); + } + + public function authorizationV1(): AuthorizationV1\Api + { + return new AuthorizationV1\Api($this); + } + + public function catalogItemsV20220401(): CatalogItemsV20220401\Api + { + return new CatalogItemsV20220401\Api($this); + } + + public function catalogItemsV20201201(): CatalogItemsV20201201\Api + { + return new CatalogItemsV20201201\Api($this); + } + + public function catalogItemsV0(): CatalogItemsV0\Api + { + return new CatalogItemsV0\Api($this); + } + + public function dataKioskV20231115(): DataKioskV20231115\Api + { + return new DataKioskV20231115\Api($this); + } + + public function easyShipV20220323(): EasyShipV20220323\Api + { + return new EasyShipV20220323\Api($this); + } + + public function fbaInboundV0(): FBAInboundV0\Api + { + return new FBAInboundV0\Api($this); + } + + public function fbaInboundEligibilityV1(): FBAInboundEligibilityV1\Api + { + return new FBAInboundEligibilityV1\Api($this); + } + + public function fbaInventoryV1(): FBAInventoryV1\Api + { + return new FBAInventoryV1\Api($this); + } + + public function fbaOutboundV20200701(): FBAOutboundV20200701\Api + { + return new FBAOutboundV20200701\Api($this); + } + + public function fbaSmallAndLightV1(): FBASmallAndLightV1\Api + { + return new FBASmallAndLightV1\Api($this); + } + + public function feedsV20210630(): FeedsV20210630\Api + { + return new FeedsV20210630\Api($this); + } + + public function financesV0(): FinancesV0\Api + { + return new FinancesV0\Api($this); + } + + public function listingsItemsV20210801(): ListingsItemsV20210801\Api + { + return new ListingsItemsV20210801\Api($this); + } + + public function listingsItemsV20200901(): ListingsItemsV20200901\Api + { + return new ListingsItemsV20200901\Api($this); + } + + public function listingsRestrictionsV20210801(): ListingsRestrictionsV20210801\Api + { + return new ListingsRestrictionsV20210801\Api($this); + } + + public function merchantFulfillmentV0(): MerchantFulfillmentV0\Api + { + return new MerchantFulfillmentV0\Api($this); + } + + public function messagingV1(): MessagingV1\Api + { + return new MessagingV1\Api($this); + } + + public function notificationsV1(): NotificationsV1\Api + { + return new NotificationsV1\Api($this); + } + + public function ordersV0(): OrdersV0\Api + { + return new OrdersV0\Api($this); + } + + public function productFeesV0(): ProductFeesV0\Api + { + return new ProductFeesV0\Api($this); + } + + public function productPricingV20220501(): ProductPricingV20220501\Api + { + return new ProductPricingV20220501\Api($this); + } + + public function productPricingV0(): ProductPricingV0\Api + { + return new ProductPricingV0\Api($this); + } + + public function productTypeDefinitionsV20200901(): ProductTypeDefinitionsV20200901\Api + { + return new ProductTypeDefinitionsV20200901\Api($this); + } + + public function replenishmentV20221107(): ReplenishmentV20221107\Api + { + return new ReplenishmentV20221107\Api($this); + } + + public function reportsV20210630(): ReportsV20210630\Api + { + return new ReportsV20210630\Api($this); + } + + public function salesV1(): SalesV1\Api + { + return new SalesV1\Api($this); + } + + public function sellersV1(): SellersV1\Api + { + return new SellersV1\Api($this); + } + + public function servicesV1(): ServicesV1\Api + { + return new ServicesV1\Api($this); + } + + public function shipmentInvoicingV0(): ShipmentInvoicingV0\Api + { + return new ShipmentInvoicingV0\Api($this); + } + + public function shippingV2(): ShippingV2\Api + { + return new ShippingV2\Api($this); + } + + public function shippingV1(): ShippingV1\Api + { + return new ShippingV1\Api($this); + } + + public function solicitationsV1(): SolicitationsV1\Api + { + return new SolicitationsV1\Api($this); + } + + public function supplySourcesV20200701(): SupplySourcesV20200701\Api + { + return new SupplySourcesV20200701\Api($this); + } + + public function tokensV20210301(): TokensV20210301\Api + { + return new TokensV20210301\Api($this); + } + + public function uploadsV20201101(): UploadsV20201101\Api + { + return new UploadsV20201101\Api($this); + } +} diff --git a/src/Seller/SellersV1/Api.php b/src/Seller/SellersV1/Api.php new file mode 100644 index 000000000..77f8e439e --- /dev/null +++ b/src/Seller/SellersV1/Api.php @@ -0,0 +1,17 @@ +connector->send($request); + } +} diff --git a/src/Seller/SellersV1/Dto/Error.php b/src/Seller/SellersV1/Dto/Error.php new file mode 100644 index 000000000..5744e3229 --- /dev/null +++ b/src/Seller/SellersV1/Dto/Error.php @@ -0,0 +1,20 @@ +status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetMarketplaceParticipationsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SellersV1/Responses/GetMarketplaceParticipationsResponse.php b/src/Seller/SellersV1/Responses/GetMarketplaceParticipationsResponse.php new file mode 100644 index 000000000..cdc474edd --- /dev/null +++ b/src/Seller/SellersV1/Responses/GetMarketplaceParticipationsResponse.php @@ -0,0 +1,25 @@ + [MarketplaceParticipation::class], + 'errors' => [Error::class], + ]; + + /** + * @param MarketplaceParticipation[]|null $payload List of marketplace participations. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Api.php b/src/Seller/ServicesV1/Api.php new file mode 100644 index 000000000..1a47523fa --- /dev/null +++ b/src/Seller/ServicesV1/Api.php @@ -0,0 +1,300 @@ +connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon defined service job identifier. + * @param string $cancellationReasonCode A cancel reason code that specifies the reason for cancelling a service job. + */ + public function cancelServiceJobByServiceJobId(string $serviceJobId, string $cancellationReasonCode): Response + { + $request = new CancelServiceJobByServiceJobId($serviceJobId, $cancellationReasonCode); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon defined service job identifier. + */ + public function completeServiceJobByServiceJobId(string $serviceJobId): Response + { + $request = new CompleteServiceJobByServiceJobId($serviceJobId); + + return $this->connector->send($request); + } + + /** + * @param array $marketplaceIds Used to select jobs that were placed in the specified marketplaces. + * @param ?array $serviceOrderIds List of service order ids for the query you want to perform.Max values supported 20. + * @param ?array $serviceJobStatus A list of one or more job status by which to filter the list of jobs. + * @param ?string $pageToken String returned in the response of your previous request. + * @param ?int $pageSize A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. + * @param ?string $sortField Sort fields on which you want to sort the output. + * @param ?string $sortOrder Sort order for the query you want to perform. + * @param ?string $createdAfter A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. + * @param ?string $createdBefore A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format. + * @param ?string $lastUpdatedAfter A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. + * @param ?string $lastUpdatedBefore A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format. + * @param ?string $scheduleStartDate A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. + * @param ?string $scheduleEndDate A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. + * @param ?array $asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. + * @param ?array $requiredSkills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. + * @param ?array $storeIds List of Amazon-defined identifiers for the region scope. Max values supported is 50. + */ + public function getServiceJobs( + array $marketplaceIds, + ?array $serviceOrderIds = null, + ?array $serviceJobStatus = null, + ?string $pageToken = null, + ?int $pageSize = null, + ?string $sortField = null, + ?string $sortOrder = null, + ?string $createdAfter = null, + ?string $createdBefore = null, + ?string $lastUpdatedAfter = null, + ?string $lastUpdatedBefore = null, + ?string $scheduleStartDate = null, + ?string $scheduleEndDate = null, + ?array $asins = null, + ?array $requiredSkills = null, + ?array $storeIds = null, + ): Response { + $request = new GetServiceJobs($marketplaceIds, $serviceOrderIds, $serviceJobStatus, $pageToken, $pageSize, $sortField, $sortOrder, $createdAfter, $createdBefore, $lastUpdatedAfter, $lastUpdatedBefore, $scheduleStartDate, $scheduleEndDate, $asins, $requiredSkills, $storeIds); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon defined service job identifier. + * @param AddAppointmentRequest $addAppointmentRequest Input for add appointment operation. + */ + public function addAppointmentForServiceJobByServiceJobId( + string $serviceJobId, + AddAppointmentRequest $addAppointmentRequest, + ): Response { + $request = new AddAppointmentForServiceJobByServiceJobId($serviceJobId, $addAppointmentRequest); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon defined service job identifier. + * @param string $appointmentId An existing appointment identifier for the Service Job. + * @param RescheduleAppointmentRequest $rescheduleAppointmentRequest Input for rescheduled appointment operation. + */ + public function rescheduleAppointmentForServiceJobByServiceJobId( + string $serviceJobId, + string $appointmentId, + RescheduleAppointmentRequest $rescheduleAppointmentRequest, + ): Response { + $request = new RescheduleAppointmentForServiceJobByServiceJobId($serviceJobId, $appointmentId, $rescheduleAppointmentRequest); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. + * @param string $appointmentId An Amazon-defined identifier of active service job appointment. + * @param AssignAppointmentResourcesRequest $assignAppointmentResourcesRequest Request schema for the `assignAppointmentResources` operation. + */ + public function assignAppointmentResources( + string $serviceJobId, + string $appointmentId, + AssignAppointmentResourcesRequest $assignAppointmentResourcesRequest, + ): Response { + $request = new AssignAppointmentResources($serviceJobId, $appointmentId, $assignAppointmentResourcesRequest); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API. + * @param string $appointmentId An Amazon-defined identifier of active service job appointment. + * @param SetAppointmentFulfillmentDataRequest $setAppointmentFulfillmentDataRequest Input for set appointment fulfillment data operation. + */ + public function setAppointmentFulfillmentData( + string $serviceJobId, + string $appointmentId, + SetAppointmentFulfillmentDataRequest $setAppointmentFulfillmentDataRequest, + ): Response { + $request = new SetAppointmentFulfillmentData($serviceJobId, $appointmentId, $setAppointmentFulfillmentDataRequest); + + return $this->connector->send($request); + } + + /** + * @param string $resourceId Resource Identifier. + * @param RangeSlotCapacityQuery $rangeSlotCapacityQuery Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + * @param ?string $nextPageToken Next page token returned in the response of your previous request. + */ + public function getRangeSlotCapacity( + string $resourceId, + RangeSlotCapacityQuery $rangeSlotCapacityQuery, + array $marketplaceIds, + ?string $nextPageToken = null, + ): Response { + $request = new GetRangeSlotCapacity($resourceId, $rangeSlotCapacityQuery, $marketplaceIds, $nextPageToken); + + return $this->connector->send($request); + } + + /** + * @param string $resourceId Resource Identifier. + * @param FixedSlotCapacityQuery $fixedSlotCapacityQuery Request schema for the `getFixedSlotCapacity` operation. This schema is used to define the time range, capacity types and slot duration which are being queried. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + * @param ?string $nextPageToken Next page token returned in the response of your previous request. + */ + public function getFixedSlotCapacity( + string $resourceId, + FixedSlotCapacityQuery $fixedSlotCapacityQuery, + array $marketplaceIds, + ?string $nextPageToken = null, + ): Response { + $request = new GetFixedSlotCapacity($resourceId, $fixedSlotCapacityQuery, $marketplaceIds, $nextPageToken); + + return $this->connector->send($request); + } + + /** + * @param string $resourceId Resource (store) Identifier + * @param UpdateScheduleRequest $updateScheduleRequest Request schema for the `updateSchedule` operation. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + */ + public function updateSchedule( + string $resourceId, + UpdateScheduleRequest $updateScheduleRequest, + array $marketplaceIds, + ): Response { + $request = new UpdateSchedule($resourceId, $updateScheduleRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param CreateReservationRequest $createReservationRequest Request schema for the `createReservation` operation. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + */ + public function createReservation( + CreateReservationRequest $createReservationRequest, + array $marketplaceIds, + ): Response { + $request = new CreateReservation($createReservationRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $reservationId Reservation Identifier + * @param UpdateReservationRequest $updateReservationRequest Request schema for the `updateReservation` operation. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + */ + public function updateReservation( + string $reservationId, + UpdateReservationRequest $updateReservationRequest, + array $marketplaceIds, + ): Response { + $request = new UpdateReservation($reservationId, $updateReservationRequest, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $reservationId Reservation Identifier + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + */ + public function cancelReservation(string $reservationId, array $marketplaceIds): Response + { + $request = new CancelReservation($reservationId, $marketplaceIds); + + return $this->connector->send($request); + } + + /** + * @param string $serviceJobId A service job identifier to retrive appointment slots for associated service. + * @param array $marketplaceIds An identifier for the marketplace in which the resource operates. + * @param ?string $startTime A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. + * @param ?string $endTime A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. + */ + public function getAppointmmentSlotsByJobId( + string $serviceJobId, + array $marketplaceIds, + ?string $startTime = null, + ?string $endTime = null, + ): Response { + $request = new GetAppointmmentSlotsByJobId($serviceJobId, $marketplaceIds, $startTime, $endTime); + + return $this->connector->send($request); + } + + /** + * @param string $asin ASIN associated with the service. + * @param string $storeId Store identifier defining the region scope to retrive appointment slots. + * @param array $marketplaceIds An identifier for the marketplace for which appointment slots are queried + * @param ?string $startTime A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. + * @param ?string $endTime A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. + */ + public function getAppointmentSlots( + string $asin, + string $storeId, + array $marketplaceIds, + ?string $startTime = null, + ?string $endTime = null, + ): Response { + $request = new GetAppointmentSlots($asin, $storeId, $marketplaceIds, $startTime, $endTime); + + return $this->connector->send($request); + } + + /** + * @param ServiceUploadDocument $serviceUploadDocument Input for to be uploaded document. + */ + public function createServiceDocumentUploadDestination(ServiceUploadDocument $serviceUploadDocument): Response + { + $request = new CreateServiceDocumentUploadDestination($serviceUploadDocument); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ServicesV1/Dto/AddAppointmentRequest.php b/src/Seller/ServicesV1/Dto/AddAppointmentRequest.php new file mode 100644 index 000000000..103114689 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/AddAppointmentRequest.php @@ -0,0 +1,16 @@ + [Technician::class]]; + + /** + * @param ?string $appointmentId The appointment identifier. + * @param ?string $appointmentStatus The status of the appointment. + * @param ?AppointmentTime $appointmentTime The time of the appointment window. + * @param Technician[]|null $assignedTechnicians A list of technicians assigned to the service job. + * @param ?string $rescheduledAppointmentId The appointment identifier. + * @param ?Poa $poa Proof of Appointment (POA) details. + */ + public function __construct( + public readonly ?string $appointmentId = null, + public readonly ?string $appointmentStatus = null, + public readonly ?AppointmentTime $appointmentTime = null, + public readonly ?array $assignedTechnicians = null, + public readonly ?string $rescheduledAppointmentId = null, + public readonly ?Poa $poa = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/AppointmentResource.php b/src/Seller/ServicesV1/Dto/AppointmentResource.php new file mode 100644 index 000000000..e1a6faf6a --- /dev/null +++ b/src/Seller/ServicesV1/Dto/AppointmentResource.php @@ -0,0 +1,16 @@ + [AppointmentSlot::class]]; + + /** + * @param ?string $schedulingType Defines the type of slots. + * @param ?DateTime $startTime Start Time from which the appointment slots are generated in ISO 8601 format. + * @param ?DateTime $endTime End Time up to which the appointment slots are generated in ISO 8601 format. + * @param AppointmentSlot[]|null $appointmentSlots A list of time windows along with associated capacity in which the service can be performed. + */ + public function __construct( + public readonly ?string $schedulingType = null, + public readonly ?\DateTime $startTime = null, + public readonly ?\DateTime $endTime = null, + public readonly ?array $appointmentSlots = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/AppointmentTime.php b/src/Seller/ServicesV1/Dto/AppointmentTime.php new file mode 100644 index 000000000..b5a090456 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/AppointmentTime.php @@ -0,0 +1,18 @@ + [AppointmentResource::class]]; + + /** + * @param AppointmentResource[] $resources List of resources that performs or performed job appointment fulfillment. + */ + public function __construct( + public readonly array $resources, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/AssociatedItem.php b/src/Seller/ServicesV1/Dto/AssociatedItem.php new file mode 100644 index 000000000..3d51d4b3a --- /dev/null +++ b/src/Seller/ServicesV1/Dto/AssociatedItem.php @@ -0,0 +1,28 @@ + [Warning::class], 'errors' => [Error::class]]; + + /** + * @param ?Reservation $reservation Reservation object reduces the capacity of a resource. + * @param Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Reservation $reservation = null, + public readonly ?array $warnings = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/CreateReservationRequest.php b/src/Seller/ServicesV1/Dto/CreateReservationRequest.php new file mode 100644 index 000000000..8a5c034bb --- /dev/null +++ b/src/Seller/ServicesV1/Dto/CreateReservationRequest.php @@ -0,0 +1,18 @@ + [ServiceJob::class]]; + + /** + * @param ?int $totalResultSize Total result size of the query result. + * @param ?string $nextPageToken A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results. + * @param ?string $previousPageToken A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results. + * @param ServiceJob[]|null $jobs List of job details for the given input. + */ + public function __construct( + public readonly ?int $totalResultSize = null, + public readonly ?string $nextPageToken = null, + public readonly ?string $previousPageToken = null, + public readonly ?array $jobs = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/Payload.php b/src/Seller/ServicesV1/Dto/Payload.php new file mode 100644 index 000000000..9dc3420c0 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/Payload.php @@ -0,0 +1,18 @@ + [Warning::class]]; + + /** + * @param Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. + */ + public function __construct( + public readonly ?array $warnings = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/Poa.php b/src/Seller/ServicesV1/Dto/Poa.php new file mode 100644 index 000000000..3dd021079 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/Poa.php @@ -0,0 +1,26 @@ + [Technician::class]]; + + /** + * @param ?AppointmentTime $appointmentTime The time of the appointment window. + * @param Technician[]|null $technicians A list of technicians. + * @param ?string $uploadingTechnician The identifier of the technician who uploaded the POA. + * @param ?DateTime $uploadTime The date and time when the POA was uploaded in ISO 8601 format. + * @param ?string $poaType The type of POA uploaded. + */ + public function __construct( + public readonly ?AppointmentTime $appointmentTime = null, + public readonly ?array $technicians = null, + public readonly ?string $uploadingTechnician = null, + public readonly ?\DateTime $uploadTime = null, + public readonly ?string $poaType = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/RangeCapacity.php b/src/Seller/ServicesV1/Dto/RangeCapacity.php new file mode 100644 index 000000000..4bb0fda42 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/RangeCapacity.php @@ -0,0 +1,20 @@ + [RangeSlot::class]]; + + /** + * @param ?string $capacityType Type of capacity + * @param RangeSlot[]|null $slots Array of capacity slots in range slot format. + */ + public function __construct( + public readonly ?string $capacityType = null, + public readonly ?array $slots = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/RangeSlot.php b/src/Seller/ServicesV1/Dto/RangeSlot.php new file mode 100644 index 000000000..ddfa7fce4 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/RangeSlot.php @@ -0,0 +1,20 @@ + [AppointmentTime::class], + 'appointments' => [Appointment::class], + 'associatedItems' => [AssociatedItem::class], + ]; + + /** + * @param ?DateTime $createTime The date and time of the creation of the job in ISO 8601 format. + * @param ?string $serviceJobId Amazon identifier for the service job. + * @param ?string $serviceJobStatus The status of the service job. + * @param ?ScopeOfWork $scopeOfWork The scope of work for the order. + * @param ?Seller $seller Information about the seller of the service job. + * @param ?ServiceJobProvider $serviceJobProvider Information about the service job provider. + * @param AppointmentTime[]|null $preferredAppointmentTimes A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order. + * @param Appointment[]|null $appointments A list of appointments. + * @param ?string $serviceOrderId The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. + * @param ?string $marketplaceId The marketplace identifier. + * @param ?string $storeId The Amazon-defined identifier for the region scope. + * @param ?Buyer $buyer Information about the buyer. + * @param AssociatedItem[]|null $associatedItems A list of items associated with the service job. + * @param ?ServiceLocation $serviceLocation Information about the location of the service job. + */ + public function __construct( + public readonly ?\DateTime $createTime = null, + public readonly ?string $serviceJobId = null, + public readonly ?string $serviceJobStatus = null, + public readonly ?ScopeOfWork $scopeOfWork = null, + public readonly ?Seller $seller = null, + public readonly ?ServiceJobProvider $serviceJobProvider = null, + public readonly ?array $preferredAppointmentTimes = null, + public readonly ?array $appointments = null, + public readonly ?string $serviceOrderId = null, + public readonly ?string $marketplaceId = null, + public readonly ?string $storeId = null, + public readonly ?Buyer $buyer = null, + public readonly ?array $associatedItems = null, + public readonly ?ServiceLocation $serviceLocation = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/ServiceJobProvider.php b/src/Seller/ServicesV1/Dto/ServiceJobProvider.php new file mode 100644 index 000000000..dbf5b0bee --- /dev/null +++ b/src/Seller/ServicesV1/Dto/ServiceJobProvider.php @@ -0,0 +1,16 @@ + 'contentMD5']; + + /** + * @param string $contentType The content type of the to-be-uploaded file + * @param float $contentLength The content length of the to-be-uploaded file + * @param ?string $contentMd5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. + */ + public function __construct( + public readonly string $contentType, + public readonly float $contentLength, + public readonly ?string $contentMd5 = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/SetAppointmentFulfillmentDataRequest.php b/src/Seller/ServicesV1/Dto/SetAppointmentFulfillmentDataRequest.php new file mode 100644 index 000000000..b2f4206b2 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/SetAppointmentFulfillmentDataRequest.php @@ -0,0 +1,25 @@ + [AppointmentResource::class], + 'fulfillmentDocuments' => [FulfillmentDocument::class], + ]; + + /** + * @param ?FulfillmentTime $fulfillmentTime Input for fulfillment time details + * @param AppointmentResource[]|null $appointmentResources List of resources that performs or performed job appointment fulfillment. + * @param FulfillmentDocument[]|null $fulfillmentDocuments List of documents captured during service appointment fulfillment. + */ + public function __construct( + public readonly ?FulfillmentTime $fulfillmentTime = null, + public readonly ?array $appointmentResources = null, + public readonly ?array $fulfillmentDocuments = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/Technician.php b/src/Seller/ServicesV1/Dto/Technician.php new file mode 100644 index 000000000..4209f9005 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/Technician.php @@ -0,0 +1,18 @@ + [Warning::class], 'errors' => [Error::class]]; + + /** + * @param ?Reservation $reservation Reservation object reduces the capacity of a resource. + * @param Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Reservation $reservation = null, + public readonly ?array $warnings = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/UpdateReservationRequest.php b/src/Seller/ServicesV1/Dto/UpdateReservationRequest.php new file mode 100644 index 000000000..ca95eb174 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/UpdateReservationRequest.php @@ -0,0 +1,18 @@ + [Warning::class], 'errors' => [Error::class]]; + + /** + * @param ?AvailabilityRecord $availability `AvailabilityRecord` to represent the capacity of a resource over a time range. + * @param Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?AvailabilityRecord $availability = null, + public readonly ?array $warnings = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/UpdateScheduleRequest.php b/src/Seller/ServicesV1/Dto/UpdateScheduleRequest.php new file mode 100644 index 000000000..0a4f2df48 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/UpdateScheduleRequest.php @@ -0,0 +1,18 @@ + [AvailabilityRecord::class]]; + + /** + * @param AvailabilityRecord[] $schedules List of `AvailabilityRecord`s to represent the capacity of a resource over a time range. + */ + public function __construct( + public readonly array $schedules, + ) { + } +} diff --git a/src/Seller/ServicesV1/Dto/Warning.php b/src/Seller/ServicesV1/Dto/Warning.php new file mode 100644 index 000000000..ec5c078e0 --- /dev/null +++ b/src/Seller/ServicesV1/Dto/Warning.php @@ -0,0 +1,20 @@ +serviceJobId}/appointments"; + } + + public function createDtoFromResponse(Response $response): SetAppointmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => SetAppointmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->addAppointmentRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/AssignAppointmentResources.php b/src/Seller/ServicesV1/Requests/AssignAppointmentResources.php new file mode 100644 index 000000000..213516009 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/AssignAppointmentResources.php @@ -0,0 +1,51 @@ +serviceJobId}/appointments/{$this->appointmentId}/resources"; + } + + public function createDtoFromResponse(Response $response): AssignAppointmentResourcesResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => AssignAppointmentResourcesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->assignAppointmentResourcesRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/CancelReservation.php b/src/Seller/ServicesV1/Requests/CancelReservation.php new file mode 100644 index 000000000..4a7ae9bc8 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/CancelReservation.php @@ -0,0 +1,50 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/reservation/{$this->reservationId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|CancelReservationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => CancelReservationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/CancelServiceJobByServiceJobId.php b/src/Seller/ServicesV1/Requests/CancelServiceJobByServiceJobId.php new file mode 100644 index 000000000..f4c1416fa --- /dev/null +++ b/src/Seller/ServicesV1/Requests/CancelServiceJobByServiceJobId.php @@ -0,0 +1,48 @@ + $this->cancellationReasonCode]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/serviceJobs/{$this->serviceJobId}/cancellations"; + } + + public function createDtoFromResponse(Response $response): CancelServiceJobByServiceJobIdResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => CancelServiceJobByServiceJobIdResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/CompleteServiceJobByServiceJobId.php b/src/Seller/ServicesV1/Requests/CompleteServiceJobByServiceJobId.php new file mode 100644 index 000000000..330ed274d --- /dev/null +++ b/src/Seller/ServicesV1/Requests/CompleteServiceJobByServiceJobId.php @@ -0,0 +1,41 @@ +serviceJobId}/completions"; + } + + public function createDtoFromResponse(Response $response): CompleteServiceJobByServiceJobIdResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => CompleteServiceJobByServiceJobIdResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/CreateReservation.php b/src/Seller/ServicesV1/Requests/CreateReservation.php new file mode 100644 index 000000000..a4e152baf --- /dev/null +++ b/src/Seller/ServicesV1/Requests/CreateReservation.php @@ -0,0 +1,58 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return '/service/v1/reservation'; + } + + public function createDtoFromResponse(Response $response): CreateReservationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => CreateReservationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createReservationRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/CreateServiceDocumentUploadDestination.php b/src/Seller/ServicesV1/Requests/CreateServiceDocumentUploadDestination.php new file mode 100644 index 000000000..059d9b042 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/CreateServiceDocumentUploadDestination.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => CreateServiceDocumentUploadDestination1::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->serviceUploadDocument->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetAppointmentSlots.php b/src/Seller/ServicesV1/Requests/GetAppointmentSlots.php new file mode 100644 index 000000000..cbcce54e3 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetAppointmentSlots.php @@ -0,0 +1,60 @@ + $this->asin, + 'storeId' => $this->storeId, + 'marketplaceIds' => $this->marketplaceIds, + 'startTime' => $this->startTime, + 'endTime' => $this->endTime, + ]); + } + + public function resolveEndpoint(): string + { + return '/service/v1/appointmentSlots'; + } + + public function createDtoFromResponse(Response $response): GetAppointmentSlotsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 422, 429, 500, 503 => GetAppointmentSlotsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetAppointmmentSlotsByJobId.php b/src/Seller/ServicesV1/Requests/GetAppointmmentSlotsByJobId.php new file mode 100644 index 000000000..80b7878f9 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetAppointmmentSlotsByJobId.php @@ -0,0 +1,52 @@ + $this->marketplaceIds, 'startTime' => $this->startTime, 'endTime' => $this->endTime]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/serviceJobs/{$this->serviceJobId}/appointmentSlots"; + } + + public function createDtoFromResponse(Response $response): GetAppointmentSlotsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 422, 429, 500, 503 => GetAppointmentSlotsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetFixedSlotCapacity.php b/src/Seller/ServicesV1/Requests/GetFixedSlotCapacity.php new file mode 100644 index 000000000..efd90aed2 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetFixedSlotCapacity.php @@ -0,0 +1,64 @@ + $this->marketplaceIds, 'nextPageToken' => $this->nextPageToken]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/serviceResources/{$this->resourceId}/capacity/fixed"; + } + + public function createDtoFromResponse(Response $response): FixedSlotCapacity|FixedSlotCapacityErrors + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => FixedSlotCapacity::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => FixedSlotCapacityErrors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->fixedSlotCapacityQuery->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetRangeSlotCapacity.php b/src/Seller/ServicesV1/Requests/GetRangeSlotCapacity.php new file mode 100644 index 000000000..42f14cc44 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetRangeSlotCapacity.php @@ -0,0 +1,64 @@ + $this->marketplaceIds, 'nextPageToken' => $this->nextPageToken]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/serviceResources/{$this->resourceId}/capacity/range"; + } + + public function createDtoFromResponse(Response $response): RangeSlotCapacity|RangeSlotCapacityErrors + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => RangeSlotCapacity::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => RangeSlotCapacityErrors::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->rangeSlotCapacityQuery->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetServiceJobByServiceJobId.php b/src/Seller/ServicesV1/Requests/GetServiceJobByServiceJobId.php new file mode 100644 index 000000000..d0889d2cc --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetServiceJobByServiceJobId.php @@ -0,0 +1,41 @@ +serviceJobId}"; + } + + public function createDtoFromResponse(Response $response): GetServiceJobByServiceJobIdResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => GetServiceJobByServiceJobIdResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/GetServiceJobs.php b/src/Seller/ServicesV1/Requests/GetServiceJobs.php new file mode 100644 index 000000000..670e31388 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/GetServiceJobs.php @@ -0,0 +1,93 @@ + $this->marketplaceIds, + 'serviceOrderIds' => $this->serviceOrderIds, + 'serviceJobStatus' => $this->serviceJobStatus, + 'pageToken' => $this->pageToken, + 'pageSize' => $this->pageSize, + 'sortField' => $this->sortField, + 'sortOrder' => $this->sortOrder, + 'createdAfter' => $this->createdAfter, + 'createdBefore' => $this->createdBefore, + 'lastUpdatedAfter' => $this->lastUpdatedAfter, + 'lastUpdatedBefore' => $this->lastUpdatedBefore, + 'scheduleStartDate' => $this->scheduleStartDate, + 'scheduleEndDate' => $this->scheduleEndDate, + 'asins' => $this->asins, + 'requiredSkills' => $this->requiredSkills, + 'storeIds' => $this->storeIds, + ]); + } + + public function resolveEndpoint(): string + { + return '/service/v1/serviceJobs'; + } + + public function createDtoFromResponse(Response $response): GetServiceJobsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetServiceJobsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ServicesV1/Requests/RescheduleAppointmentForServiceJobByServiceJobId.php b/src/Seller/ServicesV1/Requests/RescheduleAppointmentForServiceJobByServiceJobId.php new file mode 100644 index 000000000..dbbd2069f --- /dev/null +++ b/src/Seller/ServicesV1/Requests/RescheduleAppointmentForServiceJobByServiceJobId.php @@ -0,0 +1,55 @@ +serviceJobId}/appointments/{$this->appointmentId}"; + } + + public function createDtoFromResponse(Response $response): SetAppointmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 422, 429, 500, 503 => SetAppointmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->rescheduleAppointmentRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/SetAppointmentFulfillmentData.php b/src/Seller/ServicesV1/Requests/SetAppointmentFulfillmentData.php new file mode 100644 index 000000000..0baf85cb7 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/SetAppointmentFulfillmentData.php @@ -0,0 +1,53 @@ +serviceJobId}/appointments/{$this->appointmentId}/fulfillment"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 422, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->setAppointmentFulfillmentDataRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/UpdateReservation.php b/src/Seller/ServicesV1/Requests/UpdateReservation.php new file mode 100644 index 000000000..cc3842463 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/UpdateReservation.php @@ -0,0 +1,56 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/reservation/{$this->reservationId}"; + } + + public function createDtoFromResponse(Response $response): UpdateReservationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => UpdateReservationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateReservationRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Requests/UpdateSchedule.php b/src/Seller/ServicesV1/Requests/UpdateSchedule.php new file mode 100644 index 000000000..a25f63562 --- /dev/null +++ b/src/Seller/ServicesV1/Requests/UpdateSchedule.php @@ -0,0 +1,56 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/service/v1/serviceResources/{$this->resourceId}/schedules"; + } + + public function createDtoFromResponse(Response $response): UpdateScheduleResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => UpdateScheduleResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateScheduleRequest->toArray(); + } +} diff --git a/src/Seller/ServicesV1/Responses/AssignAppointmentResourcesResponse.php b/src/Seller/ServicesV1/Responses/AssignAppointmentResourcesResponse.php new file mode 100644 index 000000000..889b18be0 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/AssignAppointmentResourcesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Payload $payload The payload for the `assignAppointmentResource` operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Payload $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/CancelReservationResponse.php b/src/Seller/ServicesV1/Responses/CancelReservationResponse.php new file mode 100644 index 000000000..1b572d2c5 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/CancelReservationResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/CancelServiceJobByServiceJobIdResponse.php b/src/Seller/ServicesV1/Responses/CancelServiceJobByServiceJobIdResponse.php new file mode 100644 index 000000000..a340ecb8a --- /dev/null +++ b/src/Seller/ServicesV1/Responses/CancelServiceJobByServiceJobIdResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/CompleteServiceJobByServiceJobIdResponse.php b/src/Seller/ServicesV1/Responses/CompleteServiceJobByServiceJobIdResponse.php new file mode 100644 index 000000000..9dbc1c514 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/CompleteServiceJobByServiceJobIdResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/CreateReservationResponse.php b/src/Seller/ServicesV1/Responses/CreateReservationResponse.php new file mode 100644 index 000000000..736b874ba --- /dev/null +++ b/src/Seller/ServicesV1/Responses/CreateReservationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CreateReservationRecord $payload `CreateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CreateReservationRecord $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/CreateServiceDocumentUploadDestination.php b/src/Seller/ServicesV1/Responses/CreateServiceDocumentUploadDestination.php new file mode 100644 index 000000000..d724e9fe9 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/CreateServiceDocumentUploadDestination.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ServiceDocumentUploadDestination $payload Information about an upload destination. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ServiceDocumentUploadDestination $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/ErrorList.php b/src/Seller/ServicesV1/Responses/ErrorList.php new file mode 100644 index 000000000..089784702 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errorList A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errorList, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/FixedSlotCapacity.php b/src/Seller/ServicesV1/Responses/FixedSlotCapacity.php new file mode 100644 index 000000000..41fa9dae2 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/FixedSlotCapacity.php @@ -0,0 +1,25 @@ + [RangeCapacity::class]]; + + /** + * @param ?string $resourceId Resource Identifier. + * @param ?float $slotDuration The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360. + * @param RangeCapacity[]|null $capacities Array of range capacities where each entry is for a specific capacity type. + * @param ?string $nextPageToken Next page token, if there are more pages. + */ + public function __construct( + public readonly ?string $resourceId = null, + public readonly ?float $slotDuration = null, + public readonly ?array $capacities = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/FixedSlotCapacityErrors.php b/src/Seller/ServicesV1/Responses/FixedSlotCapacityErrors.php new file mode 100644 index 000000000..92f62b95a --- /dev/null +++ b/src/Seller/ServicesV1/Responses/FixedSlotCapacityErrors.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/GetAppointmentSlotsResponse.php b/src/Seller/ServicesV1/Responses/GetAppointmentSlotsResponse.php new file mode 100644 index 000000000..58a2b1086 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/GetAppointmentSlotsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?AppointmentSlotReport $payload Availability information as per the service context queried. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?AppointmentSlotReport $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/GetServiceJobByServiceJobIdResponse.php b/src/Seller/ServicesV1/Responses/GetServiceJobByServiceJobIdResponse.php new file mode 100644 index 000000000..1c9e99d2c --- /dev/null +++ b/src/Seller/ServicesV1/Responses/GetServiceJobByServiceJobIdResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ServiceJob $payload The job details of a service. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ServiceJob $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/GetServiceJobsResponse.php b/src/Seller/ServicesV1/Responses/GetServiceJobsResponse.php new file mode 100644 index 000000000..0fd7abc1c --- /dev/null +++ b/src/Seller/ServicesV1/Responses/GetServiceJobsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?JobListing $payload The payload for the `getServiceJobs` operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?JobListing $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/RangeSlotCapacity.php b/src/Seller/ServicesV1/Responses/RangeSlotCapacity.php new file mode 100644 index 000000000..4b6bb739b --- /dev/null +++ b/src/Seller/ServicesV1/Responses/RangeSlotCapacity.php @@ -0,0 +1,23 @@ + [RangeCapacity::class]]; + + /** + * @param ?string $resourceId Resource Identifier. + * @param RangeCapacity[]|null $capacities Array of range capacities where each entry is for a specific capacity type. + * @param ?string $nextPageToken Next page token, if there are more pages. + */ + public function __construct( + public readonly ?string $resourceId = null, + public readonly ?array $capacities = null, + public readonly ?string $nextPageToken = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/RangeSlotCapacityErrors.php b/src/Seller/ServicesV1/Responses/RangeSlotCapacityErrors.php new file mode 100644 index 000000000..fd766a2c3 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/RangeSlotCapacityErrors.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/SetAppointmentResponse.php b/src/Seller/ServicesV1/Responses/SetAppointmentResponse.php new file mode 100644 index 000000000..1de3fe8c9 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/SetAppointmentResponse.php @@ -0,0 +1,24 @@ + [Warning::class], 'errors' => [Error::class]]; + + /** + * @param ?string $appointmentId The appointment identifier. + * @param Warning[]|null $warnings A list of warnings returned in the sucessful execution response of an API request. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?string $appointmentId = null, + public readonly ?array $warnings = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/UpdateReservationResponse.php b/src/Seller/ServicesV1/Responses/UpdateReservationResponse.php new file mode 100644 index 000000000..6746a8b48 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/UpdateReservationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?UpdateReservationRecord $payload `UpdateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?UpdateReservationRecord $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ServicesV1/Responses/UpdateScheduleResponse.php b/src/Seller/ServicesV1/Responses/UpdateScheduleResponse.php new file mode 100644 index 000000000..15874bcd5 --- /dev/null +++ b/src/Seller/ServicesV1/Responses/UpdateScheduleResponse.php @@ -0,0 +1,22 @@ + [UpdateScheduleRecord::class], 'errors' => [Error::class]]; + + /** + * @param UpdateScheduleRecord[]|null $payload Contains the `UpdateScheduleRecords` for which the error/warning has occurred. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Api.php b/src/Seller/ShipmentInvoicingV0/Api.php new file mode 100644 index 000000000..efe0e0dbe --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Api.php @@ -0,0 +1,44 @@ +connector->send($request); + } + + /** + * @param string $shipmentId The identifier for the shipment. + * @param SubmitInvoiceRequest $submitInvoiceRequest The request schema for the submitInvoice operation. + */ + public function submitInvoice(string $shipmentId, SubmitInvoiceRequest $submitInvoiceRequest): Response + { + $request = new SubmitInvoice($shipmentId, $submitInvoiceRequest); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The shipment identifier for the shipment. + */ + public function getInvoiceStatus(string $shipmentId): Response + { + $request = new GetInvoiceStatus($shipmentId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/Address.php b/src/Seller/ShipmentInvoicingV0/Dto/Address.php new file mode 100644 index 000000000..c0cdc8288 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/Address.php @@ -0,0 +1,53 @@ + 'Name', + 'addressLine1' => 'AddressLine1', + 'addressLine2' => 'AddressLine2', + 'addressLine3' => 'AddressLine3', + 'city' => 'City', + 'county' => 'County', + 'district' => 'District', + 'stateOrRegion' => 'StateOrRegion', + 'postalCode' => 'PostalCode', + 'countryCode' => 'CountryCode', + 'phone' => 'Phone', + 'addressType' => 'AddressType', + ]; + + /** + * @param ?string $name The name. + * @param ?string $addressLine1 The street address. + * @param ?string $addressLine2 Additional street address information, if required. + * @param ?string $addressLine3 Additional street address information, if required. + * @param ?string $city The city. + * @param ?string $county The county. + * @param ?string $district The district. + * @param ?string $stateOrRegion The state or region. + * @param ?string $postalCode The postal code. + * @param ?string $countryCode The country code. + * @param ?string $phone The phone number. + * @param ?string $addressType The shipping address type. + */ + public function __construct( + public readonly ?string $name = null, + public readonly ?string $addressLine1 = null, + public readonly ?string $addressLine2 = null, + public readonly ?string $addressLine3 = null, + public readonly ?string $city = null, + public readonly ?string $county = null, + public readonly ?string $district = null, + public readonly ?string $stateOrRegion = null, + public readonly ?string $postalCode = null, + public readonly ?string $countryCode = null, + public readonly ?string $phone = null, + public readonly ?string $addressType = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/BuyerTaxInfo.php b/src/Seller/ShipmentInvoicingV0/Dto/BuyerTaxInfo.php new file mode 100644 index 000000000..69397b820 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/BuyerTaxInfo.php @@ -0,0 +1,28 @@ + 'CompanyLegalName', + 'taxingRegion' => 'TaxingRegion', + 'taxClassifications' => 'TaxClassifications', + ]; + + protected static array $complexArrayTypes = ['taxClassifications' => [TaxClassification::class]]; + + /** + * @param ?string $companyLegalName The legal name of the company. + * @param ?string $taxingRegion The country or region imposing the tax. + * @param TaxClassification[]|null $taxClassifications The list of tax classifications. + */ + public function __construct( + public readonly ?string $companyLegalName = null, + public readonly ?string $taxingRegion = null, + public readonly ?array $taxClassifications = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/Error.php b/src/Seller/ShipmentInvoicingV0/Dto/Error.php new file mode 100644 index 000000000..298549312 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/Error.php @@ -0,0 +1,20 @@ + 'CompanyLegalName', + 'taxingRegion' => 'TaxingRegion', + 'taxClassifications' => 'TaxClassifications', + ]; + + protected static array $complexArrayTypes = ['taxClassifications' => [TaxClassification::class]]; + + /** + * @param ?string $companyLegalName The legal name of the company. + * @param ?string $taxingRegion The country or region imposing the tax. + * @param TaxClassification[]|null $taxClassifications The list of tax classifications. + */ + public function __construct( + public readonly ?string $companyLegalName = null, + public readonly ?string $taxingRegion = null, + public readonly ?array $taxClassifications = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/Money.php b/src/Seller/ShipmentInvoicingV0/Dto/Money.php new file mode 100644 index 000000000..709968077 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/Money.php @@ -0,0 +1,20 @@ + 'CurrencyCode', 'amount' => 'Amount']; + + /** + * @param ?string $currencyCode Three-digit currency code in ISO 4217 format. + * @param ?string $amount The currency amount. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?string $amount = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/ShipmentDetail.php b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentDetail.php new file mode 100644 index 000000000..ef740058d --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentDetail.php @@ -0,0 +1,61 @@ + 'WarehouseId', + 'amazonOrderId' => 'AmazonOrderId', + 'amazonShipmentId' => 'AmazonShipmentId', + 'purchaseDate' => 'PurchaseDate', + 'shippingAddress' => 'ShippingAddress', + 'paymentMethodDetails' => 'PaymentMethodDetails', + 'marketplaceId' => 'MarketplaceId', + 'sellerId' => 'SellerId', + 'buyerName' => 'BuyerName', + 'buyerCounty' => 'BuyerCounty', + 'buyerTaxInfo' => 'BuyerTaxInfo', + 'marketplaceTaxInfo' => 'MarketplaceTaxInfo', + 'sellerDisplayName' => 'SellerDisplayName', + 'shipmentItems' => 'ShipmentItems', + ]; + + protected static array $complexArrayTypes = ['shipmentItems' => [ShipmentItem::class]]; + + /** + * @param ?string $warehouseId The Amazon-defined identifier for the warehouse. + * @param ?string $amazonOrderId The Amazon-defined identifier for the order. + * @param ?string $amazonShipmentId The Amazon-defined identifier for the shipment. + * @param ?DateTime $purchaseDate The date and time when the order was created. + * @param ?Address $shippingAddress The shipping address details of the shipment. + * @param ?string[] $paymentMethodDetails The list of payment method details. + * @param ?string $marketplaceId The identifier for the marketplace where the order was placed. + * @param ?string $sellerId The seller identifier. + * @param ?string $buyerName The name of the buyer. + * @param ?string $buyerCounty The county of the buyer. + * @param ?BuyerTaxInfo $buyerTaxInfo Tax information about the buyer. + * @param ?MarketplaceTaxInfo $marketplaceTaxInfo Tax information about the marketplace. + * @param ?string $sellerDisplayName The seller’s friendly name registered in the marketplace. + * @param ShipmentItem[]|null $shipmentItems A list of shipment items. + */ + public function __construct( + public readonly ?string $warehouseId = null, + public readonly ?string $amazonOrderId = null, + public readonly ?string $amazonShipmentId = null, + public readonly ?\DateTime $purchaseDate = null, + public readonly ?Address $shippingAddress = null, + public readonly ?array $paymentMethodDetails = null, + public readonly ?string $marketplaceId = null, + public readonly ?string $sellerId = null, + public readonly ?string $buyerName = null, + public readonly ?string $buyerCounty = null, + public readonly ?BuyerTaxInfo $buyerTaxInfo = null, + public readonly ?MarketplaceTaxInfo $marketplaceTaxInfo = null, + public readonly ?string $sellerDisplayName = null, + public readonly ?array $shipmentItems = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusInfo.php b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusInfo.php new file mode 100644 index 000000000..eab5ecb8a --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusInfo.php @@ -0,0 +1,20 @@ + 'AmazonShipmentId', 'invoiceStatus' => 'InvoiceStatus']; + + /** + * @param ?string $amazonShipmentId The Amazon-defined shipment identifier. + * @param ?string $invoiceStatus The shipment invoice status. + */ + public function __construct( + public readonly ?string $amazonShipmentId = null, + public readonly ?string $invoiceStatus = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusResponse.php b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusResponse.php new file mode 100644 index 000000000..36c0fa038 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentInvoiceStatusResponse.php @@ -0,0 +1,18 @@ + 'Shipments']; + + /** + * @param ?ShipmentInvoiceStatusInfo $shipments The shipment invoice status information. + */ + public function __construct( + public readonly ?ShipmentInvoiceStatusInfo $shipments = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/ShipmentItem.php b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentItem.php new file mode 100644 index 000000000..320414abd --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/ShipmentItem.php @@ -0,0 +1,50 @@ + 'ASIN', + 'sellerSku' => 'SellerSKU', + 'orderItemId' => 'OrderItemId', + 'title' => 'Title', + 'quantityOrdered' => 'QuantityOrdered', + 'itemPrice' => 'ItemPrice', + 'shippingPrice' => 'ShippingPrice', + 'giftWrapPrice' => 'GiftWrapPrice', + 'shippingDiscount' => 'ShippingDiscount', + 'promotionDiscount' => 'PromotionDiscount', + 'serialNumbers' => 'SerialNumbers', + ]; + + /** + * @param ?string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param ?string $sellerSku The seller SKU of the item. + * @param ?string $orderItemId The Amazon-defined identifier for the order item. + * @param ?string $title The name of the item. + * @param ?float $quantityOrdered The number of items ordered. + * @param ?Money $itemPrice The currency type and amount. + * @param ?Money $shippingPrice The currency type and amount. + * @param ?Money $giftWrapPrice The currency type and amount. + * @param ?Money $shippingDiscount The currency type and amount. + * @param ?Money $promotionDiscount The currency type and amount. + * @param ?string[] $serialNumbers The list of serial numbers. + */ + public function __construct( + public readonly ?string $asin = null, + public readonly ?string $sellerSku = null, + public readonly ?string $orderItemId = null, + public readonly ?string $title = null, + public readonly ?float $quantityOrdered = null, + public readonly ?Money $itemPrice = null, + public readonly ?Money $shippingPrice = null, + public readonly ?Money $giftWrapPrice = null, + public readonly ?Money $shippingDiscount = null, + public readonly ?Money $promotionDiscount = null, + public readonly ?array $serialNumbers = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/SubmitInvoiceRequest.php b/src/Seller/ShipmentInvoicingV0/Dto/SubmitInvoiceRequest.php new file mode 100644 index 000000000..57be8f235 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/SubmitInvoiceRequest.php @@ -0,0 +1,26 @@ + 'InvoiceContent', + 'contentMd5value' => 'ContentMD5Value', + 'marketplaceId' => 'MarketplaceId', + ]; + + /** + * @param string $invoiceContent Shipment invoice document content. + * @param string $contentMd5value MD5 sum for validating the invoice data. For more information about calculating this value, see [Working with Content-MD5 Checksums](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_MD5.html). + * @param ?string $marketplaceId An Amazon marketplace identifier. + */ + public function __construct( + public readonly string $invoiceContent, + public readonly string $contentMd5value, + public readonly ?string $marketplaceId = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Dto/TaxClassification.php b/src/Seller/ShipmentInvoicingV0/Dto/TaxClassification.php new file mode 100644 index 000000000..2531da9de --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Dto/TaxClassification.php @@ -0,0 +1,20 @@ + 'Name', 'value' => 'Value']; + + /** + * @param ?string $name The type of tax. + * @param ?string $value The entity's tax identifier. + */ + public function __construct( + public readonly ?string $name = null, + public readonly ?string $value = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Requests/GetInvoiceStatus.php b/src/Seller/ShipmentInvoicingV0/Requests/GetInvoiceStatus.php new file mode 100644 index 000000000..2f793176f --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Requests/GetInvoiceStatus.php @@ -0,0 +1,41 @@ +shipmentId}/invoice/status"; + } + + public function createDtoFromResponse(Response $response): GetInvoiceStatusResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetInvoiceStatusResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Requests/GetShipmentDetails.php b/src/Seller/ShipmentInvoicingV0/Requests/GetShipmentDetails.php new file mode 100644 index 000000000..3f50813d7 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Requests/GetShipmentDetails.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/fba/outbound/brazil/v0/shipments/{$this->shipmentId}"; + } + + public function createDtoFromResponse(Response $response): GetShipmentDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetShipmentDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Requests/SubmitInvoice.php b/src/Seller/ShipmentInvoicingV0/Requests/SubmitInvoice.php new file mode 100644 index 000000000..0d9c64c56 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Requests/SubmitInvoice.php @@ -0,0 +1,53 @@ +shipmentId}/invoice"; + } + + public function createDtoFromResponse(Response $response): SubmitInvoiceResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => SubmitInvoiceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitInvoiceRequest->toArray(); + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Responses/GetInvoiceStatusResponse.php b/src/Seller/ShipmentInvoicingV0/Responses/GetInvoiceStatusResponse.php new file mode 100644 index 000000000..52052f012 --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Responses/GetInvoiceStatusResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ShipmentInvoiceStatusResponse $payload The shipment invoice status response. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ShipmentInvoiceStatusResponse $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Responses/GetShipmentDetailsResponse.php b/src/Seller/ShipmentInvoicingV0/Responses/GetShipmentDetailsResponse.php new file mode 100644 index 000000000..14eb9674b --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Responses/GetShipmentDetailsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ShipmentDetail $payload The information required by a selling partner to issue a shipment invoice. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ShipmentDetail $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShipmentInvoicingV0/Responses/SubmitInvoiceResponse.php b/src/Seller/ShipmentInvoicingV0/Responses/SubmitInvoiceResponse.php new file mode 100644 index 000000000..0d729945b --- /dev/null +++ b/src/Seller/ShipmentInvoicingV0/Responses/SubmitInvoiceResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Api.php b/src/Seller/ShippingV1/Api.php new file mode 100644 index 000000000..48e93d175 --- /dev/null +++ b/src/Seller/ShippingV1/Api.php @@ -0,0 +1,104 @@ +connector->send($request); + } + + public function getShipment(string $shipmentId): Response + { + $request = new GetShipment($shipmentId); + + return $this->connector->send($request); + } + + public function cancelShipment(string $shipmentId): Response + { + $request = new CancelShipment($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param PurchaseLabelsRequest $purchaseLabelsRequest The request schema for the purchaseLabels operation. + */ + public function purchaseLabels(string $shipmentId, PurchaseLabelsRequest $purchaseLabelsRequest): Response + { + $request = new PurchaseLabels($shipmentId, $purchaseLabelsRequest); + + return $this->connector->send($request); + } + + /** + * @param RetrieveShippingLabelRequest $retrieveShippingLabelRequest The request schema for the retrieveShippingLabel operation. + */ + public function retrieveShippingLabel( + string $shipmentId, + string $trackingId, + RetrieveShippingLabelRequest $retrieveShippingLabelRequest, + ): Response { + $request = new RetrieveShippingLabel($shipmentId, $trackingId, $retrieveShippingLabelRequest); + + return $this->connector->send($request); + } + + /** + * @param PurchaseShipmentRequest $purchaseShipmentRequest The payload schema for the purchaseShipment operation. + */ + public function purchaseShipment(PurchaseShipmentRequest $purchaseShipmentRequest): Response + { + $request = new PurchaseShipment($purchaseShipmentRequest); + + return $this->connector->send($request); + } + + /** + * @param GetRatesRequest $getRatesRequest The payload schema for the getRates operation. + */ + public function getRates(GetRatesRequest $getRatesRequest): Response + { + $request = new GetRates($getRatesRequest); + + return $this->connector->send($request); + } + + public function getAccount(): Response + { + $request = new GetAccount(); + + return $this->connector->send($request); + } + + public function getTrackingInformation(string $trackingId): Response + { + $request = new GetTrackingInformation($trackingId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ShippingV1/Dto/AcceptedRate.php b/src/Seller/ShippingV1/Dto/AcceptedRate.php new file mode 100644 index 000000000..e16a2a4d5 --- /dev/null +++ b/src/Seller/ShippingV1/Dto/AcceptedRate.php @@ -0,0 +1,22 @@ + [ContainerItem::class]]; + + /** + * @param string $containerReferenceId An identifier for the container. This must be unique within all the containers in the same shipment. + * @param Currency $value The total value of all items in the container. + * @param Dimensions $dimensions A set of measurements for a three-dimensional object. + * @param ContainerItem[] $items A list of the items in the container. + * @param Weight $weight The weight. + * @param ?string $containerType The type of physical container being used. (always 'PACKAGE') + */ + public function __construct( + public readonly string $containerReferenceId, + public readonly Currency $value, + public readonly Dimensions $dimensions, + public readonly array $items, + public readonly Weight $weight, + public readonly ?string $containerType = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/ContainerItem.php b/src/Seller/ShippingV1/Dto/ContainerItem.php new file mode 100644 index 000000000..02ca90fcb --- /dev/null +++ b/src/Seller/ShippingV1/Dto/ContainerItem.php @@ -0,0 +1,22 @@ + [Container::class]]; + + /** + * @param string $clientReferenceId Client reference id. + * @param Address $shipTo The address. + * @param Address $shipFrom The address. + * @param Container[] $containers A list of container. + */ + public function __construct( + public readonly string $clientReferenceId, + public readonly Address $shipTo, + public readonly Address $shipFrom, + public readonly array $containers, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/CreateShipmentResult.php b/src/Seller/ShippingV1/Dto/CreateShipmentResult.php new file mode 100644 index 000000000..853e8291d --- /dev/null +++ b/src/Seller/ShippingV1/Dto/CreateShipmentResult.php @@ -0,0 +1,20 @@ + [Rate::class]]; + + /** + * @param string $shipmentId The unique shipment identifier. + * @param Rate[] $eligibleRates A list of all the available rates that can be used to send the shipment. + */ + public function __construct( + public readonly string $shipmentId, + public readonly array $eligibleRates, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/Currency.php b/src/Seller/ShippingV1/Dto/Currency.php new file mode 100644 index 000000000..29a12f24a --- /dev/null +++ b/src/Seller/ShippingV1/Dto/Currency.php @@ -0,0 +1,18 @@ + [ContainerSpecification::class]]; + + /** + * @param Address $shipTo The address. + * @param Address $shipFrom The address. + * @param string[] $serviceTypes A list of service types that can be used to send the shipment. + * @param ContainerSpecification[] $containerSpecifications A list of container specifications. + * @param ?DateTime $shipDate The start date and time. This defaults to the current date and time. + */ + public function __construct( + public readonly Address $shipTo, + public readonly Address $shipFrom, + public readonly array $serviceTypes, + public readonly array $containerSpecifications, + public readonly ?\DateTime $shipDate = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/GetRatesResult.php b/src/Seller/ShippingV1/Dto/GetRatesResult.php new file mode 100644 index 000000000..b1173a1be --- /dev/null +++ b/src/Seller/ShippingV1/Dto/GetRatesResult.php @@ -0,0 +1,18 @@ + [ServiceRate::class]]; + + /** + * @param ServiceRate[] $serviceRates A list of service rates. + */ + public function __construct( + public readonly array $serviceRates, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/Label.php b/src/Seller/ShippingV1/Dto/Label.php new file mode 100644 index 000000000..e172977ea --- /dev/null +++ b/src/Seller/ShippingV1/Dto/Label.php @@ -0,0 +1,18 @@ + [LabelResult::class]]; + + /** + * @param string $shipmentId The unique shipment identifier. + * @param AcceptedRate $acceptedRate The specific rate purchased for the shipment, or null if unpurchased. + * @param LabelResult[] $labelResults A list of label results + * @param ?string $clientReferenceId Client reference id. + */ + public function __construct( + public readonly string $shipmentId, + public readonly AcceptedRate $acceptedRate, + public readonly array $labelResults, + public readonly ?string $clientReferenceId = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/PurchaseShipmentRequest.php b/src/Seller/ShippingV1/Dto/PurchaseShipmentRequest.php new file mode 100644 index 000000000..f2db12fd1 --- /dev/null +++ b/src/Seller/ShippingV1/Dto/PurchaseShipmentRequest.php @@ -0,0 +1,30 @@ + [Container::class]]; + + /** + * @param string $clientReferenceId Client reference id. + * @param Address $shipTo The address. + * @param Address $shipFrom The address. + * @param string $serviceType The type of shipping service that will be used for the service offering. + * @param Container[] $containers A list of container. + * @param LabelSpecification $labelSpecification The label specification info. + * @param ?DateTime $shipDate The start date and time. This defaults to the current date and time. + */ + public function __construct( + public readonly string $clientReferenceId, + public readonly Address $shipTo, + public readonly Address $shipFrom, + public readonly string $serviceType, + public readonly array $containers, + public readonly LabelSpecification $labelSpecification, + public readonly ?\DateTime $shipDate = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/PurchaseShipmentResult.php b/src/Seller/ShippingV1/Dto/PurchaseShipmentResult.php new file mode 100644 index 000000000..8da3849cb --- /dev/null +++ b/src/Seller/ShippingV1/Dto/PurchaseShipmentResult.php @@ -0,0 +1,22 @@ + [LabelResult::class]]; + + /** + * @param string $shipmentId The unique shipment identifier. + * @param ServiceRate $serviceRate The specific rate for a shipping service, or null if no service available. + * @param LabelResult[] $labelResults A list of label results + */ + public function __construct( + public readonly string $shipmentId, + public readonly ServiceRate $serviceRate, + public readonly array $labelResults, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/Rate.php b/src/Seller/ShippingV1/Dto/Rate.php new file mode 100644 index 000000000..1dd31a45c --- /dev/null +++ b/src/Seller/ShippingV1/Dto/Rate.php @@ -0,0 +1,26 @@ + [Container::class]]; + + /** + * @param string $shipmentId The unique shipment identifier. + * @param string $clientReferenceId Client reference id. + * @param Address $shipFrom The address. + * @param Address $shipTo The address. + * @param Container[] $containers A list of container. + * @param ?AcceptedRate $acceptedRate The specific rate purchased for the shipment, or null if unpurchased. + * @param ?Party $shipper The account related with the shipment. + */ + public function __construct( + public readonly string $shipmentId, + public readonly string $clientReferenceId, + public readonly Address $shipFrom, + public readonly Address $shipTo, + public readonly array $containers, + public readonly ?AcceptedRate $acceptedRate = null, + public readonly ?Party $shipper = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/ShippingPromiseSet.php b/src/Seller/ShippingV1/Dto/ShippingPromiseSet.php new file mode 100644 index 000000000..c10f61980 --- /dev/null +++ b/src/Seller/ShippingV1/Dto/ShippingPromiseSet.php @@ -0,0 +1,18 @@ + [Event::class]]; + + /** + * @param string $trackingId The tracking id generated to each shipment. It contains a series of letters or digits or both. + * @param TrackingSummary $summary The tracking summary. + * @param DateTime $promisedDeliveryDate The promised delivery date and time of a shipment. + * @param Event[] $eventHistory A list of events of a shipment. + */ + public function __construct( + public readonly string $trackingId, + public readonly TrackingSummary $summary, + public readonly \DateTime $promisedDeliveryDate, + public readonly array $eventHistory, + ) { + } +} diff --git a/src/Seller/ShippingV1/Dto/TrackingSummary.php b/src/Seller/ShippingV1/Dto/TrackingSummary.php new file mode 100644 index 000000000..58071498a --- /dev/null +++ b/src/Seller/ShippingV1/Dto/TrackingSummary.php @@ -0,0 +1,16 @@ +shipmentId}/cancel"; + } + + public function createDtoFromResponse(Response $response): CancelShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CancelShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV1/Requests/CreateShipment.php b/src/Seller/ShippingV1/Requests/CreateShipment.php new file mode 100644 index 000000000..9ad9a2807 --- /dev/null +++ b/src/Seller/ShippingV1/Requests/CreateShipment.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => CreateShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createShipmentRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV1/Requests/GetAccount.php b/src/Seller/ShippingV1/Requests/GetAccount.php new file mode 100644 index 000000000..7e90289a1 --- /dev/null +++ b/src/Seller/ShippingV1/Requests/GetAccount.php @@ -0,0 +1,33 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetAccountResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV1/Requests/GetRates.php b/src/Seller/ShippingV1/Requests/GetRates.php new file mode 100644 index 000000000..c4fded296 --- /dev/null +++ b/src/Seller/ShippingV1/Requests/GetRates.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetRatesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getRatesRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV1/Requests/GetShipment.php b/src/Seller/ShippingV1/Requests/GetShipment.php new file mode 100644 index 000000000..cd60b21ed --- /dev/null +++ b/src/Seller/ShippingV1/Requests/GetShipment.php @@ -0,0 +1,41 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/shipping/v1/shipments/{$this->shipmentId}"; + } + + public function createDtoFromResponse(Response $response): GetShipmentResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV1/Requests/GetTrackingInformation.php b/src/Seller/ShippingV1/Requests/GetTrackingInformation.php new file mode 100644 index 000000000..c2485410d --- /dev/null +++ b/src/Seller/ShippingV1/Requests/GetTrackingInformation.php @@ -0,0 +1,38 @@ +trackingId}"; + } + + public function createDtoFromResponse(Response $response): GetTrackingInformationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => GetTrackingInformationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV1/Requests/PurchaseLabels.php b/src/Seller/ShippingV1/Requests/PurchaseLabels.php new file mode 100644 index 000000000..fe76f8c3a --- /dev/null +++ b/src/Seller/ShippingV1/Requests/PurchaseLabels.php @@ -0,0 +1,52 @@ +shipmentId}/purchaseLabels"; + } + + public function createDtoFromResponse(Response $response): PurchaseLabelsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => PurchaseLabelsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->purchaseLabelsRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV1/Requests/PurchaseShipment.php b/src/Seller/ShippingV1/Requests/PurchaseShipment.php new file mode 100644 index 000000000..e24a8d2bc --- /dev/null +++ b/src/Seller/ShippingV1/Requests/PurchaseShipment.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => PurchaseShipmentResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->purchaseShipmentRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV1/Requests/RetrieveShippingLabel.php b/src/Seller/ShippingV1/Requests/RetrieveShippingLabel.php new file mode 100644 index 000000000..7b8fc919d --- /dev/null +++ b/src/Seller/ShippingV1/Requests/RetrieveShippingLabel.php @@ -0,0 +1,53 @@ +shipmentId}/containers/{$this->trackingId}/label"; + } + + public function createDtoFromResponse(Response $response): RetrieveShippingLabelResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 429, 500, 503 => RetrieveShippingLabelResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->retrieveShippingLabelRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV1/Responses/CancelShipmentResponse.php b/src/Seller/ShippingV1/Responses/CancelShipmentResponse.php new file mode 100644 index 000000000..e2c138010 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/CancelShipmentResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/CreateShipmentResponse.php b/src/Seller/ShippingV1/Responses/CreateShipmentResponse.php new file mode 100644 index 000000000..c6df08641 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/CreateShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CreateShipmentResult $payload The payload schema for the createShipment operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CreateShipmentResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/GetAccountResponse.php b/src/Seller/ShippingV1/Responses/GetAccountResponse.php new file mode 100644 index 000000000..e8688bacf --- /dev/null +++ b/src/Seller/ShippingV1/Responses/GetAccountResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Account $payload The account related data. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Account $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/GetRatesResponse.php b/src/Seller/ShippingV1/Responses/GetRatesResponse.php new file mode 100644 index 000000000..90560e3b7 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/GetRatesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?GetRatesResult $payload The payload schema for the getRates operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?GetRatesResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/GetShipmentResponse.php b/src/Seller/ShippingV1/Responses/GetShipmentResponse.php new file mode 100644 index 000000000..078004303 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/GetShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Shipment $payload The shipment related data. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Shipment $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/GetTrackingInformationResponse.php b/src/Seller/ShippingV1/Responses/GetTrackingInformationResponse.php new file mode 100644 index 000000000..62b9a60c5 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/GetTrackingInformationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TrackingInformation $payload The payload schema for the getTrackingInformation operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TrackingInformation $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/PurchaseLabelsResponse.php b/src/Seller/ShippingV1/Responses/PurchaseLabelsResponse.php new file mode 100644 index 000000000..2af16a191 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/PurchaseLabelsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?PurchaseLabelsResult $payload The payload schema for the purchaseLabels operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?PurchaseLabelsResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/PurchaseShipmentResponse.php b/src/Seller/ShippingV1/Responses/PurchaseShipmentResponse.php new file mode 100644 index 000000000..8bbc875d0 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/PurchaseShipmentResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?PurchaseShipmentResult $payload The payload schema for the purchaseShipment operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?PurchaseShipmentResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV1/Responses/RetrieveShippingLabelResponse.php b/src/Seller/ShippingV1/Responses/RetrieveShippingLabelResponse.php new file mode 100644 index 000000000..ff53a1a84 --- /dev/null +++ b/src/Seller/ShippingV1/Responses/RetrieveShippingLabelResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?RetrieveShippingLabelResult $payload The payload schema for the retrieveShippingLabel operation. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?RetrieveShippingLabelResult $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Api.php b/src/Seller/ShippingV2/Api.php new file mode 100644 index 000000000..543fa0943 --- /dev/null +++ b/src/Seller/ShippingV2/Api.php @@ -0,0 +1,98 @@ +connector->send($request); + } + + /** + * @param DirectPurchaseRequest $directPurchaseRequest The request schema for the directPurchaseShipment operation. When the channel type is Amazon, the shipTo address is not required and will be ignored. + */ + public function directPurchaseShipment(DirectPurchaseRequest $directPurchaseRequest): Response + { + $request = new DirectPurchaseShipment($directPurchaseRequest); + + return $this->connector->send($request); + } + + /** + * @param PurchaseShipmentRequest $purchaseShipmentRequest The request schema for the purchaseShipment operation. + */ + public function purchaseShipment(PurchaseShipmentRequest $purchaseShipmentRequest): Response + { + $request = new PurchaseShipment($purchaseShipmentRequest); + + return $this->connector->send($request); + } + + /** + * @param string $trackingId A carrier-generated tracking identifier originally returned by the purchaseShipment operation. + * @param string $carrierId A carrier identifier originally returned by the getRates operation for the selected rate. + */ + public function getTracking(string $trackingId, string $carrierId): Response + { + $request = new GetTracking($trackingId, $carrierId); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The shipment identifier originally returned by the purchaseShipment operation. + * @param string $packageClientReferenceId The package client reference identifier originally provided in the request body parameter for the getRates operation. + * @param ?string $format The file format of the document. Must be one of the supported formats returned by the getRates operation. + * @param ?float $dpi The resolution of the document (for example, 300 means 300 dots per inch). Must be one of the supported resolutions returned in the response to the getRates operation. + */ + public function getShipmentDocuments( + string $shipmentId, + string $packageClientReferenceId, + ?string $format = null, + ?float $dpi = null, + ): Response { + $request = new GetShipmentDocuments($shipmentId, $packageClientReferenceId, $format, $dpi); + + return $this->connector->send($request); + } + + /** + * @param string $shipmentId The shipment identifier originally returned by the purchaseShipment operation. + */ + public function cancelShipment(string $shipmentId): Response + { + $request = new CancelShipment($shipmentId); + + return $this->connector->send($request); + } + + /** + * @param string $requestToken The request token returned in the response to the getRates operation. + * @param string $rateId The rate identifier for the shipping offering (rate) returned in the response to the getRates operation. + */ + public function getAdditionalInputs(string $requestToken, string $rateId): Response + { + $request = new GetAdditionalInputs($requestToken, $rateId); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/ShippingV2/Dto/Address.php b/src/Seller/ShippingV2/Dto/Address.php new file mode 100644 index 000000000..00386a433 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/Address.php @@ -0,0 +1,36 @@ + [ValueAddedService::class]]; + + /** + * @param string $groupId The type of the value-added service group. + * @param string $groupDescription The name of the value-added service group. + * @param bool $isRequired When true, one or more of the value-added services listed must be specified. + * @param ValueAddedService[]|null $valueAddedServices A list of optional value-added services available for purchase with a shipping service offering. + */ + public function __construct( + public readonly string $groupId, + public readonly string $groupDescription, + public readonly bool $isRequired, + public readonly ?array $valueAddedServices = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/ChannelDetails.php b/src/Seller/ShippingV2/Dto/ChannelDetails.php new file mode 100644 index 000000000..d75948ceb --- /dev/null +++ b/src/Seller/ShippingV2/Dto/ChannelDetails.php @@ -0,0 +1,20 @@ + 'lineItemID']; + + /** + * @param string $lineItemId A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped. + * @param ?string $pieceNumber A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1. + */ + public function __construct( + public readonly string $lineItemId, + public readonly ?string $pieceNumber = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/DirectPurchaseRequest.php b/src/Seller/ShippingV2/Dto/DirectPurchaseRequest.php new file mode 100644 index 000000000..8a0f8981f --- /dev/null +++ b/src/Seller/ShippingV2/Dto/DirectPurchaseRequest.php @@ -0,0 +1,28 @@ + [Package::class]]; + + /** + * @param ChannelDetails $channelDetails Shipment source channel related information. + * @param ?Address $shipTo The address. + * @param ?Address $shipFrom The address. + * @param ?Address $returnTo The address. + * @param Package[]|null $packages A list of packages to be shipped through a shipping service offering. + * @param ?RequestedDocumentSpecification $labelSpecifications The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation. + */ + public function __construct( + public readonly ChannelDetails $channelDetails, + public readonly ?Address $shipTo = null, + public readonly ?Address $shipFrom = null, + public readonly ?Address $returnTo = null, + public readonly ?array $packages = null, + public readonly ?RequestedDocumentSpecification $labelSpecifications = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/DirectPurchaseResult.php b/src/Seller/ShippingV2/Dto/DirectPurchaseResult.php new file mode 100644 index 000000000..b327abcf0 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/DirectPurchaseResult.php @@ -0,0 +1,20 @@ + [PackageDocumentDetail::class]]; + + /** + * @param string $shipmentId The unique shipment identifier provided by a shipping service. + * @param PackageDocumentDetail[]|null $packageDocumentDetailList A list of post-purchase details about a package that will be shipped using a shipping service. + */ + public function __construct( + public readonly string $shipmentId, + public readonly ?array $packageDocumentDetailList = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/DocumentSize.php b/src/Seller/ShippingV2/Dto/DocumentSize.php new file mode 100644 index 000000000..5504018ea --- /dev/null +++ b/src/Seller/ShippingV2/Dto/DocumentSize.php @@ -0,0 +1,20 @@ + [Package::class], 'taxDetails' => [TaxDetail::class]]; + + /** + * @param Address $shipFrom The address. + * @param Package[] $packages A list of packages to be shipped through a shipping service offering. + * @param ChannelDetails $channelDetails Shipment source channel related information. + * @param ?Address $shipTo The address. + * @param ?Address $returnTo The address. + * @param ?DateTime $shipDate The ship date and time (the requested pickup). This defaults to the current date and time. + * @param ?ValueAddedServiceDetails $valueAddedServices A collection of supported value-added services. + * @param TaxDetail[]|null $taxDetails A list of tax detail information. + */ + public function __construct( + public readonly Address $shipFrom, + public readonly array $packages, + public readonly ChannelDetails $channelDetails, + public readonly ?Address $shipTo = null, + public readonly ?Address $returnTo = null, + public readonly ?\DateTime $shipDate = null, + public readonly ?ValueAddedServiceDetails $valueAddedServices = null, + public readonly ?array $taxDetails = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/GetRatesResult.php b/src/Seller/ShippingV2/Dto/GetRatesResult.php new file mode 100644 index 000000000..4de1ea645 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/GetRatesResult.php @@ -0,0 +1,22 @@ + [Rate::class], 'ineligibleRates' => [IneligibleRate::class]]; + + /** + * @param string $requestToken A unique token generated to identify a getRates operation. + * @param Rate[] $rates A list of eligible shipping service offerings. + * @param IneligibleRate[]|null $ineligibleRates A list of ineligible shipping service offerings. + */ + public function __construct( + public readonly string $requestToken, + public readonly array $rates, + public readonly ?array $ineligibleRates = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/GetShipmentDocumentsResult.php b/src/Seller/ShippingV2/Dto/GetShipmentDocumentsResult.php new file mode 100644 index 000000000..60f9fa6a4 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/GetShipmentDocumentsResult.php @@ -0,0 +1,18 @@ + [Event::class]]; + + /** + * @param string $trackingId The carrier generated identifier for a package in a purchased shipment. + * @param string $alternateLegTrackingId The carrier generated reverse identifier for a returned package in a purchased shipment. + * @param Event[] $eventHistory A list of tracking events. + * @param DateTime $promisedDeliveryDate The date and time by which the shipment is promised to be delivered. + * @param TrackingSummary $summary A package status summary. + */ + public function __construct( + public readonly string $trackingId, + public readonly string $alternateLegTrackingId, + public readonly array $eventHistory, + public readonly \DateTime $promisedDeliveryDate, + public readonly TrackingSummary $summary, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/IneligibilityReason.php b/src/Seller/ShippingV2/Dto/IneligibilityReason.php new file mode 100644 index 000000000..bdd7762a3 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/IneligibilityReason.php @@ -0,0 +1,18 @@ + [IneligibilityReason::class]]; + + /** + * @param string $serviceId An identifier for the shipping service. + * @param string $serviceName The name of the shipping service. + * @param string $carrierName The carrier name for the offering. + * @param string $carrierId The carrier identifier for the offering, provided by the carrier. + * @param IneligibilityReason[] $ineligibilityReasons A list of reasons why a shipping service offering is ineligible. + */ + public function __construct( + public readonly string $serviceId, + public readonly string $serviceName, + public readonly string $carrierName, + public readonly string $carrierId, + public readonly array $ineligibilityReasons, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/InvoiceDetails.php b/src/Seller/ShippingV2/Dto/InvoiceDetails.php new file mode 100644 index 000000000..be861fcfa --- /dev/null +++ b/src/Seller/ShippingV2/Dto/InvoiceDetails.php @@ -0,0 +1,18 @@ + [Item::class], 'charges' => [ChargeComponent::class]]; + + /** + * @param Dimensions $dimensions A set of measurements for a three-dimensional object. + * @param Weight $weight The weight in the units indicated. + * @param Currency $insuredValue The monetary value in the currency indicated, in ISO 4217 standard format. + * @param string $packageClientReferenceId A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. + * @param Item[] $items A list of items. + * @param ?bool $isHazmat When true, the package contains hazardous materials. Defaults to false. + * @param ?string $sellerDisplayName The seller name displayed on the label. + * @param ChargeComponent[]|null $charges A list of charges based on the shipping service charges applied on a package. + */ + public function __construct( + public readonly Dimensions $dimensions, + public readonly Weight $weight, + public readonly Currency $insuredValue, + public readonly string $packageClientReferenceId, + public readonly array $items, + public readonly ?bool $isHazmat = null, + public readonly ?string $sellerDisplayName = null, + public readonly ?array $charges = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/PackageDocument.php b/src/Seller/ShippingV2/Dto/PackageDocument.php new file mode 100644 index 000000000..52b6835fb --- /dev/null +++ b/src/Seller/ShippingV2/Dto/PackageDocument.php @@ -0,0 +1,20 @@ + [PackageDocument::class]]; + + /** + * @param string $packageClientReferenceId A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. + * @param PackageDocument[] $packageDocuments A list of documents related to a package. + * @param ?string $trackingId The carrier generated identifier for a package in a purchased shipment. + */ + public function __construct( + public readonly string $packageClientReferenceId, + public readonly array $packageDocuments, + public readonly ?string $trackingId = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/PrintOption.php b/src/Seller/ShippingV2/Dto/PrintOption.php new file mode 100644 index 000000000..e0f343ab4 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/PrintOption.php @@ -0,0 +1,26 @@ + 'supportedDPIs']; + + protected static array $complexArrayTypes = ['supportedDocumentDetails' => [SupportedDocumentDetail::class]]; + + /** + * @param string[] $supportedPageLayouts A list of the supported page layout options for a document. + * @param bool[] $supportedFileJoiningOptions A list of the supported needFileJoining boolean values for a document. + * @param SupportedDocumentDetail[] $supportedDocumentDetails A list of the supported documented details. + * @param int[]|null $supportedDpIs A list of the supported DPI options for a document. + */ + public function __construct( + public readonly array $supportedPageLayouts, + public readonly array $supportedFileJoiningOptions, + public readonly array $supportedDocumentDetails, + public readonly ?array $supportedDpIs = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/Promise.php b/src/Seller/ShippingV2/Dto/Promise.php new file mode 100644 index 000000000..f409da839 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/Promise.php @@ -0,0 +1,18 @@ + [RequestedValueAddedService::class]]; + + /** + * @param string $requestToken A unique token generated to identify a getRates operation. + * @param string $rateId An identifier for the rate (shipment offering) provided by a shipping service provider. + * @param RequestedDocumentSpecification $requestedDocumentSpecification The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation. + * @param RequestedValueAddedService[]|null $requestedValueAddedServices The value-added services to be added to a shipping service purchase. + * @param ?array[] $additionalInputs The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation. + * + * Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation. + */ + public function __construct( + public readonly string $requestToken, + public readonly string $rateId, + public readonly RequestedDocumentSpecification $requestedDocumentSpecification, + public readonly ?array $requestedValueAddedServices = null, + public readonly ?array $additionalInputs = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/PurchaseShipmentResult.php b/src/Seller/ShippingV2/Dto/PurchaseShipmentResult.php new file mode 100644 index 000000000..e36be46ac --- /dev/null +++ b/src/Seller/ShippingV2/Dto/PurchaseShipmentResult.php @@ -0,0 +1,22 @@ + [PackageDocumentDetail::class]]; + + /** + * @param string $shipmentId The unique shipment identifier provided by a shipping service. + * @param PackageDocumentDetail[] $packageDocumentDetails A list of post-purchase details about a package that will be shipped using a shipping service. + * @param Promise $promise The time windows promised for pickup and delivery events. + */ + public function __construct( + public readonly string $shipmentId, + public readonly array $packageDocumentDetails, + public readonly Promise $promise, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/Rate.php b/src/Seller/ShippingV2/Dto/Rate.php new file mode 100644 index 000000000..730716108 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/Rate.php @@ -0,0 +1,41 @@ + [SupportedDocumentSpecification::class], + 'availableValueAddedServiceGroups' => [AvailableValueAddedServiceGroup::class], + ]; + + /** + * @param string $rateId An identifier for the rate (shipment offering) provided by a shipping service provider. + * @param string $carrierId The carrier identifier for the offering, provided by the carrier. + * @param string $carrierName The carrier name for the offering. + * @param string $serviceId An identifier for the shipping service. + * @param string $serviceName The name of the shipping service. + * @param Currency $totalCharge The monetary value in the currency indicated, in ISO 4217 standard format. + * @param Promise $promise The time windows promised for pickup and delivery events. + * @param SupportedDocumentSpecification[] $supportedDocumentSpecifications A list of the document specifications supported for a shipment service offering. + * @param bool $requiresAdditionalInputs When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation. + * @param ?Weight $billedWeight The weight in the units indicated. + * @param AvailableValueAddedServiceGroup[]|null $availableValueAddedServiceGroups A list of value-added services available for a shipping service offering. + */ + public function __construct( + public readonly string $rateId, + public readonly string $carrierId, + public readonly string $carrierName, + public readonly string $serviceId, + public readonly string $serviceName, + public readonly Currency $totalCharge, + public readonly Promise $promise, + public readonly array $supportedDocumentSpecifications, + public readonly bool $requiresAdditionalInputs, + public readonly ?Weight $billedWeight = null, + public readonly ?array $availableValueAddedServiceGroups = null, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/RequestedDocumentSpecification.php b/src/Seller/ShippingV2/Dto/RequestedDocumentSpecification.php new file mode 100644 index 000000000..d5f0945e6 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/RequestedDocumentSpecification.php @@ -0,0 +1,26 @@ + [PrintOption::class]]; + + /** + * @param string $format The file format of the document. + * @param DocumentSize $size The size dimensions of the label. + * @param PrintOption[] $printOptions A list of the format options for a label. + */ + public function __construct( + public readonly string $format, + public readonly DocumentSize $size, + public readonly array $printOptions, + ) { + } +} diff --git a/src/Seller/ShippingV2/Dto/TaxDetail.php b/src/Seller/ShippingV2/Dto/TaxDetail.php new file mode 100644 index 000000000..7523fb3d2 --- /dev/null +++ b/src/Seller/ShippingV2/Dto/TaxDetail.php @@ -0,0 +1,18 @@ +shipmentId}/cancel"; + } + + public function createDtoFromResponse(Response $response): CancelShipmentResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => CancelShipmentResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV2/Requests/DirectPurchaseShipment.php b/src/Seller/ShippingV2/Requests/DirectPurchaseShipment.php new file mode 100644 index 000000000..21a5f73f8 --- /dev/null +++ b/src/Seller/ShippingV2/Requests/DirectPurchaseShipment.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => DirectPurchaseResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->directPurchaseRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV2/Requests/GetAdditionalInputs.php b/src/Seller/ShippingV2/Requests/GetAdditionalInputs.php new file mode 100644 index 000000000..173da165b --- /dev/null +++ b/src/Seller/ShippingV2/Requests/GetAdditionalInputs.php @@ -0,0 +1,50 @@ + $this->requestToken, 'rateId' => $this->rateId]); + } + + public function resolveEndpoint(): string + { + return '/shipping/v2/shipments/additionalInputs/schema'; + } + + public function createDtoFromResponse(Response $response): GetAdditionalInputsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetAdditionalInputsResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV2/Requests/GetRates.php b/src/Seller/ShippingV2/Requests/GetRates.php new file mode 100644 index 000000000..d3fba757d --- /dev/null +++ b/src/Seller/ShippingV2/Requests/GetRates.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => GetRatesResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->getRatesRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV2/Requests/GetShipmentDocuments.php b/src/Seller/ShippingV2/Requests/GetShipmentDocuments.php new file mode 100644 index 000000000..73eba6c2d --- /dev/null +++ b/src/Seller/ShippingV2/Requests/GetShipmentDocuments.php @@ -0,0 +1,54 @@ + $this->packageClientReferenceId, 'format' => $this->format, 'dpi' => $this->dpi]); + } + + public function resolveEndpoint(): string + { + return "/shipping/v2/shipments/{$this->shipmentId}/documents"; + } + + public function createDtoFromResponse(Response $response): GetShipmentDocumentsResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetShipmentDocumentsResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV2/Requests/GetTracking.php b/src/Seller/ShippingV2/Requests/GetTracking.php new file mode 100644 index 000000000..5404a4558 --- /dev/null +++ b/src/Seller/ShippingV2/Requests/GetTracking.php @@ -0,0 +1,50 @@ + $this->trackingId, 'carrierId' => $this->carrierId]); + } + + public function resolveEndpoint(): string + { + return '/shipping/v2/tracking'; + } + + public function createDtoFromResponse(Response $response): GetTrackingResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetTrackingResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/ShippingV2/Requests/PurchaseShipment.php b/src/Seller/ShippingV2/Requests/PurchaseShipment.php new file mode 100644 index 000000000..43410d6b3 --- /dev/null +++ b/src/Seller/ShippingV2/Requests/PurchaseShipment.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => PurchaseShipmentResponse::class, + 400, 401, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->purchaseShipmentRequest->toArray(); + } +} diff --git a/src/Seller/ShippingV2/Responses/CancelShipmentResponse.php b/src/Seller/ShippingV2/Responses/CancelShipmentResponse.php new file mode 100644 index 000000000..777c2e84e --- /dev/null +++ b/src/Seller/ShippingV2/Responses/CancelShipmentResponse.php @@ -0,0 +1,16 @@ + [Error::class]]; + + /** + * @param Error[] $errorList A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errorList, + ) { + } +} diff --git a/src/Seller/ShippingV2/Responses/Errors.php b/src/Seller/ShippingV2/Responses/Errors.php new file mode 100644 index 000000000..779c09d41 --- /dev/null +++ b/src/Seller/ShippingV2/Responses/Errors.php @@ -0,0 +1,21 @@ + null]; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/ShippingV2/Responses/GetAdditionalInputsResponse.php b/src/Seller/ShippingV2/Responses/GetAdditionalInputsResponse.php new file mode 100644 index 000000000..115b18724 --- /dev/null +++ b/src/Seller/ShippingV2/Responses/GetAdditionalInputsResponse.php @@ -0,0 +1,16 @@ +connector->send($request); + } + + /** + * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a solicitation is sent. + * @param array $marketplaceIds A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. + */ + public function createProductReviewAndSellerFeedbackSolicitation( + string $amazonOrderId, + array $marketplaceIds, + ): Response { + $request = new CreateProductReviewAndSellerFeedbackSolicitation($amazonOrderId, $marketplaceIds); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/SolicitationsV1/Dto/Embedded.php b/src/Seller/SolicitationsV1/Dto/Embedded.php new file mode 100644 index 000000000..811abaef1 --- /dev/null +++ b/src/Seller/SolicitationsV1/Dto/Embedded.php @@ -0,0 +1,18 @@ + [LinkObject::class]]; + + /** + * @param LinkObject[] $actions Eligible actions for the specified amazonOrderId. + */ + public function __construct( + public readonly array $actions, + ) { + } +} diff --git a/src/Seller/SolicitationsV1/Dto/Error.php b/src/Seller/SolicitationsV1/Dto/Error.php new file mode 100644 index 000000000..e39935c33 --- /dev/null +++ b/src/Seller/SolicitationsV1/Dto/Error.php @@ -0,0 +1,20 @@ + '_links']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?array[] $payload A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?array $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/SolicitationsV1/Dto/GetSolicitationActionResponse.php b/src/Seller/SolicitationsV1/Dto/GetSolicitationActionResponse.php new file mode 100644 index 000000000..673d12f02 --- /dev/null +++ b/src/Seller/SolicitationsV1/Dto/GetSolicitationActionResponse.php @@ -0,0 +1,26 @@ + '_links', 'embedded' => '_embedded']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?Embedded $embedded + * @param ?SolicitationsAction $payload A simple object containing the name of the template. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?Embedded $embedded = null, + public readonly ?SolicitationsAction $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/SolicitationsV1/Dto/LinkObject.php b/src/Seller/SolicitationsV1/Dto/LinkObject.php new file mode 100644 index 000000000..c344f665c --- /dev/null +++ b/src/Seller/SolicitationsV1/Dto/LinkObject.php @@ -0,0 +1,18 @@ + [LinkObject::class]]; + + /** + * @param LinkObject $self A Link object. + * @param LinkObject[] $actions Eligible actions for the specified amazonOrderId. + */ + public function __construct( + public readonly LinkObject $self, + public readonly array $actions, + ) { + } +} diff --git a/src/Seller/SolicitationsV1/Dto/SolicitationsAction.php b/src/Seller/SolicitationsV1/Dto/SolicitationsAction.php new file mode 100644 index 000000000..65655017c --- /dev/null +++ b/src/Seller/SolicitationsV1/Dto/SolicitationsAction.php @@ -0,0 +1,13 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/solicitations/v1/orders/{$this->amazonOrderId}/solicitations/productReviewAndSellerFeedback"; + } + + public function createDtoFromResponse(Response $response): CreateProductReviewAndSellerFeedbackSolicitationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateProductReviewAndSellerFeedbackSolicitationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SolicitationsV1/Requests/GetSolicitationActionsForOrder.php b/src/Seller/SolicitationsV1/Requests/GetSolicitationActionsForOrder.php new file mode 100644 index 000000000..ef73d83b1 --- /dev/null +++ b/src/Seller/SolicitationsV1/Requests/GetSolicitationActionsForOrder.php @@ -0,0 +1,48 @@ + $this->marketplaceIds]); + } + + public function resolveEndpoint(): string + { + return "/solicitations/v1/orders/{$this->amazonOrderId}"; + } + + public function createDtoFromResponse(Response $response): GetSolicitationActionsForOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 413, 415, 429, 500, 503 => GetSolicitationActionsForOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SolicitationsV1/Responses/CreateProductReviewAndSellerFeedbackSolicitationResponse.php b/src/Seller/SolicitationsV1/Responses/CreateProductReviewAndSellerFeedbackSolicitationResponse.php new file mode 100644 index 000000000..a6ac58062 --- /dev/null +++ b/src/Seller/SolicitationsV1/Responses/CreateProductReviewAndSellerFeedbackSolicitationResponse.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/SolicitationsV1/Responses/GetSolicitationActionsForOrderResponse.php b/src/Seller/SolicitationsV1/Responses/GetSolicitationActionsForOrderResponse.php new file mode 100644 index 000000000..76656310b --- /dev/null +++ b/src/Seller/SolicitationsV1/Responses/GetSolicitationActionsForOrderResponse.php @@ -0,0 +1,27 @@ + '_links', 'embedded' => '_embedded']; + + protected static array $complexArrayTypes = ['errors' => [Error::class]]; + + /** + * @param ?Links $links + * @param ?Embedded $embedded + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Links $links = null, + public readonly ?Embedded $embedded = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/SupplySourcesV20200701/Api.php b/src/Seller/SupplySourcesV20200701/Api.php new file mode 100644 index 000000000..78023eb4f --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Api.php @@ -0,0 +1,85 @@ +connector->send($request); + } + + /** + * @param CreateSupplySourceRequest $createSupplySourceRequest A request to create a supply source. + */ + public function createSupplySource(CreateSupplySourceRequest $createSupplySourceRequest): Response + { + $request = new CreateSupplySource($createSupplySourceRequest); + + return $this->connector->send($request); + } + + /** + * @param string $supplySourceId The unique identifier of a supply source. + */ + public function getSupplySource(string $supplySourceId): Response + { + $request = new GetSupplySource($supplySourceId); + + return $this->connector->send($request); + } + + /** + * @param string $supplySourceId The unique identitier of a supply source. + * @param UpdateSupplySourceRequest $updateSupplySourceRequest A request to update the configuration and capabilities of a supply source. + */ + public function updateSupplySource( + string $supplySourceId, + UpdateSupplySourceRequest $updateSupplySourceRequest, + ): Response { + $request = new UpdateSupplySource($supplySourceId, $updateSupplySourceRequest); + + return $this->connector->send($request); + } + + /** + * @param string $supplySourceId The unique identifier of a supply source. + */ + public function archiveSupplySource(string $supplySourceId): Response + { + $request = new ArchiveSupplySource($supplySourceId); + + return $this->connector->send($request); + } + + /** + * @param string $supplySourceId The unique identifier of a supply source. + * @param UpdateSupplySourceStatusRequest $updateSupplySourceStatusRequest A request to update the status of a supply source. + */ + public function updateSupplySourceStatus( + string $supplySourceId, + UpdateSupplySourceStatusRequest $updateSupplySourceStatusRequest, + ): Response { + $request = new UpdateSupplySourceStatus($supplySourceId, $updateSupplySourceStatusRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Dto/Address.php b/src/Seller/SupplySourcesV20200701/Dto/Address.php new file mode 100644 index 000000000..d64fc6e3f --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Dto/Address.php @@ -0,0 +1,36 @@ + [OperatingHour::class], + 'tuesday' => [OperatingHour::class], + 'wednesday' => [OperatingHour::class], + 'thursday' => [OperatingHour::class], + 'friday' => [OperatingHour::class], + 'saturday' => [OperatingHour::class], + 'sunday' => [OperatingHour::class], + ]; + + /** + * @param OperatingHour[]|null $monday A list of Operating Hours. + * @param OperatingHour[]|null $tuesday A list of Operating Hours. + * @param OperatingHour[]|null $wednesday A list of Operating Hours. + * @param OperatingHour[]|null $thursday A list of Operating Hours. + * @param OperatingHour[]|null $friday A list of Operating Hours. + * @param OperatingHour[]|null $saturday A list of Operating Hours. + * @param OperatingHour[]|null $sunday A list of Operating Hours. + */ + public function __construct( + public readonly ?array $monday = null, + public readonly ?array $tuesday = null, + public readonly ?array $wednesday = null, + public readonly ?array $thursday = null, + public readonly ?array $friday = null, + public readonly ?array $saturday = null, + public readonly ?array $sunday = null, + ) { + } +} diff --git a/src/Seller/SupplySourcesV20200701/Dto/OperationalConfiguration.php b/src/Seller/SupplySourcesV20200701/Dto/OperationalConfiguration.php new file mode 100644 index 000000000..7a77eafde --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Dto/OperationalConfiguration.php @@ -0,0 +1,22 @@ +supplySourceId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Requests/CreateSupplySource.php b/src/Seller/SupplySourcesV20200701/Requests/CreateSupplySource.php new file mode 100644 index 000000000..5497a275d --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Requests/CreateSupplySource.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 200 => CreateSupplySourceResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createSupplySourceRequest->toArray(); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Requests/GetSupplySource.php b/src/Seller/SupplySourcesV20200701/Requests/GetSupplySource.php new file mode 100644 index 000000000..582599345 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Requests/GetSupplySource.php @@ -0,0 +1,43 @@ +supplySourceId}"; + } + + public function createDtoFromResponse(Response $response): SupplySource|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => SupplySource::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Requests/GetSupplySources.php b/src/Seller/SupplySourcesV20200701/Requests/GetSupplySources.php new file mode 100644 index 000000000..bdceb7163 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Requests/GetSupplySources.php @@ -0,0 +1,50 @@ + $this->nextPageToken, 'pageSize' => $this->pageSize]); + } + + public function resolveEndpoint(): string + { + return '/supplySources/2020-07-01/supplySources'; + } + + public function createDtoFromResponse(Response $response): GetSupplySourcesResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetSupplySourcesResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySource.php b/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySource.php new file mode 100644 index 000000000..18e21db38 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySource.php @@ -0,0 +1,51 @@ +supplySourceId}"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateSupplySourceRequest->toArray(); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySourceStatus.php b/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySourceStatus.php new file mode 100644 index 000000000..a12353f85 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Requests/UpdateSupplySourceStatus.php @@ -0,0 +1,51 @@ +supplySourceId}/status"; + } + + public function createDtoFromResponse(Response $response): EmptyResponse|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 204 => EmptyResponse::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->updateSupplySourceStatusRequest->toArray(); + } +} diff --git a/src/Seller/SupplySourcesV20200701/Responses/CreateSupplySourceResponse.php b/src/Seller/SupplySourcesV20200701/Responses/CreateSupplySourceResponse.php new file mode 100644 index 000000000..2ab676493 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Responses/CreateSupplySourceResponse.php @@ -0,0 +1,18 @@ + [Error::class]]; + + /** + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly array $errors, + ) { + } +} diff --git a/src/Seller/SupplySourcesV20200701/Responses/GetSupplySourcesResponse.php b/src/Seller/SupplySourcesV20200701/Responses/GetSupplySourcesResponse.php new file mode 100644 index 000000000..0f11a9682 --- /dev/null +++ b/src/Seller/SupplySourcesV20200701/Responses/GetSupplySourcesResponse.php @@ -0,0 +1,19 @@ +connector->send($request); + } +} diff --git a/src/Seller/TokensV20210301/Dto/CreateRestrictedDataTokenRequest.php b/src/Seller/TokensV20210301/Dto/CreateRestrictedDataTokenRequest.php new file mode 100644 index 000000000..c33fa3d36 --- /dev/null +++ b/src/Seller/TokensV20210301/Dto/CreateRestrictedDataTokenRequest.php @@ -0,0 +1,21 @@ + [RestrictedResource::class]]; + + /** + * @param RestrictedResource[] $restrictedResources A list of restricted resources. + * Maximum: 50 + * @param ?string $targetApplication The application ID for the target application to which access is being delegated. + */ + public function __construct( + public readonly array $restrictedResources, + public readonly ?string $targetApplication = null, + ) { + } +} diff --git a/src/Seller/TokensV20210301/Dto/Error.php b/src/Seller/TokensV20210301/Dto/Error.php new file mode 100644 index 000000000..95e0d1b6c --- /dev/null +++ b/src/Seller/TokensV20210301/Dto/Error.php @@ -0,0 +1,20 @@ +status(); + $responseCls = match ($status) { + 200 => CreateRestrictedDataTokenResponse::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createRestrictedDataTokenRequest->toArray(); + } +} diff --git a/src/Seller/TokensV20210301/Responses/CreateRestrictedDataTokenResponse.php b/src/Seller/TokensV20210301/Responses/CreateRestrictedDataTokenResponse.php new file mode 100644 index 000000000..0b44221af --- /dev/null +++ b/src/Seller/TokensV20210301/Responses/CreateRestrictedDataTokenResponse.php @@ -0,0 +1,18 @@ + [Error::class]]; + + /** + * @param Error[]|null $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Seller/UploadsV20201101/Api.php b/src/Seller/UploadsV20201101/Api.php new file mode 100644 index 000000000..2118df1f3 --- /dev/null +++ b/src/Seller/UploadsV20201101/Api.php @@ -0,0 +1,27 @@ +connector->send($request); + } +} diff --git a/src/Seller/UploadsV20201101/Dto/Error.php b/src/Seller/UploadsV20201101/Dto/Error.php new file mode 100644 index 000000000..b7bd5a822 --- /dev/null +++ b/src/Seller/UploadsV20201101/Dto/Error.php @@ -0,0 +1,20 @@ + $this->marketplaceIds, 'contentMD5' => $this->contentMd5, 'contentType' => $this->contentType]); + } + + public function resolveEndpoint(): string + { + return "/uploads/2020-11-01/uploadDestinations/{$this->resource}"; + } + + public function createDtoFromResponse(Response $response): CreateUploadDestinationResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 201, 400, 403, 404, 413, 415, 429, 500, 503 => CreateUploadDestinationResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Seller/UploadsV20201101/Responses/CreateUploadDestinationResponse.php b/src/Seller/UploadsV20201101/Responses/CreateUploadDestinationResponse.php new file mode 100644 index 000000000..8db016a31 --- /dev/null +++ b/src/Seller/UploadsV20201101/Responses/CreateUploadDestinationResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?UploadDestination $payload Information about an upload destination. + * @param Error[]|null $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?UploadDestination $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/SellingPartnerApi.php b/src/SellingPartnerApi.php new file mode 100644 index 000000000..1848d013f --- /dev/null +++ b/src/SellingPartnerApi.php @@ -0,0 +1,125 @@ +authenticationClient = new Client(); + } else { + $this->authenticationClient = $authenticationClient; + } + } + + public function handlePsrRequest(RequestInterface $request, PendingRequest $pendingRequest): RequestInterface + { + // Saloon's default query string builder (which is Guzzle) encodes arrays like key[0]=value0&key[1]=value1, + // but Amazon expects key=value0,value1 + $query = $pendingRequest->query()->all(); + $uri = $request->getUri(); + $uri = $uri->withQuery(Query::build($query)); + $request = $request->withUri($uri); + + return $request; + } + + public function seller(): SellerConnector + { + return new SellerConnector( + $this->clientId, + $this->clientSecret, + $this->refreshToken, + $this->endpoint, + $this->dataElements, + $this->delegatee, + $this->authenticationClient, + ); + } + + public function vendor(): VendorConnector + { + return new VendorConnector( + $this->clientId, + $this->clientSecret, + $this->refreshToken, + $this->endpoint, + $this->dataElements, + $this->delegatee, + $this->authenticationClient, + ); + } + + public function resolveBaseUrl(): string + { + return $this->endpoint->value; + } + + public function lwaAuth(): LWAAuthenticator + { + return new LWAAuthenticator($this); + } + + public function grantlessAuth(GrantlessScope $scope): GrantlessAuthenticator + { + return new GrantlessAuthenticator($this, $scope); + } + + public function restrictedAuth( + string $path, + string $method, + array $knownDataElements, + ): RestrictedDataTokenAuthenticator { + // Only use data elements that are known to be valid for this particular endpoint + $dataElements = array_intersect($this->dataElements, $knownDataElements); + + return new RestrictedDataTokenAuthenticator($this, $path, $method, $dataElements); + } + + protected function defaultAuth(): Authenticator + { + return $this->lwaAuth(); + } + + protected function defaultHeaders(): array + { + $version = Package::version(); + + return [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + 'X-AMZ-Date' => gmdate('Ymd\THis\Z'), + 'User-Agent' => "jlevers/selling-partner-api/v$version/php", + 'Host' => Endpoint::host($this->endpoint), + ]; + } +} diff --git a/src/Traits/DownloadsDocument.php b/src/Traits/DownloadsDocument.php new file mode 100644 index 000000000..ab123cb35 --- /dev/null +++ b/src/Traits/DownloadsDocument.php @@ -0,0 +1,242 @@ +documentTypeInfo = static::documentTypeInfo($documentType); + } + + try { + $response = $client->request('GET', $this->url, ['stream' => true]); + } catch (ClientException $e) { + $response = $e->getResponse(); + if ($response->getStatusCode() === 404) { + throw new RuntimeException("Document not found ({$response->getStatusCode()}): {$response->getBody()}"); + } else { + throw $e; + } + } + + $rawContents = $response->getBody()->getContents(); + $contents = $rawContents; + + if ($this->compressionAlgorithm === 'GZIP') { + $contents = gzdecode($rawContents); + } + + if (! $postProcess) { + return $contents; + } + + $this->encoding = $encoding; + $contentType = $this->documentTypeInfo['contentType']; + // Document encodings depend on the target marketplace. English-language documents are + // typically ISO-8859-1 encoded, which messes up the data when we read it directly via + // SimpleXML or as a plain TAB/CSV, but the original encoding is required to parse XLSX + // and PDF documents. + if (! ($contentType === ContentType::XLSX || $contentType === ContentType::PDF)) { + $this->encoding = $this->detectEncoding($contents, $response); + $contents = mb_convert_encoding( + $contents, + static::DEFAULT_ENCODING, + $this->encoding ?? mb_internal_encoding() + ); + } + + return $this->parseDocument($contents); + } + + /** + * Downloads the document data as a stream. + * + * @return StreamInterface The raw (unencrypted) document stream. + */ + public function downloadStream(): StreamInterface + { + $client = new Client(); + try { + $response = $client->request('GET', $this->url, ['stream' => true]); + } catch (ClientException $e) { + $response = $e->getResponse(); + if ($response->getStatusCode() === 404) { + throw new RuntimeException( + "Document not found ({$response->getStatusCode()}): {$response->getBody()}" + ); + } + throw $e; + } + + $stream = $response->getBody(); + if (strtolower((string) $this->compressionAlgorithm) === 'gzip') { + $stream = new InflateStream($stream); + } + + return $stream; + } + + protected function parseDocument(string $contents): mixed + { + switch ($this->documentTypeInfo['contentType']) { + case ContentType::JSON: + return json_decode($contents, true); + case ContentType::PDF: + case ContentType::PLAIN: + return $contents; + case ContentType::XML: + return new SimpleXMLElement($contents); + case ContentType::CSV: + case ContentType::TAB: + case ContentType::XLSX: + return $this->parseSpreadsheet($contents); + } + } + + protected function parseSpreadsheet(string $contents): array + { + $tmpFilename = tempnam(sys_get_temp_dir(), 'tempdoc_spapi'); + $tempFile = fopen($tmpFilename, 'r+'); + fwrite($tempFile, $contents); + fclose($tempFile); + + $options = match ($this->documentTypeInfo['contentType']) { + ContentType::CSV => new Options(), + ContentType::TAB => new Options(), + ContentType::XLSX => new XLSXOptions(), + }; + if ($this->documentTypeInfo['contentType'] === ContentType::TAB) { + $options->FIELD_DELIMITER = "\t"; + } + if ($this->encoding) { + $options->ENCODING = $this->encoding; + } + + // Amazon doesn't use enclosure characters, and passing an empty string to setEnclosure + // results in the default enclosure being used (a double quote character), so we use a + // bizarre character to avoid recognizing double quotes as enclosures. + // Thanks @gregordonsky (https://github.com/gregordonsky) for the idea! + // There are a couple kinds of reports that use normal double-quote enclosures, so we + // need to check if this report type is one of them before setting the enclosure char. + if (! $this->documentTypeInfo['quoteEnclosure']) { + $options->FIELD_ENCLOSURE = chr(0); + } + + $reader = match ($this->documentTypeInfo['contentType']) { + ContentType::CSV, ContentType::TAB => new CSVReader($options), + ContentType::XLSX => new XLSXReader($options), + }; + $reader->open($tmpFilename); + + $data = []; + foreach ($reader->getSheetIterator() as $sheet) { + $rowIterator = $sheet->getRowIterator(); + $rowIterator->next(); + $header = $rowIterator->current()->toArray(); + + foreach ($rowIterator as $row) { + if ($row->toArray() === $header) { + continue; + } + $data[] = array_combine($header, $row->toArray()); + } + + // There are no multi-sheet documents + break; + } + + return $data; + } + + protected static function documentTypeInfo(string $documentTypeName): array + { + $documentTypeInfo = null; + + // Check feeds first because the file is smaller + $feedTypes = json_decode(file_get_contents(RESOURCE_DIR.'/feeds.json'), true); + if ($feedTypes[$documentTypeName]) { + $documentTypeInfo = [ + 'name' => $documentTypeName, + 'contentType' => ContentType::from($feedTypes[$documentTypeName]), + 'quoteEnclosure' => false, + ]; + } + + if (! $documentTypeInfo) { + $reportTypes = json_decode(file_get_contents(RESOURCE_DIR.'/reports.json'), true); + if ($reportTypes[$documentTypeName]) { + $documentTypeInfo = $reportTypes[$documentTypeName]; + $documentTypeInfo['name'] = $documentTypeName; + $documentTypeInfo['contentType'] = ContentType::from($documentTypeInfo['contentType']); + } + } + + if (! $documentTypeInfo) { + throw new InvalidArgumentException("Unknown document type '$documentTypeName'"); + } + + return $documentTypeInfo; + } + + protected function detectEncoding(string $contents, ResponseInterface $response): string + { + // If the encoding is not supported, default to system default encoding + if ($this->encoding && ! in_array(strtoupper($this->encoding), mb_list_encodings(), true)) { + $encoding = static::DEFAULT_ENCODING; + } elseif (! $this->encoding) { + // If encoding is not provided try to automatically detect the encoding from the HTTP response + $encodings = [static::DEFAULT_ENCODING]; + if ($response->hasHeader('Content-Type')) { + $parsed = Header::parse($response->getHeader('Content-Type')); + + foreach ($parsed as $header) { + if ($header['charset'] ?? null) { + $headerEncoding = $header['charset']; + array_unshift($encodings, $headerEncoding); + break; + } + } + } + + $encoding = mb_detect_encoding($contents, $encodings, true); + } + + return $encoding; + } +} diff --git a/src/Traits/EnumTrait.php b/src/Traits/EnumTrait.php new file mode 100644 index 000000000..a8a08318d --- /dev/null +++ b/src/Traits/EnumTrait.php @@ -0,0 +1,21 @@ + $e->value, + self::cases() + ); + } +} diff --git a/src/Traits/UploadsDocument.php b/src/Traits/UploadsDocument.php new file mode 100644 index 000000000..e46ed7c74 --- /dev/null +++ b/src/Traits/UploadsDocument.php @@ -0,0 +1,55 @@ +put($this->url, [ + RequestOptions::HEADERS => [ + 'Content-Type' => static::getContentType($feedType, $charset), + 'Host' => parse_url($this->url, PHP_URL_HOST), + ], + RequestOptions::BODY => $data, + ]); + + if ($response->getStatusCode() >= 300) { + throw new RuntimeException( + "Document upload failed ({$response->getStatusCode()}): {$response->getBody()}" + ); + } + } + + /** + * Create a normalized content-type header. + * When uploading a document you must use the exact same content-type/charset in createFeedDocument() and upload(). + */ + public static function getContentType(string $feedType, ?string $charset = null): string + { + $feedTypes = json_decode(file_get_contents(RESOURCE_DIR.'/feeds.json'), true); + $contentType = $feedTypes[$feedType]; + + if (! $contentType) { + throw new RuntimeException("Unknown feed type '{$feedType}'"); + } + + if ($charset !== null) { + $contentType .= "; charset={$charset}"; + } + + return $contentType; + } +} diff --git a/src/Vendor/DirectFulfillmentInventoryV1/Api.php b/src/Vendor/DirectFulfillmentInventoryV1/Api.php new file mode 100644 index 000000000..bac7a5ffb --- /dev/null +++ b/src/Vendor/DirectFulfillmentInventoryV1/Api.php @@ -0,0 +1,24 @@ +connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentInventoryV1/Dto/Error.php b/src/Vendor/DirectFulfillmentInventoryV1/Dto/Error.php new file mode 100644 index 000000000..cfc7b4061 --- /dev/null +++ b/src/Vendor/DirectFulfillmentInventoryV1/Dto/Error.php @@ -0,0 +1,20 @@ + [ItemDetails::class]]; + + /** + * @param bool $isFullUpdate When true, this request contains a full feed. Otherwise, this request contains a partial feed. When sending a full feed, you must send information about all items in the warehouse. Any items not in the full feed are updated as not available. When sending a partial feed, only include the items that need an update to inventory. The status of other items will remain unchanged. + * @param ItemDetails[] $items A list of inventory items with updated details, including quantity available. + */ + public function __construct( + public readonly PartyIdentification $sellingParty, + public readonly bool $isFullUpdate, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentInventoryV1/Dto/ItemDetails.php b/src/Vendor/DirectFulfillmentInventoryV1/Dto/ItemDetails.php new file mode 100644 index 000000000..0d7469fae --- /dev/null +++ b/src/Vendor/DirectFulfillmentInventoryV1/Dto/ItemDetails.php @@ -0,0 +1,22 @@ +warehouseId}/items"; + } + + public function createDtoFromResponse(Response $response): SubmitInventoryUpdateResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitInventoryUpdateResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitInventoryUpdateRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentInventoryV1/Responses/SubmitInventoryUpdateResponse.php b/src/Vendor/DirectFulfillmentInventoryV1/Responses/SubmitInventoryUpdateResponse.php new file mode 100644 index 000000000..2e266608c --- /dev/null +++ b/src/Vendor/DirectFulfillmentInventoryV1/Responses/SubmitInventoryUpdateResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Api.php b/src/Vendor/DirectFulfillmentOrdersV1/Api.php new file mode 100644 index 000000000..9c20dba51 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Api.php @@ -0,0 +1,58 @@ +connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. + */ + public function getOrder(string $purchaseOrderNumber): Response + { + $request = new GetOrder($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param SubmitAcknowledgementRequest $submitAcknowledgementRequest The request schema for the submitAcknowledgement operation. + */ + public function submitAcknowledgement(SubmitAcknowledgementRequest $submitAcknowledgementRequest): Response + { + $request = new SubmitAcknowledgement($submitAcknowledgementRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/AcknowledgementStatus.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/AcknowledgementStatus.php new file mode 100644 index 000000000..505d00b42 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/AcknowledgementStatus.php @@ -0,0 +1,18 @@ + [OrderItemAcknowledgement::class]]; + + /** + * @param string $purchaseOrderNumber The purchase order number for this order. Formatting Notes: alpha-numeric code. + * @param string $vendorOrderNumber The vendor's order number for this order. + * @param DateTime $acknowledgementDate The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. + * @param AcknowledgementStatus $acknowledgementStatus Status of acknowledgement. + * @param OrderItemAcknowledgement[] $itemAcknowledgements Item details including acknowledged quantity. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly string $vendorOrderNumber, + public readonly \DateTime $acknowledgementDate, + public readonly AcknowledgementStatus $acknowledgementStatus, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $itemAcknowledgements = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderDetails.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderDetails.php new file mode 100644 index 000000000..2b8caab52 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderDetails.php @@ -0,0 +1,33 @@ + [OrderItem::class]]; + + /** + * @param string $customerOrderNumber The customer order number. + * @param DateTime $orderDate The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. + * @param ShipmentDetails $shipmentDetails Shipment details required for the shipment. + * @param Address $shipToParty Address of the party. + * @param ?string $orderStatus Current status of the order. + * @param ?TaxTotal $taxTotal + * @param OrderItem[] $items A list of items in this purchase order. + */ + public function __construct( + public readonly string $customerOrderNumber, + public readonly \DateTime $orderDate, + public readonly ShipmentDetails $shipmentDetails, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly Address $shipToParty, + public readonly PartyIdentification $billToParty, + public readonly ?string $orderStatus = null, + public readonly ?TaxTotal $taxTotal = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderItem.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderItem.php new file mode 100644 index 000000000..4f0c95df2 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/OrderItem.php @@ -0,0 +1,34 @@ + [Order::class]]; + + /** + * @param ?Pagination $pagination + * @param Order[] $orders + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $orders = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/Pagination.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/Pagination.php new file mode 100644 index 000000000..0b16e1869 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/Pagination.php @@ -0,0 +1,16 @@ + [OrderAcknowledgementItem::class]]; + + /** + * @param OrderAcknowledgementItem[] $orderAcknowledgements A list of one or more purchase orders. + */ + public function __construct( + public readonly ?array $orderAcknowledgements = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxDetails.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxDetails.php new file mode 100644 index 000000000..c58e716a3 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxDetails.php @@ -0,0 +1,18 @@ + [TaxDetails::class]]; + + /** + * @param TaxDetails[] $taxLineItem A list of tax line items. + */ + public function __construct( + public readonly ?array $taxLineItem = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxRegistrationDetails.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..594c01f76 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TaxRegistrationDetails.php @@ -0,0 +1,22 @@ + [TaxDetails::class]]; + + /** + * @param TaxDetails[] $taxLineItem A list of tax line items. + */ + public function __construct( + public readonly ?array $taxLineItem = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Dto/TransactionId.php b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TransactionId.php new file mode 100644 index 000000000..44bdf5c1e --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Dto/TransactionId.php @@ -0,0 +1,16 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/orders/v1/purchaseOrders/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): GetOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Requests/GetOrders.php b/src/Vendor/DirectFulfillmentOrdersV1/Requests/GetOrders.php new file mode 100644 index 000000000..0214793df --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Requests/GetOrders.php @@ -0,0 +1,72 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'status' => $this->status, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'includeDetails' => $this->includeDetails, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/orders/v1/purchaseOrders'; + } + + public function createDtoFromResponse(Response $response): GetOrdersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 429, 500, 503 => GetOrdersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Requests/SubmitAcknowledgement.php b/src/Vendor/DirectFulfillmentOrdersV1/Requests/SubmitAcknowledgement.php new file mode 100644 index 000000000..57d63aa1e --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Requests/SubmitAcknowledgement.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitAcknowledgementResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitAcknowledgementRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrderResponse.php b/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrderResponse.php new file mode 100644 index 000000000..dbc4902e0 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrderResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Order $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Order $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrdersResponse.php b/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrdersResponse.php new file mode 100644 index 000000000..afe26169b --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Responses/GetOrdersResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderList $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV1/Responses/SubmitAcknowledgementResponse.php b/src/Vendor/DirectFulfillmentOrdersV1/Responses/SubmitAcknowledgementResponse.php new file mode 100644 index 000000000..a324f4a40 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV1/Responses/SubmitAcknowledgementResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionId $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionId $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Api.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Api.php new file mode 100644 index 000000000..5d71de988 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Api.php @@ -0,0 +1,58 @@ +connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code. + */ + public function getOrder(string $purchaseOrderNumber): Response + { + $request = new GetOrder($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param SubmitAcknowledgementRequest $submitAcknowledgementRequest The request schema for the submitAcknowledgement operation. + */ + public function submitAcknowledgement(SubmitAcknowledgementRequest $submitAcknowledgementRequest): Response + { + $request = new SubmitAcknowledgement($submitAcknowledgementRequest); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/AcknowledgementStatus.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/AcknowledgementStatus.php new file mode 100644 index 000000000..07a1dbc6b --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/AcknowledgementStatus.php @@ -0,0 +1,18 @@ + [OrderItemAcknowledgement::class]]; + + /** + * @param string $purchaseOrderNumber The purchase order number for this order. Formatting Notes: alpha-numeric code. + * @param string $vendorOrderNumber The vendor's order number for this order. + * @param DateTime $acknowledgementDate The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00. + * @param AcknowledgementStatus $acknowledgementStatus Status of acknowledgement. + * @param OrderItemAcknowledgement[] $itemAcknowledgements Item details including acknowledged quantity. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly string $vendorOrderNumber, + public readonly \DateTime $acknowledgementDate, + public readonly AcknowledgementStatus $acknowledgementStatus, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $itemAcknowledgements = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderDetails.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderDetails.php new file mode 100644 index 000000000..42c894835 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderDetails.php @@ -0,0 +1,33 @@ + [OrderItem::class]]; + + /** + * @param string $customerOrderNumber The customer order number. + * @param DateTime $orderDate The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed. + * @param ShipmentDetails $shipmentDetails Shipment details required for the shipment. + * @param Address $shipToParty Address of the party. + * @param ?string $orderStatus Current status of the order. + * @param ?TaxItemDetails $taxTotal Total tax details for the line item. + * @param OrderItem[] $items A list of items in this purchase order. + */ + public function __construct( + public readonly string $customerOrderNumber, + public readonly \DateTime $orderDate, + public readonly ShipmentDetails $shipmentDetails, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly Address $shipToParty, + public readonly PartyIdentification $billToParty, + public readonly ?string $orderStatus = null, + public readonly ?TaxItemDetails $taxTotal = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderItem.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderItem.php new file mode 100644 index 000000000..3971c053b --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/OrderItem.php @@ -0,0 +1,36 @@ + [OrderAcknowledgementItem::class]]; + + /** + * @param OrderAcknowledgementItem[] $orderAcknowledgements A list of one or more purchase orders. + */ + public function __construct( + public readonly ?array $orderAcknowledgements = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/SubmitAcknowledgementResponse.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/SubmitAcknowledgementResponse.php new file mode 100644 index 000000000..7fe8931fa --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/SubmitAcknowledgementResponse.php @@ -0,0 +1,20 @@ + [TaxDetails::class]]; + + /** + * @param TaxDetails[] $taxLineItem A list of tax line items. + */ + public function __construct( + public readonly ?array $taxLineItem = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/TaxRegistrationDetails.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..1b8009bd8 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Dto/TaxRegistrationDetails.php @@ -0,0 +1,22 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/orders/2021-12-28/purchaseOrders/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): Order|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => Order::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/GetOrders.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/GetOrders.php new file mode 100644 index 000000000..10a02be10 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/GetOrders.php @@ -0,0 +1,74 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'status' => $this->status, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'includeDetails' => $this->includeDetails, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/orders/2021-12-28/purchaseOrders'; + } + + public function createDtoFromResponse(Response $response): OrderList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => OrderList::class, + 400, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/SubmitAcknowledgement.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/SubmitAcknowledgement.php new file mode 100644 index 000000000..0b7d2c476 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Requests/SubmitAcknowledgement.php @@ -0,0 +1,53 @@ +status(); + $responseCls = match ($status) { + 202 => TransactionId::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitAcknowledgementRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/ErrorList.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/ErrorList.php new file mode 100644 index 000000000..ab82f60d4 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/Order.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/Order.php new file mode 100644 index 000000000..a94ffc7cf --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/Order.php @@ -0,0 +1,19 @@ + [Order::class]]; + + /** + * @param ?Pagination $pagination + * @param Order[] $orders + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $orders = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/TransactionId.php b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/TransactionId.php new file mode 100644 index 000000000..059de0b68 --- /dev/null +++ b/src/Vendor/DirectFulfillmentOrdersV20211228/Responses/TransactionId.php @@ -0,0 +1,16 @@ +connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/AdditionalDetails.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/AdditionalDetails.php new file mode 100644 index 000000000..b61799493 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/AdditionalDetails.php @@ -0,0 +1,20 @@ + [TaxDetail::class]]; + + /** + * @param string $type Type of charge applied. + * @param Money $chargeAmount An amount of money, including units in the form of currency. + * @param TaxDetail[] $taxDetails Individual tax details per line item. + */ + public function __construct( + public readonly string $type, + public readonly Money $chargeAmount, + public readonly ?array $taxDetails = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/Error.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/Error.php new file mode 100644 index 000000000..743ac6511 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/Error.php @@ -0,0 +1,20 @@ + [TaxDetail::class], + 'additionalDetails' => [AdditionalDetails::class], + 'chargeDetails' => [ChargeDetails::class], + 'items' => [InvoiceItem::class], + ]; + + /** + * @param string $invoiceNumber The unique invoice number. + * @param DateTime $invoiceDate Invoice date. + * @param Money $invoiceTotal An amount of money, including units in the form of currency. + * @param ?string $referenceNumber An additional unique reference number used for regulatory or other purposes. + * @param ?PartyIdentification $billToParty + * @param ?string $shipToCountryCode Ship-to country code. + * @param ?string $paymentTermsCode The payment terms for the invoice. + * @param TaxDetail[] $taxTotals Individual tax details per line item. + * @param AdditionalDetails[] $additionalDetails Additional details provided by the selling party, for tax-related or other purposes. + * @param ChargeDetails[] $chargeDetails Total charge amount details for all line items. + * @param InvoiceItem[] $items Provides the details of the items in this invoice. + */ + public function __construct( + public readonly string $invoiceNumber, + public readonly \DateTime $invoiceDate, + public readonly PartyIdentification $remitToParty, + public readonly PartyIdentification $shipFromParty, + public readonly Money $invoiceTotal, + public readonly ?string $referenceNumber = null, + public readonly ?PartyIdentification $billToParty = null, + public readonly ?string $shipToCountryCode = null, + public readonly ?string $paymentTermsCode = null, + public readonly ?array $taxTotals = null, + public readonly ?array $additionalDetails = null, + public readonly ?array $chargeDetails = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/InvoiceItem.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/InvoiceItem.php new file mode 100644 index 000000000..44ca53f41 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/InvoiceItem.php @@ -0,0 +1,39 @@ + [TaxDetail::class], + 'chargeDetails' => [ChargeDetails::class], + ]; + + /** + * @param string $itemSequenceNumber Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on. + * @param ItemQuantity $invoicedQuantity Details of item quantity. + * @param Money $netCost An amount of money, including units in the form of currency. + * @param string $purchaseOrderNumber The purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. + * @param ?string $buyerProductIdentifier Buyer's standard identification number (ASIN) of an item. + * @param ?string $vendorProductIdentifier The vendor selected product identification of the item. + * @param ?string $vendorOrderNumber The vendor's order number for this order. + * @param ?string $hsnCode Harmonized System of Nomenclature (HSN) tax code. The HSN number cannot contain alphabets. + * @param TaxDetail[] $taxDetails Individual tax details per line item. + * @param ChargeDetails[] $chargeDetails Total charge amount details for all line items. + */ + public function __construct( + public readonly string $itemSequenceNumber, + public readonly ItemQuantity $invoicedQuantity, + public readonly Money $netCost, + public readonly string $purchaseOrderNumber, + public readonly ?string $buyerProductIdentifier = null, + public readonly ?string $vendorProductIdentifier = null, + public readonly ?string $vendorOrderNumber = null, + public readonly ?string $hsnCode = null, + public readonly ?array $taxDetails = null, + public readonly ?array $chargeDetails = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/ItemQuantity.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/ItemQuantity.php new file mode 100644 index 000000000..dbd2ec59e --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/ItemQuantity.php @@ -0,0 +1,18 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly string $currencyCode, + public readonly string $amount, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/PartyIdentification.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/PartyIdentification.php new file mode 100644 index 000000000..eab61abc4 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/PartyIdentification.php @@ -0,0 +1,22 @@ + [TaxRegistrationDetail::class]]; + + /** + * @param string $partyId Assigned Identification for the party. + * @param ?Address $address Address of the party. + * @param TaxRegistrationDetail[] $taxRegistrationDetails Tax registration details of the entity. + */ + public function __construct( + public readonly string $partyId, + public readonly ?Address $address = null, + public readonly ?array $taxRegistrationDetails = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/SubmitInvoiceRequest.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/SubmitInvoiceRequest.php new file mode 100644 index 000000000..be471d0b2 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/SubmitInvoiceRequest.php @@ -0,0 +1,18 @@ + [InvoiceDetail::class]]; + + /** + * @param InvoiceDetail[] $invoices + */ + public function __construct( + public readonly ?array $invoices = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxDetail.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxDetail.php new file mode 100644 index 000000000..86d357ce7 --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxDetail.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param ?Money $taxableAmount An amount of money, including units in the form of currency. + */ + public function __construct( + public readonly string $taxType, + public readonly Money $taxAmount, + public readonly ?string $taxRate = null, + public readonly ?Money $taxableAmount = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxRegistrationDetail.php b/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxRegistrationDetail.php new file mode 100644 index 000000000..8127a2c1f --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Dto/TaxRegistrationDetail.php @@ -0,0 +1,22 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitInvoiceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitInvoiceRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentPaymentV1/Responses/SubmitInvoiceResponse.php b/src/Vendor/DirectFulfillmentPaymentV1/Responses/SubmitInvoiceResponse.php new file mode 100644 index 000000000..b16c1b78f --- /dev/null +++ b/src/Vendor/DirectFulfillmentPaymentV1/Responses/SubmitInvoiceResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Api.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Api.php new file mode 100644 index 000000000..5012a7092 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Api.php @@ -0,0 +1,32 @@ +connector->send($request); + } + + /** + * @param string $transactionId The transaction identifier returned in the response to the generateOrderScenarios operation. + */ + public function getOrderScenarios(string $transactionId): Response + { + $request = new GetOrderScenarios($transactionId); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/Error.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/Error.php new file mode 100644 index 000000000..f659ec146 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/Error.php @@ -0,0 +1,20 @@ + [OrderScenarioRequest::class]]; + + /** + * @param OrderScenarioRequest[] $orders The list of test orders requested as indicated by party identifiers. + */ + public function __construct( + public readonly ?array $orders = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/OrderScenarioRequest.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/OrderScenarioRequest.php new file mode 100644 index 000000000..afe9275a9 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/OrderScenarioRequest.php @@ -0,0 +1,18 @@ + [OrderScenarioRequest::class]]; + + /** + * @param string $scenarioId An identifier that identifies the type of scenario that user can use for testing. + * @param OrderScenarioRequest[] $orders The list of test orders requested as indicated by party identifiers. + */ + public function __construct( + public readonly string $scenarioId, + public readonly ?array $orders = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestCaseData.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestCaseData.php new file mode 100644 index 000000000..83fa1b6c7 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestCaseData.php @@ -0,0 +1,18 @@ + [Scenario::class]]; + + /** + * @param Scenario[] $scenarios Set of use cases that describes the possible test scenarios. + */ + public function __construct( + public readonly ?array $scenarios = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestOrder.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestOrder.php new file mode 100644 index 000000000..4ab5bf5a1 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Dto/TestOrder.php @@ -0,0 +1,16 @@ +status(); + $responseCls = match ($status) { + 202 => TransactionReference::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->generateOrderScenarioRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Requests/GetOrderScenarios.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Requests/GetOrderScenarios.php new file mode 100644 index 000000000..d2dca023f --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Requests/GetOrderScenarios.php @@ -0,0 +1,43 @@ +transactionId}"; + } + + public function createDtoFromResponse(Response $response): TransactionStatus|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => TransactionStatus::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/ErrorList.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/ErrorList.php new file mode 100644 index 000000000..44ebde555 --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/TransactionReference.php b/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/TransactionReference.php new file mode 100644 index 000000000..686d8895e --- /dev/null +++ b/src/Vendor/DirectFulfillmentSandboxV20211028/Responses/TransactionReference.php @@ -0,0 +1,16 @@ +connector->send($request); + } + + public function submitShippingLabelRequest(SubmitShippingLabelsRequest $submitShippingLabelsRequest): Response + { + $request = new SubmitShippingLabelRequest($submitShippingLabelsRequest); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. + */ + public function getShippingLabel(string $purchaseOrderNumber): Response + { + $request = new GetShippingLabel($purchaseOrderNumber); + + return $this->connector->send($request); + } + + public function submitShipmentConfirmations( + SubmitShipmentConfirmationsRequest $submitShipmentConfirmationsRequest, + ): Response { + $request = new SubmitShipmentConfirmations($submitShipmentConfirmationsRequest); + + return $this->connector->send($request); + } + + public function submitShipmentStatusUpdates( + SubmitShipmentStatusUpdatesRequest $submitShipmentStatusUpdatesRequest, + ): Response { + $request = new SubmitShipmentStatusUpdates($submitShipmentStatusUpdatesRequest); + + return $this->connector->send($request); + } + + /** + * @param DateTime $createdAfter Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param DateTime $createdBefore Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $shipFromPartyId The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + * @param ?int $limit The limit to the number of records returned + * @param ?string $sortOrder Sort ASC or DESC by order creation date. + * @param ?string $nextToken Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. + */ + public function getCustomerInvoices( + \DateTime $createdAfter, + \DateTime $createdBefore, + ?string $shipFromPartyId = null, + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ): Response { + $request = new GetCustomerInvoices($createdAfter, $createdBefore, $shipFromPartyId, $limit, $sortOrder, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber Purchase order number of the shipment for which to return the invoice. + */ + public function getCustomerInvoice(string $purchaseOrderNumber): Response + { + $request = new GetCustomerInvoice($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param DateTime $createdAfter Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param DateTime $createdBefore Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $shipFromPartyId The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + * @param ?int $limit The limit to the number of records returned + * @param ?string $sortOrder Sort ASC or DESC by packing slip creation date. + * @param ?string $nextToken Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. + */ + public function getPackingSlips( + \DateTime $createdAfter, + \DateTime $createdBefore, + ?string $shipFromPartyId = null, + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ): Response { + $request = new GetPackingSlips($createdAfter, $createdBefore, $shipFromPartyId, $limit, $sortOrder, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchaseOrderNumber for the packing slip you want. + */ + public function getPackingSlip(string $purchaseOrderNumber): Response + { + $request = new GetPackingSlip($purchaseOrderNumber); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/Address.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/Address.php new file mode 100644 index 000000000..970acbe7c --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/Address.php @@ -0,0 +1,36 @@ + [PackedItem::class]]; + + /** + * @param string $containerType The type of container. + * @param string $containerIdentifier The container identifier. + * @param Weight $weight The weight. + * @param ?string $trackingNumber The tracking number. + * @param ?string $manifestId The manifest identifier. + * @param ?string $manifestDate The date of the manifest. + * @param ?string $shipMethod The shipment method. + * @param ?string $scacCode SCAC code required for NA VOC vendors only. + * @param ?string $carrier Carrier required for EU VOC vendors only. + * @param ?int $containerSequenceNumber An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. + * @param ?Dimensions $dimensions Physical dimensional measurements of a container. + * @param PackedItem[] $packedItems A list of packed items. + */ + public function __construct( + public readonly string $containerType, + public readonly string $containerIdentifier, + public readonly Weight $weight, + public readonly ?string $trackingNumber = null, + public readonly ?string $manifestId = null, + public readonly ?string $manifestDate = null, + public readonly ?string $shipMethod = null, + public readonly ?string $scacCode = null, + public readonly ?string $carrier = null, + public readonly ?int $containerSequenceNumber = null, + public readonly ?Dimensions $dimensions = null, + public readonly ?array $packedItems = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/CustomerInvoice.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/CustomerInvoice.php new file mode 100644 index 000000000..d2b64000a --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/CustomerInvoice.php @@ -0,0 +1,18 @@ + [CustomerInvoice::class]]; + + /** + * @param ?Pagination $pagination + * @param CustomerInvoice[] $customerInvoices + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $customerInvoices = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/Dimensions.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/Dimensions.php new file mode 100644 index 000000000..c3726362e --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/Dimensions.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $unitOfMeasure The unit of measure for dimensions. + */ + public function __construct( + public readonly string $length, + public readonly string $width, + public readonly string $height, + public readonly string $unitOfMeasure, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/Error.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/Error.php new file mode 100644 index 000000000..7501fcf83 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/Error.php @@ -0,0 +1,20 @@ + [PackingSlip::class]]; + + /** + * @param ?Pagination $pagination + * @param PackingSlip[] $packingSlips + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $packingSlips = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/Pagination.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/Pagination.php new file mode 100644 index 000000000..41c3bd57f --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/Pagination.php @@ -0,0 +1,16 @@ + [TaxRegistrationDetails::class]]; + + /** + * @param string $partyId Assigned Identification for the party. + * @param ?Address $address Address of the party. + * @param TaxRegistrationDetails[] $taxRegistrationDetails Tax registration details of the entity. + */ + public function __construct( + public readonly string $partyId, + public readonly ?Address $address = null, + public readonly ?array $taxRegistrationDetails = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentConfirmation.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentConfirmation.php new file mode 100644 index 000000000..5be68a9f3 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentConfirmation.php @@ -0,0 +1,26 @@ + [Item::class], 'containers' => [Container::class]]; + + /** + * @param string $purchaseOrderNumber Purchase order number corresponding to the shipment. + * @param ShipmentDetails $shipmentDetails Details about a shipment. + * @param Item[] $items Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. + * @param Container[] $containers A list of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly ShipmentDetails $shipmentDetails, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $items = null, + public readonly ?array $containers = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentDetails.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentDetails.php new file mode 100644 index 000000000..c9f2f285e --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShipmentDetails.php @@ -0,0 +1,24 @@ + [LabelData::class]]; + + /** + * @param string $purchaseOrderNumber This field will contain the Purchase Order Number for this order. + * @param string $labelFormat Format of the label. + * @param LabelData[] $labelData Provides the details of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly string $labelFormat, + public readonly ?array $labelData = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelList.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelList.php new file mode 100644 index 000000000..1f2e1b215 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelList.php @@ -0,0 +1,20 @@ + [ShippingLabel::class]]; + + /** + * @param ?Pagination $pagination + * @param ShippingLabel[] $shippingLabels + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $shippingLabels = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelRequest.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelRequest.php new file mode 100644 index 000000000..cb1612552 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/ShippingLabelRequest.php @@ -0,0 +1,22 @@ + [Container::class]]; + + /** + * @param string $purchaseOrderNumber Purchase order number of the order for which to create a shipping label. + * @param Container[] $containers A list of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $containers = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/StatusUpdateDetails.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/StatusUpdateDetails.php new file mode 100644 index 000000000..397a66f24 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/StatusUpdateDetails.php @@ -0,0 +1,26 @@ + [ShipmentConfirmation::class]]; + + /** + * @param ShipmentConfirmation[] $shipmentConfirmations + */ + public function __construct( + public readonly ?array $shipmentConfirmations = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShipmentStatusUpdatesRequest.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShipmentStatusUpdatesRequest.php new file mode 100644 index 000000000..7cc749384 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShipmentStatusUpdatesRequest.php @@ -0,0 +1,18 @@ + [ShipmentStatusUpdate::class]]; + + /** + * @param ShipmentStatusUpdate[] $shipmentStatusUpdates + */ + public function __construct( + public readonly ?array $shipmentStatusUpdates = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShippingLabelsRequest.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShippingLabelsRequest.php new file mode 100644 index 000000000..04d25e840 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/SubmitShippingLabelsRequest.php @@ -0,0 +1,18 @@ + [ShippingLabelRequest::class]]; + + /** + * @param ShippingLabelRequest[] $shippingLabelRequests + */ + public function __construct( + public readonly ?array $shippingLabelRequests = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Dto/TaxRegistrationDetails.php b/src/Vendor/DirectFulfillmentShippingV1/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..8d9a79862 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Dto/TaxRegistrationDetails.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + */ + public function __construct( + public readonly string $unitOfMeasure, + public readonly string $value, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoice.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoice.php new file mode 100644 index 000000000..986c29d95 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoice.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/v1/customerInvoices/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): GetCustomerInvoiceResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetCustomerInvoiceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoices.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoices.php new file mode 100644 index 000000000..ce8b1fb15 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetCustomerInvoices.php @@ -0,0 +1,68 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/v1/customerInvoices'; + } + + public function createDtoFromResponse(Response $response): GetCustomerInvoicesResponse|GetCustomerInvoiceResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => GetCustomerInvoicesResponse::class, + 400, 403, 404, 415, 429, 500, 503 => GetCustomerInvoiceResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlip.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlip.php new file mode 100644 index 000000000..436a8007d --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlip.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/v1/packingSlips/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): GetPackingSlipResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetPackingSlipResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlips.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlips.php new file mode 100644 index 000000000..1985cee6f --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetPackingSlips.php @@ -0,0 +1,66 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/v1/packingSlips'; + } + + public function createDtoFromResponse(Response $response): GetPackingSlipListResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetPackingSlipListResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabel.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabel.php new file mode 100644 index 000000000..3cf4fb0f2 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabel.php @@ -0,0 +1,44 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/v1/shippingLabels/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): GetShippingLabelResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetShippingLabelResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabels.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabels.php new file mode 100644 index 000000000..ecbcd4a28 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/GetShippingLabels.php @@ -0,0 +1,63 @@ + $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/v1/shippingLabels'; + } + + public function createDtoFromResponse(Response $response): GetShippingLabelListResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 429, 500, 503 => GetShippingLabelListResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentConfirmations.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentConfirmations.php new file mode 100644 index 000000000..c34ca6ef3 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentConfirmations.php @@ -0,0 +1,48 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitShipmentConfirmationsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipmentConfirmationsRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentStatusUpdates.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentStatusUpdates.php new file mode 100644 index 000000000..967812e99 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShipmentStatusUpdates.php @@ -0,0 +1,48 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitShipmentStatusUpdatesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipmentStatusUpdatesRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShippingLabelRequest.php b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShippingLabelRequest.php new file mode 100644 index 000000000..0524d8dfd --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Requests/SubmitShippingLabelRequest.php @@ -0,0 +1,48 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitShippingLabelsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShippingLabelsRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoiceResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoiceResponse.php new file mode 100644 index 000000000..8efd39c68 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoiceResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CustomerInvoice $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CustomerInvoice $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoicesResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoicesResponse.php new file mode 100644 index 000000000..cd5673668 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetCustomerInvoicesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?CustomerInvoiceList $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?CustomerInvoiceList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipListResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipListResponse.php new file mode 100644 index 000000000..f82da485e --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipListResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?PackingSlipList $payload A list of packing slips. + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?PackingSlipList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipResponse.php new file mode 100644 index 000000000..00da24920 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetPackingSlipResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?PackingSlip $payload Packing slip information. + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?PackingSlip $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelListResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelListResponse.php new file mode 100644 index 000000000..7a888b534 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelListResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ShippingLabelList $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ShippingLabelList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelResponse.php new file mode 100644 index 000000000..eaa635593 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/GetShippingLabelResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ShippingLabel $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ShippingLabel $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentConfirmationsResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentConfirmationsResponse.php new file mode 100644 index 000000000..34a5f01e7 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentConfirmationsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentStatusUpdatesResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentStatusUpdatesResponse.php new file mode 100644 index 000000000..688a154ad --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShipmentStatusUpdatesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShippingLabelsResponse.php b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShippingLabelsResponse.php new file mode 100644 index 000000000..1d10a0c04 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV1/Responses/SubmitShippingLabelsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Api.php b/src/Vendor/DirectFulfillmentShippingV20211228/Api.php new file mode 100644 index 000000000..f99ab15e8 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Api.php @@ -0,0 +1,152 @@ +connector->send($request); + } + + public function submitShippingLabelRequest(SubmitShippingLabelsRequest $submitShippingLabelsRequest): Response + { + $request = new SubmitShippingLabelRequest($submitShippingLabelsRequest); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order. + */ + public function getShippingLabel(string $purchaseOrderNumber): Response + { + $request = new GetShippingLabel($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchase order number for which you want to return the shipping labels. It should be the same purchaseOrderNumber as received in the order. + * @param CreateShippingLabelsRequest $createShippingLabelsRequest The request body for the createShippingLabels operation. + */ + public function createShippingLabels( + string $purchaseOrderNumber, + CreateShippingLabelsRequest $createShippingLabelsRequest, + ): Response { + $request = new CreateShippingLabels($purchaseOrderNumber, $createShippingLabelsRequest); + + return $this->connector->send($request); + } + + public function submitShipmentConfirmations( + SubmitShipmentConfirmationsRequest $submitShipmentConfirmationsRequest, + ): Response { + $request = new SubmitShipmentConfirmations($submitShipmentConfirmationsRequest); + + return $this->connector->send($request); + } + + public function submitShipmentStatusUpdates( + SubmitShipmentStatusUpdatesRequest $submitShipmentStatusUpdatesRequest, + ): Response { + $request = new SubmitShipmentStatusUpdates($submitShipmentStatusUpdatesRequest); + + return $this->connector->send($request); + } + + /** + * @param DateTime $createdAfter Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param DateTime $createdBefore Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $shipFromPartyId The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses. + * @param ?int $limit The limit to the number of records returned + * @param ?string $sortOrder Sort ASC or DESC by order creation date. + * @param ?string $nextToken Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call. + */ + public function getCustomerInvoices( + \DateTime $createdAfter, + \DateTime $createdBefore, + ?string $shipFromPartyId = null, + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ): Response { + $request = new GetCustomerInvoices($createdAfter, $createdBefore, $shipFromPartyId, $limit, $sortOrder, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber Purchase order number of the shipment for which to return the invoice. + */ + public function getCustomerInvoice(string $purchaseOrderNumber): Response + { + $request = new GetCustomerInvoice($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param DateTime $createdAfter Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param DateTime $createdBefore Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $shipFromPartyId The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses. + * @param ?int $limit The limit to the number of records returned + * @param ?string $sortOrder Sort ASC or DESC by packing slip creation date. + * @param ?string $nextToken Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call. + */ + public function getPackingSlips( + \DateTime $createdAfter, + \DateTime $createdBefore, + ?string $shipFromPartyId = null, + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ): Response { + $request = new GetPackingSlips($createdAfter, $createdBefore, $shipFromPartyId, $limit, $sortOrder, $nextToken); + + return $this->connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchaseOrderNumber for the packing slip you want. + */ + public function getPackingSlip(string $purchaseOrderNumber): Response + { + $request = new GetPackingSlip($purchaseOrderNumber); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Address.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Address.php new file mode 100644 index 000000000..186607d26 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Address.php @@ -0,0 +1,36 @@ + [PackedItem::class]]; + + /** + * @param string $containerType The type of container. + * @param string $containerIdentifier The container identifier. + * @param Weight $weight The weight. + * @param ?string $trackingNumber The tracking number. + * @param ?string $manifestId The manifest identifier. + * @param ?string $manifestDate The date of the manifest. + * @param ?string $shipMethod The shipment method. This property is required when calling the submitShipmentConfirmations operation, and optional otherwise. + * @param ?string $scacCode SCAC code required for NA VOC vendors only. + * @param ?string $carrier Carrier required for EU VOC vendors only. + * @param ?int $containerSequenceNumber An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. + * @param ?Dimensions $dimensions Physical dimensional measurements of a container. + * @param PackedItem[] $packedItems A list of packed items. + */ + public function __construct( + public readonly string $containerType, + public readonly string $containerIdentifier, + public readonly Weight $weight, + public readonly ?string $trackingNumber = null, + public readonly ?string $manifestId = null, + public readonly ?string $manifestDate = null, + public readonly ?string $shipMethod = null, + public readonly ?string $scacCode = null, + public readonly ?string $carrier = null, + public readonly ?int $containerSequenceNumber = null, + public readonly ?Dimensions $dimensions = null, + public readonly ?array $packedItems = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/CreateShippingLabelsRequest.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/CreateShippingLabelsRequest.php new file mode 100644 index 000000000..676ad7bc4 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/CreateShippingLabelsRequest.php @@ -0,0 +1,20 @@ + [Container::class]]; + + /** + * @param Container[] $containers A list of the packages in this shipment. + */ + public function __construct( + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $containers = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Dimensions.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Dimensions.php new file mode 100644 index 000000000..10d2a19fb --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Dimensions.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + * @param string $unitOfMeasure The unit of measure for dimensions. + */ + public function __construct( + public readonly string $length, + public readonly string $width, + public readonly string $height, + public readonly string $unitOfMeasure, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Error.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Error.php new file mode 100644 index 000000000..726345c19 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/Error.php @@ -0,0 +1,20 @@ + [TaxRegistrationDetails::class]]; + + /** + * @param string $partyId Assigned Identification for the party. + * @param ?Address $address Address of the party. + * @param TaxRegistrationDetails[] $taxRegistrationDetails Tax registration details of the entity. + */ + public function __construct( + public readonly string $partyId, + public readonly ?Address $address = null, + public readonly ?array $taxRegistrationDetails = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentConfirmation.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentConfirmation.php new file mode 100644 index 000000000..948a09d79 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentConfirmation.php @@ -0,0 +1,26 @@ + [Item::class], 'containers' => [Container::class]]; + + /** + * @param string $purchaseOrderNumber Purchase order number corresponding to the shipment. + * @param ShipmentDetails $shipmentDetails Details about a shipment. + * @param Item[] $items Provide the details of the items in this shipment. If any of the item details field is common at a package or a pallet level, then provide them at the corresponding package. + * @param Container[] $containers A list of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly ShipmentDetails $shipmentDetails, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $items = null, + public readonly ?array $containers = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentDetails.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentDetails.php new file mode 100644 index 000000000..d36b34819 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/ShipmentDetails.php @@ -0,0 +1,24 @@ + [Container::class]]; + + /** + * @param string $purchaseOrderNumber Purchase order number of the order for which to create a shipping label. + * @param Container[] $containers A list of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly ?array $containers = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/StatusUpdateDetails.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/StatusUpdateDetails.php new file mode 100644 index 000000000..a6496b9be --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/StatusUpdateDetails.php @@ -0,0 +1,26 @@ + [ShipmentConfirmation::class]]; + + /** + * @param ShipmentConfirmation[] $shipmentConfirmations + */ + public function __construct( + public readonly ?array $shipmentConfirmations = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShipmentStatusUpdatesRequest.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShipmentStatusUpdatesRequest.php new file mode 100644 index 000000000..68b8d6605 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShipmentStatusUpdatesRequest.php @@ -0,0 +1,18 @@ + [ShipmentStatusUpdate::class]]; + + /** + * @param ShipmentStatusUpdate[] $shipmentStatusUpdates + */ + public function __construct( + public readonly ?array $shipmentStatusUpdates = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShippingLabelsRequest.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShippingLabelsRequest.php new file mode 100644 index 000000000..1af6bd863 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/SubmitShippingLabelsRequest.php @@ -0,0 +1,18 @@ + [ShippingLabelRequest::class]]; + + /** + * @param ShippingLabelRequest[] $shippingLabelRequests + */ + public function __construct( + public readonly ?array $shippingLabelRequests = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Dto/TaxRegistrationDetails.php b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..2aa41d0f8 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Dto/TaxRegistrationDetails.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. + */ + public function __construct( + public readonly string $unitOfMeasure, + public readonly string $value, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/CreateShippingLabels.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/CreateShippingLabels.php new file mode 100644 index 000000000..42d76ffaa --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/CreateShippingLabels.php @@ -0,0 +1,58 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): ShippingLabel|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ShippingLabel::class, + 400, 403, 404, 409, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->createShippingLabelsRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoice.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoice.php new file mode 100644 index 000000000..1eb803a63 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoice.php @@ -0,0 +1,46 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/2021-12-28/customerInvoices/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): CustomerInvoice|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => CustomerInvoice::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoices.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoices.php new file mode 100644 index 000000000..72b48e8f2 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetCustomerInvoices.php @@ -0,0 +1,68 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/2021-12-28/customerInvoices'; + } + + public function createDtoFromResponse(Response $response): CustomerInvoiceList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => CustomerInvoiceList::class, + 400, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlip.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlip.php new file mode 100644 index 000000000..6ca11341b --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlip.php @@ -0,0 +1,46 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/2021-12-28/packingSlips/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): PackingSlip|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PackingSlip::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlips.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlips.php new file mode 100644 index 000000000..90404b4bd --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetPackingSlips.php @@ -0,0 +1,68 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/2021-12-28/packingSlips'; + } + + public function createDtoFromResponse(Response $response): PackingSlipList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => PackingSlipList::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabel.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabel.php new file mode 100644 index 000000000..dff962f95 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabel.php @@ -0,0 +1,46 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function resolveEndpoint(): string + { + return "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/{$this->purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): ShippingLabel|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ShippingLabel::class, + 400, 401, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabels.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabels.php new file mode 100644 index 000000000..0a564a428 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/GetShippingLabels.php @@ -0,0 +1,68 @@ +middleware()->onRequest($rdtMiddleware); + } + + public function defaultQuery(): array + { + return array_filter([ + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipFromPartyId' => $this->shipFromPartyId, + 'limit' => $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/directFulfillment/shipping/2021-12-28/shippingLabels'; + } + + public function createDtoFromResponse(Response $response): ShippingLabelList|ErrorList + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => ShippingLabelList::class, + 400, 403, 404, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentConfirmations.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentConfirmations.php new file mode 100644 index 000000000..4fb36e804 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentConfirmations.php @@ -0,0 +1,50 @@ +status(); + $responseCls = match ($status) { + 202 => TransactionReference::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipmentConfirmationsRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentStatusUpdates.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentStatusUpdates.php new file mode 100644 index 000000000..e90e936df --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShipmentStatusUpdates.php @@ -0,0 +1,50 @@ +status(); + $responseCls = match ($status) { + 202 => TransactionReference::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipmentStatusUpdatesRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShippingLabelRequest.php b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShippingLabelRequest.php new file mode 100644 index 000000000..e8906c533 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Requests/SubmitShippingLabelRequest.php @@ -0,0 +1,50 @@ +status(); + $responseCls = match ($status) { + 202 => TransactionReference::class, + 400, 403, 404, 413, 415, 429, 500, 503 => ErrorList::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShippingLabelsRequest->toArray(); + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/CustomerInvoice.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/CustomerInvoice.php new file mode 100644 index 000000000..e83e4ea50 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/CustomerInvoice.php @@ -0,0 +1,18 @@ + [CustomerInvoice::class]]; + + /** + * @param ?Pagination $pagination + * @param CustomerInvoice[] $customerInvoices + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $customerInvoices = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ErrorList.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ErrorList.php new file mode 100644 index 000000000..216192448 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ErrorList.php @@ -0,0 +1,19 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/PackingSlip.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/PackingSlip.php new file mode 100644 index 000000000..bd31377a0 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/PackingSlip.php @@ -0,0 +1,20 @@ + [PackingSlip::class]]; + + /** + * @param ?Pagination $pagination + * @param PackingSlip[] $packingSlips + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $packingSlips = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabel.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabel.php new file mode 100644 index 000000000..db12c465a --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabel.php @@ -0,0 +1,26 @@ + [LabelData::class]]; + + /** + * @param string $purchaseOrderNumber This field will contain the Purchase Order Number for this order. + * @param string $labelFormat Format of the label. + * @param LabelData[] $labelData Provides the details of the packages in this shipment. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly string $labelFormat, + public readonly ?array $labelData = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabelList.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabelList.php new file mode 100644 index 000000000..6ab8aab7e --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/ShippingLabelList.php @@ -0,0 +1,22 @@ + [ShippingLabel::class]]; + + /** + * @param ?Pagination $pagination + * @param ShippingLabel[] $shippingLabels + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $shippingLabels = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentShippingV20211228/Responses/TransactionReference.php b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/TransactionReference.php new file mode 100644 index 000000000..257d4a1b9 --- /dev/null +++ b/src/Vendor/DirectFulfillmentShippingV20211228/Responses/TransactionReference.php @@ -0,0 +1,16 @@ +connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV1/Dto/Error.php b/src/Vendor/DirectFulfillmentTransactionsV1/Dto/Error.php new file mode 100644 index 000000000..ffc8a6c78 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV1/Dto/Error.php @@ -0,0 +1,20 @@ + [Error::class]]; + + /** + * @param string $transactionId The unique identifier sent in the 'transactionId' field in response to the post request of a specific transaction. + * @param string $status Current processing status of the transaction. + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly string $transactionId, + public readonly string $status, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV1/Dto/TransactionStatus.php b/src/Vendor/DirectFulfillmentTransactionsV1/Dto/TransactionStatus.php new file mode 100644 index 000000000..d71b58952 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV1/Dto/TransactionStatus.php @@ -0,0 +1,16 @@ +transactionId}"; + } + + public function createDtoFromResponse(Response $response): GetTransactionResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetTransactionResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV1/Responses/GetTransactionResponse.php b/src/Vendor/DirectFulfillmentTransactionsV1/Responses/GetTransactionResponse.php new file mode 100644 index 000000000..d2fb18487 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV1/Responses/GetTransactionResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionStatus $payload The payload for the getTransactionStatus operation. + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionStatus $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV20211228/Api.php b/src/Vendor/DirectFulfillmentTransactionsV20211228/Api.php new file mode 100644 index 000000000..87bcfd211 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV20211228/Api.php @@ -0,0 +1,20 @@ +connector->send($request); + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV20211228/Dto/Transaction.php b/src/Vendor/DirectFulfillmentTransactionsV20211228/Dto/Transaction.php new file mode 100644 index 000000000..cab2f3a29 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV20211228/Dto/Transaction.php @@ -0,0 +1,21 @@ +transactionId}"; + } + + public function createDtoFromResponse(Response $response): TransactionStatus|ErrorList|Error + { + $status = $response->status(); + $responseCls = match ($status) { + 200 => TransactionStatus::class, + 400 => ErrorList::class, + 401, 403, 404, 415, 429, 500, 503 => Error::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/Error.php b/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/Error.php new file mode 100644 index 000000000..c4c60d407 --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/Error.php @@ -0,0 +1,20 @@ + [Error::class]]; + + /** + * @param Error[] $errors + */ + public function __construct( + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/TransactionStatus.php b/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/TransactionStatus.php new file mode 100644 index 000000000..12cc9f0aa --- /dev/null +++ b/src/Vendor/DirectFulfillmentTransactionsV20211228/Responses/TransactionStatus.php @@ -0,0 +1,17 @@ +connector->send($request); + } +} diff --git a/src/Vendor/InvoicesV1/Dto/AdditionalDetails.php b/src/Vendor/InvoicesV1/Dto/AdditionalDetails.php new file mode 100644 index 000000000..788ae7ce8 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/AdditionalDetails.php @@ -0,0 +1,20 @@ + [TaxDetails::class]]; + + /** + * @param string $type Type of the allowance applied. + * @param Money $allowanceAmount An amount of money, including units in the form of currency. + * @param ?string $description Description of the allowance. + * @param TaxDetails[] $taxDetails Total tax amount details for all line items. + */ + public function __construct( + public readonly string $type, + public readonly Money $allowanceAmount, + public readonly ?string $description = null, + public readonly ?array $taxDetails = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/ChargeDetails.php b/src/Vendor/InvoicesV1/Dto/ChargeDetails.php new file mode 100644 index 000000000..80fc51158 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/ChargeDetails.php @@ -0,0 +1,24 @@ + [TaxDetails::class]]; + + /** + * @param string $type Type of the charge applied. + * @param Money $chargeAmount An amount of money, including units in the form of currency. + * @param ?string $description Description of the charge. + * @param TaxDetails[] $taxDetails Total tax amount details for all line items. + */ + public function __construct( + public readonly string $type, + public readonly Money $chargeAmount, + public readonly ?string $description = null, + public readonly ?array $taxDetails = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/CreditNoteDetails.php b/src/Vendor/InvoicesV1/Dto/CreditNoteDetails.php new file mode 100644 index 000000000..d337f363b --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/CreditNoteDetails.php @@ -0,0 +1,28 @@ + [TaxDetails::class], + 'additionalDetails' => [AdditionalDetails::class], + 'chargeDetails' => [ChargeDetails::class], + 'allowanceDetails' => [AllowanceDetails::class], + 'items' => [InvoiceItem::class], + ]; + + /** + * @param string $invoiceType Identifies the type of invoice. + * @param string $id Unique number relating to the charges defined in this document. This will be invoice number if the document type is Invoice or CreditNote number if the document type is Credit Note. Failure to provide this reference will result in a rejection. + * @param DateTime $date Defines a date and time according to ISO8601. + * @param Money $invoiceTotal An amount of money, including units in the form of currency. + * @param ?string $referenceNumber An additional unique reference number used for regulatory or other purposes. + * @param ?PartyIdentification $shipToParty + * @param ?PartyIdentification $shipFromParty + * @param ?PartyIdentification $billToParty + * @param ?PaymentTerms $paymentTerms Terms of the payment for the invoice. The basis of the payment terms is the invoice date. + * @param TaxDetails[] $taxDetails Total tax amount details for all line items. + * @param AdditionalDetails[] $additionalDetails Additional details provided by the selling party, for tax related or other purposes. + * @param ChargeDetails[] $chargeDetails Total charge amount details for all line items. + * @param AllowanceDetails[] $allowanceDetails Total allowance amount details for all line items. + * @param InvoiceItem[] $items The list of invoice items. + */ + public function __construct( + public readonly string $invoiceType, + public readonly string $id, + public readonly \DateTime $date, + public readonly PartyIdentification $remitToParty, + public readonly Money $invoiceTotal, + public readonly ?string $referenceNumber = null, + public readonly ?PartyIdentification $shipToParty = null, + public readonly ?PartyIdentification $shipFromParty = null, + public readonly ?PartyIdentification $billToParty = null, + public readonly ?PaymentTerms $paymentTerms = null, + public readonly ?array $taxDetails = null, + public readonly ?array $additionalDetails = null, + public readonly ?array $chargeDetails = null, + public readonly ?array $allowanceDetails = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/InvoiceItem.php b/src/Vendor/InvoicesV1/Dto/InvoiceItem.php new file mode 100644 index 000000000..f4b14fdfd --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/InvoiceItem.php @@ -0,0 +1,42 @@ + [TaxDetails::class], + 'chargeDetails' => [ChargeDetails::class], + 'allowanceDetails' => [AllowanceDetails::class], + ]; + + /** + * @param int $itemSequenceNumber Unique number related to this line item. + * @param ItemQuantity $invoicedQuantity Details of quantity. + * @param Money $netCost An amount of money, including units in the form of currency. + * @param ?string $amazonProductIdentifier Amazon Standard Identification Number (ASIN) of an item. + * @param ?string $vendorProductIdentifier The vendor selected product identifier of the item. Should be the same as was provided in the purchase order. + * @param ?string $purchaseOrderNumber The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote. + * @param ?string $hsnCode HSN Tax code. The HSN number cannot contain alphabets. + * @param ?CreditNoteDetails $creditNoteDetails References required in order to process a credit note. This information is required only if InvoiceType is CreditNote. + * @param TaxDetails[] $taxDetails Total tax amount details for all line items. + * @param ChargeDetails[] $chargeDetails Total charge amount details for all line items. + * @param AllowanceDetails[] $allowanceDetails Total allowance amount details for all line items. + */ + public function __construct( + public readonly int $itemSequenceNumber, + public readonly ItemQuantity $invoicedQuantity, + public readonly Money $netCost, + public readonly ?string $amazonProductIdentifier = null, + public readonly ?string $vendorProductIdentifier = null, + public readonly ?string $purchaseOrderNumber = null, + public readonly ?string $hsnCode = null, + public readonly ?CreditNoteDetails $creditNoteDetails = null, + public readonly ?array $taxDetails = null, + public readonly ?array $chargeDetails = null, + public readonly ?array $allowanceDetails = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/ItemQuantity.php b/src/Vendor/InvoicesV1/Dto/ItemQuantity.php new file mode 100644 index 000000000..d6c62a28b --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/ItemQuantity.php @@ -0,0 +1,20 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?string $amount = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/PartyIdentification.php b/src/Vendor/InvoicesV1/Dto/PartyIdentification.php new file mode 100644 index 000000000..626bda343 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/PartyIdentification.php @@ -0,0 +1,22 @@ + [TaxRegistrationDetails::class]]; + + /** + * @param string $partyId Assigned identification for the party. + * @param ?Address $address A physical address. + * @param TaxRegistrationDetails[] $taxRegistrationDetails Tax registration details of the party. + */ + public function __construct( + public readonly string $partyId, + public readonly ?Address $address = null, + public readonly ?array $taxRegistrationDetails = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/PaymentTerms.php b/src/Vendor/InvoicesV1/Dto/PaymentTerms.php new file mode 100644 index 000000000..e5669fee5 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/PaymentTerms.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param ?float $discountDueDays The number of calendar days from the Base date (Invoice date) until the discount is no longer valid. + * @param ?float $netDueDays The number of calendar days from the base date (invoice date) until the total amount on the invoice is due. + */ + public function __construct( + public readonly ?string $type = null, + public readonly ?string $discountPercent = null, + public readonly ?float $discountDueDays = null, + public readonly ?float $netDueDays = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/SubmitInvoicesRequest.php b/src/Vendor/InvoicesV1/Dto/SubmitInvoicesRequest.php new file mode 100644 index 000000000..76d6c37e0 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/SubmitInvoicesRequest.php @@ -0,0 +1,18 @@ + [Invoice::class]]; + + /** + * @param Invoice[] $invoices + */ + public function __construct( + public readonly ?array $invoices = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/TaxDetails.php b/src/Vendor/InvoicesV1/Dto/TaxDetails.php new file mode 100644 index 000000000..ffc3ef2c1 --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/TaxDetails.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param ?Money $taxableAmount An amount of money, including units in the form of currency. + */ + public function __construct( + public readonly string $taxType, + public readonly Money $taxAmount, + public readonly ?string $taxRate = null, + public readonly ?Money $taxableAmount = null, + ) { + } +} diff --git a/src/Vendor/InvoicesV1/Dto/TaxRegistrationDetails.php b/src/Vendor/InvoicesV1/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..2702e58dc --- /dev/null +++ b/src/Vendor/InvoicesV1/Dto/TaxRegistrationDetails.php @@ -0,0 +1,18 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitInvoicesResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitInvoicesRequest->toArray(); + } +} diff --git a/src/Vendor/InvoicesV1/Responses/SubmitInvoicesResponse.php b/src/Vendor/InvoicesV1/Responses/SubmitInvoicesResponse.php new file mode 100644 index 000000000..f26fabd57 --- /dev/null +++ b/src/Vendor/InvoicesV1/Responses/SubmitInvoicesResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionId $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionId $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Api.php b/src/Vendor/OrdersV1/Api.php new file mode 100644 index 000000000..0782bdf96 --- /dev/null +++ b/src/Vendor/OrdersV1/Api.php @@ -0,0 +1,102 @@ +connector->send($request); + } + + /** + * @param string $purchaseOrderNumber The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. + */ + public function getPurchaseOrder(string $purchaseOrderNumber): Response + { + $request = new GetPurchaseOrder($purchaseOrderNumber); + + return $this->connector->send($request); + } + + /** + * @param SubmitAcknowledgementRequest $submitAcknowledgementRequest The request schema for the submitAcknowledgment operation. + */ + public function submitAcknowledgement(SubmitAcknowledgementRequest $submitAcknowledgementRequest): Response + { + $request = new SubmitAcknowledgement($submitAcknowledgementRequest); + + return $this->connector->send($request); + } + + /** + * @param ?int $limit The limit to the number of records returned. Default value is 100 records. + * @param ?string $sortOrder Sort in ascending or descending order by purchase order creation date. + * @param ?string $nextToken Used for pagination when there are more purchase orders than the specified result size limit. + * @param ?DateTime $createdAfter Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $createdBefore Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $updatedAfter Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $updatedBefore Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $purchaseOrderNumber Provides purchase order status for the specified purchase order number. + * @param ?string $purchaseOrderStatus Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. + * @param ?string $itemConfirmationStatus Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. + * @param ?string $itemReceiveStatus Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. + * @param ?string $orderingVendorCode Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. + * @param ?string $shipToPartyId Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. + */ + public function getPurchaseOrdersStatus( + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ?\DateTime $createdAfter = null, + ?\DateTime $createdBefore = null, + ?\DateTime $updatedAfter = null, + ?\DateTime $updatedBefore = null, + ?string $purchaseOrderNumber = null, + ?string $purchaseOrderStatus = null, + ?string $itemConfirmationStatus = null, + ?string $itemReceiveStatus = null, + ?string $orderingVendorCode = null, + ?string $shipToPartyId = null, + ): Response { + $request = new GetPurchaseOrdersStatus($limit, $sortOrder, $nextToken, $createdAfter, $createdBefore, $updatedAfter, $updatedBefore, $purchaseOrderNumber, $purchaseOrderStatus, $itemConfirmationStatus, $itemReceiveStatus, $orderingVendorCode, $shipToPartyId); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/OrdersV1/Dto/AcknowledgementStatus.php b/src/Vendor/OrdersV1/Dto/AcknowledgementStatus.php new file mode 100644 index 000000000..469b2aaa7 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/AcknowledgementStatus.php @@ -0,0 +1,24 @@ + [AcknowledgementStatusDetails::class]]; + + /** + * @param ?string $confirmationStatus Confirmation status of line item. + * @param ?ItemQuantity $acceptedQuantity Details of quantity ordered. + * @param ?ItemQuantity $rejectedQuantity Details of quantity ordered. + * @param AcknowledgementStatusDetails[] $acknowledgementStatusDetails Details of item quantity confirmed. + */ + public function __construct( + public readonly ?string $confirmationStatus = null, + public readonly ?ItemQuantity $acceptedQuantity = null, + public readonly ?ItemQuantity $rejectedQuantity = null, + public readonly ?array $acknowledgementStatusDetails = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/AcknowledgementStatusDetails.php b/src/Vendor/OrdersV1/Dto/AcknowledgementStatusDetails.php new file mode 100644 index 000000000..0ea32ea9a --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/AcknowledgementStatusDetails.php @@ -0,0 +1,20 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly ?string $currencyCode = null, + public readonly ?string $amount = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/Order.php b/src/Vendor/OrdersV1/Dto/Order.php new file mode 100644 index 000000000..00a03b513 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/Order.php @@ -0,0 +1,20 @@ + [OrderItem::class]]; + + /** + * @param string $purchaseOrderNumber The purchase order number. Formatting Notes: 8-character alpha-numeric code. + * @param DateTime $acknowledgementDate The date and time when the purchase order is acknowledged, in ISO-8601 date/time format. + * @param OrderItem[] $items A list of items in this purchase order. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly PartyIdentification $sellingParty, + public readonly ?array $items = null, + public readonly \DateTime $acknowledgementDate, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderAcknowledgementItem.php b/src/Vendor/OrdersV1/Dto/OrderAcknowledgementItem.php new file mode 100644 index 000000000..35455566a --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderAcknowledgementItem.php @@ -0,0 +1,32 @@ + [OrderItemAcknowledgement::class]]; + + /** + * @param ItemQuantity $orderedQuantity Details of quantity ordered. + * @param ?string $itemSequenceNumber Line item sequence number for the item. + * @param ?string $amazonProductIdentifier Amazon Standard Identification Number (ASIN) of an item. + * @param ?string $vendorProductIdentifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. + * @param ?Money $netCost An amount of money, including units in the form of currency. + * @param ?Money $listPrice An amount of money, including units in the form of currency. + * @param ?string $discountMultiplier The discount multiplier that should be applied to the price if a vendor sells books with a list price. This is a multiplier factor to arrive at a final discounted price. A multiplier of .90 would be the factor if a 10% discount is given. + * @param OrderItemAcknowledgement[] $itemAcknowledgements This is used to indicate acknowledged quantity. + */ + public function __construct( + public readonly ItemQuantity $orderedQuantity, + public readonly ?string $itemSequenceNumber = null, + public readonly ?string $amazonProductIdentifier = null, + public readonly ?string $vendorProductIdentifier = null, + public readonly ?Money $netCost = null, + public readonly ?Money $listPrice = null, + public readonly ?string $discountMultiplier = null, + public readonly ?array $itemAcknowledgements = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderDetails.php b/src/Vendor/OrdersV1/Dto/OrderDetails.php new file mode 100644 index 000000000..c90fc9546 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderDetails.php @@ -0,0 +1,44 @@ + [OrderItem::class]]; + + /** + * @param DateTime $purchaseOrderDate The date the purchase order was placed. Must be in ISO-8601 date/time format. + * @param DateTime $purchaseOrderStateChangedDate The date when current purchase order state was changed. Current purchase order state is available in the field 'purchaseOrderState'. Must be in ISO-8601 date/time format. + * @param ?DateTime $purchaseOrderChangedDate The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than 'purchaseOrderDate'. This means the PO data was changed on that date and vendors are required to fulfill the updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date/time format. + * @param ?string $purchaseOrderType Type of purchase order. + * @param ?ImportDetails $importDetails Import details for an import order. + * @param ?string $dealCode If requested by the recipient, this field will contain a promotional/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order. + * @param ?string $paymentMethod Payment method used. + * @param ?PartyIdentification $buyingParty + * @param ?PartyIdentification $sellingParty + * @param ?PartyIdentification $shipToParty + * @param ?PartyIdentification $billToParty + * @param ?string $shipWindow Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). + * @param ?string $deliveryWindow Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--). + * @param OrderItem[] $items A list of items in this purchase order. + */ + public function __construct( + public readonly \DateTime $purchaseOrderDate, + public readonly \DateTime $purchaseOrderStateChangedDate, + public readonly ?\DateTime $purchaseOrderChangedDate = null, + public readonly ?string $purchaseOrderType = null, + public readonly ?ImportDetails $importDetails = null, + public readonly ?string $dealCode = null, + public readonly ?string $paymentMethod = null, + public readonly ?PartyIdentification $buyingParty = null, + public readonly ?PartyIdentification $sellingParty = null, + public readonly ?PartyIdentification $shipToParty = null, + public readonly ?PartyIdentification $billToParty = null, + public readonly ?string $shipWindow = null, + public readonly ?string $deliveryWindow = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderItem.php b/src/Vendor/OrdersV1/Dto/OrderItem.php new file mode 100644 index 000000000..5db612496 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderItem.php @@ -0,0 +1,28 @@ + [Order::class]]; + + /** + * @param ?Pagination $pagination + * @param Order[] $orders + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $orders = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderListStatus.php b/src/Vendor/OrdersV1/Dto/OrderListStatus.php new file mode 100644 index 000000000..530120b80 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderListStatus.php @@ -0,0 +1,20 @@ + [OrderStatus::class]]; + + /** + * @param ?Pagination $pagination + * @param OrderStatus[] $ordersStatus + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $ordersStatus = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderStatus.php b/src/Vendor/OrdersV1/Dto/OrderStatus.php new file mode 100644 index 000000000..bfb148c13 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderStatus.php @@ -0,0 +1,28 @@ + [OrderItemStatus::class]]; + + /** + * @param string $purchaseOrderNumber The buyer's purchase order number for this order. Formatting Notes: 8-character alpha-numeric code. + * @param string $purchaseOrderStatus The status of the buyer's purchase order for this order. + * @param DateTime $purchaseOrderDate The date the purchase order was placed. Must be in ISO-8601 date/time format. + * @param OrderItemStatus[] $itemStatus Detailed description of items order status. + * @param ?DateTime $lastUpdatedDate The date when the purchase order was last updated. Must be in ISO-8601 date/time format. + */ + public function __construct( + public readonly string $purchaseOrderNumber, + public readonly string $purchaseOrderStatus, + public readonly \DateTime $purchaseOrderDate, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipToParty, + public readonly ?array $itemStatus = null, + public readonly ?\DateTime $lastUpdatedDate = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderedQuantity.php b/src/Vendor/OrdersV1/Dto/OrderedQuantity.php new file mode 100644 index 000000000..ce00e3ffc --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderedQuantity.php @@ -0,0 +1,20 @@ + [OrderedQuantityDetails::class]]; + + /** + * @param ?ItemQuantity $orderedQuantity Details of quantity ordered. + * @param OrderedQuantityDetails[] $orderedQuantityDetails Details of item quantity ordered. + */ + public function __construct( + public readonly ?ItemQuantity $orderedQuantity = null, + public readonly ?array $orderedQuantityDetails = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/OrderedQuantityDetails.php b/src/Vendor/OrdersV1/Dto/OrderedQuantityDetails.php new file mode 100644 index 000000000..34d904a1f --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/OrderedQuantityDetails.php @@ -0,0 +1,20 @@ + [OrderAcknowledgement::class]]; + + /** + * @param OrderAcknowledgement[] $acknowledgements + */ + public function __construct( + public readonly ?array $acknowledgements = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Dto/TaxRegistrationDetails.php b/src/Vendor/OrdersV1/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..4b19307f2 --- /dev/null +++ b/src/Vendor/OrdersV1/Dto/TaxRegistrationDetails.php @@ -0,0 +1,18 @@ +purchaseOrderNumber}"; + } + + public function createDtoFromResponse(Response $response): GetPurchaseOrderResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetPurchaseOrderResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/OrdersV1/Requests/GetPurchaseOrders.php b/src/Vendor/OrdersV1/Requests/GetPurchaseOrders.php new file mode 100644 index 000000000..9fa55882e --- /dev/null +++ b/src/Vendor/OrdersV1/Requests/GetPurchaseOrders.php @@ -0,0 +1,81 @@ + $this->limit, + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'includeDetails' => $this->includeDetails, + 'changedAfter' => $this->changedAfter?->format(\DateTime::RFC3339), + 'changedBefore' => $this->changedBefore?->format(\DateTime::RFC3339), + 'poItemState' => $this->poItemState, + 'isPOChanged' => $this->isPoChanged, + 'purchaseOrderState' => $this->purchaseOrderState, + 'orderingVendorCode' => $this->orderingVendorCode, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/orders/v1/purchaseOrders'; + } + + public function createDtoFromResponse(Response $response): GetPurchaseOrdersResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 429, 500, 503 => GetPurchaseOrdersResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/OrdersV1/Requests/GetPurchaseOrdersStatus.php b/src/Vendor/OrdersV1/Requests/GetPurchaseOrdersStatus.php new file mode 100644 index 000000000..ded4e4cc0 --- /dev/null +++ b/src/Vendor/OrdersV1/Requests/GetPurchaseOrdersStatus.php @@ -0,0 +1,84 @@ + $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'updatedAfter' => $this->updatedAfter?->format(\DateTime::RFC3339), + 'updatedBefore' => $this->updatedBefore?->format(\DateTime::RFC3339), + 'purchaseOrderNumber' => $this->purchaseOrderNumber, + 'purchaseOrderStatus' => $this->purchaseOrderStatus, + 'itemConfirmationStatus' => $this->itemConfirmationStatus, + 'itemReceiveStatus' => $this->itemReceiveStatus, + 'orderingVendorCode' => $this->orderingVendorCode, + 'shipToPartyId' => $this->shipToPartyId, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/orders/v1/purchaseOrdersStatus'; + } + + public function createDtoFromResponse(Response $response): GetPurchaseOrdersStatusResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 403, 404, 415, 429, 500, 503 => GetPurchaseOrdersStatusResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/OrdersV1/Requests/SubmitAcknowledgement.php b/src/Vendor/OrdersV1/Requests/SubmitAcknowledgement.php new file mode 100644 index 000000000..cdcde82e0 --- /dev/null +++ b/src/Vendor/OrdersV1/Requests/SubmitAcknowledgement.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitAcknowledgementResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitAcknowledgementRequest->toArray(); + } +} diff --git a/src/Vendor/OrdersV1/Responses/GetPurchaseOrderResponse.php b/src/Vendor/OrdersV1/Responses/GetPurchaseOrderResponse.php new file mode 100644 index 000000000..cc0e01750 --- /dev/null +++ b/src/Vendor/OrdersV1/Responses/GetPurchaseOrderResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?Order $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?Order $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersResponse.php b/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersResponse.php new file mode 100644 index 000000000..25e0c3531 --- /dev/null +++ b/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderList $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderList $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersStatusResponse.php b/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersStatusResponse.php new file mode 100644 index 000000000..39e7d1baf --- /dev/null +++ b/src/Vendor/OrdersV1/Responses/GetPurchaseOrdersStatusResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?OrderListStatus $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?OrderListStatus $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/OrdersV1/Responses/SubmitAcknowledgementResponse.php b/src/Vendor/OrdersV1/Responses/SubmitAcknowledgementResponse.php new file mode 100644 index 000000000..5ce9bb7c3 --- /dev/null +++ b/src/Vendor/OrdersV1/Responses/SubmitAcknowledgementResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionId $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionId $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Api.php b/src/Vendor/ShipmentsV1/Api.php new file mode 100644 index 000000000..9851cf90d --- /dev/null +++ b/src/Vendor/ShipmentsV1/Api.php @@ -0,0 +1,118 @@ +connector->send($request); + } + + /** + * @param ?int $limit The limit to the number of records returned. Default value is 50 records. + * @param ?string $sortOrder Sort in ascending or descending order by purchase order creation date. + * @param ?string $nextToken Used for pagination when there are more shipments than the specified result size limit. + * @param ?DateTime $createdAfter Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $createdBefore Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $shipmentConfirmedBefore Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. + * @param ?DateTime $shipmentConfirmedAfter Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. + * @param ?DateTime $packageLabelCreatedBefore Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. + * @param ?DateTime $packageLabelCreatedAfter Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. + * @param ?DateTime $shippedBefore Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. + * @param ?DateTime $shippedAfter Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. + * @param ?DateTime $estimatedDeliveryBefore Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + * @param ?DateTime $estimatedDeliveryAfter Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. + * @param ?DateTime $shipmentDeliveryBefore Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. + * @param ?DateTime $shipmentDeliveryAfter Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. + * @param ?DateTime $requestedPickUpBefore Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. + * @param ?DateTime $requestedPickUpAfter Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. + * @param ?DateTime $scheduledPickUpBefore Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. + * @param ?DateTime $scheduledPickUpAfter Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. + * @param ?string $currentShipmentStatus Get Shipment Details by passing Current shipment status. + * @param ?string $vendorShipmentIdentifier Get Shipment Details by passing Vendor Shipment ID + * @param ?string $buyerReferenceNumber Get Shipment Details by passing buyer Reference ID + * @param ?string $buyerWarehouseCode Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. + * @param ?string $sellerWarehouseCode Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. + */ + public function getShipmentDetails( + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ?\DateTime $createdAfter = null, + ?\DateTime $createdBefore = null, + ?\DateTime $shipmentConfirmedBefore = null, + ?\DateTime $shipmentConfirmedAfter = null, + ?\DateTime $packageLabelCreatedBefore = null, + ?\DateTime $packageLabelCreatedAfter = null, + ?\DateTime $shippedBefore = null, + ?\DateTime $shippedAfter = null, + ?\DateTime $estimatedDeliveryBefore = null, + ?\DateTime $estimatedDeliveryAfter = null, + ?\DateTime $shipmentDeliveryBefore = null, + ?\DateTime $shipmentDeliveryAfter = null, + ?\DateTime $requestedPickUpBefore = null, + ?\DateTime $requestedPickUpAfter = null, + ?\DateTime $scheduledPickUpBefore = null, + ?\DateTime $scheduledPickUpAfter = null, + ?string $currentShipmentStatus = null, + ?string $vendorShipmentIdentifier = null, + ?string $buyerReferenceNumber = null, + ?string $buyerWarehouseCode = null, + ?string $sellerWarehouseCode = null, + ): Response { + $request = new GetShipmentDetails($limit, $sortOrder, $nextToken, $createdAfter, $createdBefore, $shipmentConfirmedBefore, $shipmentConfirmedAfter, $packageLabelCreatedBefore, $packageLabelCreatedAfter, $shippedBefore, $shippedAfter, $estimatedDeliveryBefore, $estimatedDeliveryAfter, $shipmentDeliveryBefore, $shipmentDeliveryAfter, $requestedPickUpBefore, $requestedPickUpAfter, $scheduledPickUpBefore, $scheduledPickUpAfter, $currentShipmentStatus, $vendorShipmentIdentifier, $buyerReferenceNumber, $buyerWarehouseCode, $sellerWarehouseCode); + + return $this->connector->send($request); + } + + /** + * @param SubmitShipments $submitShipments The request schema for the SubmitTransportRequestConfirmations operation. + */ + public function submitShipments(SubmitShipments1 $submitShipments): Response + { + $request = new SubmitShipments($submitShipments); + + return $this->connector->send($request); + } + + /** + * @param ?int $limit The limit to the number of records returned. Default value is 50 records. + * @param ?string $sortOrder Sort in ascending or descending order by transport label creation date. + * @param ?string $nextToken Used for pagination when there are more transport label than the specified result size limit. + * @param ?DateTime $labelCreatedAfter transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?DateTime $labelcreatedBefore transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. + * @param ?string $buyerReferenceNumber Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. + * @param ?string $vendorShipmentIdentifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. + * @param ?string $sellerWarehouseCode Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. + */ + public function getShipmentLabels( + ?int $limit = null, + ?string $sortOrder = null, + ?string $nextToken = null, + ?\DateTime $labelCreatedAfter = null, + ?\DateTime $labelcreatedBefore = null, + ?string $buyerReferenceNumber = null, + ?string $vendorShipmentIdentifier = null, + ?string $sellerWarehouseCode = null, + ): Response { + $request = new GetShipmentLabels($limit, $sortOrder, $nextToken, $labelCreatedAfter, $labelcreatedBefore, $buyerReferenceNumber, $vendorShipmentIdentifier, $sellerWarehouseCode); + + return $this->connector->send($request); + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Address.php b/src/Vendor/ShipmentsV1/Dto/Address.php new file mode 100644 index 000000000..a18ecaa45 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Address.php @@ -0,0 +1,36 @@ + [ContainerIdentification::class], + 'items' => [PurchaseOrderItems::class], + ]; + + /** + * @param string $cartonSequenceNumber Carton sequence number for the carton. The first carton will be 001, the second 002, and so on. This number is used as a reference to refer to this carton from the pallet level. + * @param ContainerIdentification[] $cartonIdentifiers A list of carton identifiers. + * @param ?Dimensions $dimensions Physical dimensional measurements of a container. + * @param ?Weight $weight The weight of the shipment. + * @param ?string $trackingNumber This is required to be provided for every carton in the small parcel shipments. + * @param PurchaseOrderItems[] $items A list of the items that are associated to the PO in this transport and their associated details. + */ + public function __construct( + public readonly string $cartonSequenceNumber, + public readonly ?array $cartonIdentifiers = null, + public readonly ?Dimensions $dimensions = null, + public readonly ?Weight $weight = null, + public readonly ?string $trackingNumber = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/CartonReferenceDetails.php b/src/Vendor/ShipmentsV1/Dto/CartonReferenceDetails.php new file mode 100644 index 000000000..230bfa506 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/CartonReferenceDetails.php @@ -0,0 +1,18 @@ + [ContainerIdentification::class], + 'packedItems' => [PackedItems::class], + ]; + + /** + * @param string $containerType The type of container. + * @param ?string $containerSequenceNumber An integer that must be submitted for multi-box shipments only, where one item may come in separate packages. + * @param ContainerIdentification[] $containerIdentifiers A list of carton identifiers. + * @param ?string $trackingNumber The tracking number used for identifying the shipment. + * @param ?Dimensions $dimensions Physical dimensional measurements of a container. + * @param ?Weight $weight The weight of the shipment. + * @param ?int $tier Number of layers per pallet. + * @param ?int $block Number of cartons per layer on the pallet. + * @param ?InnerContainersDetails $innerContainersDetails Details of the innerContainersDetails. + * @param PackedItems[] $packedItems A list of packed items. + */ + public function __construct( + public readonly string $containerType, + public readonly ?string $containerSequenceNumber = null, + public readonly ?array $containerIdentifiers = null, + public readonly ?string $trackingNumber = null, + public readonly ?Dimensions $dimensions = null, + public readonly ?Weight $weight = null, + public readonly ?int $tier = null, + public readonly ?int $block = null, + public readonly ?InnerContainersDetails $innerContainersDetails = null, + public readonly ?array $packedItems = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Dimensions.php b/src/Vendor/ShipmentsV1/Dto/Dimensions.php new file mode 100644 index 000000000..277dcfac7 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Dimensions.php @@ -0,0 +1,22 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param string $width A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param string $height A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + * @param string $unitOfMeasure The unit of measure for dimensions. + */ + public function __construct( + public readonly string $length, + public readonly string $width, + public readonly string $height, + public readonly string $unitOfMeasure, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Duration.php b/src/Vendor/ShipmentsV1/Dto/Duration.php new file mode 100644 index 000000000..6f165a06f --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Duration.php @@ -0,0 +1,18 @@ + [ContainerSequenceNumbers::class]]; + + /** + * @param ?int $containerCount Total containers as part of the shipment + * @param ContainerSequenceNumbers[] $containerSequenceNumbers Container sequence numbers that are involved in this shipment. + */ + public function __construct( + public readonly ?int $containerCount = null, + public readonly ?array $containerSequenceNumbers = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Item.php b/src/Vendor/ShipmentsV1/Dto/Item.php new file mode 100644 index 000000000..a7129e460 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Item.php @@ -0,0 +1,24 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly string $currencyCode, + public readonly string $amount, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/PackageItemDetails.php b/src/Vendor/ShipmentsV1/Dto/PackageItemDetails.php new file mode 100644 index 000000000..d908ebb26 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/PackageItemDetails.php @@ -0,0 +1,20 @@ + [ContainerIdentification::class], + 'items' => [PurchaseOrderItems::class], + ]; + + /** + * @param ContainerIdentification[] $palletIdentifiers A list of pallet identifiers. + * @param ?int $tier Number of layers per pallet. Only applicable to container type Pallet. + * @param ?int $block Number of cartons per layer on the pallet. Only applicable to container type Pallet. + * @param ?Dimensions $dimensions Physical dimensional measurements of a container. + * @param ?Weight $weight The weight of the shipment. + * @param ?CartonReferenceDetails $cartonReferenceDetails + * @param PurchaseOrderItems[] $items A list of the items that are associated to the PO in this transport and their associated details. + */ + public function __construct( + public readonly ?array $palletIdentifiers = null, + public readonly ?int $tier = null, + public readonly ?int $block = null, + public readonly ?Dimensions $dimensions = null, + public readonly ?Weight $weight = null, + public readonly ?CartonReferenceDetails $cartonReferenceDetails = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/PartyIdentification.php b/src/Vendor/ShipmentsV1/Dto/PartyIdentification.php new file mode 100644 index 000000000..f18b6b1a3 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/PartyIdentification.php @@ -0,0 +1,22 @@ + [TaxRegistrationDetails::class]]; + + /** + * @param string $partyId Assigned identification for the party. + * @param ?Address $address Address of the party. + * @param TaxRegistrationDetails[] $taxRegistrationDetails Tax registration details of the entity. + */ + public function __construct( + public readonly string $partyId, + public readonly ?Address $address = null, + public readonly ?array $taxRegistrationDetails = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/PurchaseOrderItemDetails.php b/src/Vendor/ShipmentsV1/Dto/PurchaseOrderItemDetails.php new file mode 100644 index 000000000..9a6eddaa3 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/PurchaseOrderItemDetails.php @@ -0,0 +1,16 @@ + [PurchaseOrderItems::class]]; + + /** + * @param ?string $purchaseOrderNumber Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. + * @param ?DateTime $purchaseOrderDate Purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment. + * @param ?string $shipWindow Date range in which shipment is expected for these purchase orders. + * @param PurchaseOrderItems[] $items A list of the items that are associated to the PO in this transport and their associated details. + */ + public function __construct( + public readonly ?string $purchaseOrderNumber = null, + public readonly ?\DateTime $purchaseOrderDate = null, + public readonly ?string $shipWindow = null, + public readonly ?array $items = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Route.php b/src/Vendor/ShipmentsV1/Dto/Route.php new file mode 100644 index 000000000..96309a16f --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Route.php @@ -0,0 +1,18 @@ + [Stop::class]]; + + /** + * @param Stop[] $stops + */ + public function __construct( + public readonly ?array $stops = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Shipment.php b/src/Vendor/ShipmentsV1/Dto/Shipment.php new file mode 100644 index 000000000..e4dfe3ecc --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Shipment.php @@ -0,0 +1,57 @@ + [ShipmentStatusDetails::class], + 'purchaseOrders' => [PurchaseOrders::class], + 'containers' => [Containers::class], + ]; + + /** + * @param string $vendorShipmentIdentifier Unique Transportation ID created by Vendor (Should not be used over the last 365 days). + * @param string $transactionType Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. + * @param DateTime $transactionDate Date on which the transportation request was submitted. + * @param ?string $buyerReferenceNumber The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. + * @param ?string $currentShipmentStatus Indicates the current shipment status. + * @param ?DateTime $currentshipmentStatusDate Date and time when the last status was updated. + * @param ShipmentStatusDetails[]|null $shipmentStatusDetails Indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response. + * @param ?DateTime $shipmentCreateDate The date and time of the shipment request created by vendor. + * @param ?DateTime $shipmentConfirmDate The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + * @param ?DateTime $packageLabelCreateDate The date and time of the package label created for the shipment by buyer. + * @param ?string $shipmentFreightTerm Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. + * @param ?TransportShipmentMeasurements $shipmentMeasurements Shipment measurement details. + * @param ?CollectFreightPickupDetails $collectFreightPickupDetails Transport Request pickup date from Vendor Warehouse by Buyer + * @param PurchaseOrders[]|null $purchaseOrders Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) + * @param ?ImportDetails $importDetails + * @param Containers[]|null $containers A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. + * @param ?TransportationDetails $transportationDetails + */ + public function __construct( + public readonly string $vendorShipmentIdentifier, + public readonly string $transactionType, + public readonly \DateTime $transactionDate, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly PartyIdentification $shipToParty, + public readonly ?string $buyerReferenceNumber = null, + public readonly ?string $currentShipmentStatus = null, + public readonly ?\DateTime $currentshipmentStatusDate = null, + public readonly ?array $shipmentStatusDetails = null, + public readonly ?\DateTime $shipmentCreateDate = null, + public readonly ?\DateTime $shipmentConfirmDate = null, + public readonly ?\DateTime $packageLabelCreateDate = null, + public readonly ?string $shipmentFreightTerm = null, + public readonly ?TransportShipmentMeasurements $shipmentMeasurements = null, + public readonly ?CollectFreightPickupDetails $collectFreightPickupDetails = null, + public readonly ?array $purchaseOrders = null, + public readonly ?ImportDetails $importDetails = null, + public readonly ?array $containers = null, + public readonly ?TransportationDetails $transportationDetails = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/ShipmentConfirmation.php b/src/Vendor/ShipmentsV1/Dto/ShipmentConfirmation.php new file mode 100644 index 000000000..438de115e --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/ShipmentConfirmation.php @@ -0,0 +1,51 @@ + [Item::class], + 'cartons' => [Carton::class], + 'pallets' => [Pallet::class], + ]; + + /** + * @param string $shipmentIdentifier Unique shipment ID (not used over the last 365 days). + * @param string $shipmentConfirmationType Indicates if this shipment confirmation is the initial confirmation, or intended to replace an already posted shipment confirmation. If replacing an existing shipment confirmation, be sure to provide the identical shipmentIdentifier and sellingParty information as in the previous confirmation. + * @param DateTime $shipmentConfirmationDate Date on which the shipment confirmation was submitted. + * @param Item[] $shippedItems A list of the items in this shipment and their associated details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. + * @param ?string $shipmentType The type of shipment. + * @param ?string $shipmentStructure Shipment hierarchical structure. + * @param ?TransportationDetails $transportationDetails + * @param ?string $amazonReferenceNumber The Amazon Reference Number is a unique identifier generated by Amazon for all Collect/WePay shipments when you submit a routing request. This field is mandatory for Collect/WePay shipments. + * @param ?DateTime $shippedDate The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + * @param ?DateTime $estimatedDeliveryDate The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. + * @param ?ShipmentMeasurements $shipmentMeasurements Shipment measurement details. + * @param ?ImportDetails $importDetails + * @param Carton[]|null $cartons A list of the cartons in this shipment. + * @param Pallet[]|null $pallets A list of the pallets in this shipment. + */ + public function __construct( + public readonly string $shipmentIdentifier, + public readonly string $shipmentConfirmationType, + public readonly \DateTime $shipmentConfirmationDate, + public readonly PartyIdentification $sellingParty, + public readonly PartyIdentification $shipFromParty, + public readonly PartyIdentification $shipToParty, + public readonly array $shippedItems, + public readonly ?string $shipmentType = null, + public readonly ?string $shipmentStructure = null, + public readonly ?TransportationDetails $transportationDetails = null, + public readonly ?string $amazonReferenceNumber = null, + public readonly ?\DateTime $shippedDate = null, + public readonly ?\DateTime $estimatedDeliveryDate = null, + public readonly ?ShipmentMeasurements $shipmentMeasurements = null, + public readonly ?ImportDetails $importDetails = null, + public readonly ?array $cartons = null, + public readonly ?array $pallets = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/ShipmentDetails.php b/src/Vendor/ShipmentsV1/Dto/ShipmentDetails.php new file mode 100644 index 000000000..8a0bdc324 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/ShipmentDetails.php @@ -0,0 +1,20 @@ + [Shipment::class]]; + + /** + * @param ?Pagination $pagination + * @param Shipment[] $shipments + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $shipments = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/ShipmentInformation.php b/src/Vendor/ShipmentsV1/Dto/ShipmentInformation.php new file mode 100644 index 000000000..07082bbcd --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/ShipmentInformation.php @@ -0,0 +1,30 @@ + [ShipmentConfirmation::class]]; + + /** + * @param ShipmentConfirmation[] $shipmentConfirmations + */ + public function __construct( + public readonly ?array $shipmentConfirmations = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/SubmitShipments.php b/src/Vendor/ShipmentsV1/Dto/SubmitShipments.php new file mode 100644 index 000000000..506a015ad --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/SubmitShipments.php @@ -0,0 +1,18 @@ + [Shipment::class]]; + + /** + * @param Shipment[] $shipments + */ + public function __construct( + public readonly ?array $shipments = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/TaxRegistrationDetails.php b/src/Vendor/ShipmentsV1/Dto/TaxRegistrationDetails.php new file mode 100644 index 000000000..04a4a7afe --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/TaxRegistrationDetails.php @@ -0,0 +1,18 @@ + [LabelData::class]]; + + /** + * @param ?string $labelCreateDateTime Date on which label is created. + * @param ?ShipmentInformation $shipmentInformation Shipment Information details for Label request. + * @param LabelData[] $labelData Indicates the label data,format and type associated . + */ + public function __construct( + public readonly ?string $labelCreateDateTime = null, + public readonly ?ShipmentInformation $shipmentInformation = null, + public readonly ?array $labelData = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/TransportShipmentMeasurements.php b/src/Vendor/ShipmentsV1/Dto/TransportShipmentMeasurements.php new file mode 100644 index 000000000..7aff812a7 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/TransportShipmentMeasurements.php @@ -0,0 +1,24 @@ + [TransportLabel::class]]; + + /** + * @param ?Pagination $pagination + * @param TransportLabel[] $transportLabels + */ + public function __construct( + public readonly ?Pagination $pagination = null, + public readonly ?array $transportLabels = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/VendorDetails.php b/src/Vendor/ShipmentsV1/Dto/VendorDetails.php new file mode 100644 index 000000000..7d1258889 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/VendorDetails.php @@ -0,0 +1,18 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly string $unitOfMeasure, + public readonly string $value, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Dto/Weight.php b/src/Vendor/ShipmentsV1/Dto/Weight.php new file mode 100644 index 000000000..967c82acb --- /dev/null +++ b/src/Vendor/ShipmentsV1/Dto/Weight.php @@ -0,0 +1,18 @@ +**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`. + */ + public function __construct( + public readonly string $unitOfMeasure, + public readonly string $value, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Requests/GetShipmentDetails.php b/src/Vendor/ShipmentsV1/Requests/GetShipmentDetails.php new file mode 100644 index 000000000..0a74bc267 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Requests/GetShipmentDetails.php @@ -0,0 +1,117 @@ + $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'createdAfter' => $this->createdAfter?->format(\DateTime::RFC3339), + 'createdBefore' => $this->createdBefore?->format(\DateTime::RFC3339), + 'shipmentConfirmedBefore' => $this->shipmentConfirmedBefore?->format(\DateTime::RFC3339), + 'shipmentConfirmedAfter' => $this->shipmentConfirmedAfter?->format(\DateTime::RFC3339), + 'packageLabelCreatedBefore' => $this->packageLabelCreatedBefore?->format(\DateTime::RFC3339), + 'packageLabelCreatedAfter' => $this->packageLabelCreatedAfter?->format(\DateTime::RFC3339), + 'shippedBefore' => $this->shippedBefore?->format(\DateTime::RFC3339), + 'shippedAfter' => $this->shippedAfter?->format(\DateTime::RFC3339), + 'estimatedDeliveryBefore' => $this->estimatedDeliveryBefore?->format(\DateTime::RFC3339), + 'estimatedDeliveryAfter' => $this->estimatedDeliveryAfter?->format(\DateTime::RFC3339), + 'shipmentDeliveryBefore' => $this->shipmentDeliveryBefore?->format(\DateTime::RFC3339), + 'shipmentDeliveryAfter' => $this->shipmentDeliveryAfter?->format(\DateTime::RFC3339), + 'requestedPickUpBefore' => $this->requestedPickUpBefore?->format(\DateTime::RFC3339), + 'requestedPickUpAfter' => $this->requestedPickUpAfter?->format(\DateTime::RFC3339), + 'scheduledPickUpBefore' => $this->scheduledPickUpBefore?->format(\DateTime::RFC3339), + 'scheduledPickUpAfter' => $this->scheduledPickUpAfter?->format(\DateTime::RFC3339), + 'currentShipmentStatus' => $this->currentShipmentStatus, + 'vendorShipmentIdentifier' => $this->vendorShipmentIdentifier, + 'buyerReferenceNumber' => $this->buyerReferenceNumber, + 'buyerWarehouseCode' => $this->buyerWarehouseCode, + 'sellerWarehouseCode' => $this->sellerWarehouseCode, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/shipping/v1/shipments'; + } + + public function createDtoFromResponse(Response $response): GetShipmentDetailsResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetShipmentDetailsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/ShipmentsV1/Requests/GetShipmentLabels.php b/src/Vendor/ShipmentsV1/Requests/GetShipmentLabels.php new file mode 100644 index 000000000..54f722722 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Requests/GetShipmentLabels.php @@ -0,0 +1,69 @@ + $this->limit, + 'sortOrder' => $this->sortOrder, + 'nextToken' => $this->nextToken, + 'labelCreatedAfter' => $this->labelCreatedAfter?->format(\DateTime::RFC3339), + 'labelcreatedBefore' => $this->labelcreatedBefore?->format(\DateTime::RFC3339), + 'buyerReferenceNumber' => $this->buyerReferenceNumber, + 'vendorShipmentIdentifier' => $this->vendorShipmentIdentifier, + 'sellerWarehouseCode' => $this->sellerWarehouseCode, + ]); + } + + public function resolveEndpoint(): string + { + return '/vendor/shipping/v1/transportLabels'; + } + + public function createDtoFromResponse(Response $response): GetShipmentLabels1 + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetShipmentLabels1::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/ShipmentsV1/Requests/SubmitShipmentConfirmations.php b/src/Vendor/ShipmentsV1/Requests/SubmitShipmentConfirmations.php new file mode 100644 index 000000000..2fcd0b8f3 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Requests/SubmitShipmentConfirmations.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitShipmentConfirmationsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipmentConfirmationsRequest->toArray(); + } +} diff --git a/src/Vendor/ShipmentsV1/Requests/SubmitShipments.php b/src/Vendor/ShipmentsV1/Requests/SubmitShipments.php new file mode 100644 index 000000000..be06e8937 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Requests/SubmitShipments.php @@ -0,0 +1,51 @@ +status(); + $responseCls = match ($status) { + 202, 400, 403, 404, 413, 415, 429, 500, 503 => SubmitShipmentConfirmationsResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } + + public function defaultBody(): array + { + return $this->submitShipments->toArray(); + } +} diff --git a/src/Vendor/ShipmentsV1/Responses/GetShipmentDetailsResponse.php b/src/Vendor/ShipmentsV1/Responses/GetShipmentDetailsResponse.php new file mode 100644 index 000000000..8437f2d8f --- /dev/null +++ b/src/Vendor/ShipmentsV1/Responses/GetShipmentDetailsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?ShipmentDetails $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?ShipmentDetails $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Responses/GetShipmentLabels.php b/src/Vendor/ShipmentsV1/Responses/GetShipmentLabels.php new file mode 100644 index 000000000..5a2a0a9e5 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Responses/GetShipmentLabels.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransportationLabels $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransportationLabels $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/ShipmentsV1/Responses/SubmitShipmentConfirmationsResponse.php b/src/Vendor/ShipmentsV1/Responses/SubmitShipmentConfirmationsResponse.php new file mode 100644 index 000000000..f6a9772b2 --- /dev/null +++ b/src/Vendor/ShipmentsV1/Responses/SubmitShipmentConfirmationsResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionReference $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionReference $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/TransactionStatusV1/Api.php b/src/Vendor/TransactionStatusV1/Api.php new file mode 100644 index 000000000..8d4cebb9f --- /dev/null +++ b/src/Vendor/TransactionStatusV1/Api.php @@ -0,0 +1,20 @@ +connector->send($request); + } +} diff --git a/src/Vendor/TransactionStatusV1/Dto/Error.php b/src/Vendor/TransactionStatusV1/Dto/Error.php new file mode 100644 index 000000000..eacad9e22 --- /dev/null +++ b/src/Vendor/TransactionStatusV1/Dto/Error.php @@ -0,0 +1,20 @@ + [Error::class]]; + + /** + * @param string $transactionId The unique identifier returned in the 'transactionId' field in response to the post request of a specific transaction. + * @param string $status Current processing status of the transaction. + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly string $transactionId, + public readonly string $status, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/TransactionStatusV1/Dto/TransactionStatus.php b/src/Vendor/TransactionStatusV1/Dto/TransactionStatus.php new file mode 100644 index 000000000..80e8bbfda --- /dev/null +++ b/src/Vendor/TransactionStatusV1/Dto/TransactionStatus.php @@ -0,0 +1,16 @@ +transactionId}"; + } + + public function createDtoFromResponse(Response $response): GetTransactionResponse + { + $status = $response->status(); + $responseCls = match ($status) { + 200, 400, 401, 403, 404, 415, 429, 500, 503 => GetTransactionResponse::class, + default => throw new Exception("Unhandled response status: {$status}") + }; + + return $responseCls::deserialize($response->json(), $responseCls); + } +} diff --git a/src/Vendor/TransactionStatusV1/Responses/GetTransactionResponse.php b/src/Vendor/TransactionStatusV1/Responses/GetTransactionResponse.php new file mode 100644 index 000000000..ed0acf4d7 --- /dev/null +++ b/src/Vendor/TransactionStatusV1/Responses/GetTransactionResponse.php @@ -0,0 +1,22 @@ + [Error::class]]; + + /** + * @param ?TransactionStatus $payload + * @param Error[] $errors A list of error responses returned when a request is unsuccessful. + */ + public function __construct( + public readonly ?TransactionStatus $payload = null, + public readonly ?array $errors = null, + ) { + } +} diff --git a/src/Vendor/VendorConnector.php b/src/Vendor/VendorConnector.php new file mode 100644 index 000000000..5097ddac9 --- /dev/null +++ b/src/Vendor/VendorConnector.php @@ -0,0 +1,125 @@ +directFulfillmentInventoryV1(); + } + + public function directFulfillmentOrders(): DirectFulfillmentOrdersV20211228\Api + { + return $this->directFulfillmentOrdersV20211228(); + } + + public function directFulfillmentPayment(): DirectFulfillmentPaymentV1\Api + { + return $this->directFulfillmentPaymentV1(); + } + + public function directFulfillmentSandbox(): DirectFulfillmentSandboxV20211028\Api + { + return $this->directFulfillmentSandboxV20211028(); + } + + public function directFulfillmentShipping(): DirectFulfillmentShippingV20211228\Api + { + return $this->directFulfillmentShippingV20211228(); + } + + public function directFulfillmentTransactions(): DirectFulfillmentTransactionsV20211228\Api + { + return $this->directFulfillmentTransactionsV20211228(); + } + + public function invoices(): InvoicesV1\Api + { + return $this->invoicesV1(); + } + + public function orders(): OrdersV1\Api + { + return $this->ordersV1(); + } + + public function shipments(): ShipmentsV1\Api + { + return $this->shipmentsV1(); + } + + public function transactionStatus(): TransactionStatusV1\Api + { + return $this->transactionStatusV1(); + } + + public function directFulfillmentInventoryV1(): DirectFulfillmentInventoryV1\Api + { + return new DirectFulfillmentInventoryV1\Api($this); + } + + public function directFulfillmentOrdersV20211228(): DirectFulfillmentOrdersV20211228\Api + { + return new DirectFulfillmentOrdersV20211228\Api($this); + } + + public function directFulfillmentOrdersV1(): DirectFulfillmentOrdersV1\Api + { + return new DirectFulfillmentOrdersV1\Api($this); + } + + public function directFulfillmentPaymentV1(): DirectFulfillmentPaymentV1\Api + { + return new DirectFulfillmentPaymentV1\Api($this); + } + + public function directFulfillmentSandboxV20211028(): DirectFulfillmentSandboxV20211028\Api + { + return new DirectFulfillmentSandboxV20211028\Api($this); + } + + public function directFulfillmentShippingV20211228(): DirectFulfillmentShippingV20211228\Api + { + return new DirectFulfillmentShippingV20211228\Api($this); + } + + public function directFulfillmentShippingV1(): DirectFulfillmentShippingV1\Api + { + return new DirectFulfillmentShippingV1\Api($this); + } + + public function directFulfillmentTransactionsV20211228(): DirectFulfillmentTransactionsV20211228\Api + { + return new DirectFulfillmentTransactionsV20211228\Api($this); + } + + public function directFulfillmentTransactionsV1(): DirectFulfillmentTransactionsV1\Api + { + return new DirectFulfillmentTransactionsV1\Api($this); + } + + public function invoicesV1(): InvoicesV1\Api + { + return new InvoicesV1\Api($this); + } + + public function ordersV1(): OrdersV1\Api + { + return new OrdersV1\Api($this); + } + + public function shipmentsV1(): ShipmentsV1\Api + { + return new ShipmentsV1\Api($this); + } + + public function transactionStatusV1(): TransactionStatusV1\Api + { + return new TransactionStatusV1\Api($this); + } +} diff --git a/test/AuthenticationTest.php b/test/AuthenticationTest.php deleted file mode 100644 index 25090a31a..000000000 --- a/test/AuthenticationTest.php +++ /dev/null @@ -1,60 +0,0 @@ - '', - 'lwaClientSecret' => '', - 'lwaRefreshToken' => '', - 'awsAccessKeyId' => '', - 'awsSecretAccessKey' => '', - 'endpoint' => Endpoint::EU_SANDBOX, - ]; - - public function testItUsesInjectedAuthorizationSigner() - { - $request = new Request('GET', '/test/uri'); - $accessToken = 'the-access_token'; - - $authSigner = $this->createMock(AuthorizationSignerContract::class); - $authSigner->expects($this->once()) - ->method('sign') - ->willReturn($request); - - $client = new Client([ - 'handler' => new MockHandler([ - new Response(200, [], "{\"access_token\": \"{$accessToken}\", \"expires_in\": 60}") - ]), - ]); - - $auth = new Authentication( - self::EMPTY_CONFIG + [ - 'authorizationSigner' => $authSigner, - 'authenticationClient' => $client, - ] - ); - - $this->assertEquals( - $accessToken, - $auth->signRequest($request)->getHeaderLine('x-amz-access-token') - ); - } - - public function testItUsesDefaultAuthorizationSigner() - { - $auth = new Authentication(self::EMPTY_CONFIG); - $this->assertInstanceOf(AuthorizationSigner::class, $auth->getAuthorizationSigner()); - } -} \ No newline at end of file diff --git a/test/AuthorizationSignerTest.php b/test/AuthorizationSignerTest.php deleted file mode 100644 index 1532a95a4..000000000 --- a/test/AuthorizationSignerTest.php +++ /dev/null @@ -1,32 +0,0 @@ -setRequestTime( - new \DateTime('2022-04-26 20:23:00', new \DateTimeZone('UTC')) - ); - $signedRequest = $signer->sign( - new Request('GET', '/test/uri'), - new Credentials($key, 'awsSecretAccessKey') - ); - - $expectedAuthorization = "AWS4-HMAC-SHA256 Credential={$key}/20220426/{$endpoint['region']}/execute-api/aws4_request, SignedHeaders=, Signature=e18ee36e2352950d2de9acfa61a4278f7913f42b2bcd03e80db6748f7758c053"; - - $this->assertEquals($expectedAuthorization, $signedRequest->getHeaderLine('Authorization')); - $this->assertArrayHasKey('x-amz-date', $signedRequest->getHeaders()); - } -} \ No newline at end of file diff --git a/test/RequestSignerTest.php b/test/RequestSignerTest.php deleted file mode 100644 index 4aeeff48b..000000000 --- a/test/RequestSignerTest.php +++ /dev/null @@ -1,68 +0,0 @@ - '', - 'lwaClientSecret' => '', - 'lwaRefreshToken' => '', - 'awsAccessKeyId' => '', - 'awsSecretAccessKey' => '', - 'endpoint' => Endpoint::EU_SANDBOX, - ]; - - public function testItUsesInjectedRequestSigner() - { - $request = new Request('GET', '/test/uri'); - - $requestSigner = $this->createMock(RequestSignerContract::class); - $requestSigner->expects($this->once()) - ->method('signRequest') - ->willReturn($request); - - $config = new Configuration( - self::EMPTY_CONFIG + [ - 'requestSigner' => $requestSigner, - ], - ); - - $config->signRequest($request); - } - - public function testItUsesDefaultRequestSigner() - { - $config = new Configuration(self::EMPTY_CONFIG); - $this->assertInstanceOf(Authentication::class, $config->getRequestSigner()); - } - - public function testItSingsRequestsWithDefaultRequestSigner() - { - $client = new Client([ - 'handler' => new MockHandler([ - new Response(200, [], '{"access_token": "the-access_token", "expires_in": 60}') - ]), - ]); - $config = new Configuration( - self::EMPTY_CONFIG + [ - 'authenticationClient' => $client, - ], - ); - $signedRequest = $config->signRequest(new Request('GET', '/test/uri')); - - $this->assertArrayHasKey('Authorization', $signedRequest->getHeaders()); - $this->assertArrayHasKey('x-amz-access-token', $signedRequest->getHeaders()); - $this->assertArrayHasKey('x-amz-date', $signedRequest->getHeaders()); - } -} \ No newline at end of file